/* ============================================================
   CUFF JEWELLERY — COMPONENT STYLES
   Section / component-specific styles. All values reference
   design tokens from design.css — no raw design values here.
   ============================================================ */

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-md);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}
.nav.scrolled {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.12em;
  color: var(--color-reversed);
  transition: color var(--duration) var(--ease-out);
}
.nav.scrolled .nav-logo { color: var(--color-primary); }
.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--color-reversed-rgb), var(--op-70));
  transition: color var(--duration) var(--ease-out);
}
.nav.scrolled .nav-links a { color: var(--color-muted); }
.nav-links a:hover { color: var(--color-reversed) !important; }
.nav.scrolled .nav-links a:hover { color: var(--color-primary) !important; }
.nav-lang-switch {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-link--active { color: var(--color-accent); }
.nav.scrolled .nav-lang-switch { color: var(--color-muted); }
.nav-lang-switch:hover { color: var(--color-reversed) !important; }
.nav.scrolled .nav-lang-switch:hover { color: var(--color-primary) !important; }
.nav-notify {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
}
.nav.scrolled .nav-notify { color: var(--color-accent-text); }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-primary);
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--gutter) var(--space-2xl) var(--gutter);
  position: relative;
  z-index: 1;
}
.hero-shop-tag {
  font-family: var(--font-display);
  font-size: var(--text-accent);
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.hero-heading { color: var(--color-reversed); margin-bottom: var(--space-md); }
.hero-sub {
  color: rgba(var(--color-reversed-rgb), var(--op-50));
  max-width: 520px;
  margin-bottom: var(--space-xl);
  font-size: var(--text-small);
  line-height: 1.8;
}
.hero-actions { display: flex; flex-direction: column; gap: var(--space-sm); align-items: center; }
.hero-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(var(--color-reversed-rgb), var(--op-70));
  font-size: var(--text-label);
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}
.hero-coming-soon-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* MARQUEE */
.marquee-strip {
  background: var(--color-primary);
  border-top: 1px solid var(--color-accent);
  padding-block: 12px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: var(--space-xl);
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-reversed);
}
.marquee-sep { color: rgba(245,240,232,0.4) !important; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* STATEMENT */
.statement { background: var(--color-bg); padding-block: var(--space-3xl); text-align: center; }
.statement-inner { max-width: 680px; margin-inline: auto; }
.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--weight-light);
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}
.statement-rule {
  width: 40px; height: 1px;
  background: var(--color-accent);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

/* section eyebrow centered variants */
.section-eyebrow--centered {
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.section-eyebrow--centered-md {
  justify-content: center;
  margin-bottom: var(--space-md);
}

/* utility overrides (not in design.css — extracted from inline styles) */
.t-label--accent { color: var(--color-accent-text); }
.t-body--centered { max-width: 500px; margin-inline: auto; }
.t-h2--primary { color: var(--color-primary); }

/* VALUES */
.values { background: var(--color-surface); padding-block: var(--space-2xl); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.value-item {
  background: var(--color-surface);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.value-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: var(--weight-light);
  color: rgba(var(--color-primary-rgb), var(--op-16));
  line-height: 1;
}
.value-title { color: var(--color-primary); }
.value-desc { color: var(--color-muted); font-size: var(--text-small); line-height: 1.75; }

/* INSTAGRAM */
.instagram { background: var(--color-bg); }
.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-border);
}
.insta-cell {
  aspect-ratio: 1;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--duration) var(--ease-out);
}
.insta-cell:hover { opacity: 0.8; }
.insta-cell svg { width: 28px; height: 28px; color: var(--color-border); }
.insta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: var(--divider-muted);
  margin-top: var(--space-md);
}
.ig-handle-strong { color: var(--color-primary); }
.ig-footer-link { color: var(--color-accent-text); }
.ig-footer-link:hover { color: var(--color-primary); }

