/* GriGsi Official Data — extends Open Data Hub styles */
/* ios-theme cosmic bg defaults to white text — force dark copy on light surface */
body.ios-theme.page-official-data-hub {
  background: linear-gradient(180deg, #f0f6f4 0%, #e8f0ec 100%) !important;
  animation: none !important;
  color: #1c1c1e !important;
}

body.ios-theme.page-official-data-hub .odh-main,
body.ios-theme.page-official-data-hub .odh-hero h1,
body.ios-theme.page-official-data-hub .odh-lead,
body.ios-theme.page-official-data-hub .odh-search-label,
body.ios-theme.page-official-data-hub .odh-status,
body.ios-theme.page-official-data-hub .odh-results-heading,
body.ios-theme.page-official-data-hub .odh-card,
body.ios-theme.page-official-data-hub .odh-card h2,
body.ios-theme.page-official-data-hub .odh-card p,
body.ios-theme.page-official-data-hub .odh-card-title,
body.ios-theme.page-official-data-hub .odh-card-provider,
body.ios-theme.page-official-data-hub .odh-answer-card,
body.ios-theme.page-official-data-hub .odh-answer-label,
body.ios-theme.page-official-data-hub .odh-footnote,
body.ios-theme.page-official-data-hub .odh-empty {
  color: #1c1c1e !important;
  -webkit-text-fill-color: #1c1c1e !important;
}

body.ios-theme.page-official-data-hub .odh-lead,
body.ios-theme.page-official-data-hub .odh-status,
body.ios-theme.page-official-data-hub .odh-card-meta,
body.ios-theme.page-official-data-hub .odh-answer-label {
  color: #3a3a3c !important;
  -webkit-text-fill-color: #3a3a3c !important;
}

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

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

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

body.ios-theme.page-official-data-hub .odh-card-links a {
  color: #1a785a !important;
  -webkit-text-fill-color: #1a785a !important;
}

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

body.ios-theme.page-official-data-hub .odh-answer-card {
  background: #f0faf5 !important;
  border: 1px solid #b8ddd0 !important;
}

.odh-answer-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  color: #3a3a3c;
}

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

body.ios-theme.page-official-data-hub .odh-btn-primary {
  background: #1a785a !important;
  border-color: #1a785a !important;
}

body.ios-theme.page-official-data-hub .odh-search-panel input.odh-search-input,
body.ios-theme.page-official-data-hub input.odh-search-input[type="search"] {
  background: #fff !important;
  color: #1c1c1e !important;
  border: 2px solid #1a785a !important;
  -webkit-text-fill-color: #1c1c1e !important;
}

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

body.ios-theme.page-official-data-hub .odh-footnote {
  border-left-color: #1a785a !important;
}

body.ios-theme.page-official-data-hub .odh-filter-chip.is-active {
  background: #1a785a !important;
  border-color: #1a785a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.ofdh-phase-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #3a3a3c !important;
  max-width: 52rem;
}

.ofdh-sector-filters {
  margin-top: 8px;
}

.ofdh-budget-hint {
  margin: 8px 0 0;
  padding: 0;
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: #3a3a3c !important;
}

.ofdh-budget-hint li {
  margin: 2px 0;
}

.ofdh-sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ofdh-sector-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5f0;
  color: #1a5c45 !important;
  border: 1px solid #b8ddd0;
}

.ofdh-sector-tag-btn {
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ofdh-sector-tag-btn:hover,
.ofdh-sector-tag-btn:focus-visible {
  background: #d4ede4 !important;
  border-color: #1a785a !important;
  outline: none;
}

.ofdh-budget-lines {
  list-style: none;
  padding-left: 0;
}

.ofdh-budget-line-item {
  margin: 4px 0;
}

.ofdh-budget-line-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #c8e0d6;
  background: #f8fcfa;
  color: #1a5c45 !important;
  -webkit-text-fill-color: #1a5c45 !important;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ofdh-budget-line-btn:hover,
.ofdh-budget-line-btn:focus-visible {
  background: #e8f5f0 !important;
  border-color: #1a785a !important;
  outline: none;
}

.ofdh-budget-line-value {
  font-weight: 800;
  color: #1c1c1e !important;
  -webkit-text-fill-color: #1c1c1e !important;
  white-space: nowrap;
}

.ofdh-budget-line-pending {
  color: #6c6c70 !important;
  font-weight: 500;
}

.ofdh-budget-line-detail {
  margin: 6px 0 8px 4px;
}

.ofdh-budget-line-detail .odh-answer-card {
  max-width: 100%;
}

.ofdh-live-details {
  margin-top: 6px;
}

.ofdh-live-details-summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a785a !important;
  -webkit-text-fill-color: #1a785a !important;
}

