:root {
  --ink: #16202e;
  --muted: #697585;
  --faint: #9aa6b4;
  --line: #e6eaf0;
  --bg: #f4f7fa; 
  --card: #fff;
  --sea: #0d6e8c;
  --sea-dk: #0a5168;   
  --sun: #f0843c;
  --shadow: 0 1px 2px rgba(16, 32, 46, 0.05), 0 6px 18px rgba(16, 32, 46, 0.06);
  --filter-bg: rgba(244, 247, 250, 0.94);
  --filter-fade: rgba(244, 247, 250, 0.97);
  --light: #eef1f5;
  --light-ink: #5a6776;
  --nav-h: 56px;
  --tip-bg: #16202e;
  --tip-fg: #fff;   
}
body.dark { 
  --ink: #e7edf3; 
  --muted: #9fb0c0;
  --faint: #7a8da0;  
  --line: #27333f; 
  --bg: #0e151d; 
  --card: #16202b;
  --sea: #3fa3c4;  
  --sea-dk: #0d6e8c;
  --sun: #f0a05a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.55);
  --filter-bg: rgba(14, 21, 29, 0.92);
  --filter-fade: rgba(14, 21, 29, 0.96);
  --tip-bg: #27333f;
  --tip-fg: #e7edf3;  
} 
.deets { 
  max-width: 1000px;
}
button:focus {
  outline: transparent 0px solid;
}
h1,
h2, 
h3,
h4,
h5,
h6 {
  color: inherit !important;
  margin-bottom: 0;
}
.brand h1, .region-head h2 {
  margin-bottom: 0 !important;
}
.mark, mark {
  padding: 0; 
  background-color: transparent;
}
.site-nav .nav-brand:hover {
  color: inherit;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    -apple-system,
    Segoe UI,
    Roboto, 
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  transition:
    background 0.2s,
    color 0.2s;
}
label {
  margin: 0;
  font-weight: inherit;
}
.card {
  flex-direction: column;
}

/* ---- site navbar ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-brand .mark {
  font-weight: 800;
  color: var(--sea);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- dark-mode toggle ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: 2px solid var(--sun);
  color: var(--sun);
  transition:
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.theme-toggle:hover {
  border-color: var(--sea);
  color: var(--sea);
}
.theme-toggle:active {
  transform: scale(0.92);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.theme-toggle .ic-sun {
  display: none;
}
body.dark .theme-toggle .ic-sun {
  display: block;
}
body.dark .theme-toggle .ic-moon {
  display: none;
}

/* ---- hero ---- */
.topbar {
  position: relative;
  color: #fff;
  background: #082e3d;
  overflow: hidden;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1505228395891-9a51e7e86bf6?w=1900&q=70")
    center 55% / cover no-repeat;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0; 
  background: linear-gradient(
    110deg,
    rgba(8, 46, 61, 0.92) 0%,
    rgba(11, 72, 92, 0.58) 48%,
    rgba(240, 132, 60, 0.42) 100%
  );
}
.topbar .wrap {
  position: relative;
  z-index: 1;
  max-width: 1700px;
  margin: 0 auto;
  padding: 40px 24px 36px;
}
@media (min-width: 820px) {
  .topbar .wrap {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}
@media (min-width: 1300px) {
  .topbar .wrap {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
@media (min-width: 1600px) {
  .topbar .wrap {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}
.brand {
  display: flex;
  align-items: center; 
}
.brand h1 {
  margin: 0;
  line-height: 1.03;
  font-size: clamp(1.6rem, 0.9rem + 3.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}
.topbar p {
  margin: 10px 0 0;
  opacity: 0.92;
  font-size: 0.95rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ---- search ---- */
.topbar .search {
  margin-top: 18px;
  max-width: 400px; 
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  overflow: hidden; 
  transition: border-color 0.15s;
}
.topbar .search:focus-within {
  border-color: var(--sun);
}
.search .ico-search {
  width: 18px;
  height: 18px;  
  margin-left: 13px; 
  opacity: 0.8;
  fill: #fff;
  flex: 0 0 auto;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 11px 14px;
  font-size: 0.95rem;
  outline: none;
}
.search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.search-clear {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.15s;
}
.search-clear:hover {
  background: rgba(255, 255, 255, 0.34);
}
.search-clear svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}
.search.has-text .search-clear {
  display: inline-flex;
}

/* ---- intro / market overview ---- */
.intro-wrap {
  max-width: 1700px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}
@media (min-width: 1200px) {
  .intro {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
    padding: 28px;
  }
}
@media (min-width: 1600px) {
  .intro { 
    padding: 50px;
  }  
} 
/* subtle bloom in the bottom-left of the intro card (dark mode only) */
body.dark .intro {
  background:
    radial-gradient(
      680px 680px at 0% 100%,
      rgba(63, 163, 196, 0.2),
      transparent 72%
    ),
    var(--card);
}
.intro-text h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.intro-text p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}
.intro-facts {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.intro-facts li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}
.intro-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}
.intro-facts li strong {
  font-weight: 700;
}
.intro-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}
.intro-media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden; 
  background: #dfe5ec;
}
/* below 1200: fixed 5-wide : 3-tall banner */
.intro-media img { 
  display: block;
  width: 100%; 
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: center;
}
/* 1200+: image fills the height of the text column next to it, cropping as needed */
@media (min-width: 1200px) {
  .intro-media { height: 100%; }
  .intro-media img { height: 100%; }
}

/* ---- featured area tiles ---- */
.areas-head {
  max-width: 1700px;
  margin: 0 auto;
  padding: 26px 24px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.areas-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--faint);
  white-space: nowrap;
}
.areas-head .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rail-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rail-nav.hidden {
  display: none;
}
.rail-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sea);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 0.15s;
}
.rail-btn:hover:not(:disabled) {
  border-color: var(--sea);
  background: var(--sea);
  color: #fff;
}
.rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}
.rail-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.area-rail {
  max-width: 1700px;
  margin: 0 auto;
  padding: 2px 24px 6px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.area-rail::-webkit-scrollbar {
  display: none;
}
.area-rail.dragging {
  cursor: grabbing;
}
.area-tile {
  position: relative;
  flex: 0 0 auto;
  width: clamp(160px, 44vw, 224px);
  height: clamp(213px, 58.7vw, 299px);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  background: #dfe5ec;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.area-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.area-tile:hover img {
  transform: scale(1.07);
}
.area-tile .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 32, 44, 0) 42%,
    rgba(8, 32, 44, 0.32) 68%,
    rgba(8, 32, 44, 0.82) 100%
  );
}
.area-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.area-name {
  color: #fff;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.area-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.area-meta svg {
  width: 10px;
  height: 10px;
  fill: var(--sun);
  transition: transform 0.15s;
}
.area-tile:hover {
  border-color: var(--sun);
  box-shadow:
    0 4px 12px rgba(13, 110, 140, 0.12),
    0 14px 30px rgba(16, 32, 46, 0.14);
}
.area-tile:hover .area-meta svg {
  transform: translateX(2px);
}

