/* DCP design system. Every colour, font and radius comes from the theme as a CSS variable,
   set in the page head from theme.json; nothing brand-specific is written here. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
:lang(hi) body, body:lang(hi) { line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--logo-blue); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Header and hero, on the brand's dark background */
.site-header {
  background: var(--header-bg);
  color: var(--text-on-dark);
}
.site-header__bar {
  max-width: 30rem; margin: 0 auto; padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.site-header__logo { height: 1.75rem; width: auto; display: block; }
.site-header__logo--square { height: 2.75rem; border-radius: 4px; }  /* The combined name and symbol logo. */
.site-header__home { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-height: 2.75rem; }
.site-header__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.lang-switch { margin-left: auto; display: flex; gap: .25rem; }
.lang-switch a {
  color: var(--text-on-dark); text-decoration: none; font-weight: 600; font-size: .95rem;
  min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-button); border: 1.5px solid transparent;
}
.lang-switch a[aria-current="true"] { border-color: var(--brand-gold); color: var(--brand-gold); }
.hero { max-width: 30rem; margin: 0 auto; padding: .5rem 1rem 3.5rem; }
.hero h1 { color: var(--text-on-dark); }
.hero h1 em { font-style: normal; color: var(--brand-gold); }
.hero__rule { width: 4.5rem; height: 4px; border-radius: 2px; background: var(--brand-gold); margin: .75rem 0; }
.hero p { color: var(--text-on-dark); opacity: .92; margin: 0; }
/* Banner with the theme's hero image: below the text, flush right, its base resting on the card. */
.hero--image { padding-bottom: 2.5rem; }
.hero__image {
  display: block; width: 78%; max-width: 21rem; height: auto; margin: .25rem -1rem 0 auto;
  pointer-events: none; user-select: none;
}
.page { position: relative; z-index: 2; }

/* Main card, lifted over the hero */
.page { max-width: 30rem; margin: -2.5rem auto 0; padding: 0 1rem 2rem; }
.card {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(16, 36, 60, .08), 0 8px 24px rgba(16, 36, 60, .08);
  padding: 1.25rem;
}
.card + .card { margin-top: 1rem; }

/* Step indicator */
.steps { margin-bottom: 1.25rem; }
.steps__label { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.steps__bar { display: flex; gap: .375rem; }
.steps__bar span { flex: 1; height: 8px; border-radius: 4px; background: #d5dbe3; }  /* Still to come: grey. */
.steps__bar span.done, .steps__bar span.current { background: var(--brand-gold); }  /* Done and this one. */

/* Target the link fixes */
.target {
  display: flex; gap: .75rem; align-items: center;
  background: var(--notice-surface); border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1.25rem;
}
.target__label { font-size: .85rem; color: var(--text-muted); display: block; }
.target__name { font-weight: 600; }

/* Amount choices: real radio buttons, styled as large tap targets */
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; border: 0; padding: 0; margin: 0 0 1rem; }
.amounts legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.amount input { position: absolute; opacity: 0; }
.amount span {
  display: flex; align-items: center; justify-content: center; min-height: 3.5rem;
  border: 1.5px solid var(--border-subtle); border-radius: 12px; background: var(--surface);
  font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; cursor: pointer;
}
.amount input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--text-on-dark); }
.amount input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Form fields */
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: .375rem; }
.field .hint { display: block; font-size: .9rem; color: var(--text-muted); margin: -.125rem 0 .375rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 3.25rem; padding: .75rem .875rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-input);
}
textarea.input { min-height: 5.5rem; resize: vertical; }
.input--rupee { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-input); background: var(--surface); }
.input--rupee span { padding-left: .875rem; font-weight: 600; }
.input--rupee input { border: 0; min-height: 3.125rem; flex: 1; padding: .75rem .5rem; font: inherit; background: transparent; }
.input--rupee:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.input--rupee input:focus-visible { outline: none; }  /* One ring round the ₹ and the field together. */
.input--otp { font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: .6em; text-align: center; }
.field--error .input { border-color: var(--error); }
.field__error { color: var(--error); font-size: .9rem; font-weight: 500; margin-top: .375rem; display: flex; gap: .375rem; }
.field__error::before { content: "!"; display: inline-flex; width: 1.2rem; height: 1.2rem; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--error); color: #fff; font-size: .8rem; font-weight: 700; }
.input-row { display: flex; gap: .5rem; }
.input-row .input:first-child { flex: 0 0 6.5rem; }

