/* ============================================================
   เว็บไซต์งานพัสดุ มหาวิทยาลัยราชภัฏชัยภูมิ — public stylesheet
   ============================================================ */
:root {
  --navy: #17306b;
  --navy-deep: #0f1f47;
  --navy-soft: #e8edf8;
  --gold: #e0a526;
  --gold-deep: #9a6a00;
  --gold-soft: #fbf1d9;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: #dce1ea;
  --ink: #1c2333;
  --muted: #5b6478;
  --ok: #2f7d5b;
  --ok-soft: #e4f2ea;
  --red: #b4372f;

  --f-head: "Anuphan", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Thai", "Noto Sans Thai", "Sarabun", system-ui, sans-serif;

  --wrap: 1200px;
  --r-sm: 6px;
  --r-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.35; margin: 0 0 .5em; color: var(--navy-deep); }
p { margin: 0 0 1em; }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 860px; }

/* ---------- announce + utility ---------- */
.announce { background: var(--gold); color: var(--ink); font-size: .95rem; padding: .45rem 0; font-weight: 500; }
.utility { background: var(--navy-deep); color: #c9d3ea; font-size: .875rem; }
.utility-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; flex-wrap: wrap; }
.utility span, .utility a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.utility a:hover { color: #fff; }
.utility-right { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- header / nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-family: var(--f-head); font-size: 1.2rem; color: var(--navy-deep); }
.brand-text small { color: var(--muted); font-size: .85rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4rem; color: var(--navy); cursor: pointer; }

.mainnav { border-top: 1px solid var(--line); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: .25rem; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: flex; align-items: center; gap: .3rem; height: 100%;
  padding: .7rem .85rem; font: 500 .98rem/1.4 var(--f-body); color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.nav > li > a:hover, .nav > li > button:hover { color: var(--navy); background: var(--paper); }
.nav > li > a[aria-current], .nav > li > button.is-active { border-bottom-color: var(--gold); color: var(--navy-deep); }
.nav .ic { transition: transform .15s; }
.nav button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 14px 30px -12px rgba(15, 31, 71, .25);
  display: none;
}
.has-sub:hover > .sub, .has-sub > button[aria-expanded="true"] + .sub { display: block; }
.sub a { display: block; padding: .55rem .8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); line-height: 1.5; }
.sub a:hover { background: var(--navy-soft); color: var(--navy-deep); }
.nav-cta { margin-left: auto; }
.nav-cta a { color: var(--navy) !important; font-weight: 600 !important; }

/* ---------- hero ---------- */
.hero {
  background: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: start; }