/* NOTIFY */
.notify {
  background: var(--color-primary);
  padding-block: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.notify-inner { position: relative; z-index: 1; }
.notify-heading { color: var(--color-reversed); margin-bottom: var(--space-sm); }
.notify-sub { color: rgba(var(--color-reversed-rgb), var(--op-50)); font-size: var(--text-small); margin-bottom: var(--space-xl); }
.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: 480px;
  margin-inline: auto;
  justify-content: center;
}
.notify-input {
  flex: 1 1 180px;
  min-width: 140px;
  background: rgba(var(--color-reversed-rgb), var(--op-08));
  border: 1px solid rgba(184,150,90,0.35);
  color: var(--color-reversed);
  font-family: var(--font-body);
  font-size: var(--text-small);
  padding: 14px var(--space-md);
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease-out);
}
.notify-input::placeholder { color: rgba(var(--color-reversed-rgb), var(--op-35)); }
.notify-input:focus { border-color: rgba(184,150,90,0.7); }
.notify-btn {
  background: var(--color-accent);
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px var(--space-lg);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease-out);
}
.notify-btn:hover { background: var(--color-accent-light); }
.notify-error {
  display: none;
  color: rgba(var(--color-reversed-rgb), var(--op-70));
  font-size: var(--text-small);
  margin-top: var(--space-sm);
}
.notify-error.is-visible { display: block; }
/* BLOG */
.blog { background: var(--color-surface); }
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
  gap: var(--space-md);
  justify-content: center;
}
.blog-card {
  background: var(--color-bg);
  border: var(--divider-muted);
  display: flex;
  flex-direction: row;
  container-type: inline-size;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
  position: relative;
}
.blog-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.blog-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.blog-card-link-overlay:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -3px;
}
.blog-card-img {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.blog-card:first-child .blog-card-img { height: 280px; }
.blog-card:not(:first-child) .blog-card-img { height: 160px; }
.blog-card-glyph {
  display: none;
}
.blog-card-glyph--curriculum {
  display: none;
}
.blog-card-glyph--curriculum {
  color: rgba(245,240,232,0.15);
}
.blog-card-tag {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  padding: 3px 10px;
}
.blog-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}
.blog-card-date { color: var(--color-muted); }
.blog-card-title { color: var(--color-primary); margin-bottom: var(--space-xs); }
.blog-card-excerpt { color: var(--color-muted); font-size: var(--text-small); line-height: 1.7; flex: 1; }
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-top: var(--space-md);
  transition: gap var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}
.blog-card-link:hover { gap: 12px; color: var(--color-primary-hover); }

/* Option 3 — horizontal spine: green 120px side column, tag on body side */
.blog-card:first-child .blog-card-img,
.blog-card:not(:first-child) .blog-card-img,
.blog-grid-home .blog-card--featured .blog-card-img,
.journal-latest .blog-card:first-child .blog-card-img {
  height: auto !important;
}
.blog-card-img {
  flex: 0 0 88px;
  min-height: 0;
  padding: var(--space-sm);
  position: static;
}
.blog-card-tag {
  top: var(--space-sm);
  right: var(--space-sm);
  left: auto;
}
.blog-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: var(--space-sm);
}
/* Narrow cards fall back to stacked */
@container (max-width: 300px) {
  .blog-card {
    flex-direction: column;
  }
  .blog-card-img {
    flex-basis: auto;
  }
  .blog-card-tag {
    right: auto;
    left: var(--space-sm);
  }
}

/* FOOTER */
.footer { background: var(--color-text); padding-block: var(--space-xl); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(var(--color-reversed-rgb), var(--op-08));
}
.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--weight-light);
  color: var(--color-reversed);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.footer-brand-desc { color: rgba(var(--color-reversed-rgb), var(--op-35)); font-size: var(--text-small); line-height: 1.75; max-width: 220px; }
.footer-col-title { color: var(--color-accent); margin-bottom: var(--space-md); }
.footer-col-links { display: flex; flex-direction: column; gap: 12px; list-style: none; }

