/* ---------------------------------------------------------------------------
   Erevna Learning Center - styles for the static (crawlable) pages, plus the
   no-JS layer and static footer injected into the SPA homepage.
   Generated pages load ONLY this file. index.html loads it after
   bootstrap.css + style.css, so homepage rules are scoped to #prerender and
   #seo-footer to avoid touching the React app.
   --------------------------------------------------------------------------- */

:root {
  --brand-1: #5ca9fb;
  --brand-2: #6372ff;
  --link: #3f63d8;
  --ink: #1d2330;
  --ink-soft: #4d5666;
  --ink-faint: #6c7688;
  --line: #e4e8f0;
  --line-soft: #eff2f7;
  --bg: #ffffff;
  --bg-tint: #f7f9fc;
  --dark: #1f386e;
  --radius: 10px;
  --wrap: 1120px;
  --font-head: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Generated pages =================================================== */

body:not(#page-top) {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body:not(#page-top) * { box-sizing: border-box; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- Header --- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(8px);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.2px;
  color: var(--dark);
  text-decoration: none;
  margin-right: auto;
}
/* elc-brand.png is the complete emblem, near-square (~1.08:1). Constrain the
   height and let the width follow. */
.brand-mark {
  height: 52px;
  width: auto;
  flex: 0 0 auto;
}
.brand-text { line-height: 1.15; color: var(--dark); }
/* Scoped to the inner span only. `.brand span` would also match .brand-text,
   clipping the whole brand name to the gradient and rendering "Learning
   Center" transparent. */
.brand-text > span {
  background: linear-gradient(to right, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-head nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-head nav a {
  display: block;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-head nav a:hover { background: var(--bg-tint); color: var(--link); }
.site-head nav a[aria-current="page"] { color: var(--brand-2); background: #eef3ff; }
.head-cta {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-1), var(--brand-2));
  white-space: nowrap;
}

/* --- Breadcrumbs --- */
.crumbs { border-bottom: 1px solid var(--line-soft); background: var(--bg-tint); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9c1d0; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- Page body --- */
.page { padding: 40px 22px 20px; }
.page article { max-width: 860px; }

.page h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -.7px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}
.page .lead {
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 26px;
}
.page h2 {
  font-family: var(--font-head);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.35px;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 14px;
}
.page h3 {
  font-family: var(--font-head);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--dark);
  margin: 26px 0 10px;
}
.page p { margin: 0 0 15px; }
.page a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.page a:hover { color: var(--brand-2); }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin-bottom: 8px; }
.block:first-of-type h2 { margin-top: 30px; }

/* --- Quick answer: the block AI answer engines lift --- */
.quick-answer {
  border: 1px solid #d5e2fb;
  border-left: 4px solid var(--brand-2);
  background: linear-gradient(180deg, #f4f8ff, #fbfdff);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}
.quick-answer .qa-label {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--brand-2);
  margin: 0 0 6px;
}
.quick-answer p:last-child { margin: 0; font-size: 17px; color: var(--ink); }

/* --- Key facts --- */
.key-facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 6px;
  margin: 0 0 30px;
  background: var(--bg-tint);
}
.key-facts h2 {
  margin: 0 0 12px !important;
  font-size: 13px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
}
.key-facts dl, .facts { margin: 0; }
.key-facts dt, .facts dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 12px;
}
.key-facts dd, .facts dd { margin: 2px 0 12px; padding: 0; }
.facts dt { text-transform: none; font-size: 16px; letter-spacing: 0; color: var(--dark); }
.facts dd { color: var(--ink-soft); }

/* --- Steps --- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 16px 44px;
  margin: 0;
  border-left: 2px solid var(--line);
  padding-top: 2px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--brand-1), var(--brand-2));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.steps li strong { display: block; font-family: var(--font-head); color: var(--dark); margin-bottom: 3px; }
.steps li span { color: var(--ink-soft); }

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 19px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.card:hover {
  border-color: #b9cdf7;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -14px rgba(35, 60, 120, .4);
}
.card h3 { margin: 0 0 7px; font-size: 17px; }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.card-cta {
  display: inline-block;
  margin-top: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brand-2);
}

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 13px 16px 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
.table-wrap th, .table-wrap td {
  padding: 11px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.table-wrap thead th {
  background: var(--bg-tint);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.table-wrap tbody th { font-weight: 700; color: var(--dark); }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }
.daynote { color: var(--ink-faint); font-size: 13px; }

/* --- Quotes --- */
.quote { margin: 0 0 20px; padding: 0; }
.quote blockquote {
  margin: 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-1);
  border-radius: var(--radius);
  background: var(--bg-tint);
}
.quote blockquote p { margin: 0; font-size: 16px; color: var(--ink-soft); font-style: italic; }
.quote figcaption {
  margin: 9px 0 0 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--dark);
}
.quote figcaption span { font-weight: 400; color: var(--ink-faint); }

/* --- FAQ --- */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 15px 34px 15px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-2);
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--brand-2); }
.faq .answer { padding: 0 0 16px; }
.faq .answer p { margin: 0; color: var(--ink-soft); }

