/* Cancel Atlas — search-first homepage prototype. Built on the site's design tokens (styles.css :root).
   CSP-safe: external stylesheet only, no inline style. Search is a client-side enhancement over the
   open API; the page also ships crawlable H1 + intro + real <a> links so AI/non-JS crawlers see content. */

/* ---- hero -------------------------------------------------------------------------------- */
.sf-hero { text-align: center; padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(1.4rem, 3vw, 2.2rem); }
.sf-hero .overline { margin-bottom: .9rem; }
.sf-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.08; margin: 0 auto .7rem;
  max-width: none; white-space: nowrap; }
@media (max-width: 460px) { .sf-hero h1 { white-space: normal; } }  /* wrap only on very small screens */
.sf-lede { font-family: var(--sans); font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--ink-soft);
  max-width: none; margin: 0 auto 1.7rem; line-height: 1.6; }

/* search box */
.sf-form { max-width: 100%; margin: 0 auto; position: relative; }
.sf-inputwrap { display: flex; align-items: center; gap: .5rem; background: var(--bg-elev);
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .35rem .35rem .35rem 1.2rem;
  box-shadow: var(--shadow); transition: border-color .15s; }
.sf-inputwrap:focus-within { border-color: var(--accent); }
.sf-inputwrap svg { flex: 0 0 auto; color: var(--ink-mute); }
#sf-q { flex: 1; border: none; background: none; font: inherit; font-family: var(--sans);
  font-size: 1.05rem; color: var(--ink); padding: .65rem 0; min-width: 0; outline: none; }
.sf-go { flex: 0 0 auto; border: none; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font-family: var(--sans); font-weight: 650; font-size: .95rem;
  padding: .65rem 1.4rem; cursor: pointer; }
.sf-go:hover { filter: brightness(1.06); }

/* instant results dropdown */
.sf-results-wrap { max-width: 100%; margin: .5rem auto 0; text-align: left; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sf-hit { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.sf-hit:last-child { border-bottom: none; }
.sf-hit:hover { background: var(--bg-band); }
.sf-hit-name { font-weight: 620; }
.sf-hit-meta { font-size: .82rem; margin-left: auto; white-space: nowrap; }
.sf-results-wrap .muted { padding: .9rem 1rem; }

/* shared grade chip */
.cc-chip { display: inline-block; min-width: 1.5rem; text-align: center; padding: .05rem .45rem;
  border-radius: 6px; font-family: var(--sans); font-weight: 800; font-size: .82rem; color: #fff; }
.cc-chip-good { background: var(--val-good); } .cc-chip-mid { background: var(--val-mid); } .cc-chip-bad { background: var(--val-bad); }

/* ---- browse ------------------------------------------------------------------------------ */
.sf-section { padding: 1.8rem 0; }
.sf-section h2 { font-size: 1.2rem; margin: 0 0 1.1rem; }
.sf-quick { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 auto 1.4rem; }
.sf-chip { font-family: var(--sans); font-size: .9rem; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .5rem 1.1rem; }
.sf-chip:hover { border-color: var(--accent); color: var(--accent); }

.sf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .sf-cols { grid-template-columns: 1fr; } }
.sf-list { list-style: none; margin: 0; padding: 0; }
.sf-list li { border-bottom: 1px solid var(--line); }
.sf-row { display: flex; align-items: center; gap: .7rem; padding: .85rem .3rem; text-decoration: none;
  color: var(--ink); font-family: var(--sans); }
.sf-row:hover { color: var(--accent); }
.sf-row .sf-hit-name { flex: 1; min-width: 0; }
.sf-row .sf-hit-meta { font-size: .8rem; }

.sf-industries { display: flex; flex-wrap: wrap; gap: .5rem; }

/* crawlable "notable + browse-all" strip kept visible (AI/non-JS fallback) */
.sf-notable { font-family: var(--sans); }
.sf-notable a { margin-right: .2rem; }
.sf-browseall { display: inline-block; margin-top: 1.5rem; font-family: var(--sans); font-weight: 650; }

/* ---- monetization (labeled, subordinate, reserved-size = no CLS) ------------------------- */
/* Sponsored uses the SAME card treatment as Featured (consistent); the label + copy differentiate it. */
.sf-sponsored { max-width: 100%; margin: 1.6rem auto; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; font-family: var(--sans); text-align: left; }

/* hero brand tagline (the asymmetry) + stat strip (carried from the old hero) */
.sf-tagline { font-family: var(--sans); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.15; letter-spacing: -.01em; margin: 0 auto 1.4rem; max-width: none; color: var(--ink); }
.sf-tagline em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--signal); }
.sf-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-around;
  gap: clamp(1.2rem, 4vw, 3rem); padding: 1.2rem 0 0; margin: 1.4rem auto .3rem; max-width: none;
  border-top: 1px solid var(--line); }
