/* Colours and type follow shareable.net and the toolkit cover */
:root {
  --cream: #F9F6EB; --white: #fffdf7; --navy: #232D58; --navy-deep: #1A244D; --soft: #55608a;
  --green: #3C5347; --sage: #ABBD9B; --blue: #B6D3E2; --blue-wash: #e3eef4; --yellow: #F6D551;
  --coral: #D86E72; --brick: #BA4B4F; --pink: #F0D5D1; --line: #d9d4c0;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 60px; --exp: 26px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + var(--exp) + 16px); }
body { margin: 0; background: var(--cream); color: var(--navy); font: 17px/1.6 var(--sans); }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h3 { font-family: var(--sans); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 2px; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 8; background: var(--navy); color: var(--cream); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--top); padding: 8px clamp(16px, 4vw, 56px); padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right)); }
.brand { background: none; border: 0; padding: 0; color: var(--cream); text-align: left; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.brand .short { display: none; }
.brand small { display: block; font: 600 0.66rem/1.5 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.top-actions { display: none; gap: 8px; flex: none; }
.progress { height: 4px; background: var(--navy-deep); }
.progress i { display: block; height: 100%; background: var(--yellow); transition: width .3s ease; }

.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 56px) 0; max-width: 1240px; margin: 0 auto; }
.side { background: var(--green); color: var(--cream); padding: 22px 14px 16px; position: sticky; top: calc(var(--top) + var(--exp) + 28px); align-self: start; max-height: calc(100vh - var(--top) - var(--exp) - 48px); overflow-y: auto; }
.side-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 10px 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps button { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 4px; color: var(--cream); font-size: 0.95rem; line-height: 1.35; min-height: 40px; }
.steps button:hover { background: rgba(249, 246, 235, 0.12); }
.steps button[aria-current="step"] { background: var(--cream); color: var(--navy); font-weight: 600; }
.dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.75; display: inline-grid; place-items: center; font-size: 11px; line-height: 1; transform: translateY(3px); }
.dot.drafted { background: var(--coral); border-color: var(--coral); opacity: 1; }
.dot.done { background: var(--yellow); border-color: var(--yellow); color: var(--navy); opacity: 1; font-weight: 700; }
.dot.plain { visibility: hidden; }
.steps .gap { height: 10px; }
.side-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(249, 246, 235, 0.25); }
.side-foot .btn.quiet, .side-foot .btn.quiet:hover { color: var(--cream); }