/* When footer columns are stamped from JSON, they sit inside one
   wrapping div (.footer-cols). Lay them out as a 3-col subgrid
   that participates in the parent .footer-top grid. */
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-xl); }
.footer-col-links a {
  color: rgba(var(--color-reversed-rgb), var(--op-35));
  font-size: var(--text-small);
  font-family: var(--font-body);
  transition: color var(--duration) var(--ease-out);
}
.footer-col-links a:hover { color: var(--color-reversed); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-copy { color: rgba(var(--color-reversed-rgb), var(--op-50)); font-size: var(--text-label); letter-spacing: 0.1em; font-family: var(--font-body); }
.footer-domain { color: var(--color-accent); font-size: var(--text-label); letter-spacing: 0.12em; font-family: var(--font-body); }
.footer-socials { display: flex; gap: var(--space-sm); }
.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(var(--color-reversed-rgb), var(--op-16));
  display: flex; align-items: center; justify-content: center;
  color: rgba(var(--color-reversed-rgb), var(--op-35));
  transition: border-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}
.social-icon:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* PAGE HEADER (sub-pages: blog.html, etc.) */
.page-header {
  background: var(--color-primary);
  padding-block: calc(var(--space-3xl) + var(--space-md)) var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.page-header-inner { position: relative; z-index: 1; max-width: 720px; }
.page-header-eyebrow { color: var(--color-accent); margin-bottom: var(--space-md); }
.page-header-title { color: var(--color-reversed); margin-bottom: var(--space-sm); }
.page-header-sub { color: rgba(var(--color-reversed-rgb), var(--op-50)); font-size: var(--text-accent); font-family: var(--font-display); font-weight: var(--weight-light); font-style: italic; line-height: 1.4; }


/* LECTURE SERIES (shell is expandable; modules are links) */
.lecture-series {
  background: var(--color-bg);
  border-block: var(--divider-gold);
  padding-block: var(--space-2xl);
}
.btn-spacer { display: inline-block; min-width: 1px; }

/* Module page prev/next nav row. The 3-button template stamps prev / journal
   / next in order, and edge roles with no neighbor become a hidden span so
   the flex row keeps its 3-column layout. */
.module-nav-empty { display: inline-block; min-width: 1px; visibility: hidden; }
.lecture-series-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.lecture-series-eyebrow { color: var(--color-accent); }
.lecture-series-title { color: var(--color-primary); }
.lecture-series-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-muted);
  font-size: var(--text-label);
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lecture-series-pinned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: var(--text-label);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* The outer expandable shell. The .lecture-shell acts as the <summary> body. */
.lecture-shell-details { margin: 0; }
.lecture-shell-details > summary {
  list-style: none;
  cursor: pointer;
  background: var(--color-surface);
  border: var(--divider-muted);
  padding: var(--space-xl);
  position: relative;
  transition: border-color var(--duration) var(--ease-out);
}
.lecture-shell-details > summary::-webkit-details-marker { display: none; }
.lecture-shell-details > summary:hover { border-color: var(--color-accent); }
.lecture-shell-details[open] > summary {
  border-bottom-color: transparent;
}

/* Chevron in the top-right corner of the summary, signals open/closed */
.lecture-shell-chevron {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform var(--duration) var(--ease-out);
}
.lecture-shell-chevron::before,
.lecture-shell-chevron::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.lecture-shell-chevron::before {
  top: 15px; left: 8px; right: 8px; height: 2px;
}
.lecture-shell-chevron::after {
  left: 15px; top: 8px; bottom: 8px; width: 2px;
  transition: transform var(--duration) var(--ease-out);
}
.lecture-shell-details[open] .lecture-shell-chevron::after {
  transform: scaleY(0);
}