.sf-stats li { font-family: var(--sans); text-align: center; flex: 1 1 0; min-width: 14ch; }
.sf-stats strong { display: block; font-size: 1.9rem; font-weight: 720; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.sf-stats span { display: block; font-size: .82rem; color: var(--ink-mute); line-height: 1.4; margin-top: .25rem; }
.sf-foot { font-family: var(--sans); font-size: .72rem; text-align: center; margin: 0 0 1.3rem; }

/* featured supporter — accent-tinted card (redesigned, matches the old slot) */
.sf-featured { max-width: 100%; margin: 1.8rem auto; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; font-family: var(--sans); text-align: left; }
.sf-featured-h { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.sf-featured .sf-featured-body, .sf-sponsored .sf-featured-body { margin: 0 0 .8rem; color: var(--ink-soft); }
.sf-featured-cta { display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: .42rem 1.05rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.sf-featured-cta:hover { background: var(--accent); color: var(--accent-ink); }
.sf-featured .sf-indep, .sf-sponsored .sf-indep { display: block; margin: .85rem 0 0; font-size: .78rem; }
.sf-adlabel { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: .1rem .4rem; margin-bottom: .4rem; }
.sf-featured-body { margin: .2rem 0; font-size: .95rem; color: var(--ink-soft); }
.sf-indep { display: inline-block; margin-top: .3rem; font-size: .78rem; color: var(--ink-mute); }

/* ---- FAQ (server-rendered; matches FAQPage schema) -------------------------------------- */
/* Fill the column width like the rest of the home sections (chips, popular checks, support) — both the
   container AND the question/answer text span full width so it visually matches the surrounding blocks. */
.sf-faqs { max-width: none; }
.sf-faq summary, .sf-faq p { max-width: none; }
.sf-faq { border-bottom: 1px solid var(--line); padding: .2rem 0; }
.sf-faq summary { font-family: var(--sans); font-weight: 620; cursor: pointer; padding: .7rem 0; color: var(--ink); }
.sf-faq p { margin: 0 0 .9rem; color: var(--ink-soft); }

/* ---- support / rate card ----------------------------------------------------------------- */
.sf-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.2rem 0; }
@media (max-width: 100%) { .sf-rate { grid-template-columns: 1fr 1fr; } }
.sf-rate-card { background: var(--bg-elev); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem; font-family: var(--sans); }
.sf-rate-card strong { display: block; font-size: .95rem; }
.sf-rate-card span { display: block; font-size: 1.3rem; font-weight: 720; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.sf-rate-card p { font-size: .8rem; margin: 0; }

.sf-support-intro { font-family: var(--sans); color: var(--ink-soft); max-width: none; margin: 0 0 1rem; line-height: 1.55; }

/* Home uses more of the viewport width (rails/sections); hero text stays centered-narrow) */
.sf-home { max-width: 1280px; }
/* hero text stays a readable centered measure even though structural elements fill the width */
.sf-hero .overline, .sf-hero h1, .sf-tagline, .sf-lede { margin-left: auto; margin-right: auto; }

/* ============================================================================================
   DATA-PUBLICATION POLISH (2026-06-11) — overlines on every section, ranked industry cards with
   proportional bars, grade-chipped popular checks, a data toolbar, refined FAQ, bounded support band.
   Goal: read like a data publication, not a generic stacked content page. Scoped so the hero
   quick-pills (.sf-quick .sf-chip) are untouched. CSP-safe (bar widths via .sf-w-* classes).
   ============================================================================================ */
.sf-section > .overline { margin: 0 0 .4rem; }
.sf-section > h2 { margin-top: 0; }

/* Hardest/Easiest rail heads */
.sf-rails .sf-cols { margin-top: .5rem; }
.sf-h-rank { display: inline-block; font-weight: 800; color: var(--ink-mute); margin-right: .15rem; }

/* Industry chips → ranked data cards: name + tabular count + proportional bar (normalized to max). */
.sf-industries { gap: .6rem; }
.sf-industries .sf-chip { flex: 1 1 210px; max-width: 300px; display: block; border-radius: var(--radius-sm);
  padding: .6rem .85rem .55rem; background: var(--bg-elev); border: 1px solid var(--line); }
.sf-industries .sf-chip:hover { border-color: var(--accent); color: var(--ink); }
.sf-chip-row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.sf-chip-name { font-weight: 620; color: var(--ink); }
.sf-chip-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-mute); font-size: .82rem; }
.sf-chip-bar { display: block; height: 4px; margin-top: .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-mute) 18%, transparent); overflow: hidden; }
.sf-chip-fill { display: block; height: 100%; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 80%, var(--ink)); }

