:root{--hub-max:1350px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:14px}
.hub-width{width:min(var(--hub-max),calc(100% - 64px));margin-inline:auto}
.hub-mast{background:var(--green);color:#130d0c}
.hub-top{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:76px;padding:10px 0}
.hub-logo img{display:block;width:clamp(125px,17vw,202px);height:auto}
.hub-mast nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px 16px}
.hub-mast nav a{color:#130d0c;font-weight:850}
.hub-skip{position:absolute;left:4px;top:4px;transform:translateY(-150%);padding:8px;background:var(--panel);z-index:3}
.hub-skip:focus{transform:none}
main.hub-width{padding-top:19px}
.hub-hero{min-height:480px;display:grid;grid-template-columns:1fr minmax(0,.95fr);overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:10px}
.hero-copy{align-self:center;padding:30px clamp(20px,4.4vw,68px)}
.hub-hero h1{font-size:clamp(3rem,7.2vw,7rem);line-height:1;letter-spacing:-.055em;margin:7px 0 11px}
.meta{font-weight:850;font-size:.79rem;color:var(--mint);margin:0}
.hero-lead{max-width:57ch;font-weight:650;font-size:clamp(1rem,1.32vw,1.18rem);margin:.8em 0}
.hero-links{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:16px}
.hero-links a{border:1px solid var(--line);background:var(--raised);color:var(--fg);font-weight:800;padding:6px 8px;border-radius:5px;font-size:.88rem}
.hero-links a:first-child,.catalog-open{background:var(--green);color:#102015;border:0;border-radius:5px;padding:6px 9px;font-weight:850;text-decoration:none}
.hero-links a:first-child:hover,.catalog-open:hover{text-decoration:underline}
.hero-image{margin:0;min-width:0;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse at 50% 48%,#edf7f6,#c4d9de);padding:18px 14px 30px}
:root[data-theme=night] .hero-image{background:radial-gradient(ellipse at 50% 48%,#a6c5c4,#4f777b)}
.hero-image img{max-height:430px;max-width:100%;object-fit:contain}
.hero-image figcaption{position:absolute;bottom:6px;left:8px;color:#152f2f;background:#eaf2ef;font-size:.75rem;padding:1px 6px;border-radius:3px;font-weight:800}
.catalog-intro{margin-top:23px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;border-bottom:1px solid var(--line);padding-bottom:11px}
.catalog-intro h2{font-size:clamp(1.45rem,3vw,2.4rem)}
.catalog-filter{display:flex;flex-wrap:wrap;align-items:end;gap:7px 12px}
.catalog-filter label{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:.85rem}
.catalog-filter input{min-height:38px;border:1px solid var(--line);border-radius:6px;padding:6px 10px;background:var(--panel);width:min(280px,70vw)}
.catalog-count{margin:0;color:var(--muted);font-size:.85rem}
.catalog-section{margin:21px 0 3px}
.catalog-section h2{margin-bottom:9px;font-size:1.47rem}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.catalog-item{border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}
.card-copy{padding:12px 13px}
.card-copy h3{font-family:Montserrat,Arial,sans-serif;font-size:1.09rem;line-height:1.23;margin:4px 0 5px}
.card-copy p:not(.meta){margin:0 0 8px;color:var(--muted);font-size:.92rem}
.card-image{height:150px;background:radial-gradient(ellipse,#edf5f5,#c0d5d7);display:flex;align-items:center;justify-content:center}
:root[data-theme=night] .card-image{background:radial-gradient(ellipse,#c6dddb,#7ca4a6)}
.card-image img{width:100%;height:100%;padding:7px;object-fit:contain}
.card-actions,.module-files{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;font-size:.86rem}
.card-actions .alt{font-weight:750}
.card-copy details{margin-top:9px;border-top:1px solid var(--line);padding-top:6px;font-size:.84rem}
.card-copy details summary{cursor:pointer;color:var(--muted);font-weight:800}
.card-copy details ul{padding-left:19px;margin:7px 0 0}
.hub-footer{border-top:1px solid var(--line);padding:12px 0}
.hub-footer .hub-width{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:.83rem}
.module-top{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:9px}
.module-top h1,.archive-page h1{font-size:clamp(1.95rem,4vw,3.75rem);margin-top:5px}
.module-top #back{display:inline-block;margin:0 0 8px}
#module-description{margin:6px 0 0;color:var(--muted)}
.module-tools{display:flex;gap:7px 10px;flex-wrap:wrap}
.module-files{margin:7px 0 12px}
.module-display:empty{display:none}
.module-display{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel);min-width:0}
.module-display iframe{display:block;border:0;width:100%;height:clamp(510px,77dvh,1050px);background:var(--panel)}
.module-display video{display:block;width:min(100%,1060px);max-height:72dvh;background:#111716}
.module-display img{display:block;object-fit:contain;width:100%;max-height:85dvh}
.arch-group{border-top:1px solid var(--line);padding-top:10px;margin-top:13px}
.arch-group ul{margin:10px 0 0;padding-left:20px;overflow-wrap:anywhere}
.arch-group small{display:block;color:var(--muted);margin-bottom:3px}
@media(max-width:1000px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-width{width:calc(100% - 38px)}}
@media(max-width:630px){
 .hub-width{width:calc(100% - 22px)}.hub-top{min-height:60px;gap:8px}
 .hub-logo img{width:110px}
 .hub-mast nav{gap:5px 8px;font-size:.77rem}
 .hub-hero{grid-template-columns:1fr;min-height:0}
 .hero-copy{padding:14px 16px}.hero-image{min-height:250px}.hero-image img{max-height:245px}
 .card-grid{grid-template-columns:1fr}
 .module-display iframe{height:76dvh;min-height:450px}
 .viewer-page{width:calc(100% - 13px)}
}
@media print{
 .hub-mast,.hub-footer,.catalog-filter,.catalog-count,.hero-links,.card-actions,.module-tools{display:none!important}
 .hub-width{width:100%}.catalog-item,.hub-hero{break-inside:avoid;background:#fff9f3;color:#130d0c}
 .card-copy p:not(.meta),.catalog-item .meta{color:#244736}
}


.module-text{white-space:pre-wrap;overflow-wrap:anywhere;width:100%;padding:0 20px;color:var(--fg)}

@media(max-width:560px){.hub-top{flex-wrap:wrap}.hub-top nav{max-width:100%}}
