/* hunanprovince.org — independent English guide to Hunan, China
   Layout inspired by classic provincial portal structure; original identity. */

:root {
  --nav: #1b4383;
  --nav-dark: #133264;
  --bar: #0f5ca8;
  --bar-2: #1b6fc2;
  --red: #c8232c;
  --red-dark: #a51a22;
  --link: #1556a3;
  --head: #1a4f96;
  --tile: #efefef;
  --tile-hover: #e3e9f1;
  --text: #22262b;
  --muted: #5f6670;
  --line: #dfe3e8;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --green: #14784a;
  --purple: #8a2f8f;
  --gold: #e3b34a;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --shell: 1200px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--sans);
  color: var(--text);
  background: #1d4f86 linear-gradient(180deg, #45acc8 0, #2e86b6 22%, #1f5a95 55%, #173a6a 100%) fixed;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }  /* width/height attributes only reserve space; CSS decides the displayed size */
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--nav); padding: 10px 16px; z-index: 1000; font-weight: 700; }
.skip-link:focus { top: 10px; }

/* ---------- page frame ---------- */
.page { max-width: var(--shell); margin: 0 auto; background: var(--paper); box-shadow: 0 0 40px rgba(6, 30, 70, .35); min-height: 100vh; }
.inner { padding: 0 28px; }