/* --- Related --- */
.related-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 10px; }
.related-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  background: #fff;
}
.related-list a:hover { border-color: #b9cdf7; background: var(--bg-tint); }
.related-list strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--link); }
.related-list span { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }

.reviewed { margin: 34px 0 0; font-size: 13.5px; color: var(--ink-faint); }

/* --- CTA --- */
.cta {
  margin-top: 48px;
  padding: 44px 0;
  background: linear-gradient(to right, var(--brand-1), var(--brand-2));
  color: #fff;
  text-align: center;
}
.cta h2 { font-family: var(--font-head); font-weight: 800; font-size: 27px; margin: 0 0 8px; }
.cta p { max-width: 620px; margin: 0 auto 22px; opacity: .95; }
.cta-row { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.cta .btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid #fff;
}
.cta .btn-alt { background: rgba(255, 255, 255, .14); color: #fff; }
.cta .btn-ghost { background: transparent; color: #fff; }
.cta .btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

/* --- Footer --- */
.site-foot { background: #101828; color: #9aa5b8; padding: 44px 0 26px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
.foot-brand { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 16px; margin: 0 0 8px; }
.site-foot address { font-style: normal; margin-bottom: 8px; }
.site-foot a { color: #c3cee0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6f7c93;
  margin: 0 0 10px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-social { margin-top: 10px; }
.foot-legal {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid #23304a;
  font-size: 13px;
  color: #6f7c93;
}

/* ===== Homepage: logo in the React navbar ===============================
   Moved to an inline <style> in index.html, generated by seo/build.mjs.
   Reason: the rule needs a content-hashed URL for the logo, and a static
   stylesheet cannot carry one. It was homepage-only (scoped to #page-top)
   so it never really belonged in the shared file.
   ======================================================================== */

/* ===== Homepage: no-JS layer (inside #root, replaced by React) =========== */
#prerender {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
}
#prerender .pr-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 46px 22px 30px;
}
#prerender .pr-logo {
  display: block;
  height: 78px;
  width: auto;
  margin: 0 0 16px;
}
#prerender .pr-brand {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--brand-2);
  margin: 0 0 12px;
}
#prerender h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -.6px;
  color: var(--dark);
  margin: 0 0 14px;
  text-transform: none;
}
#prerender h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--dark);
  margin: 30px 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
#prerender .pr-lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; }
#prerender .pr-nap { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); font-size: 15px; }
#prerender p { margin: 0 0 14px; line-height: 1.68; }
#prerender ul { margin: 0 0 16px; padding-left: 22px; }
#prerender li { margin-bottom: 8px; line-height: 1.62; }
#prerender a { color: var(--link); }
#prerender blockquote {
  margin: 0 0 16px;
  padding: 15px 19px;
  border: 0;
  border-left: 4px solid var(--brand-1);
  border-radius: 8px;
  background: var(--bg-tint);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
}
#prerender blockquote footer { margin-top: 8px; font-style: normal; font-weight: 700; font-family: var(--font-head); color: var(--dark); }
#prerender .pr-loading { margin-top: 30px; font-size: 13.5px; color: var(--ink-faint); }

/* ===== Homepage: persistent static footer (outside #root) ================ */
#seo-footer {
  background: #101828;
  color: #9aa5b8;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  padding: 42px 0 26px;
}
#seo-footer .sf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
#seo-footer a { color: #c3cee0; text-decoration: none; }
#seo-footer a:hover { color: #fff; text-decoration: underline; }
#seo-footer ul { list-style: none; margin: 0; padding: 0; }
#seo-footer .sf-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid #23304a;
}
#seo-footer .sf-top a { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 14.5px; }
#seo-footer .sf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
#seo-footer .sf-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6f7c93;
  margin: 0 0 10px;
}
#seo-footer .sf-grid li { margin-bottom: 7px; }
#seo-footer .sf-nap {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid #23304a;
  color: #c3cee0;
}
#seo-footer .sf-logo {
  height: 36px;
  width: auto;
  vertical-align: -9px;
  margin-right: 10px;
  /* Red type over black laurel needs a light plate on the dark footer. */
  background: #fff;
  border-radius: 4px;
  padding: 3px 6px;
}
#seo-footer .sf-nap strong { color: #fff; font-family: var(--font-head); }
#seo-footer .sf-legal { margin: 8px 0 0; font-size: 13px; color: #6f7c93; }

/* ===== Responsive ======================================================== */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  #seo-footer .sf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-head .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .brand { width: 100%; margin-bottom: 4px; }
  .brand-mark { height: 42px; }
  .head-cta { margin-left: auto; }
  .site-head nav ul { margin-left: -11px; }
  .page { padding-top: 28px; }
  .page h2 { font-size: 22px; margin-top: 32px; }
  .steps li { padding-left: 36px; }
}
@media (max-width: 520px) {
  .foot-grid, #seo-footer .sf-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}

@media print {
  .site-head, .crumbs, .cta, .site-foot, #seo-footer { display: none; }
  .page article { max-width: none; }
}