.hero-kicker { color: var(--gold); font-weight: 500; margin-bottom: .75rem; font-size: .98rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
.hero-lede { color: #c9d3ea; max-width: 36em; font-size: 1.05rem; margin-bottom: 1.75rem; }
.hero-search {
  display: flex; align-items: center; background: #fff; border-radius: var(--r-md); padding: .35rem .35rem .35rem 1rem;
  gap: .5rem; color: var(--muted); box-shadow: 0 0 0 4px rgba(224, 165, 38, .25);
}
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: .65rem .25rem; color: var(--ink); background: none; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 4px var(--gold); }
.hero-search select { border: 0; border-left: 1px solid var(--line); font: inherit; font-size: .95rem; color: var(--muted); padding: .55rem .5rem; background: none; max-width: 11rem; }
.hero-search button { background: var(--gold); color: var(--ink); border: 0; border-radius: var(--r-sm); font: 600 1rem var(--f-head); padding: .75rem 1.4rem; cursor: pointer; }
.hero-search button:hover { background: #f0b73a; }
.hero-quick { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-quick a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; color: #e5ebf7; text-decoration: none; font-size: .92rem;
}
.hero-quick a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }
.hero-quick .count { font-size: .8rem; color: var(--gold); font-variant-numeric: tabular-nums; }

/* register — สมุดทะเบียนเอกสารล่าสุด */
.register { background: #fff; color: var(--ink); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.register-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.25rem .75rem; border-bottom: 2px solid var(--navy); }
.register-head h2 { font-size: 1.15rem; margin: 0; }
.register-head a { font-size: .9rem; }
.register-list { list-style: none; margin: 0; padding: 0; }
.register-list li { display: grid; grid-template-columns: 4.25rem 1fr; border-bottom: 1px solid var(--line); }
.register-list li:last-child { border-bottom: 0; }
.register-list time {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .6rem 0;
  background: var(--gold-soft); border-right: 1px solid #efdcae; color: var(--gold-deep); line-height: 1.15;
}
.register-list time b { font: 700 1.45rem var(--f-head); font-variant-numeric: tabular-nums; }
.register-list time span { font-size: .78rem; }
.register-list li > div { padding: .65rem 1rem; min-width: 0; }
.register-list a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.register-list a:hover { color: var(--navy); text-decoration: underline; }
.reg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; margin: .2rem 0 0; font-size: .82rem; color: var(--muted); }
.register-list .empty { display: block; padding: 1.5rem; color: var(--muted); }

/* ---------- file badge ---------- */
.fbadge { display: inline-block; font: 600 .68rem/1 var(--f-body); letter-spacing: .02em; padding: .25rem .4rem; border-radius: 4px; vertical-align: middle; }
.fbadge-pdf { background: #fbe7e5; color: var(--red); }
.fbadge-xls { background: var(--ok-soft); color: var(--ok); }
.fbadge-word { background: var(--navy-soft); color: var(--navy); }
.fbadge-other { background: #eef0f4; color: var(--muted); }

/* ---------- services strip ---------- */
.services { border-bottom: 1px solid var(--line); background: var(--white); }
.services-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service {
  display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.25rem; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line);
}
.service:first-child { border-left: 1px solid var(--line); }
.service > .ic:first-child { color: var(--navy); }
.service > .ic:last-child { color: var(--muted); margin-left: auto; }
.service span { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.service strong { font-family: var(--f-head); font-weight: 600; }
.service small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service:hover { background: var(--paper); }
.service:hover strong { color: var(--navy); }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-tight { padding-block: 2.5rem 4rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: .3rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 46em; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- disclosure month grid (signature element) ---------- */
.disclosure { background: var(--paper); }
.fy-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .25rem; gap: .25rem; }
.fy-tabs button { border: 0; background: none; font: 500 .95rem var(--f-body); padding: .45rem 1rem; border-radius: var(--r-sm); color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.fy-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.month-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.month { position: relative; min-height: 6.5rem; border-radius: var(--r-md); }
.month > a:first-child, .month .m-inner {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 6.5rem;
  padding: .85rem 1rem; border-radius: var(--r-md); text-decoration: none;
}
.m-name { font: 700 1.2rem var(--f-head); font-variant-numeric: tabular-nums; }
.m-state { font-size: .85rem; }
.month.is-done > a:first-child { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ok); color: var(--ink); }
.month.is-done .m-state { color: var(--ok); font-weight: 600; }
.month.is-done .m-state::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); margin-right: .4rem; vertical-align: middle; }
.month.is-done > a:first-child:hover { border-color: var(--navy); border-top-color: var(--ok); box-shadow: 0 10px 22px -14px rgba(15,31,71,.45); }
.month.is-done > a:first-child:hover .m-name { color: var(--navy); }
.m-xls { position: absolute; right: .6rem; bottom: .6rem; font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: .1rem .45rem; border-radius: 4px; text-decoration: none; }
.m-xls:hover { background: var(--ok); color: #fff; }
.month.is-pending .m-inner { border: 1.5px dashed #c3cad8; color: var(--muted); background: rgba(255,255,255,.5); }
.month.is-pending .m-state { color: var(--gold-deep); }
.month.is-future .m-inner { border: 1px solid transparent; background: #e9edf3; color: #8c94a6; }
.fy-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; color: var(--muted); }
.fy-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fy-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.fy-links a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }

/* ---------- news ---------- */
.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, auto); gap: 1.25rem 2rem; }
.news-lead { grid-row: 1 / span 3; }
.news-link { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.news-thumb { aspect-ratio: 16 / 9; background: var(--navy-soft); border-radius: var(--r-md); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-link:hover .news-thumb img { transform: scale(1.03); }
.news-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #9aa8c8; }
.news-body { padding-top: .85rem; }
.news-meta { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.tag { display: inline-block; background: var(--navy-soft); color: var(--navy); font-size: .8rem; padding: .05rem .55rem; border-radius: 4px; font-weight: 500; }
.tag-light { background: rgba(255,255,255,.14); color: #fff; }
.news-item h3 { font-size: 1.08rem; font-weight: 600; margin: 0; line-height: 1.5; }
.news-link:hover h3 { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; }
.news-lead h3 { font-size: 1.4rem; }
.news-ex { color: var(--muted); margin: .5rem 0 0; font-size: .97rem; }
.news-layout .news-item:not(.news-lead) .news-link { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: start; }
.news-layout .news-item:not(.news-lead) .news-body { padding-top: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; margin-top: 1.5rem; }
.empty-box { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 2rem; text-align: center; color: var(--muted); }
.empty-box p { margin: .25rem 0; }

/* ---------- process steps ---------- */
.process { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 1.1rem 0 0; }
.steps li::before { content: ""; position: absolute; top: 1.15rem; left: 2.5rem; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-no {
  position: relative; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 1.05rem var(--f-head); margin-bottom: .9rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- banners ---------- */
.banners { padding-top: 0; }
.carousel { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.carousel-track { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; margin: 0; }
.slide img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.carousel-ctrl { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .5rem; background: rgba(15,31,71,.75); border-radius: 999px; padding: .3rem; }
.carousel-ctrl button { background: none; border: 0; color: #fff; width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.carousel-ctrl button:hover { background: rgba(255,255,255,.15); }
.carousel-ctrl [data-prev] .ic { transform: scaleX(-1); }
[data-dots] { display: flex; gap: .35rem; }
[data-dots] i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255,255,255,.4); }
[data-dots] i.on { background: var(--gold); }

/* ---------- inner page head ---------- */
.page-head { background: var(--navy-deep); color: #c9d3ea; padding: 2.25rem 0 2.5rem; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); margin: .3rem 0 .4rem; }
.page-head p { margin: 0; max-width: 48em; }
.page-head-lede p { margin: 0; }
.crumbs { font-size: .88rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: #c9d3ea; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- documents page ---------- */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; padding-block: 2.25rem 4rem; }
.side-h { font-size: 1rem; color: var(--muted); font-weight: 600; margin: 0 0 .6rem; }
.side-cats { list-style: none; margin: 0; padding: 0; position: sticky; top: 9rem; }
.side-cats a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); line-height: 1.45; }
.side-cats a:hover { background: var(--paper); }
.side-cats a[aria-current] { background: var(--navy); color: #fff; }
.side-cats a[aria-current] em { color: var(--gold); }
.side-cats span { flex: 1; }
.side-cats em { font-style: normal; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem; }
.filter-q { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 .75rem; color: var(--muted); }
.filter-q input { flex: 1; border: 0; font: inherit; padding: .6rem 0; background: none; min-width: 0; }
.filter-q input:focus { outline: none; }
.filter-q:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.filter-sel { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.filter-sel select { font: inherit; font-size: .98rem; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.btn-primary { background: var(--navy); color: #fff; border: 0; border-radius: var(--r-sm); font: 600 1rem var(--f-head); padding: .65rem 1.4rem; cursor: pointer; }
.btn-primary:hover { background: var(--navy-deep); }
.result-count { color: var(--muted); margin: 1.1rem 0 .6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.result-count b { color: var(--ink); }

.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.doc-table th { text-align: left; font: 600 .88rem var(--f-body); color: var(--muted); background: var(--paper); padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:hover { background: #fafbfd; }
.c-no { width: 4rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center !important; }
.c-fy, .c-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-file { white-space: nowrap; }
.c-title a { color: var(--ink); font-weight: 500; text-decoration: none; }
.c-title a:hover { color: var(--navy); text-decoration: underline; }
.row-cat, .row-note { display: block; font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.pin { display: inline-block; margin-left: .4rem; font-size: .74rem; background: var(--gold-soft); color: var(--gold-deep); padding: 0 .4rem; border-radius: 4px; vertical-align: middle; }
.fbtn { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .88rem; text-decoration: none; color: var(--ink); margin: 0 .3rem .3rem 0; background: #fff; }
.fbtn:hover { border-color: var(--navy); color: var(--navy); }
.fbtn-lg { padding: .6rem 1rem; font-size: 1rem; }

.pager { display: flex; gap: .35rem; justify-content: center; margin-top: 1.75rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: var(--r-sm); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a { border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--navy); color: var(--navy); }
.pager .cur { background: var(--navy); color: #fff; }
.pager .gap { color: var(--muted); }

/* ---------- article / prose ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-block: 2.5rem 4rem; max-width: 1140px; }
.article-cover { margin: 0 0 1.75rem; border-radius: var(--r-md); overflow: hidden; }
.prose { max-width: 42em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: var(--r-sm); margin: 1rem 0; }
.prose blockquote { margin: 1em 0; padding: .5em 1em; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45em .7em; }
.gallery-h { font-size: 1.2rem; margin-top: 2.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.gallery a:hover img { opacity: .85; }
.side-news { list-style: none; padding: 0; margin: 0; }
.side-news li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.side-news a { display: block; text-decoration: none; color: var(--ink); line-height: 1.5; font-weight: 500; }
.side-news a:hover { color: var(--navy); text-decoration: underline; }
.side-news time { font-size: .83rem; color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 18, 40, .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-sm); }
.lb-close { position: fixed; top: 1rem; right: 1rem; background: #fff; border: 0; border-radius: 50%; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; cursor: pointer; }
.page-next { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page-next a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; font-weight: 500; }
.page-next a:hover { border-color: var(--navy); background: var(--navy-soft); }

/* ---------- people ---------- */
.people { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.people-heads { grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); justify-content: center; }
.people-h { font-size: 1.3rem; margin: 0 0 1rem; }
.person { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.person-lead { border-top: 4px solid var(--gold); }
.person-photo { flex: none; width: 84px; height: 104px; border-radius: var(--r-sm); overflow: hidden; background: var(--navy-soft); display: grid; place-items: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo span { font: 700 1.8rem var(--f-head); color: var(--navy); }
.person h3 { font-size: 1.05rem; margin: 0 0 .1rem; }
.person-pos { color: var(--navy); font-size: .92rem; margin: 0 0 .35rem; font-weight: 500; }
.person-resp { font-size: .88rem; color: var(--muted); margin: 0 0 .35rem; line-height: 1.6; }
.person-contact { display: flex; flex-direction: column; gap: .1rem; font-size: .85rem; margin: 0; }
.person-contact span, .person-contact a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.chart-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; background: var(--paper); }
.chart-figure img { margin: 0 auto; }
.chart-figure figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; }
.contact-dl { margin: 0 0 2rem; }
.contact-dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-dl dt { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 500; }
.contact-dl dd { margin: 0; }
.contact-staff { list-style: none; margin: 0; padding: 0; }
.contact-staff li { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.contact-staff span { color: var(--muted); font-size: .88rem; }
.map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c4de; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem; }
.footer-h { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer a { color: #dfe6f5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact, .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .55rem; line-height: 1.6; }
.footer-contact .ic { margin-top: .3rem; color: var(--gold); }
.footer-links li { margin-bottom: .35rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-base-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.footer-admin { color: #8794b4 !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav > li > a, .nav > li > button { padding-inline: .6rem; font-size: .93rem; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps li:nth-child(3)::before { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; border-top: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; }
  .mainnav.open { display: block; }
  .nav { flex-direction: column; gap: 0; padding-block: .5rem; }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; border-bottom: 0; border-left: 3px solid transparent; padding: .75rem .5rem; }
  .nav > li > a[aria-current], .nav > li > button.is-active { border-left-color: var(--gold); }
  .has-sub:hover > .sub { display: none; }
  .has-sub > button[aria-expanded="true"] + .sub { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 1rem; min-width: 0; }
  .nav-cta { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .month-grid { grid-template-columns: repeat(4, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .news-lead { grid-row: auto; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .side-cats { position: static; display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; }
  .side-cats a { white-space: nowrap; border: 1px solid var(--line); }
  .side-h { display: none; }
  .article-layout, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid section:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .utility-row > span:first-child { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1rem; }
  .brand img { width: 42px; height: 42px; }
  .hero { padding: 2.25rem 0 2.75rem; }
  .hero-search { flex-wrap: wrap; padding: .5rem; }
  .hero-search > .ic { display: none; }
  .hero-search input { flex: 1 1 100%; padding: .5rem; }
  .hero-search select { flex: 1; border-left: 0; border-top: 1px solid var(--line); max-width: none; }
  .hero-search button { flex: none; }
  .month-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .month > a:first-child, .month .m-inner { padding: .65rem .7rem; min-height: 5.5rem; }
  .m-name { font-size: 1.05rem; }
  .m-state { font-size: .78rem; }
  .m-xls { display: none; }
  .news-layout .news-item:not(.news-lead) .news-link { grid-template-columns: 7rem 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 2.3rem 1fr; column-gap: 1rem; padding: 0 0 1.25rem; }
  .steps li::before { top: 2.3rem; bottom: 0; left: 1.1rem; right: auto; width: 2px; height: auto; display: block !important; }
  .steps li:last-child::before { display: none !important; }
  .step-no { grid-row: 1 / span 2; margin: 0; }
  .services-row { grid-template-columns: 1fr; }
  .service { border-right: 0; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .slide img { aspect-ratio: 2 / 1; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr { padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
  .doc-table td { border: 0; padding: .1rem 0; }
  .doc-table .c-no { display: none; }
  .doc-table td[data-label] { display: inline-block; width: auto; margin-right: 1rem; font-size: .85rem; color: var(--muted); }
  .doc-table td[data-label]::before { content: attr(data-label) " "; }
  .doc-table .c-file { padding-top: .5rem; white-space: normal; }
  .contact-dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility, .site-header, .site-footer, .hero-search, .filter-bar, .doc-side, .pager { display: none !important; }
  .page-head { background: none; color: #000; }
  .page-head h1 { color: #000; }
}
