/* Price comparison, the "Fair Price Board" in code (/fair-prices/ and its product pages, scripts/sections/fair-prices.mjs). Loaded after styles.css and
   reuses its tokens. Mobile first: at 400px the H1 and line 1 (product, reference price with source and date, in-stock
   range) sit in the first screen, and each table scrolls sideways inside its own box, never the page. */
.fp-header { padding: 22px 0 28px; margin-bottom: 24px; }
.fp-header h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); letter-spacing: var(--h1-tracking); line-height: var(--h1-line); margin-bottom: 10px; }
.fp-answer { margin: 0; max-width: 860px; font-size: 18px; line-height: 1.5; color: #fff; }
.fp-answer a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fp-answer > a:first-child, .fp-answer > strong:first-child { font-weight: 800; }
.fp-answer .fp-p { color: var(--lime); font-weight: 800; }
.fp-answer time { white-space: nowrap; }
.fp-answer .fp-src { font-size: inherit; color: #fff; } /* the source sits on the dark header: full contrast */
.fp-meta { margin: 8px 0 0; font-size: 14px; color: #d4dcf1; }
.fp-free { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: rgba(198, 244, 50, .16); color: var(--lime); font-weight: 700; font-size: 13px; line-height: 1.7; }
.fp-jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.fp-jump a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fp-jump a:hover { color: var(--lime); }
.fp-shell { padding-bottom: 32px; }
.fp-section { margin: 0 0 36px; scroll-margin-top: 80px; }
.fp-section h2 { margin: 0 0 8px; }
.fp-lead { max-width: 760px; margin: 0 0 12px; color: var(--text); line-height: 1.6; }
.fp-muted { margin: 10px 0 0; max-width: 760px; font-size: 14px; line-height: 1.55; color: var(--muted); }
td .fp-muted { margin: 0; }

/* The tables: their own scroll box; the product column stays put while the rest scrolls. position: relative keeps the
   screen-reader-only link notes (.sr-only, absolutely placed) inside the box, so the page itself never scrolls sideways. */
.fp-table-wrap { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.fp-table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fp-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; }
.fp-listings { min-width: 560px; }
.fp-table th, .fp-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.fp-table thead th { position: sticky; top: 0; background: var(--bg-alt); font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.fp-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 170px; max-width: 220px; background: #fff; font-weight: 700; color: var(--ink); box-shadow: 1px 0 0 var(--border); }
.fp-table tbody th[scope="row"] a { color: var(--ink); }
.fp-table tbody th[scope="row"] a:hover { color: var(--blue); }
/* Links in the tables, the plans and the link list: at least a 24px tap (they were 17 to 19px, A11Y-11). */
.fp-table :is(th, td) a, .fp-plan h3 > a, .fp-links a { display: inline-block; padding-block: 3px; min-height: 24px; box-sizing: border-box; }
/* The product names, the store names and the link list: a full 44px row each (A11Y-11, #427). Links inside a sentence keep 24px. */
.fp-table tbody th[scope="row"] a, .fp-plan h3 > a, .fp-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; }
.fp-table tbody th[scope="row"] { padding-block: 2px; }
.fp-links { gap: 0; }
.fp-table tr:last-child > * { border-bottom: 0; }
.fp-group th { position: static; padding: 8px 12px; background: var(--bg-soft); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fp-group th::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--g); vertical-align: 0; }
.fp-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fp-num { text-align: right; font-variant-numeric: tabular-nums; }
.fp-cite { overflow-wrap: anywhere; }
.fp-p { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-src { font-size: 13px; color: var(--muted); }
.fp-table .fp-src { display: block; }
.fp-table time { white-space: nowrap; }
.fp-none { color: var(--muted); font-style: italic; }
.fp-mk { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: #e4ecff; color: var(--blue-dark); font-size: 12px; font-weight: 800; line-height: 1.7; }
.fp-answer .fp-tag { background: rgba(255, 255, 255, .14); color: #fff; }
.fp-stale { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fp-answer .fp-stale { display: inline; color: rgba(255, 255, 255, .8); }
/* "Prices last checked Oct 23: they may have changed." above the answer when the newest store check is old (TOOLS-10, #427). */
.fp-stale.fp-stale-top { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 196, 92, .18); color: #ffd58f; font-size: 13px; font-weight: 800; line-height: 1.5; }

/* Release day in Guelph */
.fp-plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 860px) { .fp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fp-plan { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.fp-plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; font-size: 17px; }
.fp-plan h3 > a { color: var(--ink); }
.fp-plan-none { margin: 0; color: var(--muted); }
.fp-plan-list { margin: 6px 0 0; display: grid; gap: 6px; }
.fp-plan-list dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.fp-plan-list dd { margin: 0; line-height: 1.5; }
.fp-plan-src { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* How we check, why, questions, links */
.fp-how { margin: 0; display: grid; gap: 12px; max-width: 820px; }
.fp-how dt { font-weight: 800; color: var(--ink); }
.fp-how dd { margin: 2px 0 0; line-height: 1.6; }
.fp-facts { margin: 0; padding-left: 20px; max-width: 820px; display: grid; gap: 10px; line-height: 1.6; }
.fp-faq details { max-width: 820px; border-bottom: 1px solid var(--border); padding: 10px 0; }
.fp-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.fp-faq p { margin: 8px 0 0; line-height: 1.6; }
.fp-links { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.fp-about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 720px) { .fp-about-grid.has-photo { grid-template-columns: 220px minmax(0, 1fr); } }
.fp-photo { margin: 0; max-width: 220px; }
.fp-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--bg-alt); }
.fp-photo figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.fp-about p { margin: 0 0 8px; line-height: 1.6; }
.fp-note { max-width: 820px; }

@media (max-width: 480px) {
  .fp-header { padding: 16px 0 22px; }
  .fp-header .breadcrumb { margin-bottom: 10px; }
  .fp-answer { font-size: 16px; }
  .fp-table { font-size: 14px; }
  .fp-table tbody th[scope="row"] { min-width: 140px; max-width: 160px; }
}

/* What the Board is for, first (site review 2026-10-26); the status line under it; last-listed prices; the folded
   "Not priced yet" table. */
.fp-intro { margin: 0 0 10px; max-width: 760px; font-size: 18px; line-height: 1.5; color: #fff; }
.fp-page:not(.fp-product) .fp-answer { font-size: 16px; color: #d4dcf1; }
.fp-page:not(.fp-product) .fp-answer > strong:first-child { color: #fff; }
.fp-last { display: block; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.fp-unpriced { margin: 18px 0 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; padding: 0 16px; }
.fp-unpriced > summary { cursor: pointer; padding: 12px 0; font-weight: 800; color: var(--ink); }
.fp-unpriced[open] { padding-bottom: 14px; }
.fp-unpriced > .fp-muted { margin: 0 0 10px; }
@media (max-width: 560px) { .fp-intro { font-size: 17px; } .fp-page:not(.fp-product) .fp-answer { font-size: 15px; } }

/* First screen (experience review 2026-10-30, FP1): find a product, and the lowest in-stock price of the products people
   look for most, each with its store and day. */
.fp-now { margin: 12px 0 14px; max-width: 760px; }
.fp-now h2 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.fp-find { display: grid; gap: 4px; margin: 0 0 10px; }
.fp-find label { font-size: 13px; font-weight: 800; color: #d4dcf1; }
.fp-find input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm, 8px); border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 16px; }
.fp-find input::placeholder { color: #aab4cf; }
.fp-find input:focus-visible { outline: 2px solid #c8f04b; outline-offset: 2px; }
.fp-find-n { margin: 0; min-height: 0; font-size: 14px; color: #d4dcf1; }
.fp-find-n:empty { display: none; }
.fp-low { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-low li { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm, 8px); background: rgba(255, 255, 255, .05); color: #d4dcf1; line-height: 1.45; }
.fp-low-name { display: block; font-weight: 800; color: #fff; }
.fp-low .fp-p { color: #fff; }
.fp-low-n { display: block; font-size: 13px; color: #aab4cf; }
.fp-low li[hidden], .fp-table tr[hidden] { display: none !important; }
.fp-name { font-weight: 800; }
@media (min-width: 860px) { .fp-low { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Related pages under a product's answer (stay-and-sign-up 2026-11-08): the next click without scrolling past every store. */
.fp-next { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.fp-next a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.fp-next a:hover { background: rgba(255, 255, 255, .12); }
.fp-next a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Pictures, current prices first and something to keep (marketing review 2026-11-14). */
/* A row's picture: the product's own (contained, never cropped), its set's logo on a tile, or its kind drawn in the game's colour. */
.fp-thumb { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm, 8px); background: #fff; overflow: hidden; }
.fp-thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fp-thumb.is-logo { background: #0e1838; padding: 6px; box-sizing: border-box; }
.fp-thumb.is-kind { background: var(--bg-soft); color: var(--g, var(--muted)); }
.fp-thumb.is-kind svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fp-low li { display: flex; gap: 10px; align-items: flex-start; }
.fp-low-body { min-width: 0; }
.fp-watching { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--lime); }
.fp-watching[hidden] { display: none; }
.fp-prod { display: flex; gap: 10px; align-items: center; }
.fp-prod-t { min-width: 0; }
.fp-thumb.is-row { width: 44px; height: 44px; border: 1px solid var(--border); }
@media (max-width: 480px) { .fp-thumb.is-row { width: 36px; height: 36px; } }

/* A product page's first lines: its picture beside "From CA$X at <store> · N stores in stock", then Watch and Join. */
.fp-hero { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; }
.fp-hero-t { min-width: 0; flex: 1; }
.fp-thumb.is-hero { width: 80px; height: 80px; padding: 4px; box-sizing: border-box; }
@media (min-width: 720px) { .fp-thumb.is-hero { width: 128px; height: 128px; padding: 6px; } .fp-hero { gap: 20px; } }
.fp-product .fp-answer { font-size: 19px; }
.fp-dot { margin: 0 2px; color: rgba(255, 255, 255, .7); }
.fp-instock { font-weight: 700; color: #fff; white-space: nowrap; }
.fp-watch { margin: 12px 0 0; }
.fp-watch[hidden] { display: none; }
.fp-watch-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--lime); border-radius: 999px; background: transparent; color: var(--lime); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.fp-watch-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fp-watch-btn:hover { background: rgba(198, 244, 50, .12); }
.fp-watch-btn[aria-pressed="true"] { background: var(--lime); color: var(--navy, #0b1430); }
.fp-watch-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fp-watch-note { margin: 6px 0 0; font-size: 14px; color: #d4dcf1; }
.fp-watch-note:empty { display: none; }
.fp-join { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #d4dcf1; }
.fp-join a { color: #fff; font-weight: 800; }
html.is-member .fp-join { display: none; }
@media (max-width: 480px) { .fp-product .fp-answer { font-size: 17px; } }
@media (prefers-reduced-motion: no-preference) { .fp-watch-btn { transition: background-color .15s, color .15s; } }

/* "Canadian price drops and new card shows": one plain email box (scripts/lib/subscribe.mjs priceMailBox). */
.fp-mail { max-width: 760px; margin: 0 0 32px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.fp-mail h2 { margin: 0 0 2px; font-size: 19px; }
.fp-mail > p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.fp-mail .newsletter-form { gap: 10px; color: var(--text); }
.fp-mail .newsletter-status[data-kind=ok] { color: var(--ok-text, #1f7a35); }
.fp-mail .newsletter-status[data-kind=error] { color: var(--error-text, #b42318); }
.fp-mail .newsletter-status:empty { display: none; }
