/* Shared terminal enhancements; original page palettes and typography remain in place. */
.type-line { opacity: 1; white-space: normal; }
.type-line.active::after { content: none; }
html { scroll-behavior: smooth; }
a, summary { text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
a:hover { text-decoration: underline; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: var(--paper); padding: .5rem; }
.skip-link:focus { top: .5rem; }
.terminal-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px dashed rgba(15,16,33,.12); margin-bottom: 2rem; }
.terminal-nav a, .program-output a { color: var(--accent); font-size: .8rem; }
.terminal-nav a { text-decoration: none; }
.terminal-nav a::before { content: '> '; opacity: .45; }
.terminal-nav a[aria-current] { text-decoration: underline; text-decoration-style: dotted; }
.terminal-nav a[aria-current]::before { opacity: 1; }
.session-section { scroll-margin-top: 1.5rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px dashed rgba(15,16,33,.12); }
.session-section .indent { padding-top: 1.25rem; }
.command { color: var(--ink-muted); font-family: 'Courier Prime', 'Courier New', monospace; font-size: .85rem; overflow-wrap: anywhere; }
.command .prompt-path { display: inline-block; color: var(--code-tag, var(--accent)); }
.command::after { content: ' ▍'; color: var(--accent); }
.command.is-current::after { animation: cursor-blink 1s step-end 5; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.section-note { font-size: .85rem; color: var(--ink-muted); line-height: 1.8; margin-bottom: 1.5rem; max-width: 750px; }
.file-label { color: var(--ink-muted); font-size: .75rem; font-weight: 400; margin: 1.5rem 0 .75rem; }
.program-output { margin-top: 1rem; padding: .4rem 0; }
.event-info { min-width: 0; overflow-wrap: anywhere; }
.status-bar { opacity: 1; }
.status-bar .blink-dot { animation-iteration-count: 3; }
@media (max-width: 480px) {
 .editor-body { padding: 1.25rem; }
 .wordmark { font-size: clamp(1.7rem, 8vw, 2.6rem); overflow-wrap: anywhere; }
 .terminal-nav { gap: .75rem 1rem; }
 .event-row { gap: .6rem; }
 .event-row::before { display: none; }
 .event-tag { margin-left: auto; }
 .window-dots { margin-right: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}
.command::after { visibility: hidden; }
.command.is-current::after { visibility: visible; }

/* A small terminal signature, with a plain-language explanation on request. */
.status-bar { position: relative; align-items: center; }
.terminal-about { position: fixed; z-index: 20; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
.terminal-about summary { list-style: none; cursor: pointer; color: var(--accent); font-size: 1rem; font-weight: 700; display: grid; place-items: center; min-width: 44px; min-height: 44px; background: var(--paper); box-shadow: 0 3px 12px rgba(15,16,33,.08); padding: .25rem .6rem; border: 1px solid rgba(62,65,176,.2); border-radius: 4px; }
.terminal-about summary::-webkit-details-marker { display: none; }
.terminal-about summary:hover, .terminal-about[open] summary { background: rgba(62,65,176,.06); }
.terminal-about-panel { position: absolute; z-index: 5; right: 0; bottom: calc(100% + .75rem); width: min(320px, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid rgba(62,65,176,.2); border-radius: 6px; background: var(--paper); box-shadow: 0 8px 24px rgba(15,16,33,.08); }
.terminal-about-panel h2 { color: var(--accent); font-size: .85rem; margin-bottom: .75rem; }
.terminal-about-panel p { font-size: .8rem; color: var(--ink-muted); line-height: 1.7; }
.terminal-about-panel p + p { margin-top: .75rem; }
/* Documentary material sits inside the original terminal shell. */
.eyebrow { color: var(--ink-muted); font-size: .7rem; letter-spacing: .04em; margin-bottom: 1rem; }
.community-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: center; }
.community-story h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 500; color: var(--accent); line-height: 1.4; letter-spacing: -.035em; margin-bottom: 1rem; }
.community-story > p, .field-note > p:not(.eyebrow) { color: var(--ink-muted); font-size: .875rem; line-height: 1.8; margin-bottom: 1.25rem; }
.story-link { color: var(--accent); font-size: .8rem; text-decoration-thickness: 1px; }
.community-story .story-credit { font-size: .7rem; margin-top: 1.25rem; margin-bottom: 0; }
.community-photo { margin: 0; min-width: 0; }
.community-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.community-photo figcaption { color: var(--ink-muted); font-size: .65rem; padding-top: .6rem; line-height: 1.6; }
.community-documentation { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; margin-top: 2rem; }
.field-note { margin: 0; padding: 1rem 0 1rem 1.5rem; border-left: 2px solid var(--gold); }
.field-note > p:not(.eyebrow) { font-size: 1rem; }
.footer-support { font-size: .7rem; }
.typewriter-title, .typewriter-tagline { position: relative; }
.typewriter-title.is-typing::after, .typewriter-tagline.is-typing::after { content: '▍'; position: absolute; color: var(--accent); font-style: normal; animation: cursor-blink .7s step-end 2; }
.mission-page .question-index { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin: 1.5rem 0 2.5rem; padding: 1.25rem 0; border-block: 1px dashed rgba(15,16,33,.12); }
.question-index a { color: var(--accent); font-size: .8rem; }
.mission-page .editor-body > .indent { counter-reset: question; }
.mission-question { counter-increment: question; margin-top: 2rem; padding: 1.5rem; border: 1px solid rgba(62,65,176,.12); border-radius: 4px; }
.mission-question > .syntax { display: none; }
.mission-question > .indent { border: 0; padding: 0; }
.mission-question h2 { scroll-margin-top: 2rem; }
.mission-question h2::before { content: '0' counter(question) ' / '; font-size: .75rem; color: var(--ink-muted); display: block; margin-bottom: .75rem; }
@media (max-width: 768px) {
 .community-feature, .community-documentation { grid-template-columns: 1fr; gap: 1.25rem; }
 .community-story { order: 1; }
 .community-feature > .community-photo { order: 2; }
 .community-documentation { margin-top: 1.5rem; }
 .field-note { padding-left: 1rem; }
 .mission-page .question-index { grid-template-columns: 1fr; }
 .mission-question { padding: 1rem; }
}

/* Photo opening: text sits directly on the photograph, with no caption panel. */
.photo-hero { position: relative; isolation: isolate; min-height: 460px; display: flex; align-items: flex-end; border-radius: 8px; margin: 1rem 0 1.5rem; overflow: hidden; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; z-index: -2; }
.photo-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,16,33,.3) 0%, rgba(15,16,33,.62) 45%, rgba(15,16,33,.62) 65%, rgba(15,16,33,.7) 100%); }
.photo-hero-text { width: 100%; padding: 2rem; background: none; border: none; box-shadow: none; }
.photo-hero .wordmark { color: var(--paper); font-size: clamp(2.4rem, 5.3vw, 4rem); text-align: center; line-height: 1.2; margin-bottom: .75rem; }
.photo-hero .tagline { color: var(--paper); text-align: center; font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin-bottom: 0; }
.photo-hero .tagline::before { content: none; }
.hero-intro { text-align: center; max-width: 760px; margin: 0 auto 1.25rem; font-weight: 400; }
#about .btns { justify-content: center; margin-bottom: 0; }
.home-page .community-feature { display: block; }
.home-page .community-story { max-width: 760px; }
@media (max-width: 768px) {
 .photo-hero { min-height: 410px; }
 .photo-hero-text { padding: 1.5rem; }
 .photo-hero .wordmark { font-size: clamp(2rem, 7vw, 3rem); }
}
@media (max-width: 480px) {
 .photo-hero { min-height: 390px; }
 .photo-hero-text { padding: 1rem; }
 .photo-hero .wordmark { font-size: clamp(1.7rem, 7.2vw, 2.1rem); }
 .photo-hero .tagline { font-size: 1.05rem; line-height: 1.6; }
 .photo-hero > img { object-position: 52% center; }
}