/* ---- search bar (sits with the area filters) ---- */
.searchbar {
  max-width: 1700px;
  margin: 18px auto 4px;
  padding: 0 24px;
}
.searchbar .search {
  display: flex;
  align-items: center;
  max-width: 640px;
  background: var(--card);
  border: 2px solid var(--sea);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(16, 32, 46, 0.06),
    0 10px 26px rgba(13, 110, 140, 0.14);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.searchbar .search:focus-within {
  border-color: var(--sun);
  box-shadow:
    0 2px 6px rgba(16, 32, 46, 0.06),
    0 10px 26px rgba(240, 132, 60, 0.18);
}
.searchbar .search .ico-search {
  fill: var(--sea);
  opacity: 1;
  width: 20px;
  height: 20px;
  margin-left: 15px;
}
.searchbar .search input {
  color: var(--ink);
  font-size: 1rem;
  padding: 14px 14px;
}
.searchbar .search input::placeholder {
  color: var(--muted);
}
.searchbar .search .search-key {
  border-color: var(--line);
  color: var(--faint);
}
.searchbar .search-clear {
  background: var(--light);
}
.searchbar .search-clear svg {
  fill: var(--light-ink);
}
.searchbar .search-clear:hover {
  background: var(--line);
}
@media (max-width: 560px) {
  .areas-head {
    padding: 20px 16px 12px;
  }
  .area-rail {
    padding: 2px 16px 6px;
  }
  .searchbar {
    margin-top: 14px;
    padding: 0 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .area-tile img {
    transition: none;
  }
  .area-tile:hover img {
    transform: none;
  }
}

/* ---- filter strip ---- */
.filterbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--filter-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.filterbar .inner {
  position: relative;
  max-width: 1700px;
  margin: 0 auto;
}
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.chips.dragging {
  cursor: grabbing;
}
.chips.dragging .chip {
  pointer-events: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
}
.chip:hover {
  border-color: var(--sea);
  color: var(--sea);
}
.chip.active {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}
.scroll-hint {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 56px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(90deg, transparent, var(--filter-fade) 60%);
}
.scroll-hint.show {
  opacity: 1;
}
.scroll-hint svg {
  width: 20px;
  height: 20px;
  fill: var(--sea);
  animation: nudge 1.2s ease-in-out infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

/* ---- area hover popup (floats free of the scrolling chip strip) ---- */
.area-tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  left: 0;
  top: 0;
  background: var(--tip-bg);
  color: var(--tip-fg);
  border-radius: 10px;
  padding: 10px 13px;
  min-width: 150px;
  max-width: 240px;
  box-shadow: 0 10px 26px rgba(16, 32, 46, 0.24);
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.12s,
    transform 0.12s;
}
.area-tip.show {
  opacity: 1;
  transform: translateY(0);
}
.area-tip .caret {
  position: absolute;
  top: -5px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: var(--tip-bg);
  transform: rotate(45deg);
  border-radius: 2px;
}
.area-tip .h {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sun);
  font-weight: 700;
  margin-bottom: 6px;
}
.area-tip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.area-tip li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  color: var(--tip-fg);
  font-weight: 500;
  white-space: nowrap;
}
.area-tip li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sun);
}