/* Tick boxes and choice cards */
.check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; cursor: pointer; }
.check input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; flex: none; accent-color: var(--brand-navy); }
.choice { display: block; border: 1.5px solid var(--border-subtle); border-radius: 12px; padding: .875rem 1rem; margin-bottom: .5rem; cursor: pointer; }
.choice input { accent-color: var(--brand-navy); margin-right: .5rem; }
.choice:has(input:checked) { border-color: var(--brand-navy); background: var(--page); }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 3.5rem;
  padding: .75rem 1.25rem; border-radius: var(--radius-button); font-family: var(--font-heading);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn--primary { background: var(--brand-yellow); border-color: var(--brand-yellow-border); color: var(--brand-navy); }
.btn--primary:hover { filter: brightness(.96); }
.btn--secondary { background: transparent; border-color: var(--brand-navy); color: var(--brand-navy); }
.btn--quiet { background: transparent; color: var(--logo-blue); min-height: 3rem; font-weight: 600; }
.btn + .btn { margin-top: .625rem; }
.actions { background: var(--surface); padding: .75rem 0 .25rem; margin-top: .5rem; }
/* Long forms only: the main button stays in reach at the bottom of the screen. Short screens keep it
   in place, so it never covers the field being typed in. */
.actions--sticky { position: sticky; bottom: 0; }
/* A focused field always scrolls clear of a pinned button bar. */
html { scroll-padding-bottom: 6.5rem; }

/* Messages */
.notice { border-left: 4px solid var(--brand-gold); background: var(--notice-surface); padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.notice--error { border-left-color: var(--error); background: var(--error-surface); }
.small { font-size: .9rem; color: var(--text-muted); }
.trust { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .9rem; color: var(--text-muted); margin-top: .75rem; }

/* Review list */
.summary { margin: 0 0 1rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--border-subtle); }
.summary dt { color: var(--text-muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total dd { font-family: var(--font-heading); font-size: 1.25rem; }
/* "Change" and "Correct my name" on their own line under the value, in every list (SK and Reviewer). */
.summary dd .change-link, .kv dd .change-link, .fixed-name .change-link { display: block; margin: .15rem 0 0; font-weight: 400; }

/* Result screens */
.result { text-align: center; padding: .5rem 0 1rem; }
.result__icon {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 2.25rem; font-weight: 700; color: #fff;
}
.result__icon--success { background: var(--success); }
.result__icon--failed { background: var(--error); }
.result__icon--pending { background: var(--brand-gold); color: var(--brand-navy); }
.result__icon--retry { background: var(--brand-gold); color: var(--brand-navy); }
.result__amount { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--brand-navy); margin: .25rem 0 .75rem; }
.share-ask { text-align: center; font-weight: 600; margin: 1.25rem 0 .75rem; }

/* The thank-you moment: the tick pops in and confetti falls once (none with reduced motion). */
.celebrate { position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0;
  animation-name: confetti-fall; animation-timing-function: cubic-bezier(.25, .6, .4, 1); animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(32rem) rotate(var(--turn, 360deg)); }
}
.result__icon--pop { animation: result-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes result-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .result__icon--pop { animation: none; } .confetti { display: none; } }

