:root {
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #172033;
  --color-muted: #64748b;
  --color-border: #dbe3ef;
  --color-accent: #174a7c;
  --color-on-accent: #ffffff;
  --space-page: clamp(1rem, 4vw, 4rem);
  --content-width: 72rem;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --color-border: #334155;
  --color-accent: #93c5fd;
  --color-on-accent: #0f172a;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

html {
  scrollbar-gutter: stable;
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  min-height: 100vh;
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  line-height: 1.6;
}

.page-shell {
  width: min(100% - 2rem, var(--content-width));
  flex: 1;
  margin: 0 auto;
  padding: 2rem;
  animation: page-in 0.28s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell,
  #site-footer footer {
    animation: none;
  }
}

/* HEADER & NAVIGATION */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem var(--space-page);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border-bottom-color: var(--color-border);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--color-text);
  transition: opacity 0.15s ease;
}

.site-logo:hover,
.site-logo:focus-visible {
  opacity: 0.62;
}

.site-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  align-self: stretch;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 0.9rem;
  align-self: stretch;
  border-radius: 0;
  position: relative;
  transition: color 0.15s ease;
}

.site-nav a::after,
.info-tab::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -0.89rem;
  height: 1px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after,
.info-tab:hover::after,
.info-tab.is-active::after {
  transform: scaleX(1);
}

.site-nav:hover a[aria-current="page"]:not(:hover)::after {
  transform: scaleX(0);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-uoa-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  padding-right: 1rem;
  border-right: 1px solid var(--color-border);
}

.nav-uoa-logo-dark {
  display: none;
}

[data-theme="dark"] .nav-uoa-logo-light {
  display: none;
}

[data-theme="dark"] .nav-uoa-logo-dark {
  display: block;
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] #mobile-menu {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .data-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .survey-tab {
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* HAMBURGER MENU */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  margin-left: auto;
}

.hamburger:hover { color: var(--color-accent); }

.hamburger svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* MOBILE MENU */

#mobile-menu {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  border-top: 1px solid var(--color-border);
  z-index: 199;
  overflow-y: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.14);
}

#mobile-menu.open { display: flex; }

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 1.35rem var(--space-page);
  color: var(--color-text);
  font-size: clamp(1.125rem, 4vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-background);
  padding-left: calc(var(--space-page) + 0.45rem);
}

/* THEME TOGGLE */

.tbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: all 0.2s;
  flex-shrink: 0;
  min-width: 44px;
}

.tbtn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.tbtn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.tbtn-moon                { display: none }
[data-theme="light"] .tbtn-sun  { display: block }
[data-theme="light"] .tbtn-moon { display: none }
[data-theme="dark"]  .tbtn-sun  { display: none }
[data-theme="dark"]  .tbtn-moon { display: block }

.mobile-theme-toggle {
  justify-content: center;
  width: calc(100% - 2rem);
  margin: 1rem;
  min-height: 2.75rem;
}

/* FOOTER */

footer {
  padding: 22px var(--space-page);
  background: var(--color-surface);
}

#site-footer footer {
  animation: page-in 0.28s ease both;
}

.foot-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

footer nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.foot-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 22px;
}

footer nav { display: flex; gap: 1.25rem; }

.foot-text,
footer a,
footer button {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.foot-text {
  color: var(--color-muted);
}

footer a,
footer button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
}

footer a:hover,
footer button:hover {
  color: var(--color-accent);
}

footer button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* HOME PAGE */

.home-hero,
.home-cards,
.home-overview {
  --home-title-size: clamp(2rem, 4vw, 2.625rem);
  --home-body-size: 0.95rem;
  --home-compact-size: 0.875rem;
  --home-card-title-size: 1rem;
  --home-section-title-size: 1.5625rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.home-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-title {
  font-size: var(--home-title-size);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.05;
}

.home-subtitle {
  font-size: var(--home-body-size);
  color: var(--color-muted);
  line-height: 1.45;
}

.home-visual {
  width: 100%;
  min-height: 220px;
  max-height: 340px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.home-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-card-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.home-card-title {
  font-size: var(--home-card-title-size);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.home-card-desc {
  font-size: var(--home-compact-size);
  color: var(--color-muted);
  flex: 1;
}

.home-card-link {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--home-compact-size);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: background 0.15s;
}

.home-card-link:hover {
  background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface));
}

