/* Omabert site styles: tokens and components from DESIGN.md.
   Used by every page built on the new system. Page-specific CSS stays in the page. */

:root {
  --navy: #1A3A5C;
  --navy-deep: #0F2740;
  --gold: #E8A020;
  --ink: #1B2430;
  --muted: #5B6675;
  --line: #DDE3EA;
  --paper: #FFFFFF;
  --mist: #F3F6F9;
  --safety-red: #C8332B;

  --font-head: 'Barlow Semi Condensed', 'Barlow SC Fallback', 'Barlow', 'Barlow Fallback', system-ui, sans-serif;
  --font-body: 'Barlow', 'Barlow Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-1: 32px; --t-2: 24px; --t-3: 20px; --t-4: 17px; --t-5: 15px; --t-small: 14px;
  --section-y: 64px;
  --radius: 8px; --radius-btn: 6px;
}
@media (min-width: 768px) {
  :root { --t-1: 48px; --t-2: 32px; --t-3: 24px; --t-4: 18px; --t-5: 16px; --section-y: 96px; }
}

/* Base */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-5)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-1); line-height: 1.15; }
h2 { font-size: var(--t-2); line-height: 1.2; }
h3 { font-size: var(--t-3); line-height: 1.25; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 16px; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.section--navy :focus-visible { outline-color: var(--gold); }
.lead { font-size: var(--t-4); color: var(--muted); max-width: 62ch; }
.small { font-size: var(--t-small); color: var(--muted); }
.measure { max-width: 68ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-deep); color: rgba(255,255,255,.86); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: rgba(255,255,255,.82); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 68ch; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; max-width: none; }
.stack > * + * { margin-top: 16px; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--wide-text { grid-template-columns: 1.15fr 1fr; } }
.grid-2, .grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Page intro (top of inner pages) */
.page-head { padding-block: 48px 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-head { padding-block: 72px 56px; } }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: 16px; }
.page-head .btn-row { margin-top: 24px; }
.breadcrumb { font-size: var(--t-small); color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn); border: 1.5px solid transparent; font: 600 var(--t-5)/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: #F0B23F; color: var(--navy); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--mist); color: var(--navy); }
.section--navy .btn--secondary { color: #fff; border-color: #fff; }
.section--navy .btn--secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }
.text-link { font-weight: 600; color: var(--navy); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.section--navy .ticks li::before { border-color: var(--gold); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin-right: 16px; }
@media (max-width: 599px) { .facts { flex-direction: column; } .facts li + li::before { display: none; } }

/* Photos */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); background: var(--mist); }
.photo figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--muted); }
.section--navy .photo figcaption { color: rgba(255,255,255,.72); }
.ratio-4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.ratio-3x2 img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Tables (stack into labelled rows on phones) */
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--mist); font: 600 var(--t-small)/1.3 var(--font-body); color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { border: 0; padding: 6px 16px; }
  .table--stack th[scope="row"] { display: block; width: 100%; padding: 12px 16px 4px; border: 0; background: var(--mist); font-family: var(--font-head); font-size: var(--t-4); color: var(--navy); }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--t-small); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #B9C3CE; border-radius: var(--radius-btn); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-body); }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.req { color: var(--safety-red); }
.form-done { padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); background: var(--mist); }
.form-done h3 { margin-bottom: 8px; }

/* Prose (long text pages) */
.prose { max-width: 68ch; }
.prose h2 { margin: 40px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 6px; }

/* Testimonial cards (white cards on a navy section, see Testimonials_Mockup_Phone.png) */
.tcards { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .tcards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; } }
.tcard { display: flex; }
.tcard figure { position: relative; margin: 0; flex: 1; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 24px 20px; }
.tcard .qmark { position: absolute; top: 20px; right: 20px; font: 700 48px/1 Georgia, "Times New Roman", serif; color: var(--gold); }
.tcard blockquote { margin: 0; padding-right: 32px; font-size: var(--t-4); line-height: 1.6; flex: 1; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tcard .avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff; font: 700 16px/1 var(--font-head); }
.tcard .who b { display: block; color: var(--ink); font-family: var(--font-head); font-size: var(--t-4); }
.tcard .who span { display: block; font-size: var(--t-small); color: var(--muted); line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.pills li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 13px; font-weight: 600; }
.pills li.is-cert { background: var(--paper); box-shadow: inset 0 0 0 1px var(--navy); }
.verify-link { margin-top: 24px; width: 100%; }
@media (min-width: 900px) { .verify-link { width: auto; } }

/* Logo row */
.logo-row { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.logo-row li { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; width: 148px; height: 88px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-row img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
@media (min-width: 1024px) { .logo-row { gap: 12px; overflow: visible; padding-bottom: 0; } .logo-row li { flex: 1 1 0; width: auto; min-width: 0; height: 80px; padding: 10px; } .logo-row img { max-height: 52px; } }

/* Motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Price cards (course pages and registration pages) */
.price-cards { display: grid; gap: 16px; }
@media (min-width: 560px) { .price-cards { grid-template-columns: 1fr 1fr; } }
.price-card { padding: 24px; display: flex; flex-direction: column; }
.price-card h3 { font-size: var(--t-4); }
.price-card .amt { font: 700 40px/1 var(--font-head); color: var(--navy); margin: 12px 0 8px; }
.price-card p { color: var(--muted); font-size: var(--t-small); }
.price-card.is-early { border: 2px solid var(--navy); }
.deadline-line { margin-top: 16px; font-weight: 600; color: var(--navy); }

/* Registration pages (/register, /ai-for-hse) */
.reg-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .reg-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; } }
.reg-card { padding: 24px; }
@media (min-width: 768px) { .reg-card { padding: 32px; } }
.reg-card > h2, .reg-done h2 { font-size: var(--t-2); margin-bottom: 8px; }
.reg-card .form { margin-top: 24px; }
.reg-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.reg-side h2 { font-size: var(--t-3); margin-bottom: 16px; }
.reg-side section + section { margin-top: 40px; }
.reg-done { padding: 0; }
.reg-done p { margin-top: 8px; }
.reg-done .btn-row { margin-top: 24px; }
.page-head .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }

/* FAQ accordion */
.faq { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font: 600 var(--t-4)/1.35 var(--font-head); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font: 400 24px/1 var(--font-body); color: var(--navy); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; max-width: 68ch; }
.faq details > div p + p { margin-top: 8px; }

/* Closing band: brand navy so it stays distinct from the navy-deep footer */
.band { background: var(--navy); }
.reg-more { margin-top: 0; }
.reg-more section + section { margin-top: 40px; }
@media (min-width: 960px) {
  .reg-grid { grid-template-rows: auto 1fr; row-gap: 40px; }
  .reg-fees { grid-column: 1; grid-row: 1; }
  .reg-more { grid-column: 1; grid-row: 2; }
  .reg-card { grid-column: 2; grid-row: 1 / span 2; }
}
.field-label { font-weight: 600; font-size: var(--t-small); color: var(--ink); }
.fee-show { display: block; padding: 12px 14px; border-radius: var(--radius-btn); background: var(--mist); font-weight: 600; color: var(--navy); }

/* Tap targets: links that stand alone (not inside a sentence) are at least 44px tall */
.text-link, .breadcrumb a, .course-row h3 a, .course-row .go, .course-table td a:not(.btn),
.testimonials .more a, .feedback .more a, .toc a, .learn a { display: inline-flex; align-items: center; min-height: 44px; }
