/* AI Women in Law: shared styles. Light backgrounds only (project rule). */
:root {
  --page: #FFFFFF;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #4B5563;
  --hairline: #E3E8EF;
  --panel: #F5F7FA;
  --green: #1F4FD1; /* accent: logo blue */
  --green-deep: #1A3FA8; /* accent text on pale panels (4.5:1+) */
  --pale: #E8EEFC;
  --pale-2: #EEF2FD;
  --amber: #FFE58A;
  --display: "Red Hat Display", Arial, sans-serif;
  --text: "Red Hat Text", system-ui, "Segoe UI", sans-serif;
  --mono: "Red Hat Mono", Consolas, monospace;
  --mast: "Anton", Impact, "Arial Narrow", sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h3 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.label { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--green); margin-bottom: 10px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--page); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 8px; z-index: 20; }

/* ---------- Masthead ---------- */
.masthead .topline { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.masthead .nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.masthead .nav a { color: var(--ink); text-decoration: none; }
.masthead .nav a:hover { color: var(--green); }
.masthead .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pill, .masthead .nav a.pill { background: var(--green); color: #FFFFFF; text-decoration: none; padding: 8px 16px; border-radius: 999px; }
.masthead .nav a.pill:hover { background: var(--ink); color: #FFFFFF; }
.masthead .nav a.pill[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 13px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { display: flex; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); background: var(--page); border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px; min-width: 220px; z-index: 30; text-transform: none; letter-spacing: 0; font-size: 16px; }
.menu-panel a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu-panel a:hover { background: var(--panel); }
.menu-panel a[aria-current="page"] { background: var(--pale-2); }
.menu-panel a.pill { margin-top: 6px; text-align: center; }
@media (max-width: 860px) {
  .masthead .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 480px) {
  .masthead .topline { font-size: 11.5px; letter-spacing: 0.05em; gap: 8px 12px; }
}
.masthead .title { text-align: center; padding: 22px 0 14px; border-bottom: 4px double var(--ink); margin-bottom: 20px; }
.masthead .wordmark { display: block; text-decoration: none; color: var(--ink); font-family: var(--mast); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; }
.masthead .wordmark:hover { color: var(--ink); }
.masthead.home .wordmark { font-size: clamp(48px, 8.6vw, 124px); }
.masthead .tagline span { white-space: nowrap; }
.masthead .tagline { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 480px) { .masthead .tagline { font-size: 11.5px; letter-spacing: 0.08em; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 16px/1.2 var(--text); padding: 15px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--green); color: #FFFFFF; border-color: var(--green); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home hero ---------- */
.hero { padding: 8px 12px 0; }
.hero-panel { background: var(--pale); border-radius: 24px; max-width: 1400px; margin: 0 auto; }
.hero-inner { max-width: 1256px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.hero-copy { flex: 999 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.0; letter-spacing: -0.03em; max-width: 12ch; }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 40ch; margin: 26px 0 30px; }
.hero-example { flex: 1 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) { .hero-copy, .hero-example { flex-basis: 100%; } }
.hero-example .cap { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.flow { background: #FFFFFF; border-radius: 16px; padding: 16px 18px; }
.flow.redesigned { border: 2px solid var(--green); }
.flow .flow-label { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.flow.redesigned .flow-label { color: var(--green); }
.flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.flow li { display: flex; align-items: center; gap: 8px; }
.flow li:not(:last-child)::after { content: "\2192"; }
.step { border: 1.5px solid var(--ink); border-radius: 8px; padding: 6px 10px; background: #FFFFFF; }
.step.slow { background: var(--amber); }
.step.tool { border-color: var(--green); background: var(--pale); }

/* ---------- Facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0; padding: 8px 28px; background: var(--page); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 12px 32px -18px rgba(31,79,209,.25); background-image: linear-gradient(180deg, #FFFFFF 0%, var(--pale-2) 100%); }
.fact { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--hairline); }
.fact:nth-child(n+4) { border-bottom: 0; }
.fact p { margin: 0; }
.f-big { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.f-acc { color: var(--green); }
.f-label { font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 10px !important; }
.f-note { font-size: 14px; color: var(--ink-3); margin-top: 4px !important; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(n+4) { border-bottom: 1px solid var(--hairline); } .fact:nth-child(n+5) { border-bottom: 0; } }
@media (max-width: 480px) { .facts { padding: 4px 18px; } .fact { padding: 18px 12px 18px 0; } .f-big { font-size: 32px; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tight-bottom { padding-bottom: 0; }
.section h2, .h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin: 0 0 24px; }
.section .intro { color: var(--ink-2); max-width: 52ch; margin: -16px 0 24px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- Cards ---------- */
.card { border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px; background: #FFFFFF; }
.sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.session .num { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); }
.session h3 { font-size: 20px; margin: 6px 0; line-height: 1.25; }
.session p { margin: 0; font-size: 15px; color: var(--ink-2); }
.session.focus { border-color: var(--green); background: var(--pale-2); }
.session.focus .num { color: var(--green-deep); }
.session.final { border-width: 3px; padding: 16.5px; }

/* ---------- Grey band ---------- */
.band { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.band h2 { margin: 0; flex: 1 1 220px; font-size: clamp(28px, 3vw, 40px); }
.band p { margin: 0; flex: 2 1 420px; min-width: 0; font-size: 20px; line-height: 1.5; }
@media (max-width: 640px) { .band p { font-size: 18px; flex-basis: 100%; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: 16px; align-items: center; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.person h3 { font-size: 20px; }
.person p { font-size: 15px; color: var(--ink-2); margin: 0; }
.person a { font-size: 15px; }

/* ---------- Inner page head ---------- */
.page-head { padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); max-width: 22ch; }
.page-head .standfirst { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; }
.page-head.long h1 { font-size: clamp(28px, 3.4vw, 42px); max-width: 30ch; line-height: 1.15; }
.page-head .note { font-size: 15px; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 8px; }
.principle b { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.principle span { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Directory ---------- */
.dir-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.dir-filters select, .dir-filters input { font: inherit; font-size: 16px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--ink); background: #FFFFFF; color: var(--ink); max-width: 100%; }
.dir-filters [hidden] { display: none; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .dir-grid { grid-template-columns: 1fr; } }
.entry { border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; }
.entry .tool { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; }
.entry .who { font-size: 14px; color: var(--ink-3); }
.entry p { font-size: 15px; }
.entry .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-weight: 500; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--hairline); color: var(--ink-2); }
.entry .links { display: flex; gap: 14px; margin-top: auto; padding-top: 4px; font-size: 15px; }
.dir-grid .empty { grid-column: 1 / -1; max-width: 640px; }
.empty { border: 1.5px dashed var(--ink-3); border-radius: 12px; padding: 24px; color: var(--ink-2); background: #FFFFFF; }

/* ---------- Forms ---------- */
.form { border: 1.5px solid var(--ink); border-radius: 12px; padding: 32px; max-width: 760px; background: #FFFFFF; }
@media (max-width: 640px) { .form { padding: 22px 16px; } }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field select, .field textarea { display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; border: 1.5px solid #6B7280; border-radius: 10px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field select { height: 48px; padding: 0 14px; }
.field textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .dir-filters input:focus, .dir-filters select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-bottom: 16px; }
.check input { flex: none; margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 8px; }
.form-status { margin-top: 16px; font-size: 15px; padding: 12px 14px; border-radius: 10px; display: none; color: var(--ink); }
.form-status.ok { display: block; background: var(--pale-2); border: 1.5px solid var(--green); }
.form-status.err { display: block; background: #FFF6D6; border: 1.5px solid #8A5A00; }

/* ---------- Articles ---------- */
.article-list { list-style: none; margin: 0; padding: 0; max-width: 820px; border-top: 1px solid var(--ink); }
.article-list li { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.article-list .date { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.article-list h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 8px; }
.article-list h2 a { color: var(--ink); text-decoration: none; }
.article-list h2 a:hover { color: var(--green); text-decoration: underline; }
.article-list p { color: var(--ink-2); margin: 0; max-width: 62ch; }

.article { max-width: 700px; margin: 0 auto; padding: 24px 0 24px; }
.article .label { margin-bottom: 14px; }
.article h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; }
.article .byline { font-size: 15px; color: var(--ink-3); margin: 18px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.article-body { font-size: 18px; line-height: 1.75; padding-top: 28px; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 48px 0 14px; }
.article-body h3 { font-size: 21px; margin: 32px 0 10px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--green); font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.5; color: var(--ink); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 32px 0; }
.article-body figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.article-body th { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); border-bottom: 1.5px solid var(--ink); }
.article-body code { font-family: var(--mono); font-size: 0.9em; background: var(--panel); border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px; }
.article-body pre { background: var(--panel); border: 1px solid var(--hairline); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.article-body pre code { background: none; border: 0; padding: 0; }
ol.sources { font-size: 14px; line-height: 1.55; color: var(--ink-2); padding-left: 22px; margin-top: 8px; }
ol.sources li { margin-bottom: 8px; padding-left: 4px; }
ol.sources a { overflow-wrap: anywhere; }

/* ---------- Course page ---------- */
.video-block { padding: 8px 0 0; max-width: 960px; }
.video-block .label { color: var(--ink-3); }
.video-block video { display: block; width: 100%; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--panel); }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-top: 8px; }
.glance .cell { padding: 20px 22px 22px 0; }
.glance .cell + .cell { padding-left: 22px; border-left: 1px solid var(--hairline); }
.glance .g-label { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--green); margin-bottom: 6px; }
.glance .g-val { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.glance .g-val small { display: block; font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 760px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance .cell { padding: 18px 14px 18px 0; }
  .glance .cell + .cell { padding-left: 0; border-left: 0; }
  .glance .cell:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--hairline); }
  .glance .cell:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}
.c-section { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 36px; padding: 48px 0; border-bottom: 1px solid var(--hairline); }
.c-section:last-child { border-bottom: 0; }
.sec-no { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--green); position: sticky; top: 24px; align-self: start; padding-top: 8px; }
.sec-no small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.sec-body { min-width: 0; }
.sec-body > h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.sec-body p { max-width: 64ch; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 760px) {
  .c-section { grid-template-columns: 1fr; gap: 10px; padding: 40px 0; }
  .sec-no { position: static; padding-top: 0; }
  .sec-no small { display: inline; margin-left: 8px; }
}
.caps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: cap; max-width: 66ch; }
.caps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hairline); align-items: baseline; }
.caps li::before { counter-increment: cap; content: counter(cap, upper-alpha); font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--green); }
.exhibit-cap { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink); margin: 8px 0 12px; }
.matrix-wrap { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #FFFFFF; }
table.matrix { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.matrix thead th { font-family: var(--mono); font-weight: 500; font-size: 12px; text-align: left; color: var(--ink-3); padding: 14px 16px; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; background: var(--panel); }
table.matrix tbody td { padding: 15px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix .m-mod { width: 16%; }
table.matrix .m-tag { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
table.matrix .m-name { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.25; }
table.matrix .m-evid { color: var(--ink); font-weight: 500; }
table.matrix tr.focus td { background: var(--pale-2); }
table.matrix tr.focus .m-tag { color: var(--green-deep); }
@media (max-width: 760px) {
  table.matrix, table.matrix tbody, table.matrix tr, table.matrix td { display: block; width: 100%; }
  table.matrix thead { display: none; }
  table.matrix tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  table.matrix tbody tr:last-child { border-bottom: 0; }
  table.matrix tbody td, table.matrix .m-mod { width: 100%; padding: 4px 0; border: 0; }
  table.matrix tbody td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
  table.matrix .m-mod { padding-bottom: 2px; }
}
.stack { margin-top: 22px; }
.stack .row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.stack .row:last-child { border-bottom: 1px solid var(--hairline); }
.stack .r-head { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.stack .r-body { color: var(--ink-2); }
.stack .r-body p { margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .stack .row { grid-template-columns: 1fr; gap: 6px; } }
.ledger { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 15px; }
.ledger th { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1.5px solid var(--ink); }
.ledger td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-2); vertical-align: top; }
.ledger .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger td.item { color: var(--ink); font-weight: 500; }
.ledger tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .ledger { font-size: 14px; } .ledger th, .ledger td { padding-right: 8px; } }
.prereq { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.prereq li { border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 18px; }
.prereq .p-label { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--green); margin-bottom: 6px; }
.prereq .p-val { font-size: 15px; }
.governance { margin-top: 22px; background: var(--pale-2); border: 1.5px solid var(--green); border-radius: 12px; padding: 22px 24px; }
.governance .g-head { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--green-deep); margin-bottom: 12px; }
.governance p:last-child { margin-bottom: 0; }
details.tech { margin-top: 22px; border: 1.5px solid var(--ink); border-radius: 12px; background: #FFFFFF; overflow: hidden; }
details.tech > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::after { content: "Show"; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--green); }
details.tech[open] > summary::after { content: "Hide"; }
details.tech .tech-note { padding: 0 18px 14px; margin: 0; font-size: 15px; color: var(--ink-2); }
details.tech .matrix-wrap { border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; }

/* ---------- Footer ---------- */
.page-main { padding-bottom: 72px; }
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.site-footer .f-mark { font-family: var(--mast); color: var(--ink); font-size: 20px; text-transform: uppercase; text-decoration: none; }
.site-footer .f-note { max-width: 46ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { color: var(--ink-2); }
.site-footer nav a:hover { color: var(--green); }

/* Article tables and reference links */
.article-body .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.article-body .table-wrap table { margin: 0; min-width: 520px; }
.article-body a.ref { text-decoration: none; font-size: 0.85em; }

/* Seal logo beside the masthead wordmark */
.masthead .wordmark { display: inline-flex; align-items: center; justify-content: center; gap: 0.2em; }
.masthead .wordmark .seal { flex: none; width: 1.2em; height: 1.2em; }
@media (max-width: 600px) {
  .masthead .wordmark { flex-direction: column; gap: 10px; }
  .masthead .wordmark .seal { width: 88px; height: 88px; }
}

/* Home mission */
.mission h2 { max-width: 24ch; margin-bottom: 18px; }
.mission p { font-size: 20px; line-height: 1.55; max-width: 62ch; margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 640px) { .mission p { font-size: 18px; } }
.prose ol.sources { margin-top: 24px; }

/* Article summary box and quotes */
.article-body .short-version { background: var(--panel); border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px 22px 6px; margin: 0 0 32px; }
.article-body .short-version h2 { margin: 0 0 10px; font-size: 18px; }
.article-body .short-version ul { margin: 0 0 12px; }
.article-body .short-version li { margin-bottom: 6px; }
.article-body blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 3px solid var(--green); color: var(--ink-2); }

/* Copyable prompt box (light background) */
.prompt-box { margin: 8px 0 20px; }
.prompt-box pre { background: var(--panel); border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 18px; margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink); }

/* Home: make the course label prominent */
.hero-copy .label { font-family: var(--text); font-size: 18px; font-weight: 600; color: var(--green-deep); margin-bottom: 16px; }
@media (max-width: 640px) { .hero-copy .label { font-size: 16px; } }

/* Phone menu: keep white text on the blue button */
.menu-panel a.pill { color: #FFFFFF; background: var(--green); }
.menu-panel a.pill:hover { color: #FFFFFF; background: var(--ink); }

/* Glossary */
.glossary-jump { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; margin-bottom: 8px; }
.glossary { margin: 0 0 8px; }
.glossary dt { font-family: var(--display); font-weight: 700; font-size: 18px; margin-top: 18px; color: var(--ink); }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); }
.glossary dt:target { background: var(--pale); }
.site-footer .f-copy { width: 100%; margin: 0; font-size: 13px; color: var(--ink-3); }

/* Exhibits (About page charts) */
.exhibit { margin: 28px 0 32px; padding: 22px 22px 18px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--page); }
.exhibit .ex-no { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 6px; }
.exhibit h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 4px; color: var(--ink); }
.exhibit .ex-sub { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; }
.ex-bars { list-style: none; padding: 0 !important; margin: 0; position: relative; }
.ex-bars li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; align-items: center; margin: 0 0 10px !important; font-size: 14px; color: var(--ink-2); }
.ex-track { position: relative; height: 22px; }
.ex-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: var(--green); border-radius: 0 4px 4px 0; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.ex-bar.alt { background: #6B7280; }
.ex-val { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--v) + 8px); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: left .9s cubic-bezier(.2,.7,.2,1); }
.ex-track.parity::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px dashed var(--ink-3); }
.ex-axis { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ex-axis span:last-child { position: relative; height: 14px; }
.ex-axis i { position: absolute; font-style: normal; transform: translateX(-50%); }
.exhibit .ex-src { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; }
.js .exhibit:not(.in) .ex-bar { width: 0; }
.js .exhibit:not(.in) .ex-val { left: 8px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ex-bar, .ex-val { transition: none; } }
@media (max-width: 560px) { .ex-bars li, .ex-axis { grid-template-columns: 1fr; gap: 4px; } .ex-axis span:first-child { display: none; } .exhibit { padding: 18px 16px 14px; } }

/* ---------- Soft card theme (site-wide, 2026-10-18) ----------
   Rounded white cards with a pale blue fade and soft blue shadow,
   large bold figures, blue accents. Light backgrounds only. */
:root {
  --r-card: 18px;
  --shadow-soft: 0 1px 2px rgba(17,24,39,.04), 0 12px 32px -18px rgba(31,79,209,.28);
  --shadow-lift: 0 2px 4px rgba(17,24,39,.05), 0 18px 40px -18px rgba(31,79,209,.38);
  --card-fill: linear-gradient(180deg, #FFFFFF 0%, var(--pale-2) 100%);
}
body { background: linear-gradient(180deg, #F6F8FE 0, #FFFFFF 520px) no-repeat, #FFFFFF; }

.card, .entry, .form, .prereq li, .matrix-wrap, details.tech, .empty,
.article-body .short-version, .prompt-box pre, .governance, .exhibit, .flow {
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--card-fill); box-shadow: var(--shadow-soft);
}
.empty { border-style: dashed; border-color: #C7D2EE; }
.governance { background: linear-gradient(180deg, var(--pale-2) 0%, var(--pale) 100%); border-color: #C7D2EE; }
.flow.redesigned { border: 2px solid var(--green); }
.card, .entry { padding: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) { .card, .entry { transition: none; } .entry:hover { transform: none; } }
.session.focus { border: 2px solid var(--green); background: linear-gradient(180deg, #FFFFFF 0%, var(--pale) 100%); }
.session.final { border: 2px solid var(--ink); padding: 21px; }
.session .num { color: var(--green); font-size: 13px; }
.session h3 { font-size: 21px; }
details.tech .matrix-wrap { box-shadow: none; border-radius: 0; background: #FFFFFF; }
.video-block video { border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-soft); }

/* Headings: larger and tighter */
.section h2, .h2 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.035em; line-height: 1.02; }
.page-head h1 { letter-spacing: -0.035em; line-height: 1.02; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.sec-body > h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; }
.label { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.hero-copy .label { text-transform: none; letter-spacing: 0; }

/* Buttons and pills */
.btn-primary { box-shadow: 0 10px 22px -10px rgba(31,79,209,.6); }
.btn-primary:hover { box-shadow: 0 10px 22px -12px rgba(17,24,39,.5); }
.btn-secondary { border-width: 1.5px; border-color: var(--green); color: var(--green-deep); background: #FFFFFF; }
.btn-secondary:hover { background: var(--green); border-color: var(--green); color: #FFFFFF; }

/* Hero and grey band as rounded panels */
.hero-panel { background: linear-gradient(160deg, var(--pale) 0%, #F4F7FE 60%, #FFFFFF 100%); box-shadow: var(--shadow-soft); border: 1px solid #DCE5FA; }
.band { background: none; border: 0; }
.band .wrap { background: var(--card-fill); border: 1px solid var(--hairline); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 48px clamp(20px, 4vw, 48px); }
@media (max-width: 640px) { .band .wrap { margin: 0 16px; padding: 32px 20px; } }

/* People */
.avatar { border: 0; color: #FFFFFF; background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); box-shadow: 0 8px 18px -8px rgba(31,79,209,.6); }

/* Stat tiles: four-up variant */
.facts.four { grid-template-columns: repeat(4, 1fr); }
.facts.four .fact { border-bottom: 0; }
@media (max-width: 860px) {
  .facts.four { grid-template-columns: repeat(2, 1fr); }
  .facts.four .fact:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

/* Article list as cards */
.article-list { border-top: 0; display: grid; gap: 14px; }
.article-list li { border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--card-fill); box-shadow: var(--shadow-soft); padding: 22px 24px; }

/* Tables inside cards */
.ledger th, table.matrix thead th, .article-body th { border-bottom-color: var(--hairline); }
.caps li, .stack .row { border-top-color: var(--hairline); }

/* Tags and form fields */
.tag { background: var(--pale-2); border-color: #D6E0F8; color: var(--green-deep); }
.field input[type=text], .field input[type=email], .field input[type=url], .field select, .field textarea,
.dir-filters select, .dir-filters input { border: 1px solid #C9D2E3; border-radius: 12px; background: #FFFFFF; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); background: linear-gradient(180deg, #FFFFFF 0%, #F6F8FE 100%); }

/* Article visuals: level cards and numbered step cards */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.level { border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px; background: var(--card-fill); display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.level .lv-no { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.level b { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); }
.level.top { border: 2px solid var(--green); background: linear-gradient(180deg, #FFFFFF 0%, var(--pale) 100%); }
@media (max-width: 600px) { .levels { grid-template-columns: 1fr; } }
.article-body .facts { margin: 22px 0 26px; padding: 4px 22px; }
.article-body .fact p { margin: 0; }
.article-body .facts .f-big { font-size: clamp(30px, 3.4vw, 40px); }
.article-body .facts .f-note { line-height: 1.45; }
.step-cards { list-style: none; padding: 0 !important; margin: 8px 0 18px; counter-reset: sc; display: grid; gap: 10px; }
.step-cards li { counter-increment: sc; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 16px; background: var(--card-fill); margin: 0 !important; }
.step-cards li::before { content: counter(sc); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #FFFFFF; font: 700 15px/32px var(--display); text-align: center; }
.step-cards b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.step-cards span { color: var(--ink-2); font-size: 15.5px; }

/* Article: framework grid */
.fw-wrap { overflow-x: auto; margin: 4px 0 0; }
.article-body table.fw-grid { border-collapse: separate; border-spacing: 6px; margin: 0; min-width: 560px; font-size: 14px; }
.article-body .fw-grid th, .article-body .fw-grid td { border: 0; padding: 10px 12px; vertical-align: top; border-radius: 10px; }
.article-body .fw-grid thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink-3); background: none; padding-bottom: 2px; }
.article-body .fw-grid tbody th { font-family: var(--text); font-weight: 600; font-size: 13.5px; color: var(--ink); background: var(--panel); width: 26%; }
.article-body .fw-grid td { background: var(--pale-2); color: var(--ink-2); }
.article-body .fw-grid td.fw-empty { background: #FFFFFF; border: 1px dashed var(--hairline); color: var(--ink-3); }
.article-body .fw-grid td.fw-ours { background: var(--green); color: #FFFFFF; font-weight: 600; }
.fw-hint { display: none; font-size: 13px; color: var(--ink-3); margin: 0 0 4px; }
@media (max-width: 640px) { .fw-hint { display: block; } }

/* Article: three-levels graphic, wide and phone versions */
.lv-graphic svg { display: block; width: 100%; height: auto; margin: 4px 0 2px; }
.lv-graphic .lv-narrow { display: none; max-width: 420px; }
@media (max-width: 600px) { .lv-graphic .lv-wide { display: none; } .lv-graphic .lv-narrow { display: block; } }

/* Article: four-part framework, two-up stat tiles, split bar */
.frame4-arrow { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1.5px solid var(--ink-3); padding-bottom: 6px; margin: 4px 0 12px; position: relative; }
.frame4-arrow::after { content: ""; position: absolute; right: -1px; bottom: -6px; border-left: 9px solid var(--ink-3); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.article-body ol.frame4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.article-body ol.frame4 li { margin: 0; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--hairline); border-top: 4px solid var(--green); border-radius: 12px; padding: 12px 14px 14px; background: #FFFFFF; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.frame4 .f4-no { font: 800 26px/1 var(--display); color: var(--green); }
.frame4 b { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); margin-bottom: 4px; }
.frame4 .f4-k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--green-deep); margin-top: 6px; }
@media (max-width: 760px) { .article-body ol.frame4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .article-body ol.frame4 { grid-template-columns: 1fr; } }
.article-body .facts.two { grid-template-columns: repeat(2, 1fr); }
.article-body .facts.two .fact { border-bottom: 0; }
@media (max-width: 480px) { .article-body .facts.two { grid-template-columns: 1fr; } .article-body .facts.two .fact:first-child { border-bottom: 1px solid var(--hairline); } }
.article-body .facts .fact:nth-child(n+4) { border-bottom: 0; }
.split-bar { display: flex; height: 34px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 6px 0 12px; }
.split-bar span { display: block; }
.sb-a { background: var(--green); } .sb-b { background: #8FA8EA; } .sb-c { background: #6B7280; }
.article-body ul.split-key { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.split-key li { margin: 0; display: flex; align-items: center; gap: 6px; }
.split-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.split-key b { color: var(--ink); }

/* Article: layered governance framework and standards table */
.gov { display: flex; flex-direction: column; gap: 8px; }
.gov-band { border-radius: 12px; padding: 12px 16px; border: 1px solid var(--hairline); background: #FFFFFF; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.gov-q { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-deep); }
.gov-band > b { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); }
.gov-top { background: linear-gradient(180deg, #FFFFFF 0%, var(--pale) 100%); border: 2px solid var(--green-deep); }
.gov-top > b { font-size: 19px; }
.gov-who { border: 2px solid var(--green); }
.article-body ol.gov-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.article-body ol.gov-steps li { margin: 0; position: relative; background: var(--green); color: #FFFFFF; font: 700 13px/1.2 var(--display); text-align: center; padding: 10px 6px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.article-body ol.gov-steps li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.article-body ol.gov-steps li:nth-child(2) { background: #2A5BD8; } .article-body ol.gov-steps li:nth-child(3) { background: #3D6ADB; }
.article-body ol.gov-steps li:nth-child(4) { background: #1A3FA8; } .article-body ol.gov-steps li:nth-child(5) { background: #15358F; } .article-body ol.gov-steps li:nth-child(6) { background: #0F2D80; }
.article-body ul.gov-cards { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.article-body ul.gov-cards li { margin: 0; border: 1px solid var(--hairline); border-left: 4px solid var(--green); border-radius: 10px; padding: 8px 10px; background: var(--pale-2); display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.gov-cards b { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 14.5px; }
.gov-base { background: var(--panel); }
.article-body ul.gov-std { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-body ul.gov-std li { margin: 0; background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 12px; font-weight: 600; color: var(--ink); font-size: 13.5px; }
@media (max-width: 640px) {
  .article-body ol.gov-steps { grid-template-columns: repeat(3, 1fr); }
  .article-body ul.gov-cards { grid-template-columns: 1fr; }
}
.article-body table.std-table { min-width: 620px; font-size: 14px; margin: 0; }
.article-body .std-table td:first-child { font-weight: 600; color: var(--ink); }
.tag-s { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag-s.vol { background: var(--pale-2); color: var(--green-deep); }
.tag-s.cert { background: #FFF6D6; color: #7A5200; }
.tag-s.bind { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--ink); }



/* Article: framework matrix, wide and phone versions */
.mx-graphic svg { display: block; width: 100%; height: auto; }
.mx-graphic .mx-narrow, .article-body .mx-graphic ol.mx-key { display: none; }
.article-body ol.mx-key { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.article-body ol.mx-key li { margin: 0; display: flex; gap: 8px; align-items: center; }
.mx-key span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: inline-flex; align-items: center; justify-content: center; font: 800 12px var(--display); color: var(--ink); }
.mx-key li.acc { color: var(--green-deep); font-weight: 700; }
.mx-key li.acc span { background: var(--green); border-color: var(--green); color: #FFFFFF; }
@media (max-width: 600px) { .mx-graphic .mx-wide { display: none; } .mx-graphic .mx-narrow { display: block; } .article-body .mx-graphic ol.mx-key { display: grid; } }