/* Intro inside the summary: cover + name + description + meta */
.lecture-shell {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}
.lecture-shell-cover {
  background: var(--color-primary);
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lecture-shell-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.lecture-shell-cover-glyph {
  display: none;
}
.lecture-shell-cover-badge {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  z-index: 2;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  padding: 4px 12px;
  font-size: var(--text-label);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lecture-shell-body { display: flex; flex-direction: column; gap: var(--space-sm); }
.lecture-shell-tag {
  display: inline-block;
  align-self: flex-start;
  color: var(--color-accent);
  font-size: var(--text-label);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lecture-shell-name {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: 1.15;
  color: var(--color-primary);
}
.lecture-shell-desc {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.75;
}
.lecture-shell-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
  color: var(--color-muted);
  font-size: var(--text-label);
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lecture-shell-meta-item { display: inline-flex; align-items: center; gap: 6px; }

/* The 9 module rows — now <a> links, not expandable */
.lecture-modules {
  background: var(--color-surface);
  border: var(--divider-muted);
  border-top: none;
  display: flex;
  flex-direction: column;
}
.lecture-module {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 24px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
  transition: background var(--duration) var(--ease-out);
}
.lecture-module:hover { background: var(--color-bg); }
.lecture-module:hover .lecture-module-arrow { transform: translateX(4px); color: var(--color-primary); }
.lecture-module-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-light);
  color: rgba(var(--color-primary-rgb), var(--op-16));
  line-height: 1;
}
.lecture-module-tag {
  color: var(--color-primary);
  font-size: var(--text-label);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lecture-module-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-regular);
  line-height: 1.3;
  color: var(--color-text);
}
.lecture-module-arrow {
  width: 24px;
  text-align: center;
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
  transition: transform var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

/* LATEST JOURNAL SECTION (reuses .blog-grid / .blog-card from BLOG) */
.journal-latest { background: var(--color-surface); }
.journal-latest-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.journal-latest-title { color: var(--color-primary); }
.journal-latest-sub {
  color: var(--color-muted);
  font-size: var(--text-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.journal-latest .blog-card:first-child .blog-card-img { height: 220px; }

/* HOME PAGE journal: 2 cards in a 2-col grid, then a full-width FAQ */
.blog-grid-home {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
}
.blog-grid-home .blog-card--featured .blog-card-img { height: 320px; }
.blog-grid-home .blog-card--featured .blog-card-glyph {
  font-size: clamp(72px, 9vw, 140px);
  color: rgba(245,240,232,0.12);
}

/* ── Blog Grid · Responsive Breakpoints ───────────────────────── */
/* Base: auto-fit minmax(min(100%, 300px), 340px) + justify-content: center.
   auto-fit collapses empty tracks. Cards flex 300–340px, split leftover space.
   @container (max-width: 300px) handles the stacked fallback below that. */

/* HOME FAQ */
.home-faq {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.home-faq-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.home-faq-title { color: var(--color-primary); margin-bottom: var(--space-xl); }

.home-faq-group { margin-bottom: var(--space-lg); }
.home-faq-group-title {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-sm);
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.home-faq-item { border-bottom: 1px solid var(--color-border); }
.home-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-md) var(--space-xs);
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: var(--space-md);
  align-items: center;
  transition: background var(--duration) var(--ease-out);
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary:hover { background: var(--color-bg); }
.home-faq-q {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: var(--weight-regular);
  line-height: 1.3;
  color: var(--color-text);
}
.home-faq-icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
}
.home-faq-icon::before,
.home-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-accent);
  transition: transform var(--duration) var(--ease-out);
}
.home-faq-icon::before {
  top: 11px; left: 4px; right: 4px; height: 2px;
}
.home-faq-icon::after {
  left: 11px; top: 4px; bottom: 4px; width: 2px;
}
.home-faq-item[open] .home-faq-icon::after { transform: scaleY(0); }
.home-faq-a {
  padding: 0 var(--space-xs) var(--space-lg) 0;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.8;
  max-width: 820px;
}
.home-faq-a p + p { margin-top: var(--space-sm); }
.home-faq-a a { color: var(--color-accent); border-bottom: 1px solid var(--color-accent); }
.home-faq-a a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* NOT FOUND (404) */
.nf-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: var(--space-2xl) var(--space-md);
}
.nf-content {
  text-align: center;
  max-width: 480px;
}
.nf-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: var(--weight-light);
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-md);
}
.nf-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
}
.nf-desc {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-muted);
  margin: 0 0 var(--space-xl);
  line-height: 1.6;
}
.nf-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.nf-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-small);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease-out);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.nf-link-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}
.nf-link-primary:hover {
  background: var(--color-primary-hover);
}
.nf-link:not(.nf-link-primary):hover {
  background: var(--color-surface);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-left { padding: var(--space-3xl) var(--gutter) var(--space-2xl); }
  .blog-grid-home { grid-template-columns: 1fr; }
  .blog-grid-home .blog-card--featured .blog-card-img { height: 220px; }
  .home-faq-header { flex-direction: column; align-items: flex-start; }
  .lecture-shell { grid-template-columns: 1fr; }
  .lecture-module { grid-template-columns: 40px minmax(0, 1fr) auto 24px; padding-inline: var(--space-md); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .module-article { padding-block: var(--space-lg); }
  .lecture-h1, .lecture-h3 { margin-top: var(--space-lg); }
  .lecture-quiz, .lecture-sources, .lecture-next, .lecture-cta, .module-nav {
    margin-top: var(--space-lg);
  }
}
@media (max-width: 600px) {
  .blog-grid-home { grid-template-columns: 1fr; }
  .lecture-shell-details > summary { padding: var(--space-md); }
  .lecture-shell { padding: 0; }
  .lecture-series-header { flex-direction: column; align-items: flex-start; }
  .lecture-module { grid-template-columns: 32px minmax(0, 1fr) 24px; row-gap: 4px; padding-inline: var(--space-md); }
  .lecture-module-num { grid-row: 1; }
  .lecture-module-title { grid-row: 1; }
  .lecture-module-arrow { grid-row: 1; }
  .lecture-module-tag { grid-row: 2; grid-column: 2 / 4; font-size: 10px; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .notify-form { flex-direction: column; align-items: stretch; }
  .notify-input { flex: 1 1 auto; min-width: 0; }
  .nav-links { display: none; }
  .module-nav { justify-content: flex-start; }
  .lecture-cta { padding: var(--space-md); }
}

/* ============================================================
   LECTURE CONTENT — headings, lists, myths, quiz
   ============================================================ */

/* Reading measure for the two long-form contexts: the course module
   body and the blog article body. Both wrap the mdToHtml() output. */
.module-article {
  max-width: 70ch;
  padding-block: var(--space-xl);
}

.blog-article-body {
  max-width: 70ch;
  margin-inline: auto;
}

.lecture-section:not(:last-child) {
  margin-bottom: var(--space-xl);
}

.lecture-block {
  max-width: 70ch;
}

.lecture-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: var(--divider-gold);
}

.lecture-h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  line-height: 1.25;
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.lecture-block > .lecture-h1:first-child,
.lecture-block > .lecture-h3:first-child {
  margin-top: 0;
}

.lecture-h4 {
  font-family: var(--font-display);
  font-size: var(--text-accent);
  font-weight: var(--weight-regular);
  line-height: 1.3;
  color: var(--color-accent);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.lecture-block p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.lecture-block a,
.lecture-list li a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: opacity 0.15s ease;
}

.lecture-block a:hover,
.lecture-list li a:hover {
  opacity: 0.7;
}

.lecture-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-lg);
}

