.journal-downloads { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.journal-downloads[hidden] { display:none; }
.journal-downloads button { font:600 13px/1.4 Geist,Arial,sans-serif; padding:12px 18px; border:1px solid var(--teal); color:var(--teal); background:#fff; cursor:pointer; }
.journal-downloads button:hover { background:var(--brand-light); }
.journal-question { margin:32px 0; }
.journal-question .journal-question__prompt { margin:0 0 12px; }
.journal-answer textarea { display:block; width:100%; min-height:80px; resize:vertical; padding:14px; border:1px solid var(--brand-light); background:var(--soft); color:var(--ink); font:inherit; line-height:1.6; }
.journal-answer textarea:focus { outline:2px solid #16545a; outline-offset:2px; }
.journal-answer__print { display:none; white-space:pre-wrap; overflow-wrap:anywhere; border-bottom:1px solid var(--brand-light); padding:10px 0; }
.journal-callout { margin:28px 0; padding:20px 24px; background:var(--soft); border-left:4px solid #16545a; }
.journal-callout h3 { margin:0 0 10px; }
.journal-callout p { margin:0; white-space:pre-wrap; }
.journal-table-wrap { overflow-x:auto; margin:28px 0; }
.journal-table { width:100%; border-collapse:collapse; table-layout:auto; font-size:14px; }
.journal-table caption { text-align:left; font-weight:600; margin-bottom:12px; }
.journal-table th,.journal-table td { border:1px solid var(--brand-light); padding:12px; vertical-align:top; text-align:left; overflow-wrap:break-word; word-break:normal; white-space:pre-wrap; }
.journal-table th { background:var(--brand-light); }
.journal-table textarea { min-height:76px; }
.journal-page-break { margin:36px 0; border-top:1px solid var(--brand-light); }
.journal-print-cover { display:none; }
@media(max-width:540px) { .journal-table th,.journal-table td { padding:8px; } .journal-table { font-size:12px; } }
@media print {
  @page { size:A4; margin:18mm; }
  body { color:#111; background:white; font-size:11pt; }
  .site-header,.site-footer,[data-include],.journal-downloads { display:none !important; }
  body > footer { display:none !important; }
  .journal-print-cover { display:flex; flex-direction:column; align-items:center; justify-content:center; box-sizing:border-box; min-height:250mm; padding:12mm 6mm; text-align:center; break-after:page; page-break-after:always; }
  .journal-print-cover__school { font-size:12pt; letter-spacing:.08em; margin:0 0 8mm; }
  .journal-print-cover img { width:70mm; height:70mm; object-fit:contain; }
  .journal-print-cover h1 { max-width:150mm; font-size:28pt; line-height:1.2; margin:12mm 0 6mm; overflow-wrap:anywhere; }
  .journal-print-cover__author { font-size:13pt; margin:0 0 4mm; }
  .journal-print-cover__meta { font-size:10pt; margin:0; }
  .journal-print-cover__website { margin:14mm 0 0; font-size:10pt; }
  .journal-entry-hero,.journal-toolbar,.journal-related,.journal-end-nav { display:none !important; }
  .journal-entry { padding:0; }
  .journal-entry__content { width:100%; max-width:none; padding-inline:0; }
  .journal-entry { --divider-before:16px; --divider-after:20px; }
  .journal-rich-text { font-size:11pt; }
  .journal-rich-text h2,.journal-rich-text h3 { break-after:avoid; }
  .journal-answer textarea { display:none; }
  .journal-answer__print { display:block; }
  .journal-table-wrap { overflow:visible; }
  .journal-table { font-size:10pt; }
  .journal-table thead { display:table-header-group; }
  .journal-table tr { break-inside:avoid; }
  .journal-page-break { break-before:page; border:0; margin:0; }
  .journal-author { break-inside:avoid; }
}

.journal-inline-image { margin: 2rem 0; break-inside: avoid; }
.journal-inline-image img { display: block; width: 100%; height: auto; }
.journal-inline-image figcaption { margin-top: .65rem; color: var(--muted); font-size: .875rem; line-height: 1.6; text-align: center; }
@media print {
  .journal-inline-image img { max-height: 190mm; object-fit: contain; }
}

.journal-video { margin: 2rem 0; }
.journal-video iframe { display:block; width:100%; aspect-ratio:16/9; border:0; margin-bottom:.5rem; }
.journal-video a { text-decoration:underline; }
@media print { .journal-video iframe { display:none; } .journal-video a::after { content:' (' attr(href) ')'; overflow-wrap:anywhere; } }

.journal-video__mobile-open, .journal-video__expand { display:none; }
@media screen and (max-width:640px) {
  .journal-video--drive { max-width:100%; min-width:0; }
  .journal-video__expand { display:inline-flex; align-items:center; min-height:44px; margin-right:1em; padding:0 14px; color:var(--teal); border:1px solid currentColor; background:var(--paper); font:inherit; cursor:pointer; }
  .journal-video--drive > a:not(.journal-video__mobile-open) { display:none; }
  .journal-video--drive .journal-video__mobile-open { display:inline-flex; min-height:44px; align-items:center; }
}

@media screen {
  .journal-video.journal-video--expanded { position:fixed; inset:0; z-index:10000; margin:0; max-width:none; background:#101010; display:flex; flex-direction:column; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .journal-video--expanded iframe { flex:1; min-height:0; aspect-ratio:auto; margin:0; }
  .journal-video--expanded .journal-video__expand { display:block; align-self:center; min-height:44px; margin:8px; padding-inline:16px; cursor:pointer; }
  .journal-video.journal-video--expanded > a, .journal-video--expanded figcaption { display:none; }
  body:has(.journal-video--expanded) { overflow:hidden; }
}

.journal-contents { margin:2rem 0; padding:1.25rem; background:var(--soft); }
.journal-contents:not([hidden]) ~ .journal-rich-text, .worksheet-saving + .journal-rich-text { margin-top:var(--divider-before); border-top:1px solid var(--brand-light); padding-top:var(--divider-after); }
.journal-contents:not([hidden]) ~ .journal-rich-text > :first-child, .worksheet-saving + .journal-rich-text > :first-child { margin-top:0; }
.journal-contents h2 { margin:0 0 .5rem; }
.journal-contents ol { margin:0; padding-left:1.5rem; }
.journal-contents a { text-decoration:underline; }
.journal-anchor { scroll-margin-top:7rem; }
.journal-rich-text > * + section.journal-anchor { margin-block-start:clamp(48px, 6vw, 72px); }
.journal-rich-text section.journal-anchor > .eyebrow { margin:0 0 8px; break-after:avoid; }
.journal-rich-text section.journal-anchor > .eyebrow + h2 { margin-top:0; }

.worksheet-saving { margin:1.5rem 0; padding:1rem; background:var(--soft); }
.worksheet-saving p { margin:0; }
.worksheet-saving label { display:flex; gap:.6em; align-items:center; margin:0 0 .6rem; cursor:pointer; }
.worksheet-saving [role=status]:not(:empty) { margin-top:.5rem; }
.journal-answer fieldset { border:0; padding:0; margin:0; }
.journal-answer fieldset label { display:flex; align-items:baseline; gap:.6rem; margin:.5rem 0; }
.journal-answer input:not([type=checkbox]):not([type=radio]),.journal-answer select { max-width:100%; padding:.5rem; font:inherit; }
.journal-table .journal-inline-image { margin:.5rem 0; }
@media print { .worksheet-saving,.journal-answer input,.journal-answer select,.journal-answer fieldset {display:none!important;} }

/* Bibliography stays in the article body and in printed copies. */
.journal-rich-text .journal-sources { margin-top:3rem; padding-top:2rem; border-top:1px solid var(--brand-light); }
.journal-sources > h2 { margin-top:0; break-after:avoid; }
.journal-sources ul { list-style:none; padding-left:0; }
.journal-sources li { padding-left:1.5em; text-indent:-1.5em; margin-bottom:1rem; overflow-wrap:anywhere; }
