/*
 * newwebplay AI / Field Notes theme
 * A warm, light editorial system for the new site. This file is loaded after
 * imported lesson CSS so the reading room owns the shell without rewriting
 * the small interactive lesson widgets.
 */
:root {
  --ink: #19332c;
  --muted: #64766d;
  --faint: #9aa9a1;
  --line: #dfe6df;
  --paper: #f7f5ee;
  --paper-deep: #ebece3;
  --surface: #fffefa;
  --surface-soft: #f0f3eb;
  --accent: #d76b58;
  --accent-dark: #ae4e42;
  --teal: #4f806b;
  --yellow: #d7a94e;
  --purple: #7d6f8d;
  --success: #4f806b;
  --shadow: 0 18px 45px rgba(53, 73, 62, .09);
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html { background: var(--paper); }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
}
body::before {
  opacity: .36;
  background-image: linear-gradient(rgba(79, 128, 107, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 128, 107, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 62%);
}

.site-header {
  border-bottom-color: rgba(214, 222, 213, .9);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  box-shadow: 0 5px 22px rgba(57, 77, 64, .035);
}
.header-inner { min-height: 68px; }
.site-brand { gap: 10px; }
.site-brand-mark {
  width: 35px;
  height: 35px;
  border: 1px solid var(--teal);
  border-radius: 11px;
  background: var(--teal);
  color: #fffefa;
  font-size: .66rem;
  letter-spacing: -.04em;
  box-shadow: none;
  transform: rotate(-5deg);
}
.site-brand strong { font-size: .82rem; letter-spacing: .08em; text-transform: lowercase; }
.site-brand small { margin-top: 5px; color: var(--accent); font-size: .56rem; letter-spacing: .15em; }
.site-header nav { gap: clamp(15px, 2.3vw, 29px); }
.site-header nav a, .header-tools a { color: var(--muted); }
.site-header nav a::after { height: 3px; background: var(--accent); }
.site-header nav a:hover, .header-tools a:hover { color: var(--accent-dark); }
.lang-switch { border-radius: 9px; }
.header-cta { border-radius: 9px; background: var(--accent); border-color: var(--accent); box-shadow: 0 7px 14px rgba(215, 107, 88, .18); }
.header-cta:hover { box-shadow: 0 10px 19px rgba(215, 107, 88, .26); }

.container { width: min(1240px, calc(100% - 64px)); }
.narrow { width: min(780px, calc(100% - 64px)); }
.section { padding: clamp(56px, 7vw, 92px) 0; }
.eyebrow { color: var(--accent); letter-spacing: .17em; }
.display, .section-title, .page-intro h1, .article-top h1 { letter-spacing: -.055em; }
.section-lede, .page-intro p { color: var(--muted); }
.button { border-radius: 9px; background: var(--accent); border-color: var(--accent); box-shadow: 0 9px 16px rgba(215, 107, 88, .12); }
.button:hover { box-shadow: 0 14px 25px rgba(73, 89, 76, .15); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); box-shadow: none; }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); background: var(--surface); }
.button.accent { background: var(--accent); border-color: var(--accent); color: #fffefa; }
.text-link { color: var(--teal); }
.divider { border-top-color: var(--line); }
.tag { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.reveal { animation-name: field-rise; }
@keyframes field-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Every top-level page gets the same warm paper, but keeps its own geometry. */
.home-hero, .course-index-hero, .course-detail-hero, .topic-hero, .topic-detail-hero, .search-hero, .trending-hero, .certificate-hero, .reviews-hero {
  background: linear-gradient(120deg, #fbfaf5 0%, #f5f5ec 58%, #e9efe6 100%);
}
.home-hero::before, .course-index-hero::before, .course-detail-hero::before, .topic-hero::before, .topic-detail-hero::before, .search-hero::before, .trending-hero::before {
  opacity: .48;
  background-image: linear-gradient(rgba(79, 128, 107, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 128, 107, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black 0%, black 48%, transparent 95%);
}
.home-hero-glow-one, .trending-hero-glow, .course-detail-hero-glow, .search-hero-glow { background: radial-gradient(circle, rgba(120, 164, 133, .2), rgba(120, 164, 133, 0) 68%); }
.home-hero-glow-two { background: radial-gradient(circle, rgba(215, 107, 88, .12), rgba(215, 107, 88, 0) 67%); }
.home-title span, .course-index-copy h1 em, .topic-hero-copy h1 em, .search-hero-copy h1 em, .trending-hero-copy h1 em { color: var(--accent); }
.course-index-copy h1 em { background: none; -webkit-text-fill-color: initial; }
.course-index-copy h1 em::after { background: var(--accent); opacity: .5; }
.home-brand-dot { border-color: var(--teal); }
.home-brand-divider { color: var(--accent); }
.home-kicker, .course-index-kicker, .trending-kicker, .search-kicker { color: var(--teal); }
.home-live-dot { background: var(--teal); box-shadow: 0 0 0 5px rgba(79, 128, 107, .14); }

/* Replace the inherited blue/purple accents with a quiet herbarium palette. */
.tone-1 { background: linear-gradient(135deg, #4f806b, #79a388); }
.tone-2 { background: linear-gradient(135deg, #d76b58, #e5a06d); }
.tone-3 { background: linear-gradient(135deg, #d4a448, #e6c978); }
.tone-4 { background: linear-gradient(135deg, #7d6f8d, #a89ab3); }
.feature-icon-blue, .feature-icon-purple, .feature-icon-gold { color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, var(--surface)); }
.feature-icon-purple { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.feature-icon-gold { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, var(--surface)); }

.curriculum-card, .course-preview-card, .topic-detail-panel, .course-detail-progress, .hero-certificate, .certificate-builder, .tool-panel, .search-input-row { border-color: rgba(79, 128, 107, .18); background: rgba(255, 254, 250, .9); box-shadow: 0 18px 42px rgba(53, 73, 62, .09); }
.curriculum-free, .preview-badge { background: #e9f1e7; color: var(--teal); }
.curriculum-label i, .topic-detail-panel-top i, .detail-progress-top span i { background: var(--teal); box-shadow: 0 0 0 5px rgba(79, 128, 107, .13); }
.curriculum-ring .ring-track, .topic-ring-track, .detail-ring-track { stroke: #e4e9df; }
.curriculum-ring .ring-value, .topic-ring-value, .detail-ring-value { stroke: var(--teal); }
.curriculum-card-bottom span, .preview-foot, .detail-progress-foot { border-color: var(--line); }
.certificate-peek { filter: saturate(.7); }

/* Landing page rhythm: editorial rows instead of a SaaS dashboard feel. */
.home-proof-bar { border-color: var(--line); background: #eff1e8; }
.home-proof-grid > div { border-color: var(--line); }
.home-proof-grid strong { color: var(--teal); }
.home-path-grid, .home-topic-grid, .article-grid, .trending-board { gap: 18px; }
.path-card, .home-topic, .article-card, .trending-card, .topic-link, .course-directory-card, .related-item { border-color: var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 4px 12px rgba(53, 73, 62, .03); }
.path-card:hover, .home-topic:hover, .article-card:hover, .trending-card:hover, .topic-link:hover, .course-directory-card:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: var(--surface); box-shadow: 0 16px 28px rgba(53, 73, 62, .1); }
.path-card-head, .home-topic-head { border-bottom-color: var(--line); }
.path-card-foot, .home-topic-foot { border-top-color: var(--line); }
.path-card-line i, .home-topic-line i { background: var(--accent); }
.home-topic-section, .home-lab-section { background: #eef1e9; }
.home-final { border-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, var(--surface)); }

/* Course page has a route-planning personality. */
.course-route-pills a, .catalog-filter, .catalog-summary { border-color: var(--line); }
.course-route-pills a { background: rgba(255, 254, 250, .7); }
.course-route-pills a:hover { background: var(--surface); border-color: var(--accent); }
.route-pill-icon, .directory-icon, .preview-route-icon { color: #fffefa; }
.course-directory-grid { gap: 15px; }
.course-directory-card { border-radius: 12px; }
.lesson-list { border-color: var(--line); background: var(--surface); border-radius: 8px; }
.lesson-row:hover { background: #f1f3ed; }
.detail-aside-card { border-color: #d1dfd2; background: linear-gradient(145deg, #e6efe4, #f7f7ee); box-shadow: none; }
.detail-aside-card .eyebrow { color: var(--teal); }
.detail-aside-note { border-color: var(--line); background: transparent; }
.aside-note-icon { background: #f6ecd7; color: var(--yellow); }

/* Topic page: the color belongs to relationships, not to navigation chrome. */
.topic-orbit-one, .topic-orbit-two, .topic-hero-visual::before { border-color: rgba(79, 128, 107, .22); }
.topic-core { border-color: var(--teal); background: #e1eee3; color: var(--ink); box-shadow: 0 16px 34px rgba(79, 128, 107, .12); }
.topic-node { border-color: var(--line); background: rgba(255, 254, 250, .92); color: var(--ink); box-shadow: 0 6px 14px rgba(53, 73, 62, .06); }
.topic-node:hover { border-color: var(--accent); color: var(--accent-dark); }
.topic-link::before { background: var(--topic-accent, var(--teal)); }
.topic-icon { border-color: color-mix(in srgb, var(--topic-accent, var(--teal)) 20%, var(--line)); background: color-mix(in srgb, var(--topic-accent, var(--teal)) 10%, var(--surface)); color: var(--topic-accent, var(--teal)); }
.topic-sort { border-color: var(--line); background: var(--surface-soft); }
.topic-sort-button.is-active { color: var(--teal); }

/* Search gets a desk-like instrument panel. */
.search-hero-ring { border-color: var(--teal); border-right-color: var(--accent); background: rgba(255, 254, 250, .78); box-shadow: 0 18px 42px rgba(53, 73, 62, .1); }
.search-hero-ring svg { color: var(--teal); }
.search-chip { border-color: var(--line); background: rgba(255, 254, 250, .92); box-shadow: 0 6px 14px rgba(53, 73, 62, .06); }

/* Homepage first viewport: a darker field-guide cover with an open index.
   The content stays the same, but the composition moves away from a pale
   dashboard: one continuous forest canvas, a transparent reading index, and
   cardless entry points along the lower edge. */
.home-hero.home-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 78% 18%, rgba(79, 128, 107, .34), transparent 37%), linear-gradient(116deg, #142f29 0%, #1a3b31 48%, #102720 100%);
  color: var(--paper);
}
.home-hero.home-hero::before {
  opacity: .5;
  background-image: linear-gradient(rgba(247, 245, 238, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 245, 238, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black 0%, black 72%, transparent 100%);
}
.home-hero.home-hero::after {
  content: "";
  position: absolute;
  right: -170px;
  top: -260px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(215, 107, 88, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(215, 107, 88, .035), 0 0 0 82px rgba(215, 107, 88, .02);
  pointer-events: none;
}
.home-hero .home-hero-glow-one { background: radial-gradient(circle, rgba(140, 190, 156, .28), rgba(140, 190, 156, 0) 68%); }
.home-hero .home-hero-glow-two { background: radial-gradient(circle, rgba(215, 107, 88, .15), rgba(215, 107, 88, 0) 67%); }
.home-hero .home-hero-inner { grid-template-columns: minmax(0, .84fr) minmax(500px, 1.16fr); gap: clamp(42px, 6vw, 92px); min-height: 468px; padding-top: 42px; padding-bottom: 25px; }
.home-hero .home-hero-copy { position: relative; z-index: 2; padding: 8px 0 21px; }
.home-hero .home-brandline { color: var(--paper); }
.home-hero .home-brandline .home-brand-divider { color: #e58b78; }
.home-hero .home-kicker { color: #a7cbb2; }
.home-hero .home-title { color: var(--paper); font-size: clamp(3.2rem, 4.55vw, 4.55rem); font-weight: 520; line-height: .98; }
.home-hero .home-title span { color: #e58b78; }
.home-hero .home-title span::after { background: linear-gradient(90deg, #e58b78, rgba(229, 139, 120, 0)); }
.home-hero .home-lede { max-width: 480px; color: rgba(247, 245, 238, .68); }
.home-hero .button.secondary { border-color: rgba(247, 245, 238, .28); color: var(--paper); background: rgba(247, 245, 238, .035); }
.home-hero .button.secondary:hover { border-color: #a7cbb2; color: var(--paper); background: rgba(247, 245, 238, .1); }
.home-hero .home-hero-foot { color: rgba(247, 245, 238, .58); }
.home-hero .home-live-dot { background: #a7cbb2; box-shadow: 0 0 0 5px rgba(167, 203, 178, .16); }
.home-hero .home-hero-visual { min-height: 390px; }
.home-hero .home-hero-visual::before { border-color: rgba(167, 203, 178, .2); }
.home-hero .home-hero-visual::after { border-color: rgba(229, 139, 120, .18); }
.home-hero .home-visual-spark { color: #e58b78; }
.home-hero .spark-two { color: #e4bb62; }
.home-hero .home-stage-label { color: rgba(167, 203, 178, .78); }
.home-hero .home-stage-label span { border-color: rgba(229, 139, 120, .55); color: #e58b78; }
.home-hero .curriculum-card {
  width: min(100%, 680px);
  padding: 22px 23px 17px;
  border-color: rgba(247, 245, 238, .27);
  border-radius: 4px 22px 4px 22px;
  background: rgba(247, 245, 238, .075);
  box-shadow: 0 26px 60px rgba(4, 18, 14, .28), inset 0 1px 0 rgba(247, 245, 238, .12);
  backdrop-filter: blur(18px);
}
.home-hero .curriculum-card::after { inset: 6px; border-color: rgba(247, 245, 238, .1); border-radius: 1px 17px 1px 17px; }
.home-hero .curriculum-label { color: var(--paper); }
.home-hero .curriculum-label i { background: #a7cbb2; box-shadow: 0 0 0 5px rgba(167, 203, 178, .16); }
.home-hero .curriculum-free { background: rgba(167, 203, 178, .13); color: #b7d9c0; }
.home-hero .curriculum-card-body { border-top-color: rgba(247, 245, 238, .16); }
.home-hero .curriculum-row { border-bottom-color: rgba(247, 245, 238, .14); }
.home-hero .curriculum-row:hover { background: rgba(247, 245, 238, .08); }
.home-hero .curriculum-row-copy strong { color: var(--paper); }
.home-hero .curriculum-row-copy small { color: rgba(247, 245, 238, .58); }
.home-hero .curriculum-check { color: rgba(247, 245, 238, .42); }
.home-hero .curriculum-row:first-child .curriculum-check { color: #a7cbb2; }
.home-hero .curriculum-ring .ring-track { stroke: rgba(247, 245, 238, .18); }
.home-hero .curriculum-ring .ring-value { stroke: #e58b78; }
.home-hero .curriculum-ring strong { color: var(--paper); }
.home-hero .curriculum-ring span { color: rgba(247, 245, 238, .58); }
.home-hero .curriculum-card-bottom { border-top-color: rgba(247, 245, 238, .16); color: rgba(247, 245, 238, .58); }
.home-hero .curriculum-card-bottom span { border-color: rgba(247, 245, 238, .18); }
.home-hero .certificate-peek { filter: saturate(.84) drop-shadow(0 18px 24px rgba(4, 18, 14, .18)); }
.home-hero .hero-feature-strip { gap: 0; padding-bottom: 27px; border-top: 1px solid rgba(247, 245, 238, .16); }
.home-hero .hero-feature { min-height: 88px; padding: 19px 22px 13px; border: 0; border-left: 1px solid rgba(247, 245, 238, .14); border-radius: 0; background: transparent; box-shadow: none; }
.home-hero .hero-feature:first-child { border-left: 0; padding-left: 0; }
.home-hero .hero-feature:hover { border-color: rgba(247, 245, 238, .14); background: rgba(247, 245, 238, .055); box-shadow: none; transform: none; }
.home-hero .hero-feature strong { color: var(--paper); }
.home-hero .hero-feature small { color: rgba(247, 245, 238, .58); }
.home-hero .hero-feature b { color: #a7cbb2; }
.home-hero .feature-icon-blue { background: linear-gradient(135deg, #4f806b, #79a388); color: #fffefa; }
.home-hero .feature-icon-purple { background: linear-gradient(135deg, #d76b58, #e5a06d); color: #fffefa; }
.home-hero .feature-icon-gold { background: linear-gradient(135deg, #d4a448, #e6c978); color: #fffefa; }

@media (max-width: 1100px) {
  .home-hero .home-hero-inner { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 34px; }
}
@media (max-width: 820px) {
  .home-hero .home-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 54px; padding-bottom: 34px; }
  .home-hero .home-hero-copy { padding-bottom: 0; }
  .home-hero .home-hero-visual { min-height: 425px; margin-top: 10px; }
  .home-hero .hero-feature-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .home-hero .home-hero-inner { padding-top: 38px; padding-bottom: 24px; }
  .home-hero .home-title { font-size: clamp(2.85rem, 13vw, 4.1rem); }
  .home-hero .home-lede { color: rgba(247, 245, 238, .7); }
  .home-hero .home-hero-visual { min-height: 405px; margin-inline: -2px; }
  .home-hero .curriculum-card { padding: 17px 14px 13px; border-radius: 3px 17px 3px 17px; }
  .home-hero .hero-feature-strip { grid-template-columns: 1fr; gap: 0; padding-top: 5px; }
  .home-hero .hero-feature, .home-hero .hero-feature:first-child { min-height: 70px; padding: 12px 0; border-top: 1px solid rgba(247, 245, 238, .14); border-left: 0; }
  .home-hero .hero-feature:first-child { border-top: 0; }
}
.search-field svg, .search-topic-number, .search-result-no { color: var(--accent); }
.search-input-row:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 18px 34px rgba(53, 73, 62, .11), 0 0 0 4px rgba(215, 107, 88, .09); }
.search-topic:hover, .search-result:hover { background: var(--surface); }
.search-topic-arrow { color: var(--teal); }
.search-topic:hover .search-topic-arrow { border-color: var(--teal); background: var(--teal); }

/* Signal page: warmest accent reserved for the first result. */
.trending-hero-mark { border-color: var(--teal); border-right-color: var(--accent); }
.trending-tabs .trending-tab-active { border-color: rgba(79, 128, 107, .35); color: var(--teal); }
.trending-card-hot { border-color: #e9b09e; background: linear-gradient(145deg, #fff7f1, #fffefa); box-shadow: 0 12px 26px rgba(215, 107, 88, .1); }
.trending-card-bottom > span i b { background: linear-gradient(90deg, var(--teal), var(--accent)); }
.trending-card-bottom strong, .trending-card-bottom em { color: var(--accent); }

/* Community pages use flat editorial bands, not hero gradients. */
.reviews-hero { background: #e6eee3; }
.reviews-hero::before { opacity: .25; }
.community-compose-section { background: #f0f1e9; }

/* Certificate: keep the functional builder, shift the message to a field note. */
.certificate-hero-wash-a { background: radial-gradient(circle, rgba(79, 128, 107, .18), transparent 68%); }
.certificate-hero-wash-b { background: radial-gradient(circle, rgba(215, 107, 88, .12), transparent 68%); }
.certificate-hero-meta-status i { background: var(--teal); }
.certificate-hero-copy h1 em { color: var(--accent); }
.certificate-builder { background: rgba(255, 254, 250, .75); }
.certificate-builder .progress-track, .certificate-progress-track { background: #dfe7dc; }
.certificate-builder .progress-fill, .certificate-progress-fill { background: var(--teal); }

/* Article reader and imported widgets. */
.article-shell { background: transparent; }
.breadcrumbs a:hover { color: var(--accent); }
.article-top h1 { color: var(--ink); }
.article-aside { border-left-color: var(--accent); }
.toc a:hover, .prose a, .legacy-content a { color: var(--teal); }
.prose blockquote, .legacy-content blockquote { border-left-color: var(--accent); background: rgba(215, 107, 88, .08); }
.prose code, .legacy-content code { background: #e9eee7; }
.prose pre, .legacy-content pre { border-color: #d9e3d8; background: #edf1eb; color: var(--ink); }
.article-aside strong, .prose h2, .prose h3, .legacy-content h2, .legacy-content h3 { color: var(--ink); }
.article-bottom { border-color: var(--line); background: var(--surface); box-shadow: 0 10px 26px rgba(53, 73, 62, .045); }
.related-item:hover { background: var(--surface); }

.site-footer { border-top-color: var(--line); background: #e9ebe2; }
.footer-brand-mark { border-color: var(--teal); background: var(--teal); color: #fffefa; }
.footer-brand { color: var(--ink); }
.footer-note, .footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* Homepage pathfinder: make the first viewport behave like a learning
   platform entrance, not a promotional hero. The route list is the visual
   anchor; learners can choose a concrete starting point immediately. */
.home-hero.home-hero-pathfinder {
  min-height: auto;
}
.home-hero.home-hero-pathfinder .home-hero-inner {
  grid-template-columns: minmax(285px, .78fr) minmax(560px, 1.22fr);
  gap: clamp(48px, 7vw, 112px);
  min-height: 442px;
  padding-top: clamp(20px, 2.2vw, 30px);
  padding-bottom: clamp(30px, 4vw, 48px);
}
.home-hero.home-hero-pathfinder .home-hero-copy {
  padding: 0 0 4px;
}
.home-hero.home-hero-pathfinder .home-brandline {
  margin-bottom: clamp(38px, 5vw, 60px);
}
.home-hero.home-hero-pathfinder .home-kicker {
  margin-bottom: 14px;
}
.home-hero.home-hero-pathfinder .home-title {
  max-width: 560px;
  font-size: clamp(3.15rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.home-hero.home-hero-pathfinder .home-title span::after {
  display: none;
}
.home-hero.home-hero-pathfinder .home-lede {
  max-width: 410px;
  margin-top: 23px;
}
.home-hero-orientation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: rgba(247, 245, 238, .57);
  font-size: .68rem;
}
.home-hero-orientation b {
  padding-left: 18px;
  border-left: 1px solid rgba(247, 245, 238, .2);
  color: rgba(247, 245, 238, .83);
  font-weight: 550;
}

.home-route-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-left: clamp(24px, 3.2vw, 48px);
  border-left: 1px solid rgba(247, 245, 238, .24);
}
.home-route-panel-top,
.home-route-heading,
.home-route-panel-bottom,
.home-hero-bottomline-label {
  display: flex;
  align-items: center;
}
.home-route-panel-top {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
}
.home-route-heading {
  gap: 13px;
  min-width: 0;
}
.home-route-index,
.home-hero-bottomline-label span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(229, 139, 120, .62);
  border-radius: 50%;
  color: #e58b78;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.home-route-heading p {
  margin: 0 0 5px;
  color: #a7cbb2;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.home-route-heading h2 {
  margin: 0;
  color: var(--paper);
  font-size: 1.18rem;
  font-weight: 520;
  letter-spacing: -.025em;
}
.home-route-all {
  flex: 0 0 auto;
  color: rgba(247, 245, 238, .62);
  font-size: .66rem;
  transition: color .2s ease;
}
.home-route-all:hover { color: #a7cbb2; }
.home-route-list {
  border-top: 1px solid rgba(247, 245, 238, .2);
  border-bottom: 1px solid rgba(247, 245, 238, .2);
}
.home-route-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(247, 245, 238, .13);
  color: var(--paper);
  transition: padding .22s ease, background .22s ease, border-color .22s ease;
}
.home-route-row:last-child { border-bottom: 0; }
.home-route-row:hover {
  padding-right: 10px;
  padding-left: 12px;
  background: rgba(247, 245, 238, .055);
}
.home-route-row.is-recommended {
  padding-left: 12px;
  border-left: 3px solid #e58b78;
  background: linear-gradient(90deg, rgba(229, 139, 120, .12), transparent 76%);
}
.home-route-row.is-recommended:hover { padding-left: 20px; }
.home-route-number {
  align-self: start;
  padding-top: 3px;
  color: rgba(167, 203, 178, .78);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.home-route-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.home-route-copy small {
  color: rgba(167, 203, 178, .75);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.home-route-copy strong {
  overflow: hidden;
  color: var(--paper);
  font-size: .95rem;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-route-copy > span {
  display: -webkit-box;
  overflow: hidden;
  max-width: 510px;
  color: rgba(247, 245, 238, .55);
  font-size: .68rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-route-action {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 66px;
}
.home-route-action small {
  color: rgba(247, 245, 238, .52);
  font-size: .61rem;
  white-space: nowrap;
}
.home-route-action i {
  color: #a7cbb2;
  font-size: 1.05rem;
  font-style: normal;
  transition: transform .2s ease, color .2s ease;
}
.home-route-row:hover .home-route-action i {
  color: #e58b78;
  transform: translate(3px, -2px);
}
.home-route-panel-bottom {
  flex-wrap: wrap;
  gap: 7px 17px;
  padding-top: 14px;
  color: rgba(247, 245, 238, .48);
  font-size: .61rem;
}
.home-route-panel-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-route-panel-bottom span + span {
  padding-left: 17px;
  border-left: 1px solid rgba(247, 245, 238, .16);
}
.home-route-panel-bottom .home-live-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(167, 203, 178, .13);
}

.home-hero-bottomline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid rgba(247, 245, 238, .17);
}
.home-hero-bottomline-label {
  align-items: flex-start;
  gap: 0;
  padding: 17px 20px 23px 0;
}
.home-hero-bottomline-label small {
  padding-top: 7px;
  color: rgba(167, 203, 178, .75);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.home-hero-bottomline a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-content: center;
  min-height: 76px;
  padding: 15px 22px;
  border-left: 1px solid rgba(247, 245, 238, .14);
  color: var(--paper);
  transition: background .2s ease, padding .2s ease;
}
.home-hero-bottomline a:hover {
  padding-left: 27px;
  background: rgba(247, 245, 238, .055);
}
.home-hero-bottomline a strong {
  color: var(--paper);
  font-size: .75rem;
  font-weight: 550;
}
.home-hero-bottomline a span {
  overflow: hidden;
  color: rgba(247, 245, 238, .51);
  font-size: .63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero-bottomline a i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #a7cbb2;
  font-size: 1rem;
  font-style: normal;
  transition: transform .2s ease, color .2s ease;
}
.home-hero-bottomline a:hover i { color: #e58b78; transform: translateX(3px); }

@media (max-width: 1100px) {
  .home-hero.home-hero-pathfinder .home-hero-inner {
    grid-template-columns: minmax(260px, .74fr) minmax(470px, 1.26fr);
    gap: 38px;
  }
  .home-route-row { gap: 12px; }
}
@media (max-width: 820px) {
  .home-hero.home-hero-pathfinder .home-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    padding-top: 28px;
    padding-bottom: 39px;
  }
  .home-hero.home-hero-pathfinder .home-brandline { margin-bottom: 40px; }
  .home-route-panel {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid rgba(247, 245, 238, .24);
    border-left: 0;
  }
}
@media (max-width: 620px) {
  .home-hero.home-hero-pathfinder .home-hero-inner {
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 29px;
  }
  .home-hero.home-hero-pathfinder .home-brandline { margin-bottom: 37px; }
  .home-hero.home-hero-pathfinder .home-title { font-size: clamp(2.75rem, 13vw, 4rem); }
  .home-hero.home-hero-pathfinder .home-lede { margin-top: 19px; }
  .home-hero-orientation { margin-top: 22px; gap: 9px 13px; }
  .home-hero-orientation b { padding-left: 13px; }
  .home-route-panel { padding-top: 23px; }
  .home-route-panel-top { align-items: flex-start; gap: 12px; }
  .home-route-heading h2 { font-size: 1.05rem; }
  .home-route-all { max-width: 112px; padding-top: 4px; text-align: right; line-height: 1.4; }
  .home-route-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 91px;
    padding: 14px 0;
  }
  .home-route-row:hover { padding-right: 6px; padding-left: 6px; }
  .home-route-row.is-recommended { padding-left: 9px; }
  .home-route-row.is-recommended:hover { padding-left: 14px; }
  .home-route-copy strong { font-size: .8rem; }
  .home-route-copy > span { font-size: .61rem; -webkit-line-clamp: 2; }
  .home-route-action { min-width: 49px; gap: 8px; }
  .home-route-action small { font-size: .55rem; }
  .home-route-panel-bottom { gap: 7px 11px; line-height: 1.35; }
  .home-route-panel-bottom span + span { padding-left: 11px; }
  .home-hero-bottomline { grid-template-columns: 1fr; }
  .home-hero-bottomline-label { min-height: 47px; padding: 13px 0 9px; }
  .home-hero-bottomline a,
  .home-hero-bottomline a:hover { min-height: 65px; padding: 12px 0; border-top: 1px solid rgba(247, 245, 238, .14); border-left: 0; }
  .home-hero-bottomline a:hover { padding-left: 7px; }
  .home-hero-bottomline a strong { font-size: .74rem; }
  .home-hero-bottomline a span { max-width: calc(100vw - 88px); }
}

@media (max-width: 720px) {
  .container, .narrow { width: min(100% - 32px, 640px); }
  .section { padding: 53px 0; }
  .site-header nav { gap: 18px; }
}

/* Light learning-platform treatment. Keep the path-first composition, but
   return the hero to the site's paper surfaces so the first screen belongs
   to the same visual world as the rest of the homepage. */
.home-hero.home-hero-pathfinder {
  background: radial-gradient(circle at 82% 22%, rgba(130, 173, 147, .2), transparent 32%), linear-gradient(118deg, #fbfaf5 0%, #f7f5ee 55%, #e7efe8 100%);
  color: var(--ink);
}
.home-hero.home-hero-pathfinder::before {
  opacity: .62;
  background-image: linear-gradient(rgba(79, 128, 107, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 128, 107, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black 0%, black 84%, transparent 100%);
}
.home-hero.home-hero-pathfinder::after {
  right: -195px;
  top: -245px;
  width: 735px;
  height: 735px;
  border-color: rgba(79, 128, 107, .13);
  box-shadow: 0 0 0 34px rgba(79, 128, 107, .035), 0 0 0 82px rgba(215, 107, 88, .025);
}
.home-hero.home-hero-pathfinder .home-hero-glow-one { background: radial-gradient(circle, rgba(130, 173, 147, .22), rgba(130, 173, 147, 0) 68%); }
.home-hero.home-hero-pathfinder .home-hero-glow-two { background: radial-gradient(circle, rgba(215, 107, 88, .1), rgba(215, 107, 88, 0) 67%); }
.home-hero.home-hero-pathfinder .home-brandline { color: var(--ink); }
.home-hero.home-hero-pathfinder .home-brandline .home-brand-divider { color: var(--accent); }
.home-hero.home-hero-pathfinder .home-kicker { color: var(--teal); }
.home-hero.home-hero-pathfinder .home-title { color: var(--ink); }
.home-hero.home-hero-pathfinder .home-title span { color: var(--accent); }
.home-hero.home-hero-pathfinder .home-lede { color: var(--muted); }
.home-hero.home-hero-pathfinder .home-hero-orientation { color: var(--muted); }
.home-hero.home-hero-pathfinder .home-hero-orientation b { border-left-color: var(--line); color: var(--ink); }
.home-hero.home-hero-pathfinder .home-live-dot { background: var(--teal); box-shadow: 0 0 0 5px rgba(79, 128, 107, .14); }

.home-hero.home-hero-pathfinder .home-route-panel {
  padding: 23px 22px 15px;
  border: 1px solid rgba(79, 128, 107, .18);
  border-radius: 18px 3px 18px 3px;
  background: rgba(255, 254, 250, .78);
  box-shadow: 0 18px 38px rgba(53, 73, 62, .08);
  backdrop-filter: blur(10px);
}
.home-hero.home-hero-pathfinder .home-route-index,
.home-hero.home-hero-pathfinder .home-hero-bottomline-label span {
  border-color: rgba(215, 107, 88, .55);
  color: var(--accent-dark);
}
.home-hero.home-hero-pathfinder .home-route-heading p,
.home-hero.home-hero-pathfinder .home-route-copy small,
.home-hero.home-hero-pathfinder .home-hero-bottomline-label small { color: var(--teal); }
.home-hero.home-hero-pathfinder .home-route-heading h2 { color: var(--ink); }
.home-hero.home-hero-pathfinder .home-route-all { color: var(--teal); }
.home-hero.home-hero-pathfinder .home-route-all:hover { color: var(--accent-dark); }
.home-hero.home-hero-pathfinder .home-route-list { border-top-color: var(--line); border-bottom-color: var(--line); }
.home-hero.home-hero-pathfinder .home-route-row { border-bottom-color: var(--line); color: var(--ink); }
.home-hero.home-hero-pathfinder .home-route-row:hover { background: var(--surface-soft); }
.home-hero.home-hero-pathfinder .home-route-row.is-recommended {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(215, 107, 88, .09), rgba(255, 254, 250, 0) 78%);
}
.home-hero.home-hero-pathfinder .home-route-number { color: var(--teal); }
.home-hero.home-hero-pathfinder .home-route-copy strong { color: var(--ink); }
.home-hero.home-hero-pathfinder .home-route-copy > span { color: var(--muted); }
.home-hero.home-hero-pathfinder .home-route-action small { color: var(--muted); }
.home-hero.home-hero-pathfinder .home-route-action i { color: var(--teal); }
.home-hero.home-hero-pathfinder .home-route-row:hover .home-route-action i { color: var(--accent); }
.home-hero.home-hero-pathfinder .home-route-panel-bottom { color: var(--muted); }
.home-hero.home-hero-pathfinder .home-route-panel-bottom span + span { border-left-color: var(--line); }
.home-hero.home-hero-pathfinder .home-route-panel-bottom .home-live-dot { box-shadow: 0 0 0 4px rgba(79, 128, 107, .13); }

.home-hero.home-hero-pathfinder .home-hero-bottomline { border-top-color: var(--line); }
.home-hero.home-hero-pathfinder .home-hero-bottomline a { border-left-color: var(--line); color: var(--ink); }
.home-hero.home-hero-pathfinder .home-hero-bottomline a:hover { background: rgba(255, 254, 250, .72); }
.home-hero.home-hero-pathfinder .home-hero-bottomline a strong { color: var(--ink); }
.home-hero.home-hero-pathfinder .home-hero-bottomline a span { color: var(--muted); }
.home-hero.home-hero-pathfinder .home-hero-bottomline a i { color: var(--teal); }
.home-hero.home-hero-pathfinder .home-hero-bottomline a:hover i { color: var(--accent); }

@media (max-width: 820px) {
  .home-hero.home-hero-pathfinder .home-route-panel { padding: 25px 18px 15px; border-top: 1px solid rgba(79, 128, 107, .18); }
}
@media (max-width: 620px) {
  .home-hero.home-hero-pathfinder .home-route-panel { padding: 22px 13px 13px; }
  .home-hero.home-hero-pathfinder .home-hero-bottomline a,
  .home-hero.home-hero-pathfinder .home-hero-bottomline a:hover { border-top-color: var(--line); }
}

/* Left-side learning statement: a compact learning loop gives the hero a
   second layer of meaning without competing with the route selector. */
.home-hero.home-hero-pathfinder .home-hero-copy {
  max-width: 515px;
}
.home-hero.home-hero-pathfinder .home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-hero.home-hero-pathfinder .home-kicker::before {
  content: "00";
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(79, 128, 107, .36);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: .55rem;
  letter-spacing: .04em;
}
.home-hero.home-hero-pathfinder .home-lede {
  max-width: 455px;
  margin-top: 22px;
  line-height: 1.68;
}
.home-learning-loop {
  max-width: 505px;
  margin-top: 30px;
  padding-top: 13px;
  border-top: 1px solid rgba(79, 128, 107, .22);
}
.home-learning-loop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 7px;
}
.home-learning-loop-head span {
  color: var(--teal);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.home-learning-loop-head i {
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
}
.home-learning-loop-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.home-learning-loop-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 57px;
  padding: 5px 17px 2px 0;
}
.home-learning-loop-step + .home-learning-loop-step { padding-left: 17px; }
.home-learning-loop-step + .home-learning-loop-step::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 1px;
  height: 30px;
  background: var(--line);
}
.home-learning-loop-step > span {
  color: var(--accent);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.home-learning-loop-step strong {
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
}
.home-learning-loop-step small {
  color: var(--muted);
  font-size: .61rem;
  line-height: 1.35;
}
.home-hero.home-hero-pathfinder .home-hero-orientation { margin-top: 24px; }

@media (max-width: 620px) {
  .home-hero.home-hero-pathfinder .home-kicker::before { width: 24px; height: 24px; }
  .home-learning-loop { margin-top: 25px; }
  .home-learning-loop-step { padding-right: 9px; }
  .home-learning-loop-step + .home-learning-loop-step { padding-left: 9px; }
  .home-learning-loop-step strong { font-size: .68rem; }
  .home-learning-loop-step small { font-size: .57rem; }
}

/* Homepage left side: make it read like the opening page of a field guide.
   The route panel remains the practical selector on the right; this side is
   deliberately quieter, with one promise, one first move, and one action. */
.home-hero.home-hero-pathfinder .home-hero-copy {
  max-width: 515px;
  padding: 0 0 7px;
}
.home-hero.home-hero-pathfinder .home-brandline {
  margin-bottom: 26px;
}
.home-copy-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 455px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(79, 128, 107, .2);
  color: var(--accent-dark);
  font-size: .59rem;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.home-copy-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 650;
  letter-spacing: .11em;
  white-space: nowrap;
}
.home-copy-status .home-live-dot {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 4px rgba(79, 128, 107, .11);
}
.home-hero.home-hero-pathfinder .home-kicker {
  display: block;
  margin: 29px 0 13px;
  color: var(--teal);
  font-size: .61rem;
  font-weight: 750;
  letter-spacing: .17em;
}
.home-hero.home-hero-pathfinder .home-kicker::before {
  display: none;
}
.home-hero.home-hero-pathfinder .home-title {
  max-width: 480px;
  font-size: clamp(3.25rem, 4.55vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.073em;
}
.home-hero.home-hero-pathfinder .home-title span {
  color: var(--accent);
}
.home-hero.home-hero-pathfinder .home-title span::after {
  display: block;
  right: .05em;
  bottom: -.08em;
  left: 0;
  height: .045em;
  background: linear-gradient(90deg, var(--accent), rgba(215, 107, 88, 0));
  transform: rotate(-1deg);
}
.home-hero.home-hero-pathfinder .home-lede {
  max-width: 430px;
  margin-top: 21px;
  line-height: 1.7;
}
.home-first-move {
  max-width: 455px;
  margin-top: 25px;
  padding: 14px 0 15px;
  border-top: 1px solid rgba(79, 128, 107, .2);
  border-bottom: 1px solid rgba(79, 128, 107, .2);
}
.home-first-move-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--teal);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.home-first-move-head i {
  color: var(--accent);
  font-size: .95rem;
  font-style: normal;
  line-height: 1;
}
.home-first-move > strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.home-first-move > p {
  max-width: 390px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.55;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}
.home-hero-actions .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: .72rem;
}
.home-hero-quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: .69rem;
  font-weight: 650;
  transition: color .2s ease, gap .2s ease;
}
.home-hero-quiet-link i {
  color: var(--accent);
  font-size: .95rem;
  font-style: normal;
  transition: transform .2s ease;
}
.home-hero-quiet-link:hover {
  color: var(--accent-dark);
  gap: 12px;
}
.home-hero-quiet-link:hover i { transform: translateX(2px); }
.home-hero.home-hero-pathfinder .home-hero-orientation {
  margin-top: 20px;
  gap: 9px 16px;
}

@media (max-width: 620px) {
  .home-hero.home-hero-pathfinder .home-brandline { margin-bottom: 22px; }
  .home-copy-mast { gap: 10px; }
  .home-copy-status { font-size: .5rem; letter-spacing: .08em; }
  .home-hero.home-hero-pathfinder .home-kicker { margin-top: 25px; }
  .home-hero.home-hero-pathfinder .home-title { font-size: clamp(2.9rem, 13vw, 4rem); }
  .home-first-move { margin-top: 22px; }
  .home-hero-actions { gap: 14px; margin-top: 17px; }
  .home-hero-actions .button { min-height: 40px; }
}