/* Donation list */
.donations { list-style: none; margin: 0; padding: 0; }
.donations li { display: flex; justify-content: space-between; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--border-subtle); }
.donations .amount-value { font-family: var(--font-heading); font-weight: 700; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: .125rem .5rem; border-radius: 999px; }
.badge--success { background: var(--success-surface); color: var(--success); }
.badge--failed { background: var(--error-surface); color: var(--error); }
.badge--pending { background: var(--notice-surface); color: var(--text); }
.badge--muted { background: var(--page); color: var(--text-muted); }
.year-total { font-weight: 600; margin: .5rem 0 .25rem; }
.more-attempts { margin-top: .75rem; }
.more-attempts summary { cursor: pointer; color: var(--text-muted); font-size: .9rem; padding: .5rem 0; }

/* Information pages */
.prose h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.25rem 0 .375rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .375rem; }
.prose a { overflow-wrap: anywhere; }

/* Footer */
.site-footer { max-width: 30rem; margin: 0 auto; padding: 1rem 1rem 2.5rem; font-size: .9rem; color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .5rem 0; }
.site-footer a { color: var(--text-muted); }

/* Review bar for mock-ups only: deliberately unlike the design */
.mockbar {
  font: 600 .85rem/1.3 system-ui, sans-serif; background: #FFFBEA; color: #3D3200;
  border-bottom: 2px dashed #B58900; padding: .5rem 1rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}
.mockbar a { color: #3D3200; }
.mockbar .spacer { flex: 1; }

/* Home banner on the donation start page (SK, 13 November 2026; revised after the design review).
   Phones: a short crop of the girl, the heading on navy below her face, the card lifted over the navy.
   Mid-size screens: the same, with a wider 16:9 band. Computers: the whole picture, with the heading and
   the card in its calm navy third, so the amounts and Continue show without scrolling. */
body.home .page { max-width: none; margin: 0; padding: 0 0 2rem; }
/* Phones: the wider classroom strip, so the first row of amounts shows on the first screen; the heading below
   the girl, never over her (SK, 21 November 2026). */
.home-hero__photo {
  aspect-ratio: 1040 / 585; position: relative;
  background: var(--header-bg) var(--hero-band) center top / cover no-repeat;
}
.home-hero__photo { overflow: hidden; }
.home-hero__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(var(--header-bg-rgb), 0) 82%, var(--header-bg) 100%);
}
.home-hero__band { background: var(--header-bg); }
.home-hero__text { position: relative; z-index: 2; max-width: 30rem; margin: 0 auto; padding: .75rem 1rem 3.25rem; }
.home-hero__text h1 { color: var(--text-on-dark); font-size: clamp(1.05rem, 5.6vw, 1.6rem); white-space: nowrap; margin-bottom: 0; }  /* One line (SK). */
.home-hero__text .hero__rule { margin: .5rem 0; }
@media (max-width: 47.99rem) { .home-hero__card .amount span { min-height: 3rem; } .home-hero__card .amounts { gap: .5rem; } }
.home-hero__text h1 em { font-style: normal; color: var(--brand-gold); }
.home-hero__text p { color: var(--text-on-dark); margin: 0; }
.home-hero__card { position: relative; z-index: 2; max-width: 28rem; margin: -2.5rem auto 0; }
@media (max-width: 30rem) { .home-hero__card { margin-left: 1rem; margin-right: 1rem; } }
@media (min-width: 48rem) {
  .home-hero__photo { aspect-ratio: auto; height: 18rem; max-height: none; background-image: var(--hero-band); background-position: center 20%; }
  .home-hero__photo::after { background: linear-gradient(to bottom, rgba(var(--header-bg-rgb), 0) 70%, var(--header-bg) 100%); }
  .home-hero__text { margin-top: 0; padding-top: 1.25rem; }
  .home-hero__text h1 { font-size: 2rem; }
}
@media (min-width: 64rem) {
  body.home .site-header__bar { max-width: none; padding-left: 6vw; padding-right: 6vw; }
  .home-hero {
    position: relative; display: grid; grid-template-columns: 1fr min(30rem, 42vw); align-content: center;
    min-height: min(calc(100svh - 4.5rem), 46rem); padding: 1.25rem 6vw 1.5rem;
    background: var(--header-bg) var(--hero-wide) left 15% / cover no-repeat;
  }
  .home-hero { overflow: hidden; }
  .home-hero__wide-media { display: block; background: inherit; z-index: 0; }
  .home-hero__band, .home-hero__card { z-index: 2; }
  .home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(var(--header-bg-rgb), 0) 38%, rgba(var(--header-bg-rgb), .82) 58%, rgba(var(--header-bg-rgb), .9) 100%);
  }
  .home-hero__photo { display: none; }
  .home-hero__band { grid-column: 2; background: none; position: relative; }
  .home-hero__text { max-width: none; margin: 0; padding: 0; }
  .home-hero__text h1 { font-size: 2rem; margin-bottom: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
  .home-hero__text .hero__rule { margin: .5rem 0; }
  .home-hero__card { grid-column: 2; max-width: none; width: 100%; margin: 1rem 0 0; padding: 1rem 1.25rem; }
  .home-hero__card .amounts { margin-bottom: .75rem; }
  .home-hero__card .field { margin-bottom: .75rem; }
  .home-hero__card .notice { padding: .625rem .875rem; margin-bottom: 0; }
  .home-hero__card .actions--sticky { position: static; box-shadow: none; margin: .25rem 0 0; padding: .5rem 0 0; }
  .home-hero__card .amounts { grid-template-columns: repeat(4, 1fr); }
  .home-hero__card .amount span { min-height: 2.75rem; font-size: 1rem; }
}
/* The sticky Continue bar: below computer widths a white bar with a soft edge, clear of the phone's home
   bar; on computers the card fits the window, so the button simply sits at its foot. */
