/* CardSum Statement design (primary). Promoted from site_design_lab on 2026-11-17.
   Rules and reasons: CardSite/DESIGN.md. Template page: Flipkart Axis review.
   html[data-design="statement"] = every page; html.cs-review = card review pages only. */

/* =================================================================
   Shared fixes for B and C
   ================================================================= */
html[data-design="statement"] body { font-family: var(--font); font-feature-settings: "tnum" 1; }
html[data-design="statement"] body.ta { font-family: var(--font-ta); }

/* No all-caps labels */
html.cs-review[data-design="statement"] :is(.fee-label, .score-label) { text-transform: none; letter-spacing: 0; }

/* Tiers: drop the brand-colour stripe and the tiny inline bar; rate sits on its own */
html.cs-review[data-design="statement"] ol.tiers .tier::before { display: none; }
html.cs-review[data-design="statement"] ol.tiers .tier-bar { display: none; }
html.cs-review[data-design="statement"] ol.tiers .tier-top { display: block; }
html.cs-review[data-design="statement"] ol.tiers .tier-rate small { font-size: .55em; margin-left: 1px; }

/* No decorative gradients */
html.cs-review[data-design="statement"] :is(.earn, .apply-cta, .calc-box, .tier, .tier.top) { background: var(--surface); }

/* Quiet prototype banner: still there, not shouting */
html[data-design="statement"] .proto-banner { background: var(--surface-2); color: var(--muted); border: 0; font-size: .8rem; padding: 5px 16px; }

