/* Local geometric studies and a plain reading base. */
:root {
  color-scheme: light;
  --paper: #e7e3d9;
  --plate: #f7f4ed;
  --ink: #20231f;
  --quiet: #51564d;
  --leaf: #286746;
  --leaf-wash: #d7e0d3;
  --rule: #8a8e81;
  --radius: 6px;
  font-family: "Source Sans 3", "Segoe UI", "Arial", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--leaf-wash); color: var(--ink); }
a { color: var(--leaf); text-decoration-thickness: 1.5px; text-underline-offset: .18em; min-height: 44px; display: inline-flex; align-items: center; max-width: 100%; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 4px;
}
h1, h2, h3, legend, .sheet-name { font-family: "Cabin", "Trebuchet MS", "Arial", sans-serif; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.1vw, 3.45rem); letter-spacing: -.025em; margin: .2em 0 .5em; max-width: 19ch; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); margin: 0 0 .65em; max-width: 26ch; }
h3 { font-size: 1.3rem; margin: 1.4em 0 .6em; }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 68ch; }
li { margin-block: .4em; }
strong { font-weight: 700; }
small { font-size: 1rem; }
button, input, textarea, summary { font: inherit; }
button, summary { cursor: pointer; }
button { min-height: 48px; border: 1px solid var(--leaf); border-radius: var(--radius); color: var(--plate); background: var(--leaf); padding: .55em 1em; }
textarea, input[type="text"] { color: var(--ink); width: 100%; min-width: 0; background: var(--plate); border: 1px solid var(--rule); border-radius: var(--radius); padding: .65em .8em; }
textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
input[type="text"] { min-height: 52px; }
input[type="checkbox"] { appearance: none; flex: 0 0 44px; width: 44px; height: 44px; margin: .14em 0 0; border: 2px solid var(--leaf); border-radius: 5px; background: var(--plate); display: grid; place-content: center; }
input[type="checkbox"]:checked { background: var(--leaf); }
input[type="checkbox"]:checked::after { content: ""; width: 8px; height: 13px; border: solid var(--plate); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 1.2rem; padding: 0; margin-bottom: .7em; }
label { display: block; margin-bottom: .4em; }
figure { margin: 0; }
figcaption { font-size: 1rem; line-height: 1.45; color: var(--quiet); }
figcaption p { margin: .9em 0 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.skip-to-sheet { position: absolute; top: .5rem; left: 1rem; padding: .6em 1em; background: var(--plate); transform: translateY(-160%); z-index: 5; }
.skip-to-sheet:focus { transform: translateY(0); }
.bulletin-top { max-width: 1280px; padding: 1.3rem 2.2rem 0; margin-inline: auto; }
.bulletin-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem 2rem; border-bottom: 3px solid var(--ink); padding-bottom: .65rem; }
.sheet-name { color: var(--ink); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.bulletin-title p { margin: 0; font-size: 1rem; color: var(--quiet); }
.topic-clusters { display: flex; gap: 3rem; padding: .8rem 0 1rem; }
.topic-clusters > div { display: flex; align-items: center; gap: .35rem 1rem; flex-wrap: wrap; }
.topic-clusters span { font-weight: 600; color: var(--quiet); }
.topic-clusters a { border-radius: var(--radius); padding: .25rem .55rem; margin-left: -.55rem; }
.topic-clusters a[aria-current="page"] { color: var(--ink); background: var(--leaf-wash); text-decoration: none; box-shadow: inset 0 -3px var(--leaf); }
main { max-width: 1280px; margin: auto; padding: 1.4rem 2.2rem 4rem; }
.opening-brief { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .72fr); align-items: start; gap: 2rem 4rem; margin-bottom: 3rem; }
.desk-marker { display: inline-flex; border-left: 7px solid var(--leaf); padding: .1em .75em; font-weight: 600; margin-bottom: .8rem; }
.opening-brief > div > p { max-width: 57ch; }
.guide-intro { font-size: 1.12rem; line-height: 1.48; }
.care-plate { background: var(--plate); border-radius: var(--radius); padding: 1.4rem; margin-top: .25rem; }
.plate-study { position: relative; min-height: 240px; aspect-ratio: 1.18; border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.plate-study span { display: block; position: absolute; }
.plate-pier { background: var(--leaf); width: 25%; height: 60%; left: 19%; top: 20%; border-radius: var(--radius); }
.plate-lintel { background: var(--ink); width: 62%; height: 13%; left: 19%; top: 20%; border-radius: var(--radius); }
.plate-arc { width: 55%; aspect-ratio: 1; border: 25px solid var(--leaf); border-radius: 50%; left: 42%; top: 35%; }
.plate-rest { background: var(--paper); width: 61%; height: 22%; left: 42%; bottom: 0; }
.care-plate figcaption strong { color: var(--ink); display: block; font-weight: 600; }
.care-plate--visit .plate-pier { transform: rotate(-12deg); left: 23%; width: 22%; }
.care-plate--visit .plate-lintel { left: 23%; width: 55%; top: 67%; }
.care-plate--visit .plate-arc { left: 41%; top: 19%; width: 46%; border-width: 22px; }
.care-plate--visit .plate-rest { display: none; }
.care-plate--money .plate-pier { height: 31%; top: 50%; width: 26%; left: 13%; }
.care-plate--money .plate-lintel { height: 53%; width: 26%; left: 43%; top: 28%; }
.care-plate--money .plate-arc { width: 25%; height: 14%; border: 0; background: var(--leaf); border-radius: var(--radius); left: 73%; top: 67%; }
.care-plate--money .plate-rest { width: 74%; height: 4%; bottom: 10%; left: 13%; background: var(--ink); }
.care-plate--evidence .plate-pier { width: 59%; height: 15%; top: 20%; left: 20%; }
.care-plate--evidence .plate-lintel { width: 15%; height: 56%; top: 20%; left: 64%; }
.care-plate--evidence .plate-arc { left: 16%; top: 41%; width: 42%; border-width: 20px; }
.care-plate--evidence .plate-rest { display: none; }
.question-slip { background: var(--plate); padding: 1.25rem 1.5rem; border-radius: var(--radius); border-top: 5px solid var(--leaf); }
.question-slip > p:last-child { margin-bottom: 0; }
.answer-and-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 2rem 4rem; align-items: start; margin: 3rem 0; }
.answer-and-sheet > div { max-width: 68ch; }
.question-checks { list-style: none; padding: 0; margin: 0; }
.question-checks li { margin: 0; }
.question-checks label { display: flex; gap: .85rem; align-items: flex-start; min-height: 56px; margin: 0; padding: .7rem 0; border-bottom: 1px solid #c5c8ba; cursor: pointer; }
.question-checks li:last-child label { border-bottom: 0; }
.question-checks label:has(input:checked) { color: var(--leaf); }
.writing-sheet { padding: 1.5rem; border: 2px solid var(--rule); border-radius: var(--radius); }
.writing-sheet > p { color: var(--quiet); }
.writing-sheet label { margin-top: 1rem; }
.writing-sheet textarea + p { margin-top: .65rem; }
.writing-sheet > :last-child { margin-bottom: 0; }
.note-guidance { color: var(--quiet); font-size: 1rem; }
.brief-answers { max-width: 72ch; margin: 2.5rem 0; }
.brief-answers dt { font-family: "Cabin", "Trebuchet MS", sans-serif; font-size: 1.3rem; font-weight: 600; margin: 1.6rem 0 .5rem; line-height: 1.2; }
.brief-answers dd { margin: 0; }
.claim-pair { padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.claim-pair:last-child { margin-bottom: 0; }
.claim-pair > p:last-of-type { margin-bottom: .6rem; }
.evidence-slip { margin-top: .65rem; }
.evidence-slip summary { min-height: 48px; color: var(--leaf); padding: .55rem .75rem; border: 1px solid var(--leaf); border-radius: var(--radius); width: fit-content; max-width: 100%; line-height: 1.35; }
.evidence-slip summary::marker { color: var(--leaf); }
.evidence-slip[open] summary { background: var(--leaf-wash); }
.source-note { background: var(--plate); padding: 1rem 1.2rem; border-radius: var(--radius); margin-top: .7rem; }
.source-note p { margin-bottom: .6rem; }
.source-note a { display: flex; gap: .5em; padding-block: .4em; overflow-wrap: anywhere; }
.source-note a::after { content: "↗"; text-decoration: none; }
.source-note > :last-child { margin-bottom: 0; }
.compare-sheet { padding: 1.5rem; background: var(--plate); border-radius: var(--radius); border-left: 7px solid var(--leaf); }
.compare-sheet .writing-sheet { border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 1.2rem 0 0; margin-top: 1.4rem; }
.paired-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.paired-notes textarea { min-height: 6.5rem; }
.cost-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.8rem; }
.cost-lines label { margin: 0; }
.cost-lines input { margin-top: .35rem; }
.cost-lines .full-line { grid-column: 1 / -1; }
.reading-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 3rem 4rem; margin-block: 3rem; }
.reading-notes > div { max-width: 68ch; }
.conversation-pause { padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--leaf-wash); margin-top: 2rem; }
.conversation-pause p { margin-bottom: 0; }
.desk-handoff { border-top: 3px solid var(--ink); margin-top: 3rem; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.desk-handoff p { margin: 0; }
.desk-handoff a { padding: .4rem .75rem; border-radius: var(--radius); background: var(--leaf); color: var(--plate); }
.bulletin-bottom { max-width: 1280px; margin: 0 auto; padding: 1.5rem 2.2rem 2rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; }
.bulletin-bottom p { color: var(--quiet); max-width: 65ch; margin: 0; font-size: 1rem; }
.bulletin-bottom a { font-size: 1rem; align-self: start; }
.source-drawer { position: fixed; inset: 0 0 0 auto; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-left: 5px solid var(--leaf); padding: 1.4rem; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: -12px 0 60px #20231f25; }
.source-drawer::backdrop { background: #20231f66; }
.drawer-controls { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--ink); }
.drawer-controls p { font-family: "Cabin", "Trebuchet MS", sans-serif; font-size: 1.5rem; line-height: 1.2; margin: .3rem 0 0; }
.source-drawer .source-note { padding: 1.2rem 0; background: transparent; }
.source-drawer a { width: 100%; }
@media (max-width: 940px) {
  .topic-clusters { gap: .5rem 2rem; }
  .topic-clusters > div { column-gap: .8rem; }
  .topic-clusters span { width: 100%; }
  .opening-brief { gap: 2rem; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .7fr); }
  .answer-and-sheet, .reading-notes { gap: 2rem; }
}
@media (max-width: 700px) {
  .bulletin-top { padding: .8rem 1.1rem 0; }
  .bulletin-title { gap: 0; display: block; }
  .sheet-name { font-size: 1.32rem; }
  .topic-clusters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: .8rem 0; }
  .topic-clusters > div { display: flex; flex-direction: column; align-items: stretch; gap: .1rem; }
  .topic-clusters span { font-size: 1rem; margin-bottom: .2rem; }
  .topic-clusters a { margin-left: 0; padding-inline: .45rem; font-size: 1rem; line-height: 1.25; }
  main { padding: 1rem 1.1rem 2.5rem; }
  h1 { max-width: 19ch; font-size: 2.25rem; }
  .opening-brief { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; margin-bottom: 2rem; }
  .guide-intro { font-size: 1.08rem; }
  .care-plate { padding: 1.3rem; max-width: 440px; width: 100%; }
  .plate-study { min-height: 200px; max-height: 245px; aspect-ratio: 1.4; }
  .answer-and-sheet, .reading-notes { display: block; margin: 2.3rem 0; }
  .answer-and-sheet > :first-child, .reading-notes > :first-child { margin-bottom: 1.8rem; }
  .question-slip, .writing-sheet, .compare-sheet { padding: 1.1rem; }
  .paired-notes, .cost-lines { grid-template-columns: minmax(0, 1fr); }
  .cost-lines { gap: 1rem; }
  .bulletin-bottom { display: block; padding: 1.3rem 1.1rem; }
  .bulletin-bottom a { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { font-size: 12pt; color: #000; background: #fff; }
  body:has(dialog[open]) { overflow: visible; }
  .bulletin-top, .bulletin-bottom, .skip-to-sheet, .care-plate, .desk-handoff, .source-drawer { display: none; }
  main { padding: 0; max-width: none; }
  h1 { font-size: 28pt; max-width: 24ch; }
  h2 { font-size: 19pt; }
  h3 { font-size: 15pt; }
  h1, h2, h3, legend { break-after: avoid; }
  .opening-brief, .answer-and-sheet, .reading-notes, .paired-notes { display: block; margin-block: 1.2rem; }
  .writing-sheet, .question-slip, .compare-sheet { background: #fff; border: 1px solid #888; margin-block: 1rem; padding: .8rem; break-inside: avoid; }
  .claim-pair { break-inside: avoid; }
  a { color: #000; min-height: 0; }
  textarea, input[type="text"] { background: #fff; border-color: #999; }
  textarea { min-height: 5rem; }
  .evidence-slip { display: block; }
  .evidence-slip summary { display: none; }
  .evidence-slip > .source-note { display: block; background: #fff; padding: 0; }
  .source-note a { min-height: 0; padding: 0; font-size: 10pt; }
  .source-note a::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
}
