/* =========================================================
   Aisha — content.css
   Reusable design-system components for CONTENT pages (hubs, spokes).
   Ported from the Aisha Portal design deliverable. Loads AFTER theme.css;
   consumes its tokens + .container + .btn + shared FAQ/CTA + .breadcrumb.
   Glossary pages use glossary-leaf.css instead. Flat cream, amber accent,
   Playfair headlines, Manrope body — no gradients.
   ========================================================= */

:root {
  --content-measure: 720px;   /* readable prose width */
  --radius-card: 20px;        /* design uses 20px cards (theme default is 16px) */
}

/* ---------- page hero (hub / spoke) ---------- */
.page-hero { padding: 112px 0 56px; }
@media (min-width: 768px) { .page-hero { padding: 128px 0 72px; } }
/* breadcrumb-led hero sits closer to the navbar (matches the glossary masthead) */
.page-hero:has(> .container > .breadcrumb) { padding-top: 88px; }
@media (min-width: 768px) { .page-hero:has(> .container > .breadcrumb) { padding-top: 96px; } }
.page-hero .breadcrumb { margin-bottom: 20px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(300px,0.9fr); gap: 60px; }
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface-card); border: 1px solid var(--surface-divider);
  color: var(--text-muted); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 20px;
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-amber); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 38px; line-height: 1.1; letter-spacing: -0.5px;
  color: var(--text-primary); margin: 0 0 20px;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 54px; } }
.page-hero h1 em { font-style: italic; color: var(--color-amber); }
.page-hero-sub { font-size: 18px; line-height: 1.65; color: var(--text-secondary); max-width: 560px; margin: 0 0 30px; }
@media (min-width: 768px) { .page-hero-sub { font-size: 20px; } }
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.page-hero-trust { font-size: 13px; color: var(--text-muted); margin: 16px 0 0; }
.page-hero-art { display: flex; justify-content: center; }
.page-hero-art img { width: 100%; max-width: 440px; height: auto; }

/* ---------- intro card ("what is Aisha") ---------- */
/* intro band — distinct soft-amber tint so the top-CTA band never matches an
   adjacent warm/cream section. SINGLE SOURCE OF TRUTH for the intro colour —
   tweak the background here (design-iterate). */
.intro-band { padding: 44px 0; background: #FBF3E3; border-top: 1px solid var(--surface-divider); border-bottom: 1px solid var(--surface-divider); }
.intro-card { max-width: var(--content-measure); display: flex; flex-direction: column; gap: 18px; }
.intro-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-amber); }
.intro-text { font-size: 17px; line-height: 1.65; color: var(--text-primary); margin: 0; }
.intro-text .brand { color: var(--color-amber); font-weight: 700; }
.intro-trust { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---------- generic content section ---------- */
.content-section { padding: 72px 0; }
@media (min-width: 768px) { .content-section { padding: 96px 0; } }
.content-section.warm { background: var(--surface-warm); }
.section-header { max-width: var(--content-measure); margin: 0 0 40px; text-align: left; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-amber); margin: 0 0 12px; display: inline-block; }
.section-header h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 30px; line-height: 1.2; letter-spacing: -0.3px; color: var(--text-primary); margin: 0;
}
@media (min-width: 768px) { .section-header h2 { font-size: 40px; } }
.section-sub { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 16px 0 0; }

/* ---------- prose (long-form body) ---------- */
.prose { max-width: var(--content-measure); font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.7em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.25; color: var(--text-primary); margin-top: 44px; letter-spacing: -0.2px; }
.prose h3 { font-family: var(--font-sans); font-weight: 700; font-size: 20px; color: var(--text-primary); margin-top: 32px; }
.prose a { color: var(--color-amber); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text-primary); font-weight: 700; }

/* ---------- research / cited quote ---------- */
.cite-lead { font-size: 15px; color: var(--text-muted); margin: 28px 0 0; max-width: var(--content-measure); }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; max-width: var(--content-measure); }
@media (min-width: 768px) { .quote-grid.two { grid-template-columns: 1fr 1fr; max-width: none; } }
.cited-quote {
  background: var(--surface-card); border: 1px solid var(--surface-divider);
  border-left: 3px solid var(--color-amber); border-radius: 12px; box-shadow: var(--shadow-card);
  padding: 22px 24px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-secondary);
}
.cited-quote p { margin: 0 0 12px; font-style: italic; }
.cited-quote .translation { font-style: normal; font-size: 14px; color: var(--text-muted); }
.cited-quote cite { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.cited-quote cite a { color: var(--text-muted); }
.cited-quote cite a:hover { color: var(--color-amber); }

/* ---------- hot-take / personal observation (founder note card) ---------- */
.hot-take {
  max-width: 760px; margin: 0; padding: 32px 36px;
  background: var(--surface-card); border-radius: 20px;
  border-left: 4px solid var(--color-amber); box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .hot-take { padding: 40px 44px; } }
.hot-take-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-amber); margin: 0 0 12px; display: inline-block; }
.hot-take h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.22; letter-spacing: -0.2px; color: var(--text-primary); margin: 0 0 16px; }
@media (min-width: 768px) { .hot-take h2 { font-size: 30px; } }
.hot-take p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.hot-take .lead { font-size: 18px; color: var(--text-primary); }
.hot-take p:last-of-type { margin-bottom: 0; }
.hot-take-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--surface-divider); }
.hot-take-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--color-amber-light); color: var(--color-amber); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.hot-take-byline .who { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.hot-take-byline .role { font-size: 13px; color: var(--text-muted); margin-top: 1px; }

/* ---------- spoke card grid (hub → spokes) ---------- */
.spoke-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .spoke-grid { grid-template-columns: 1fr 1fr; } }
.spoke-card {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--surface-divider); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-card);
  transition: box-shadow var(--motion-base) ease, transform var(--motion-fast) ease, border-color var(--motion-base) ease;
}
.spoke-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: #E3C99A; }
.spoke-card-thumb { aspect-ratio: 16/10; background: var(--surface-warm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spoke-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spoke-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spoke-card-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--color-amber); }
.spoke-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--text-primary); margin: 0; }
.spoke-card p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.spoke-card-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--color-amber); display: inline-flex; align-items: center; gap: 6px; }
.spoke-card:hover .spoke-card-more svg { transform: translateX(3px); }
.spoke-card-more svg { width: 16px; height: 16px; transition: transform var(--motion-fast) ease; }