/* ---------- utility bar ---------- */
.utility { background: #f2f2f2; font-size: 14px; color: #333; }
.utility .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility p { margin: 0; }
.utility nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.utility nav a { color: #333; }
.utility .badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; margin-right: 8px; letter-spacing: .04em; vertical-align: 1px; }

/* ---------- masthead ---------- */
.masthead .inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: auto; height: 68px; max-width: 100%; object-fit: contain; } /* assets/images/branding/logo.png, 1707x341 */
.brand-tag { margin-top: 8px; font-size: 15px; color: #575b61; letter-spacing: .02em; }
.mast-tools { text-align: right; }
.today { font-size: 16px; color: #444; margin-bottom: 8px; min-height: 1.4em; }
.search { display: flex; align-items: center; border: 2px solid #c9ced5; border-radius: 22px; width: 380px; max-width: 100%; background: #fff; overflow: hidden; }
.search input { flex: 1; border: 0; padding: 8px 14px; font: inherit; font-size: 15px; background: transparent; min-width: 0; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--bar); }
.search button { border: 0; border-left: 1px solid #c9ced5; background: none; padding: 4px 12px; cursor: pointer; color: #666; display: flex; }
.search button svg { width: 22px; height: 22px; }

/* ---------- primary navigation ---------- */
.mainnav { background: var(--nav); border-top: 3px solid var(--nav-dark); position: relative; z-index: 50; }
.mainnav .inner { padding-left: 0; padding-right: 0; }
.nav-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0 0 0 52px; display: flex; }
.nav-item { position: static; }
.nav-link { display: block; padding: 18px 22px 16px; color: #fff; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; position: relative; white-space: nowrap; }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.open > .nav-link { background: #fff; color: var(--nav); text-decoration: none; }
.nav-link[aria-current="page"] { background: #fff; color: var(--nav); }
.nav-link[aria-current="page"]::after, .nav-item:hover > .nav-link::after {
  content: ""; position: absolute; right: -26px; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(115deg, rgba(5, 25, 60, .45) 0 50%, transparent 50%);
  pointer-events: none;
}
.sub-toggle { display: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 30px rgba(10, 30, 60, .18); border-bottom: 3px solid var(--red);
  display: none; padding: 26px 52px 30px; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item.open > .mega { display: grid; }
.mega { grid-template-columns: repeat(4, 1fr); gap: 0; }
.mega-col { padding: 0 26px; border-left: 1px solid var(--line); }
.mega-col:first-child { border-left: 0; padding-left: 0; }
.mega h3 { font: 700 15px/1.3 var(--sans); color: #6d6d6d; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 14px; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li { margin: 0 0 10px; }
.mega a { color: var(--link); font-size: 15px; }
.mega .mega-note { font-size: 14px; color: var(--muted); }
.mega .pill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mega .pill-grid a { display: block; background: #6b8fc8; color: #fff; text-align: center; padding: 8px 6px; font-weight: 700; font-size: 14px; }
.mega .pill-grid a:hover { background: var(--bar); text-decoration: none; }

/* ---------- section bars (blue + red) ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, var(--bar), var(--bar-2)); color: #fff; padding: 0 22px; min-height: 46px; }
.bar h2, .bar h3 { margin: 0; font: 700 20px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.bar a.more { color: #cfe0f6; font-size: 22px; line-height: 1; letter-spacing: -4px; padding-right: 6px; }
.bar a.more:hover { color: #fff; text-decoration: none; }
.bar.red { background: var(--red); }
.boxed { border: 1px solid var(--line); border-top: 0; }

/* ---------- home: top grid ---------- */
.home-top { display: grid; grid-template-columns: 206px minmax(0, 1fr) 372px; gap: 22px; padding-top: 28px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.tile { background: var(--tile); color: #555; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 14px 6px; font-size: 14px; line-height: 1.3; min-height: 112px; }
.tile:hover { background: var(--tile-hover); color: var(--nav); text-decoration: none; }
.tile svg { width: 38px; height: 38px; color: #7a7a7a; }
.tile:hover svg { color: var(--nav); }

.carousel { position: relative; overflow: hidden; background: #0d2a5a; aspect-ratio: 4 / 3; min-height: 300px; }
.slides { list-style: none; margin: 0; padding: 0; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-headline { position: absolute; left: 0; right: 0; top: 16%; text-align: center; padding: 0 8%; font: italic 700 clamp(26px, 3.6vw, 46px)/1.12 var(--serif); color: #fff8e6; text-shadow: 0 3px 0 rgba(120, 20, 20, .45), 0 6px 18px rgba(0, 0, 0, .35); margin: 0; }
.slide-headline small { display: block; font: 600 clamp(13px, 1.3vw, 16px)/1.3 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #ffe0a3; margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15, 20, 30, .72); padding: 18px 120px 18px 26px; }
.slide-caption a { color: #fff; font-weight: 700; font-size: 19px; line-height: 1.35; }
.carousel-dots { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 10px; z-index: 3; }
.carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.carousel-dots button[aria-current="true"] { background: #fff; }
.carousel-arrow { position: absolute; top: 45%; z-index: 3; width: 38px; height: 54px; border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.carousel:hover .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.newsbox { display: flex; flex-direction: column; min-width: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 4px solid #e6e6e6; }
.tab { border: 0; background: #fff; text-align: left; padding: 11px 14px; font: 700 17px/1.2 var(--sans); letter-spacing: .01em; text-transform: uppercase; color: #222; cursor: pointer; }
.tab[aria-selected="false"] { background: linear-gradient(90deg, var(--bar), var(--bar-2)); color: #fff; }
.tab-panel { padding: 18px 14px 0; }
.tab-panel[hidden] { display: none; }
.lead-headline { font: 400 27px/1.4 var(--serif); margin: 0 0 18px; }
.lead-headline a { color: var(--head); }
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 18px; margin-bottom: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: #555; }
.bullets a { color: #222; }
.bullets a:hover { color: var(--link); }

/* ---------- home: middle grid ---------- */
.home-mid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 26px; padding-top: 28px; }
.events-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 26px 30px 24px; }
.event-card h3 { font: 400 25px/1.3 var(--serif); margin: 0 0 22px; color: #1d1d1d; }
.event-card h3 a { color: inherit; }
.event-card dl { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 16px; }
.event-card dt { color: #333; }
.event-card dd { margin: 0; }
.event-card p { font-size: 16px; color: #333; margin: 0; }

.focus-list { padding: 10px 22px 8px; }
.focus-item { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 12px 0; }
.focus-item + .focus-item { border-top: 1px solid var(--line); }
.focus-item img { width: 100%; aspect-ratio: 2 / 1.05; object-fit: cover; }
.focus-item h3 { font: 400 21px/1.3 var(--serif); margin: 4px 0 14px; }
.focus-item h3 a { color: #1d1d1d; }
.focus-item p { font-size: 15px; color: #444; line-height: 1.6; margin: 0; }

.contact-banner { display: flex; align-items: center; gap: 16px; padding: 22px 26px; color: #fff; background: radial-gradient(circle at 30% 30%, #1d6fc0, #0d3c7a 70%); position: relative; overflow: hidden; }
.contact-banner:hover { text-decoration: none; filter: brightness(1.08); }
.contact-banner svg { width: 74px; height: 50px; flex: none; }
.contact-banner strong { font-size: 21px; display: block; }
.contact-banner span { font-size: 14px; color: #cfe0f6; }
.glance-head { background: linear-gradient(100deg, #2a2a2a 0 62%, #8a6a2a 80%, #e3b34a); color: #fff; padding: 12px 34px; font: 700 21px/1.2 var(--sans); margin: 0; }
.glance { background: repeating-linear-gradient(135deg, #f3f3f3 0 6px, #ececec 6px 7px); padding: 14px 34px 16px; }
.glance dl { margin: 0; }
.glance div { padding: 10px 0; border-bottom: 1px dashed #cfcfcf; display: flex; gap: 8px; flex-wrap: wrap; }
.glance div:last-child { border-bottom: 0; }
.glance dt { font-weight: 700; }
.glance dd { margin: 0; }
.glance-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

.quick-links { display: grid; }
.quick-links a { display: flex; align-items: center; gap: 18px; color: #fff; font-weight: 700; font-size: 18px; padding: 16px 30px; background: linear-gradient(90deg, #1b77c8, #2a8ad6); }
.quick-links a:nth-child(2) { background: linear-gradient(90deg, #0f4a8f, #165aa8); }
.quick-links a:hover { text-decoration: none; filter: brightness(1.1); }
.quick-links .qicon { width: 56px; height: 56px; border-radius: 12px; background: #fff; color: var(--bar); display: grid; place-items: center; flex: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.quick-links .qicon svg { width: 34px; height: 34px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 14px; border: 1px solid var(--line); border-top: 0; }
.guide-grid a { background: #f0f0f0; color: #4a4a4a; font-weight: 700; font-size: 14.5px; padding: 12px 18px; line-height: 1.4; position: relative; }
.guide-grid a::after { content: ""; position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-top: 2px solid #d8d8d8; border-right: 2px solid #d8d8d8; }
.guide-grid a:hover { background: var(--tile-hover); color: var(--nav); text-decoration: none; }

/* ---------- practical info + cities ---------- */
.practical { margin-top: 28px; }
.practical-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 34px; padding: 22px 26px 18px; background: linear-gradient(120deg, #fff 0, #f2f5f9 40%, #fff 55%, #eef2f7 100%); }
.practical-grid section { margin-bottom: 18px; }
.practical-grid h3 { font: 700 21px/1.2 var(--serif); padding-bottom: 8px; border-bottom: 3px solid currentColor; margin: 0 0 14px; }
.practical-grid ul { list-style: none; padding: 0; margin: 0; }
.practical-grid li { margin-bottom: 10px; font-size: 15px; }
.practical-grid li a { color: #222; }
.practical-grid li a:hover { color: var(--link); }
.c-red { color: var(--red); }
.c-blue { color: #1f6fb8; }
.c-green { color: var(--green); }
.c-purple { color: var(--purple); }

.cities { margin-top: 22px; }
.city-grid { display: grid; grid-template-columns: repeat(6, 1fr) 1.9fr; gap: 16px 12px; padding: 22px 26px; background: #f6f8fb; list-style: none; margin: 0; }
.city-grid a { color: #222; font-size: 15px; }
.city-grid a::before { content: "> "; }

/* ---------- footer ---------- */
.site-footer { margin-top: 28px; }
.foot-links { background: #eeeeee; text-align: center; padding: 12px 20px; font-size: 16px; }
.foot-links a { margin: 0 10px; color: var(--link); }
.foot-links span { color: #888; }
.foot-main { background: var(--nav); color: #fff; padding: 28px 40px 30px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 34px; align-items: start; font-size: 15px; line-height: 1.75; }
.foot-main p { margin: 0; }
.foot-main a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.foot-badge { background: #fff; border-radius: 6px; padding: 12px 16px; line-height: 0; justify-self: start; }
.foot-logo { display: block; width: 190px; height: auto; max-width: 100%; object-fit: contain; }
.foot-disclaimer { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 16px; font-size: 13.5px; color: #cfdaf0; line-height: 1.6; }
.foot-copy { grid-column: 1 / -1; margin: -14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; font-size: 14px; color: #e4ecf8; letter-spacing: .01em; }

/* ---------- inner pages ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #aaa; }
.crumbs a { color: var(--muted); }
.page-banner { position: relative; margin-top: 14px; height: 230px; overflow: hidden; background: #0d2a5a; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .banner-text { position: absolute; inset: auto 0 0 0; padding: 22px 30px; background: linear-gradient(0deg, rgba(8, 20, 45, .82), rgba(8, 20, 45, 0)); color: #fff; }
.page-banner h1 { font: italic 700 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); margin: 0 0 4px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.page-banner p { margin: 0; color: #e4ecf8; font-size: 16px; max-width: 70ch; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; padding-top: 26px; }
.layout.full { grid-template-columns: minmax(0, 1fr); }
.main-col > section { margin-bottom: 34px; }
.main-col h2.sec { font: 400 28px/1.25 var(--serif); color: var(--head); padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.main-col h3 { font: 700 19px/1.3 var(--sans); color: #1d2a3a; }
.prose { max-width: 76ch; font-size: 16.5px; line-height: 1.72; }
.prose h2 { font: 400 26px/1.3 var(--serif); color: var(--head); margin-top: 1.4em; }
.prose h3 { font: 700 19px/1.35 var(--sans); margin-top: 1.4em; color: #1d2a3a; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--bar); background: var(--soft); font-family: var(--serif); font-size: 18px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.lede { font-size: 19px; line-height: 1.6; color: #333; max-width: 72ch; }
.note { background: #fff8e5; border: 1px solid #f0d993; padding: 14px 18px; font-size: 15px; line-height: 1.6; }
.note strong { color: #7a5600; }
.note.blue { background: #eef4fc; border-color: #c4d8f2; }
.note.blue strong { color: var(--nav); }

.side-box { margin-bottom: 24px; }
.side-box .bar { min-height: 42px; }
.side-box .bar h2 { font-size: 17px; }
.side-nav { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-top: 0; }
.side-nav a { display: block; padding: 11px 18px; color: #2a2f36; border-bottom: 1px solid var(--line); font-size: 15px; }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover, .side-nav a[aria-current] { background: var(--soft); color: var(--link); text-decoration: none; box-shadow: inset 4px 0 0 var(--red); }
.side-list { list-style: none; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-top: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.4; }
.side-list li:last-child { border-bottom: 0; }
.side-list time { display: block; font-size: 12.5px; color: var(--muted); }
.side-cta { display: block; background: var(--red); color: #fff; padding: 18px 20px; font-weight: 700; font-size: 17px; }
.side-cta span { display: block; font-weight: 400; font-size: 14px; color: #ffe1e1; margin-top: 4px; }
.side-cta:hover { background: var(--red-dark); text-decoration: none; }

/* cards & lists */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font: 400 20px/1.3 var(--serif); margin: 0; }
.card h3 a { color: var(--head); }
.card p { font-size: 15px; color: #444; margin: 0; line-height: 1.55; }
.meta { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--bar); background: #e8f0fb; padding: 2px 8px; margin-right: 6px; }
.tag.red { color: var(--red); background: #fbeaea; }
.tag.green { color: var(--green); background: #e5f4ec; }
.tag.purple { color: var(--purple); background: #f4e8f5; }

.news-row { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-row h2 { font: 400 22px/1.3 var(--serif); margin: 4px 0 8px; }
.news-row h2 a { color: var(--head); }
.news-row p { margin: 0; color: #444; font-size: 15.5px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters button { border: 1px solid #c9d3df; background: #fff; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: #2a2f36; }
.filters button[aria-pressed="true"] { background: var(--nav); border-color: var(--nav); color: #fff; }
.empty-state { padding: 26px; background: var(--soft); text-align: center; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.facts div { padding: 18px 18px 16px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font: 400 30px/1.1 var(--serif); color: var(--head); margin-bottom: 4px; }
.facts span { font-size: 14px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--nav); color: #fff; font-weight: 700; }
table.data tbody tr:nth-child(even) { background: #f8fafc; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; border: 1px solid var(--line); background: #fff; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--bar); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; font-size: 15px; color: #444; }

details.faq { border: 1px solid var(--line); margin-bottom: 10px; background: #fff; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--bar); }
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding: 0 18px 14px; font-size: 15.5px; line-height: 1.65; color: #333; }

/* events */
.event-list { display: grid; gap: 16px; }
.event-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; border: 1px solid var(--line); padding: 18px; align-items: start; background: #fff; }
.event-date { background: var(--nav); color: #fff; text-align: center; padding: 10px 6px; line-height: 1.1; }
.event-date .m { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #cfe0f6; }
.event-date .d { display: block; font: 700 28px/1.1 var(--serif); }
.event-date .y { display: block; font-size: 12px; color: #cfe0f6; }
.event-row h3 { font: 400 21px/1.3 var(--serif); color: var(--head); margin: 0 0 6px; }
.event-row p { margin: 0 0 6px; font-size: 15px; color: #444; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; white-space: nowrap; background: #eef1f5; color: #4a5260; }
.status.upcoming { background: #e5f4ec; color: var(--green); }
.status.ongoing { background: #fff1d6; color: #8a5a00; }
.status.past { background: #f0f0f0; color: #777; }
.status.recurring { background: #e8f0fb; color: var(--bar); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: none; position: relative; display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10, 20, 35, .7); color: #fff; font-size: 13px; padding: 6px 10px; text-align: left; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 25, .92); display: none; align-items: center; justify-content: center; z-index: 500; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { color: #fff; margin-top: 10px; font-size: 15px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; font-size: 28px; width: 48px; height: 48px; cursor: pointer; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

/* forms */
.form { display: grid; gap: 16px; max-width: 720px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c3cf; background: #fff; border-radius: var(--radius); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--bar); outline-offset: 0; border-color: var(--bar); }
.form .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form .error { color: var(--red); font-size: 13.5px; margin-top: 4px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.btn { display: inline-block; border: 0; background: var(--nav); color: #fff; font: inherit; font-weight: 700; padding: 11px 22px; cursor: pointer; }
.btn:hover { background: var(--bar); text-decoration: none; }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-dark); }
.btn.ghost { background: #fff; color: var(--nav); border: 2px solid var(--nav); }
.form-status { padding: 12px 16px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: #e5f4ec; border: 1px solid #a8d9bd; color: #0f5a37; }
.form-status.err { display: block; background: #fbeaea; border: 1px solid #ecb4b4; color: #8a1a1a; }

/* article */
.article-head h1 { font: 400 clamp(28px, 3.4vw, 40px)/1.22 var(--serif); color: var(--head); margin: 18px 0 12px; max-width: 30ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.share { display: flex; gap: 10px; align-items: center; margin: 26px 0; font-size: 14px; color: var(--muted); }
.share button, .share a { border: 1px solid #c9d3df; background: #fff; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--nav); }

/* search */
.search-results li { margin-bottom: 18px; }
.search-results h3 { margin: 0 0 4px; font: 400 20px/1.3 var(--serif); }
.search-results p { margin: 0; color: #444; font-size: 15px; }
.search-results .u { font-size: 13px; color: var(--green); }

/* misc */
.back-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; background: var(--nav); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.back-top.show { opacity: .9; pointer-events: auto; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.pad-b { padding-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.img-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 15.5px; margin: 0; }
.kv dt { font-weight: 700; color: #2a2f36; }
.kv dd { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 20px; font-size: 15px; }
.err-page { text-align: center; padding: 60px 20px 40px; }
.err-page h1 { font: 400 40px/1.2 var(--serif); color: var(--head); }

/* ---------- WeChat contact popup ---------- */
.wechat-dialog { padding: 0; border: 0; border-top: 4px solid var(--nav); width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); overflow: auto; background: #fff; color: var(--text); box-shadow: 0 20px 50px rgba(6, 30, 70, .35); }
.wechat-dialog::backdrop { background: rgba(8, 20, 45, .62); }
.wechat-inner { position: relative; padding: 20px 22px 18px; text-align: center; }
.wechat-inner h2 { font: 700 20px/1.3 var(--sans); color: var(--nav); margin: 0 34px 14px; }
.wechat-inner img { display: block; width: 100%; height: auto; }
.wechat-inner p { margin: 12px 0 0; font-size: 15.5px; color: #333; }
.wechat-inner .wechat-alt { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.wechat-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #555; cursor: pointer; }
.wechat-close:hover { color: var(--red); }
@media (max-width: 640px) {
  .wechat-inner { padding: 16px 14px 14px; }
  .wechat-inner h2 { font-size: 18px; }
  .wechat-inner p { font-size: 14.5px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .home-top { grid-template-columns: 190px minmax(0, 1fr); }
  .newsbox { grid-column: 1 / -1; }
  .nav-link { padding-left: 16px; padding-right: 16px; font-size: 16px; }
  .nav-list { padding-left: 20px; }
  .mega { padding: 22px 28px; }
}
@media (max-width: 960px) {
  .inner { padding: 0 18px; }
  .masthead .inner { flex-wrap: wrap; }
  .mast-tools { width: 100%; text-align: left; display: flex; flex-direction: column-reverse; gap: 6px; }
  .search { width: 100%; }
  .nav-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: #fff; font: 700 17px/1 var(--sans); padding: 15px 18px; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-list { display: none; flex-direction: column; padding: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
  .mainnav.open .nav-list { display: flex; }
  .nav-item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-link { padding: 14px 56px 14px 18px; }
  .nav-link[aria-current="page"]::after, .nav-item:hover > .nav-link::after { display: none; }
  .nav-item:hover > .nav-link { background: transparent; color: #fff; }
  .nav-link[aria-current="page"], .nav-item:hover > .nav-link[aria-current="page"] { background: #fff; color: var(--nav); }
  .sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 52px; height: 49px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; cursor: pointer; }
  .nav-item.open .sub-toggle { transform: rotate(45deg); }
  .mega, .nav-item:hover > .mega, .nav-item:focus-within > .mega { display: none; position: static; box-shadow: none; padding: 14px 18px 6px; grid-template-columns: 1fr 1fr; gap: 14px 0; border-bottom: 0; }
  .nav-item.open > .mega { display: grid; }
  .mega-col { border-left: 0; padding: 0 10px 0 0; }
  .home-top { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); order: 2; }
  .tile { min-height: 96px; }
  .carousel { order: 1; }
  .newsbox { order: 3; }
  .home-mid, .layout { grid-template-columns: 1fr; }
  .practical-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(4, 1fr); }
  .city-grid li.wide { grid-column: span 2; }
  .foot-main { grid-template-columns: 1fr 1fr; padding: 24px; }
  .foot-main .foot-badge { grid-column: 1 / -1; }
  .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .slide-caption { padding-right: 26px; padding-bottom: 42px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .utility .inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .utility nav { margin-left: 0; }
  .brand-logo { height: 48px; }
  .brand-tag { margin-top: 6px; font-size: 13px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .lead-headline { font-size: 23px; }
  .bullets li { white-space: normal; font-size: 16px; }
  .tab { font-size: 16px; }
  .events-pair { grid-template-columns: 1fr; padding: 20px; gap: 26px; }
  .focus-item, .news-row { grid-template-columns: 1fr; gap: 12px; }
  .practical-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid li.wide { grid-column: 1 / -1; }
  .foot-main { grid-template-columns: 1fr; }
  .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .event-row { grid-template-columns: 74px 1fr; }
  .event-row .status { grid-column: 2; justify-self: start; }
  .form .row, .split { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dd { margin-bottom: 8px; }
  .mega { grid-template-columns: 1fr; }
  .page-banner { height: 190px; }
  .slide-caption a { font-size: 16px; }
  .slide-headline { top: 12%; }
  .bar h2, .bar h3 { font-size: 17px; }
  .foot-links a { display: inline-block; margin: 4px 8px; }
  .foot-links span { display: none; }
}
@media (max-width: 380px) {
  .brand-logo { height: 40px; max-width: calc(100vw - 40px); }
  .tiles { gap: 8px; }
  .tile { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
@media print {
  body { background: #fff; }
  .utility, .mainnav, .site-footer .foot-links, .search, .back-top, .carousel-dots, .share { display: none !important; }
  .page { box-shadow: none; }
}

/* =====================================================================
   Navigation-driven pages (About Hunan facts, News sub-pages, Government,
   Services, Business / Tourism / News portal blocks)
   ===================================================================== */
@media (min-width: 961px) {
  .mega-col:nth-child(4n+1) { border-left: 0; padding-left: 0; }
  .mega-col:nth-child(n+5) { margin-top: 22px; }
}
.mega a[href$="unavailable.html"] { color: var(--link); }
.foot-logo { width: 240px; }
@media (max-width: 380px) { .foot-logo { width: 200px; } }
.ext::after { content: " \2197"; font-size: .85em; }

/* ---- sidebar + panel layout ---- */
.sec-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; padding: 26px 0 40px; align-items: start; }
.sec-side h2 { margin: 0; padding: 8px 0 10px; font: 700 20px/1.2 var(--sans); color: var(--red); border-bottom: 3px solid var(--red); }
.sec-side ul { list-style: none; margin: 0; padding: 0; }
.sec-side li { border-bottom: 1px dotted #b8bec6; }
.sec-side li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #1d2025; font-size: 16px; line-height: 1.3; }
.sec-side li a::after { content: "\203A"; color: #666; font-weight: 700; }
.sec-side li a:hover { background: var(--soft); text-decoration: none; }
.sec-side li.current a { background: linear-gradient(180deg, #cf3a33, #b3241f); color: #fff; }
.sec-side li.current a::after { color: #fff; }
.sec-main .crumbs { padding-top: 0; margin-top: 0; }
.sec-panel { border: 1px solid var(--line); border-top: 1px solid #999; padding: 0 0 30px; min-height: 360px; background: #fff; }
.panel-title { text-align: center; font: 700 20px/1.3 var(--sans); margin: 28px 0 14px; }
.doc-tools { background: #f2f2f2; margin: 14px 34px 0; padding: 8px 14px; display: flex; justify-content: flex-end; gap: 16px; }
.doc-tools button { border: 0; background: none; font: 14px var(--sans); color: #333; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 2px 4px; }
.doc-tools button svg { width: 20px; height: 20px; }
.doc-tools button:hover { color: var(--nav); }
.sec-body { padding: 8px 40px 0; font-size: 15.5px; line-height: 1.65; }
.sec-body .doc-h { text-align: center; font: 700 22px/1.3 var(--sans); margin: 24px 0 20px; }
.sec-body h3 { font: 700 16px/1.4 var(--sans); margin: 26px 0 8px; }
.sec-body ul { margin-bottom: 1em; }
.sec-body li { margin-bottom: 6px; }
.src-note { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 26px; }
.src-wrap { padding: 0 0 30px; }

/* ---- About Hunan landing ---- */
.ah-intro { padding: 22px 0 8px; }
.doc-title { text-align: center; font: 700 34px/1.2 var(--serif); color: #a3282c; margin: 6px 0 22px; }
.ah-intro .lede { max-width: 980px; margin: 0 auto 18px; }
.ah-facts { list-style: none; max-width: 980px; margin: 0 auto 14px; padding: 0; }
.ah-facts li { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 17px; }
.ah-facts svg { width: 26px; height: 26px; color: #6a6f76; flex: none; }
.ah-links { max-width: 980px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 15px; }
.ah-links a { background: var(--soft); border: 1px solid var(--line); padding: 5px 12px; color: var(--nav); }
.ah-links a:hover { background: var(--tile-hover); text-decoration: none; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; padding: 26px 0 18px; }
.tile-card { display: block; color: var(--text); }
.tile-card:hover { text-decoration: none; }
.tc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8eef5; box-shadow: 0 8px 10px -8px rgba(0, 0, 0, .45); }
.tc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile-card:hover .tc-img img { transform: scale(1.04); }
.tile-card h3 { font: 400 18px/1.3 var(--sans); color: #b3282c; margin: 18px 10px 8px; }
.tile-card p { font-size: 14.5px; margin: 0 10px; color: #333; }

/* ---- administrative division cards ---- */
.city-grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 6px 0 10px; }
.city-card { border: 1px solid #ead9d6; border-radius: 12px; padding: 16px 20px 14px; background: linear-gradient(135deg, #fff 55%, #fbeeee); scroll-margin-top: 20px; }
.city-card:target { outline: 3px solid #f2b705; }
.city-card h3 { margin: 0 0 8px; font: 700 20px/1.25 var(--sans); color: #c8232c; }
.city-card dl { margin: 0; }
.city-card dl div { display: flex; gap: 8px; font-size: 15px; padding: 2px 0; }
.city-card dt { color: #666; min-width: 132px; }
.city-card dd { margin: 0; font-weight: 700; }
.city-more { display: inline-block; margin-top: 8px; font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat-row div { background: var(--soft); border-top: 3px solid var(--bar); padding: 12px; text-align: center; }
.stat-row strong { display: block; font: 700 24px/1.2 var(--serif); color: var(--nav); }
.stat-row span { font-size: 13.5px; color: var(--muted); }

/* ---- news sub-pages ---- */
.dated-list { list-style: none; margin: 8px 0 0; padding: 0; }
.dated-list li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px dotted #bbb; font-size: 16px; }
.dated-list a { color: #111; }
.dated-list a:hover { color: var(--link); }
.dated-list time { color: #555; font-size: 13.5px; white-space: nowrap; padding-top: 2px; }
.dated-list.events li { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; align-items: baseline; }
.dated-list.events .ev-where { color: #555; font-size: 14px; }
.dated-list.compact li { padding: 9px 0; font-size: 15px; }
.dated-list.compact a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.list-note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.focus-rows { display: grid; gap: 0; }
.focus-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px dotted #bbb; }
.fr-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.focus-row h3 { margin: 0 0 8px; font: 400 18px/1.35 var(--sans); }
.focus-row p { margin: 0; font-size: 15px; }

/* ---- portal blocks (News / Business / Tourism landing pages) ---- */
.portal { display: grid; gap: 22px; padding: 22px 0 8px; }
.np-local-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; border-top: 0; }
.np-feature { position: relative; display: block; min-height: 300px; background: #0d2a5a; }
.np-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np-feature span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: rgba(15, 20, 30, .72); color: #fff; font-weight: 700; line-height: 1.35; }
.np-local-body .dated-list { padding: 8px 18px; }
.events-table td:first-child { white-space: nowrap; }
.focus-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 14px; }
.focus-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #0d2a5a; overflow: hidden; }
.focus-thumb img { width: 100%; height: 100%; object-fit: cover; }
.focus-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: rgba(15, 20, 30, .7); color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.focus-thumb:hover { text-decoration: none; }
.focus-thumb:hover img { transform: scale(1.04); transition: transform .3s; }

.bp { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 290px; align-items: start; }
.bp-event { padding: 14px 18px 18px; }
.bp-event h3 { font: 400 20px/1.25 var(--serif); color: var(--head); margin: 0 0 10px; }
.bp-event dt { color: var(--red); font-family: var(--serif); margin-top: 8px; }
.bp-event dd { margin: 0; font-size: 15px; }
.bp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bp-tile { display: block; background: var(--bar); color: #fff; }
.bp-tile:hover { text-decoration: none; filter: brightness(1.08); }
.bp-h { display: block; padding: 10px 14px; font: 700 15px/1.2 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.bp-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bp-gh { font: 700 18px/1.2 var(--sans); text-transform: uppercase; color: var(--head); padding-bottom: 10px; border-bottom: 3px solid var(--bar); margin: 0 0 14px; }
.bp-guide { display: block; background: linear-gradient(90deg, #2e6fba, #3a80cd); color: #fff; font: 400 17px/1.2 var(--serif); padding: 18px 20px; margin-bottom: 12px; }
.bp-guide:hover { background: var(--bar); text-decoration: none; }

.tp { gap: 20px; }
.tp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tp-quick a { display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(90deg, #2e6fba, #3a80cd); color: #fff; font: 700 17px/1.2 var(--serif); padding: 16px 12px; }
.tp-quick a:hover { background: var(--bar); text-decoration: none; }
.tp-quick svg { width: 30px; height: 30px; }
.tp-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tp-box { border: 1px solid var(--line); border-top: 3px solid var(--bar); padding: 14px 20px 16px; }
.tp-box h2 { font: 700 17px/1.3 var(--sans); text-transform: uppercase; color: var(--head); margin: 0 0 8px; }
.tp-box p { font-size: 14.5px; }
.tp-box ul { margin: 0; padding-left: 1.1em; }
.tp-regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tp-regions a { display: block; background: #6b8fc8; color: #fff; padding: 9px 12px; font-weight: 700; font-size: 14.5px; }
.tp-regions a:hover { background: var(--bar); text-decoration: none; }
.tp-stats { background: #eaf1fa; padding: 20px 24px 14px; scroll-margin-top: 20px; }
.tp-stats h2 { text-align: center; font: 400 21px/1.3 var(--serif); color: var(--head); margin: 0 0 16px; }
.tp-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tp-stat-grid div { background: #fff; padding: 12px 16px; }
.tp-stat-grid .wide { grid-column: 1 / -1; }
.tp-stat-grid span { display: block; font-size: 14px; color: #444; }
.tp-stat-grid strong { display: block; font: 700 22px/1.3 var(--serif); color: var(--nav); }
.tp-stat-grid em { font-style: normal; font-size: 14px; color: var(--green); font-weight: 700; }

/* ---- government ---- */
.gov-note { background: var(--soft); border-left: 4px solid var(--bar); padding: 12px 16px; margin: 22px 0 6px; font-size: 15px; }
.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 14px 0 34px; }
.gp { border: 1px solid #c8ccd2; border-top: 0; }
.gp-wide { grid-column: span 3; }
.gp-span2 { grid-column: span 2; }
.gp-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 10px 16px; font: 700 18px/1.2 var(--sans); text-transform: uppercase; color: var(--nav); border-top: 1px solid #999; border-bottom: 2px solid var(--red); }
.gp-h .more { font: 400 12px var(--sans); text-transform: none; }
.gp-b { padding: 14px 16px 16px; font-size: 15px; }
.gp-btn, .gp-big { display: block; background: linear-gradient(90deg, #2e6fba, #3a80cd); color: #fff; font: 700 17px/1.2 var(--serif); padding: 16px 18px; margin-bottom: 10px; }
.gp-btn { display: inline-block; padding: 10px 20px; }
.gp-btn:hover, .gp-big:hover { background: var(--bar); text-decoration: none; }
.year-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.year-chips a { background: #d8dde4; color: #222; text-align: center; padding: 8px; font-size: 16px; }
.year-chips a:hover { background: var(--tile-hover); text-decoration: none; }
.gp-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.gp-tabs a { background: #d8dde4; padding: 8px 16px; color: var(--nav); }
.gp-tabs a:first-child { background: var(--bar); color: #fff; }
.gov-cities { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px 12px; }

/* ---- services ---- */
.svc-top { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 12px; padding: 22px 0 28px; }
.svc-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.svc-side a { display: flex; align-items: center; min-height: 58px; padding: 0 20px; background: #f2f2f2; color: var(--nav); font-size: 15px; }
.svc-side a:hover { background: var(--tile-hover); text-decoration: none; }
.svc-hero { background: linear-gradient(120deg, #2a2f8f 0%, #3a3fc0 45%, #1b6fc2 100%); color: #fff; padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.svc-hero h1 { font: 700 34px/1.2 var(--sans); margin: 0 0 18px; color: #fff; }
.svc-hero p { font: italic 20px/1.5 var(--serif); max-width: 700px; color: #eef1ff; }
.svc-hero .svc-disclaimer { font: 14.5px/1.5 var(--sans); font-style: normal; color: #dbe3ff; margin: 6px 0 0; }
.svc-hero a { color: #fff; text-decoration: underline; }
.svc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 0; padding-bottom: 40px; }
.svc-col h2 { margin: 0; background: #333; color: #fff; font: 400 21px/1.2 var(--sans); padding: 13px 34px; border-right: 1px solid #666; }
.svc-col ul { list-style: none; margin: 0; padding: 22px 34px 0; min-height: 190px; }
.svc-col li { margin-bottom: 8px; }
.svc-col a { color: #222; font-size: 17px; }
.svc-col a:hover { color: var(--link); }

@media (max-width: 1180px) {
  .bp { grid-template-columns: 1fr 1fr; }
  .bp-guides { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .bp-gh { grid-column: 1 / -1; margin-bottom: 0; }
  .bp-guide { margin: 0; }
  .gov-cities { grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .sec-layout, .svc-top { grid-template-columns: 1fr; }
  .sec-body { padding: 8px 20px 0; }
  .doc-tools { margin: 14px 20px 0; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-grid { grid-template-columns: 1fr 1fr; }
  .gp-wide, .gp-span2 { grid-column: 1 / -1; }
  .svc-cols { grid-template-columns: 1fr 1fr; }
  .np-local-body { grid-template-columns: 1fr; }
  .focus-thumbs { grid-template-columns: 1fr 1fr; }
  .tp-quick { grid-template-columns: 1fr 1fr; }
  .tp-boxes { grid-template-columns: 1fr; }
  .bp { grid-template-columns: 1fr; }
  .bp-guides { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .city-grid-cards, .tile-grid, .svc-cols, .gov-grid, .bp-tiles { grid-template-columns: 1fr; }
  .gp-wide, .gp-span2 { grid-column: auto; }
  .gov-cities { grid-template-columns: repeat(2, 1fr); }
  .focus-row { grid-template-columns: 1fr; gap: 12px; }
  .dated-list.events li { grid-template-columns: 1fr; gap: 2px; }
  .svc-hero { padding: 30px 22px; }
  .svc-hero h1 { font-size: 26px; }
  .doc-title { font-size: 26px; }
  .tp-stat-grid { grid-template-columns: 1fr; }
  .city-card dt { min-width: 120px; }
}
@media print {
  .utility, .masthead, .mainnav, .sec-side, .doc-tools, .site-footer, .crumbs { display: none !important; }
  .sec-layout { display: block; }
  .page { box-shadow: none; }
  .sec-panel { border: 0; }
}

/* Government > Gov't Work Report: the user's map artwork, with the existing year links laid over its year labels */
.year-chips.wr-map { display: block; position: relative; max-width: 306px; margin: 4px auto 0; }
.year-chips.wr-map img { display: block; width: 100%; height: auto; }
.year-chips.wr-map a { position: absolute; left: 39.2%; width: 23.9%; height: 7.7%; padding: 0; background: transparent; color: transparent; font-size: 0; border-radius: 3px; }
.year-chips.wr-map a:hover, .year-chips.wr-map a:focus-visible { background: transparent; outline: 2px solid var(--red); outline-offset: 1px; }
.year-chips.wr-map a:nth-of-type(1) { top: 15.4%; }
.year-chips.wr-map a:nth-of-type(2) { top: 28.3%; }
.year-chips.wr-map a:nth-of-type(3) { top: 40.9%; }
.year-chips.wr-map a:nth-of-type(4) { top: 53.8%; }
.year-chips.wr-map a:nth-of-type(5) { top: 66.5%; }

/* Government > Who's Who: layout follows the user's reference screenshot. Portraits are the user's AI-generated illustrations, shown at their native pixel size. */
.ww-box { border: 1px solid #c8ccd2; margin: 18px 0 0; background: #fff; }
.ww-lead { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 28px; padding: 18px 16px 18px; border-bottom: 3px solid #e3e5e8; }
.ww-p { margin: 0; text-align: center; }
.ww-p figure { margin: 0; }
.ww-img { position: relative; display: block; margin: 0 auto; width: max-content; line-height: 0; }
.ww-img img { display: block; max-width: none; height: auto; }
.ww-name { display: block; margin: 7px auto 0; background: #d7261e; color: #fff; font: 400 12px/1.35 var(--sans); padding: 1px 4px; width: 90px; white-space: nowrap; }
.ww-p-lead .ww-name { width: 104px; margin-top: 8px; }
.ww-role { display: block; margin-top: 4px; font: 400 12px/1.35 var(--sans); color: #1d3f78; }
.ww-p-lead .ww-role { color: #222; }
.ww-resume { max-width: 650px; }
.ww-resume h3 { margin: 0 0 18px; padding: 4px 12px; background: #eceef1; font: 700 15px/1.4 var(--serif); color: #1d3f78; }
.ww-resume p { margin: 0; font: 400 12.5px/1.65 var(--sans); color: #222; }
.ww-row { list-style: none; margin: 0; padding: 14px 16px 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 10px; align-items: start; }
.ww-row .ww-p { display: flex; justify-content: flex-start; }
.ww-row .ww-p figure { width: 90px; }
.ww-note { margin: 0; padding: 10px 16px 12px; font-size: 13px; line-height: 1.5; color: #444; background: var(--soft); }
.ww.gp { border: 0; }
@media (max-width: 960px) { .ww-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ww-row .ww-p { justify-content: center; } }
@media (max-width: 640px) { .ww-lead { grid-template-columns: 1fr; gap: 16px; } .ww-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