.actions--sticky {
  margin-left: -1.25rem; margin-right: -1.25rem; padding: .75rem 1.25rem calc(.5rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 12px -8px rgba(16, 36, 60, .25); border-radius: 0 0 var(--radius-card) var(--radius-card);
}
@media (min-width: 64rem) {
  .actions--sticky { position: static; box-shadow: none; margin-left: 0; margin-right: 0; padding: .75rem 0 .25rem; }
}
/* The language buttons on one line, the same height; Indian scripts sit a little lower (R-181). */
.lang-switch a { line-height: 1; }
.lang-switch a[lang="hi"], .lang-switch a[lang="pa"], .lang-switch a[lang="kok"] { padding-top: .2em; }

/* Continue stays off until an amount is chosen (SK, 13 November 2026). */
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Life in the home picture (SK, 15 November 2026), switched on in the theme: a slow zoom and a short muted
   loop. The layers repeat the photo, so the zoom moves it and the video can fade in over it. */
.home-hero__media, .home-hero__wide-media { position: absolute; inset: 0; background: inherit; }
@media (max-width: 63.99rem) { .home-hero__wide-media { display: none; } }
.home-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  opacity: 0; transition: opacity 1s ease;
}
/* Each clip is cropped like its photo, so it sits exactly where the photo sits (SK, 21 November 2026). */
@media (min-width: 48rem) { .home-hero__media .home-hero__video { object-position: center 20%; } }
.home-hero__wide-media .home-hero__video { object-position: left 15%; }
.home-hero__video.is-playing { opacity: 1; }
/* 12% closer over 12 seconds, centred on the girl's face, then back (SK, 15 November 2026: noticeable but
   calm; the first try, 8% over 24 seconds, could not be seen). It starts moving at once. */
.home-hero--zoom .home-hero__media, .home-hero--zoom .home-hero__wide-media {
  transform-origin: 50% 45%; animation: hero-zoom 12s cubic-bezier(.35, 0, .55, 1) infinite alternate;
}
.home-hero--zoom .home-hero__wide-media { transform-origin: 25% 28%; }  /* Computers: her face, left of the text. */
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .home-hero--zoom .home-hero__media, .home-hero--zoom .home-hero__wide-media { animation: none; }
  .home-hero__video { display: none; }
}

