/* Camino Prep — storefront content styles
   Depends on tokens.css for brand variables and marketing/styles.css for
   shared site chrome (header, footer, buttons, .shell). This file only
   covers storefront-specific content: auth forms, catalog/detail lists,
   checkout summary. */

.storefront-main { padding-block: var(--space-6) var(--space-8); min-height: 60vh; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.page-title { font-size: var(--fs-800); margin-bottom: var(--space-3); }
.page-sub, .page-intro { color: var(--text-600); font-size: var(--fs-500); max-width: 60ch; margin-bottom: var(--space-6); }

/* Generic content-section headings — covers about.html's <h2>s and the
   otherwise-bare "Sections"/"Sample questions"/"Pricing" headings on
   concours_detail.html, with no per-page markup needed. */
.storefront-main h2 { font-size: var(--fs-700); margin-block: var(--space-6) var(--space-4); }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 68ch; display: flex; flex-direction: column; gap: var(--space-4); }
.legal-body h2 { font-size: var(--fs-500); font-weight: 600; margin-top: var(--space-3); }
.legal-body p { color: var(--text-600); }
.legal-body a { color: var(--horizon-500); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* ---------- Auth forms (login / signup) ---------- */
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 420px; margin-block: var(--space-5); }
.auth-form label { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-300); font-weight: 500; color: var(--text-600); }
.auth-form input {
  font: inherit; font-size: var(--fs-400); padding: .75em 1em;
  border: 1.5px solid var(--border-200); border-radius: var(--radius-sm);
  background: var(--paper-000); color: var(--text-900);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.auth-form input:focus { border-color: var(--ascent-500); }
.auth-switch { color: var(--text-600); }
.auth-switch a { color: var(--horizon-500); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-error {
  margin: 0; padding: .75em 1em; border-radius: var(--radius-sm);
  background: var(--danger-050, #fdeeee); color: var(--danger-600, #b42318);
  font-size: var(--fs-300); font-weight: 500;
}
.auth-error:empty { display: none; }
.auth-success {
  margin: 0; padding: .75em 1em; border-radius: var(--radius-sm);
  background: var(--success-050, #eafaf1); color: var(--success-600, #0f7b4f);
  font-size: var(--fs-300); font-weight: 500;
}
.auth-success:empty { display: none; }
.auth-divider {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--text-600); font-size: var(--fs-300); margin-block: var(--space-2);
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-200); }
.btn--google {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--paper-000); color: var(--text-900); border: 1.5px solid var(--border-200);
}
.btn--google:hover { background: var(--paper-100); }
.btn--google img { width: 1.1em; height: 1.1em; }

/* ---------- About ---------- */
.about-section { margin-bottom: var(--space-6); }
.about-exam-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.about-exam-list a {
  display: inline-flex; font-size: var(--fs-300); font-weight: 600; color: var(--ink-900);
  background: var(--paper-100); border-radius: var(--radius-pill); padding: .5em 1.1em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.about-exam-list a:hover { background: var(--ascent-500); color: var(--ink-900); }
.about-trust-list { display: flex; flex-direction: column; gap: var(--space-4); }
.about-trust-list li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--text-600); }
.about-trust-list .checkout-features__check { margin-top: .2em; }
.about-flashcards-demo { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.about-flashcard-demo-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  max-width: 560px; width: 100%; padding: var(--space-5);
  background: var(--paper-000); border: 1px solid var(--border-200);
  border-radius: var(--radius-lg);
}
.about-flashcard-demo-front, .about-flashcard-demo-back { color: var(--text-900); font-size: var(--fs-400); line-height: var(--lh-normal); }
.about-flashcard-demo-outcome:not([hidden]) { display: flex; gap: var(--space-3); }
.about-flashcard-demo-flip { align-self: flex-start; }
.about-network-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4);
}
.about-network-card {
  padding: var(--space-4); background: var(--paper-000); border: 1px solid var(--border-200);
  border-radius: var(--radius-lg);
}
.about-network-card p { margin: 0; color: var(--text-600); font-size: var(--fs-300); line-height: var(--lh-normal); }
.about-network-card a { font-weight: 600; color: var(--ink-900); }

/* ---------- Government-portal theme (2026-11-04 design review) ----------
   Activated per-page via body.gov-theme (storefront/base.html, driven by
   the `palette` context from app/render/context.py). Re-points the
   existing shared tokens (--ascent-500/600, --paper-050/100, --ink-900,
   --text-900) at each country's own palette so every already-existing
   component (buttons, eyebrows, card borders, calendar/blog accents...)
   re-colours for free, without rewriting each one individually. Link
   colour (--horizon-500) is deliberately left alone -- a consistent blue
   hyperlink reads correctly across every country and keeps e.g.
   Indonesia's near-black secondary from becoming invisible as link text. */
body.gov-theme {
  --ascent-500: var(--gov-primary);
  --ascent-600: var(--gov-primary);
  --paper-050: var(--gov-paper);
  --paper-100: color-mix(in srgb, var(--gov-primary) 10%, white);
  --ink-900: var(--gov-ink);
  --text-900: var(--gov-ink);
  --radius-sm: .375rem;
  --radius-md: .5rem;
  --radius-lg: .625rem;
}
/* --ink-900 doubles as button/badge text colour elsewhere in styles.css
   (assumes a bright --ascent-500 like the hub's sunrise orange) -- country
   primaries are deliberately dark/saturated for hero contrast, so button
   text needs to flip to white here or it reads as dark-on-dark. */
