/* CardSum Statement design: every page that is not a card review
   (home, compare, eligibility check, fine print guide, contact, about).
   Same tokens and rules as the Flipkart Axis template. See DESIGN.md. */

/* ---------- Shared ---------- */
html[data-design="statement"]:not(.cs-review) #app > h1,
html[data-design="statement"]:not(.cs-review) .about > h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 750; margin: 8px 0 6px; }
html[data-design="statement"]:not(.cs-review) #app > h1 + p.muted { max-width: none; margin: 0 0 22px; }
html[data-design="statement"] :is(input, select, textarea) { border-radius: 6px; }
html[data-design="statement"] :is(.chip span, .chip-btn, .badge, .jump a, .slot-add) { border-radius: 6px; }
html[data-design="statement"] .badge { font-size: .8rem; }
html[data-design="statement"] .badge.v-conflict { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 500; }
html[data-design="statement"] :is(.tile, .elig, .side-panel, .block, .result, .empty, .fees, .verdict, .calc-box, .apply-cta, .table-scroll) { box-shadow: none; }
html[data-design="statement"] .compare-tray { box-shadow: none; border-top: 1px solid var(--text); }

/* Phone: the top menu is now a list behind the menu button (N1, 2026-11-20), so it no longer fades at the edge */

/* ---------- Home: headline as a statement header, not a box ---------- */
html[data-design="statement"]:not(.cs-review) #app > section.hero { background: none; border: 0; border-top: 1px solid var(--text); border-radius: 0; box-shadow: none;
  margin: 18px 0 10px; padding: 28px 0 26px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px 48px; align-items: end; }
html[data-design="statement"]:not(.cs-review) #app > section.hero h1 { grid-row: 1 / span 2; margin: 0; font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
html[data-design="statement"]:not(.cs-review) #app > section.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
html[data-design="statement"]:not(.cs-review) #app > section.hero .btn { justify-self: start; }
@media (max-width: 760px) {
  html[data-design="statement"]:not(.cs-review) #app > section.hero { grid-template-columns: 1fr; padding: 20px 0; margin-top: 10px; }
  html[data-design="statement"]:not(.cs-review) #app > section.hero h1 { grid-row: auto; }
}

/* Filters: one quiet row on a rule */
html[data-design="statement"] section.filters { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
html[data-design="statement"] #results > p.muted { margin: 0 0 10px; }

/* Card tiles: flat, square-ish, no hover tilt */
html[data-design="statement"] .tile { border-radius: 6px; border: 1px solid var(--line); background: var(--surface); transition: none; }
html[data-design="statement"] .tile:hover { transform: none; box-shadow: none; border-color: var(--text); }
html[data-design="statement"] .tile-link { transform: none !important; transition: none; }
html[data-design="statement"] .tile :is(h2, h3) { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
html[data-design="statement"] .tile .stats { border-top: 1px solid var(--line); padding-top: 10px; }
html[data-design="statement"] .tile .stats dd { font-variant-numeric: tabular-nums; font-weight: 600; }
html[data-design="statement"] .tile .stats dd.big { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--accent); letter-spacing: -.02em; }

/* ---------- Eligibility check + Contact: forms on plain paper ---------- */
html[data-design="statement"] .elig { border-radius: 6px; border: 1px solid var(--line); border-top: 1px solid var(--text); }
html[data-design="statement"] .side-panel { border-radius: 6px; background: transparent; border: 0; border-top: 1px solid var(--text); padding: 16px 0 0; }
html[data-design="statement"] #eligOut > .block { background: transparent; border: 0; border-top: 1px solid var(--text); border-radius: 0; padding: 16px 0 0; }
html[data-design="statement"] :is(.bureaus a, .aside-link) { border-radius: 6px; background: var(--surface); }
html[data-design="statement"] .result { border-radius: 6px; }
html[data-design="statement"] .note { border-radius: 6px; }

/* ---------- Fine print guide: a checklist of rows, not 14 boxes ---------- */
html[data-design="statement"] .checklist { gap: 0 40px; border-top: 1px solid var(--text); }
html[data-design="statement"] .checklist li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
html[data-design="statement"] .checklist li::marker { font-family: var(--display); font-weight: 800; color: var(--accent); }
html[data-design="statement"] .checklist li strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }

/* ---------- Compare ---------- */
html[data-design="statement"] .empty { border-radius: 6px; }
html[data-design="statement"] .cmp thead th { font-family: var(--display); }

/* ---------- About ---------- */
html[data-design="statement"]:not(.cs-review) .about .block { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0; margin: 0; }
html[data-design="statement"]:not(.cs-review) .about .block.about-who { border-top: 1px solid var(--text); }

/* =================================================================
   Home: "Every card, added up". The one bold thing on the page is the
   You keep column; everything around it stays quiet (rules, no boxes).
   ================================================================= */