/* Donate to as cards (P8, 15 November 2026): with the script, only the chosen card is open. */
.donate-to__levels { border: 0; padding: 0; margin: 0 0 1rem; }
.choice__body { display: grid; gap: .5rem; margin-top: .75rem; }
/* A card with its own lists: the label fills the card's top, so a tap anywhere on it chooses the card
   (SK, 15 November 2026); the lists sit below, inside the card's padding. */
div.choice { padding: 0; }
div.choice > label { display: flex; align-items: center; min-height: 3rem; padding: .875rem 1rem; cursor: pointer; }
div.choice > .choice__body { margin-top: 0; padding: 0 1rem .875rem; }
.donate-to.is-scripted .choice__body { display: none; }
.donate-to.is-scripted .choice.is-open .choice__body { display: grid; }
.choice__body [hidden] { display: none; }
.change-link { font-family: var(--font-body); font-size: .85rem; font-weight: 500; margin-left: .5rem; }

/* R-89 (one name per number): the note under a fixed name, the file field, and name changes in My donations. */
.field-note { margin: .5rem 0 0; }
.input--file { padding: .5rem; height: auto; }
.donations__name-change { color: var(--text-muted); }
.btn--small { padding: .45rem .9rem; font-size: .95rem; min-height: 0; }
.fixed-name { font-weight: 600; font-size: 1.05rem; margin: 0 0 .5rem; }
.field label.file-pick { display: inline-flex; font-weight: 600; margin: .25rem 0 .375rem; cursor: pointer; }
.file-chosen { display: block; overflow-wrap: anywhere; }

/* Holders (R-91, R-95, R-96; mock-ups settled 19 November 2026) */
.stack .btn + .btn { margin-top: .625rem; }
.btn { text-align: center; }
.lead { font-size: 1.05rem; font-weight: 600; margin: 0 0 1rem; }
.choose-one { margin: 0 0 .5rem; }
.number { border: 0; padding: 0; margin: 0 0 1.25rem; }
.number legend { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; margin-bottom: .5rem; padding: 0; }
.number__date { margin: -.25rem 0 .5rem; }
.choice { display: flex; align-items: flex-start; }
.choice input[type=radio] { width: 1.25rem; height: 1.25rem; flex: none; margin: .2rem .75rem 0 0; accent-color: var(--brand-navy); }
.reveal { display: none; margin: .25rem 0 .75rem 2rem; }
.choice:has(input:checked) + .reveal { display: block; }
.kv { margin: 0; }
.kv div { display: flex; flex-direction: column; gap: .125rem; padding: .6rem 0; border-bottom: 1px solid var(--border-subtle); }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 600; }
.textlink { display: block; text-align: center; font-size: .95rem; color: var(--logo-blue); text-decoration: underline; padding: .75rem 0; }
.fy-heading { margin: .75rem 0 .25rem; font-weight: 600; }
.fy-table { margin-bottom: 1rem; }
.aside { font-size: .8rem; color: var(--text-muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--logo-blue); text-decoration: underline; cursor: pointer; }

/* The person menu (T-51, SK, 20 November 2026), the same pattern as 2.0's header (R-45, next's app-me). */
.app-me { position: relative; margin-left: .75rem; }
.app-me summary { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid;
  place-items: center; background: var(--brand-gold); color: var(--brand-navy); font-weight: 800; }
.app-me summary::-webkit-details-marker { display: none; }
.app-me summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Items are rows, not underlined links (SK and Reviewer, 21 November 2026): the name and number at the top, set apart;
   full-width rows with hover and focus states; Sign out last, below its own line; the current page marked. */