body.gov-theme .btn--primary,
body.gov-theme .step__num,
body.gov-theme .rail-pill__icon,
body.gov-theme .rail-pill__cta { color: #fff; }
body.gov-theme .brand__prep { color: var(--gov-primary); }
body.gov-theme .site-nav a::after { background: var(--gov-primary); }

.btn--ghost-gov {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.4em; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-400); white-space: nowrap;
  border: 1.5px solid currentColor; color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
[data-tone="dark"] .btn--ghost-gov:hover { background: rgba(255,255,255,.12); }
[data-tone="light"] .btn--ghost-gov:hover { background: rgba(0,0,0,.06); }

/* flag ribbon + trust bar (storefront/base.html, every storefront page) */
.flag-ribbon { height: 5px; display: flex; }
.flag-ribbon i { flex: 1; }
.trust-bar {
  background: var(--ink-950); color: rgba(255,255,255,.82);
  font-size: .72rem; font-weight: 500; letter-spacing: .01em;
  padding: .45em var(--space-5); text-align: center;
}
.trust-bar strong { color: #fff; font-weight: 700; }

/* ---------- Catalog hero ----------
   Background = the country's own flag-dominant colour (--gov-wash),
   bold where a flag colour genuinely dominates, near-white where the
   flag itself is light-dominant (e.g. Japan) or evenly split with no
   majority (e.g. India, Mexico) -- see render.py's COUNTRY_PRESENTATION
   comment for the full reasoning. [data-tone] lives on <body>, set from
   palette.tone, and flips text/button treatment for contrast. */
.catalog-hero {
  position: relative; overflow: hidden;
  background: var(--gov-wash, var(--ink-900));
  margin-inline: calc(-1 * var(--space-5));
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-4); align-items: center;
}
[data-tone="dark"] .catalog-hero { color: #fff; }
[data-tone="light"] .catalog-hero { color: var(--gov-ink, var(--ink-900)); }
.catalog-hero__texture {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: 20px 20px;
  mask-image: radial-gradient(60% 70% at 78% 45%, black 0%, transparent 75%);
}
[data-tone="dark"] .catalog-hero__texture { background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); }
[data-tone="light"] .catalog-hero__texture { background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); }
.catalog-hero__seal {
  position: absolute; z-index: 0; inset-inline-end: -40px; inset-block-start: -60px;
  width: 360px; height: 360px; border-radius: 50%;
}
[data-tone="dark"] .catalog-hero__seal { border: 1.5px solid rgba(255,255,255,.14); }
[data-tone="light"] .catalog-hero__seal { border: 1.5px solid rgba(0,0,0,.08); }
.catalog-hero__inner { position: relative; z-index: 1; }
.catalog-hero__eyebrow { display: flex; align-items: center; gap: .5em; }
[data-tone="dark"] .catalog-hero__eyebrow { color: #fff; }
[data-tone="light"] .catalog-hero__eyebrow { color: var(--gov-primary); }
.catalog-hero__flag { font-size: 1.2em; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.catalog-hero__headline {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.12;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); margin-block: var(--space-3) var(--space-3); max-width: 15ch;
}
.catalog-hero__accent { font-style: normal; }
[data-tone="dark"] .catalog-hero__accent {
  color: var(--gov-tertiary, #fff); text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.4); text-underline-offset: .12em;
}
[data-tone="light"] .catalog-hero__accent { color: var(--gov-primary); }
.catalog-hero__sub { font-size: 1.05rem; line-height: 1.55; max-width: 48ch; margin-bottom: var(--space-4); }
[data-tone="dark"] .catalog-hero__sub { color: rgba(255,255,255,.85); }
[data-tone="light"] .catalog-hero__sub { color: var(--text-600); }
.catalog-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
[data-tone="dark"] .catalog-hero .btn--primary { background: #fff; color: var(--gov-ink, var(--ink-900)); }
[data-tone="light"] .catalog-hero .btn--primary { background: var(--gov-primary); color: #fff; }

/* ---------- Device composition (laptop + tablet + phone showing
   Flashcards, replacing the old single phone screenshot) ---------- */
.catalog-hero__devices { position: relative; z-index: 1; height: 340px; display: none; }
@media (min-width: 900px) {
  .catalog-hero { grid-template-columns: 1.05fr .95fr; }
  .catalog-hero__devices { display: block; }
}
@media (max-width: 899px) {
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-hero__devices { display: block; height: 260px; transform: scale(.78); transform-origin: top center; margin-top: var(--space-3); }
}
@media (max-width: 560px) {
  .catalog-hero__devices { height: 230px; transform: scale(.6); margin-top: -1.5rem; margin-bottom: -2.5rem; }
}

.gov-device { position: absolute; filter: drop-shadow(0 26px 44px rgba(0,0,0,.45)); }
.gov-device--laptop { width: 340px; inset-inline-start: -10px; top: 56px; }
.gov-laptop__screen { background: #0c0d12; border-radius: 9px 9px 0 0; padding: 9px 9px 0; border: 1px solid #2b2e3d; }
.gov-laptop__cam { width: 4px; height: 4px; border-radius: 50%; background: #3a3d4d; margin: 0 auto 5px; }
.gov-laptop__viewport { background: var(--gov-paper); border-radius: 4px 4px 0 0; overflow: hidden; height: 195px; }
.gov-laptop__base { height: 10px; background: linear-gradient(#d7d7dc, #aeafb8); border-radius: 0 0 7px 7px; position: relative; }
.gov-laptop__base::after { content:""; position:absolute; left:50%; top:0; transform:translateX(-50%); width:58px; height:3px; background:#9a9ba6; border-radius:0 0 3px 3px; }

.gov-device--tablet { width: 155px; inset-inline-end: 105px; top: 6px; }
.gov-tablet__frame { background: #15171f; border-radius: 14px; padding: 8px 7px; border: 1px solid #2b2e3d; }
.gov-tablet__cam { width: 3px; height: 3px; border-radius: 50%; background: #3a3d4d; margin: 0 auto 5px; }
.gov-tablet__viewport { background: var(--gov-paper); border-radius: 5px; overflow: hidden; height: 205px; }

.gov-device--phone { width: 120px; inset-inline-end: 0; top: 122px; }
.gov-phone__frame { background: #15171f; border-radius: 22px; padding: 7px; border: 1px solid #2b2e3d; }
.gov-phone__notch { width: 40%; height: 11px; background: #15171f; border-radius: 0 0 8px 8px; margin: 0 auto; position: relative; top: 7px; z-index: 2; }
.gov-phone__viewport { background: var(--gov-paper); border-radius: 15px; overflow: hidden; height: 245px; position: relative; }

.fc-screen { padding: 11px 10px; height: 100%; display: flex; flex-direction: column; }
.fc-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 6px; }
.fc-topbar__title { font-family: var(--font-display); font-weight: 700; font-size: .72rem; color: var(--gov-ink); }
.fc-topbar__count { font-size: .5rem; font-weight: 600; color: var(--text-600); background: #fff; border: 1px solid var(--border-100); border-radius: 999px; padding: .2em .55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.fc-progress { height: 3px; background: var(--border-100); border-radius: 2px; overflow: hidden; margin-bottom: 9px; }
.fc-progress i { display: block; height: 100%; width: 64%; background: var(--gov-primary); }
.fc-card { flex: 1; background: #fff; border: 1px solid var(--border-100); border-top: 3px solid var(--gov-primary); border-radius: 5px; padding: 9px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.fc-card[dir="rtl"] { text-align: right; }
.fc-card__eyebrow { font-size: .46rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gov-primary); margin-bottom: .4em; }
.fc-card__q { font-size: .58rem; line-height: 1.4; color: var(--gov-ink); font-weight: 500; }
.fc-card__opts { margin-top: .5em; font-size: .52rem; color: var(--text-600); line-height: 1.6; }
.fc-card__actions { display: flex; gap: 5px; margin-top: 8px; }
.fc-card__actions span { flex: 1; text-align: center; font-size: .5rem; font-weight: 700; padding: .45em 0; border-radius: 4px; }
.fc-card__actions .wrong { background: #fce8e6; color: #9b2a22; }
.fc-card__actions .right { background: #e4f3e9; color: #1c6b3f; }
.fc-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.fc-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-200); }
.fc-dots i.on { background: var(--gov-primary); }
.gov-device--laptop .fc-screen { padding: 14px 18px; }
.gov-device--laptop .fc-card__q { font-size: .68rem; }
.gov-device--laptop .fc-card__opts { font-size: .58rem; }
.gov-device--laptop .fc-topbar__title { font-size: .82rem; }

/* ---------- Catalog ---------- */
.concours-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-5); }
.concours-card {
  display: flex; flex-direction: column;
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-000); border: 1px solid var(--border-100);
  border-top: 4px solid var(--accent, var(--ascent-500));
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.concours-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.concours-card h2 { font-size: var(--fs-600); margin-bottom: var(--space-2); font-weight: 600; }
.concours-card h2 a:hover { color: var(--ascent-600); }
.concours-card p { color: var(--text-600); margin-bottom: var(--space-4); flex: 1; }
.product-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.product-pill {
  display: inline-flex; align-items: baseline; gap: .5em;
  font-size: var(--fs-200); font-weight: 600; color: var(--text-600);
  background: var(--paper-100); border-radius: var(--radius-pill);
  padding: .4em .9em .4em 1em;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.product-pill:hover { background: var(--accent, var(--ascent-500)); color: var(--text-on-ink-mid); }
.product-pill:hover .product-pill__price { color: inherit; }
.product-pill__price { color: var(--ink-900); font-weight: 700; }

/* ---------- Concours detail ---------- */
.concours-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
.concours-layout__main { min-width: 0; }
.concours-sidebar { position: sticky; top: calc(76px + var(--space-5)); }
.concours-sidebar__panel {
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-100); border: 1px solid var(--border-100);
}
.concours-sidebar__eyebrow { font-size: var(--fs-200); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ascent-600); margin-bottom: var(--space-3); }
.concours-sidebar .pricing-list { margin-bottom: 0; }
.concours-sidebar .pricing-row { flex-direction: column; align-items: stretch; }
.concours-sidebar .pricing-row .btn { width: 100%; justify-content: center; }

/* ---------- Pinned product rail (mobile/tablet only) ----------
   Below 760px the sidebar above loses its sticky positioning and drops to
   the bottom of the page, so this dense 2-column grid takes over as the
   pinned way to see every product and its CTA without scrolling. Hidden
   above 760px, where the sticky sidebar already covers the same ground in
   full. Sits outside .shell (full-bleed) so the grid can run edge-to-edge. */
.product-rail { display: none; }
@media (max-width: 760px) {
  .product-rail {
    display: block; position: sticky; top: 76px; z-index: 40;
    background: var(--paper-000); border-bottom: 1px solid var(--border-100);
    box-shadow: var(--shadow-sm);
  }
  .product-rail__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
  }
  .rail-pill {
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
    padding: var(--space-2); border-radius: var(--radius-sm);
    background: var(--paper-100); border: 1px solid var(--border-100);
  }
  .rail-pill__head { display: flex; align-items: center; gap: .4em; min-width: 0; }
  .rail-pill__icon {
    flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px;
    background: var(--ascent-500); color: var(--ink-900);
    display: flex; align-items: center; justify-content: center;
  }
  .rail-pill__icon svg { width: 11px; height: 11px; }
  .rail-pill__name {
    flex: 1 1 auto; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--text-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-pill__desc {
    font-size: 10.5px; color: var(--text-600); line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-pill__foot {
    display: flex; align-items: center; justify-content: space-between; gap: .4em;
    margin-top: auto; padding-top: 1px;
  }
  .rail-pill__price {
    flex: 1 1 auto; min-width: 0; font-size: 10.5px; font-weight: 700; color: var(--text-900);
    font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-pill__term { font-weight: 400; color: var(--text-600); }
  .rail-pill__cta {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    padding: .3em .65em;
    border-radius: var(--radius-pill); border: none;
    background: var(--ascent-500); color: var(--ink-900);
    font: inherit; font-size: 10.5px; font-weight: 700; white-space: nowrap;
  }
}
@media (max-width: 620px) {
  .product-rail { top: 60px; }
}

.checkout-success-banner {
  padding: var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-5);
  background: var(--paper-100); border: 1px solid var(--ascent-500);
}
.checkout-success-banner__heading { font-weight: 700; color: var(--ascent-600); margin-bottom: var(--space-2); }
.checkout-success-banner__body { color: var(--text-600); margin-bottom: var(--space-3); }

.topic-list, .sample-list { display: flex; flex-direction: column; gap: 0; margin-bottom: var(--space-6); }
.topic-list li, .sample-list li { padding: var(--space-3) 0; border-top: 1px solid var(--border-100); color: var(--text-600); }
.topic-list li:first-child, .sample-list li:first-child { border-top: none; }
.sample-list strong { color: var(--text-900); }

.pricing-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.pricing-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--paper-000); border: 1px solid var(--border-100);
}
.pricing-row .price { font-weight: 700; color: var(--text-900); }
.pricing-row__title { font-weight: 600; color: var(--text-900); }
.pricing-row__desc { flex-basis: 100%; font-size: var(--fs-200); color: var(--text-600); }

/* Billing cadence next to a price tag -- "one-time purchase" or "/month" --
   kept visually distinct from the price itself so neither reads as part of
   the number, and reused on the generic pricing-row, the pdf_pack card,
   and the coach/flashcards cards alike so cadence is never buried in prose. */
.price-term { font-size: var(--fs-200); font-weight: 400; color: var(--text-600); margin-left: var(--space-1); }

.empty-state { color: var(--text-600); font-size: var(--fs-500); padding-block: var(--space-6); }

/* ---------- Calendar ----------
   Table-based rebuild (2026-11-05, modeled on concorsopronto.it/
   calendario.html's IA): one collapsible row per exam instead of the
   previous always-expanded card list. .calendar-milestone and
   .calendar-facts below are NOT page-specific -- the blog post "key
   dates" panel (storefront.css's exam-facts block) and this page's own
   detail row both reuse them, so neither is renamed even though this
   page's own .calendar-exam/.calendar-list wrapper classes they used to
   live inside are gone. */
.calendar-milestones { display: flex; flex-direction: column; }

.calendar-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; margin-bottom: var(--space-2);
}
.calendar-counter { font-size: var(--fs-300); font-weight: 600; color: var(--text-600); flex: none; }
.calendar-hint { font-size: var(--fs-200); color: var(--text-400); margin-bottom: var(--space-5); }

.calendar-bucket { margin-bottom: var(--space-6); }
.calendar-bucket__heading {
  font-size: var(--fs-500); font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ascent-600); margin-bottom: var(--space-4);
}

.calendar-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-100); }
.calendar-table { width: 100%; border-collapse: collapse; background: var(--paper-000); }
.calendar-table th {
  text-align: left; font-size: var(--fs-200); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--text-400); padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-100); white-space: nowrap;
}
.calendar-table th.calendar-col-actions { text-align: right; }
.calendar-table .calendar-col-exam { width: 34%; white-space: normal; }
.calendar-row { cursor: pointer; }
.calendar-row:hover, .calendar-row:focus-visible { background: var(--paper-100); }
.calendar-row:focus-visible { outline: 2px solid var(--ascent-500); outline-offset: -2px; }
.calendar-row--owned { box-shadow: inset 3px 0 0 var(--ascent-500); }
/* A border on <tr> itself is not painted by any browser's table border
   model (separate or collapsed) -- only cell borders are. Put it on the
   <td>s instead, and skip the first row so it doesn't double up with the
   header's own border-bottom. */
.calendar-row > td { padding: var(--space-3) var(--space-4); vertical-align: middle; border-top: 1px solid var(--border-200); }
.calendar-row:first-child > td { border-top: none; }
.calendar-row--unavailable { opacity: .8; }

.calendar-row__name { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--ink-900); flex-wrap: wrap; }
.calendar-row__chevron { flex: none; transition: transform var(--dur-fast) var(--ease-out); color: var(--text-400); }
.calendar-row[aria-expanded="true"] .calendar-row__chevron { transform: rotate(90deg); }

.calendar-badge { font-size: var(--fs-200); font-weight: 700; padding: .25em .7em; border-radius: var(--radius-pill); white-space: nowrap; }
.calendar-badge--kit { background: rgba(31, 170, 89, .12); color: var(--signal-500); }
.calendar-badge--update { background: var(--paper-100); color: var(--ascent-600); }

.calendar-cell--muted { color: var(--text-400); font-style: italic; }

.calendar-countdown {
  display: inline-block; font-size: var(--fs-200); font-weight: 700; padding: .25em .7em;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.calendar-countdown--urgent { background: rgba(217, 48, 48, .12); color: #c53030; }
.calendar-countdown--soon { background: rgba(214, 158, 46, .15); color: #946c1f; }
.calendar-countdown--later { background: rgba(31, 170, 89, .12); color: var(--signal-500); }
.calendar-countdown--past, .calendar-countdown--unknown { background: var(--paper-100); color: var(--text-400); }

.calendar-row__actions { display: flex; flex-direction: column; gap: var(--space-2); align-items: stretch; }
.calendar-row__actions .btn {
  padding: .4em .8em; font-size: var(--fs-200);
  /* `width` alone doesn't reliably equalize these: flex items get an
     implicit min-width equal to their own (unwrappable, white-space:nowrap)
     content, which silently overrides a `width` smaller than that content
     -- exactly why "PDF" and the longer "Exame online"/"Online exam" label
     kept rendering at different widths despite an explicit width being set.
     `min-width` has no such floor fight: both buttons grow to at least this,
     and would only exceed it for a locale whose translated label is longer
     still, never clipping text. */
  min-width: 8rem; text-align: center; justify-content: center;
}

.calendar-detail-row > td { padding: var(--space-5); background: var(--paper-050, var(--paper-100)); border-top: none; }
.calendar-detail { display: flex; flex-direction: column; gap: var(--space-4); max-width: 70ch; }
.calendar-detail__lead { color: var(--text-600); }
.calendar-detail h4 { font-size: var(--fs-400); font-weight: 700; color: var(--ink-900); margin: 0; }
.calendar-detail__format-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding-left: 1.2em; color: var(--text-600); }
.calendar-detail__cta-group { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.calendar-detail__note { color: var(--text-600); font-size: var(--fs-300); }
.calendar-detail__verified { font-size: var(--fs-200); color: var(--text-400); }

.calendar-notify[data-state="pending"] { opacity: .7; pointer-events: none; }

/* Availability signal -- every published exam gets a loud "available" row
   accent + "Kit disponível" badge (.calendar-row--owned/.calendar-badge--
   kit above); unpublished (calendar-only) exams get none, so the ones
   we sell visually pop against pure calendar-awareness rows. */
.calendar-milestone {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-3) 0; border-top: 1px solid var(--border-100);
}
.calendar-milestone:first-child { border-top: none; }
.calendar-milestone__date {
  flex: none; min-width: 9ch;
  font-weight: 700; font-size: var(--fs-300); color: var(--ink-900);
  background: var(--paper-100); border-radius: var(--radius-sm);
  padding: .3em .6em; text-align: center;
}
.calendar-milestone__label { flex: 1; color: var(--text-600); }
.calendar-milestone__label em { color: var(--text-400); font-style: italic; }
.calendar-milestone__source { font-size: var(--fs-200); color: var(--horizon-500); font-weight: 600; flex: none; }
.calendar-milestone__source:hover { text-decoration: underline; }
.calendar-milestone--estimated .calendar-milestone__date { background: transparent; border: 1.5px dashed var(--border-200); color: var(--text-600); }

.calendar-telegram-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--paper-100); border: 1px solid var(--border-100);
}
.calendar-telegram-cta p { margin: 0; color: var(--text-600); }

.calendar-search { flex: 1; min-width: 220px; max-width: 28rem; }
.calendar-search__input {
  width: 100%;
  padding: .7em 1em; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-200); background: var(--paper-000);
  font-size: var(--fs-400); color: var(--text-900);
}
.calendar-search__input::placeholder { color: var(--text-400); }
.calendar-search__input:focus { outline: none; border-color: var(--ascent-500); }

/* ---------- Calendar: mobile card row (2026-11-06) ----------
   Below 760px the desktop <tr> (6 <td>s, two of them already hidden by
   nothing now -- see below) is swapped for a second, dense two-line <tr>
   that shares the same detail row. Both live in calendar.html's per-exam
   loop; .calendar-row--mobile is simply display:none above the
   breakpoint. Kept scoped to one media query instead of splitting rules
   across the generic responsive block above so the whole card is in one
   place. */
.calendar-row--mobile { display: none; }

@media (max-width: 760px) {
  /* The intro block (title + paragraph + hero CTA) was pushing the
     actual calendar below the fold; the hero CTA especially, since its
     translated label can run long (e.g. Polish) and -- being a bare
     .btn, which is white-space:nowrap by default -- forced the whole
     page to scroll horizontally. It also just duplicates the newsletter
     form at the bottom of this same page and each row's own "notify"
     link, so it's dropped here rather than patched. */
  .calendar-hero-cta { display: none; }
  /* On mobile the countdown/CTA cards ARE the point -- the explanatory
     intro paragraph is skippable copy once you already know what this
     page is, so it's dropped rather than just shrunk. Kept for desktop
     (and still in the page's source for SEO). */
  .calendar-intro { display: none; }
  .calendar-main { padding-top: var(--space-3); }
  .calendar-title { font-size: calc(var(--fs-800) * 0.92); margin-bottom: var(--space-2); }

  .calendar-table thead { display: none; }
  .calendar-row:not(.calendar-row--mobile) { display: none; }
  .calendar-row--mobile { display: table-row; }
  /* Zero the <td>'s horizontal inset so card text lines up flush with
     the table-wrap's own border instead of stacking on top of it --
     the page's .shell margin already provides the outer gutter. */
  .calendar-row--mobile > td { padding-inline: 0; }

  .calendar-row-mobile { display: flex; flex-direction: column; gap: var(--space-2); padding-inline: 0; }
  .calendar-row-mobile__line1 { display: flex; align-items: center; gap: var(--space-2); }
  .calendar-row-mobile__name {
    flex: 1; min-width: 0; font-weight: 700; color: var(--ink-900);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .calendar-row-mobile__line1 .calendar-countdown { flex: none; }

  .calendar-row-mobile__line2 {
    display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-left: 1.6rem;
  }
  .calendar-row-mobile__meta { display: flex; align-items: center; gap: .3rem; font-size: var(--fs-200); color: var(--text-600); }
  .calendar-row-mobile__meta svg { flex: none; color: var(--text-400); }

  /* Stacked, full-width, wrapping buttons -- same fix already applied
     to the desktop actions column (see .calendar-row__actions above)
     for the same reason: a side-by-side nowrap .btn with a long
     translated price label overflows a phone-width container. */
  .calendar-row-mobile__cta { display: flex; flex-direction: column; gap: var(--space-2); padding-left: 1.6rem; }
  .calendar-row-mobile__cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .calendar-row-mobile__notify {
    background: none; border: none; padding: 0; cursor: pointer;
    font-size: var(--fs-200); font-weight: 700; color: var(--text-400);
    border-bottom: 1px dashed var(--border-200); text-align: left;
  }

  /* Legal/anti-impersonation disclaimer (not calendar-specific, every
     storefront page) -- kept, just made less tall: its own horizontal
     padding was wider than the rest of the page's gutter. */
  .trust-bar { padding: .4em var(--space-3); font-size: .68rem; }
}

.calendar-exam__verified { font-size: var(--fs-200); color: var(--text-400); margin: 0 0 var(--space-3); }

.calendar-facts { display: flex; flex-direction: column; margin-bottom: var(--space-3); }
.calendar-facts__item {
  display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-2) 0; border-top: 1px solid var(--border-100);
}
.calendar-facts__item:first-child { border-top: none; }
.calendar-facts__label { flex: none; min-width: 9ch; font-weight: 700; font-size: var(--fs-300); color: var(--ink-900); }
.calendar-facts__value { flex: 1; color: var(--text-600); }

.calendar-newsletter {
  padding: var(--space-5); margin-top: var(--space-6);
  border-radius: var(--radius-lg); background: var(--paper-100); border: 1px solid var(--border-100);
}
.calendar-newsletter h2 { margin-top: 0; }
.calendar-newsletter p { color: var(--text-600); max-width: 60ch; }
.calendar-newsletter__form { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-3); }
.calendar-newsletter__form input {
  flex: 1; min-width: 220px; font: inherit; font-size: var(--fs-400); padding: .7em 1em;
  border: 1.5px solid var(--border-200); border-radius: var(--radius-md);
  background: var(--paper-000); color: var(--text-900);
}
.calendar-newsletter__form input:focus { outline: none; border-color: var(--ascent-500); }
.calendar-newsletter__status { margin-top: var(--space-2); font-size: var(--fs-300); min-height: 1.3em; }
.calendar-newsletter__status[data-state="success"] { color: var(--signal-500); }
.calendar-newsletter__status[data-state="error"] { color: #c53030; }
.calendar-newsletter__privacy { font-size: var(--fs-200); margin-top: var(--space-2); }

/* ---------- Sample quiz (concours_detail.html) ---------- */
.sample-quiz__intro { color: var(--text-600); max-width: 60ch; margin-bottom: var(--space-4); }
.sample-quiz__question {
  border: none; border-top: 1px solid var(--border-100); padding: var(--space-4) 0; margin: 0;
}
.sample-quiz__question:first-of-type { border-top: none; }
.sample-quiz__question legend { padding: 0 0 var(--space-2); color: var(--text-900); }
.sample-quiz__option {
  display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) 0;
  color: var(--text-600); cursor: pointer;
}
.sample-quiz__option input { margin-top: .3em; flex: none; }
.sample-quiz__option input:disabled { cursor: not-allowed; }
.sample-quiz__feedback { margin-top: var(--space-2); font-size: var(--fs-300); font-weight: 700; }
.sample-quiz__feedback[data-state="correct"] { color: var(--signal-500); }
.sample-quiz__feedback[data-state="incorrect"] { color: #c53030; }
.sample-quiz__reveal {
  display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end;
  margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-100);
}
.sample-quiz__reveal label { flex-basis: 100%; font-weight: 700; color: var(--text-900); }
.sample-quiz__reveal input {
  flex: 1; min-width: 220px; font: inherit; font-size: var(--fs-400); padding: .7em 1em;
  border: 1.5px solid var(--border-200); border-radius: var(--radius-md);
  background: var(--paper-000); color: var(--text-900);
}
.sample-quiz__reveal input:focus { outline: none; border-color: var(--ascent-500); }
.sample-quiz__status { margin-top: var(--space-2); font-size: var(--fs-300); min-height: 1.3em; }
.sample-quiz__status[data-state="error"] { color: #c53030; }
.sample-quiz__score { margin-top: var(--space-3); font-size: var(--fs-500); font-weight: 700; color: var(--ascent-600); }

/* ---------- Blog ---------- */
.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.blog-card {
  display: flex; flex-direction: column;
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-000); border: 1px solid var(--border-100);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__date { font-size: var(--fs-200); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ascent-600); margin-bottom: var(--space-2); }
.blog-card h2 { font-size: var(--fs-600); margin-bottom: var(--space-2); font-weight: 600; }
.blog-card h2 a:hover { color: var(--ascent-600); }
.blog-card p:not(.blog-card__date) { color: var(--text-600); margin-bottom: var(--space-3); flex: 1; }
.blog-card__cta {
  position: relative; display: inline-block; align-self: flex-start;
  font-weight: 600; font-size: var(--fs-300); color: var(--ink-900);
}
.blog-card__cta::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 100%; bottom: -.2em; height: 2px;
  background: var(--ascent-500); transition: inset-inline-end var(--dur-med) var(--ease-out);
}
.blog-card__cta:hover::after { inset-inline-end: 0; }

