:root{
  --black:#070707;--charcoal:#111214;--red:#c51f30;--gold:#9d8b2a;--gold2:#b4a247;
  --goldsoft:#f6f1d8;--redsoft:#fff0f2;--ink:#121417;--muted:#69717c;--line:#dde2e7;--bg:#f1f3f5;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:52px}
body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--ink)}
.shell{width:min(1480px,calc(100% - 48px));margin:0 auto}
.svg-icon{width:19px;height:19px;display:block}
.masthead{background:linear-gradient(100deg,#060606,#191a1d);color:#fff;border-bottom:4px solid var(--red)}
.masthead-inner{height:134px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:18px}.brand img{width:88px;height:88px;object-fit:contain}
.department{font:600 12px Oswald,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#d4d7dc}
.brand h1{margin:2px 0;font:700 38px/1 Oswald,sans-serif;text-transform:uppercase}
.tagline{font-size:11px;color:var(--gold2);font-weight:700}
.header-right{display:flex;align-items:center;gap:12px}.datetime{text-align:right}.datetime span{display:block;font-size:10px;color:#c5c9cf}.datetime strong{font:600 23px Oswald,sans-serif}
.online,.admin-link{height:34px;border:1px solid rgba(255,255,255,.13);border-radius:999px;display:flex;align-items:center;gap:7px;padding:0 11px;font-size:10px;font-weight:800}
.online i{width:8px;height:8px;border-radius:50%;background:#1dac60}
.admin-link{color:#fff;text-decoration:none;border-color:rgba(180,162,71,.38);background:rgba(157,139,42,.12)}.admin-link .svg-icon{width:13px;height:13px;color:var(--gold2)}
.nav{position:sticky;top:0;z-index:100;background:#0f1012;color:#fff;box-shadow:0 2px 9px rgba(0,0,0,.12)}
.nav-inner{height:40px;display:flex;align-items:center;gap:28px}.nav a{height:40px;display:flex;align-items:center;text-decoration:none;color:#bdc2ca;font-size:11px;font-weight:700;border-bottom:3px solid transparent}.nav a:hover{color:#fff;border-color:var(--gold2)}
.welcome{background:#fff;border-bottom:1px solid var(--line)}.welcome-inner{padding:14px 0;display:grid;grid-template-columns:1fr minmax(420px,540px);gap:26px;align-items:center}
.eyebrow{color:var(--red);font-size:9px;text-transform:uppercase;letter-spacing:.11em;font-weight:800}
.welcome h2{margin:2px 0;font:600 26px Oswald,sans-serif;text-transform:uppercase}.welcome p{margin:0;color:var(--muted);font-size:11px}
.search{height:46px;border:1px solid #d8dde3;border-radius:11px;background:#fbfcfd;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:9px;padding:0 12px}.search input{border:0;outline:0;background:transparent;font-size:12px}.search kbd{font-size:9px;border:1px solid #d8dde3;border-radius:5px;background:#fff;padding:3px 6px;color:#747b86}
.main{padding:16px 0 34px}.section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:9px}.section-title h2{margin:0;font:600 22px Oswald,sans-serif;text-transform:uppercase}.section-title span{font-size:9px;color:#9299a4}
.primary-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}
.primary-card{min-height:148px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;text-decoration:none;color:inherit;display:flex;flex-direction:column;transition:.16s ease}
.primary-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(18,22,28,.09)}
.primary-icon{width:44px;height:44px;border-radius:12px;background:var(--redsoft);color:var(--red);display:grid;place-items:center;margin-bottom:10px}.primary-title{font-size:13px;font-weight:800}.primary-desc{font-size:10px;color:var(--muted);margin-top:3px}.primary-launch{margin-top:auto;padding-top:8px;color:var(--red);font-size:9px;text-transform:uppercase;font-weight:800;display:flex;justify-content:space-between;align-items:center}.primary-launch .svg-icon{width:15px;height:15px}
.groups-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.group-panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.group-head{padding:11px 14px;border-bottom:1px solid #eceef1}.group-head h3{margin:2px 0 0;font:600 18px Oswald,sans-serif;text-transform:uppercase}.group-body{padding:5px}
.resource-row{min-height:54px;border-radius:8px;padding:6px 8px;display:grid;grid-template-columns:34px 1fr 18px;gap:9px;align-items:center;text-decoration:none;color:inherit}.resource-row:hover{background:#f7f8f9}.resource-icon{width:32px;height:32px;border-radius:8px;background:#f3f4f6;color:#59616c;display:grid;place-items:center}.resource-row:hover .resource-icon{background:var(--redsoft);color:var(--red)}.resource-row strong{display:block;font-size:11px}.resource-row small{display:block;font-size:9px;color:var(--muted);margin-top:1px}.resource-row>span{color:#abb2bc}.resource-row>span .svg-icon{width:14px;height:14px}
.empty{margin:24px 0;padding:24px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted)}
footer{background:#0b0b0c;color:#aeb4bc;border-top:3px solid var(--red)}.footer-inner{height:66px;display:flex;align-items:center;justify-content:space-between;font-size:9px}
.hidden{display:none!important}
@media(max-width:1100px){.primary-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.header-right{display:none}.welcome-inner{grid-template-columns:1fr;gap:10px}.groups-grid{grid-template-columns:1fr}.masthead-inner{height:120px}}
@media(max-width:600px){.shell{width:calc(100% - 28px)}.brand img{width:64px;height:64px}.brand h1{font-size:28px}.department{font-size:9px}.tagline{font-size:9px}.nav{display:none}.primary-grid{grid-template-columns:1fr}.search kbd{display:none}}


/* =========================
   VERSION 8 POLISH PASS
   ========================= */

/* Header readability */
.department{
  font-size:13px;
}
.tagline{
  font-size:13px;
  font-weight:600;
}
.datetime span{
  font-size:11px;
}
.datetime strong{
  font-size:25px;
}

/* Navigation readability */
.nav a{
  font-size:12px;
}

/* Welcome block */
.welcome h2{
  font-size:30px;
}
.welcome p{
  font-size:13px;
  line-height:1.5;
}
.eyebrow{
  font-size:10px;
}
.search input{
  font-size:14px;
}

/* Section hierarchy */
.section-title h2{
  font-size:24px;
}
.section-title span{
  font-size:10px;
}

/* Department system cards */
.primary-card{
  min-height:154px;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}
.primary-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 30px rgba(18,22,28,.12);
  border-color:#c9cfd7;
  background:#fff;
}
.primary-icon{
  width:48px;
  height:48px;
  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}
.primary-card:hover .primary-icon{
  background:#ffe3e7;
  color:#a91527;
  transform:scale(1.04);
}
.primary-title{
  font-size:15px;
}
.primary-desc{
  font-size:12px;
  line-height:1.4;
}
.primary-launch{
  font-size:11px;
}
.primary-launch .svg-icon{
  opacity:.65;
  transform:translate(-2px,2px);
  transition:opacity .18s ease, transform .18s ease;
}
.primary-card:hover .primary-launch .svg-icon{
  opacity:1;
  transform:translate(0,0);
}

/* Lower panels: stronger type, less wasted height */
.groups-grid{
  align-items:start;
}
.group-panel{
  align-self:start;
}
.group-head{
  padding-top:10px;
  padding-bottom:10px;
}
.group-head h3{
  font-size:22px;
}
.group-body{
  padding:4px 5px 6px;
}
.resource-row{
  min-height:50px;
  padding-top:5px;
  padding-bottom:5px;
  transition:background .15s ease, transform .15s ease;
}
.resource-row:hover{
  transform:translateX(2px);
}
.resource-row strong{
  font-size:14px;
}
.resource-row small{
  font-size:11px;
  line-height:1.35;
  margin-top:2px;
}
.resource-icon{
  width:34px;
  height:34px;
}
.resource-row>span .svg-icon{
  width:15px;
  height:15px;
}

/* Keep the Administration button intentionally muted */
.admin-link{
  opacity:.88;
}
.admin-link:hover{
  opacity:1;
}

/* Slightly stronger footer readability */
.footer-inner{
  font-size:10px;
}

@media(max-width:1100px){
  .primary-title{font-size:15px}
  .primary-desc{font-size:12px}
}
@media(max-width:850px){
  .welcome h2{font-size:28px}
  .welcome p{font-size:12px}
}
@media(max-width:600px){
  .department{font-size:10px}
  .tagline{font-size:10px}
  .welcome h2{font-size:25px}
  .search input{font-size:13px}
  .primary-title{font-size:15px}
  .primary-desc{font-size:12px}
  .resource-row strong{font-size:13px}
  .resource-row small{font-size:11px}
}


/* =========================
   VERSION 9 FINAL POLISH
   ========================= */

/* Slightly shorter header */
.masthead-inner{
  height:124px;
}
.brand img{
  width:82px;
  height:82px;
}
.brand h1{
  font-size:36px;
}
.tagline{
  font-size:12px;
}

/* Dedicated search band */
.search-band{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:10px 0;
}
.search--wide{
  width:100%;
  max-width:none;
  height:48px;
}
.search--wide input{
  font-size:14px;
}
.welcome{
  border-bottom:1px solid var(--line);
}
.welcome-inner--compact{
  display:block;
  padding:11px 0 12px;
}
.welcome-inner--compact h2{
  margin-top:2px;
  margin-bottom:2px;
  font-size:28px;
}
.welcome-inner--compact p{
  font-size:12px;
}

/* More app-like Department System tiles */
.primary-grid{
  gap:12px;
}
.primary-card{
  min-height:176px;
  padding:16px;
}
.primary-icon{
  width:56px;
  height:56px;
  border-radius:15px;
  margin-bottom:14px;
}
.primary-icon .svg-icon{
  width:26px;
  height:26px;
}
.primary-title{
  font-size:16px;
}
.primary-desc{
  font-size:12px;
  line-height:1.45;
}
.primary-launch{
  font-size:11px;
  padding-top:12px;
}

/* Touch-friendly resource rows */
.resource-row{
  min-height:60px;
  padding-top:8px;
  padding-bottom:8px;
  transition:
    background .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}
.resource-row:hover{
  background:#f7f8f9;
  transform:translateX(3px);
  box-shadow:inset 3px 0 0 var(--gold);
}
.resource-icon{
  width:36px;
  height:36px;
}
.resource-row strong{
  font-size:14px;
}
.resource-row small{
  font-size:11px;
}
.resource-row>span{
  transition:color .15s ease, transform .15s ease;
}
.resource-row:hover>span{
  color:var(--red);
  transform:translate(2px,-1px);
}

/* Lower panel tightening while preserving readability */
.group-head{
  padding-top:9px;
  padding-bottom:9px;
}
.group-body{
  padding-top:4px;
  padding-bottom:5px;
}

/* Keep Administration understated */
.admin-link{
  opacity:.84;
  background:rgba(157,139,42,.08);
}
.admin-link:hover{
  opacity:1;
  background:rgba(157,139,42,.14);
}

/* Slightly more compact nav spacing */
.nav-inner{
  height:38px;
}
.nav a{
  height:38px;
}

/* Better above-the-fold balance */
.main{
  padding-top:14px;
}

@media(max-width:850px){
  .masthead-inner{
    height:114px;
  }
  .brand img{
    width:72px;
    height:72px;
  }
  .brand h1{
    font-size:32px;
  }
}
@media(max-width:600px){
  .masthead-inner{
    height:104px;
  }
  .primary-card{
    min-height:158px;
  }
  .welcome-inner--compact h2{
    font-size:24px;
  }
}
