/* The staff page (run T1, 20 Oct 2026): the look of the one-TV sheet Ian was sent
   (decisions/Fairfield-Arms-one-TV-choices-v2-2026-10-20.png) in the pub's own fonts. Phone first.
   Run T5: the clash count, "To pick", None, and Show / None for the single games (at the end). */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/jost.woff2) format('woff2');
}

:root {
  --green: #16302e;     /* the sheet's surround: the teal-green of the bar walls */
  --paper: #fbf8f1;
  --brass: #c9a35a;     /* the sheet's frame */
  --brass-ink: #8a6d2f; /* brass dark enough to read on the paper */
  --line: #e7dcc2;
  --ink: #1c1c1c;
  --soft: #5b5650;
  --ember: #b8283f;
  --ok: #1f6b3a;
  --focus: #5e9fba;
  --serif: 'Cormorant Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--green);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 1.0625rem/1.5 var(--sans);
  font-variant-numeric: lining-nums;
}

.wrap {
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 18px;
  background: var(--paper);
  border: 4px solid var(--brass);
}
@media (min-width: 600px) {
  .wrap { padding-top: 40px; padding-bottom: 56px; }
  .card { padding: 30px 30px 24px; border-width: 5px; }
}

.eyebrow {
  margin: 0 0 .3rem;
  font: 500 .72rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
h1 {
  margin: 0;
  font: 600 2.15rem/1.1 var(--serif);
  color: var(--green);
}
.sub { margin: .5rem 0 1rem; color: var(--soft); font-size: 1rem; }
.msg { margin: 1.2rem 0 .4rem; color: var(--soft); }
.note { margin: .4rem 0 0; color: var(--ember); font-weight: 500; }
.note:empty { display: none; }

/* ---------- logging in ---------- */
.login { margin-top: .4rem; }
.field {
  display: block;
  margin: 1rem 0 .35rem;
  font-weight: 500;
  color: var(--green);
}
.login input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font: 400 1.0625rem/1.3 var(--sans); /* 17px: phones don't zoom in */
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8bb9c;
  border-radius: 10px;
}
.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 1.2rem 0 .3rem;
  font: 500 1.0625rem/1 var(--sans);
  letter-spacing: .02em;
  color: var(--paper);
  background: var(--green);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: progress; }
.login input:focus-visible,
.btn:focus-visible,
.out a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- the sheet ---------- */
h2 {
  margin: 1.2rem 0 0;
  padding-bottom: .35rem;
  font: 500 .74rem/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-ink);
  border-bottom: 1px solid var(--brass);
}
.slot {
  position: relative;
  margin: 0;
  padding: 14px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.slot legend {
  float: left;
  width: 100%;
  padding: 0 6.5rem 0 0;
  margin-bottom: .45rem;
  font: 500 .8rem/1.4 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
}
.slot .choice,
.slot .or { clear: both; }
.status {
  position: absolute;
  top: 12px;
  right: 0;
  font: 500 .8rem/1 var(--sans);
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status:empty { display: none; }
.status.saving { color: var(--soft); background: #efe9dc; }
.status.saved { color: var(--ok); background: #e2f0e5; }
.status.error {
  position: static;
  display: block;
  clear: both;
  margin-top: .5rem;
  padding: 0;
  color: var(--ember);
  background: none;
  white-space: normal;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 0;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #ddd0b0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.choice + .choice { margin-top: 8px; }
.choice.is-on {
  background: #f3ead4;
  border-color: var(--brass);
  box-shadow: inset 0 0 0 1px var(--brass);
}
.choice input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.choice input:checked { background: radial-gradient(circle, var(--green) 0 5px, #fff 6px); }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice .game { display: block; font-weight: 500; line-height: 1.3; }
.choice .comp { display: block; font-size: .84rem; color: var(--soft); line-height: 1.3; }
.choice--hide .game,
.choice--later .game { font-weight: 400; }
.or {
  margin: 2px 0 2px 15px;
  font: italic 500 1.1rem/1.2 var(--serif);
  color: var(--brass-ink);
}
.or + .choice { margin-top: 0; }

/* ---------- run T5 ---------- */
/* how many clashes are waiting: under the login form and at the top of the list */
.count {
  margin: 1.1rem 0 .2rem;
  padding: 12px 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ember);
  background: #f8e6e8;
  border: 1px solid #ebbcc4;
  border-radius: 10px;
}
.count.is-done { color: var(--ok); background: #e2f0e5; border-color: #b9d8c1; }
.sheet .count { margin: .9rem 0 0; }
.slot .topick {
  display: block;
  width: fit-content;
  margin-bottom: .4rem;
  padding: 3px 9px;
  font-size: .72rem;
  letter-spacing: .12em;
  color: #fff;
  background: var(--ember);
  border-radius: 999px;
}
.month {
  margin: 1.1rem 0 0;
  font: italic 500 1.4rem/1.2 var(--serif);
  color: var(--brass-ink);
}
/* a single game: its name, then Show and None side by side */
.slot .one { clear: both; margin: 0 0 10px; }
.one .game { display: block; font-weight: 500; line-height: 1.3; }
.one .comp { display: block; font-size: .84rem; color: var(--soft); line-height: 1.3; }
.slot--one.is-none .one .game { color: var(--soft); text-decoration: line-through; }
.slot .two { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .choice + .choice { margin-top: 0; }

.foot { margin: 1rem 0 0; font-size: .86rem; color: var(--soft); }
.out { margin: 1rem 0 0; text-align: right; }
.out a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--green);
  font-weight: 500;
  text-underline-offset: 3px;
}