.home-overview-title {
  font-size: var(--home-section-title-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.data-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(23, 32, 51, 0.07);
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-cards { grid-template-columns: 1fr; }
}

/* COST ESTIMATOR */


.estimator-panel p {
  color: var(--color-muted);
}

.estimator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.estimator-side {
  display: grid;
  gap: 1.5rem;
}

.estimator-panel {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 1.5rem;
}

.estimator-panel h2 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.estimator-form {
  display: grid;
  gap: 0.95rem;
}

.estimator-form h2 {
  margin-bottom: 0;
}

.estimator-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.estimator-form select,
.estimator-form input[type="number"],
.estimator-form input[inputmode="numeric"] {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 0.75rem;
}

.estimator-form select:focus,
.estimator-form input[type="number"]:focus,
.estimator-form input[inputmode="numeric"]:focus {
  border-color: var(--color-accent);
  outline: 3px solid color-mix(in srgb, var(--color-accent) 22%, transparent);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-accent);
}

.estimator-form button,
.download-actions button {
  min-height: 2.55rem;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 1rem;
}

.estimator-form button:disabled {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-accent) 20%, var(--color-border));
  color: var(--color-accent);
  cursor: not-allowed;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.download-actions button {
  min-height: 2.15rem;
}

.download-actions button:disabled {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
  color: var(--color-accent);
  cursor: not-allowed;
}

.download-actions button:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
}