/* CSP-safe width steps for the industry bars (style-src 'self' has no 'unsafe-inline'). */
.sf-w-5{width:5%}.sf-w-10{width:10%}.sf-w-15{width:15%}.sf-w-20{width:20%}.sf-w-25{width:25%}
.sf-w-30{width:30%}.sf-w-35{width:35%}.sf-w-40{width:40%}.sf-w-45{width:45%}.sf-w-50{width:50%}
.sf-w-55{width:55%}.sf-w-60{width:60%}.sf-w-65{width:65%}.sf-w-70{width:70%}.sf-w-75{width:75%}
.sf-w-80{width:80%}.sf-w-85{width:85%}.sf-w-90{width:90%}.sf-w-95{width:95%}.sf-w-100{width:100%}

/* Popular checks → grade-chipped links (each previews its A–F grade + score). */
.sf-pops { display: flex; flex-wrap: wrap; gap: .55rem; }
.sf-pop { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--sans);
  color: var(--ink); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .85rem .3rem .4rem; }
.sf-pop:hover { border-color: var(--accent); }
.sf-pop-name { font-weight: 600; }
.sf-pop-score { font-variant-numeric: tabular-nums; font-size: .78rem; }
.sf-notable-foot { margin: .95rem 0 0; font-size: .85rem; }

/* Data toolbar — even, deliberate row instead of middot leftovers. */
.sf-toolbar { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.3rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--line); font-family: var(--sans); }
.sf-toolbar a { font-weight: 650; font-size: .9rem; text-decoration: none; color: var(--accent); }
.sf-toolbar a:hover { text-decoration: underline; }

/* FAQ: custom rotating chevron, serif answers, inset rule. */
.sf-faq summary { list-style: none; display: flex; align-items: center; gap: .65rem; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::before { content: ""; flex: 0 0 auto; width: .5rem; height: .5rem; margin: 0 .1rem;
  border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute);
  transform: rotate(-45deg); transition: transform .18s ease; }
.sf-faq[open] summary::before { transform: rotate(45deg); border-color: var(--accent); }
.sf-faq p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.62; color: var(--ink-soft);
  padding-left: 1.15rem; }

/* Support band — bounded, 2-col (principle left, enquiry CTA right); distinct from editorial flow. */
.sf-support-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.4rem 2.6rem;
  background: var(--bg-band); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.1rem); }
.sf-support-band h2 { margin: .1rem 0 .55rem; }
.sf-support-band .sf-support-intro { margin: 0; max-width: 62ch; }
.sf-support-cta { justify-self: end; }
@media (max-width: 680px) { .sf-support-band { grid-template-columns: 1fr; } .sf-support-cta { justify-self: start; } }

/* Transparency-floor callout (advocacy: companies with no published cancellation page) */
.sf-floor { border-left: 3px solid var(--signal); padding-left: 1.1rem; }
.sf-floor h2 { margin: 0 0 .5rem; }
.sf-floor-intro { max-width: 70ch; line-height: 1.6; }