.blog-post { max-width: 68ch; }
.blog-post__date { font-size: var(--fs-300); font-weight: 600; color: var(--text-400); margin-bottom: var(--space-2); }
.blog-post__summary { font-size: var(--fs-500); color: var(--text-600); margin-bottom: var(--space-5); }
.blog-post__body p { margin-bottom: var(--space-4); color: var(--text-900); }
.blog-post__body h2 { font-size: var(--fs-600); margin-block: var(--space-5) var(--space-3); }
.blog-post__body h3 { font-size: var(--fs-500); margin-block: var(--space-4) var(--space-2); }
.blog-post__body strong { font-weight: 700; }
.blog-post__body a { color: var(--horizon-500); font-weight: 600; }
.blog-post__body a:hover { text-decoration: underline; }
.blog-post__body ul, .blog-post__body ol { margin-bottom: var(--space-4); padding-left: 1.25em; color: var(--text-900); }
.blog-post__body li { margin-bottom: var(--space-2); }
.blog-post__body blockquote {
  margin: var(--space-4) 0; padding-left: var(--space-4);
  border-left: 3px solid var(--border-200); color: var(--text-600);
}
.blog-post__body code { font-size: .9em; background: var(--paper-100); padding: .1em .35em; border-radius: var(--radius-sm); }
.blog-post__body table { width: 100%; max-width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); font-size: var(--fs-300); }
.blog-post__body th, .blog-post__body td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-100); text-align: start; }
.blog-post__body th { font-weight: 700; color: var(--text-600); border-bottom: 2px solid var(--border-200); }
.blog-post__body tr:last-child td { border-bottom: none; }
.blog-post__back { margin-top: var(--space-6); }
.blog-post__back a { color: var(--horizon-500); font-weight: 600; }
.blog-post__back a:hover { text-decoration: underline; }