.ofdh-live-details-body {
  margin-top: 6px;
}

.ofdh-live-panel {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff !important;
  border: 1px solid #b8ddd0;
  border-radius: 12px;
  border-left: 4px solid #1a785a;
}

.ofdh-live-heading {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #1a5c45 !important;
}

.ofdh-live-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ofdh-live-value {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 4px 0;
  color: #1c1c1e !important;
}

.ofdh-card-grid {
  display: grid;
  gap: 16px;
}

.ofdh-card.is-live {
  border-left: 3px solid #1a785a;
}

.ofdh-card-live {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: #1a5c45 !important;
}

.ofdh-signal {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #3a3a3c !important;
}

.ofdh-signal-alert {
  color: #9a3412 !important;
  background: #fff7ed;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #fdba74;
}

.ofdh-disclaimer {
  margin-top: 12px;
  font-size: 0.8rem;
}

.ofdh-trust-check {
  margin: 10px 0 0;
}

.ofdh-trust-check a {
  color: #1a785a !important;
  font-weight: 600;
}

.ofdh-busy {
  padding: 24px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #b8ddd0;
}

.ofdh-busy-title {
  margin: 0;
  font-weight: 600;
  color: #1a5c45 !important;
}

.ofdh-sector-panel {
  margin: 0 0 20px;
  padding: 16px;
  background: #f8fcfa !important;
  border: 1px solid #b8ddd0;
  border-radius: 12px;
}

.ofdh-signals-panel {
  margin: 16px 0;
  padding: 12px 16px;
  background: #fffbf5 !important;
  border: 1px solid #fdba74;
  border-radius: 10px;
}

.ofdh-signals-list {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  color: #3a3a3c !important;
}

.ofdh-signal-alert-inline {
  color: #9a3412 !important;
}

.odh-badge-ofdh {
  background: #e8f5f0 !important;
  color: #1a5c45 !important;
  border: 1px solid #b8ddd0 !important;
}

.ofdh-fiscal-overview-wrap {
  margin: 0 0 24px;
  padding: 20px;
  background: #fff !important;
  border: 1px solid #b8ddd0;
  border-radius: 12px;
  border-left: 4px solid #1a785a;
}

.ofdh-fiscal-heading {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1a5c45 !important;
}

.ofdh-fiscal-asof {
  margin: 0 0 16px;
}

.ofdh-fiscal-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
}

.ofdh-fiscal-block {
  margin-bottom: 20px;
}

.ofdh-fiscal-block:last-child {
  margin-bottom: 0;
}

.ofdh-fiscal-subheading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #1a5c45 !important;
}

.ofdh-fiscal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ofdh-fiscal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ofdh-fiscal-table th,
.ofdh-fiscal-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #dceee6;
  color: #1c1c1e !important;
  vertical-align: top;
}

.ofdh-fiscal-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #3a3a3c !important;
  background: #f0faf5;
}

.ofdh-fiscal-table-revenue {
  max-width: 480px;
}

.ofdh-fiscal-row.is-total th,
.ofdh-fiscal-row.is-total td {
  font-weight: 700;
  background: #f8fcfa;
}

.ofdh-fiscal-row.is-child th {
  padding-left: 1.75rem;
  font-weight: 500;
  color: #3a3a3c !important;
}

.ofdh-fiscal-amt {
  white-space: nowrap;
  text-align: right !important;
}

.ofdh-fiscal-amt.ofdh-fiscal-revenue {
  color: #1a5c45 !important;
}

.ofdh-fiscal-na {
  color: #9ca3af !important;
  text-align: center !important;
}

.ofdh-fiscal-pending {
  color: #6c6c70 !important;
  text-align: center !important;
}

.ofdh-fiscal-period {
  font-weight: 400;
  font-size: 0.78rem;
  color: #6c6c70 !important;
}

.ofdh-fiscal-period-cell {
  white-space: nowrap;
  color: #6c6c70 !important;
  font-size: 0.82rem;
}

.ofdh-fiscal-sector-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 6px;
  min-width: 1.5rem;
  height: 1.35rem;
  border: 1px solid #b8ddd0;
  border-radius: 6px;
  background: #e8f5f0;
  color: #1a785a !important;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
}

.ofdh-fiscal-sector-link:hover,
.ofdh-fiscal-sector-link:focus-visible {
  background: #d4ede4 !important;
  border-color: #1a785a !important;
  outline: none;
}
