/* School journal theme. Layout and account behaviour stay in the base files. */
#staff-security-panel { margin-block: 24px; }
#staff-security-panel form { max-width: 600px; margin-block: 24px; }
#mfa-secret, #mfa-recovery-codes { display: block; overflow-wrap: anywhere; white-space: pre-wrap; padding: 16px; background: #eff5f7; font-family: monospace; }
#security-monitor { margin-block: 24px; }
.security-event-list { margin-top: 20px; }
.security-event { border-top: 1px solid var(--line); padding: 15px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; overflow-wrap: anywhere; }
.security-event small { grid-column: 2; color: var(--muted); font-size: 11px; }
:root {
    --purple: #172f40;
    --muted: #687681;
    --line: #dce3e7;
    --paper: #eff5f7;
    --serif: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    color: #162c3b;
    background: #fff;
}
.wrap { width: min(100% - 80px, 1180px); }
.top { border-bottom: 1px solid #edf0f2; }
.header-row { min-height: 90px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 23px; font-weight: 600; text-transform: none; letter-spacing: -.8px; gap: 11px; }
.brand-mark { background: transparent; border: 1px solid #172f40; color: #172f40; width: 30px; height: 34px; border-radius: 0 0 12px 12px; font-family: var(--serif); font-size: 20px; }
.header-row nav, .header-account { font-weight: 500; letter-spacing: 0; font-size: 12px; gap: 24px; }
.ui-icon { color: #365363; }
.button .ui-icon, button .ui-icon { color: currentColor; }
.button, button { font-weight: 500; }
.button:hover, button:hover { background: #2f4e62; }
.secondary:hover { background: #eff5f7; color: #172f40; }
.header-account .button { background: transparent; color: #172f40; border: 0; border-bottom: 1px solid #172f40; padding: 8px 0; }
.eyebrow { color: #506b7b; font-size: 10px; letter-spacing: 2.3px; font-weight: 500; }
:focus-visible { outline-color: #7ca2b8; }
.hero.adventure-hero { min-height: 440px; height: calc(100svh - var(--nav-height, 90px)); max-height: none; display: grid; place-items: center; background: url('/thumbnails/campus.jpg') center / cover; }
.cinema-shade { background: linear-gradient(0deg, #071824b8, transparent 80%); }
.cinema-copy { position: absolute; left: max(40px, calc((100% - 1180px) / 2)); bottom: 42px; padding: 0; width: min(580px, calc(100% - 80px)); margin: 0; background: transparent; text-align: left; text-shadow: 0 2px 12px #0005; }
.cinema-copy .eyebrow { font-size: 9px; letter-spacing: 3.8px; margin-bottom: 17px; color: #c1d2dc; }
.cinema-copy h1 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.65; letter-spacing: .5px; }
.cinema-copy > p:not(.eyebrow) { color: #d7e2e8; font-size: 11px; margin: 15px 0 7px; }
.cinema-link { padding: 7px 0; gap: 25px; font-size: 10px; }
.cinema-caption { display: none; }
.journal-intro { padding: 58px 0 8px; }
.journal-intro .eyebrow { margin-bottom: 12px; }
.journal-intro h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: .5px; margin-bottom: 13px; }
.journal-intro > p:last-child { font-size: 12px; }
.filters { margin: 15px 0 42px; gap: 20px; }
.filters button { padding: 8px 5px; font-size: 12px; border: 0; border-bottom: 1px solid transparent; color: #6b7982; background: transparent; }
.filters button:not(:first-child)::before { content: '#'; margin-right: 3px; opacity: .6; }
.filters button:hover, .filters button[aria-pressed=true] { color: #172f40; background: transparent; border-bottom-color: #172f40; }
.board-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.board-heading h2 { font-weight: 400; font-size: 13px; }
#post-count { font-size: 10px; }
.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 42px; }
.blog-grid .blog-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 20px; overflow: visible; }
.blog-card > a { display: block; overflow: hidden; }
.blog-grid .cover { height: 100%; min-height: 185px; aspect-ratio: 1.2; }
.blog-card .cover { background: var(--paper); }
.blog-card .cover img { transition: transform .4s ease; }
.blog-card:hover .cover img { transform: scale(1.035); }
.blog-grid .card-content { padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.blog-grid .card-content h2 { order: -1; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; font-weight: 500; margin: 0 0 12px; letter-spacing: 0; }
.blog-grid .excerpt, .blog-grid .read-link { display: none; }
.blog-grid .meta { margin-top: auto; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 9px; }
.tag { color: #486474; background: #eff5f7; font-weight: 400; font-size: 10px; padding: 2px 6px; }
.blog-grid .social-summary { margin: 0; padding: 9px 0 0; border: 0; color: #6b7982; font-size: 10px; }
.pagination { margin: 45px 0 65px; gap: 15px; }
.pagination button { border: 1px solid transparent; border-radius: 50%; background: transparent; color: #687681; width: 32px; height: 32px; min-width: 32px; padding: 0; font-size: 11px; }
.pagination button[aria-current] { background: transparent; color: #172f40; border-color: #a9bbc5; }
.recent-stories { width: 100vw; margin: 65px 0 0 calc(50% - 50vw); padding: 54px max(40px, calc((100vw - 1180px) / 2)); background: var(--paper); }
.recent-heading { text-align: left; padding: 0 0 28px; }
.recent-heading > span { display: none; }
.recent-heading h2, .community-band h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-size: 30px; }
.recent-heading .eyebrow { margin-bottom: 10px; }
.recent-heading > p:last-child { color: #687681; font-size: 12px; margin-bottom: 0; }
.recent-grid { gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recent-story { width: 100%; min-width: 0; height: 280px; min-height: 0; aspect-ratio: auto; }
.recent-story .cover { opacity: 1; }
.recent-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, #102a3bd9); pointer-events: none; }
.recent-story .recent-title { z-index: 1; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; left: 28px; right: 28px; bottom: 24px; padding: 0; text-align: left; }
.community-band { width: min(100% - 80px, 1180px); margin: 75px auto; padding: 65px 48px; text-align: left; background: linear-gradient(90deg, #142c3bf5 0%, #142c3bde 40%, #142c3b33 100%), url('/thumbnails/goals.jpg') center 46% / cover; color: #fff; }
.community-symbol { display: block; font-size: 9px; letter-spacing: 2.5px; color: #bed2dd; margin-bottom: 15px; }
.community-band h2 { font-size: 33px; margin: 0; }
.community-band p { color: #d6e2e9; font-size: 12px; margin: 20px 0 25px; }
.community-band .button { color: #172f40; background: #fff; border-color: #fff; padding: 12px 24px; }
.community-band .button:hover { background: #dce9ef; }
.site-footer { background: #fff; color: #172f40; padding: 0 0 26px; }
.footer-columns { border-top: 1px solid var(--line); padding-top: 46px; gap: 42px; }
.footer-columns h2 { color: #172f40; font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0; margin-bottom: 18px; }
.footer-columns p, .footer-columns a { color: #697780; font-size: 11px; }
.footer-columns a:hover { color: #172f40; }
.footer-join .button { width: auto; padding: 10px 0; background: transparent; color: #172f40; border: 0; border-bottom: 1px solid #172f40; }
.footer-bottom { border-color: var(--line); margin-top: 36px; }
.footer-bottom p { color: #7a8790; font-size: 9px; }
/* Reading view: quiet typography and a pale-blue related-articles section. */
#article { padding-top: 38px; }
.back-link { font-size: 11px; color: #687681; }
.article-content { max-width: 820px; margin: 38px auto 0; }
.article-content > .meta { justify-content: center; }
.article-content h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 400; text-align: center; line-height: 1.6; letter-spacing: 0; margin: 22px auto 30px; }
.article-content > .cover { aspect-ratio: 16/9; max-height: 480px; margin: 0 0 38px; }
.article-content > .body { max-width: 660px; margin: 0 auto; font-size: 15px; line-height: 2.3; color: #3c4d58; }
.article-author { max-width: 660px; margin: 30px auto; color: #71818c; font-size: 11px; border-top: 1px solid var(--line); padding-top: 18px; }
.article-social { max-width: 660px; margin: 35px auto 65px; }
.article-social h2 { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.reaction-button[aria-pressed=true] { background: #e6eff4; border-color: #617e90; color: #172f40; }
.comment { background: #f1f5f7; }
.related-stories { width: 100vw; margin-left: calc(50% - 50vw); padding: 48px max(40px, calc((100vw - 1180px) / 2)); background: var(--paper); }
.related-stories > h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.related-grid .cover { aspect-ratio: 4/3; }
.related-grid .card-content { padding: 18px 0 0; }
.related-grid h2 { font-family: var(--serif); font-size: 19px; font-weight: 400; margin: 12px 0; }
.related-grid .excerpt, .related-grid .social-summary { display: none; }
.related-grid .read-link { border-color: #688293; }
/* Carry the navy palette through existing account and writing pages. */
.writer-hero, .profile-hero { background-color: #172f40; }
.writer-hero h1 > span { background: #345366; }
.writer-gate, .writing-prompts button:hover, .writing-prompts button[aria-pressed=true] { background: #f0f5f7; border-color: #cad9e1; }
.profile-stats { background: #f0f5f7; }
#student-forms form > button, :is(#reset-form, #email-reset-form) > button, .feedback-dialog button { background: #172f40; border-color: #172f40; }
#student-forms .auth-tabs a.active { color: #172f40; }
.feedback-dialog { border-top-color: #172f40; }
.feedback-icon { color: #172f40; background: #e7f0f5; }
@media (max-width: 1000px) {
    .wrap { width: calc(100% - 48px); }
    .header-row { gap: 18px; }
    .header-row nav, .header-account { gap: 16px; }
    .blog-grid { gap: 28px; }
    .blog-grid .blog-card { grid-template-columns: 40% minmax(0, 1fr); gap: 15px; }
    .blog-grid .cover { min-height: 175px; }
    .community-band { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
    .header-row { min-height: 80px; padding: 18px 0 12px; }
    .brand { font-size: 20px; }
    .header-row nav { margin-top: 3px; padding-top: 12px; }
    .header-account { gap: 14px; font-size: 11px; }
    .hero.adventure-hero { min-height: 390px; height: calc(100svh - var(--nav-height, 120px)); }
    .cinema-copy { left: 24px; bottom: 30px; width: calc(100% - 48px); padding: 0; }
    .cinema-copy h1 { font-size: 32px; }
    .cinema-copy > p:not(.eyebrow) { font-size: 10px; }
    .journal-intro { padding-top: 42px; }
    .journal-intro h2 { font-size: 26px; }
    .filters { gap: 15px; margin-bottom: 30px; }
    .filters button { font-size: 11px; }
    .blog-grid { grid-template-columns: 1fr; gap: 25px; }
    .blog-grid .blog-card { grid-template-columns: 42% minmax(0, 1fr); gap: 20px; }
    .blog-grid .cover { min-height: 155px; }
    .blog-grid .card-content h2 { font-size: 19px; }
    .recent-stories, .related-stories { padding: 36px 24px; }
    .recent-grid { gap: 20px; }
    .recent-grid { grid-template-columns: 1fr; }
    .recent-story { height: 230px; }
    .recent-story .recent-title { font-size: 19px; left: 20px; right: 20px; padding: 0; }
    .community-band { padding: 40px 28px; margin-block: 45px; }
    .community-band h2 { font-size: 26px; }
    .footer-columns { gap: 28px; }
    .related-grid { grid-template-columns: 1fr; gap: 26px; }
    .related-grid .blog-card { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 18px; }
    .related-grid .card-content { padding-top: 0; }
    .article-content > .body { font-size: 14px; }
}
@media (max-width: 420px) {
    .wrap { width: calc(100% - 32px); }
    .brand { font-size: 17px; gap: 7px; }
    .brand-mark { width: 25px; height: 29px; font-size: 17px; }
    .header-account { gap: 10px; }
    .header-account .ui-icon { display: none; }
    .blog-grid .blog-card { gap: 14px; }
    .blog-grid .cover { min-height: 150px; }
    .blog-grid .card-content h2 { font-size: 17px; }
    .blog-grid .meta { font-size: 8px; }
    .blog-grid .social-summary { font-size: 9px; }
    .community-band { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) { .blog-card .cover img { transition: none; } }