/* ---------- Blog sidebar (aprovare.pt-style recommended-exam + related-posts rail) ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
.blog-layout__main { min-width: 0; }
.blog-layout .blog-list { grid-template-columns: 1fr; }

.blog-sidebar { position: sticky; top: calc(76px + var(--space-5)); display: flex; flex-direction: column; gap: var(--space-5); }

.blog-promo {
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-000); border: 1px solid var(--border-100);
  border-top: 4px solid var(--ascent-500);
}
.blog-promo__eyebrow { font-size: var(--fs-200); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ascent-600); margin-bottom: var(--space-2); }
.blog-promo__title { font-size: var(--fs-500); font-weight: 600; margin-bottom: var(--space-3); }
.blog-promo__title a:hover { color: var(--ascent-600); }
.blog-promo__facts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.blog-promo__facts li {
  font-size: var(--fs-200); font-weight: 600; color: var(--text-600);
  background: var(--paper-100); border-radius: var(--radius-pill); padding: .35em .9em;
}
.blog-promo__products { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-4); }
.blog-promo__product { padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-100); }
.blog-promo__product:last-child { border-bottom: none; padding-bottom: 0; }
.blog-promo__product-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-1); }
.blog-promo__product-kind { font-size: var(--fs-300); font-weight: 700; color: var(--text-900); }
.blog-promo__product-price { font-size: var(--fs-300); font-weight: 700; color: var(--text-600); }
.blog-promo__product-feature { font-size: var(--fs-200); color: var(--text-600); margin-bottom: var(--space-1); }
.blog-promo__product-access { font-size: var(--fs-200); font-weight: 600; color: var(--ascent-600); margin-bottom: var(--space-3); }
.blog-promo__product .btn { width: 100%; justify-content: center; }
.blog-promo__link { display: inline-block; font-size: var(--fs-300); font-weight: 600; color: var(--horizon-500); }
.blog-promo__link:hover { text-decoration: underline; }

/* ---------- Blog post exam-facts panel (topics + key dates) ---------- */
.exam-facts {
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-100); margin-bottom: var(--space-5);
}
.exam-facts h2:first-child { margin-top: 0; }
.exam-facts .calendar-milestone { padding: var(--space-2) 0; }
.exam-facts__calendar-link a { color: var(--horizon-500); font-weight: 600; }
.exam-facts__calendar-link a:hover { text-decoration: underline; }

