/* LicenseReady — visual identity
   Palette: deep navy + warm signal-orange + pale fog
   Typography: serif display (Source Serif), sans body (Inter system-ui stack)
*/
:root {
  --navy: #0e3b66;
  --navy-deep: #082a4a;
  --orange: #f06b1f;
  --orange-soft: #fde8d6;
  --fog: #f4f6fa;
  --line: #d9deea;
  --ink: #131b29;
  --ink-soft: #4b5566;
  --good: #1f7a55;
  --bad: #b3261e;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(8,42,74,.08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, system-ui, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Source Serif Pro', Georgia, serif; line-height: 1.2; color: var(--navy-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 9999; }

/* Header */
.site-header { background: var(--navy-deep); color: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 600; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--orange); color: #fff; font-weight: 800; border-radius: 8px; letter-spacing: .02em; font-family: 'Source Serif Pro', Georgia, serif; }
.brand__name { font-family: 'Source Serif Pro', Georgia, serif; font-size: 1.25rem; }
.primary-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.primary-nav a { color: #d9e3ef; text-decoration: none; font-weight: 500; padding: .35rem .15rem; border-bottom: 2px solid transparent; }
.primary-nav a:hover { color: #fff; border-bottom-color: var(--orange); }

/* Crumbs */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin: 1rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.crumbs li + li::before { content: '›'; margin-right: .35rem; color: var(--ink-soft); }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; padding: 3rem 0; border-radius: var(--radius); overflow: hidden; margin: 1.25rem 0; }
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 0 2rem; }
.hero h1 { color: #fff; }
.hero p { color: #d9e3ef; font-size: 1.1rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero__img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
@media (max-width: 800px) { .hero__inner { grid-template-columns: 1fr; padding: 0 1.25rem; } .hero__img { order: -1; } }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.3rem; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .1s ease, background .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d85d18; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-deep); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Cards / grids */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-state { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 700px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,42,74,.13); }
.card h3 { margin-top: 0; }
.card a.card__link { text-decoration: none; color: var(--navy-deep); display: block; }
.card a.card__link:hover h3 { color: var(--orange); }

/* State chip grid */
.state-chip { display: block; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--navy-deep); font-weight: 600; transition: background .15s, border-color .15s; }
.state-chip:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--navy-deep); }
.state-chip__code { display: inline-block; background: var(--navy); color: #fff; font-size: .75rem; padding: .15rem .5rem; border-radius: 4px; margin-right: .5rem; }

/* Layout split */
.split { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.sidebar { font-size: .95rem; }
.sidebar h4 { margin: 1.25rem 0 .5rem; color: var(--navy-deep); font-family: inherit; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.sidebar li { margin: .35rem 0; }
.sidebar a { color: var(--navy); text-decoration: none; }
.sidebar a:hover { color: var(--orange); }

/* Test (quiz) */
.test-meta { display: flex; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--fog); border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0 1.5rem; }
.test-meta div { font-size: .9rem; }
.test-meta strong { display: block; color: var(--navy-deep); font-size: 1.05rem; }

.question { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.question__num { font-size: .85rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.question h3 { margin: .25rem 0 1rem; color: var(--navy-deep); }
.choices { list-style: none; padding: 0; margin: 0 0 1rem; }
.choices li { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .55rem; cursor: pointer; transition: border-color .12s, background .12s; }
.choices li:hover { border-color: var(--navy); background: var(--fog); }
.choices input[type=radio] { margin-top: .25rem; flex-shrink: 0; accent-color: var(--orange); }
.choice-letter { font-weight: 700; color: var(--navy); width: 1.5rem; flex-shrink: 0; }
.choices li.correct { border-color: var(--good); background: #e8f5ef; }
.choices li.incorrect { border-color: var(--bad); background: #fbeaea; }
.explanation { padding: .9rem 1rem; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 6px; margin-top: .5rem; font-size: .95rem; }
.explanation strong { color: var(--navy-deep); }

.test-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin: 1.5rem 0; }

/* Tables */
.fact-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.fact-table th, .fact-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.fact-table th { background: var(--fog); color: var(--navy-deep); font-weight: 600; }

/* Adsense */
.ad-slot { margin: 1.5rem auto; padding: .75rem; text-align: center; background: var(--fog); border: 1px dashed var(--line); border-radius: 8px; max-width: var(--max); color: var(--ink-soft); font-size: .8rem; }
.ad-slot--header { margin-top: 0; }
.ad-slot__label { display: block; opacity: .7; }
.ad-slot--in-content { margin: 2rem 0; }
.ad-slot--sidebar { margin: 0 0 1rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d9e3ef; padding: 2.5rem 0 1.25rem; margin-top: 3rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: inherit; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: #d9e3ef; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.site-footer .muted { color: #9bafc7; font-size: .9rem; }
.site-footer__legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #9bafc7; }
.brand--footer .brand__mark { width: 32px; height: 32px; }

/* Misc */
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.tag { display: inline-block; padding: .15rem .55rem; background: var(--navy); color: #fff; font-size: .75rem; border-radius: 4px; letter-spacing: .04em; }
.tag--orange { background: var(--orange); }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.section { margin: 2.5rem 0; }
.callout { background: var(--orange-soft); border: 1px solid var(--orange); border-left: 4px solid var(--orange); padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0; }
.alpha-list { columns: 4; column-gap: 2rem; padding: 0; list-style: none; }
@media (max-width: 700px) { .alpha-list { columns: 2; } }
.alpha-list li { break-inside: avoid; padding: .25rem 0; }
.featured { background: linear-gradient(135deg, var(--orange) 0%, #f08a4d 100%); color: #fff; padding: 2.5rem; border-radius: var(--radius); margin: 2rem 0; text-align: center; }
.featured h2 { color: #fff; }
.featured a.btn { background: #fff; color: var(--orange); border: none; }
.featured a.btn:hover { background: var(--navy-deep); color: #fff; }
.toc { background: var(--fog); border-left: 4px solid var(--navy); padding: 1rem 1.25rem; border-radius: 6px; margin: 1.5rem 0; }
.toc h4 { margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
