/* ==========================================================================
   FSN — This Week (/week/) and its strip on the front page (week.js).
   The Yahoo sync, 2026-09-28. The site's own tokens; phones first.
   ========================================================================== */

/* the week bar: ‹ Week 5 · Oct 27 – Nov 2 · In play › */
.wk-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.wk-step { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--gray-rule-2, #c9ced6);
  background: var(--paper, #fff); color: var(--ink, #14161a); font: 400 26px/1 var(--sans); cursor: pointer; }
.wk-step:hover:not([disabled]), .wk-step:focus-visible { border-color: var(--ink, #14161a); }
.wk-step[disabled] { opacity: .35; cursor: default; }
.wk-title { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 10px; text-align: center; }
.wk-title b { font: 700 24px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.wk-title span { font: 500 14px/1.3 var(--sans); color: var(--ink-2, #3c4148); }
.wk-state { font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-style: normal;
  padding: 4px 7px; border-radius: 3px; background: var(--paper-2, #f2f3f5); color: var(--gray-text, #626873); }
.wk-state.s-live { background: var(--fsn-red-wash, #fdf0f2); color: var(--fsn-red-ink, #8d001b); }
.wk-state.s-final { background: var(--ink, #14161a); color: #fff; }
.wk-read { margin: 6px 0 14px; text-align: center; font: 400 13px/1.45 var(--sans); color: var(--gray-text, #626873); }
.wk-read a { color: var(--fsn-red-ink, #8d001b); }

/* a matchup: a fold with the two clubs and the score; open, the eleven */
.wk-games { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 900px) { .wk-games { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.wk-game { background: var(--paper, #fff); border: 1px solid var(--gray-rule, #e4e6ea); border-radius: var(--radius, 6px); box-shadow: var(--sh-1); }
.wk-game.is-mine { border-color: var(--ink, #14161a); box-shadow: var(--sh-2); }
.wk-game > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 12px; min-height: 64px; }
.wk-game > summary::-webkit-details-marker { display: none; }
.wk-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wk-side.b { flex-direction: row-reverse; text-align: right; }
.wk-side .crest { flex: 0 0 auto; }
.wk-name { min-width: 0; display: flex; flex-direction: column; }
.wk-name b { font: 700 15px/1.15 var(--cond); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.wk-name i { font: 400 12px/1.2 var(--sans); font-style: normal; color: var(--gray-text, #626873); }
.wk-side.is-up .wk-name b { color: var(--ink, #14161a); }
.wk-side:not(.is-up) .wk-name b { color: var(--ink-2, #3c4148); }
.wk-score { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 4px; min-width: 64px; text-align: center; }
.wk-score b { font: 700 28px/1 var(--cond); font-variant-numeric: tabular-nums; }
.wk-score i { font: 400 20px/1 var(--sans); font-style: normal; color: var(--gray-text, #626873); }
.wk-score small { flex-basis: 100%; font: 500 11px/1.3 var(--sans); color: var(--gray-text, #626873); }
.wk-score.is-blank b { color: var(--gray-rule-2, #c9ced6); }
.wk-cats { width: 100%; border-collapse: collapse; font: 400 14px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.wk-cats thead th { font: 700 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-text, #626873); padding: 8px 12px 6px; border-top: 1px solid var(--gray-rule, #e4e6ea); }
.wk-cats thead th:first-child { text-align: left; } .wk-cats thead th:last-child { text-align: right; }
.wk-cats td, .wk-cats tbody th { padding: 6px 12px; border-top: 1px solid var(--gray-rule, #e4e6ea); }
.wk-cats td:first-child { text-align: left; } .wk-cats td:last-child { text-align: right; }
.wk-cats tbody th { width: 64px; text-align: center; font: 700 11px/1 var(--sans); letter-spacing: .08em; color: var(--gray-text, #626873); }
.wk-cats td.win { font-weight: 700; color: var(--ink, #14161a); background: var(--paper-2, #f2f3f5); }
.wk-yahoo { display: block; padding: 10px 12px 12px; font: 600 13px/1.2 var(--sans); color: var(--fsn-red-ink, #8d001b); border-top: 1px solid var(--gray-rule, #e4e6ea); }

/* the standings and the moves */
.wk-sec { margin-top: 30px; scroll-margin-top: 90px; }
.wk-divs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .wk-divs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-div h3 { font: 700 14px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; color: var(--ink-2, #3c4148); }
.wk-stand { width: 100%; }
/* the site's data tables never wrap; a club's name here may, or the table runs off a phone */
.wk-stand td:nth-child(2) { white-space: normal; }
@media (max-width: 560px) { .wk-stand th, .wk-stand td { padding-left: 8px; padding-right: 8px; } .wk-stand td a .crest { display: none; } }
.wk-stand td a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-height: 32px; }
.wk-stand td a .crest { margin: 0; }
.wk-stand tr.is-me td { background: var(--fsn-red-wash, #fdf0f2); }
.wk-stand sup { color: var(--fsn-red, #d40026); margin-left: 2px; }
@media (max-width: 560px) { .wk-hide { display: none; } }
.wk-moves { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-rule, #e4e6ea); }
.wk-moves li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-rule, #e4e6ea); }
.wk-moves time { font: 500 12px/1.4 var(--mono); color: var(--gray-text, #626873); }
.wk-move { display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 400 14px/1.4 var(--sans); }
.wk-who { display: inline-flex; align-items: center; gap: 7px; font: 700 13px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .02em; color: var(--ink, #14161a); text-decoration: none; }
.wk-item i { display: inline-block; width: 1em; font-style: normal; font-weight: 700; text-align: center; }
.wk-item.is-in i { color: #1d7a3e; } .wk-item.is-out i { color: var(--fsn-red, #d40026); }
.wk-pos, .wk-how { color: var(--gray-text, #626873); font-size: 12.5px; }
.wk-kind { align-self: flex-start; font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; background: var(--ink, #14161a); color: #fff; }
.wk-leg a { font-weight: 600; color: var(--ink, #14161a); }
@media (max-width: 560px) { .wk-moves li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.wk-foot { margin: 28px 0 8px; font: 400 12.5px/1.5 var(--sans); color: var(--gray-text, #626873); max-width: 70ch; }

/* the strip on the front page */
.ws { background: var(--paper, #fff); border: 1px solid var(--gray-rule, #e4e6ea); border-top: 4px solid var(--ink, #14161a);
  border-radius: var(--radius, 6px); padding: 14px 16px 10px; margin: 0 0 22px; box-shadow: var(--sh-1); }
.ws[hidden] { display: none; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ws-head a { color: var(--ink, #14161a); text-decoration: none; font: 400 14px/1.3 var(--sans); }
.ws-head a b { font: 700 18px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.ws-head a span { color: var(--gray-text, #626873); font-size: 13px; }
.ws-list { list-style: none; margin: 0; padding: 0; }
.ws-list li { border-top: 1px solid var(--gray-rule, #e4e6ea); }
.ws-list li.is-mine { background: var(--paper-2, #f2f3f5); }
.ws-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px; color: var(--ink-2, #3c4148); text-decoration: none; }
.ws-club { font: 600 13.5px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-club.b { text-align: right; }
.ws-club.is-up { color: var(--ink, #14161a); font-weight: 700; }
.ws-score { font: 700 17px/1 var(--cond); font-variant-numeric: tabular-nums; color: var(--ink, #14161a); min-width: 44px; text-align: center; }
.ws-score small { font: 500 11px/1 var(--sans); color: var(--gray-text, #626873); }
.ws-foot { margin: 8px 0 2px; font: 400 12.5px/1.4 var(--sans); color: var(--gray-text, #626873); }
.ws-foot a { color: var(--fsn-red-ink, #8d001b); }

/* /week/sync/ */
.ys-box { background: var(--paper, #fff); border: 1px solid var(--gray-rule, #e4e6ea); border-radius: var(--radius, 6px); padding: 18px 20px; max-width: 640px; margin: 8px 0 30px; font: 400 15px/1.5 var(--sans); }
.ys-box p { margin: 0 0 10px; }
.ys-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--fsn-red, #d40026); color: #fff; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ys-btn.ys-quiet { background: transparent; color: var(--ink-2, #3c4148); border: 1px solid var(--gray-rule-2, #c9ced6); }
.ys-ok b { color: #1d7a3e; }
.ys-err { color: var(--fsn-red-ink, #8d001b); }
.ys-note { font-size: 12.5px; color: var(--gray-text, #626873); }