.lecture-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.75;
}

.lecture-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  opacity: 0.7;
}

.lecture-list-check li::before {
  content: none;
}

.lecture-list-check li {
  padding-left: 0;
}

.lecture-myth {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.lecture-myth .lecture-h4 {
  margin-top: 0;
  color: var(--color-accent);
}

.lecture-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.lecture-summary .lecture-list li {
  color: var(--color-accent);
}

.lecture-image-placeholder {
  background: var(--color-surface-dark);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-small);
  margin-block: var(--space-md);
}

/* Sources + related "next steps" — post-body reference blocks. */
.lecture-sources,
.lecture-next {
  max-width: 70ch;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.lecture-sources > .lecture-h3,
.lecture-next > .lecture-h3 {
  margin-top: 0;
}

.lecture-sources-list {
  padding-left: var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.7;
}

.lecture-sources-list li {
  margin-bottom: var(--space-xs);
}

.lecture-sources-list a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.lecture-sources-list a:hover {
  opacity: 0.7;
}

.lecture-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Module/article prev-next + back-to-hub nav row. */
.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.module-nav .btn-ghost {
  color: var(--color-muted);
  border-color: var(--color-border);
}

/* Blog article email-capture CTA (mechanism wired in Epic 7). */
.lecture-cta {
  max-width: 70ch;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-primary);
  border-radius: var(--radius-md);
}

