:root {
  --cream: #f3eee3;
  --paper: #fffaf1;
  --ink: #18302d;
  --muted: #526763;
  --coral: #dc624b;
  --coral-dark: #9f3427;
  --teal: #147d78;
  --teal-dark: #0d5d59;
  --line: #d8d4c9;
  --wash: #e8f1ed;
  --warning: #854500;
  --warning-wash: #fff3d6;
  --success: #17633d;
  --success-wash: #e9f5ed;
  --shadow: 0 18px 45px rgba(24, 48, 45, .14);
  --radius: 1.25rem;
  --max: 74rem;
  --space-section: clamp(3rem, 7vw, 5rem);
  --measure: 68ch;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Palatino Linotype, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: absolute; left: .75rem; top: -5rem; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip-link:focus { top: .75rem; }
:focus-visible { outline: 3px solid #ef8f62; outline-offset: 3px; }

header { background: rgba(24, 48, 45, .98); border-bottom: 1px solid #35514c; position: sticky; top: 0; z-index: 20; }
.nav-wrap { max-width: var(--max); margin: auto; min-height: 4.7rem; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fffaf1; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.mark { width: 2.35rem; height: 2.35rem; display: block; flex: 0 0 auto; border-radius: .48rem; }
.nav-toggle { display: none; border: 1px solid #6f8882; background: transparent; border-radius: 99px; padding: .55rem .8rem; color: #fff; }
nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
nav a { position: relative; color: #c8d7d2; text-decoration: none; font-size: .92rem; font-weight: 650; padding: .55rem .7rem; border-radius: 99px; }
nav a:hover, nav a[aria-current="page"] { color: #fff; background: #304b46; }
nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; border-radius: 99px; background: var(--coral); }

main { min-height: 65vh; }
.wrap { max-width: var(--max); margin: auto; padding: 0 1.25rem; }
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--ink); color: #fffaf1; }
.hero::after { content: "S"; position: absolute; right: -2vw; bottom: -18vw; color: rgba(220, 98, 75, .16); font: 46vw/.75 var(--serif); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: #f3a38f; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .65fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-proof { background: var(--paper); color: var(--ink); border: 0; border-radius: 2rem 2rem 2rem .35rem; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 24px 60px rgba(0, 0, 0, .24); transform: rotate(1deg); }
.hero-proof ol { list-style: none; padding: 0; margin: 1rem 0 1.2rem; counter-reset: workflow; }
.hero-proof li { counter-increment: workflow; display: grid; grid-template-columns: 2rem 1fr; gap: 0 .65rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.hero-proof li::before { content: counter(workflow); grid-row: 1 / 3; display: grid; place-items: center; align-self: start; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 800; font-size: .8rem; }
.hero-proof li strong, .hero-proof li span { grid-column: 2; }
.hero-proof li span { color: var(--muted); font-size: .86rem; }
.eyebrow { color: var(--coral-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-head h1, .studio-intro h1 { font: clamp(2.5rem, 7vw, 5.8rem)/.98 var(--serif); letter-spacing: -.045em; max-width: 13ch; margin: .4rem 0 1.4rem; }
.hero p, .page-head > p, .studio-intro > div:first-child > p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 44rem; color: var(--muted); }
.hero > .wrap > div > p { color: #c8d7d2; }
.hero .privacy-note { background: rgba(255, 255, 255, .09); color: #e8f1ed; border: 1px solid #45605a; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.button, button[type="submit"], .step-actions button:last-child, #print-lesson, .exemplar-card button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; border: 2px solid var(--coral); border-radius: 99px; padding: .68rem 1.15rem; background: var(--coral); color: #fff; text-decoration: none; font-weight: 800; font-size: .93rem; cursor: pointer; }
.button:hover, button[type="submit"]:hover, .step-actions button:last-child:hover, #print-lesson:hover, .exemplar-card button:hover { background: var(--ink); border-color: var(--ink); }
.button.secondary { background: transparent; border-color: var(--teal-dark); color: var(--teal-dark); }
.button.secondary:hover { background: var(--wash); border-color: var(--teal-dark); }
.hero .button.secondary { border-color: #9db5ae; color: #fff; }
.hero .button.secondary:hover { background: #304b46; border-color: #fff; }
.button.danger { background: transparent; border-color: #9b2923; color: #85231e; }
.button.danger:hover { background: #fff0ed; border-color: #6f1713; color: #6f1713; }
.text-button { border: 0; background: transparent; color: var(--teal-dark); text-decoration: underline; text-underline-offset: .18em; font-weight: 750; cursor: pointer; padding: .35rem; }
.section { padding: var(--space-section) 0; }
.section.alt { background: #e3eee9; border-block: 0; }
h2 { font: clamp(1.8rem, 4vw, 3rem)/1.15 var(--serif); letter-spacing: -.025em; margin: 0 0 .7rem; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { margin-bottom: .35rem; }
.lede { max-width: var(--measure); color: var(--muted); margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid #d4cec0; border-radius: 1.4rem 1.4rem 1.4rem .35rem; padding: 1.5rem; box-shadow: 0 5px 0 rgba(24, 48, 45, .06); }
.card::after { content: ""; position: absolute; inset: auto -1.5rem -1.5rem auto; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(220, 98, 75, .09); }
.card h3 { margin: .25rem 0 .6rem; }
.card p { color: var(--muted); }
.card .meta, .meta { font-size: .82rem; color: var(--muted); }
.kicker { font-size: .78rem; font-weight: 800; color: var(--coral-dark); text-transform: uppercase; letter-spacing: .08em; }
.link-card { display: block; color: inherit; text-decoration: none; }
.link-card { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.link-card:hover, .link-card:focus-visible { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-card:active { transform: translateY(0); box-shadow: none; }
.card-action { display: inline-block; margin-top: .8rem; color: var(--teal-dark); font-weight: 750; }
.tool-directory .link-card { display: flex; flex-direction: column; }
.tool-directory .link-card p { flex: 1; }
.tool-detail-card dl { margin: .6rem 0; border-top: 1px solid var(--line); }
.tool-detail-card dl div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.tool-detail-card dt { color: var(--coral-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.tool-detail-card dd { margin: .1rem 0 0; color: var(--muted); font-size: .86rem; }
.exemplar-link { position: relative; padding-left: 1.7rem; }
.exemplar-link::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: .28rem; border-radius: 99px; background: var(--coral); }
.workflow-list { max-width: 48rem; padding-left: 1.4rem; }
.workflow-list li { margin-bottom: .75rem; padding-left: .35rem; }
.tool-bridge { margin-top: 2rem; margin-bottom: 1rem; }
.plain-links { padding-left: 1.15rem; }
.plain-links li { margin-bottom: .5rem; }
.adaptation-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; list-style: none; padding: 0; max-width: 60rem; }
.adaptation-checks li { position: relative; padding: 1rem 1rem 1rem 2.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; }
.adaptation-checks li::before { content: "✓"; position: absolute; left: 1rem; color: var(--success); font-weight: 900; }
.language-card h3 { font: clamp(1.8rem, 4vw, 2.7rem)/1.1 var(--serif); margin: .35rem 0; }
.page-head { max-width: none; padding: clamp(4rem, 8vw, 6.5rem) max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem)); background: linear-gradient(118deg, #fffaf1 0 64%, #e3eee9 64%); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-head .path-note { margin-top: 1rem; }
.note { border-left: 4px solid var(--coral); background: #fff4ef; padding: 1rem 1.15rem; }
.principle-chain { padding: 0 0 3rem; }
.principle-chain .wrap > div:first-child { max-width: 48rem; }
.principle-chain ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: chain; }
.principle-chain li { counter-increment: chain; padding: 1rem; background: var(--ink); color: #fff; border-radius: .7rem; }
.principle-chain li::before { content: "0" counter(chain); display: block; color: #f1a07c; font-weight: 800; font-size: .75rem; letter-spacing: .08em; }
.principle-chain li span { display: block; color: #c1cfca; font-size: .84rem; margin-top: .25rem; }
.pill { display: inline-block; background: var(--wash); border-radius: 99px; padding: .18rem .6rem; font-size: .78rem; color: var(--teal-dark); margin: .1rem; }
.policy-date { display: inline-block; padding: .45rem .65rem; background: var(--wash); border-radius: .4rem; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

label, legend { display: block; font-weight: 750; margin-bottom: .35rem; }
input, select, textarea { width: 100%; border: 1px solid #899b95; border-radius: .42rem; background: #fff; color: var(--ink); padding: .68rem .72rem; }
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--teal-dark); }
input[type="file"] { padding: .45rem; background: var(--paper); border-style: dashed; }
input[type="file"]::file-selector-button { min-height: 2.4rem; margin-right: .7rem; border: 0; border-radius: .35rem; padding: .45rem .7rem; background: var(--wash); color: var(--teal-dark); font-weight: 750; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: #d8e9e3; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(20, 125, 120, .16); }
input::placeholder, textarea::placeholder { color: #667b75; opacity: 1; }
fieldset { border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; margin: 0 0 1.15rem; min-width: 0; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hint { font-size: .82rem; color: var(--muted); margin: .25rem 0; }
.error { color: #8e211b; font-size: .88rem; font-weight: 700; }
.status { min-height: 1.6em; color: var(--success); font-weight: 700; margin: .7rem 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; }
.choice-row label { display: flex; align-items: center; gap: .5rem; font-weight: 650; }
details { border: 1px solid var(--line); border-radius: .65rem; margin: 1rem 0; }
summary { cursor: pointer; padding: .8rem 1rem; font-weight: 750; }
details[open] { padding: 0 1rem 1rem; }
details[open] summary { margin-inline: -1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }

/* Lesson Studio */
.studio-intro { padding-top: 3.3rem; padding-bottom: 1.8rem; }
.studio-intro h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); max-width: 15ch; }
.studio-file-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.studio-file-actions .button { min-height: 2.45rem; padding: .45rem .7rem; font-size: .84rem; }
.studio-file-actions .file-more { border: 0; margin: 0; }
.studio-file-actions .file-more summary { min-height: 2.45rem; border: 2px solid var(--teal-dark); border-radius: .5rem; padding: .45rem .7rem; color: var(--teal-dark); font-size: .84rem; font-weight: 750; }
.studio-file-actions .file-more[open] { padding: 0; }
.studio-file-actions .file-more[open] summary { margin: 0; border-bottom: 2px solid var(--teal-dark); }
.studio-file-actions .file-more > div { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }
.file-button { cursor: pointer; }
.privacy-note { display: inline-block; margin: 1rem 0 0; padding: .55rem .75rem; background: var(--wash); color: var(--muted); border-radius: .4rem; font-size: .82rem; }
.exemplar-strip { background: var(--paper); border-block: 1px solid var(--line); padding: 1.5rem 0; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-heading-row h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin: .2rem 0 0; }
.exemplar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.exemplar-intro { margin: .65rem 0 0; font-size: .92rem; }
.exemplar-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.exemplar-card h3 { margin: .3rem 0; }
.exemplar-card p { color: var(--muted); font-size: .88rem; flex: 1; }
.exemplar-card button { min-height: 2.4rem; padding: .4rem .65rem; font-size: .82rem; }
.studio-shell { padding-top: 2rem; padding-bottom: 4rem; }
.form-key { max-width: 52rem; margin: 0 0 1rem; padding: .7rem .85rem; border-left: 3px solid var(--teal); background: var(--wash); color: var(--muted); font-size: .84rem; }
.step-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem .7rem; margin-bottom: 1rem; }
.step-nav ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: .25rem; list-style: none; margin: 0; padding: 0; }
.step-nav button { width: 100%; border: 0; border-radius: .45rem; background: transparent; color: var(--muted); padding: .5rem .3rem; font-size: .78rem; font-weight: 750; cursor: pointer; }
.step-nav button span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; margin: 0 auto .15rem; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.step-nav button[aria-current="step"] { background: var(--wash); color: var(--ink); }
.step-nav button[aria-current="step"] span { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.step-nav button:disabled { opacity: .5; cursor: not-allowed; }
.progress-track { height: .28rem; background: #e5e2d9; border-radius: 99px; overflow: hidden; margin-top: .55rem; }
.progress-track span { display: block; height: 100%; background: var(--teal); }
.step-nav .meta { text-align: center; margin: .35rem 0 0; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .38fr); align-items: start; gap: 1rem; }
.studio-form, .guidance-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); min-width: 0; }
.studio-step > .step-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.step-heading h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .2rem 0; }
.step-heading p { color: var(--muted); max-width: 44rem; margin: .35rem 0 0; }
.step-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.step-actions button { min-height: 2.75rem; border: 2px solid var(--teal-dark); border-radius: .5rem; padding: .65rem 1rem; background: transparent; color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.step-actions button:last-child { margin-left: auto; color: #fff; }
.guidance-panel { position: sticky; top: 5.7rem; padding: 1rem; }
.guidance-heading { border-bottom: 1px solid var(--line); margin-bottom: .7rem; }
.guidance-heading h2 { font-size: 1.5rem; margin: .2rem 0 .7rem; }
.guidance-item { border: 1px solid var(--line); border-radius: .6rem; padding: .7rem; margin-top: .65rem; font-size: .82rem; }
.guidance-item > div { display: flex; gap: .5rem; align-items: flex-start; }
.guidance-item p { color: var(--muted); margin: .35rem 0 0 1.6rem; }
.guidance-item.warning { border-color: #d29d46; background: var(--warning-wash); }
.guidance-item.warning p { color: #6e3b00; }
.guidance-item.pass { background: var(--success-wash); border-color: #a7cdb5; }
.guidance-item.override { background: #f1edfa; border-color: #c3b3df; }
.check-icon { display: grid; place-items: center; flex: 0 0 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--success); color: #fff; font-weight: 900; line-height: 1; }
.warning .check-icon { background: var(--warning); }
.override .check-icon { background: #65428e; }
.override-label { display: flex; align-items: flex-start; gap: .45rem; margin: .6rem 0 0 1.6rem; font-size: .78rem; }
.override-label input { margin-top: .2rem; }
.guidance-empty { color: var(--muted); padding: .8rem; border: 1px dashed var(--line); border-radius: .5rem; }
.rubric-editor { padding: 1rem; }
.rubric-row { position: relative; background: #faf8f2; margin: 1rem 0; padding-top: 1.2rem; }
.rubric-row > legend { font-size: .9rem; }
.remove-criterion { position: absolute; top: .45rem; right: .55rem; font-size: .78rem; }
.descriptor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.descriptor-grid label { font-size: .82rem; }
.descriptor-grid input { margin-top: .25rem; font-weight: 400; }
.review-gate { padding: 1rem; border-radius: .6rem; margin-bottom: 1rem; }
.review-gate.has-warnings { background: var(--warning-wash); border: 1px solid #d29d46; color: #6e3b00; }
.review-gate.is-ready { background: var(--success-wash); border: 1px solid #a7cdb5; color: #114d30; }
.lesson-artifact { background: #fff; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); color: #17211f; }
.artifact-header { padding-bottom: 1rem; border-bottom: 3px solid var(--ink); }
.artifact-header h2 { font-size: clamp(2rem, 5vw, 3rem); margin: .2rem 0; }
.artifact-header p { margin: .25rem 0; }
.artifact-label { color: var(--coral-dark); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 800; }
.artifact-section { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); break-inside: avoid; }
.artifact-section > h3 { font: 1.35rem/1.25 var(--serif); margin: 0 0 .65rem; }
.artifact-section p, .artifact-subsection p { white-space: pre-wrap; overflow-wrap: anywhere; }
.artifact-subsection h4 { margin-bottom: .2rem; }
.artifact-subsection p { margin-top: .2rem; }
.artifact-meta { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .3rem .8rem; }
.artifact-meta dt { font-weight: 750; }
.artifact-meta dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.artifact-review { background: #f4f3ee; padding: 1rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.rubric-table { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: .8rem; }
.rubric-table caption { text-align: left; font-weight: 800; font-size: 1rem; margin-bottom: .4rem; }
.rubric-table th, .rubric-table td { border: 1px solid #aeb6b2; padding: .5rem; vertical-align: top; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.rubric-table th { background: #f2f1ec; }
.saved-section { padding: 3rem 0 4rem; background: var(--paper); border-top: 1px solid var(--line); }
.saved-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.saved-grid > .empty { grid-column: 1 / -1; }
.saved-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; }
.saved-card h3 { margin: .2rem 0; }
.saved-card .actions { flex: 0 0 auto; margin: 0; }
.saved-card .button { min-height: 2.35rem; padding: .35rem .6rem; font-size: .8rem; }

/* Resource finder */
.resource-controls { background: var(--paper); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.finder-prompt { display: grid; grid-template-columns: minmax(14rem, .55fr) 1fr; gap: 1rem 2rem; align-items: end; margin-bottom: 1.25rem; }
.finder-prompt h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: .2rem 0 0; }
.finder-prompt p { color: var(--muted); margin: 0; max-width: 46rem; }
.filter-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: .7rem; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; padding-top: .2rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.resource-card { display: flex; flex-direction: column; }
.resource-card h2 { font: 1.35rem var(--serif); margin: .3rem 0; }
.resource-card > p { flex: 1; }
.resource-card dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .7rem; font-size: .83rem; }
.resource-card dt { font-weight: 750; }
.resource-card dd { margin: 0; color: var(--muted); }
.resource-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: 1rem; }
.resource-actions .button { min-height: 2.4rem; padding: .4rem .65rem; font-size: .82rem; }

/* Assessment review */
.assessment-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .5fr); gap: 1rem; align-items: start; }
.assessment-layout > * { min-width: 0; }
.assessment-layout aside { position: sticky; top: 5.7rem; }
.assessment-layout code { font-size: .9em; }
.assessment-results > h2 { outline: 0; }
.assessment-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.assessment-metrics div { display: contents; }
.assessment-metrics dt, .assessment-metrics dd { margin: 0; padding: .65rem; border: 1px solid var(--line); }
.assessment-metrics dt { grid-row: 1; background: var(--wash); font-weight: 750; }
.assessment-metrics dd { grid-row: 2; font: 1.4rem var(--serif); }
.assessment-result-section { margin-top: 2rem; }
.privacy-check { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; padding: .8rem; background: var(--warning-wash); border: 1px solid #d29d46; border-radius: .5rem; }
.privacy-check input { margin-top: .3rem; flex: 0 0 auto; }
.criterion-result { border: 1px solid var(--line); border-left: 5px solid var(--warning); border-radius: .65rem; padding: 1rem; margin: .7rem 0; background: var(--paper); }
.criterion-result.evidence-found { border-left-color: var(--success); }
.criterion-result h4 { margin-top: 0; }

footer { background: #102522; color: #e8efec; padding: 4rem 0 2rem; border-top: .45rem solid var(--coral); }
footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid p { color: #c1cfca; }
.fine { font-size: .8rem; color: #c1cfca; border-top: 1px solid #45605a; margin-top: 2rem; padding-top: 1rem; }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .exemplar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .guidance-panel { position: static; }
  .assessment-layout { grid-template-columns: 1fr; }
  .assessment-layout aside { position: static; }
}

@media (max-width: 760px) {
  .principle-chain ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adaptation-checks { grid-template-columns: 1fr; }
  .finder-prompt { grid-template-columns: 1fr; align-items: start; }
  .nav-toggle { display: block; }
  #primary-nav { position: absolute; inset: 4.7rem 0 auto; background: var(--ink); border-bottom: 1px solid #45605a; padding: .5rem 1rem 1rem; }
  #primary-nav[hidden] { display: none !important; }
  #primary-nav ul { display: block; }
  #primary-nav a { display: block; padding: .75rem; }
  #primary-nav a[aria-current="page"]::after { left: .75rem; right: auto; width: 2.5rem; bottom: .45rem; }
  .hero { padding-top: 4rem; }
  .grid, .grid.two, .resource-grid, .footer-grid, .saved-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid .search { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step-nav { overflow-x: auto; }
  .step-nav ol { min-width: 34rem; }
  .step-nav .meta { position: sticky; left: 0; }
  .studio-step > .step-heading { display: block; }
  .studio-step > .step-heading .button { margin-top: .75rem; }
  .saved-card { align-items: flex-start; flex-direction: column; }
  .assessment-metrics { grid-template-columns: 1fr 1fr; }
  .assessment-metrics dt, .assessment-metrics dd { grid-row: auto; }
}

@media (max-width: 480px) {
  .principle-chain ol { grid-template-columns: 1fr; }
  .wrap, .nav-wrap, .page-head { padding-inline: .85rem; }
  .card, .studio-form, .guidance-panel { padding: 1rem; }
  .exemplar-grid, .descriptor-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-grid .search { grid-column: auto; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .studio-file-actions .button { flex: 1 1 calc(50% - .55rem); }
  .studio-file-actions .file-more { flex: 1 1 100%; }
  .artifact-meta { grid-template-columns: 1fr; }
  .artifact-meta dt { margin-top: .35rem; }
  .choice-row { display: grid; }
  .lesson-artifact { padding: .8rem; }
  .page-head .actions .button, .hero .actions .button, .filter-actions > * { width: 100%; }
  .page-head .actions, .hero .actions, .filter-actions { align-items: stretch; }
  .step-nav { overflow: visible; }
  .step-nav ol { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .step-nav button { min-height: 3.6rem; padding: .35rem .15rem; font-size: .7rem; }
  .step-nav button span { margin-bottom: .1rem; }
  .step-nav .meta { position: static; }
  .hero-proof { transform: none; }
}

@media (max-width: 380px) {
  .studio-file-actions .button { flex: 1 1 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (prefers-contrast: more) {
  :root { --line: #71817c; --muted: #314a45; }
  .card, .studio-form, .guidance-panel, .resource-controls { border-width: 2px; }
  a { text-decoration-thickness: 2px; }
  :focus-visible { outline-color: #b93220; outline-width: 4px; }
}

@media print {
  @page { margin: .55in; }
  header, footer, .no-print, .saved-section, .exemplar-strip, .guidance-panel, .step-actions, #form-error, .review-gate { display: none !important; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.42; }
  main, .studio-shell, .studio-layout, .studio-form, .studio-step.review-step { display: block !important; margin: 0; padding: 0; border: 0; max-width: none; }
  .studio-step:not(.review-step) { display: none !important; }
  .lesson-artifact { border: 0; padding: 0; }
  .artifact-header h2 { font-size: 22pt; }
  .artifact-section { break-inside: auto; }
  .artifact-subsection, .artifact-meta, .rubric-table tr { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .rubric-table { min-width: 0; font-size: 7.5pt; table-layout: fixed; }
  .rubric-table th, .rubric-table td { border-color: #000; padding: .28rem; }
  .rubric-table th { background: #eee !important; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; overflow-wrap: anywhere; }
}
