/* ClearPath 2 Success — shared styles */
:root {
  --night: #0C1830;
  --navy: #13233F;
  --navy-2: #1C3157;
  --gold: #C9A04A;
  --gold-light: #E6C77F;
  --emerald: #3D5A27; /* forest green from logo */
  --cream: #F7F2E6;
  --paper: #FFFDF8;
  --slate: #465264;
  --ink: #1A2233;
  --line: #E2D9C3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--night); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--night); color: var(--cream); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(201,160,74,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--cream); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand:hover { color: var(--gold-light); }
.brand img { height: 44px; width: auto; }
.brand small { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; color: var(--gold-light); letter-spacing: .02em; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(230,199,127,.5); color: var(--gold-light); border-radius: 8px; padding: .45rem .8rem; font: inherit; font-size: .95rem; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--night); border-bottom: 1px solid rgba(201,160,74,.25); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: .85rem 1.4rem; border-radius: 8px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-light); color: var(--night); }
.btn-ghost { border-color: rgba(230,199,127,.6); color: var(--cream); }
.btn-ghost:hover { background: rgba(230,199,127,.12); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-2); color: var(--gold-light); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--gold-light); }
.lede { font-size: 1.15rem; color: var(--slate); }
.section-dark .lede { color: #CBD3E1; }

/* Footer */
.site-footer { background: var(--night); color: #C4CCDA; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--gold-light); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #C4CCDA; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.disclosure { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #A9B3C4; }
.disclosure p { max-width: 90ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Inner page components */
.page-head { background: var(--night); color: var(--cream); padding: clamp(3rem, 7vw, 4.8rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 4px solid var(--gold); }
.page-head h1 { color: var(--cream); font-size: clamp(2rem, 4.8vw, 3.2rem); max-width: 22ch; }
.page-head p { color: #CBD3E1; font-size: 1.15rem; }
.crumb { font-size: .9rem; color: var(--gold-light); margin-bottom: .8rem; }
.crumb a { color: var(--gold-light); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checks li { position: relative; padding: .45rem 0 .45rem 2rem; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .8rem; height: .45rem; border-left: 3px solid var(--emerald); border-bottom: 3px solid var(--emerald); transform: rotate(-45deg); }
.section-dark .checks li::before { border-color: var(--gold); }

.panel { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.2rem; }
.panel h3 { margin-bottom: .6rem; }
.panel ol { margin: 0; padding-left: 1.2rem; }
.panel li { margin-bottom: .7rem; color: var(--slate); }
.panel li strong { color: var(--ink); }

.table-scroll { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; }
.compare tbody th { font-weight: 600; color: var(--navy); width: 30%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.faq { max-width: 780px; margin-top: 1.8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); margin: 0 0 1.2rem; }

.cta-band { background: var(--navy); color: var(--cream); border-radius: 14px; padding: clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--gold-light); margin: 0 0 .3rem; }
.cta-band p { color: #CBD3E1; margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about-intro { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-mark { width: 100%; height: auto; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } .about-mark { max-width: 240px; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.pillars > div { border-top: 3px solid var(--gold); padding-top: 1.2rem; }
.pillars p { color: #CBD3E1; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; gap: 1.4rem; } }
@media (max-width: 600px) {
  .compare th, .compare td { padding: .8rem .65rem; font-size: .9rem; }
  .compare thead th { font-size: 1rem; }
  .compare tbody th { width: 34%; }
}

/* Books */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.2rem 1.8rem; margin-top: 2.2rem; }
.vol { display: flex; flex-direction: column; }
.vol .cover { aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; padding: 1.3rem 1.1rem; color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 1.2rem; background: var(--navy); box-shadow: inset 8px 0 0 rgba(0,0,0,.28), 0 22px 36px -22px rgba(12,24,48,.6); }
.vol .cover .rule { height: 3px; width: 44px; background: var(--gold); }
.vol .cover .t { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; line-height: 1.08; color: var(--gold-light); }
.vol .cover .v { font-size: .82rem; color: #CBD3E1; }
.vol .cover.green { background: #2F3E21; }
.vol .cover.slate { background: #3A4556; }
.vol .cover.gold { background: #B48B3A; }
.vol .cover.gold .t { color: var(--night); }
.vol .cover.gold .v { color: #2A2416; }
.vol .cover.gold .rule { background: var(--night); }
.vol h3 { margin-bottom: .3rem; }
.vol p { color: var(--slate); font-size: 1rem; flex: 1; }
.vol .tag { font-size: .85rem; font-weight: 600; color: var(--emerald); margin-bottom: .3rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .98rem; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: .88rem; margin-top: .1rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid #CFC4AA; border-radius: 8px; padding: .8rem .9rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(61,90,39,.2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--slate); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--emerald); flex: none; }
.warn { background: #FBF3DF; border: 1px solid #E8D29B; border-radius: 8px; padding: .9rem 1rem; font-size: .95rem; color: #5A4A22; }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--navy); }
.book-feature { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 700px) { .book-feature { grid-template-columns: 1fr; } .book-feature .vol { max-width: 200px !important; } }
.signup { display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; width: 100%; max-width: 620px; }
.signup input[type=text], .signup input[type=email] { font: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: 8px; border: 1.5px solid rgba(230,199,127,.5); background: var(--night); color: var(--cream); }
.signup input::placeholder { color: #9AA6BA; }
.signup-consent { grid-column: 1 / -1; color: #CBD3E1; font-size: .9rem; }
.signup button { border: 0; cursor: pointer; }
@media (max-width: 700px) { .signup { grid-template-columns: 1fr; } }
.shelf { grid-template-columns: repeat(5, 1fr); gap: 2rem 1.4rem; }
.vol .cover .t { font-size: 1.3rem; }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shelf { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; } .vol .cover { padding: 1rem .8rem; } .vol .cover .t { font-size: 1.05rem; } .vol h3 { font-size: 1.05rem; } .vol p { font-size: .92rem; } }
.signup button { white-space: nowrap; }
.signup > * { min-width: 0; }
.signup input[type=text], .signup input[type=email] { width: 100%; }
.cta-band > * { min-width: 0; }

/* Statute / legal */
.statute { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.8rem); max-width: 800px; }
.statute h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.statute p { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.statute .statute-src { font-family: var(--sans); font-size: .9rem; color: var(--emerald); font-weight: 500; }
.statute-addr { margin-top: .4rem; }
@media print {
  .site-header, .site-footer, .page-head, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .statute { border: 0; padding: 0; max-width: none; }
}

/* Legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 2.6rem 0 .8rem; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.legal li { margin-bottom: .55rem; max-width: 64ch; }
.legal-date { font-weight: 600; color: var(--emerald); }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.8rem 0; }
.toc p { font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .35rem; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.callout { background: #FBF3DF; border: 1px solid #E8D29B; border-radius: 8px; padding: .9rem 1rem; color: #5A4A22; }

/* Learn */
.learn { display: grid; grid-template-columns: 240px 1fr; gap: 0 clamp(2rem, 5vw, 4rem); align-items: start; }
.topics { position: sticky; top: 92px; display: flex; flex-direction: column; border-left: 3px solid var(--line); grid-row: span 20; }
.topics a { color: var(--slate); text-decoration: none; padding: .5rem 0 .5rem 1rem; margin-left: -3px; border-left: 3px solid transparent; font-size: .95rem; }
.topics a:hover { color: var(--navy); border-left-color: var(--gold); }
.guide { padding-bottom: 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; max-width: 720px; }
.guide:last-of-type { border-bottom: 0; }
.guide h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.guide ul, .guide ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.guide li { margin-bottom: .6rem; max-width: 64ch; }
.law { font-size: .9rem; font-weight: 600; color: var(--emerald); border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: 1.4rem; }
.tip { background: var(--paper); border-left: 4px solid var(--gold); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; }
.legal-note { font-size: .92rem; color: var(--slate); font-style: italic; }
.guide .table-scroll { margin-top: 1rem; }
@media (max-width: 860px) {
  .learn { grid-template-columns: 1fr; }
  .topics { position: static; flex-direction: row; flex-wrap: wrap; gap: .5rem; border-left: 0; margin-bottom: 2.4rem; grid-row: auto; }
  .topics a { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; margin: 0; background: var(--paper); font-size: .9rem; }
}

/* Mentorship */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.group p { color: var(--slate); flex: 1; }
.group-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 1rem; }
.group-icon svg { width: 26px; height: 26px; }
.group .btn { text-align: center; }
.btn.soon { background: var(--line); color: var(--slate); cursor: default; }
.btn.soon:hover { background: var(--line); color: var(--slate); }
@media (max-width: 860px) { .groups { grid-template-columns: 1fr; } }
@media (max-width: 1000px) and (min-width: 821px) { .site-nav ul { gap: 1.1rem; } }

/* Keep cover titles inside the cover at any width */
.cover { container-type: inline-size; }
.cover .t, .vol .cover .t { font-size: 1.1rem; }
@supports (font-size: 1cqi) {
  .cover .t, .vol .cover .t { font-size: min(1.7rem, 10cqi); }
}
