/* Newton USD 373 Security Updates
 * Inspired by the incident-report application's branding.
 * Keep shared styling here; individual updates belong in updates/.
 */
:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #f5f5f3;
    --gold: #f7d13b;
    --gold-hover: #e9c22b;
    --ink: #000;
    --border: #ddd;
    --page-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
a { color: #333; text-underline-offset: 3px; }
a:hover { color: #000; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; background: var(--gold); padding: 9px 14px; }
.skip-link:focus { top: 8px; }

.site-header { background: var(--ink); color: white; border-bottom: 6px solid var(--gold); }
.header-inner { max-width: var(--page-width); margin: auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: white; display: flex; gap: 16px; align-items: center; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.brand:hover { color: white; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.brand-text small { display: block; font-size: 10px; color: var(--gold); letter-spacing: 2px; margin-top: 3px; }
.site-nav { position: relative; }
.nav-toggle { font: inherit; color: white; cursor: pointer; border: 1px solid #777; background: transparent; padding: 9px 14px; border-radius: 3px; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--gold); }
.nav-toggle span { color: var(--gold); margin-left: 8px; }
.nav-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 240px; margin: 0; padding: 6px; list-style: none; background: white; color: #222; border: 1px solid var(--border); box-shadow: 0 9px 25px #0003; border-radius: 3px; }
.nav-list a { display: block; padding: 9px 12px; text-decoration: none; }
.nav-list a:hover, .nav-list a:focus-visible { background: #fff4b9; }

.page-container { max-width: var(--page-width); margin: 0 auto; padding: 42px 24px 64px; }
.intro { max-width: 870px; margin-bottom: 26px; }
.eyebrow { font-size: 12px; text-transform: none; font-weight: 800; letter-spacing: 2px; color: #555; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; color: #000; margin: 12px 0; }
h2 { font-size: 21px; color: #000; margin: 0; }
.intro-lead { color: #555; font-size: 14px; margin-bottom: 18px; }
p { margin: 0 0 15px; }
.highlight { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--gold); padding: 19px 23px; }
.highlight strong { color: #000; }
.highlight p { margin: 6px 0 0; }
.section-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 28px 0 12px; color: #555; font-size: 13px; }
.text-button { font: inherit; border: 0; background: none; color: #222; text-decoration: underline; cursor: pointer; padding: 7px 9px; }
.text-button:hover { background: #eceae2; }
.panel { background: white; border: 1px solid var(--border); border-top: 4px solid #000; border-radius: 3px; margin-top: 16px; box-shadow: 0 4px 18px #00000005; scroll-margin-top: 16px; }
.section-toggle { border: 0; width: 100%; text-align: left; background: transparent; font: inherit; font-weight: 700; color: #000; padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.section-toggle:hover { background: #faf9f3; }
.chevron { width: 11px; height: 11px; border-right: 3px solid #8b7100; border-bottom: 3px solid #8b7100; transform: rotate(45deg); flex-shrink: 0; transition: transform 150ms ease; }
.section-toggle[aria-expanded="true"] .chevron { transform: rotate(225deg); }
.section-body { padding: 0 30px 28px; }
.section-body > :last-child { margin-bottom: 0; }
.section-body ul { padding-left: 23px; }
.section-body li { margin: 8px 0; }
.action-note { border-left: 4px solid var(--gold); padding: 10px 15px; background: #f8f7f0; }
.contact-line { border-top: 1px solid var(--border); padding-top: 16px; }
.example-card { margin: 24px 0; max-width: 740px; }
.example-card figcaption { font-size: 13px; line-height: 1.5; color: #555; margin-top: 11px; }
.mock-browser { background: #f0f0ef; border: 1px solid #aaa; border-radius: 5px; overflow: hidden; }
.mock-bar { display: flex; gap: 16px; padding: 8px 14px; background: #dadada; font-size: 12px; color: #555; }
.mock-dots { color: #777; letter-spacing: 3px; }
.mock-content { max-width: 450px; background: white; border: 1px solid #d0d0d0; border-radius: 4px; margin: 24px auto; padding: 22px 26px; box-shadow: 0 5px 15px #0001; }
.mock-content > strong { display: block; color: #000; margin-top: 7px; font-size: 18px; }
.mock-robot { color: #555; font-size: 28px; }
.mock-content p { margin-top: 10px; }
.mock-content ol { padding-left: 23px; margin: 10px 0; }
.mock-danger { background: #fff1c5; border-left: 4px solid #c89a00; padding: 9px; font-size: 13px; font-weight: 700; }
.resource-list span { color: #555; }
.source-note { color: #666; font-size: 13px; }
.site-footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 12px; color: #666; }
@media (max-width: 650px) {
    .header-inner { padding: 15px 18px; gap: 12px; }
    .brand { gap: 9px; font-size: 12px; }
    .brand-mark { width: 39px; height: 39px; }
    .brand-text small { font-size: 9px; letter-spacing: 1px; }
    .nav-list { width: min(240px, 80vw); }
    .page-container { padding: 28px 16px 45px; }
    .section-toggle { padding: 20px; }
    .section-body { padding: 0 20px 20px; }
    .mock-content { margin: 12px; padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chevron { transition: none; } }

/* Awareness examples: modular cards that can be reused in future updates. */
h3 { color: #111; font-size: 18px; margin: 25px 0 9px; }
h4 { color: #111; font-size: 16px; margin: 8px 0; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }
.scenario { padding: 18px; border: 1px solid #ddd; background: #fafaf8; border-top: 3px solid var(--gold); }
.scenario p { font-size: 14px; }
.scenario p:last-child { margin-bottom: 0; }
.scenario-tag { font-size: 11px; letter-spacing: .8px; font-weight: 700; color: #665400; text-transform: uppercase; }
@media (max-width: 650px) { .example-grid { grid-template-columns: 1fr; } }

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-menu {
    position: relative;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
}

a.nav-toggle:hover {
    color: white;
}
