/* Learn articles (built by tools/build-learn.mjs). Loads after article.css. 8px grid. */
:root { --amber: #C98A2A; --amber-light: #FBF3E2; }

.lc { max-width: 784px; padding: 40px 32px 24px; } /* 720px text column + 32px margins */
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.lc-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--cond-light, var(--teal-light)); color: var(--cond-text, var(--teal-dark)); border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.lc-more { color: var(--muted); font-weight: 700; font-size: 14px; }
.lc-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cond, var(--teal)); }
.lc h1 { margin-bottom: 24px; }
.lc h2 { margin-top: 48px; }
.lc ul, .lc ol { margin: 0 0 16px 24px; }
.lc li { margin-bottom: 8px; }

.lc-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; margin-bottom: 32px; object-fit: cover; }
.lc-hero-placeholder {
  background:
    radial-gradient(circle at 20% 30%, var(--cond-light, var(--teal-light)) 0 28%, transparent 29%),
    radial-gradient(circle at 78% 70%, var(--teal-light) 0 24%, transparent 25%),
    var(--stone);
  aspect-ratio: 16 / 6;
}

.lc-takeaways { background: var(--teal-light); border-radius: 16px; padding: 24px 24px 8px; margin: 24px 0 32px; }
.lc-takeaways p:first-child { color: var(--teal-dark); margin-bottom: 8px; }

.lc-callout { border-radius: 16px; padding: 24px 24px 8px; margin: 16px 0 32px; }
.lc-callout-amber { background: var(--amber-light); border-left: 4px solid var(--amber); }

.lc-disclaimer { border-top: 1px solid var(--stone); padding-top: 16px; margin: 24px 0; color: var(--muted); font-size: 16px; }

.lc-figure { margin: 24px 0 32px; }
.lc-figure-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--stone); }
.lc-figure svg { display: block; width: 100%; height: auto; }
.lc-figure figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

.lc-table { overflow-x: auto; margin: 16px 0 32px; border: 1px solid var(--stone); border-radius: 16px; background: var(--white); }
.lc-table:focus-visible { outline-offset: 2px; }
.lc-table table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 16px; }
.lc-table th, .lc-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--stone); }
.lc-table th { background: var(--teal-light); color: var(--teal-dark); }
.lc-table tbody tr:nth-child(even) td { background: var(--cream); }
.lc-table tbody tr:last-child td { border-bottom: none; }

.lc-faq { margin: 16px 0 32px; }
.lc-faq details p { margin-bottom: 16px; }

.lc-related { margin-top: 48px; }
.lc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lc-card { display: grid; gap: 8px; background: var(--white); border: 1px solid var(--stone); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--charcoal); }
.lc-card:hover { border-color: var(--teal); }
.lc-card strong { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--teal-dark); }
.lc-card span { font-size: 15px; color: var(--muted); }

/* Header link, breadcrumbs, topic links */
.lc-top-right { display: flex; align-items: center; gap: 16px; }
.lc-nav { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--teal-dark); text-decoration: none; }
.lc-nav:hover { text-decoration: underline; }
.lc-crumbs { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.lc-crumbs a { color: var(--teal-dark); font-weight: 700; }
.lc-topic { color: var(--teal-dark); font-weight: 700; }
.lc-back { margin-top: 32px; font-weight: 700; }

/* Learning centre hub */
.lh .lead { margin-bottom: 24px; }
.lh-search { display: block; max-width: none; margin: 0; } /* undo the centred waitlist form style in article.css */
.lh-search label, .lh-label { display: block; font-weight: 700; margin-bottom: 8px; }
.lh-searchbox { display: flex; gap: 8px; }
.lh-searchbox input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid #8F897E; font: 400 18px "DM Sans", sans-serif; background: var(--white); color: var(--charcoal); }
.lh-searchbox input::placeholder { color: #6B6860; }
.lh-filters { display: grid; gap: 16px; margin: 24px 0 8px; }
.lh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lh-chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--stone); background: var(--white); color: var(--charcoal); font: 500 16px "DM Sans", sans-serif; cursor: pointer; }
.lh-chip:hover { border-color: var(--teal); }
.lh-chip[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); font-weight: 700; }
.lh-n { display: inline-block; min-width: 24px; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: 14px; font-weight: 700; }
.lh-chip[aria-pressed="true"] .lh-n { background: rgba(255,255,255,.2); color: var(--white); }
.lh-cond select { width: 100%; max-width: 360px; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1px solid #8F897E; font: 400 17px "DM Sans", sans-serif; background: var(--white); color: var(--charcoal); }
.lh-blurb { color: var(--muted); margin: 8px 0 0; }
.lh-count { font-weight: 700; margin: 16px 0; }
.lc .lh-list { list-style: none; display: grid; gap: 16px; margin: 0; }
.lc .lh-list > li { margin: 0; }
.lh-card { display: grid; gap: 8px; background: var(--white); border: 1px solid var(--stone); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--charcoal); }
.lh-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(31,30,27,.06); }
.lh-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; }
.lh-topic { color: var(--muted); font-weight: 700; }
.lh-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--teal-dark); }
.lh-desc { color: var(--muted); }
.lh-snippet { font-size: 16px; background: var(--cream); border-radius: 8px; padding: 8px 12px; }
.lh-snippet mark { background: #FBE7A1; color: var(--charcoal); border-radius: 2px; padding: 0 2px; }
.lh-meta { font-size: 15px; color: var(--muted); }
.lh-empty { background: var(--white); border: 1px solid var(--stone); border-radius: 16px; padding: 24px; }
.lh-empty p:last-child { margin-bottom: 0; color: var(--muted); }
.lh-linkbtn { background: none; border: none; padding: 0; font: inherit; color: var(--teal-dark); text-decoration: underline; cursor: pointer; }

@media (max-width: 600px) {
  .lc { padding: 24px 24px 16px; }
  .lc-nav { display: none; } /* the breadcrumb at the top of each page links to the Learning centre */
  header.top .wrap { padding: 0 16px; }
  .lc-top-right .btn-small { white-space: nowrap; padding: 8px 14px; font-size: 15px; }
  .lh-searchbox .btn { padding: 12px 16px; }
  .lh-card { padding: 16px; }
  .lh-title { font-size: 21px; }
  .lc-takeaways, .lc-callout { padding: 16px 16px 8px; }
  /* Diagrams are drawn 760 wide; keep their labels readable and let them scroll. */
  .lc-figure svg { min-width: 640px; }
}