.lecture-cta .t-h3 {
  color: var(--color-reversed);
  margin-bottom: var(--space-sm);
}

.lecture-cta .t-body {
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: var(--space-md);
}

/* CTA form (shared: blog articles + curriculum modules) */
.cta-form {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  padding: 10px 16px;
  border: 1px solid var(--color-border, #2d6b4a);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  min-width: 180px;
  flex: 1 1 160px;
}
.blog-cta-error {
  display: none;
  color: rgba(var(--color-reversed-rgb), var(--op-70));
  font-size: var(--text-small);
  margin-top: var(--space-sm);
}
.blog-cta-error.is-visible { display: block; }
.course-cta-error {
  display: none;
  color: rgba(var(--color-reversed-rgb), var(--op-70));
  font-size: var(--text-small);
  margin-top: var(--space-sm);
}
.course-cta-error.is-visible { display: block; }

/* Breadcrumb links in page-header eyebrow */
.breadcrumb-link {
  color: var(--color-accent);
  text-decoration: none;
}
.breadcrumb-category {
  color: var(--color-reversed);
  opacity: 0.7;
}

/* Lecture shell single-column variant (module detail page) */
.lecture-shell--single {
  grid-template-columns: 1fr;
  gap: 0;
}

/* Pillar curriculum link (blog → curriculum funnel) */
.lecture-pillar {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-border, #2d6b4a);
  border-radius: 8px;
}
.pillar-label {
  margin-bottom: var(--space-xs);
  color: var(--color-accent);
}
.pillar-link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

/* Lecture shell meta with extra top spacing */
.lecture-shell-meta--spaced {
  margin-top: var(--space-xl);
}

/* FAQ inside blog articles — tighter top spacing than home FAQ */
.home-faq--compact {
  margin-top: var(--space-xl);
}

/* Journal hub: right-aligned meta column */
.lecture-series-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

/* Quiz */
.lecture-quiz {
  max-width: 70ch;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--divider-gold);
}

.lecture-quiz > .lecture-h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  padding-bottom: 0;
  border-bottom: none;
}

.quiz-label {
  color: var(--color-muted);
  font-size: var(--text-small);
  margin-bottom: var(--space-md);
}

.quiz-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-right: var(--space-sm);
  opacity: 0.7;
}

.quiz-item {
  margin-bottom: var(--space-sm);
}

.quiz-item > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  transition: border-color var(--duration) var(--ease-out);
}

.quiz-item > summary::-webkit-details-marker { display: none; }

.quiz-item > summary:hover {
  border-color: var(--color-accent);
}

.quiz-item[open] > summary {
  border-color: var(--color-accent);
  background: var(--color-surface-dark);
}

.quiz-answer {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  color: var(--color-muted);
}

.quiz-answer p {
  font-size: var(--text-small);
  line-height: 1.7;
}

.quiz-answer strong {
  color: var(--color-accent);
}

/* ── About page ──────────────────────────────────────────────── */
.about-vision {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}
.about-values {
  padding: var(--space-3xl) 0;
  background: var(--color-surface);
}
.about-promise {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}
.about-section-inner {
  max-width: 720px;
  margin: 0 auto;
}
.about-section-title {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
.about-body {
  color: var(--color-text);
  font-size: var(--text-body);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}
.about-body:last-child {
  margin-bottom: 0;
}
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.about-value-item {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.about-value-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-accent);
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}
.about-value-title {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.about-value-desc {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  .about-section-inner {
    max-width: 100%;
    padding: 0 var(--gutter);
  }
}
