:root { --ink:#202724; --muted:#69736f; --paper:#f3efe5; --cream:#fffdf7; --line:#d7d0c2; --red:#9c3328; --red-dark:#76231c; --teal:#245f5d; --gold:#c99546; --shadow:0 12px 30px rgba(28,32,29,.1); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:82px; }
body { margin:0; background:#56180f; color:var(--ink); font-family:"DM Sans",sans-serif; line-height:1.55; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
svg { display:block; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; z-index:100; top:-60px; left:16px; padding:10px 15px; background:white; }
.skip-link:focus { top:12px; }

.masthead { min-height:190px; position:relative; display:flex; align-items:flex-end; color:white; background:#050816 url("../images/orbital-nexus-space-desktop.webp") center/cover no-repeat; border-bottom:5px solid var(--red); }
.masthead-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(16,20,18,.94),rgba(16,20,18,.64) 48%,rgba(16,20,18,.15)); }
.masthead-inner { width:min(1180px,calc(100% - 40px)); min-height:76px; position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:26px; margin:0 auto; }
.brand { display:inline-flex; align-items:center; gap:12px; font-family:"Newsreader",serif; font-size:28px; line-height:1; }
.brand b { color:#f0b75e; font-weight:600; }
.brand small { display:block; margin-top:6px; color:#d9ded9; font-family:"DM Sans",sans-serif; font-size:9px; font-weight:600; letter-spacing:1.3px; text-transform:uppercase; }
.brand-mark { width:42px; height:42px; display:grid; place-items:center; background:var(--red); }
.brand-mark svg { width:22px; }
.site-nav { display:flex; align-items:center; gap:24px; font-size:13px; font-weight:700; }
.site-nav a { padding:10px 0; border-bottom:2px solid transparent; }
.site-nav a:hover { border-color:#f0b75e; color:#f0b75e; }
.menu-button { width:42px; height:42px; display:none; place-items:center; border:1px solid rgba(255,255,255,.45); background:rgba(20,25,22,.4); color:white; }
.menu-button svg { width:20px; }

.page-shell { width:min(1220px,calc(100% - 40px)); display:grid; grid-template-columns:240px minmax(0,1fr); gap:44px; margin:0 auto; padding:44px 20px 90px; background:var(--paper); }
.sidebar { display:flex; flex-direction:column; gap:24px; }
.side-panel { padding:22px; border:1px solid var(--line); background:var(--cream); }
.side-panel h2 { margin:2px 0 17px; font-family:"Newsreader",serif; font-size:25px; line-height:1.1; }
.side-kicker,.eyebrow { margin:0 0 8px; color:var(--red); font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; }
.sponsor-panel > a { display:flex; justify-content:space-between; gap:8px; padding:11px 0; border-top:1px solid var(--line); color:var(--teal); font-size:13px; font-weight:700; }
.sponsor-panel a svg { width:14px; flex:0 0 auto; }
.sponsor-panel a:hover,.featured-panel a:hover { color:var(--red); }
.history-list article { position:relative; padding:0 0 18px 19px; border-left:1px solid var(--line); }
.history-list article::before { width:7px; height:7px; position:absolute; top:5px; left:-4px; content:""; background:var(--red); }
.history-list article:last-child { padding-bottom:0; }
.history-list time { color:var(--red); font-size:12px; font-weight:700; }
.history-list p { margin:3px 0 0; color:var(--muted); font-size:12px; line-height:1.45; }
.featured-panel { background:var(--teal); color:white; }
.featured-panel .side-kicker { color:#f0b75e; }
.featured-panel a { display:block; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.23); font-size:13px; }

.main-column { min-width:0; }
.welcome { padding:16px 0 54px; border-bottom:1px solid var(--line); }
h1,h2 { margin:0; font-family:"Newsreader",serif; font-weight:600; line-height:1.08; letter-spacing:0; }
h1 { max-width:760px; font-size:clamp(44px,6vw,72px); }
.intro { max-width:790px; margin:21px 0 26px; color:var(--muted); font-size:17px; }
.directory-search { max-width:670px; display:grid; grid-template-columns:22px 1fr 42px; align-items:center; gap:10px; padding:7px 7px 7px 15px; border:1px solid var(--line); background:var(--cream); box-shadow:var(--shadow); }
.directory-search > svg { width:19px; color:var(--muted); }
.directory-search input { width:100%; min-width:0; padding:10px 0; border:0; outline:0; background:transparent; }
.directory-search button,.back-top { width:40px; height:40px; display:grid; place-items:center; border:0; background:var(--ink); color:white; cursor:pointer; }
.directory-search button:hover,.back-top:hover { background:var(--red); }
.directory-search button svg,.back-top svg { width:17px; }
.quick-stats { display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:22px; color:var(--muted); font-size:11px; text-transform:uppercase; }
.quick-stats b { margin-right:4px; color:var(--ink); font-size:14px; }

.jump-directory { padding:55px 0 65px; }
.section-title-row { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:26px; }
.section-title-row h2 { font-size:38px; }
.section-title-row > span { color:var(--muted); font-size:12px; }
.jump-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.jump-grid a { min-height:112px; position:relative; display:flex; flex-direction:column; justify-content:center; padding:18px 42px 18px 18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--cream); }
.jump-grid a:hover { z-index:1; background:var(--teal); color:white; box-shadow:var(--shadow); }
.jump-grid span { font-family:"Newsreader",serif; font-size:18px; font-weight:600; line-height:1.2; }
.jump-grid small { margin-top:7px; color:var(--muted); font-size:10px; text-transform:uppercase; }
.jump-grid a:hover small { color:#d9e8e5; }
.jump-grid svg { width:17px; position:absolute; right:16px; bottom:17px; color:var(--red); }
.jump-grid a:hover svg { color:#f0b75e; }

.resource-sections { display:grid; gap:24px; }
.resource-section { border:1px solid var(--line); background:var(--cream); scroll-margin-top:22px; }
.resource-section > header { display:grid; grid-template-columns:48px 1fr 40px; align-items:center; gap:18px; padding:24px; border-bottom:1px solid var(--line); background:#e9e3d7; }
.section-number { align-self:start; color:var(--red); font-family:"Newsreader",serif; font-size:22px; }
.resource-section h2 { font-size:31px; }
.link-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:0; list-style:none; }
.link-list li { min-width:0; border-bottom:1px solid #e4dfd5; }
.link-list li:nth-child(odd) { border-right:1px solid #e4dfd5; }
.link-list li:nth-last-child(-n+2) { border-bottom:0; }
.link-list a { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 20px; color:#315d5a; font-size:13px; font-weight:600; }
.link-list a:hover { background:#f2eee5; color:var(--red); }
.link-list span { min-width:0; overflow-wrap:anywhere; }
.link-list svg { width:14px; flex:0 0 auto; color:#9aa19d; }
.no-links { margin:0; padding:24px; color:var(--muted); }
.empty-state { padding:70px 20px; text-align:center; }
.empty-state > svg { width:36px; margin:0 auto 14px; color:var(--red); }
.empty-state h2 { font-size:30px; }
.empty-state p { color:var(--muted); }

.site-footer { padding:58px 20px 30px; background:#181e1b; color:#cfd5d1; }
.site-footer > div { width:min(1180px,100%); display:grid; grid-template-columns:1fr 1.4fr 1fr; align-items:start; gap:40px; margin:0 auto; }
.footer-brand { color:white; font-size:23px; }
.site-footer p { max-width:430px; margin:0; }
.site-footer nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px 18px; }
.site-footer nav a:hover { color:#f0b75e; }
.site-footer small { grid-column:1/-1; padding-top:25px; border-top:1px solid #38403c; color:#858e89; }
.floating-top { width:44px; height:44px; position:fixed; z-index:10; right:18px; bottom:18px; display:grid; place-items:center; background:var(--red); color:white; box-shadow:var(--shadow); }
.floating-top:hover { background:var(--red-dark); }
.floating-top svg { width:20px; }
[hidden] { display:none !important; }

@media (max-width:960px) {
    .page-shell { grid-template-columns:200px minmax(0,1fr); gap:28px; }
    .jump-grid { grid-template-columns:repeat(2,1fr); }
    .site-nav { gap:14px; }
}
@media (max-width:760px) {
    html { scroll-padding-top:18px; }
    .masthead { min-height:175px; }
    .masthead-inner { width:calc(100% - 28px); }
    .menu-button { display:grid; }
    .site-nav { display:none; position:absolute; top:70px; right:0; left:0; padding:13px; border:1px solid rgba(255,255,255,.2); background:#1b211e; box-shadow:var(--shadow); }
    .site-nav.open { display:grid; gap:2px; }
    .site-nav a { padding:10px; }
    .page-shell { width:calc(100% - 28px); grid-template-columns:1fr; padding:28px 14px 70px; }
    .sidebar { order:2; }
    .main-column { order:1; }
    .history-list { display:grid; grid-template-columns:repeat(2,1fr); gap:0 20px; }
    .jump-grid,.link-list { grid-template-columns:1fr; }
    .link-list li:nth-child(odd) { border-right:0; }
    .link-list li:nth-last-child(2) { border-bottom:1px solid #e4dfd5; }
    .section-title-row { align-items:flex-start; flex-direction:column; gap:10px; }
    .site-footer > div { grid-template-columns:1fr; }
    .site-footer nav { justify-content:flex-start; }
}
@media (max-width:480px) {
    .brand { font-size:23px; }
    .brand-mark { width:38px; height:38px; }
    h1 { font-size:43px; }
    .resource-section > header { grid-template-columns:36px 1fr 40px; gap:10px; padding:18px; }
    .resource-section h2 { font-size:25px; }
    .history-list { grid-template-columns:1fr; }
}