.typewriter-word { display: inline-block; }
.typewriter-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Bring the photograph into view sooner and keep the field notes compact. */
.home-page { padding-top: 1rem; }
.home-page .editor-body { padding-top: 1.5rem; }
.home-page .terminal-nav { padding-bottom: .75rem; margin-bottom: .75rem; }
.home-page .photo-hero { margin-top: .5rem; }
.field-notes-section .community-documentation { grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); align-items: stretch; margin-top: 0; gap: 1.5rem; }
.field-notes-section .community-photo { position: relative; }
.field-notes-section .community-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.field-notes-section .field-note { padding-block: .25rem; }
.field-notes-section .eyebrow { font-weight: 400; }
.field-notes-section blockquote { margin: 0 0 1rem; color: var(--ink-muted); font-size: .95rem; line-height: 1.8; }
@media (max-width: 600px) {
 .field-notes-section .community-documentation { grid-template-columns: 1fr; }
 .field-notes-section .community-photo img { position: static; height: 180px; object-position: center 40%; }
}
@media (max-width: 480px) {
 .home-page .terminal-nav { gap: .5rem .75rem; }
 .home-page .terminal-nav a { font-size: .7rem; }
 .home-page #about > .command { font-size: .75rem; }
}

.home-page #about > .command { padding-block: .75rem; margin: 0; }

/* Stronger event hierarchy and explicit links to published reflections. */
.home-page .events-label { font-style: normal; }
#events .file-label { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-top: 2rem; }
#events .event-row { padding-block: 1rem; }
#events .event-row::before { font-size: .8rem; color: var(--ink-muted); opacity: 1; width: 28px; }
#events .event-month { font-size: .75rem; font-weight: 500; color: var(--ink); }
#events .event-day { font-size: 1.85rem; }
#events .event-name a { text-decoration: none; }
#events .event-name a:hover { color: var(--accent); text-decoration: none; }
#events .event-row:has(a):hover { background: rgba(62,65,176,.025); }
@media (max-width: 480px) {
 #events .event-date { min-width: 48px; max-width: 90px; }
}

.event-arrow { display: inline-block; color: var(--accent); margin-left: .35rem; font-size: 1.4em; font-weight: 500; line-height: 1; vertical-align: -.05em; }
#events .event-name a:hover .event-arrow, #events .event-name a:focus-visible .event-arrow { transform: translateX(3px); }
.reflection-question { font-size: 1.2rem; line-height: 1.6; color: var(--accent); margin-bottom: 1.5rem; font-weight: 700; }
/* Give the terminal frame and its title a clearer presence. */
.editor-window { border: 2px solid rgba(15,16,33,.24); }
.window-title { font-weight: 700; color: var(--ink); }

.dcps-session-photo { margin-top: 2rem; }
