/* ==========================================================================
   Classic skin for the Rethink layout: the current site's look on the new pages.
   Light blue page, white panels, navy bar, coral buttons, cyan accents, Signika headings,
   Arial body, the shield logo. Loaded after rethink.css unless SITE_SKIN=poster.
   Tokens first; the rest only undoes poster-specific type (condensed caps, tight leading,
   very large sizes) that doesn't suit a wide, mixed-case face.
   ========================================================================== */
@font-face {
  font-family: "Signika";
  src: url(/fonts/signika-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #dbecf4;       /* the current light blue page */
  --paper-deep: #eef6fa;  /* panels inside white boxes */
  --paper-light: #ffffff; /* main panels, cells, inputs */
  --red: #dc3232;         /* coral buttons: a touch deeper than live's #f44444 so white text passes AA (4.6:1) */
  --red-ink: #c62f2f;     /* coral links, 5.5:1 on white */
  --navy: #003360;        /* the current nav bar */
  --navy-soft: #4a5d75;
  --rule: #003360;
  --cyan: #00ccff;        /* the current side-nav / free-button cyan, with navy text */
  --display: "Signika", "Trebuchet MS", Arial, sans-serif;
  --body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --display-case: none;
  --r-sm: 4px;
  --r-md: 8px;
}

body { color: #222; }
h1, h2, h3, h4 { color: #222; }
h1, h2 { font-weight: 600; letter-spacing: 0; line-height: 1.1; }
h1 { font-size: clamp(32px, 4vw, 44px); }
h2 { font-size: clamp(24px, 2.6vw, 30px); }
h3 { font-family: var(--display); font-weight: 600; }

/* ---------- Header: a navy band with the shield + wordmark (today's mobile header) ---------- */
.site-head { max-width: none; padding: 0; }
.site-head-row {
  max-width: var(--page); margin: 0 auto; padding: 10px var(--gap);
  border-bottom: 0; box-shadow: none;
}
/* only the logo/nav row is the navy band, full-bleed; breadcrumbs sit below on the light blue */
.site-head-row { background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.brand-logo { display: block; height: 40px; width: auto; transform: translateY(6%); } /* optical centre: the capitals (rows 12-42 of 58) sit above the image centre; 6% chosen by eye (Peter) */
.brand-shield { display: block; height: 42px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: 0; font-size: 24px; color: #fff; }
.top-nav.wide a { color: #fff; font-family: var(--body); font-size: 15px; }
.top-nav.wide a:hover { color: #fff; }
.top-nav.wide a.selected { box-shadow: inset 0 -3px 0 var(--cyan); }
#toggle_menu { color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; box-shadow: none; } /* flat outline on the navy header (the button shadow didn't show there) */
@media (hover: hover) { #toggle_menu:hover { background: #fff; color: var(--navy); } } /* phones keep :hover after a tap: it stayed white after the menu closed */
.site-subhead { max-width: var(--page); margin: 0 auto; padding: 10px var(--gap) 0; }
#breadcrumbs { color: #333; }
#breadcrumbs a { color: #222; font-weight: 700; text-decoration: none; }
#breadcrumbs a:hover { text-decoration: underline; color: #222; }
#choose-currency { border-color: #999; background-color: #fff; }

/* the drawer: today's cyan section bars */
#side-bar { background: #fff; border-right: 0; box-shadow: 4px 0 12px rgba(0, 0, 0, .35); }
#side-nav { padding-top: 0; }
#side-nav li.l1 {
  background: var(--cyan); color: var(--navy); font-family: var(--body); font-weight: 700; font-size: 17px;
  border-bottom: 1px solid #fff; min-height: 44px;
}
#side-nav li.l1 span { border-color: var(--navy); }
#side-nav li.l2 a:hover { background: #eee; }

/* ---------- Page frame: white panel on the light blue ---------- */
main { background: #fff; padding: 22px clamp(14px, 2.5vw, 28px) 18px; margin-top: 10px; border-radius: var(--r-sm); }
#terms-holder { border-top: 0; background: #fff; padding: 12px clamp(14px, 2.5vw, 28px); margin-top: 12px; margin-bottom: 24px; border-radius: var(--r-sm); font-size: 14px; }
#terms-holder a { color: #222; }
hr, .poster-section, .ready-made { border-top-color: #cfdde6; }
.poster-section, .ready-made { border-top-width: 2px; }

/* ---------- Buttons: coral, Signika, soft shadow (today's buttons) ---------- */
button, .btn { border-width: 0; padding-top: 11px; padding-bottom: 11px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
button:hover, .btn:hover { background: #bf3b3b; color: #fff; }
button.massive, .btn-big { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0; padding: 14px 26px 13px; border-radius: 5px; }
.btn-ghost, button.cancel { border: 2px solid var(--navy); box-shadow: none; }
.btn-ghost:hover, button.cancel:hover { background: var(--navy); color: #fff; }
#free-btn-30 { background: var(--cyan); color: var(--navy); border: 0; }
#free-btn-30:hover { background: #009cc3; color: #fff; }
input[type=text], input[type=email], input[type=search], textarea, select { border: 1px solid #999; border-radius: 3px; }
select { background-color: #fff; }

/* ---------- Homepage ---------- */
.poster-invite h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.05; }
.poster-lede { font-size: 19px; }
.ready-list img { border-width: 1px; border-color: #bbb; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ready-made h2 { font-size: 26px; }
.steps li::before { background: var(--cyan); color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 26px; }
.steps h3 { font-size: 20px; }
.price-table td:last-child { font-family: var(--display); font-weight: 600; font-size: 24px; }
.uses h3 { font-size: 22px; }

/* ---------- Editor ---------- */
.gen-head h2.bigger, .card-page-head h2.bigger, main > h2:first-child { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.gen-controls, .buy-panel { border: 1px solid #cfdde6; background: #f7fbfd; }
.gen-controls h2 { font-size: 24px; }
.gen-types, .run-page nav, main .run-page nav { border-color: var(--navy); }
.gen-actions { border-top-color: var(--navy); }
#more-options { border-top-color: #cfdde6; }

/* ---------- Preview / buy ---------- */
.buy-panel h3.big-game { font-size: 26px; }
.pack-paid, .voucher-box { border-top-color: #cfdde6; }
.card-actions .btn-ghost { background: #fff; border-width: 2px; }
.warning-box { background: #fdcad3; border-color: #dc0000; }

/* ---------- Listings ---------- */
img.card-small { border-width: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
a.paginate-link:hover img { filter: brightness(85%); }
.card-caption { color: #222; }

/* ---------- Modals ---------- */
.modal { background: #fff; border: 0; border-radius: 8px; box-shadow: 0 0 10px #000; }
.modal h3 { font-size: 24px; letter-spacing: 0; }
.modal a.close-modal { background: #222; }

/* ---------- Payment window: today's grey header, coral pay button ---------- */
#stripe-modal { background: #f5f5f7; border-width: 0; }
#stripe-modal #modal-header { background: #e8e9eb; border-bottom: 1px solid #ccc; }
#stripe-modal h2, #stripe-modal.on-mobile h2 { font-family: var(--display); font-weight: 600; font-size: 24px; color: #222; }
#stripe-modal #modal-header p.pay-terms, #stripe-modal label { color: #222; }
#stripe-modal #modal-body, #stripe-modal #modal-footer { background: #f5f5f7; }
#stripe-modal.stripe-tab .stripe-tab-link, #stripe-modal.paypal-tab .paypal-tab-link { border-bottom-color: var(--cyan); }
#stripe-modal .fieldset { border: 1px solid rgba(124, 124, 126, .35); }
#card-button, #stripe-modal.on-mobile #card-button { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0; }

/* ---------- Manager + caller ---------- */
#manager-top .site-head-row { max-width: 1040px; }
#manager-mid { color: #fff; }
#manager-mid a { color: #ff8a8a; }
.run-header-h2, .run-title-h2 { font-size: 28px; letter-spacing: 0; }
button.medium, #download-button, .download-button { font-size: 20px; }
.link-choices li { border: 1px solid #cfdde6; background: #f7fbfd; }

#next-call-button { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0; min-height: 52px; }
@media (hover: hover) { #next-call-button:hover { background: #bf3b3b; color: #fff; } }
#restart-game { border-color: var(--navy); color: var(--navy); font-family: var(--body); }
#restart-game:hover { background: var(--navy); color: #fff; }
#winner-check { background: #eee; border: 0; border-radius: 5px; }
#winner-check input { border: 1px solid #999; border-radius: 3px; padding: 4px 6px; background: #fff; box-sizing: border-box; } /* was the UA inset border (dark top/left) */
#winner-check #check-card-button { background: var(--navy); color: #fff; }
/* Caller type, one system (2026-11-30): the calls themselves (current call, earlier calls, word list, column letters)
   in Signika 600; labels and board squares in Arial. Current call red, the rest dark. Words smaller than numbers.
   (Was Palatino current call + bold Times word list + Arial squares, with sizes differing by row.) */
#cur-call-manual { font-family: var(--body); font-size: 20px; font-weight: 400; line-height: 1.2; color: var(--navy-soft); }
#cur-call-manual span.big-call-num { font-family: var(--display); font-weight: 600; font-size: 72px; line-height: 1; color: #c62f2f; }
#cur-call-manual.custom-manual span.big-call-num { font-size: 44px; }
#cur-call-manual span.small-call { font-family: var(--body); font-size: 16px; font-weight: 400; color: var(--navy-soft); }
#cur-call-manual span.small-call-num { font-family: var(--display); font-weight: 600; font-size: 20px; color: #222; }
#call-history-link { font-family: var(--body); font-size: 15px; }
table.call-grid-manual td, table.call-grid-manual tr:nth-child(odd) td { border-radius: 0; font-family: var(--body); font-size: 20px; font-weight: 400; height: 44px; background: #f5f5f5; border-color: transparent; color: #222; }
table.call-grid-manual tr:nth-child(odd) td { background: #e5e5e5; }
table.call-grid-manual.custom-manual td, table.call-grid-manual.custom-manual tr:nth-child(odd) td { font-size: 16px; height: auto; padding: 8px 6px; }
table.call-grid-manual tr td.col, table.call-grid-manual tr:nth-child(odd) td.col { background: var(--navy) !important; font-family: var(--display); font-weight: 600; font-size: 28px; }
/* called squares: all bold dark text (the odd-row striping rule used to out-rank this, so only even rows went bold) */
table.call-grid-manual td.called, table.call-grid-manual tr:nth-child(odd) td.called { background: #ffbbbb !important; border-color: transparent; font-weight: 700; color: #222; }
table.call-grid-manual td.cur_call, table.call-grid-manual tr:nth-child(odd) td.cur_call { background: #ff6666 !important; color: #222; font-weight: 700; }
#call-list li { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; color: #222; padding-bottom: 8px; }
#call-list li.current-call { font-size: 40px; color: #c62f2f; }

@media (max-width: 727px) {
  .brand-logo { height: 32px; }
  .brand-shield { height: 34px; }
  .brand-name { font-size: 20px; }
  .poster-invite h1 { font-size: clamp(34px, 10vw, 46px); }
  button.massive, .btn-big { font-size: 20px; }
  .gen-actions button.massive { font-size: 20px; }
  /* phones: the white panel runs edge to edge (no blue gutter + inner padding double margin; 2026-12-01) */
  #middle { padding-left: 0; padding-right: 0; }
  main { padding: 14px 16px; margin-top: 0; border-radius: 0; }
  #terms-holder { width: 100%; max-width: none; margin: 12px 0 0; border-radius: 0; padding-left: 16px; padding-right: 16px; }
  .site-subhead:empty { display: none; } /* no breadcrumb (homepage): the panel starts right under the header */
  .site-subhead { padding-bottom: 10px; } /* same space below the breadcrumb/currency strip as above it (the panel has no top margin here) */
  table.call-grid-manual td, table.call-grid-manual tr:nth-child(odd) td { font-size: 14px; height: 30px; }
  table.call-grid-manual.custom-manual td, table.call-grid-manual.custom-manual tr:nth-child(odd) td { font-size: 14px; height: auto; padding: 6px 4px; }
  table.call-grid-manual tr td.col, table.call-grid-manual tr:nth-child(odd) td.col { font-size: 18px; }
  #cur-call-manual { font-size: 17px; }
  #cur-call-manual span.big-call-num { font-size: 52px; }
  #cur-call-manual.custom-manual span.big-call-num { font-size: 28px; }
  #cur-call-manual span.small-call-num { font-size: 17px; }
  #call-list li { font-size: 19px; padding-bottom: 6px; }
  #call-list li.current-call { font-size: 28px; }
}
/* 320 px phones (iPhone SE 1st gen, Display Zoom): the 16-column caller board and the toolbar need the side padding back */
@media (max-width: 359px) {
  html.manager #middle, html.manager main { padding-left: 6px; padding-right: 6px; }
  table.call-grid-manual { border-spacing: 1px; }
  table.call-grid-manual td, table.call-grid-manual tr:nth-child(odd) td { font-size: 12px; }
  table.call-grid-manual tr td.col, table.call-grid-manual tr:nth-child(odd) td.col { font-size: 15px; }
  #show-caller-tips { flex-wrap: wrap; }
  article.full.run-page #winner-check { grid-template-columns: repeat(4, max-content); }
  article.full.run-page #winner-check input { width: 48px; }
  article.full.run-page #winner-check #check-card-button { grid-column: 1 / -1; justify-self: stretch; }
}
@media (max-width: 400px) {
  .brand-logo { height: 26px; }
  #toggle_menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #toggle_menu svg { margin-right: 0; }
}
/* short-link helper (/m, /a, /v on the main host): the Go! button wraps under the full-width field on phones; give it a gap */
@media (max-width: 727px) { #go_to ~ .submit-button { margin-top: 10px; } }
/* voucher-priced pack buttons are green, as on today's site and as the FAQ says ("click one of the green buttons");
   a darker green than live's #08cb01 so the white label passes contrast */
button.voucher { background: #148a0c; border-color: #148a0c; }
button.voucher:hover { background: #0f6e09; border-color: #0f6e09; }
button.voucher del { color: #c9f5c6; }
button.voucher.nogreen { background: #f44444; border-color: #f44444; }
button.voucher.nogreen:hover { background: #bf3b3b; border-color: #bf3b3b; }