/* Honesty note replacing the loud badge */
html.cs-review[data-design="statement"] .lab-check { font-size: .85rem; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
html.cs-review[data-design="statement"] .lab-check:hover { color: var(--text); }

/* Byline on one calm line */
html.cs-review[data-design="statement"] .byline .by-role { color: var(--muted); }

/* Signed verdict */
html.cs-review[data-design="statement"] .lab-sign { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
html.cs-review[data-design="statement"] .lab-sign .ls-txt { display: grid; line-height: 1.3; }
html.cs-review[data-design="statement"] .lab-sign .ls-txt span { color: var(--muted); font-size: .85rem; }

/* Hero layout (looks differ per variant) */
html.cs-review[data-design="statement"] .lab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 48px; align-items: end; }
html.cs-review[data-design="statement"] .lh-title { margin: 0 0 6px; }
html.cs-review[data-design="statement"] .lh-q { margin: 0 0 12px; color: var(--muted); }
html.cs-review[data-design="statement"] .lh-presets { display: flex; flex-wrap: wrap; gap: 6px; }
html.cs-review[data-design="statement"] .lh-presets button { font: inherit; font-size: .92rem; font-weight: 500; min-height: 40px; padding: 8px 14px; cursor: pointer; }
html.cs-review[data-design="statement"] .lh-num { margin: 0; font-family: var(--display); font-weight: 800; line-height: .92; font-variant-numeric: tabular-nums; }
html.cs-review[data-design="statement"] .lh-sub { margin: 10px 0 0; max-width: 46ch; }
html.cs-review[data-design="statement"] .lh-link { margin-top: 10px; padding: 0; background: none; border: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.cs-review[data-design="statement"] :is(.lh-presets button, .lh-link):focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }
@media (max-width: 700px) {
  html.cs-review[data-design="statement"] .lab-hero { grid-template-columns: 1fr; align-items: start; }
}

/* Mobile: show that the menus scroll sideways */
@media (max-width: 760px) {
  html.cs-review[data-design="statement"] nav.jump { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
}

/* Body text line length */
html.cs-review[data-design="statement"] #app :where(section p, .know-list li div) { max-width: 72ch; }

/* =================================================================
   B. STATEMENT: the page reads like a clean card statement.
   Bricolage Grotesque headings, IBM Plex Sans body, Hind Madurai Tamil.
   Deep money green, one highlighter yellow that marks every catch.
   ================================================================= */
html[data-design="statement"] {
  --bg: #F7F5F0; --surface: #FFFFFF; --surface-2: #EFECE5; --text: #1A1C1A; --muted: #5E5B54; --line: #DEDAD1; /* warm off-white (2026-11-21), was green-grey #F2F4F1 */
  --accent: #0B5D4B; --accent-ink: #FFFFFF; --accent-soft: #DCEBE5; --hl: #FFE45C;
  --radius: 6px; --shadow: none;
  --font: "IBM Plex Sans", system-ui, sans-serif; --font-ta: "Hind Madurai", "IBM Plex Sans", sans-serif;
  --display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
}
html[data-design="statement"][data-theme="dark"] {
  --bg: #0E0E0D; --surface: #171716; --surface-2: #201F1D; --text: #ECEAE5; --muted: #A3A097; --line: #2F2E2B; /* near-black, was green-black #0D1412 */
  --accent: #5CC8A6; --accent-ink: #06201A; --accent-soft: #163A30; --hl: rgba(255, 220, 60, .32);
}
html[data-design="statement"] :is(h1, h2, h3.big, .score, .fee-amt, .tier-top) { font-family: var(--display); }
html.cs-review[data-design="statement"] h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 750; }
html.cs-review[data-design="statement"] #app h2 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; max-width: none; }
html[data-design="statement"] .btn { border-radius: 6px; }
html.cs-review[data-design="statement"] .icon-btn { border-radius: 6px; }

/* Sections lose their boxes: rules and space instead */
html.cs-review[data-design="statement"] #app > section { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 32px 0; margin: 0; }
html.cs-review[data-design="statement"] #app > section.lab-hero { border-top: 1px solid var(--text); padding: 28px 0 36px; margin-top: 20px; }

/* Hero */
html.cs-review[data-design="statement"] .lh-title { font-family: var(--font); font-size: 1.05rem; font-weight: 600; max-width: none; }
html.cs-review[data-design="statement"] .lh-presets button { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
html.cs-review[data-design="statement"] .lh-presets button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
html.cs-review[data-design="statement"] .lh-num { font-size: clamp(3.4rem, 9vw, 6.4rem); letter-spacing: -.045em; color: var(--accent); }
html.cs-review[data-design="statement"] .lh-sub { color: var(--muted); }
html.cs-review[data-design="statement"] .lh-sub b { color: var(--text); }
html.cs-review[data-design="statement"] .lh-link { color: var(--accent); }

/* Jump nav: plain underlined tabs, not pills */
html.cs-review[data-design="statement"] nav.jump a { border: 0; border-radius: 0; background: none; padding: 9px 2px; margin-right: 14px; border-bottom: 2px solid transparent; color: var(--muted); }
html.cs-review[data-design="statement"] nav.jump a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* Cashback rates as statement rows */
html.cs-review[data-design="statement"] .usp { background: none; border-left: 3px solid var(--accent); border-radius: 0; font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; padding: 4px 0 4px 16px; }
html.cs-review[data-design="statement"] ol.tiers { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--text); }
html.cs-review[data-design="statement"] ol.tiers .tier { display: grid; grid-template-columns: 6.5rem minmax(0, 12rem) minmax(0, 1fr); align-items: center; gap: 4px 20px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 14px 0; }
html.cs-review[data-design="statement"] ol.tiers .tier-top { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
html.cs-review[data-design="statement"] ol.tiers .tier-note { color: var(--muted); }
@media (max-width: 700px) { html.cs-review[data-design="statement"] ol.tiers .tier { grid-template-columns: 5rem 1fr; } html.cs-review[data-design="statement"] ol.tiers .tier-note { grid-column: 2; } }

/* Fees as a statement */
html.cs-review[data-design="statement"] .fee-pairs { gap: 0; border-top: 1px solid var(--text); }
html.cs-review[data-design="statement"] .fee-pair { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
html.cs-review[data-design="statement"] .fee-pair + .fee-pair { border-left: 1px solid var(--line); }
html.cs-review[data-design="statement"] :is(.fp-top, .fp-row, .fp-gives, .fp-waiver) { background: transparent; }
html.cs-review[data-design="statement"] .fp-gives { border-top: 1px dashed var(--line); }
html.cs-review[data-design="statement"] .fee-label { font-weight: 700; color: var(--text); font-size: .95rem; }
html.cs-review[data-design="statement"] .fee-amt { font-size: 1.7rem; font-weight: 800; }
@media (max-width: 700px) { html.cs-review[data-design="statement"] .fee-pair + .fee-pair { border-left: 0; } }

/* The catches get the highlighter */
html.cs-review[data-design="statement"] .know-list li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
html.cs-review[data-design="statement"] .know-list .know-ic { background: transparent; }
html.cs-review[data-design="statement"][data-hl="marker"] .know-list strong { background: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Verdict: a signed note, the one boxed thing after the hero */
html.cs-review[data-design="statement"] #app > section.verdict { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; margin: 24px 0 48px; }
html.cs-review[data-design="statement"] .verdict-score { background: transparent; border-radius: 0; padding: 0 24px 0 0; border-right: 1px solid var(--line); }
html.cs-review[data-design="statement"] .score-label { color: var(--muted); font-weight: 600; }
html.cs-review[data-design="statement"] .score { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
@media (max-width: 700px) { html.cs-review[data-design="statement"] .verdict-score { border-right: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); } }

/* Calculator and apply box: flat */
html.cs-review[data-design="statement"] .calc-box { border: 1px solid var(--line); border-radius: 6px; }
html.cs-review[data-design="statement"] #app > section.apply-cta { background: var(--surface); border: 2px solid var(--accent); border-radius: 6px; padding: 24px; margin: 24px 0; }
html.cs-review[data-design="statement"] :is(.chip-btn, .chip span, .badge, .jump a) { border-radius: 6px; }


/* Anchor jumps land below the sticky menu + card bar; --jump-off is kept current by statement.js */
html { scroll-padding-top: calc(var(--jump-off, 120px) + 12px); }

/* audit fix 2026-11-20 (P3): no single word alone on a paragraph's last line, and headings wrap into even lines */
html[data-design="statement"] :is(p, li, dd, figcaption, blockquote) { text-wrap: pretty; }
html[data-design="statement"] :is(h1, h2, h3, h4) { text-wrap: balance; }