.download-actions button:not(:disabled):hover,
.download-actions button:not(:disabled):focus-visible {
  background: color-mix(in srgb, var(--color-accent) 86%, #000000);
  border-color: color-mix(in srgb, var(--color-accent) 86%, #000000);
}

.download-format-note {
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.estimator-result dl { display: grid; gap: 0; }

.estimator-result dl div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(10rem, 1.35fr);
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.estimator-result dl div:first-child { padding-top: 0; }
.estimator-result dl div:last-child  { border-bottom: 0; padding-bottom: 0; }

.estimator-result dt {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.estimator-result dd {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.estimator-result dl div.unrecoverable-cost-row {
  margin: 0 -0.65rem;
  border-bottom-color: color-mix(in srgb, #dc2626 14%, var(--color-border));
  border-left: 2px solid color-mix(in srgb, #dc2626 70%, var(--color-border));
  border-radius: 4px;
  background: color-mix(in srgb, #dc2626 5%, var(--color-surface));
  padding-top: 0.85rem;
  padding-right: 0.65rem;
  padding-bottom: 0.85rem;
  padding-left: 0.65rem;
}

.estimator-result dl div.unrecoverable-cost-row:last-child {
  padding-bottom: 0.85rem;
}

.estimator-result .unrecoverable-cost-row dt {
  color: color-mix(in srgb, #dc2626 48%, var(--color-text));
}

.estimator-result .unrecoverable-cost-row dd {
  color: color-mix(in srgb, #dc2626 68%, var(--color-accent));
}

.estimator-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.estimator-notes {
  padding: 1rem 1.35rem;
  font-size: 0.9rem;
}

.estimator-notes h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

/* SURVEY CTA */

.survey-panel {
  position: fixed;
  right: 0;
  bottom: 6rem;
  z-index: 9998;
  width: 270px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 1.25rem;
  box-shadow: -4px 4px 20px rgba(23, 32, 51, 0.1);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.survey-panel.is-open {
  transform: translateX(0);
}

.survey-panel-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.survey-panel-close:hover {
  color: var(--color-text);
}

.survey-panel-heading {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

.survey-panel-body {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.survey-panel-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.survey-panel-btn:hover {
  opacity: 0.88;
}

.survey-tab {
  position: fixed;
  right: 0;
  bottom: 6rem;
  z-index: 9997;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 0.65rem 0.4rem;
  background: var(--color-accent);
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-on-accent);
  cursor: pointer;
  box-shadow: -2px 2px 8px rgba(23, 32, 51, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.survey-tab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.survey-tab:hover {
  opacity: 0.88;
}

.survey-tab-text {
  display: block;
  transform: rotate(180deg);
  color: var(--color-on-accent);
}

.survey-panel-btn:focus-visible,
.contact-survey-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
  outline-offset: 3px;
}

.contact-survey-link {
  justify-self: flex-start;
}

/* ABOUT PAGE */

.about-page {
  display: grid;
  gap: 3rem;
}

.content-grid {
  max-width: 100%;
  display: grid;
  gap: 0.75rem;
}


.acknowledgement {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.acknowledgement h2 {
  font-size: 1.25rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
}

.stat-section-label {
  color: var(--color-text) !important;
}

.topic-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  width: fit-content;
  padding-bottom: 0.4rem;
  border-bottom: 2.5px solid var(--color-text);
}

.info-tabs {
  display: flex;
  gap: 0.35rem;
}

.info-tab {
  appearance: none;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  position: relative;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.info-tab::after {
  bottom: -0.05rem;
}

.info-tab:hover {
  color: var(--color-text);
}

.info-tab.is-active {
  color: var(--color-text);
  background: var(--color-surface);
}

.info-panel {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0 6px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-panel[hidden] {
  display: none;
}

.accordion {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1.5rem;
  align-items: center;
}

.faq-decoration {
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-decoration {
    max-width: 150px;
    margin: 0 auto;
  }
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  appearance: none;
  background: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.2s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}

.accordion-item.is-open .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-content-inner {
  overflow: hidden;
}

.accordion-content-body {
  padding: 0 1.5rem 1.5rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.content-grid h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.content-grid p,
.about-card p,
.profile-card p {
  color: var(--color-muted);
}


.about-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-card,
.profile-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 1.35rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 2px 12px rgba(23, 32, 51, 0.07);
}

.about-card h2,
.section-heading h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.about-card h2 {
  margin-bottom: 1rem;
}

.methodology-card {
  display: flex;
  flex-direction: column;
}

.objective-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objective-list li {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-background);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.65rem 0.75rem;
}

/* Cost Estimator link */
.estimator-link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.estimator-link:hover {
  text-decoration-thickness: 0.12em;
}

.aims-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.aims-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.aims-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.method-placeholder {
  display: grid;
  gap: 0.5rem;
  place-items: center;
  flex: 1;
  min-height: 8.5rem;
  margin-top: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-background);
  padding: 1.25rem;
}

.method-placeholder span {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.principal-investigator {
  display: grid;
  gap: 1rem;
}

.section-heading {
  max-width: 42rem;
}

.principal-investigator .section-heading h2 {
  margin-top: 0.4rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.profile-image {
  width: 100%;
  max-width: 11rem;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  object-fit: cover;
}

.profile-main {
  display: grid;
  gap: 0.45rem;
}

.profile-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}


.profile-card p {
  max-width: 100%;
}

.formula-block {
  margin: 0.5rem 0 0.25rem;
}

.formula-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  background: color-mix(in srgb, var(--color-accent) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 20%, var(--color-border));
  border-radius: 6px;
  padding: 1.1rem 1.5rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.formula-rhs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.formula-lhs {
  font-weight: 700;
  color: var(--color-text);
}

.formula-op {
  color: var(--color-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.formula-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.4;
}

.formula-num {
  border-bottom: 1.5px solid var(--color-text);
  padding: 0 0.25rem 0.2rem;
  color: var(--color-accent);
  font-weight: 600;
}

.formula-den {
  padding: 0.2rem 0.25rem 0;
  color: var(--color-accent);
  font-weight: 600;
}

.profile-link {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0;
  margin-top: 0;
  margin-left: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
}

.profile-link:hover {
  color: var(--color-accent);
}

/* CONTACT PAGE */

.contact-page,
.estimator-page,
.datasets-page {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.contact-card p {
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  align-self: stretch;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  min-height: 0;
  padding: 1rem;
}

.contact-card h2 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.contact-card p {
  font-size: 0.94rem;
}

.contact-details {
  color: var(--color-muted);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.65;
}

.contact-details strong {
  color: var(--color-text);
}

/* PRIVACY PAGE */

.privacy-page {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  max-width: 50rem;
}

.privacy-section p {
  color: var(--color-muted);
}

.privacy-section {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 1rem;
}

.privacy-section h2 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.privacy-section a {
  color: var(--color-accent);
  font-weight: 600;
}

/* COOKIE PREFERENCES */

.cookie-consent-banner {
  --cookie-control-bg: var(--color-accent);
  --cookie-control-text: #ffffff;
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 10000;
  display: grid;
  gap: 0;
  width: min(100% - 2rem, 26rem);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.26);
  overflow: hidden;
}

[data-theme="dark"] .cookie-consent-banner,
[data-theme="dark"] .cookie-preferences-modal {
  --cookie-control-text: #0f172a;
}

.cookie-consent-banner[hidden],
.cookie-preferences-modal[hidden],
.cookie-preferences-backdrop[hidden] {
  display: none;
}

.cookie-consent-banner h2,
.cookie-preferences-modal h2 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.cookie-banner-copy {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.25rem;
}

.cookie-consent-banner p,
.cookie-preferences-modal p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.cookie-banner-actions {
  display: grid;
  gap: 0.65rem;
  justify-content: stretch;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.4rem 1.25rem;
}

.cookie-banner-actions .cookie-button {
  width: 100%;
}

.cookie-button {
  min-height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  padding: 0.7rem 1rem;
}

.cookie-button:focus-visible,
.cookie-icon-button:focus-visible,
.cookie-switch:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cookie-button-primary {
  border-color: var(--cookie-control-bg);
  background: var(--cookie-control-bg);
  color: var(--cookie-control-text);
}

.cookie-button-secondary,
.cookie-button-muted,
.cookie-icon-button,
.cookie-switch {
  background: color-mix(in srgb, var(--color-muted) 12%, var(--color-surface));
  color: var(--color-text);
}

.cookie-button-secondary {
  border-color: var(--cookie-control-bg);
  background: transparent;
  color: var(--color-accent);
}

.cookie-button-muted {
  border-color: transparent;
}

.cookie-preferences-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(17, 24, 39, 0.72);
}

.cookie-preferences-modal {
  --cookie-control-bg: var(--color-accent);
  --cookie-control-text: #ffffff;
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-preferences-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 48rem);
  max-height: min(92vh, 43rem);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  overflow: hidden;
}

.cookie-preferences-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
}

.cookie-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.cookie-preferences-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
  padding: 1.25rem 1.5rem 4rem;
}

.cookie-settings-intro {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.cookie-settings-intro h3 {
  font-size: 1rem;
}

.cookie-option {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-option-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 4rem;
  background: color-mix(in srgb, var(--color-muted) 9%, var(--color-surface));
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 1rem;
}

.cookie-option-summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.cookie-option-chevron {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-muted) 18%, var(--color-surface));
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1;
}

.cookie-option-collapsed .cookie-option-chevron {
  transform: rotate(180deg);
}

.cookie-option-detail {
  padding: 1rem 1rem 1.35rem;
}

.cookie-option-collapsed .cookie-option-detail {
  display: none;
}

.cookie-switch {
  position: relative;
  display: block;
  flex: none;
  width: 50px;
  height: 23px;
  border: 0;
  border-radius: 999px;
  background: #667481;
  box-shadow: 0 0 0 1px #667481;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.cookie-switch-on {
  background: var(--cookie-control-bg);
  box-shadow: 0 0 0 1px var(--cookie-control-bg);
}

.cookie-switch-readonly {
  background: #d5dee2;
  box-shadow: 0 0 0 1px #d5dee2;
}

.cookie-switch-knob {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 32, 3, 0.36);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.cookie-switch-on .cookie-switch-knob {
  transform: translateX(27px);
}

.cookie-switch-icon {
  position: absolute;
  inset: 0;
  transition: opacity 0.15s ease;
}

.cookie-switch-icon-on {
  opacity: 0;
  transform: rotate(45deg);
}

.cookie-switch-icon-on::before {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 5px;
  height: 10px;
  border: solid var(--cookie-control-bg);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(0deg);
}

.cookie-switch-icon-off {
  opacity: 1;
}

.cookie-switch-icon-off::before,
.cookie-switch-icon-off::after {
  position: absolute;
  top: 10px;
  left: 6px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #667481;
  content: "";
}

.cookie-switch-icon-off::before {
  transform: rotate(45deg);
}

.cookie-switch-icon-off::after {
  transform: rotate(-45deg);
}

.cookie-switch-on .cookie-switch-icon-on {
  opacity: 1;
}

.cookie-switch-on .cookie-switch-icon-off {
  opacity: 0;
}

.cookie-switch-readonly .cookie-switch-icon-on::before {
  border-color: #d5dee2;
}

.cookie-policy-link {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.cookie-modal-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 0.65rem;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}

/* DATASETS PAGE */

/* Datasets hero */


.resource-card p {
  color: var(--color-muted);
}


/* Top resource cards */

.resource-label {
  display: block;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}


.resource-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.resource-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 0.95rem;
}

.resource-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-height: 0;
  align-items: flex-start;
}

.resource-card h2,
.resource-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.resource-card h2,
.resource-card h3 {
  margin-bottom: 0.55rem;
}

.resource-card p {
  font-size: 0.94rem;
}

.resource-meta {
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.resource-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin-top: 0.7rem;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.resource-action:disabled {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-accent) 20%, var(--color-border));
  color: var(--color-accent);
  cursor: not-allowed;
}


/* Dataset downloads table */

.dataset-downloads {
  min-width: 0;
}


.dataset-downloads-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
}

.dataset-downloads-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dataset-downloads-table th,
.dataset-downloads-table td {
  padding: 0.95rem 1.45rem;
  text-align: left;
  vertical-align: middle;
}

.dataset-downloads-table th {
  background: color-mix(in srgb, var(--color-muted) 8%, var(--color-surface));
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.table-heading-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  white-space: nowrap;
}

.table-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
  border-radius: 50%;
  color: var(--color-accent);
  cursor: help;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  position: relative;
}

.table-info::after {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 2;
  min-width: 11rem;
  max-width: 14rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.18);
  color: var(--color-text);
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  padding: 0.45rem 0.55rem;
  pointer-events: none;
  text-align: left;
  transform: translateY(0.25rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: normal;
}

.table-info-right::after {
  right: 0;
  left: auto;
}

.table-info:hover::after,
.table-info:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.dataset-downloads-table td {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

.dataset-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.25rem;
  min-height: 2rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 18%, var(--color-border));
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
  color: var(--color-accent);
  cursor: not-allowed;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.35rem 0.75rem;
}

.dataset-mobile-list {
  display: none;
}

.dataset-mobile-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 1rem;
}

.dataset-mobile-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
  line-height: 1.25;
}

.dataset-mobile-card dl {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.dataset-mobile-card dl div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.dataset-mobile-card dt {
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.dataset-mobile-card dd {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-left: 0;
}

.dataset-request-note {
  margin-top: 0.55rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Publications section */

.paper-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.paper-meta-sep {
  margin: 0 0.35rem;
}

.publication-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.paper-author {
  margin-bottom: 0.65rem;
}

.paper-author a {
  color: var(--color-accent);
  font-size: 0.95rem;
  text-decoration: none;
}

.paper-author a:hover {
  text-decoration: underline;
}

/* RESPONSIVENESS */

@media (max-width: 1000px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav { display: none; }
}

@media (max-width: 800px) {
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card-grid,
  .contact-grid,
  .resource-grid,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card {
    justify-items: center;
    text-align: center;
  }

  .profile-link {
    justify-self: start;
  }

  .resource-card {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .foot-inner {
    flex-direction: column;
    text-align: center;
  }

  footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-consent-banner {
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .cookie-preferences-panel {
    max-height: calc(100vh - 2rem);
  }

  .cookie-modal-footer {
    grid-template-columns: 1fr;
  }

  .cookie-button {
    width: 100%;
  }

  .dataset-downloads-table-wrap {
    display: none;
  }

  .dataset-mobile-list {
    display: grid;
    gap: 0.85rem;
  }
}

@media (max-width: 520px) {
  .survey-panel { width: 240px; bottom: 4.5rem; }
  .estimator-panel { padding: 1.15rem; }

  .datasets-page {
    gap: 2rem;
  }

  .about-page {
    gap: 2rem;
  }

  .about-card,
  .contact-card,
  .profile-card,
  .resource-card {
    padding: 1.1rem;
  }

  .estimator-result dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .estimator-result dd {
    margin-left: 0;
    text-align: left;
  }

  .estimator-result dl div.unrecoverable-cost-row {
    margin-right: 0;
  }

}

/* MAP STYLES */
.geography-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.geography-controls {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.geography-toggle-group {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.geography-toggle {
  background: var(--color-surface);
  border: none;
  border-left: 1.5px solid var(--color-border);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.geography-sidebar .geography-toggle-group {
  flex-shrink: 0;
}

.geography-sidebar .geography-toggle {
  flex: 1;
  text-align: center;
}

.geography-toggle:first-child { border-left: none; }

.geography-toggle.active {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* Legend */
.geography-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#geography-legend-items {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.geography-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.geography-legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Map layout */
.geography-map-area {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 1rem;
  align-items: start;
}

#geography-map {
  height: 420px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  z-index: 0;
}

.geography-list {
  grid-column: 1;
  grid-row: 1;
  height: 420px;
  overflow-y: auto;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
}

.geo-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text);
}

.geo-list-row:last-child { border-bottom: none; }

.geo-list-empty {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.geography-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 420px;
  overflow: hidden;
  border-radius: 6px;
}

.geography-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.geography-sidebar-label {
  font-size: 0.78rem;
}

.geography-select-all {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  flex-shrink: 0;
}

#geography-sectors {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.geography-sector-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1.3;
}

.geography-sector-label input[type="checkbox"] {
  flex-shrink: 0;
}


/* Circle markers */
.geo-circle {
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

/* Tooltip */
.map-tooltip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  font-family: inherit;
  min-width: 140px;
}

.map-tt-area {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.map-tt-total {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.map-tt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .geography-map-area {
    grid-template-columns: 1fr;
  }

  #geography-map,
  .geography-list {
    height: 320px;
  }

  .geography-sidebar {
    height: auto;
  }

  #geography-sectors {
    max-height: 200px;
  }
}