main { padding-bottom: 96px; min-width: 0; }
main:focus { outline: none; }
.col { max-width: 760px; }
.pill { display: inline-block; background: var(--yellow); color: var(--navy); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.banner { display: inline; background: var(--navy); color: var(--cream); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 1.1rem; margin-top: 14px; max-width: 62ch; }

.hero { background: var(--blue); margin-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
.hero-text { padding: clamp(22px, 4vw, 40px); padding-right: 8px; align-self: center; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.hero-text .lede { font-size: 1.05rem; }
/* The cover's own background is the hero's blue, so the whole cover sits in it without a frame */
.hero-art { display: flex; align-items: center; background: var(--blue); }
.hero-art img { width: 100%; height: auto; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 4px; padding: 12px 24px; border: 2px solid var(--yellow); background: var(--yellow); color: var(--navy); font-size: 0.94rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #f1c82f; border-color: #f1c82f; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn.dark:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--cream); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--soft); padding: 10px 12px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.btn.quiet:hover { color: var(--navy); background: transparent; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }

.field { margin-top: 22px; }
label { display: block; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.hint { display: block; font-weight: 400; color: var(--soft); font-size: 0.92rem; }
input[type=text], textarea { width: 100%; font: inherit; color: inherit; background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; padding: 12px 14px; margin-top: 6px; -webkit-appearance: none; appearance: none; }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--blue); }
::placeholder { color: #8a91ad; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.card { scroll-margin-top: calc(var(--top) + var(--exp) + 16px); background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; padding: clamp(18px, 3vw, 30px); margin-top: 28px; }
.card.how { background: var(--green); border-color: var(--green); color: var(--cream); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }

.prose h3 { font-size: 1.14rem; margin: 1.4em 0 0.4em; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.prose p:last-child, .prose ul:last-child, .prose ol:last-child { margin-bottom: 0; }
.cite { display: inline-block; min-width: 1.5em; text-align: center; font-size: 0.7em; vertical-align: super; line-height: 1.5; text-decoration: none; font-weight: 700; color: var(--navy); background: var(--yellow); border-radius: 999px; padding: 0 5px; margin-left: 2px; }
.cite:hover { background: var(--navy); color: var(--cream); }
.sources { margin-top: 22px; padding: 16px 18px; background: var(--blue-wash); border-left: 4px solid var(--blue); font-size: 0.92rem; }
.sources ol { margin: 8px 0 0; padding-left: 1.4em; }
.sources li { margin-bottom: 6px; }
.sources span { color: var(--soft); }
.writing { font-size: 0.92rem; display: flex; gap: 8px; align-items: center; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .progress i { transition: none; } }
.error { background: var(--pink); border-left: 4px solid var(--brick); color: #6d2326; padding: 12px 16px; margin-top: 18px; }
.edit-area { min-height: 420px; font-size: 1rem; }

.ask-fab { position: fixed; right: 20px; bottom: 20px; box-shadow: 0 6px 20px rgba(26, 36, 77, 0.3); z-index: 5; }
.ask-panel { position: fixed; right: 20px; bottom: 20px; width: min(460px, calc(100vw - 32px)); max-height: min(680px, calc(100vh - 100px)); overflow-y: auto; background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; box-shadow: 0 14px 44px rgba(26, 36, 77, 0.3); padding: 20px; z-index: 9; }
.ask-panel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.ask-panel textarea { min-height: 84px; }

.plan-section { margin-top: 38px; }
.plan-section > h2 { font-size: 1.55rem; padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 16px; }
.plan-section.open-qs { background: var(--pink); padding: clamp(18px, 3vw, 28px); }
.empty { color: var(--soft); font-style: italic; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 20px 0 0; font-size: 0.96rem; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }

footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--soft); max-width: 760px; }
.scrim { display: none; }

@media (max-width: 900px) {
  :root { --top: 56px; }
  .top-actions { display: flex; }
  .brand { font-size: 1rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand small, .brand .full { display: none; }
  .brand .short { display: inline; }
  .brand { min-height: 44px; }
  .shell { display: block; padding: 22px 16px 0; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .side { display: none; position: fixed; z-index: 7; top: calc(var(--top) + var(--exp) + 4px); left: 0; right: 0; bottom: 0; align-self: auto; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 14px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .side.open { display: block; }
  .steps button { font-size: 1.02rem; min-height: 48px; padding: 10px 12px; }
  main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .col, footer { max-width: none; }
  .hero { grid-template-columns: 1fr; margin: -22px -16px 24px; }
  .hero-text { padding: 8px 16px 26px; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .hero-art { min-height: 0; aspect-ratio: 1200 / 799; order: -1; }
  .two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: 10px; }
  .row .btn:not(.quiet) { flex: 1 1 100%; }
  .row .btn.quiet { flex: 1 1 100%; }
  .card { padding: 18px 16px; }
  .ask-fab { display: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(26, 36, 77, 0.45); z-index: 8; }
  .ask-panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; max-height: 86dvh; border-width: 2px 0 0; border-radius: 12px 12px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
}

@media print {
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .top, .side, .no-print, .ask-fab, .ask-panel, .scrim { display: none !important; }
  .shell { display: block; padding: 0; max-width: none; }
  main { padding: 0; }
  .col, footer { max-width: none; }
  .pill { background: none; padding: 0; }
  .plan-section { break-inside: auto; }
  .plan-section > h2 { break-after: avoid; }
  .plan-section.open-qs { background: none; padding: 0; }
  .sources { background: none; border-left: 2px solid #999; }
  .cite { background: none; padding: 0; min-width: 0; }
  a { color: #000; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; color: #444; }
}

/* ---------- The conversational version (chat.html) ---------- */

.chat-shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 44px); max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); align-items: start; }
.chat-main { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--top) - var(--exp) - 4px); min-height: calc(100dvh - var(--top) - var(--exp) - 4px); padding-bottom: 0; }
.chat-main:focus { outline: none; }
.thread { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: clamp(20px, 3vw, 36px) 0 20px; }
.intro { background: var(--blue); padding: clamp(18px, 3vw, 28px); margin-bottom: 26px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; }
.intro h1 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); }
.intro p { margin: 10px 0 0; }
.intro img { width: 100%; height: auto; display: block; }

.msg { margin-top: 18px; max-width: 92%; scroll-margin-top: calc(var(--top) + var(--exp) + 14px); }
.msg.guide { margin-right: auto; }
.msg.you { margin-left: auto; width: fit-content; background: var(--navy); color: var(--cream); padding: 12px 16px; border-radius: 14px 14px 2px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .who { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.bubble { background: var(--white); border: 1.5px solid var(--navy); border-radius: 2px 14px 14px 14px; padding: 14px 18px; }
.bubble .prose p { margin-bottom: 0.7em; }
.bubble .sources { background: none; border-left: 0; border-top: 1px dashed var(--line); padding: 10px 0 0; margin-top: 12px; font-size: 0.85rem; }
.bubble .sources .tag { font-size: 0.68rem; color: var(--soft); }
.bubble .sources ol { margin-top: 4px; }
.bubble .sources li { margin-bottom: 2px; }
.dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); opacity: 0.3; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }

.proposals { margin-top: 10px; display: grid; gap: 8px; }
.proposal { background: #fdf4cd; border-left: 5px solid var(--yellow); padding: 10px 12px 10px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fresh { animation: rise 0.3s ease-out; }
.proposal p { margin: 0; flex: 1 1 220px; font-weight: 500; }
.proposal .acts { display: flex; gap: 6px; align-items: center; }
.proposal.locked { background: var(--blue-wash); border-left-color: var(--navy); }
.proposal.locked p::before { content: "\2713  Locked in: "; font-weight: 700; }
.proposal.skipped { background: none; border-left-color: var(--line); color: var(--soft); }
.proposal.skipped p { text-decoration: line-through; font-weight: 400; }
.proposal input { flex: 1 1 100%; margin: 0; }
.lock-all { justify-self: start; }
.parked { margin-top: 8px; font-size: 0.92rem; color: var(--brick); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .fresh, .dots i { animation: none; } }

.composer { position: sticky; bottom: 0; z-index: 4; background: var(--cream); border-top: 1.5px solid var(--navy); margin: 0 calc(-1 * clamp(16px, 4vw, 56px)) 0 0; padding: 12px clamp(16px, 4vw, 56px) calc(14px + env(safe-area-inset-bottom)) 0; }
.composer-in { max-width: 720px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font-size: 0.95rem; font-weight: 500; text-align: left; }
.chip:hover { background: var(--navy); color: var(--cream); }
.chip.unsure { border-style: dashed; color: var(--soft); }
.send-row { display: flex; gap: 8px; align-items: flex-end; }
.send-row textarea { margin: 0; min-height: 48px; max-height: 180px; resize: none; }
.send-row .btn { flex: none; }

.board { background: var(--green); color: var(--cream); position: sticky; top: calc(var(--top) + var(--exp) + 24px); margin-top: clamp(20px, 3vw, 36px); max-height: calc(100vh - var(--top) - var(--exp) - 48px); overflow-y: auto; padding: 20px 16px; }
.board h2 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.board .sub { font-size: 0.9rem; opacity: 0.85; margin-bottom: 14px; }
.topic { border-top: 1px solid rgba(249, 246, 235, 0.22); padding: 8px 0; }
.topic-head { display: flex; align-items: baseline; gap: 8px; width: 100%; background: none; border: 0; color: var(--cream); text-align: left; padding: 4px 6px; border-radius: 4px; font-size: 0.95rem; min-height: 36px; }
.topic-head:hover { background: rgba(249, 246, 235, 0.12); }
.topic.current .topic-head { background: var(--cream); color: var(--navy); font-weight: 600; }
.topic-head .n { margin-left: auto; font-size: 0.8rem; opacity: 0.8; white-space: nowrap; }
.locks { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 6px; }
.locks li { background: var(--cream); color: var(--navy); padding: 8px 10px; border-radius: 4px; font-size: 0.9rem; line-height: 1.4; display: flex; gap: 6px; align-items: flex-start; }
.locks li.parked-item { background: var(--pink); }
.locks li span { flex: 1; }
.locks li input { flex: 1; margin: 0; padding: 6px 8px; font-size: 0.9rem; }
.mini { flex: none; width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--soft); font-size: 0.95rem; line-height: 1; }
.mini:hover { background: rgba(35, 45, 88, 0.1); color: var(--navy); }
.board-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(249, 246, 235, 0.22); display: grid; gap: 8px; }
.board-foot .btn.quiet, .board-foot .btn.quiet:hover { color: var(--cream); justify-self: start; }
.board-foot .hint { color: var(--cream); opacity: 0.85; }
.cta { background: var(--blue); padding: 16px 18px; margin-top: 18px; }
.cta p { margin: 0 0 12px; font-weight: 500; }
.writing-plan { background: var(--white); border: 1.5px solid var(--navy); padding: 18px; margin-top: 18px; }
.plan-wrap { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 80px; }

@media (max-width: 900px) {
  .chat-shell { display: block; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .thread { padding-top: 16px; }
  .intro { grid-template-columns: 1fr; margin: -16px -16px 20px; }
  .intro img { display: none; }
  .msg { max-width: 96%; }
  .proposal { padding: 8px 10px 8px 12px; gap: 4px; }
  .proposal p { flex-basis: 100%; }
  .proposal .acts .btn.small { min-height: 40px; padding: 6px 14px; }
  a.brand { display: inline-flex; align-items: center; }
  .composer { margin: 0 -16px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .board { display: none; position: fixed; z-index: 7; top: calc(var(--top) + var(--exp) + 4px); left: 0; right: 0; bottom: 0; align-self: auto; margin: 0; max-height: none; padding: 18px 14px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .board.open { display: block; }
  .topic-head { min-height: 44px; font-size: 1rem; }
  .mini { width: 36px; height: 36px; }
  .plan-wrap { padding-top: 20px; }
}

@media print {
  .board, .composer, .thread { display: none !important; }
  .chat-shell { display: block; padding: 0; max-width: none; }
  .plan-wrap { max-width: none; padding: 0; }
}


/* ---------- People on parked questions, the decision log, the one-pager, the wall ---------- */

.parked-card { margin-top: 10px; background: var(--pink); border-left: 5px solid var(--coral); padding: 10px 12px 10px 14px; }
.parked-card p { margin: 0 0 6px; font-weight: 500; }
.parked-card .tag { color: var(--brick); margin-right: 4px; }
.who-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.who-row .chip { min-height: 36px; padding: 5px 12px; font-size: 0.9rem; }
.who-row input { flex: 1 1 200px; margin: 0; padding: 8px 10px; }
.who-row .btn.quiet { padding-left: 0; }
.locks li small { display: block; font-size: 0.78rem; color: var(--brick); font-weight: 600; margin-top: 2px; }
.room { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.room input { margin-top: 4px; padding: 8px 10px; font-size: 0.92rem; text-transform: none; letter-spacing: 0; font-weight: 400; border-color: var(--cream); color: var(--navy); }
.board-foot a.btn.quiet { color: var(--cream); justify-self: start; }

.talks { background: var(--blue-wash); padding: clamp(18px, 3vw, 28px); }
.talk h3 { font-size: 1.08rem; margin: 16px 0 6px; }
.talk ul { margin: 0; padding-left: 1.3em; }
.talk li { margin-bottom: 0.35em; }
.log-wrap { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.log th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid var(--navy); padding: 6px 10px 6px 0; white-space: nowrap; }
.log td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.log td:first-child { white-space: nowrap; color: var(--soft); }

/* The one-pager: laid out in physical units so the screen matches the paper */
.flyer { background: #fff; color: #111; border: 1.5px solid var(--navy); margin-top: 28px; padding: 0.55in 0.6in; max-width: 8.5in; font-size: 13pt; line-height: 1.4; }
.flyer [contenteditable]:hover { background: #fdf4cd; }
.flyer [contenteditable]:focus { outline: 2px solid var(--yellow); background: #fffbe6; }
.flyer-head { font-family: var(--sans); font-weight: 700; font-size: clamp(30pt, 7vw, 46pt); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 0.18in; }
.flyer-invite { font-size: 15pt; margin: 0 0 0.12in; }
.flyer-tr { font-size: 12pt; margin: 0 0 0.08in; padding-left: 0.14in; border-left: 4px solid #111; }
.flyer-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3in; margin: 0.22in 0; align-items: stretch; }
.flyer-draw { border: 2px dashed #999; min-height: 1.7in; display: grid; place-items: center; text-align: center; color: #888; font-size: 10pt; padding: 0.1in; }
.flyer-details { list-style: none; margin: 0; padding: 0.16in 0.2in; background: #111; color: #fff; font-weight: 600; font-size: 14pt; display: grid; align-content: center; gap: 0.08in; }
.flyer-details [contenteditable]:hover, .flyer-details [contenteditable]:focus { background: #333; }
.flyer-ask .banner { font-size: 10pt; background: #111; color: #fff; }
.flyer-q { margin-top: 0.16in; }
.flyer-q p { font-weight: 700; margin: 0 0 0.06in; }
.flyer-opts { display: flex; flex-wrap: wrap; gap: 0.06in 0.3in; }
.flyer-opts span { display: inline-flex; align-items: center; gap: 0.08in; }
.flyer-opts i { width: 0.17in; height: 0.17in; border: 1.5px solid #111; flex: none; }
.flyer-line { border-bottom: 1.5px solid #111; height: 0.32in; }
.flyer-foot { margin-top: 0.26in; padding-top: 0.14in; border-top: 2px dashed #999; font-size: 11pt; }
.flyer-foot p { margin: 0 0 0.06in; }
.flyer-blank { display: inline-block; min-width: 2.6in; border-bottom: 1.5px solid #111; }

.wall { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 56px) 80px; }
.wall-form { background: var(--green); color: var(--cream); padding: clamp(16px, 3vw, 24px); margin-top: 24px; }
.wall-form label { color: var(--cream); }
.wall-form input, .wall-form textarea { border-color: var(--cream); color: var(--navy); }
.post { background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; padding: 16px 18px; margin-top: 18px; }
.post .from { font-size: 0.86rem; color: var(--soft); margin-bottom: 4px; }
.post .from strong { color: var(--navy); }
.post .q { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 0 0 10px; overflow-wrap: anywhere; }
.reply { background: var(--blue-wash); border-left: 4px solid var(--blue); padding: 10px 14px; margin-top: 8px; overflow-wrap: anywhere; }
.reply p { margin: 0; }
.reply-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.reply-form textarea { flex: 1 1 260px; margin: 0; min-height: 48px; }
.sample-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--line); color: var(--navy); padding: 1px 8px; border-radius: 999px; margin-left: 6px; }

@media (max-width: 900px) {
  .flyer { padding: 20px 16px; font-size: 1rem; margin-left: -4px; margin-right: -4px; }
  .flyer-mid { grid-template-columns: 1fr; gap: 14px; }
  .flyer-draw { min-height: 110px; }
  .flyer-invite { font-size: 1.1rem; }
  .flyer-details { font-size: 1.05rem; }
}

@page { margin: 0.5in; }
@media print {
  /* Fill the sheet: a handout is read from a few feet away */
  .flyer { border: 0; margin: 0; padding: 0; max-width: none; font-size: 16pt; }
  .flyer-head { font-size: 54pt; }
  .flyer-invite { font-size: 19pt; }
  .flyer-tr { font-size: 14pt; }
  .flyer-mid { grid-template-columns: 1fr 1fr; margin: 0.3in 0; }
  .flyer-draw { min-height: 2.4in; }
  .flyer-details { font-size: 18pt; }
  .flyer-q { margin-top: 0.24in; }
  .flyer-opts i { width: 0.2in; height: 0.2in; }
  .flyer-line { height: 0.45in; }
  .flyer-foot { margin-top: 0.35in; font-size: 13pt; }
  .flyer [contenteditable] { background: none !important; outline: none !important; }
  .flyer-details, .flyer-ask .banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .talks { background: none; padding: 0; }
  .log { font-size: 9.5pt; }
}

/* ---------- The experiment label, and the verbatim workbook ---------- */

.exp { height: var(--exp); background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.exp .short { display: none; }
@media (max-width: 700px) { .exp .full { display: none; } .exp .short { display: inline; } }

.part { margin-top: 38px; }
.part-head { margin: 0 0 8px; font-size: 1rem; line-height: 1.9; }
.part-hint { display: block; font-weight: 400; color: var(--soft); font-size: 0.95rem; margin: 0 0 4px; }
.part .field { margin-top: 16px; }
.part .field textarea { min-height: 78px; }
.notes { min-height: 120px; }

.passage { background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; padding: 16px 18px 14px; margin-top: 12px; }
.passage.kept { border-width: 2.5px; background: var(--blue-wash); }
.passage blockquote { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; quotes: "\201C" "\201D"; overflow-wrap: anywhere; }
.passage blockquote::before { content: open-quote; }
.passage blockquote::after { content: close-quote; }
.passage .source { margin-top: 8px; font-size: 0.88rem; }
.passage .source span { color: var(--soft); }
.ai-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.92rem; color: var(--soft); }
.for-you { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.5; }
.for-you .ai-tag { display: table; margin: 0 0 6px; }
.from-toolkit { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin: 0 0 4px; }
.passage:has(.for-you) blockquote { font-size: 1rem; border-left: 3px solid var(--blue); padding-left: 12px; }
.ai-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--lilac, #D0C4D4); color: var(--navy); padding: 1px 7px; border-radius: 3px; margin-right: 4px; vertical-align: 1px; }
.keep { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 500; font-size: 0.95rem; min-height: 32px; cursor: pointer; }
.keep input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }

.help { display: block; margin-top: 4px; font-weight: 400; font-size: 0.9rem; color: var(--soft); }
.help a { color: var(--navy); text-underline-offset: 3px; }
details.consider { margin-top: 28px; border: 1.5px solid var(--line, #d9d4c7); border-radius: 8px; padding: 0 18px; background: var(--white); }
details.consider > summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy); }
details.consider[open] { padding-bottom: 18px; }
details.consider[open] > summary { border-bottom: 1px solid var(--line, #d9d4c7); margin-bottom: 14px; }

.provenance { margin-top: 18px; padding: 12px 16px; background: var(--blue-wash); border-left: 4px solid var(--blue); font-size: 0.95rem; max-width: 62ch; }
.plan-sub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); margin: 22px 0 8px; }
.qa { margin-bottom: 14px; }
.qa .q { margin: 0 0 2px; font-size: 0.92rem; color: var(--soft); }
.verbatim { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.verbatim-list { margin: 0; padding-left: 1.3em; }
.verbatim-list li { margin-bottom: 0.35em; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-panel .passage { padding: 12px 14px; }
.ask-panel .passage blockquote { font-size: 1rem; }

@media print {
  .exp { display: none; }
  .passage { border: 0; border-left: 2px solid #999; border-radius: 0; padding: 0 0 0 12px; break-inside: avoid; }
  .passage .source a::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; color: #444; }
  .provenance { background: none; border-left: 2px solid #999; }
  .plan-sub { color: #000; }
}

/* ---------- Three steps per section ---------- */

.num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--cream); font: 700 0.95rem/1 var(--sans); }
.step-head { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.part.later { opacity: 0.5; }
.part.later .num { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.part-hint.sub { margin-top: 20px; }
.upload h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 8px; }
.upload p { margin: 0 0 10px; }
.upload .row { margin-top: 14px; }
.upload .hint { margin-top: 12px; }
.pick { cursor: pointer; position: relative; display: inline-flex; align-items: center; }
.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pick:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.found { margin: 0 0 10px; padding-left: 1.2em; }
.found span { color: var(--soft); font-size: 0.9rem; }
.plan-facts { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 10px 0 0; font-size: 1.02rem; }
.plan-facts small { display: block; color: var(--soft); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.plan-part { margin-top: 40px; }
.plan-part > h2 { font-size: 1.7rem; padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 14px; }
.plan-part .plan-section { margin-top: 28px; }
.plan-part .plan-section > h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 190px 1fr; gap: 6px 22px; padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.timeline .when { font-weight: 700; color: var(--navy); line-height: 1.35; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { margin-bottom: 7px; line-height: 1.45; overflow-wrap: anywhere; }
.todo label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; cursor: pointer; }
.todo input { flex: none; width: 18px; height: 18px; margin: 0.2em 0 0; accent-color: var(--green); cursor: pointer; }
.todo li.done span { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--sage); }
.todo li.pop input { animation: tick 0.35s ease-out; }
@keyframes tick { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.timeline > li.complete .when::after { content: "✓ Done"; display: block; margin-top: 4px; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; font-size: 0.9rem; color: var(--soft); min-height: 1.6em; }
.tally .bar { width: 120px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tally .bar i { display: block; height: 100%; background: var(--green); transition: width 0.3s ease; }
.tally .cheer { color: var(--green); animation: cheer 0.4s ease-out; }
@keyframes cheer { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .todo li.pop input, .tally .cheer { animation: none; } .tally .bar i { transition: none; } }
@media print { .tally { display: none; } .todo input { print-color-adjust: exact; -webkit-print-color-adjust: exact; } .todo li.done span { color: #000; } }
.todo .from { color: var(--soft); font-size: 0.86rem; white-space: nowrap; }
.made { margin: 12px 0 0; font-size: 0.88rem; color: var(--soft); }
.plan-part input[type=text] { font-weight: 700; }
@media (max-width: 700px) { .timeline > li { grid-template-columns: 1fr; } }
@media print {
  .plan .plan-part { margin-top: 20px; }
  .plan .plan-part > h2 { font-size: 15pt; margin-bottom: 6px; padding-bottom: 4px; break-after: avoid; }
  .plan h1 { font-size: 22pt; margin: 0; }
  .timeline > li { grid-template-columns: 150px 1fr; padding: 6px 0; }
  .todo li { margin-bottom: 3px; font-size: 10.5pt; }
  .timeline .when { font-size: 10.5pt; }
  .plan-part.appendix { break-before: page; }
}
.row.next { margin-top: 34px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.fn-mark { text-decoration: none; font-weight: 700; padding: 0 2px; }
.footnote { margin: 26px 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--soft); }
.part-hint strong { color: var(--navy); }
.three { list-style: none; margin: 26px 0 18px; padding: 0; display: grid; gap: 12px; }
.three li { display: flex; gap: 12px; align-items: flex-start; }
.three .num { margin-top: 1px; }