.app-me__menu { position: absolute; right: 0; top: 3rem; z-index: 10; min-width: 15rem; max-width: calc(100vw - 2rem);
  background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  padding: .375rem 0; }
.app-me__who { display: grid; gap: .125rem; padding: .625rem 1rem .75rem; border-bottom: 1px solid var(--border-subtle); }
.app-me__who strong { color: var(--text); overflow-wrap: anywhere; }
.app-me__who span { color: var(--text-muted); font-size: .9rem; }
.app-me__list { list-style: none; margin: 0; padding: .25rem 0; }
.app-me__item { display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: .5rem 1rem; box-sizing: border-box;
  background: none; border: 0; font: inherit; text-align: left; color: var(--text); text-decoration: none; cursor: pointer; }
.app-me__item:hover { background: var(--page); }
.app-me__item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.app-me__item[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-gold); }
.app-me__item--strong { font-weight: 600; color: var(--logo-blue); }
.app-me__end { margin: 0; padding-top: .25rem; border-top: 1px solid var(--border-subtle); }

/* The whole card is the tap target (P8, again on 21 November 2026): a card with an opening part keeps its label
   full width, which the later flex rule for single-label cards had narrowed to its words. */
div.choice { display: block; }
div.choice > label { width: 100%; box-sizing: border-box; }

/* ==========================================================================================================
   Laptops (SK, 21 November 2026; Laptop Layout Proposal Nov 21): screens fit the window without scrolling.
   Every rule here is for 64rem (1024 points) and wider; phones and tablets keep everything above.
   The title band becomes a navy panel beside the card; type and controls are laptop sized; Continue stays
   in view at the foot of the window.
   ========================================================================================================== */
.title-band { background: var(--header-bg); color: var(--text-on-dark); }   /* Phones: the band, as before. */

