.passage-study, .guide-study {
  color: #eeede8;
  max-inline-size: 49rem;
  font-size: 1rem;
  line-height: 1.48;
  border-block: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  padding-block: clamp(1rem, 4vw, 2.3rem);
  min-width: 0;
}
.passage-study h3, .guide-study h2 { font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; margin: 0 0 .8em; }
.passage-study p, .guide-study p { margin-block: .65em; max-width: 66ch; }
.read-mode .passage-study { color: #191818; }
.study-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .8rem; }
.passage-study button, .guide-reader button {
  padding: .55rem .85rem; min-height: 44px; background: transparent; color: inherit; font: inherit;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent); cursor: pointer;
}
.passage-study button[aria-pressed="true"], .guide-reader button[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 -2px #e45351; }
.passage-study button:focus-visible, .guide-reader :is(button, a, textarea, select):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.guide-reader button:disabled { opacity: .55; cursor: default; }
.study-note { border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); padding-top: .8rem; margin-top: 1rem; }
.study-note a { margin-inline-start: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.study-answer { display: grid; gap: .3rem; margin-block: .65rem; font-size: .9rem; }
.study-answer textarea, .guide-reader select, .guide-reader textarea {
  background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); font: inherit; padding: .6rem; resize: vertical;
}
.study-plate { padding-block: .8rem; }
.study-result { min-block-size: 1.6em; }
.study-caption { font-size: .83em; }
.study-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-block: 1rem; }
.study-frame, .study-room { margin: 0; }
.study-frame svg, .study-room svg { display: block; width: 100%; border-block: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.study-frame figcaption, .study-room figcaption { margin-block: .4rem; font-size: .83em; }
.study-room { max-width: 29rem; }
.study-outline, .study-line, .study-accent { fill: none; stroke: currentColor; stroke-width: 1.2; }
.study-line { stroke-opacity: .34; }
.study-accent { stroke: #e45351; stroke-width: 2; }
.study-light { fill: #e45351; fill-opacity: .29; }
.study-room[data-detail="Chair"] :is(.room-door, .room-pane),
.study-room[data-detail="Door"] :is(.room-chair, .room-pane),
.study-room[data-detail="Pane"] :is(.room-chair, .room-door) { opacity: .27; }
.study-draft { font-size: clamp(1.1rem, 3.2vw, 1.65rem); transition: transform .35s ease, opacity .35s ease; }
.study-displaced { transform: translateY(.25rem); opacity: .68; }
.study-frame, .study-role { animation: study-settle .38s both; }
@keyframes study-settle { from { opacity: .45; transform: translateY(7px); } }
.study-poster { display: grid; gap: .2rem; color: #191818; background: #e7dec9; padding: clamp(.75rem,4vw,1.6rem); max-width: 21rem; border-left: 4px solid #e45351; }
.study-poster strong { font-size: clamp(1.4rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.055em; }
.study-role { display: grid; grid-template-columns: minmax(7rem,1fr) 2fr; gap: .9rem; padding-block: .45rem; border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent); }
.study-sequence { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; list-style-position: inside; padding: 0; }
.study-sequence li { border-top: 1px solid currentColor; padding-top: .4rem; }
@media (max-width: 400px) { .study-note a { display: block; margin: .55rem 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .study-frame, .study-role, .guide-offer { animation: none !important; }
  .study-draft, .guide-offer, .guide-expectation { transition: none !important; }
  .study-displaced { transform: none; }
}
.read-mode :is(.study-frame, .study-role) { animation: none; }
.read-mode .study-draft { transition: none; transform: none; }
@font-face { font-family: "KIP Archivo"; src: url("/fonts/archivo-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "KIP Archivo"; src: url("/fonts/archivo-black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
.guide-reader {
  --guide-paper: #eeede8;
  --guide-ink: #0c0c0c;
  background: var(--guide-ink); color: var(--guide-paper); color-scheme: dark; margin: 0;
  font: 400 1rem/1.52 "KIP Archivo", Arial, sans-serif;
}
.guide-reader *, .guide-reader *::before, .guide-reader *::after { box-sizing: border-box; }
.guide-reader [hidden] { display: none !important; }
.guide-reader a { color: inherit; text-underline-offset: .2em; }
.guide-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .65rem clamp(.65rem, 5vw, 4rem); background: var(--guide-ink); border-bottom: 1px solid #7777;
}
.guide-bar a { text-decoration: none; }
.guide-bar a span { color: #e45351; }
.guide-bar nav { display: flex; justify-content: end; gap: clamp(.5rem, 2vw, 1.3rem); align-items: center; }
.guide-bar nav a { font-size: .86em; }
.guide-bar button { min-height: 38px; font-size: .86em; padding: .25rem .5rem; }
.guide-reader main { width: min(74rem, 100%); margin-inline: auto; padding: 0 clamp(1rem, 7vw, 5rem) 4rem; }
.guide-hero {
  position: relative; display: grid; align-content: center; min-height: clamp(24rem, 70svh, 47rem); max-width: 52rem;
  padding-block: 2rem; border-left: 1px solid #e45351; padding-left: clamp(.8rem, 3vw, 2rem);
}
.guide-hero h1 { font-size: clamp(3rem, 9vw, 8rem); line-height: .94; letter-spacing: -.075em; font-weight: 400; margin: .16em 0 .28em; }
.guide-hero h1 em { font-style: normal; color: #e45351; }
.guide-hero p { max-width: 43ch; }
.guide-credit { font-size: .86rem; }
.guide-reader section { scroll-margin-top: 4.3rem; }
.guide-metrics, .guide-offers, .guide-pair { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem; padding: 0; }
.guide-pair { grid-template-columns: repeat(2, minmax(0,1fr)); }
.guide-metrics div, .guide-offer, .guide-pair div { border-top: 1px solid currentColor; padding-block: .6rem; min-width: 0; }
.guide-metrics dd { margin: 0; font-size: clamp(1.1rem, 3vw, 2rem); }
.guide-metrics dt, .guide-offer h3, .guide-pair h3 { font-size: .88rem; font-weight: 400; margin: 0 0 .25rem; }
.guide-offer s { opacity: .67; }
.guide-offer.is-withdrawn { animation: guide-withdraw .42s both; }
@keyframes guide-withdraw { from { transform: translateY(-9px); opacity: .4; } }
.guide-maturity { display: block; margin-block: 1rem; font-size: clamp(1.1rem, 3vw, 1.5rem); }
.guide-expectation { height: .5rem; background: #a69e94; width: var(--expected); transition: width .45s ease; }
.guide-actual { height: .25rem; width: 66.667%; background: #e45351; margin-block: .35rem; }
.guide-reader details, .guide-reader article { border-top: 1px solid #7778; padding-block: .8rem; }
.guide-reader textarea { display: block; width: 100%; min-height: 5rem; }
.guide-reader .guide-paper { color: #1c1b1a; background: #f2ede4; }
.guide-reader.guide-paper { --guide-paper: #1c1b1a; --guide-ink: #f2ede4; color-scheme: light; }
.guide-paper .guide-study { color: #1c1b1a; }
.guide-paper .guide-offer { animation: none; }
.guide-print { display: none; }
@media (max-width: 525px) {
  .guide-offers { grid-template-columns: 1fr; gap: 0; }
  .guide-offer h3 { font-weight: bold; }
  .guide-metrics dt { font-size: .73rem; }
}
@media print {
  .guide-reader { color: #000; background: #fff; }
  .guide-reader :is(.guide-bar, main) { display: none; }
  .guide-print { display: block; margin: 1rem; white-space: pre-wrap; font: 11pt/1.4 Arial, sans-serif; }
}
.passage-study button:disabled { opacity: .55; cursor: default; }
.study-saved { margin-top: .75rem; }
.study-saved p { white-space: pre-wrap; }
.flow-content:has(> .study-replaces-visual) > .scene-visual { display: none; }
.passage-study[id] { scroll-margin-block-start: 8rem; }
