/* ios-theme cosmic bg + white default text — force light readable surface (cf. developer-page) */
body.ios-theme.page-open-data-hub {
  background: linear-gradient(180deg, #f5f9f7 0%, #eef5f1 100%) !important;
  animation: none !important;
  color: #1c1c1e !important;
}

body.ios-theme.page-open-data-hub .odh-main,
body.ios-theme.page-open-data-hub .odh-hero h1,
body.ios-theme.page-open-data-hub .odh-lead,
body.ios-theme.page-open-data-hub .odh-search-label,
body.ios-theme.page-open-data-hub .odh-status,
body.ios-theme.page-open-data-hub .odh-card,
body.ios-theme.page-open-data-hub .odh-card h2,
body.ios-theme.page-open-data-hub .odh-card p,
body.ios-theme.page-open-data-hub .odh-card-meta,
body.ios-theme.page-open-data-hub .odh-footnote,
body.ios-theme.page-open-data-hub .odh-empty {
  color: #1c1c1e !important;
}

body.ios-theme.page-open-data-hub .odh-lead,
body.ios-theme.page-open-data-hub .odh-status,
body.ios-theme.page-open-data-hub .odh-card-meta {
  color: #3a3a3c !important;
}

body.ios-theme.page-open-data-hub .odh-footnote,
body.ios-theme.page-open-data-hub .odh-footnote p {
  background: #fff !important;
  color: #1c1c1e !important;
  border: 1px solid #e5e5ea !important;
  border-left: 4px solid #e8b44c !important;
}

body.ios-theme.page-open-data-hub .odh-footnote a {
  color: #1a7a52 !important;
  text-decoration: underline;
}

body.ios-theme.page-open-data-hub .odh-eyebrow {
  color: #1a7a52 !important;
}

body.ios-theme.page-open-data-hub .odh-search-panel {
  background: #fff !important;
  border: 1px solid #d0d0dc !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

/* Beat global body.ios-theme input { glass dark + white text } */
body.ios-theme.page-open-data-hub .odh-search-panel input.odh-search-input,
body.ios-theme.page-open-data-hub input.odh-search-input[type="search"] {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #1c1c1e !important;
  border: 2px solid #1a7a52 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-appearance: none;
  appearance: none;
}

body.ios-theme.page-open-data-hub .odh-search-panel input.odh-search-input::placeholder,
body.ios-theme.page-open-data-hub input.odh-search-input[type="search"]::placeholder {
  color: #6c6c70 !important;
  opacity: 1 !important;
}

body.ios-theme.page-open-data-hub .odh-search-panel input.odh-search-input:focus,
body.ios-theme.page-open-data-hub input.odh-search-input[type="search"]:focus {
  outline: none !important;
  border-color: #0d2818 !important;
  box-shadow: 0 0 0 3px rgba(26, 120, 90, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

body.ios-theme.page-open-data-hub .odh-btn-muted {
  background: #f2f2f7 !important;
  color: #1c1c1e !important;
  border: 1px solid #c7c7cc !important;
}

body.ios-theme.page-open-data-hub .odh-filter-chip {
  background: #fff !important;
  color: #1c1c1e !important;
  border-color: #d0d0dc !important;
}

body.ios-theme.page-open-data-hub .odh-filter-chip.is-active {
  background: rgba(26, 120, 90, 0.12) !important;
  border-color: rgba(26, 120, 90, 0.45) !important;
  color: #17472f !important;
}

body.ios-theme.page-open-data-hub .odh-card-links a {
  color: #1a7a52 !important;
}

body.ios-theme.page-open-data-hub .site-footer-min {
  background: #fff !important;
  border-top: 1px solid #e5e5ea;
  margin-top: 24px;
}

body.ios-theme.page-open-data-hub .site-footer-min a {
  color: #007aff !important;
}

body.ios-theme.page-open-data-hub .odh-card code {
  background: #f2f2f7 !important;
  color: #1c1c1e !important;
}

.odh-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.odh-hero {
  text-align: center;
  margin-bottom: 28px;
}

.odh-eyebrow {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple, #8b7bd4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.odh-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.odh-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.55;
  color: #555;
}

.odh-search-panel {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.odh-search-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.odh-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.odh-search-input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #1a7a52;
  background: #fff;
  color: #1c1c1e;
  font: 1rem/1.4 Inter, system-ui, sans-serif;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  -webkit-appearance: none;
  appearance: none;
}

.odh-search-input:focus {
  outline: 2px solid rgba(139, 123, 212, 0.45);
  border-color: var(--purple, #8b7bd4);
}

.odh-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.odh-btn-muted {
  background: #f0f0f5;
  color: #444;
}

.odh-btn-primary {
  background: linear-gradient(180deg, #2a9d63 0%, #1a7a52 100%);
  color: #fff;
  flex: 0 0 auto;
  min-width: 5.5rem;
  box-shadow: 0 2px 8px rgba(26, 120, 90, 0.35);
}

.odh-btn-primary:hover {
  background: linear-gradient(180deg, #1a7a52 0%, #0d2818 100%);
  color: #fff;
}

body.ios-theme.page-open-data-hub .odh-btn-primary {
  background: linear-gradient(180deg, #2a9d63 0%, #1a7a52 100%) !important;
  color: #fff !important;
  border: 1px solid #0d2818 !important;
  box-shadow: 0 2px 8px rgba(26, 120, 90, 0.35) !important;
}

.odh-search-form {
  margin: 0;
}

.odh-search-row {
  align-items: stretch;
}

.odh-region-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 10px;
}

.odh-region-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  flex: 0 0 auto;
}

.odh-region-select {
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 22rem;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #c8c8d4;
  background: #fff;
  color: #1c1c1e;
  font-size: 0.88rem;
  font-weight: 600;
}

.odh-region-hint {
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

body.ios-theme.page-open-data-hub .odh-region-select {
  background: #fff !important;
  color: #1c1c1e !important;
  border: 1px solid #1a7a52 !important;
}

.odh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.odh-filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
}

.odh-filter-chip.is-active {
  background: rgba(139, 123, 212, 0.18);
  border-color: var(--purple, #8b7bd4);
  color: #3d3568;
}

.odh-status {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.odh-status:empty {
  display: none;
}

@keyframes odh-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes odh-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.odh-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.odh-busy-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e8e8f0;
  border-top-color: #1a7a52;
  border-radius: 50%;
  animation: odh-spin 0.75s linear infinite;
}

.odh-busy-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.odh-busy-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  max-width: 22rem;
  line-height: 1.45;
}

.odh-mini-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #d0d0dc;
  border-top-color: #1a7a52;
  border-radius: 50%;
  animation: odh-spin 0.7s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.odh-answer-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  animation: odh-pulse 1.4s ease-in-out infinite;
}

.odh-answer-card:not(.odh-answer-card--ready) {
  border-color: rgba(26, 122, 82, 0.35);
}

body.odh-is-busy .odh-search-panel {
  position: relative;
}

body.odh-is-busy .odh-search-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1a7a52, transparent);
  background-size: 200% 100%;
  animation: odh-progress 1.2s ease-in-out infinite;
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

@keyframes odh-progress {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.odh-search-form--busy .odh-btn-primary {
  opacity: 0.88;
}

body.ios-theme.page-open-data-hub .odh-busy-title,
body.ios-theme.page-open-data-hub .odh-busy-sub {
  color: #1c1c1e !important;
}

body.ios-theme.page-open-data-hub .odh-busy {
  background: #fff !important;
}

.odh-results-grid {
  display: grid;
  gap: 14px;
}

.odh-refine {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.odh-refine summary {
  cursor: pointer;
  font-weight: 700;
  color: #444;
}

.odh-refine .odh-filters {
  margin-top: 10px;
}

.odh-results-head {
  margin-bottom: 4px;
}

.odh-results-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: #1a1a2e;
}

.odh-results-query {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #555;
}

.odh-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.odh-result-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.odh-result-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.odh-result-country {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a7a52;
}

.odh-result-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0d2818;
  letter-spacing: -0.02em;
}

.odh-result-value--loading {
  font-size: 1.2rem;
  color: #888;
  font-weight: 600;
}

.odh-result-metric {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.odh-result-provider {
  margin: 0;
  font-size: 0.78rem;
  color: #666;
}

.odh-result-period {
  margin-left: 0.35rem;
  color: #888;
}

.odh-sources-drawer {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #ccc;
  background: #fafafa;
  font-size: 0.82rem;
}

.odh-sources-drawer summary {
  cursor: pointer;
  font-weight: 700;
  color: #555;
}

.odh-sources-list {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: #444;
  line-height: 1.5;
}

.odh-sources-list a {
  color: #1a7a52;
  font-weight: 600;
}

body.ios-theme.page-open-data-hub .odh-results-title,
body.ios-theme.page-open-data-hub .odh-result-country,
body.ios-theme.page-open-data-hub .odh-result-value,
body.ios-theme.page-open-data-hub .odh-result-metric {
  color: #1c1c1e !important;
}

body.ios-theme.page-open-data-hub .odh-result-value {
  color: #0d2818 !important;
}

.odh-provider-group {
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  min-width: 0;
  overflow: hidden;
}

.odh-provider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.odh-provider-name {
  margin: 0;
  font-size: 1.1rem;
  color: #1a1a2e;
}

.odh-provider-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.odh-provider-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.odh-provider-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  width: 100%;
  min-width: 0;
}

.odh-answer-card {
  flex: 1 1 9.5rem;
  min-width: 0;
  max-width: min(100%, 15rem);
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26, 122, 82, 0.08) 0%, rgba(139, 123, 212, 0.06) 100%);
  border: 1px solid rgba(26, 122, 82, 0.22);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.odh-answer-country {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a7a52;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.odh-answer-series-hint {
  margin: 0 0 4px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #5a5a72;
  font-weight: 600;
}

.odh-answer-value--planned {
  color: #8b6bb8;
}

.odh-answer-note {
  margin: 4px 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #6a6a80;
}

.odh-answer-card--planned {
  border-style: dashed;
  background: rgba(139, 107, 184, 0.06);
}

.odh-provider-more-countries {
  margin: 0 0 10px;
  padding-top: 10px;
  border-top: 1px dashed #d0d0dc;
}

.odh-provider-more-countries .odh-provider-answers {
  margin: 0 0 8px;
}

.odh-countries-toggle {
  margin-bottom: 10px;
}

.odh-badge-geo {
  background: rgba(26, 122, 82, 0.12);
  color: #0d2818;
}

.odh-answer-value {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0d2818;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.odh-answer-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #444;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.odh-answer-loading,
.odh-answer-unavailable {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #444;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.odh-answer-unavailable {
  color: #666;
}

.odh-provider-teaser {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #555;
}

.odh-provider-more {
  margin-bottom: 12px;
  padding-top: 4px;
  border-top: 1px solid #ececf3;
}

.odh-provider-group.is-collapsed .odh-provider-more {
  display: none;
}

.odh-provider-group.is-expanded .odh-provider-more {
  display: block;
}

.odh-provider-group.is-expanded .odh-provider-more[hidden] {
  display: block;
}

.odh-source-row {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f5;
}

.odh-source-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.odh-source-row-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
}

.odh-badges-inline {
  margin-bottom: 6px;
}

.odh-btn-more {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #1a7a52;
  background: #fff;
  color: #1a7a52;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.odh-btn-more:hover {
  background: rgba(26, 122, 82, 0.08);
}

body.ios-theme.page-open-data-hub .odh-provider-group,
body.ios-theme.page-open-data-hub .odh-provider-name,
body.ios-theme.page-open-data-hub .odh-provider-teaser,
body.ios-theme.page-open-data-hub .odh-source-row-title {
  color: #1c1c1e !important;
}

body.ios-theme.page-open-data-hub .odh-provider-teaser {
  color: #3a3a3c !important;
}

body.ios-theme.page-open-data-hub .odh-answer-value {
  color: #0d2818 !important;
}

body.ios-theme.page-open-data-hub .odh-answer-card {
  background: #f0faf5 !important;
  border-color: #1a7a52 !important;
}

body.ios-theme.page-open-data-hub .odh-btn-more {
  background: #fff !important;
  color: #1a7a52 !important;
  border-color: #1a7a52 !important;
}

.odh-card {
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.odh-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.odh-card h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a1a2e;
}

.odh-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.odh-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3f3f8;
  color: #555;
}

.odh-badge-live {
  background: rgba(76, 175, 80, 0.15);
  color: #2e6b32;
}

.odh-badge-planned {
  background: rgba(232, 180, 76, 0.2);
  color: #7a5a12;
}

.odh-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

.odh-card-meta {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.45;
}

.odh-card-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.odh-card-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple, #8b7bd4);
  text-decoration: none;
}

.odh-card-links a:hover {
  text-decoration: underline;
}

.odh-footnote {
  margin-top: 32px;
  padding: 14px 16px;
  border: 1px solid #e5e5ea;
  border-left: 4px solid var(--yellow, #e8b44c);
  background: #fff;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: #1c1c1e;
  line-height: 1.55;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.odh-footnote p {
  margin: 0;
  color: inherit;
}

.odh-footnote a {
  color: #1a7a52;
  font-weight: 600;
}

.site-footer-min {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  gap: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer-min a {
  color: var(--purple, #8b7bd4);
  text-decoration: none;
  font-weight: 600;
}

.odh-empty {
  text-align: center;
  padding: 32px 16px;
  color: #666;
  font-size: 0.95rem;
}