@media (min-width: 64rem) {
  body { font-size: .9375rem; line-height: 1.5; }
  :lang(hi) body, body:lang(hi) { font-size: 1rem; line-height: 1.6; }
  h1 { font-size: 1.5rem; }
  .small, .field .hint, .hint, .aside, .badge { font-size: .8125rem; }   /* Notices stay body size: the donor acts on them. */
  :lang(hi) .small, :lang(hi) .hint, :lang(hi) .aside { font-size: .875rem; }   /* Devanagari needs 14px at least. */

  /* Header: 48 points, as wide as the content below */
  .site-header__bar { max-width: 60rem; padding: .375rem 1.5rem; }
  .site-header__logo--square { height: 2.25rem; }
  .site-header__title { font-size: .9375rem; }
  .lang-switch a { min-width: 2.25rem; min-height: 2.25rem; font-size: .875rem; }
  .app-me summary { width: 2.25rem; height: 2.25rem; font-size: .875rem; }
  .app-me__menu { top: 2.75rem; font-size: .9375rem; }
  .app-me__item { min-height: 2.5rem; }

  /* The title as a panel beside the card */
  .layout:has(> .title-band > *) {
    display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; align-items: start;
    max-width: 60rem; margin: 0 auto; padding: 1.25rem 1.5rem;
  }
  .layout:has(> .title-band > *) > .title-band { background: none; position: sticky; top: 1rem; }
  .layout:has(> .title-band > *) .hero {
    background: var(--header-bg); border-radius: var(--radius-card); padding: 1.25rem; margin: 0; max-width: none;
  }
  .layout:has(> .title-band > *) .hero__rule { margin: .5rem 0; }
  .layout:has(> .title-band > *) > .page { max-width: none; margin: 0; padding: 0 0 1rem; }
  .card { padding: 1rem 1.25rem; }

  /* Steps, fields, buttons */
  .steps { margin-bottom: .75rem; }
  .steps__bar span { height: 6px; }
  .field { margin-bottom: .75rem; }
  .field label, .field .label { font-size: .9375rem; margin-bottom: .25rem; }
  .field .hint { margin: -.125rem 0 .25rem; }
  .input, select.input { min-height: 2.5rem; padding: .5rem .75rem; }
  textarea.input { min-height: 4rem; }
  .input--rupee input { min-height: 2.375rem; padding: .5rem; }
  .btn { min-height: 2.75rem; font-size: .9375rem; padding: .5rem 1rem; }
  .notice { padding: .5rem .75rem; margin-bottom: .75rem; }
  .check { margin-bottom: .75rem; }
  .choice { padding: .5rem .875rem; }
  div.choice > label { min-height: 2.75rem; padding: .5rem .875rem; }

  /* Continue: at the foot of the window on every width; quiet on laptops */
  .actions--sticky {
    position: sticky; bottom: 0; margin: .5rem 0 0; padding: .5rem 0;
    box-shadow: none; border-top: 1px solid var(--border-subtle); border-radius: 0;
  }
  html { scroll-padding-bottom: 4.5rem; }

  /* Forms: short fields in pairs */
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; align-items: start; }
  .field-grid > .field--wide { grid-column: 1 / -1; }

  /* Summaries and lists: one line per row */
  .summary div { padding: .375rem 0; }
  .summary .total dd { font-size: 1.125rem; }
  .kv div { flex-direction: row; justify-content: space-between; gap: 1rem; padding: .375rem 0; }
  .kv dd { text-align: right; }
  .kv dd, .summary dd { min-width: 0; overflow-wrap: anywhere; }   /* A long email or address wraps, never overflows. */
  .donations li { padding: .5rem 0; align-items: center; }
  .donations li > div:first-child { display: flex; flex-wrap: wrap; column-gap: 1rem; align-items: baseline; }
  .donations li > div:last-child { display: flex; gap: .75rem; align-items: center; }

  /* Footer on one line */
  .site-footer { max-width: 60rem; margin: 0 auto; padding: .75rem 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
  .site-footer p, .site-footer nav { margin: 0; }

  /* Donate to: the levels two across; the chosen level's lists in a row below */
  /* The levels stay two across in their order; the chosen level's lists come after all of them, in one column
     (state, then the search box, then the list it searches), as on phones (SK, 21 November 2026). */
  .donate-to.is-scripted .donate-to__levels { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .donate-to.is-scripted div.choice { display: contents; }
  .donate-to.is-scripted div.choice > label {
    margin: 0; border: 1.5px solid var(--border-subtle); border-radius: 12px; cursor: pointer;
  }
  .donate-to.is-scripted div.choice:has(input:checked) > label { border-color: var(--brand-navy); background: var(--page); }
  .donate-to.is-scripted div.choice > label { order: 0; }
  .donate-to.is-scripted div.choice.is-open > .choice__body {
    order: 1; grid-column: 1 / -1; grid-template-columns: 1fr; padding: .25rem 0 0;
  }

  /* Amount screen */
  .home-hero { min-height: min(calc(100svh - 3rem), 46rem); padding: 1rem 6vw; }
  .home-hero__text h1 { font-size: 1.75rem; }
  .home-hero__card { margin-top: .75rem; padding: 1rem 1.25rem; }
  .home-hero__card .amount span { min-height: 2.5rem; font-size: .9375rem; }
  .home-hero__card .amounts { gap: .5rem; }
  .home-hero__card .field label { display: inline; margin-right: .5rem; }
  .home-hero__card .field .hint { display: inline; }
  .home-hero__card .input--rupee { margin-top: .25rem; }
  body.home .site-footer { max-width: none; padding-left: 6vw; padding-right: 6vw; }
}

/* Short laptops: a window 640 points tall or less */
@media (min-width: 64rem) and (max-height: 40rem) {
  h1 { font-size: 1.375rem; }
  .home-hero__text h1 { font-size: 1.5rem; }
  .home-hero__text p { display: none; }   /* Repeats the card's own "Choose an amount". */
  .card, .home-hero__card { padding-top: .75rem; padding-bottom: .75rem; }
  .btn { min-height: 2.5rem; }
  .input, select.input { min-height: 2.25rem; padding: .375rem .625rem; }
  textarea.input { min-height: 3.5rem; }
  .home-hero__card .amount span { min-height: 2.25rem; }
  div.choice > label { min-height: 2.5rem; }
  .field { margin-bottom: .625rem; }
}

/* Touch laptops keep finger-sized targets */
@media (min-width: 64rem) and (pointer: coarse) {
  .btn, .input, select.input, .home-hero__card .amount span, div.choice > label, .app-me__item { min-height: 2.75rem; }
}

/* The place type-ahead on Donate to (SK and Reviewer, 22 November 2026): one box, suggestions underneath. On
   phones, tapping it opens it full screen with Back at the top, so the keyboard never hides the suggestions. */
.place-select.is-enhanced { display: none; }   /* Still in the form: it carries the chosen code. */
.typeahead { position: relative; }
.typeahead__bar { display: none; }
.typeahead .autocomplete__wrapper { position: relative; }
.typeahead .autocomplete__input {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-input); box-sizing: border-box;
}
.typeahead .autocomplete__input--focused { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: none; }
.typeahead .autocomplete__hint { display: none; }
.typeahead .autocomplete__menu {
  margin: .25rem 0 0; padding: .25rem 0; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface);
  box-shadow: 0 8px 24px rgba(16, 36, 60, .14); max-height: 20rem; overflow-y: auto; font: inherit;
}
.typeahead .autocomplete__menu--overlay { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; }
.typeahead .autocomplete__option { padding: .625rem 1rem; border: 0; cursor: pointer; color: var(--text); }
.typeahead .autocomplete__option strong { font-weight: 700; }
.typeahead .autocomplete__option--odd { background: none; }
.typeahead .autocomplete__option--focused, .typeahead .autocomplete__option:hover { background: var(--page); color: var(--text); outline: none; }
.typeahead .autocomplete__option--no-results { color: var(--text-muted); cursor: default; background: none; }
.typeahead .autocomplete__dropdown-arrow-down { display: none; }
.typeahead__field { position: relative; }
.typeahead .autocomplete__input { padding-right: 2.75rem; }
.typeahead__clear {
  position: absolute; right: .25rem; top: .25rem; width: 2.5rem; height: 2.5rem; border: 0; background: none;
  font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; border-radius: 50%;
}
.typeahead__clear:hover { background: var(--page); }
.typeahead__clear:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.typeahead__hint { margin: .375rem 0 0; color: var(--text-muted); }

@media (max-width: 47.99rem) {
  html.typeahead-open, html.typeahead-open body { overflow: hidden; }
  .typeahead--full {
    position: fixed; inset: 0; z-index: 1000; background: var(--surface); padding: 0 1rem 1rem; overflow-y: auto;
  }
  .typeahead--full .typeahead__bar { display: flex; align-items: center; min-height: 3.5rem; }
  .typeahead__back {
    background: none; border: 0; font: inherit; font-weight: 600; color: var(--logo-blue); min-height: 2.75rem; padding: 0 .25rem; cursor: pointer;
  }
  .typeahead--full .autocomplete__menu--overlay { position: static; max-height: none; box-shadow: none; border: 0; border-radius: 0; }
  .typeahead--full .autocomplete__option { padding: .875rem .25rem; border-bottom: 1px solid var(--border-subtle); }
}
@media (min-width: 64rem) {
  .typeahead .autocomplete__input { min-height: 2.5rem; padding: .5rem .75rem; }
  .typeahead .autocomplete__option { padding: .5rem .75rem; }
  .typeahead .autocomplete__menu { max-height: 16rem; }
}

/* A form being sent: its buttons dim and ignore further presses until the next page shows (R-137). */
form.is-sending button { opacity: .6; cursor: progress; }
