.story-shell { max-width: 1030px; width: calc(100% - 96px); margin: 0 auto; }
.journal .story-header { margin-top: 8px; margin-bottom: 22px; }
.journal .story-header h1 { font-size: clamp(29px, 4vw, 46px); line-height: 1.35; letter-spacing: -1.7px; margin-top: 14px; }
.journal .story-intro { max-width: 680px; margin-top: 16px; font-size: 15px; }
.journal-count { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.journal-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 25px; margin: 24px 0 16px; }
.journal-nav a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 0; min-height: 50px; border-bottom: 1px solid #a8b69f; font-size: 13px; font-weight: 600; }
.journal-nav a > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.journal-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 50px; padding: 45px 0 8px; scroll-margin-top: 20px; }
.journal-group-heading h2 { font-size: 23px; line-height: 1.5; letter-spacing: -.8px; margin: 12px 0; }
.journal-group-heading > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.9; word-break: keep-all; }
.journal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); min-width: 0; }
.journal-list li { border-bottom: 1px solid var(--line); }
.journal-entry { display: block; padding: 23px 0; }
.journal-entry:hover h3 { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.journal-entry-meta { font-size: 11px; color: var(--green); line-height: 1.8; }
.journal-entry h3 { font-size: 21px; font-weight: 650; line-height: 1.65; letter-spacing: -.65px; margin: 9px 0; word-break: keep-all; overflow-wrap: anywhere; }
.journal-entry > p { color: var(--muted); font-size: 13px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.journal-entry-tail { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); margin-top: 17px; }
.journal-entry-tail > span { color: var(--green); }
.journal-end { display: flex; justify-content: space-between; gap: 32px; margin-top: 50px; padding: 30px; border-block: 1px solid var(--line); background: #e9eddf; }
.journal-end h2 { margin: 13px 0; font-size: 24px; line-height: 1.6; letter-spacing: -.7px; }
.journal-end p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.9; word-break: keep-all; }
.journal-end-links { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.journal-end-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 850px) {
  .journal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-group { gap: 28px; }
}
@media (max-width: 580px) {
  .journal-group { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 35px; }
  .journal-nav { gap: 6px 18px; margin-top: 26px; }
  .journal-nav a { font-size: 12px; }
  .journal-entry h3 { font-size: 20px; }
  .journal-end { flex-direction: column; padding: 24px 20px; gap: 20px; }
}
.story-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 26px 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.story-breadcrumb a { padding-block: 8px; }
.story-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-header { max-width: 770px; margin: 18px 0 32px; }
.story-header h1 { font-size: clamp(32px, 4.8vw, 59px); line-height: 1.35; letter-spacing: -2.4px; margin-top: 19px; text-wrap: balance; }
.story-intro { max-width: 630px; margin-top: 23px; font-size: 17px; line-height: 1.9; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.story-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 12px; }
.story-byline img { border-radius: 50%; object-fit: cover; object-position: 50% 44%; }
.story-byline strong, .story-byline div span { display: block; line-height: 1.8; }
.story-byline div span { color: var(--muted); font-size: 11px; }
.story-byline time { padding-left: 15px; border-left: 1px solid var(--line); margin-left: 5px; color: var(--muted); }
.story-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; padding: 32px 40px 23px; margin: 0; background: linear-gradient(110deg, #e4ebdb, #eff0e6); border: 1px solid #d4ddca; border-radius: 8px; }
.story-comparison > div { min-width: 0; }
.story-comparison span:not(.comparison-arrow) { font-size: 12px; color: #53644b; }
.story-comparison code { display: block; font: 600 clamp(34px, 4.5vw, 58px)/1.4 "Consolas", monospace; color: var(--green); margin-block: 8px; letter-spacing: 2px; }
.story-comparison > div:last-of-type code { color: #96522a; }
.story-comparison small { font-size: 12px; line-height: 1.7; color: #53644b; }
.comparison-arrow { align-self: center; font-size: 27px; color: #7b8c6a; }
.story-comparison figcaption { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid #cfd9c3; font-size: 12px; color: #607152; line-height: 1.8; }
.verification-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 28px; border: 1px solid var(--line); background: #fff; }
.verification-lane { padding: 30px; min-width: 0; }
.verification-lane code { display: block; margin-top: 18px; font: 600 clamp(17px, 2.1vw, 26px)/1.5 Consolas, monospace; white-space: nowrap; }
.verification-lane code + code { margin-top: 8px; }
.verification-lane code span { padding: 2px 3px; background: #dfebd0; color: #365326; }
.verification-lane p { margin-top: 18px; font-size: 13px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.verification-lane--changed { background: #f5efe4; border-left: 1px solid var(--line); }
.verification-lane--changed code span { background: #f1dac1; color: #82491a; }
.verification-board figcaption { grid-column: 1 / -1; padding: 16px 30px; font-size: 12px; line-height: 1.8; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 580px) {
  .verification-board { grid-template-columns: minmax(0, 1fr); }
  .verification-lane { padding: 23px 20px; }
  .verification-lane code { font-size: clamp(17px, 5.1vw, 24px); }
  .verification-lane--changed { border-left: 0; border-top: 1px solid var(--line); }
  .verification-board figcaption { padding-inline: 20px; }
}
.story-layout { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 50px; margin-top: 55px; }
.story-toc { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.story-toc > span { font-weight: 600; margin-bottom: 12px; }
.story-toc a { padding-block: 12px; color: var(--muted); }
.story-toc a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.story-content { min-width: 0; }
.story-content section { scroll-margin-top: 20px; }
.story-content section + section { margin-top: 56px; padding-top: 37px; border-top: 1px solid var(--line); }
.story-section-number { font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #5b7350; }
.story-content h2 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.5; letter-spacing: -1px; font-weight: 650; margin: 13px 0 22px; word-break: keep-all; }
.story-content section > p:not(.story-section-number) { font-size: 16px; color: #4f5f53; line-height: 2; margin-top: 18px; word-break: keep-all; overflow-wrap: anywhere; }
.story-content p code { background: #e9ede3; border: 1px solid #dbe2d2; border-radius: 3px; padding: 1px 4px; font-size: .95em; }
.story-content p a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.story-flow { margin: 27px 0; padding-left: 25px; }
.story-flow li { padding: 12px 0 12px 10px; }
.story-flow li::marker { color: var(--green); font-weight: 600; font-size: 13px; }
.story-flow strong { display: block; font-size: 15px; font-weight: 600; }
.story-flow span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.story-callout { margin-block: 27px; padding: 20px 23px; border-left: 3px solid #8d9f69; background: #ecefe3; }
.story-callout strong { font-size: 15px; font-weight: 600; line-height: 1.8; }
.story-callout p { margin-top: 9px; font-size: 14px; line-height: 1.9; color: #536448; }
.story-next { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 27px; }
.story-next .button { margin: 0; }
.story-next > span { font-size: 12px; color: var(--muted); }
.story-end { margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); }
.story-end p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.story-end > a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 15px; color: var(--green); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.story-end > a + a { display: flex; width: fit-content; }
.note-summary { padding: 25px 30px; background: linear-gradient(105deg, #e9eddf, #f0f2e9); border-block: 1px solid #d9dfca; }
.note-summary ol { padding-left: 20px; margin: 14px 0; }
.note-summary li { padding: 5px 0 5px 7px; font-size: 15px; line-height: 1.8; word-break: keep-all; }
.note-summary > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.note-template .button { margin-top: 20px; }
.template-intro { max-width: 770px; border-top: 1px solid var(--line); padding-top: 22px; }
.template-intro p { font-size: 14px; color: var(--muted); line-height: 1.95; margin-bottom: 12px; word-break: keep-all; }
.template-intro strong { color: var(--green); font-weight: 600; }
.template-version { color: var(--muted); font-size: 12px; }
.template-jumps { display: flex; flex-direction: column; margin-block: 32px 45px; border-top: 1px solid var(--line); }
.template-jumps a { display: flex; gap: 16px; align-items: center; min-height: 55px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.template-jumps a > span { font-size: 12px; color: var(--green); }
.template-jumps a > span:last-child { margin-left: auto; }
.template-jumps a:hover { background: #edf0e5; }
.template-sheet { padding: 32px 0 42px; border-top: 1px solid var(--line); scroll-margin-top: 22px; }
.sheet-heading { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 20px; }
.sheet-number { font-size: 45px; font-weight: 500; color: #a9b49c; line-height: 1; }
.sheet-heading h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.5; margin: 12px 0; letter-spacing: -1px; word-break: keep-all; }
.sheet-heading p:not(.eyebrow) { max-width: 670px; font-size: 15px; line-height: 1.9; color: var(--muted); word-break: keep-all; }
.template-example { background: #edf0e5; border-left: 3px solid #9daa83; padding: 20px 24px; margin: 24px 0; }
.template-example strong { font-size: 13px; font-weight: 600; color: var(--green); }
.template-example p { font-size: 14px; color: var(--muted); line-height: 1.9; margin-top: 8px; word-break: keep-all; }
.template-actions { display: flex; gap: 12px 25px; flex-wrap: wrap; align-items: center; }
.template-actions .button { margin: 0; text-align: left; line-height: 1.8; }
.template-context { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.template-preview { margin-top: 22px; border: 1px solid var(--line); background: #fff; }
.template-preview summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; min-height: 52px; cursor: pointer; font-size: 14px; }
.template-preview summary::marker, .template-preview summary::-webkit-details-marker { display: none; }
.template-preview[open] summary { border-bottom: 1px solid var(--line); }
.template-preview[open] summary span { transform: rotate(45deg); }
.template-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 24px; font: 13px/1.9 var(--font); color: #4d5c50; }
.template-end { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 28px; }
.template-end h2 { font-size: 22px; line-height: 1.6; }
.template-end p { max-width: 700px; font-size: 15px; line-height: 1.9; color: var(--muted); margin-top: 14px; }
.template-end a { display: inline-flex; align-items: center; gap: 15px; min-height: 48px; margin-top: 15px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 580px) {
  .note-summary { padding: 22px 18px; }
  .sheet-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .sheet-number { font-size: 30px; }
  .template-preview pre { padding: 18px; }
  .template-example { padding: 18px; }
  .template-actions .button { width: 100%; justify-content: space-between; font-size: 13px; }
}
@media print {
  .site-header, .story-breadcrumb, .story-toc, .footer, .template-jumps, .template-actions { display: none; }
  .story-shell { width: 100%; max-width: none; }
  .story-layout { display: block; }
  body { background: white; }
  .template-preview { break-inside: auto; }
  .story-content h2, .sheet-heading { break-after: avoid; }
}
@media (max-width: 850px) {
  .story-shell { width: calc(100% - 40px); }
  .story-layout { grid-template-columns: 1fr; gap: 30px; margin-top: 35px; }
  .story-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .story-toc > span { width: 100%; margin-bottom: 0; }
}
@media (max-width: 580px) {
  .story-shell { width: calc(100% - 36px); }
  .story-breadcrumb { padding-block: 17px; gap: 8px; }
  .story-header { margin-top: 10px; }
  .story-header h1 { font-size: clamp(29px, 7.8vw, 42px); letter-spacing: -1.8px; }
  .story-intro { font-size: 15px; margin-top: 18px; }
  .story-comparison { padding: 22px 18px 18px; gap: 13px; }
  .story-comparison code { font-size: 34px; letter-spacing: 0; }
  .story-content section + section { margin-top: 40px; padding-top: 28px; }
  .story-content section > p:not(.story-section-number) { font-size: 15px; }
  .story-content h2 { font-size: 26px; }
  .story-content h2 br { display: none; }
  .story-byline { gap: 9px; }
  .story-byline time { padding-left: 11px; font-size: 11px; }
}