/* ---------- how-it-works steps (numbered) ---------- */
.loop { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 768px) { .loop { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.loop-step { background: var(--surface-card); border: 1px solid var(--surface-divider); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px 24px; }
.loop-number { width: 36px; height: 36px; border-radius: 50%; background: var(--color-amber-light); color: var(--color-amber); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.loop-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-primary); margin: 0 0 8px; }
.loop-step p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ---------- FAQ inside a content section: left-align to the content measure
   (the shared theme.css .faq-block/.faq-list center at 680px, which is the
   homepage layout; on hub/spoke pages it must line up with the left-aligned
   section headers — same as the design's <aisha-faq> behaviour). ---------- */
.content-section .faq-block,
.content-section .faq-list { max-width: var(--content-measure); margin-left: 0; margin-right: 0; }

/* ---------- related strip ---------- */
.related-strip { max-width: var(--content-measure); margin: 0 auto; padding: 20px 0; border-top: 1px solid var(--surface-divider); font-size: 15px; color: var(--text-muted); }
.related-strip a { color: var(--color-amber); font-weight: 600; }
.related-strip a:hover { text-decoration: underline; }

/* =========================================================
   Spoke-specific shared components (work-hub spokes).
   Scenario/demand grid, learning-format comparison table,
   episode (catalog scenario) cards. Same flat cream/warm,
   token-driven card language as the hub components above.
   ========================================================= */

/* ---------- scenario / demand grid (labelled situation cards) ---------- */
.demand-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 560px) { .demand-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .demand-grid { grid-template-columns: repeat(3, 1fr); } }
.demand-card { background: var(--surface-card); border: 1px solid var(--surface-divider); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px 24px; }
.demand-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--text-primary); margin: 0 0 8px; }
.demand-card p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ---------- comparison table (learning formats) ---------- */
.comparison-shell { margin-top: 32px; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--surface-divider); border-radius: var(--radius-card); box-shadow: var(--shadow-card); -webkit-overflow-scrolling: touch; }
.comparison-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--surface-card); font-size: 14px; }
.comparison-table-wrap th, .comparison-table-wrap td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--surface-divider); line-height: 1.5; }
.comparison-table-wrap thead th { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-primary); }
.comparison-table-wrap tbody td { color: var(--text-secondary); }
.comparison-table-wrap td.axis { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.comparison-table-wrap tbody tr:last-child td { border-bottom: none; }
.comparison-table-wrap .aisha-col { background: var(--color-amber-light); color: var(--text-primary); }
.comparison-table-wrap thead .aisha-col { color: var(--color-amber); font-weight: 700; }
.comparison-table-wrap tbody .aisha-col { font-weight: 600; }
.comparison-note { max-width: var(--content-measure); font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 16px 0 0; }

/* ---------- episode cards (catalog scenarios) ---------- */
.episodes-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 560px) { .episodes-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .episodes-grid { grid-template-columns: repeat(3, 1fr); } }
.episode-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--surface-divider); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.episode-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-warm); display: block; }
.episode-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.episode-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--color-amber); background: var(--color-amber-light); border-radius: var(--radius-pill); padding: 3px 10px; }
.episode-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--text-primary); margin: 0; }
.episode-card p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ---------- phrase cards (key phrases grouped by part) ---------- */
.phrase-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 640px) { .phrase-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .phrase-grid { grid-template-columns: repeat(3, 1fr); } }
.phrase-card { background: var(--surface-card); border: 1px solid var(--surface-divider); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; }
.phrase-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--text-primary); margin: 0 0 14px; }
.phrase-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.phrase-card li { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.phrase-card code { font-family: inherit; font-size: 0.95em; background: var(--color-amber-light); color: var(--text-primary); padding: 1px 6px; border-radius: 6px; white-space: normal; }

/* ---------- honesty cards ("when each format is better") ---------- */
.honesty-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .honesty-grid { grid-template-columns: 1fr 1fr; } }
.honesty-card { background: var(--surface-card); border: 1px solid var(--surface-divider); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px 24px; }
.honesty-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--text-primary); margin: 0 0 8px; }
.honesty-card p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ---------- Q&A bank (interview stages → sample answers) ---------- */
.qa-bank { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 768px) { .qa-bank { grid-template-columns: 1fr 1fr; } }
.qa-stage { background: var(--surface-card); border: 1px solid var(--surface-divider); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; }
.qa-stage h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--text-primary); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.qa-stage h3 > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--color-amber-light); color: var(--color-amber); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.qa-stage h3 a { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.qa-list li { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.qa-list li strong { color: var(--text-primary); font-weight: 700; }
