body{background:#0c1315}.shell{width:min(1180px,calc(100% - 48px))}.mast{background:#101a1c;border-color:#5e523d}.nav{gap:22px}.nav nav{gap:14px;max-width:790px;justify-content:flex-end}.nav a[aria-current]{color:var(--gold);text-decoration:underline}.dept-hero{border-bottom:1px solid #64543d;background:linear-gradient(90deg,#101819 5%,#101819e8 52%,#101819b0),url('/assets/institute.jpg') center right/cover;}.dept-hero .shell{padding:68px 0 62px}.dept-hero h1{max-width:850px;font-size:clamp(42px,6vw,76px);letter-spacing:-1.5px}.dept-hero p{max-width:650px;font-size:18px}.crumb{font-size:12px;margin-bottom:25px;color:#c6b48f}.dept-body{padding:44px 0 68px;display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:38px;align-items:start}.dept-body section{margin-bottom:32px}.dept-body h2{font-size:clamp(27px,3vw,39px);margin:0 0 14px}.dept-body h3{font-size:24px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tile{display:block;padding:23px;border:1px solid #49534b;background:linear-gradient(135deg,#1d2a29,#141e20);color:var(--ivory);text-decoration:none}.tile h3{margin-bottom:10px}.tile p{margin:8px 0}.tile:hover{border-color:var(--gold)}.tile .eyebrow{margin-bottom:10px}.directory{border:1px solid #5b5444;padding:20px;background:#151f20}.directory a{display:block;padding:10px 0;border-top:1px solid #39443f;text-decoration:none;font-size:14px}.directory a[aria-current]{color:#fff;font-weight:700}.directory h3{font-size:22px;margin-bottom:16px}.dept-body li{margin:8px 0;color:var(--muted)}.note{padding:18px;border-left:3px solid var(--gold);background:#26251e;color:#e0d2b8}.casefile{display:grid;grid-template-columns:minmax(135px,220px) minmax(0,1fr);gap:25px;align-items:start}.casefile img{width:100%;height:auto;border:1px solid #8f8062}.casefile .actions{margin-top:15px}.rules-table{width:100%;border-collapse:collapse;margin:18px 0}.rules-table th,.rules-table td{padding:10px;border-bottom:1px solid #40504b;text-align:left;vertical-align:top}.rules-table th{color:var(--gold)}.rules-table td{color:var(--muted)}.practice,label{display:block}.practice input,.practice select,.feedback input,.feedback textarea,.feedback select{display:block;width:100%;background:#101819;color:var(--ivory);border:1px solid #65746a;border-radius:3px;padding:12px;font:inherit;margin:5px 0 14px}.feedback textarea{min-height:110px}.practice button,.feedback button{cursor:pointer}.practice output{display:block;margin-top:15px;color:var(--gold);font-weight:bold;min-height:28px}.locked{padding:30px;border:1px dashed #927c56;background:#171e1e}.locked .stamp{margin:0 0 15px}.foot{border-top:1px solid #455047}.footlinks{display:flex;gap:14px;flex-wrap:wrap}.hq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}.hq-grid .tile h3{font-size:24px}.hq-grid .tile{min-height:135px}@media(max-width:900px){.dept-body{grid-template-columns:1fr}.nav nav{justify-content:flex-start}.directory{max-width:none}.hq-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.shell{width:calc(100% - 32px)}.dept-hero .shell{padding:35px 0}.dept-body{padding:30px 0}.tiles,.hq-grid,.casefile{grid-template-columns:1fr}.casefile img{max-width:205px}.dept-hero p{font-size:16px}.rules-table th,.rules-table td{padding:8px}.footlinks{flex-direction:column;gap:5px}}
/* Stage 2: illustrated departmental entrances */
.dept-hero.illustrated-dept{position:relative;isolation:isolate;background:#101819;overflow:hidden;min-height:350px;display:flex;align-items:center;}
.dept-hero.illustrated-dept:before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(90deg,#101819 0%,#101819f2 17%,#101819bf 36%,#10181924 72%,#10181910 100%),var(--dept-art);background-position:center, right center;background-size:cover,auto max(100%,520px);background-repeat:no-repeat;}
.dept-hero.illustrated-dept .shell{padding:80px 0;}
.dept-hero.illustrated-dept h1,.dept-hero.illustrated-dept p{text-shadow:0 2px 14px #000,0 1px 3px #000;max-width:58%;}
.hq-grid .tile{padding:0 0 19px;overflow:hidden;display:block;background:#172223;transition:border-color .18s ease,background .18s ease;}
.hq-grid .tile .department-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-bottom:1px solid #635740;margin-bottom:20px;}
.hq-grid .tile .eyebrow,.hq-grid .tile h3,.hq-grid .tile p{margin-left:19px;margin-right:19px;}
.hq-grid .tile:hover{background:#22302e;}
@media(max-width:650px){.dept-hero.illustrated-dept{display:block;min-height:0;padding-top:clamp(150px,47vw,300px);}.dept-hero.illustrated-dept:before{inset:0 0 auto;height:clamp(190px,60vw,380px);background-image:linear-gradient(0deg,#101819 0%,#10181900 65%),var(--dept-art);background-position:center;background-size:cover;}.dept-hero.illustrated-dept .shell{padding:12px 0 30px;}.dept-hero.illustrated-dept h1,.dept-hero.illustrated-dept p{max-width:none;}.dept-hero.illustrated-dept .crumb{margin-bottom:16px;}}
@media(prefers-reduced-motion:reduce){.hq-grid .tile{transition:none}}

/* Stage 3: departmental vector insignia. The original Institute branding is unchanged. */
.dept-hero .dept-seal{display:block;width:100px;height:100px;margin:0 0 18px;filter:drop-shadow(0 5px 12px #0009);}
.dept-hero.illustrated-dept .shell{padding-top:42px;padding-bottom:42px;}
.hq-grid .tile .department-visual{position:relative;margin-bottom:31px;}
.hq-grid .tile .department-art{margin-bottom:0;}
.hq-grid .tile .card-seal{position:absolute;bottom:-19px;left:18px;width:76px;height:76px;filter:drop-shadow(0 4px 8px #000b);}
.directory a{display:flex;align-items:center;gap:10px;min-height:48px;}
.directory .directory-seal{flex-shrink:0;width:30px;height:30px;}
@media(max-width:650px){.dept-hero.illustrated-dept .shell{padding:12px 0 30px;}.dept-hero .dept-seal{width:78px;height:78px;margin-bottom:13px;}}

/* Stage 4 historical record */
.history-line{border-left:1px solid #927c56;margin:24px 0 12px;padding-left:24px}.history-line article{display:grid;grid-template-columns:86px minmax(0,1fr);gap:18px;position:relative;padding:0 0 24px}.history-line article:before{content:"";position:absolute;left:-29px;top:8px;width:9px;height:9px;background:#d0b585;border-radius:50%}.history-line time{font-family:Georgia,serif;font-size:26px;color:var(--gold)}.history-line h3{margin:0 0 7px}.history-line p{margin:0}.archive-meta{display:grid;grid-template-columns:minmax(70px,105px) minmax(0,1fr);gap:10px;margin:20px 0}.archive-meta dt{color:var(--gold);font-weight:bold}.archive-meta dd{margin:0;overflow-wrap:anywhere;color:var(--ivory)}@media(max-width:560px){.history-line article{grid-template-columns:1fr;gap:4px}.history-line time{font-size:23px}.archive-meta{gap:8px}}