html[data-design="statement"] .home-sum { border-top: 1px solid var(--text); margin: 18px 0 40px; padding-top: 22px; }
html[data-design="statement"] .hs-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 48px; align-items: end; margin-bottom: 22px; }
html[data-design="statement"] .hs-head h1 { grid-row: 1 / span 2; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: .98; letter-spacing: -.035em; }
html[data-design="statement"] .hs-head p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 44ch; }
html[data-design="statement"] .hs-presets { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-design="statement"] .hs-presets button { font: inherit; font-size: .92rem; font-weight: 500; min-height: 40px; padding: 8px 14px; cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
html[data-design="statement"] .hs-presets button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
html[data-design="statement"] .hs-presets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html[data-design="statement"] .hs-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
html[data-design="statement"] .hs-table thead th { font-size: .82rem; font-weight: 600; color: var(--muted); text-align: right; padding: 0 0 8px 16px; border-bottom: 1px solid var(--text); white-space: nowrap; }
html[data-design="statement"] .hs-table thead th:first-child { text-align: left; padding-left: 0; }
html[data-design="statement"] .hs-table tbody :is(th, td) { padding: 14px 0 14px 16px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; white-space: nowrap; }
html[data-design="statement"] .hs-table tbody th { text-align: left; padding-left: 0; font-weight: 400; white-space: normal; }
html[data-design="statement"] .hs-table tbody th a { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
html[data-design="statement"] .hs-table tbody th a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
html[data-design="statement"] .hs-table tbody th a > span { display: grid; line-height: 1.25; }
html[data-design="statement"] .hs-thumb { width: 64px; aspect-ratio: 1.586; object-fit: cover; border-radius: 4px; flex: none; }
html[data-design="statement"] .hs-keep b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); }
html[data-design="statement"] .hs-keep span { display: block; margin-top: 4px; }
html[data-design="statement"] .hs-rest { margin: 14px 0 0; }
html[data-design="statement"] .hs-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 0; }
html[data-design="statement"] .hs-cta .muted { max-width: 60ch; }

@media (max-width: 760px) {
  html[data-design="statement"] .hs-head { grid-template-columns: 1fr; }
  html[data-design="statement"] .hs-head h1 { grid-row: auto; }
  /* Phone: each card becomes a two-line statement entry. */
  html[data-design="statement"] .hs-table thead { display: none; }
  html[data-design="statement"] .hs-table, html[data-design="statement"] .hs-table tbody { display: block; }
  html[data-design="statement"] .hs-table tbody tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "card keep" "spend keep" "year fee"; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  html[data-design="statement"] .hs-table tbody :is(th, td) { border: 0; padding: 0; }
  html[data-design="statement"] .hs-table tbody th { grid-area: card; }
  html[data-design="statement"] .hs-table .hs-keep { grid-area: keep; align-self: center; }
  html[data-design="statement"] .hs-table [data-hs="spend"] { grid-area: spend; text-align: left; color: var(--muted); font-size: .85rem; }
  html[data-design="statement"] .hs-table [data-hs="spend"]::before { content: "Spend a month "; }
  html[data-design="statement"] .hs-table td:nth-child(3) { grid-area: year; text-align: left; color: var(--muted); font-size: .85rem; }
  html[data-design="statement"] .hs-table td:nth-child(3)::before { content: "Back a year "; }
  html[data-design="statement"] .hs-table td:nth-child(4) { grid-area: fee; color: var(--muted); font-size: .85rem; }
  html[data-design="statement"] .hs-thumb { width: 52px; }
}
html[data-design="statement"] .spend-pill .pill-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
html[data-design="statement"] .ov-sample { margin: 6px 0 0; padding: 6px 10px; background: var(--accent-soft); border-radius: var(--radius); display: inline-block; }

/* contact: name, email and phone on one row; message box fills the height beside the side panel */
#contactForm .field-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { #contactForm .field-row { grid-template-columns: 1fr; } }

