/* TrackRestocks Stage 25: the Stage 22/24 system carried to every other page.
   Mobile first. Sentence-case labels in the body font, one status style (dot + sentence, never a red pill),
   item cards built from the same parts as the homepage, and a reading column for guides and legal pages. */

.s25-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- section labels across the homepage: sentence case, body font ---------- */
.s11-eyebrow { font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--green-2); }
.s17-season { font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.s17-sample-tag { font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; }
.s11-step i { font-family: inherit; font-variant-numeric: tabular-nums; }

/* ---------- page shell for hub, store, 404 and reading pages ---------- */
.s25-main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 56px; }
.s25-crumb { margin: 0 0 18px; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 6px; }
.s25-crumb a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.s25-crumb a:hover { color: var(--text); text-decoration-color: currentColor; }
.s25-pagehead { max-width: 760px; }
.s25-h1 { margin: 0; font-size: clamp(30px, 7.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.s25-lead { margin: 14px 0 0; max-width: 40em; font-size: clamp(15.5px, 1.9vw, 18px); line-height: 1.55; color: var(--muted); }
.s25-h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); line-height: 1.15; font-weight: 750; letter-spacing: -.02em; color: var(--text); }
.s25-sub { margin: 8px 0 0; max-width: 46em; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.s25-empty { margin: 12px 0 0; color: var(--muted); }

.s25-storelinks { margin: 16px 0 0; font-size: 14px; color: var(--dim); }
.s25-storelinks a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.s25-storelinks a:hover { text-decoration-color: currentColor; }

/* category jump links: one scrolling row on phones */
.s25-jump { margin: 24px -20px 0; padding: 0 20px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.s25-jump::-webkit-scrollbar { display: none; }
.s25-jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--panel); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.s25-jump a span { color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.s25-jump a:hover { border-color: #3F3F46; }

.s25-sec { margin-top: 40px; scroll-margin-top: 72px; }
.s25-sec > .s25-h2 { scroll-margin-top: 72px; }
.s25-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.s25-grid > li { min-width: 0; }
@media (min-width: 680px) { .s25-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .s25-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* product_card(): homepage card parts in a list item */
.s25-card { margin: 0; }
.s25-card-foot { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.s25-card-foot a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.s25-card-foot a:hover { color: var(--text); text-decoration-color: currentColor; }
.s25-card .s22-strip { margin: 0; }

/* status_badge(): same dot-and-sentence status as the cards */
.s16-status.s25-status { display: inline-flex; margin: 0; }
.s16-status.is-pre { color: #A5B4FC; }
.s16-status.is-pre::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* plain link lists ("Also tracked at other stores", 404 suggestions) */
.s25-linklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.s25-linklist li { border-bottom: 1px solid var(--line); }
.s25-linklist a { display: block; padding: 12px 2px; color: var(--text); text-decoration: none; font-size: 15px; }
.s25-linklist a:hover { color: var(--green-2); }
@media (min-width: 760px) { .s25-linklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }

/* closing call to action */
.s25-cta { margin-top: 48px; padding: 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel);
  display: grid; gap: 10px; justify-items: start; }
.s25-cta p { margin: 0; max-width: 44em; color: var(--muted); line-height: 1.55; }
.s25-cta .s11-btn { margin-top: 6px; }
@media (min-width: 900px) { .s25-cta { padding: 28px 32px; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; }
  .s25-cta .s25-h2, .s25-cta p { grid-column: 1; } .s25-cta .s11-btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; } }

/* ---------- reading pages (guides, about, contact, legal) ---------- */
.s25-doc { max-width: 760px; }
.tr-prose.s25-prose { margin: 0; padding: 0; border: 0; background: none; color: #D4D4D8; font-size: 16px; line-height: 1.7; }
.s25-prose h1 { margin: 0; font-size: clamp(30px, 7vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.s25-prose .tr-meta { margin: 12px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.s25-prose h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.s25-prose h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; color: var(--text); }
.s25-prose p { margin: 12px 0 0; }
.s25-prose > p:first-of-type:not(.tr-meta) { margin-top: 0; }
.s25-prose ul, .s25-prose ol { margin: 12px 0 0; padding-left: 1.4em; }
.s25-prose ul { list-style: disc; }
.s25-prose ol { list-style: decimal; }
.s25-prose li { margin-top: 8px; padding-left: 4px; }
.s25-prose li::marker { color: var(--dim); font-variant-numeric: tabular-nums; }
.s25-prose ol > li::marker { color: var(--green-2); font-weight: 700; }
.s25-prose a { color: var(--green-2); text-decoration: underline; text-decoration-color: rgba(52,211,153,.4); text-underline-offset: 3px; }
.s25-prose a:hover { text-decoration-color: currentColor; }
.s25-prose strong { color: var(--text); }
.s25-prose code { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }
.s25-prose .tr-cta { margin-top: 16px; font-size: 19px; }
.s25-prose .tr-cta a { text-decoration: none; border-bottom: 2px solid rgba(52,211,153,.4); }
.s25-prose table, .s25-prose .tr-table { font-size: 14px; }
.s25-prose th { color: var(--text); border-color: var(--line-2); }
.s25-prose td { border-color: var(--line); }
.s25-prose .tr-table-wrap { background: var(--panel); border-color: var(--line-2); }
.s25-prose .tr-placeholder { color: #111; }

/* ---------- 404 and other dead ends ---------- */
.s25-state { max-width: 760px; padding-top: 48px; }
.s25-code { margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.s25-code::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #71717A; }
.s25-code.is-ok { color: #6EE7B7; } .s25-code.is-ok::before { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.s25-actions { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.s25-state .s25-h2 { margin-top: 44px; font-size: 19px; }

/* ---------- thank-you (no site header on this page) ---------- */
.s25-ty { width: 100%; max-width: 480px; margin: 40px auto; padding: 28px 24px; border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--panel); text-align: left; }
.s25-ty-logo { margin-bottom: 26px; }
.s25-ty-h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.s25-ty p { line-height: 1.55; }
.s25-ty-btn { margin-top: 24px; width: 100%; justify-content: center; padding-block: 13px; }
.s25-ty-back { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.s25-ty #telegram { border: 1px solid rgba(16,185,129,.45); border-radius: 14px; background: rgba(16,185,129,.07) !important; }

/* ---------- My Alerts login ---------- */
.s11-panel.s25-login { max-width: 440px; margin: 48px auto; padding: 24px; }
.s25-login .s11-h2 { margin-top: 0; font-size: 26px; }
@media (max-width: 480px) { .s11-panel.s25-login { margin: 28px auto; } }

/* ---------- product page below the live box: FAQ rows in the dark theme ---------- */
#main details.border-b { border-color: var(--line) !important; }
#main details summary .text-berry { color: var(--green-2) !important; }
.s25-card .s22-title { font-weight: 700; letter-spacing: -.01em; }

/* ---------- homepage below the fold ---------- */
.s18-log th { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.s11-step h3 { font-weight: 700; letter-spacing: -.01em; }
.s11-step i { font-size: 12.5px; }

/* ---------- Stage 25 review fixes ---------- */
.s22-msrp.is-above { color: #FCD34D; }
.s25-unlinked { margin: 14px 0 0; }
.s25-logempty p { margin: 8px auto 0; max-width: 46em; }
.s11-faq .s25-faq-more, .s25-faq-more { padding: 0; border-top: 0; margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.s25-faq-more a { color: var(--green-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* /faq page */
.s25-faq-toc { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.s25-faq-toc a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel); color: var(--text) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.s25-faq-toc a span { color: var(--dim); font-weight: 500; }
.s25-prose h2[id] { scroll-margin-top: 72px; }
.s25-prose .s25-faq-list { margin-top: 12px; }
.s25-prose .s25-faq-list details { scroll-margin-top: 72px; }
.s25-prose .s25-faq-list summary { color: var(--text); }
.s25-prose .s25-faq-list details p { margin: 0; }

/* Stage 25b: with the "Your alert" fact there are 4 facts; on desktop show them 2 by 2 so none wraps alone */
@media (min-width: 900px) {
  .s24-facts:has(> div:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 18px; }
}