.blog-related {
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-100);
}
.blog-related__heading { font-size: var(--fs-300); font-weight: 700; color: var(--text-900); margin-bottom: var(--space-3); }
.blog-related__list { display: flex; flex-direction: column; gap: var(--space-2); }
.blog-related__list a { font-size: var(--fs-300); font-weight: 600; color: var(--text-600); }
.blog-related__list a:hover { color: var(--ascent-600); }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.checkout-summary {
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--paper-100); margin-top: var(--space-5);
}
.checkout-summary .price { font-size: var(--fs-600); font-weight: 700; color: var(--ink-900); display: block; margin-top: var(--space-2); }

.checkout-features {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.checkout-features li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-300); color: var(--text-600); }
.checkout-features__check {
  flex: none; width: 1.3em; height: 1.3em; margin-top: .1em;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--paper-100); color: var(--signal-500);
  font-size: .8em; font-weight: 700;
}
.checkout-auth-prompt { color: var(--text-600); }
.checkout-auth-prompt a { color: var(--horizon-500); font-weight: 600; }
.checkout-auth-prompt a:hover { text-decoration: underline; }

/* ---------- Locale dropdown (specs/008-hindi-site-locale) ---------- */
.locale-dropdown { position: relative; }
.locale-dropdown__trigger {
  display: flex; align-items: center; gap: .4em;
  border: 1px solid var(--line-200, #e2e2e2); background: transparent; cursor: pointer;
  font-size: var(--fs-200, .8rem); font-weight: 600; letter-spacing: .02em;
  padding: .4em .8em; border-radius: 999px; color: var(--text-600, #555);
  transition: background .12s ease, color .12s ease;
}
.locale-dropdown__trigger:hover { background: var(--paper-100, #f3f3f3); color: var(--ink-900, #111); }
.locale-dropdown__code { letter-spacing: .02em; }
.locale-dropdown__panel {
  position: absolute; top: calc(100% + .6rem); inset-inline-end: 0; min-width: 180px;
  background: var(--paper-000, #fff); border: 1px solid var(--border-100, #e2e2e2);
  border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.12));
  padding: var(--space-2, .4rem); z-index: 60;
}
.locale-dropdown__option {
  display: flex; align-items: center; gap: .5em; width: 100%; text-align: start;
  padding: .55em .8em; border-radius: var(--radius-sm, 6px);
  font-size: var(--fs-300, .9rem); font-weight: 500; color: var(--text-900, #1a1a1a);
  background: none; border: none; cursor: pointer;
}
.locale-dropdown__option:hover { background: var(--paper-100, #f3f3f3); }
.locale-dropdown__option--active { font-weight: 700; color: var(--horizon-500, #2f6fed); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .calendar-milestone { flex-wrap: wrap; }
  .catalog-hero { padding: var(--space-6) var(--space-3); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .concours-layout { grid-template-columns: 1fr; }
  .concours-sidebar { position: static; }
}
