/* Matchday Stubs: the Christmas layer (Josh, 6 Nov 2026; DECISIONS.md 2026-11-06 "The Christmas site").
   Light touch: our own line drawings and a little falling snow on the dark sections, the same drawings faint on
   the cream ones, tighter sections, and the Christmas home page blocks. Nobody else's artwork, no dashed boxes. */

/* ---- tighter sections on the Christmas pages ---- */
.xmas-page section { padding-block: clamp(40px, 6vw, 72px); }
.xmas-page .section-head { margin-bottom: clamp(20px, 3vw, 32px); }

/* ---- decoration layer ---- */
.xmas-host { position: relative; overflow: hidden; }
.xmas-host > .wrap { position: relative; z-index: 1; }
.xmas-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.xmas-deco svg { position: absolute; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.surface-ink .xmas-deco, .xmas-deco.on-ink { color: rgba(200, 162, 74, .32); }
.xmas-deco.on-paper { color: rgba(20, 24, 28, .09); }
.xmas-snow { position: absolute; top: -10px; width: 4px; height: 4px; border-radius: 50%; background: rgba(244, 241, 234, .55);
  animation: xmas-fall linear infinite; }
.on-paper .xmas-snow { background: rgba(200, 162, 74, .35); }
@keyframes xmas-fall { to { transform: translate3d(var(--drift, 20px), var(--fall, 900px), 0); opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .xmas-snow { display: none; } }
@media (max-width: 640px) { .xmas-deco svg { width: 26px; height: 26px; } }

/* ---- hero: three buttons and a row of links ---- */
.xmas-hero .hero-actions .btn { white-space: nowrap; }
.xmas-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none;
  font-family: var(--f-data); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.xmas-links a { color: rgba(244, 241, 234, .78); border-bottom: 1px solid rgba(200, 162, 74, .5); padding-bottom: 2px; }
.xmas-links a:hover { color: var(--gold-soft, #e2c27a); }
.gift-tag-inline { display: inline-block; background: var(--gold, #C8A24A); color: var(--ink, #14181C); font-family: var(--f-head);
  font-weight: 700; font-size: 13px; padding: 5px 12px 5px 18px; border-radius: 4px; position: relative; transform: rotate(-3deg); }
.gift-tag-inline::before { content: ''; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--ink, #14181C); }

/* ---- Who's it for ---- */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .who-grid { gap: 10px; } }
.who-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #D8D2C6);
  border-radius: 14px; padding: 14px; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.who-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 24, 28, .10); }
.who-card .who-shot { display: block; margin: 6px 0 12px; }
.who-card .who-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(20, 24, 28, .18)); }
.who-card .who-shot .stub-frame { display: block; width: 100%; aspect-ratio: 186 / 90; overflow: hidden; }
.xmas-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.who-card .gift-tag-inline { align-self: flex-start; }
.who-card h3 { font-size: 17px; margin: 0 0 4px; }
.who-card p { font-size: 14px; margin: 0 0 10px; color: var(--ink-700, #3a3f44); }
.who-card .who-go { margin-top: auto; font-family: var(--f-head); font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--gold, #C8A24A); align-self: flex-start; }
@media (max-width: 480px) { .who-card { padding: 10px; } .who-card h3 { font-size: 15px; } .who-card p { font-size: 13px; } }

/* ---- the Christmas Set, a small tight block ---- */
.set-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 820px) { .set-block { grid-template-columns: 1fr; } }
.set-scene { position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, #2a3440 0%, #14181C 70%); }
.set-scene .tree { position: absolute; right: 6%; bottom: 0; width: 34%; height: 78%; color: rgba(200, 162, 74, .55); }
.set-scene .table { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: linear-gradient(#3b2a1d, #2a1e15); }
.set-scene .frame { position: absolute; left: 10%; bottom: 13%; width: 38%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.set-scene .stub { position: absolute; left: 34%; bottom: 9%; width: 48%; transform: rotate(-4deg); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.set-scene .tissue { position: absolute; left: 6%; bottom: 10%; width: 46%; height: 30%; border-radius: 40% 50% 10% 10%;
  background: rgba(244, 241, 234, .10); }
.set-copy h2 { margin: 6px 0 10px; }
.set-copy .lead { margin: 0 0 18px; }
.set-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.set-points li { display: flex; gap: 10px; align-items: baseline; }
.set-points b { color: var(--gold, #C8A24A); font-family: var(--f-data); font-size: 12px; }

/* ---- Boxing Day: three steps as a small flow ---- */
.bd-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 auto 24px; max-width: 900px; counter-reset: bd; }
.bd-step { position: relative; text-align: center; padding: 0 12px; }
.bd-step .bd-day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 78px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line, #D8D2C6); box-shadow: 0 6px 16px rgba(20, 24, 28, .08); margin-bottom: 10px; }
.bd-step .bd-day span { font-family: var(--f-data); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #B3261E; }
.bd-step .bd-day b { font-family: var(--f-head); font-size: 26px; line-height: 1; }
.bd-step h3 { font-size: 16px; margin: 0 0 4px; }
.bd-step p { font-size: 14px; margin: 0; color: var(--ink-700, #3a3f44); }
.bd-step:not(:last-child)::after { content: ''; position: absolute; top: 39px; right: -8%; width: 16%; height: 2px; background: var(--gold, #C8A24A); }
@media (max-width: 640px) {
  .bd-flow { grid-template-columns: 1fr; gap: 14px; }
  .bd-step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; text-align: left; align-items: center; }
  .bd-step .bd-day { width: 64px; height: 64px; margin: 0; }
  .bd-step:not(:last-child)::after { display: none; }
}

/* ---- gift voucher band and other cards ---- */
.xmas-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .xmas-cards { grid-template-columns: 1fr; } }
.xmas-card { background: #fff; border: 1px solid var(--line, #D8D2C6); border-radius: 14px; padding: 20px; }
.xmas-card h3 { margin: 4px 0 6px; }
.xmas-card p { margin: 0 0 14px; }
.voucher-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 820px) { .voucher-band { grid-template-columns: 1fr; } }
.voucher-band img { width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .4)); }
[data-list-card][hidden] { display: none !important; }

/* ---- the Boxing Day page ---- */
.bd-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.bd-tools input { flex: 1 1 240px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line, #D8D2C6); font: inherit; background: #fff; }
.bd-seg[hidden] { display: none; }
.bd-seg { display: inline-flex; border: 1px solid var(--line, #D8D2C6); border-radius: 999px; overflow: hidden; background: #fff; }
.bd-seg button { border: 0; background: none; padding: 10px 16px; font: 600 14px var(--f-head); cursor: pointer; color: inherit; }
.bd-seg button.on { background: var(--ink, #14181C); color: #fff; }
.bd-group h2 { font-size: 20px; margin: 22px 0 10px; }
.bd-list { display: grid; gap: 10px; }
/* Day headings on the Christmas fixtures list (26 Dec to 3 Jan, Hayden 6 Nov 2026) */
.bd-dayhead { font-family: var(--f-head); font-size: 18px; margin: 26px 0 10px; }
.bd-dayhead:first-child { margin-top: 4px; }
.bd-game { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: #fff;
  border: 1px solid var(--line, #D8D2C6); border-radius: 12px; padding: 12px 14px; }
.bd-ko { font-family: var(--f-data); font-size: 13px; text-align: center; }
.bd-ko b { display: block; font-family: var(--f-head); font-size: 18px; }
.bd-teams { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.bd-venue { font-size: 13px; color: var(--ink-700, #3a3f44); }
.bd-go { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bd-go a { white-space: nowrap; font: 700 13px var(--f-head); padding: 8px 12px; border-radius: 999px; background: var(--ink, #14181C); color: #fff; }
.bd-go a.alt { background: none; color: var(--ink, #14181C); border: 1px solid var(--ink, #14181C); }
@media (max-width: 640px) {
  .bd-game { grid-template-columns: 52px 1fr; }
  .bd-go { grid-column: 1 / -1; justify-content: flex-start; }
  .bd-go a { flex: 1 1 0; text-align: center; }
}
.bd-empty { padding: 20px; text-align: center; color: var(--ink-700, #3a3f44); }

/* ---- the Christmas Set builder page ---- */
.cs-flow { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line, #D8D2C6); border-radius: 18px; overflow: hidden; }
.cs-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 16px 0; }
.cs-bar span { height: 4px; border-radius: 2px; background: #e7e1d4; }
.cs-bar span.on { background: var(--gold, #C8A24A); }
.cs-meta { display: flex; justify-content: space-between; padding: 8px 16px 0; font-family: var(--f-data); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7a746a; }
.cs-body { padding: 16px; min-height: 380px; }
.cs-body h2 { font-size: 22px; margin: 0 0 4px; }
.cs-body .hint { margin: 0 0 14px; color: var(--ink-700, #3a3f44); font-size: 14px; }
.cs-search { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line, #D8D2C6); font: inherit; margin-bottom: 12px; }
.cs-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 52vh; overflow: auto; padding: 2px; }
@media (max-width: 560px) { .cs-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-opt { display: block; width: 100%; text-align: left; border: 2px solid var(--line, #D8D2C6); border-radius: 12px; padding: 8px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.cs-opt.on { border-color: var(--ink, #14181C); box-shadow: 0 0 0 3px rgba(200, 162, 74, .35); }
.cs-opt img { display: block; width: 100%; height: auto; border-radius: 6px; background: #f4f1ea; }
.cs-opt b { display: block; font-family: var(--f-head); font-size: 14px; margin-top: 6px; }
.cs-opt small { display: block; color: #6b665d; font-size: 12px; }
.cs-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .cs-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-sizes { display: grid; gap: 10px; margin-top: 14px; }
.cs-size { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--line, #D8D2C6); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.cs-size.on { border-color: var(--ink, #14181C); box-shadow: 0 0 0 3px rgba(200, 162, 74, .35); }
.cs-size b { font-family: var(--f-head); }
.cs-preview { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.cs-preview img { width: 100%; height: auto; border-radius: 8px; }
.cs-nav { display: flex; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid #eee7da; position: sticky; bottom: 0; background: #fff; }
.cs-nav .btn { flex: 1; }
.cs-nav .btn[disabled] { opacity: .45; pointer-events: none; }
.cs-err { color: #B3261E; font-size: 14px; margin: 8px 0 0; }

/* ---- round 2 (Josh's review, 6 Nov 2026 evening) ---- */
.xmas-deco.on-paper { color: rgba(20, 24, 28, .15); }
.surface-ink .xmas-deco, .xmas-deco.on-ink { color: rgba(200, 162, 74, .42); }
/* hero: two buttons side by side, the voucher full width beneath, all one size */
.xmas-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.xmas-actions .btn { width: 100%; justify-content: center; margin: 0; }
.xmas-actions .btn:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 480px) { .xmas-actions { grid-template-columns: 1fr; } }
.xmas-hero .hero-trust { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 28px; }
@media (max-width: 480px) { .xmas-hero .hero-trust { grid-template-columns: 1fr; } }
/* the Christmas Set scene: fairy lights instead of the tissue shape */
.set-scene .tissue { display: none; }
.set-scene .lights { position: absolute; left: 0; right: 0; top: 4%; width: 100%; height: 16%; }
.set-scene .lights circle { filter: drop-shadow(0 0 5px currentColor); animation: xmas-twinkle 2.4s ease-in-out infinite; }
.set-scene .lights .b0 { fill: #f3d27a; color: #f3d27a; }
.set-scene .lights .b1 { fill: #e9645a; color: #e9645a; animation-delay: .8s; }
.set-scene .lights .b2 { fill: #8fd39a; color: #8fd39a; animation-delay: 1.6s; }
@keyframes xmas-twinkle { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .set-scene .lights circle { animation: none; } }
/* gift vouchers: room above the button, and the stub stands on a shadow */
.voucher-band .lead { margin-bottom: 26px; }
.voucher-stand { position: relative; padding-bottom: 26px; }
.voucher-stand img { transform: rotate(-3deg); }
.voucher-stand::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 6px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
/* the two stubs: before the game and after it */
.prepost { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; max-width: 820px; margin: 0 auto 28px; }
.prepost figure { margin: 0; text-align: center; }
.prepost .pp-shot { display: block; position: relative; width: 100%; aspect-ratio: 186 / 90; filter: drop-shadow(0 10px 18px rgba(20, 24, 28, .25)); }
.prepost .pp-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prepost .pp-shot .stub-frame { display: block; width: 100%; height: 100%; overflow: hidden; }
.prepost figcaption { margin-top: 10px; font-family: var(--f-data); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.prepost figcaption b { display: block; font-family: var(--f-head); font-size: 16px; letter-spacing: 0; text-transform: none; }
.prepost .pp-arrow { font-size: 28px; color: var(--gold, #C8A24A); }
.surface-ink .prepost figcaption { color: rgba(244, 241, 234, .8); }
.prepost .pp-note { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 13px; opacity: .75; }
@media (max-width: 640px) { .prepost { grid-template-columns: 1fr; } .prepost .pp-arrow { transform: rotate(90deg); justify-self: center; } }
/* the Boxing Day page, round 2 */
.bd-hero { text-align: center; }
.bd-hero h1 { margin: 8px 0 10px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.bd-chips button { border: 1px solid var(--line, #D8D2C6); background: #fff; border-radius: 999px; padding: 9px 14px; font: 600 14px var(--f-head); cursor: pointer; color: inherit; }
.bd-chips button.on { background: var(--ink, #14181C); color: #fff; border-color: var(--ink, #14181C); }
.bd-chips button small { opacity: .6; margin-left: 4px; font-weight: 500; }
.bd-search { position: relative; margin: 0 0 12px; }
.bd-search input { width: 100%; min-height: 54px; padding: 0 16px 0 46px; border-radius: 14px; border: 2px solid var(--ink, #14181C); font: 500 16px var(--f-head); background: #fff; }
.bd-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; stroke: currentColor; fill: none; stroke-width: 2; }
.bd-game { position: relative; overflow: hidden; padding-left: 20px; }
.bd-game .bd-colours { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; display: flex; flex-direction: column; }
.bd-game .bd-colours span { flex: 1; }
.bd-game .bd-tier { display: inline-block; font-family: var(--f-data); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7a746a; margin-bottom: 2px; }
.bd-peek { grid-column: 1 / -1; display: none; }
.bd-game.open .bd-peek { display: block; }
.bd-peek .stub-frame { display: block; width: 100%; max-width: 520px; aspect-ratio: 186 / 90; overflow: hidden; margin: 6px auto 4px; }
.bd-peek p { text-align: center; font-size: 13px; color: #6b665d; margin: 4px 0 0; }
.bd-go button.peek { white-space: nowrap; font: 700 13px var(--f-head); padding: 8px 12px; border-radius: 999px; background: none; border: 1px solid var(--line, #D8D2C6); cursor: pointer; color: inherit; }
/* the Christmas Set builder: steady height, so Back and Next never move the page */
.cs-body { height: 560px; overflow-y: auto; }
@media (max-width: 640px) { .cs-body { height: 62vh; min-height: 420px; } }
.cs-games { max-height: none; overflow: visible; }
.cs-size-group { font-family: var(--f-data); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7a746a; margin: 12px 0 6px; }
@media (min-width: 900px) { .xmas-hero .hero-trust { grid-template-columns: repeat(2, max-content); } .xmas-hero .hero-trust li { white-space: nowrap; } }
.set-scene .lights { pointer-events: none; }
.mds-popup .mds-popup-close svg { pointer-events: none; }

/* The result stub's discount (Hayden 7 Nov 2026): a ribbon on the stub and a strong line under it. Figure from products.json. */
.prepost .pp-off { position: absolute; top: -22px; right: -10px; z-index: 2; background: #B3261E; color: #fff; font-family: var(--f-head); font-size: 17px; line-height: 1; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(20, 24, 28, .3); transform: rotate(6deg); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.prepost .pp-half { display: block; margin-top: 6px; font-family: var(--f-head); font-size: 15px; letter-spacing: 0; text-transform: none; color: #B3261E; }
.surface-ink .prepost .pp-half { color: #F2B8B5; }
.prepost.has-off { align-items: start; }
.prepost.has-off .pp-arrow { margin-top: clamp(40px, 11vw, 88px); }
.prepost .pp-off { border: 2px solid #fff; }
@media (max-width: 640px) { .prepost .pp-off { font-size: 15px; padding: 8px 12px; right: -4px; } .prepost.has-off .pp-arrow { margin-top: 0; } }
