/* Shared subsite and discovery styles */
.discovery-section{background:linear-gradient(180deg,var(--ink-900),var(--ink-850));border-top:1px solid var(--border)}
.discovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-top:2.5rem;background:var(--border-gold);border:1px solid var(--border-gold)}
.discovery-card{position:relative;min-height:310px;padding:2rem;display:flex;flex-direction:column;background:var(--ink-850);overflow:hidden;transition:background .25s var(--ease),transform .25s var(--ease)}
.discovery-card:hover{background:var(--ink-800);transform:translateY(-3px)}
.discovery-card:focus-visible{z-index:2}
.discovery-index{font-family:var(--heading);color:var(--gold);font-size:.8rem;letter-spacing:.18em}
.discovery-card h3{max-width:440px;margin-top:auto;color:var(--gold-light);font-size:clamp(1.55rem,3vw,2.3rem)}
.discovery-card p{max-width:510px;margin-top:.9rem;color:var(--muted)}
.discovery-arrow{position:absolute;right:2rem;top:2rem;color:var(--gold-light);font-size:1.5rem;transition:transform .25s var(--ease)}
.discovery-card:hover .discovery-arrow{transform:translate(4px,-4px)}

.subsite-body{background:var(--paper);color:#172234}
.subsite-body .site-header{background:rgba(7,16,29,.96);border-color:var(--border)}
.subsite-body .site-footer{background:var(--ink-950);color:var(--white)}
.subsite-main{padding-top:82px}
.subsite-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--ink-900);color:var(--white);border-bottom:1px solid var(--border-gold)}
.subsite-hero::after{content:"";position:absolute;inset:auto -10% -70% 35%;height:520px;background:radial-gradient(circle,rgba(213,173,67,.2),transparent 66%);z-index:-1}
.subsite-hero-inner{min-height:580px;padding-block:clamp(5rem,10vw,9rem);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);align-items:center;gap:clamp(2rem,7vw,7rem)}
.subsite-kicker{display:flex;align-items:center;gap:.7rem;color:var(--gold-light);font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.subsite-kicker::before{content:"";width:28px;height:1px;background:currentColor}
.subsite-hero h1{max-width:820px;margin-top:1.2rem;font-size:clamp(2.8rem,7vw,6.2rem);letter-spacing:-.045em;text-wrap:balance}
.subsite-hero-copy>p:not(.subsite-kicker){max-width:720px;margin-top:1.5rem;color:#c4cedb;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.8}
.hero-file{justify-self:end;width:min(100%,390px);padding:1.5rem;border:1px solid var(--border-gold);background:rgba(255,255,255,.04);box-shadow:var(--shadow-lg);transform:rotate(2deg)}
.hero-file-head{display:flex;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border);color:var(--gold-light);font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.hero-file-mark{display:grid;place-items:center;width:150px;aspect-ratio:1;margin:2rem auto;border:2px solid var(--gold);border-radius:50%;color:var(--gold-light);font-family:var(--heading);font-size:1.15rem;text-align:center;transform:rotate(-8deg);box-shadow:inset 0 0 0 8px var(--ink-900),inset 0 0 0 10px var(--gold)}
.hero-file p{color:var(--muted);font-size:.83rem;text-align:center}
.subsite-section{padding:clamp(4.5rem,9vw,8rem) 0}
.subsite-section.alt{background:#ebe5d9}
.subsite-heading{max-width:760px;margin-bottom:2.5rem}
.subsite-heading .eyebrow{color:var(--gold-dark)}
.subsite-heading h2{color:var(--ink-900);font-size:clamp(2.2rem,5vw,4.2rem);letter-spacing:-.035em}
.subsite-heading>p:last-child{margin-top:1rem;color:#536071;font-size:1.05rem}
.satire-note{display:flex;gap:1rem;align-items:flex-start;padding:1.1rem 1.25rem;border-left:4px solid var(--gold-dark);background:#fffaf0;color:#384454}
.satire-note strong{color:var(--ink-900)}

.form-panel{padding:clamp(1.4rem,4vw,2.5rem);background:#fff;border:1px solid #d4ccbe;box-shadow:0 18px 50px rgba(24,32,44,.08)}
.field-group{display:grid;gap:.6rem;margin-bottom:1.4rem}
.field-group label,.field-label{color:var(--ink-900);font-weight:700}
.field-help{color:#697485;font-size:.82rem}
.subsite-body select,.subsite-body input[type="text"],.subsite-body textarea{width:100%;min-height:50px;padding:.8rem 1rem;border:1px solid #a9a192;border-radius:var(--radius-sm);background:#faf8f3;color:var(--ink-900)}
.subsite-body textarea{min-height:120px;resize:vertical}
.subsite-body select:focus-visible,.subsite-body input:focus-visible,.subsite-body textarea:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.subsite-body .button-secondary{color:var(--ink-900);border-color:#7f7565;background:transparent}
.subsite-body .button-secondary:hover{color:var(--gold-dark);border-color:var(--gold-dark)}
.action-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.4rem}
.result-panel{min-height:180px;margin-top:1.5rem;padding:1.5rem;border:1px dashed #9b8f7a;background:#f8f3e9}
.result-panel[hidden]{display:none}
.result-label{color:var(--gold-dark);font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.result-panel h3{margin-top:.5rem;color:var(--ink-900);font-size:clamp(1.5rem,4vw,2.3rem)}
.result-panel p{margin-top:.75rem;color:#536071}

.department-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:2rem}
.department-card{padding:1.5rem;background:#fff;border-top:4px solid var(--ink-800)}
.department-code{color:var(--gold-dark);font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.department-card h3{margin-top:.7rem;color:var(--ink-900);font-size:1.35rem}
.department-card p{margin-top:.65rem;color:#5f6978}

.meter-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);gap:clamp(2rem,6vw,5rem);align-items:start}
.range-row{margin-bottom:1.8rem}
.range-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.6rem;color:var(--ink-900);font-weight:700}
.range-value{min-width:3ch;color:var(--gold-dark);font-variant-numeric:tabular-nums;text-align:right}
input[type="range"]{width:100%;accent-color:var(--gold-dark)}
.meter-card{position:sticky;top:110px;padding:2rem;background:var(--ink-900);color:var(--white);border:1px solid var(--border-gold);box-shadow:var(--shadow-lg)}
.meter-gauge{position:relative;height:10px;margin:1.2rem 0 2rem;background:#26354a;overflow:hidden}
.meter-gauge-fill{height:100%;width:0;background:linear-gradient(90deg,#775611,var(--gold-light));transition:width .35s var(--ease)}
.meter-score{font-family:var(--heading);font-size:clamp(3.5rem,8vw,6.5rem);color:var(--gold-light);line-height:1}
.meter-title{margin-top:1.2rem;font-family:var(--heading);font-size:1.7rem}
.meter-copy{margin-top:.8rem;color:var(--muted)}
.meter-disclaimer{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border);color:#8190a4;font-size:.75rem}

.museum-tools{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;margin-bottom:2rem}
.filter-group{display:flex;flex-wrap:wrap;gap:.5rem}
.filter-button{min-height:44px;padding:.65rem 1rem;border:1px solid #9f9688;border-radius:999px;background:transparent;color:var(--ink-900);font-weight:700;cursor:pointer}
.filter-button[aria-pressed="true"]{background:var(--ink-900);color:var(--white);border-color:var(--ink-900)}
.note-toggle{display:flex;align-items:center;gap:.6rem;min-height:44px;color:var(--ink-900);font-weight:700;cursor:pointer}
.exhibit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.exhibit{position:relative;min-height:420px;padding:1.5rem;display:grid;grid-template-columns:180px 1fr;gap:1.5rem;align-items:center;background:#fff;border:1px solid #d4ccbe;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.exhibit:hover{transform:translateY(-3px);box-shadow:0 20px 45px rgba(24,32,44,.1)}
.exhibit[hidden]{display:none}
.fake-seal{display:grid;place-items:center;width:170px;aspect-ratio:1;padding:1rem;border:4px double currentColor;border-radius:50%;color:#9b7421;background:#f8f0d8;font-family:var(--heading);font-size:1.05rem;text-align:center;line-height:1.25;transform:rotate(-4deg);box-shadow:inset 0 0 0 8px #f8f0d8,inset 0 0 0 10px currentColor}
.exhibit:nth-child(even) .fake-seal{color:#54616f;background:#edf0f2;box-shadow:inset 0 0 0 8px #edf0f2,inset 0 0 0 10px currentColor;transform:rotate(5deg)}
.exhibit-meta{color:var(--gold-dark);font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.exhibit h3{margin-top:.6rem;color:var(--ink-900);font-size:1.55rem}
.exhibit p{margin-top:.7rem;color:#5f6978}
.curator-note{display:none;margin-top:1rem;padding:.8rem;background:#fff4cf;color:#443918;font-family:"Comic Sans MS",cursive;transform:rotate(-1deg)}
.show-notes .curator-note{display:block}

.notice-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(340px,1.15fr);gap:clamp(2rem,6vw,5rem);align-items:start}
.notice-preview{position:sticky;top:110px;min-height:520px;padding:clamp(2rem,6vw,4rem);background:#fffef9;border:1px solid #b6aa96;box-shadow:0 20px 60px rgba(24,32,44,.12);text-align:center}
.notice-preview::before{content:"";position:absolute;inset:12px;border:1px solid #d5ad43;pointer-events:none}
.notice-ministry{color:var(--gold-dark);font-size:.7rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.notice-preview h2{margin-top:2.8rem;color:var(--ink-900);font-size:clamp(2rem,5vw,3.4rem)}
.notice-subject{margin:2rem auto 0;max-width:600px;color:var(--ink-900);font-family:var(--heading);font-size:clamp(1.3rem,3vw,2rem);line-height:1.35}
.notice-reason{margin:1.3rem auto 0;max-width:560px;color:#5f6978}
.notice-stamp{display:grid;place-items:center;width:120px;aspect-ratio:1;margin:2.5rem auto 0;border:3px double var(--gold-dark);border-radius:50%;color:var(--gold-dark);font-family:var(--heading);font-size:.8rem;transform:rotate(-9deg)}
.notice-date{margin-top:2rem;color:#7b746a;font-size:.75rem}
.privacy-line{margin-top:1rem;color:#6d7681;font-size:.78rem}

.subsite-footer-links{display:flex;flex-wrap:wrap;gap:1rem 1.4rem}
.subsite-footer-links a:hover{color:var(--gold-light)}

@media(max-width:980px){
 .subsite-hero-inner,.meter-layout,.notice-layout{grid-template-columns:1fr}
 .hero-file{justify-self:start}
 .meter-card,.notice-preview{position:relative;top:auto}
 .exhibit-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
 .discovery-grid,.department-grid{grid-template-columns:1fr}
 .discovery-card{min-height:260px}
 .subsite-main{padding-top:82px}
 .subsite-hero-inner{min-height:auto;padding-block:4rem}
 .hero-file{width:100%}
 .exhibit{grid-template-columns:1fr;min-height:0}
 .fake-seal{margin-inline:auto}
 .museum-tools{align-items:flex-start;flex-direction:column}
 .notice-preview{min-height:480px;padding:2rem 1.5rem}
}
@media print{
 .site-header,.site-footer,.subsite-hero,.form-panel,.satire-note,.no-print{display:none!important}
 .subsite-main{padding:0}
 .subsite-section{padding:0}
 .notice-layout{display:block}
 .notice-preview{position:static;box-shadow:none;border:2px solid #222;min-height:90vh}
 body{background:#fff!important}
}