/* ---------- One hover for every link card (bureaus, "Before you write", Follow SAM) + the footer question ---------- */
/* Same move everywhere: the border turns ink and the card fills with the soft accent. No lift, no slide. */
html[data-design="statement"] :is(.bureaus a, .aside-link) { border: 1px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
html[data-design="statement"] :is(.bureaus a, .aside-link):hover,
html[data-design="statement"] :is(.bureaus a, .aside-link):focus-visible { border-color: var(--text); background: var(--accent-soft); transform: none; }
/* Follow SAM: the brand colours were lost, so the white text sat on paper. Same hover as the cards: outline appears. */
.soc { border: 1px solid transparent; transition: border-color .15s ease, filter .15s ease; }
.soc-youtube { background: #D4141C; }
.soc-instagram { background: linear-gradient(45deg, #F9A03F 0%, #E1306C 50%, #7B3FE4 100%); }
.soc:hover, .soc:focus-visible { filter: none; border-color: var(--text); }
/* "Have a question? Contact us": the highlighter pen (--hl) marks it, it fills on hover */
.foot-col > a.foot-ask { color: var(--text); font-weight: 600; padding: 2px 4px; margin-left: -4px; border-radius: 3px;
  background: linear-gradient(transparent 58%, var(--hl, #FFE45C) 58%); transition: background-color .15s ease; }
.foot-col > a.foot-ask:hover, .foot-col > a.foot-ask:focus-visible { color: var(--text); background: var(--hl, #FFE45C); }

/* Bank help page (#/bank-help): four banks, each a ruled table of "what to do" rows */
.bankhelp .bh-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.bankhelp .bh-jump button { min-height: 44px; font: inherit; cursor: pointer; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-weight: 600; background: var(--surface); transition: border-color .2s, background-color .2s, color .2s; }
.bankhelp .bh-jump button:hover, .bankhelp .bh-jump button:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); outline: none; }
.bankhelp .bh-jump button:active { transform: translateY(1px); }
.bankhelp .bh-jump button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .bankhelp .bh-jump button { transition: none; } }
.bankhelp h2 svg, .bankhelp dt svg { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-right: 6px; flex: none; }
.bankhelp .bh-bank { scroll-margin-top: 80px; }
.bankhelp .bh-hot dt span { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 60%, color-mix(in srgb, #d6454a 30%, transparent) 60%, color-mix(in srgb, #d6454a 30%, transparent) 94%, transparent 94%); }
.bankhelp .bh-tel { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bankhelp .bh-src { margin-top: 12px; }

/* Bank help uses the full width: three "before you call" points side by side, the bank's rows in two columns */
.bankhelp .bh-safe ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; }
.bankhelp .bh-safe li { padding-left: 14px; border-left: 3px solid var(--accent); }
.bankhelp .bh-rows { margin: 14px 0 0; border-top: 1px solid var(--text); columns: 2; column-gap: 56px; }
.bankhelp .bh-row { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bankhelp .bh-row dt { font-weight: 700; margin-bottom: 8px; }
.bankhelp .bh-row dd { margin: 0; }
.bankhelp .bh-row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bankhelp .bh-row li { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .bankhelp .bh-safe ul { grid-template-columns: 1fr; }
  .bankhelp .bh-rows { columns: 1; }
}

/* Bank help: escalation levels run across the full width, one column per level */
.bankhelp .bh-lv-h { margin: 28px 0 4px; font-size: 1.15rem; }
.bankhelp .bh-lv-h svg { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-right: 6px; }
.bankhelp .bh-levels { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
@media (min-width: 1100px) { .bankhelp .bh-levels { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px 24px; } }
@media (max-width: 700px) { .bankhelp .bh-levels { grid-template-columns: 1fr; } }
.bankhelp .bh-levels > li { border-top: 3px solid var(--accent); padding-top: 10px; display: grid; align-content: start; gap: 6px; }
.bankhelp .bh-levels > li:last-child { border-top-color: var(--text); }
.bankhelp .bh-lv-n { font-size: .85rem; color: var(--muted); font-weight: 600; }
.bankhelp .bh-levels ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.bankhelp .bh-levels li li { overflow-wrap: anywhere; font-size: .95rem; }

/* Compare: REAL SAVINGS row on top (SAM, 2026-11-20). Same maths as the home table. */
html[data-design="statement"] .cmp tr.keep-row th { color: var(--text); font-size: .9rem; }
html[data-design="statement"] .cmp tr.keep-row th > .small { display: block; font-weight: 400; margin-top: 2px; }
html[data-design="statement"] .cmp .cmp-shop { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
html[data-design="statement"] .cmp .cmp-shop button { min-height: 32px; padding: 4px 8px; font-size: .78rem; }
html[data-design="statement"] .cmp .keep-num { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Compare on a phone: every card side by side, each row's label on its own line above the values */
@media (max-width: 760px) {
  html[data-design="statement"] .cmp { display: block; min-width: calc(var(--cols, 2) * 160px); table-layout: auto; }
  html[data-design="statement"] .cmp :is(thead, tbody) { display: block; }
  html[data-design="statement"] .cmp tr { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  html[data-design="statement"] .cmp thead th:first-child { display: none; }
  html[data-design="statement"] .cmp thead th { position: static; width: auto; border: 0; padding: 10px 8px; }
  html[data-design="statement"] .cmp tbody th { grid-column: 1 / -1; width: auto; background: transparent; border: 0; padding: 10px 8px 2px; }
  html[data-design="statement"] .cmp td { min-width: 0; border: 0; padding: 4px 8px 10px; overflow-wrap: anywhere; }
  html[data-design="statement"] .cmp .keep-num { font-size: 1.5rem; }
}