/* ---- main ---- */
main {
  max-width: 1700px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}
.region-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  padding: 13px 20px;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 70px);
  background-image: linear-gradient(
    100deg,
    #0a3f54 0%,
    #0d6e8c 42%,
    #1f9bb0 72%,
    #46c6c2 100%
  );
  background-size: 220% 100%;
  animation: oceanDrift 16s ease-in-out infinite;
}
body.dark .region-head {
  background-image: linear-gradient(
    100deg,
    #082c3a 0%,
    #0d5b73 45%,
    #157f93 74%,
    #2ea7a6 100%
  );
}
@keyframes oceanDrift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.region-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 62%
  );
  background-size: 260% 100%;
  animation: oceanSheen 7.5s ease-in-out infinite;
}
@keyframes oceanSheen {
  0% {
    background-position: 130% 0;
  }
  55%,
  100% {
    background-position: -30% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .region-head {
    animation: none;
  }
  .region-head::after {
    display: none;
  }
}
.region-head > * {
  position: relative;
  z-index: 1;
}
.region-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.region-head .line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.seeall {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--sun);
  border: 1px solid var(--sun);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
}
.seeall,
.seeall:hover {
  color: #fff;
}
.seeall:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}
.seeall svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* responsive grid: 1 -> 2 -> 3 -> 4 -> 6 */
.grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 820px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---- card ---- */
a.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s;
}
a.card:hover {
  border-color: var(--sun);
  border-width: 2px;
  box-shadow:
    0 4px 12px rgba(13, 110, 140, 0.1),
    0 14px 30px rgba(16, 32, 46, 0.1);
}
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #dfe5ec;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--light);
  color: var(--light-ink);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
}
.body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* subtle bloom in the bottom-left of the card body (dark mode only) */
body.dark a.card .body {
  background: radial-gradient(
    150px 150px at 0% 100%,
    rgba(63, 163, 196, 0.2),
    transparent 72%
  );
}
.headline {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.excerpt {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 14px;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.date {
  color: var(--faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sea);
  border: 1px solid var(--sea);
  border-radius: 8px;
  padding: 6px 12px;
  transition: 0.15s;
}
.readmore svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  transition: transform 0.15s;
}
a.card:hover .readmore {
  background: var(--sea);
  color: #fff;
}
a.card:hover .readmore svg {
  transform: translateX(2px);
}

.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

/* ---- tab panels ---- */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: .95rem; }

/* ---- pagination ---- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}
.pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 9px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.pager button:hover:not(:disabled) {
  border-color: var(--sea);
  color: var(--sea);
}
.pager button.active {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}
.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagefoot {
  text-align: center;
  color: var(--faint);
  font-size: 0.78rem;
  padding: 8px 0 36px;
}

@media (max-width: 560px) {
  body {
    --nav-h: 52px;
  }
  .site-nav .nav-inner {
    padding: 0 16px;
  }
  .nav-brand {
    font-size: 1.3rem;
  }
  .topbar .wrap {
    padding: 34px 16px 30px;
  }
  .intro-wrap {
    padding: 22px 16px 0;
  }
  .chips {
    padding: 12px 16px;
  }
  main {
    padding: 8px 16px 48px;
  }
  .region-head {
    padding: 12px 16px;
  }
  .region-head h2 {
    font-size: 1.25rem;
  }
}

/* ---- site footer ---- */
.site-footer {
  --foot-bg: #eef2f6;
  background: var(--foot-bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 56px;
}
body.dark .site-footer {
  --foot-bg: #0a1119;
}
.foot-inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 48px 24px 26px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .foot-top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 44px;
  }
  .foot-brand {
    grid-column: auto;
  }
}
.foot-brand {
  max-width: 380px;
}
.foot-logo {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.foot-logo .mark {
  font-weight: 800;
  color: var(--sea);
}
.foot-tagline {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.foot-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.foot-social a:hover {
  border-color: var(--sea);
  color: var(--sea);
}
.foot-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.foot-col h3 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--faint);
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.foot-col a:hover {
  color: var(--sea);
}
.foot-alert {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sun);
  border-radius: 10px;
  background: var(--card);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.foot-alert strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 560px) {
  .foot-inner {
    padding: 40px 16px 24px;
  }
}

/* ---- search keycap hint ---- */
.search-key {
  flex: 0 0 auto;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.search:focus-within .search-key,
.search.has-text .search-key {
  display: none;
}

/* ---- result count ---- */
.result-count {
  max-width: 1700px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.82rem;
  color: var(--faint);
}

/* ---- back to top ---- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--sea);
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 32, 46, 0.25);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s,
    background 0.15s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  background: var(--sea-dk);
}
.to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
@media (max-width: 560px) {
  .result-count {
    padding: 14px 16px 0;
  }
}
