/* Theme toggle and dark mode.
   Light mode stays in style.css. Dark mode is html[data-theme="dark"]. */

.logo-img--on-light {
  display: none;
}

html[data-theme="light"] .logo-img--on-dark {
  display: none;
}

html[data-theme="light"] .logo-img--on-light {
  display: inline;
}

html[data-theme="light"] .site-footer {
  background-color: #fff;
  color: #262626;
  border-top: 1px solid #e6e8ee;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ismo-bg: #101318;
  --ismo-bg-raised: #1a1f29;
  --ismo-bg-muted: #222836;
  --ismo-bg-soft: #2a3142;
  --ismo-text: #e7edf5;
  --ismo-text-muted: #9aa6b8;
  --ismo-text-faint: #7f8b9d;
  --ismo-border: #2c3546;
  --ismo-green: #3dcca0;
  --ismo-green-strong: #6ee7b7;
  --ismo-amber: #fbbf24;
  --ismo-red: #fb7185;
}

html[data-theme="dark"] body {
  background: var(--ismo-bg);
  color: var(--ismo-text);
}

html[data-theme="dark"] .site {
  background: var(--ismo-bg);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .site-title,
html[data-theme="dark"] .content-title h1 {
  color: var(--ismo-text);
}

html[data-theme="dark"] .widget,
html[data-theme="dark"] .notification-widget,
html[data-theme="dark"] .faq-widget .faq-item,
html[data-theme="dark"] .holidays-calendar .holidays-table .holiday-row,
html[data-theme="dark"] .upcoming-market-holidays-list-item,
html[data-theme="dark"] .related-markets .markets-list-item,
html[data-theme="dark"] .opening-times-widget .opening-times-date,
html[data-theme="dark"] .exchange-card,
html[data-theme="dark"] .exchange-stack .widget,
html[data-theme="dark"] .exchange-stack .faq-widget,
html[data-theme="dark"] .site-title-with-icon,
html[data-theme="dark"] .site-title-with-icon .icon {
  background: var(--ismo-bg-raised);
  color: var(--ismo-text);
}

html[data-theme="dark"] .site-title-with-icon {
  background: var(--ismo-bg-muted);
}

html[data-theme="dark"] .widget--blue,
html[data-theme="dark"] .widget--blue p,
html[data-theme="dark"] .exchange-market-card,
html[data-theme="dark"] .exchange-market-card:visited,
html[data-theme="dark"] .exchange-market-card:hover,
html[data-theme="dark"] .exchange-market-card:focus,
html[data-theme="dark"] .exchange-market-name,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .stock-exchange-gallery .image-wrap p,
html[data-theme="dark"] .single-country .site-cover .title {
  color: #fff;
}

html[data-theme="dark"] .exchange-stack .widget,
html[data-theme="dark"] .exchange-card,
html[data-theme="dark"] .exchange-stack .faq-widget {
  border-color: var(--ismo-border);
  box-shadow: none;
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .table tbody tr,
html[data-theme="dark"] .market-details .details-list .list-item,
html[data-theme="dark"] .category-item,
html[data-theme="dark"] .upcoming-market-holidays-list-item {
  border-color: var(--ismo-border);
}

html[data-theme="dark"] .exchange-stack,
html[data-theme="dark"] .exchange-hero-title,
html[data-theme="dark"] .exchange-breadcrumbs li,
html[data-theme="dark"] .countdown-counter-unit:after,
html[data-theme="dark"] .countdown--bell .countdown-counter-unit .unit,
html[data-theme="dark"] .exchange-hero-bell .countdown-counter-unit .unit,
html[data-theme="dark"] .markets-roller-list-widget .markets-list-item a,
html[data-theme="dark"] .category-item-title,
html[data-theme="dark"] .exchange-search-results a,
html[data-theme="dark"] input.exchange-search-input,
html[data-theme="dark"] input.exchange-search-input:focus {
  color: var(--ismo-text);
}

html[data-theme="dark"] .exchange-hero-reason,
html[data-theme="dark"] .exchange-breadcrumbs a,
html[data-theme="dark"] .exchange-hero-bell [data-countdown-message],
html[data-theme="dark"] .countdown--bell [data-countdown-message],
html[data-theme="dark"] .countdown-opens,
html[data-theme="dark"] .countdown--bell .countdown-opens,
html[data-theme="dark"] .countdown-counter-unit .name,
html[data-theme="dark"] .exchange-hero-clock-label,
html[data-theme="dark"] .holidays-calendar .holidays-table .holiday-row .date,
html[data-theme="dark"] .exchange-search-alias,
html[data-theme="dark"] .exchange-search-state,
html[data-theme="dark"] .exchange-search-empty,
html[data-theme="dark"] .exchange-search-icon,
html[data-theme="dark"] .trading-session-progressbar-step .time,
html[data-theme="dark"] .exchange-empty {
  color: var(--ismo-text-muted);
}

html[data-theme="dark"] .exchange-hero-bell .countdown-counter-unit .name,
html[data-theme="dark"] .countdown--bell .countdown-counter-unit .name,
html[data-theme="dark"] .countdown--bell .countdown-counter-unit:after,
html[data-theme="dark"] .exchange-hero-bell .countdown-counter-unit:after,
html[data-theme="dark"] .trading-session-progressbar-step.is-upcoming .step-name,
html[data-theme="dark"] .trading-session-progressbar-step.is-upcoming .time {
  color: var(--ismo-text-faint);
}

html[data-theme="dark"] .site-title-with-icon .icon,
html[data-theme="dark"] .countdown--bell .countdown-counter-unit,
html[data-theme="dark"] .exchange-hero-bell .countdown-counter-unit,
html[data-theme="dark"] .exchange-hero-clock,
html[data-theme="dark"] .countdown-text,
html[data-theme="dark"] .trading-session .widget-head,
html[data-theme="dark"] .opening-times-widget .opening-times-date-inner,
html[data-theme="dark"] .ui-select,
html[data-theme="dark"] .ui-select--list,
html[data-theme="dark"] .exchange-hero-flag,
html[data-theme="dark"] .exchange-hero-alias,
html[data-theme="dark"] .exchange-zone-toggle,
html[data-theme="dark"] pre {
  background: var(--ismo-bg-muted);
  border-color: var(--ismo-border);
  color: var(--ismo-text);
}

html[data-theme="dark"] .ui-select--list-item:hover {
  background-color: var(--ismo-bg-soft);
}

html[data-theme="dark"] .country-template .holidays-calendar thead tr,
html[data-theme="dark"] .calendar .day.is-weekend,
html[data-theme="dark"] .trading-session-progressbar-track,
html[data-theme="dark"] .exchange-timeline-track {
  background: var(--ismo-bg-soft);
  border-color: var(--ismo-border);
}

html[data-theme="dark"] .exchange-timeline-segment.is-closed {
  background: #3a4254;
}

html[data-theme="dark"] .calendar .day.is-today {
  border-color: #5c677a;
}

html[data-theme="dark"] .calendar .day.is-consecutive:before {
  background-color: var(--ismo-bg-raised);
}

html[data-theme="dark"] input.exchange-search-input,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .exchange-search-results {
  background: var(--ismo-bg-raised);
  border-color: var(--ismo-border);
  color: var(--ismo-text);
}

html[data-theme="dark"] input.exchange-search-input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--ismo-text-faint);
}

html[data-theme="dark"] .exchange-search-results a:hover,
html[data-theme="dark"] .exchange-search-results li.is-active a {
  background: rgba(61, 204, 160, 0.12);
  color: var(--ismo-green-strong);
}

html[data-theme="dark"] .exchange-map {
  background: #151b24;
}

html[data-theme="dark"] .exchange-tooltip.maplibregl-popup .maplibregl-popup-content {
  background: var(--ismo-bg-raised);
  color: var(--ismo-text);
}

html[data-theme="dark"] .exchange-tooltip.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--ismo-bg-raised);
}

html[data-theme="dark"] .exchange-tooltip.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: var(--ismo-bg-raised);
}

html[data-theme="dark"] .exchange-tooltip.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: var(--ismo-bg-raised);
}

html[data-theme="dark"] .exchange-tooltip.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: var(--ismo-bg-raised);
}

html[data-theme="dark"] .exchange-map .maplibregl-ctrl-group button:hover,
html[data-theme="dark"] .exchange-map .maplibregl-ctrl-group button:focus {
  background: #f0f0f0;
}

html[data-theme="dark"] .exchange-map .maplibregl-ctrl-attrib {
  background: rgba(16, 19, 24, 0.86);
  color: var(--ismo-text-muted);
}

html[data-theme="dark"] .markets-roller-list-widget .markets-list-item:after {
  background-color: var(--ismo-border);
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .btn:visited,
html[data-theme="dark"] .arrow,
html[data-theme="dark"] .trading-session-progressbar-step.is-complete .step-name {
  color: var(--ismo-green-strong);
  border-color: var(--ismo-green-strong);
}

html[data-theme="dark"] .trading-session-progressbar-step.is-active .step-name,
html[data-theme="dark"] .exchange-status.is-open,
html[data-theme="dark"] .exchange-hero.is-open .exchange-status,
html[data-theme="dark"] .exchange-holiday-foot button,
html[data-theme="dark"] .exchange-holiday-status a,
html[data-theme="dark"] .exchange-holiday-status a:hover {
  color: var(--ismo-green-strong);
}

html[data-theme="dark"] .exchange-status.is-open,
html[data-theme="dark"] .exchange-hero.is-open .exchange-status,
html[data-theme="dark"] .countdown--bell .countdown-counter-unit--seconds.is-visible,
html[data-theme="dark"] .exchange-hero-bell .countdown-counter-unit--seconds.is-visible,
html[data-theme="dark"] .trading-session-progressbar-step.is-active {
  background: rgba(61, 204, 160, 0.14);
  border-color: var(--ismo-green);
}

html[data-theme="dark"] .exchange-status.is-closed,
html[data-theme="dark"] .exchange-early-close {
  color: var(--ismo-amber);
}

html[data-theme="dark"] .exchange-hero p.exchange-status,
html[data-theme="dark"] .exchange-status.is-closed {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.45);
}

html[data-theme="dark"] .exchange-hero.is-weekend .exchange-status,
html[data-theme="dark"] .exchange-hero.is-holiday .exchange-status,
html[data-theme="dark"] .market-status-widget .market-status,
html[data-theme="dark"] .market-status-widget .market-status--closed {
  color: var(--ismo-red);
}

html[data-theme="dark"] .exchange-hero.is-weekend .exchange-status,
html[data-theme="dark"] .exchange-hero.is-holiday .exchange-status {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.4);
}

html[data-theme="dark"] .exchange-hero.is-closed .exchange-status {
  background: var(--ismo-bg-muted);
  border-color: var(--ismo-border);
  color: var(--ismo-text-muted);
}

html[data-theme="dark"] .exchange-zone-toggle button,
html[data-theme="dark"] .exchange-zone-toggle button:hover,
html[data-theme="dark"] .exchange-zone-toggle button:focus,
html[data-theme="dark"] .exchange-zone-toggle button:active,
html[data-theme="dark"] .exchange-holiday-foot button,
html[data-theme="dark"] .exchange-holiday-foot button:hover,
html[data-theme="dark"] .exchange-holiday-foot button:focus {
  background: transparent;
  color: var(--ismo-text-muted);
  box-shadow: none;
}

html[data-theme="dark"] .exchange-zone-toggle button[aria-pressed="true"],
html[data-theme="dark"] .exchange-zone-toggle button[aria-pressed="true"]:hover {
  background: var(--ismo-text);
  color: #101318;
}

html[data-theme="dark"] .exchange-timeline-label {
  background: var(--ismo-text);
  color: #101318;
}

html[data-theme="dark"] .exchange-timeline-stem {
  background: var(--ismo-text);
}

html[data-theme="dark"] .exchange-timeline-meta,
html[data-theme="dark"] .exchange-timeline-axis,
html[data-theme="dark"] .exchange-timeline-legend,
html[data-theme="dark"] .exchange-session-row,
html[data-theme="dark"] .exchange-session-row--head,
html[data-theme="dark"] .exchange-session-name p,
html[data-theme="dark"] .exchange-hero-alias,
html[data-theme="dark"] .exchange-breadcrumbs a,
html[data-theme="dark"] .exchange-breadcrumbs li:not(:last-child):after {
  color: var(--ismo-text-muted);
}

html[data-theme="dark"] .exchange-timeline-meta span:first-child,
html[data-theme="dark"] .exchange-session-name strong,
html[data-theme="dark"] .exchange-breadcrumbs a:hover,
html[data-theme="dark"] .exchange-breadcrumbs a:focus,
html[data-theme="dark"] .exchange-about-body strong {
  color: var(--ismo-text);
}

html[data-theme="dark"] .exchange-hero-head,
html[data-theme="dark"] .exchange-sessions-head,
html[data-theme="dark"] .exchange-session-row,
html[data-theme="dark"] .exchange-timeline,
html[data-theme="dark"] .exchange-holiday-foot,
html[data-theme="dark"] .exchange-stack .faq-widget .site-title-with-icon,
html[data-theme="dark"] .exchange-stack .faq-item {
  border-color: var(--ismo-border);
}

html[data-theme="dark"] .exchange-stack .faq-widget .site-title-with-icon,
html[data-theme="dark"] .exchange-stack .faq-widget .title {
  background: transparent;
  color: var(--ismo-text);
}

html[data-theme="dark"] .exchange-hero-bell.countdown-widget,
html[data-theme="dark"] .exchange-market-card {
  background: transparent;
}

html[data-theme="dark"] .exchange-market-card {
  background: linear-gradient(160deg, #1e293b, #0f172a);
}

html[data-theme="dark"] .trading-session-progressbar-step + .trading-session-progressbar-step {
  box-shadow: inset 1px 0 0 var(--ismo-border);
}

html[data-theme="dark"] .trading-session-progressbar-tick,
html[data-theme="dark"] .trading-session-progressbar-progress:after {
  background-color: var(--ismo-bg-raised);
}

html[data-theme="dark"] .flipdown .rotor-top,
html[data-theme="dark"] .flipdown .rotor-leaf-front,
html[data-theme="dark"] .flipdown .rotor-bottom,
html[data-theme="dark"] .flipdown .rotor-leaf-rear {
  background-color: var(--ismo-bg-muted) !important;
  color: var(--ismo-text) !important;
}

html[data-theme="dark"] .flipdown .rotor:after {
  border-color: var(--ismo-bg) !important;
}

html[data-theme="dark"] .opening-times-widget .opening-times-date-title:before,
html[data-theme="dark"] .exchange-hero-clock .opening-times-date-title:before,
html[data-theme="dark"] .countdown .btn:before,
html[data-theme="dark"] .market-details .links .calendar-link,
html[data-theme="dark"] .trading-session-details-item .title:before {
  filter: invert(1);
}

html[data-theme="dark"] .exchange-template .market-info {
  background: rgba(31, 154, 245, 0.12);
  border-color: rgba(31, 154, 245, 0.45);
  color: var(--ismo-text);
}

html[data-theme="dark"] .screen-reader-text:focus {
  background-color: var(--ismo-bg-raised);
  color: var(--ismo-text);
}

html[data-theme="dark"] .site-footer {
  background-color: #0c0e12;
  border-top: 1px solid var(--ismo-border);
}

html[data-theme="dark"] .exchange-hero-clock .opening-times-date-title,
html[data-theme="dark"] .exchange-user-clock,
html[data-theme="dark"] .exchange-session-time,
html[data-theme="dark"] .exchange-facts-list strong,
html[data-theme="dark"] .exchange-holiday-status strong,
html[data-theme="dark"] .exchange-about-body strong,
html[data-theme="dark"] .exchange-holiday-card h3,
html[data-theme="dark"] .exchange-holiday-card time,
html[data-theme="dark"] .exchange-hero-zone,
html[data-theme="dark"] .exchange-pills li,
html[data-theme="dark"] .exchange-count-pill,
html[data-theme="dark"] .exchange-hero.is-weekend .countdown-counter-unit--seconds .unit,
html[data-theme="dark"] .exchange-hero.is-holiday .countdown-counter-unit--seconds .unit,
html[data-theme="dark"] .exchange-hero.is-closed .countdown-counter-unit--seconds .unit {
  color: var(--ismo-text);
}

html[data-theme="dark"] .exchange-about-body p,
html[data-theme="dark"] .exchange-hero-clock-local,
html[data-theme="dark"] .exchange-facts-list span,
html[data-theme="dark"] .exchange-holiday-status li > span,
html[data-theme="dark"] .exchange-holiday-card-top span,
html[data-theme="dark"] .exchange-holiday-card-foot,
html[data-theme="dark"] .exchange-schedule-note,
html[data-theme="dark"] .exchange-next-event {
  color: var(--ismo-text-muted);
}

html[data-theme="dark"] .exchange-hero-zone,
html[data-theme="dark"] .exchange-sessions p.exchange-schedule-note,
html[data-theme="dark"] .exchange-pills li,
html[data-theme="dark"] .exchange-count-pill,
html[data-theme="dark"] .exchange-holiday-card,
html[data-theme="dark"] .exchange-holiday-card-top span,
html[data-theme="dark"] .exchange-hero.is-weekend .countdown-counter-unit--seconds,
html[data-theme="dark"] .exchange-hero.is-holiday .countdown-counter-unit--seconds,
html[data-theme="dark"] .exchange-hero.is-closed .countdown-counter-unit--seconds {
  background: var(--ismo-bg-muted);
  border-color: var(--ismo-border);
}

html[data-theme="dark"] .exchange-session-row.is-current .exchange-session-badge {
  background: rgba(61, 204, 160, 0.16);
  color: var(--ismo-green-strong);
}

html[data-theme="dark"] .exchange-facts-list a,
html[data-theme="dark"] .exchange-holiday-status a,
html[data-theme="dark"] .exchange-holiday-status-head span,
html[data-theme="dark"] .exchange-holiday-foot button,
html[data-theme="dark"] .exchange-holiday-foot button:hover,
html[data-theme="dark"] .exchange-holiday-foot button:focus {
  color: var(--ismo-green-strong);
}

html[data-theme="dark"] .exchange-hero-clock-icon {
  filter: invert(1);
}

html[data-theme="dark"] .holiday-page,
html[data-theme="dark"] .holiday-page h1,
html[data-theme="dark"] .holiday-page h2,
html[data-theme="dark"] .holiday-page h3,
html[data-theme="dark"] .holiday-hero-summary strong,
html[data-theme="dark"] .holiday-schedule-title,
html[data-theme="dark"] .holiday-clock .countdown-counter-unit .unit,
html[data-theme="dark"] .holiday-market-hours strong,
html[data-theme="dark"] .holiday-empty-title {
  color: var(--ismo-text);
}
html[data-theme="dark"] .holiday-hero,
html[data-theme="dark"] .holiday-schedule,
html[data-theme="dark"] .holiday-market,
html[data-theme="dark"] .holiday-page .faq-widget,
html[data-theme="dark"] .holiday-clock .countdown-counter-unit,
html[data-theme="dark"] .holiday-filters button.is-active {
  background: var(--ismo-bg-raised);
  border-color: var(--ismo-border);
  box-shadow: none;
}
html[data-theme="dark"] .holiday-clock,
html[data-theme="dark"] .holiday-hero-flag,
html[data-theme="dark"] .holiday-codes,
html[data-theme="dark"] .holiday-year-badge,
html[data-theme="dark"] .holiday-pill,
html[data-theme="dark"] .holiday-filters,
html[data-theme="dark"] .holiday-search input,
html[data-theme="dark"] .holiday-when.is-past,
html[data-theme="dark"] .holiday-status.is-closed,
html[data-theme="dark"] .holiday-empty-icon,
html[data-theme="dark"] .holiday-empty button {
  background: var(--ismo-bg-muted);
  border-color: var(--ismo-border);
  color: var(--ismo-text);
}
html[data-theme="dark"] .holiday-year select {
  background-color: var(--ismo-bg-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  border-color: var(--ismo-border);
  color: var(--ismo-text);
}
html[data-theme="dark"] .holiday-hero-summary,
html[data-theme="dark"] .holiday-schedule-intro p,
html[data-theme="dark"] .holiday-related-head p,
html[data-theme="dark"] .holiday-market-body p,
html[data-theme="dark"] .holiday-schedule-name p,
html[data-theme="dark"] .holiday-clock-label,
html[data-theme="dark"] .holiday-clock-foot,
html[data-theme="dark"] .holiday-empty p {
  color: var(--ismo-text-muted);
}
html[data-theme="dark"] .holiday-schedule-head,
html[data-theme="dark"] .holiday-schedule-columns,
html[data-theme="dark"] .holiday-schedule-row,
html[data-theme="dark"] .holiday-clock-foot,
html[data-theme="dark"] .holiday-market-foot,
html[data-theme="dark"] .holiday-page .faq-widget .site-title-with-icon,
html[data-theme="dark"] .holiday-page .faq-item {
  border-color: var(--ismo-border);
}
html[data-theme="dark"] .holiday-page .faq-widget .site-title-with-icon,
html[data-theme="dark"] .holiday-page .faq-widget .title {
  background: transparent;
  color: var(--ismo-text);
}
html[data-theme="dark"] .holiday-schedule-columns { background: rgba(34, 40, 54, 0.55); }
html[data-theme="dark"] .holiday-schedule-row:hover { background: rgba(34, 40, 54, 0.45); }
html[data-theme="dark"] .holiday-schedule-row.is-today,
html[data-theme="dark"] .holiday-schedule-row.is-today:hover,
html[data-theme="dark"] .holiday-pill--next,
html[data-theme="dark"] .holiday-clock-badge,
html[data-theme="dark"] .holiday-when.is-today,
html[data-theme="dark"] .holiday-status.is-early,
html[data-theme="dark"] .holiday-clock .countdown-counter-unit--seconds {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}
html[data-theme="dark"] .holiday-clock .countdown-counter-unit--seconds .unit,
html[data-theme="dark"] .holiday-clock-time { color: #fcd34d; }
html[data-theme="dark"] .holiday-pill--closed,
html[data-theme="dark"] .holiday-clock-badge--closed,
html[data-theme="dark"] .holiday-status.is-upcoming,
html[data-theme="dark"] .holiday-market-status.is-closed {
  background: rgba(136, 19, 55, 0.35);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}
html[data-theme="dark"] .holiday-when.is-future,
html[data-theme="dark"] .holiday-market-status.is-open,
html[data-theme="dark"] .holiday-kicker,
html[data-theme="dark"] .holiday-state.is-upcoming {
  background: rgba(6, 78, 59, 0.45);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
html[data-theme="dark"] .holiday-kpi,
html[data-theme="dark"] .holiday-about,
html[data-theme="dark"] .holiday-takeaway,
html[data-theme="dark"] .holiday-board-ticker,
html[data-theme="dark"] .holiday-date-pill,
html[data-theme="dark"] .holiday-about-badge,
html[data-theme="dark"] .holiday-row-ics,
html[data-theme="dark"] .holiday-state.is-past {
  background: var(--ismo-bg-muted);
  border-color: var(--ismo-border);
  color: var(--ismo-text);
}
html[data-theme="dark"] .holiday-kpi-value,
html[data-theme="dark"] .holiday-about h2,
html[data-theme="dark"] .holiday-takeaway h3,
html[data-theme="dark"] .holiday-board-date,
html[data-theme="dark"] .holiday-board-name a {
  color: var(--ismo-text);
}
html[data-theme="dark"] .holiday-kpi-value.is-closed,
html[data-theme="dark"] .holiday-observance .holiday-hero-summary strong.is-closed,
html[data-theme="dark"] .holiday-observance .holiday-status.is-closed {
  color: #fecdd3;
}
html[data-theme="dark"] .holiday-observance .holiday-status.is-closed {
  background: rgba(136, 19, 55, 0.35);
  border-color: rgba(251, 113, 133, 0.35);
}
html[data-theme="dark"] .holiday-kpi-value.is-early,
html[data-theme="dark"] .holiday-observance .holiday-hero-summary strong.is-early {
  color: #fcd34d;
}
html[data-theme="dark"] .holiday-kpi-note,
html[data-theme="dark"] .holiday-about-head p,
html[data-theme="dark"] .holiday-about-copy,
html[data-theme="dark"] .holiday-takeaway p,
html[data-theme="dark"] .holiday-board-id p,
html[data-theme="dark"] .holiday-board-when {
  color: var(--ismo-text-muted);
}
html[data-theme="dark"] .holiday-about-head,
html[data-theme="dark"] .holiday-board-row,
html[data-theme="dark"] .holiday-board-date {
  border-color: var(--ismo-border);
}
html[data-theme="dark"] .holiday-board-row:hover { background: rgba(34, 40, 54, 0.45); }
html[data-theme="dark"] .holiday-row-ics:hover,
html[data-theme="dark"] .holiday-row-ics:focus {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
html[data-theme="dark"] .holiday-state.is-today {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}
html[data-theme="dark"] .holiday-market-foot a {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
html[data-theme="dark"] .holiday-market-foot a:hover,
html[data-theme="dark"] .holiday-market-foot a:focus {
  background: #10b981;
  color: #042f2e;
}
html[data-theme="dark"] .holiday-filters button { color: var(--ismo-text-muted); background: transparent; }
html[data-theme="dark"] .holiday-filters button.is-active { color: var(--ismo-text); }
html[data-theme="dark"] a.holiday-schedule-title:hover,
html[data-theme="dark"] .holiday-market:hover h3 { color: #6ee7b7; }

/* Homepage */

body.home,
body.home .site {
  background: #f8fafc;
}

.home-board {
  margin: 28px 0 12px;
  padding: 0 var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-board p:not(.home-live-pill) {
  padding-bottom: 0;
}

.home-board h1,
.home-board h2,
.home-board h3 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-hero {
  position: relative;
  z-index: 3;
}

.home-hero,
.home-map,
.home-holidays,
.home-faq,
.home-card,
.home-empty {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-hero,
.home-holidays,
.home-faq {
  padding: 24px;
}

.home-hero-top,
.home-section-head,
.home-map-head,
.home-holidays-head,
.home-faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.home-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.home-hero h1 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.15;
}

.home-board h2 {
  font-size: 20px;
  line-height: 1.25;
}

.home-lead,
.home-map-head p,
.home-section-head p,
.home-holidays-head p,
.home-faq-head p,
.home-card-place,
.home-empty p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.home-lead strong {
  color: #0f172a;
  font-weight: 600;
}

.home-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 12px;
  font-weight: 600;
}

.home-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.home-pulse:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: home-pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes home-pulse-ring {
  0% { transform: scale(0.85); opacity: 0.85; }
  75%, 100% { transform: scale(2.15); opacity: 0; }
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 12px;
  flex: 0 0 auto;
}

.home-stat {
  padding: 12px 16px;
  border-radius: 12px;
}

.home-stat--open {
  background: rgba(236, 253, 245, 0.8);
  border: 1px solid rgba(167, 243, 208, 0.9);
}

.home-stat--closed {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.home-stat-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #047857;
}

.home-stat--closed .home-stat-value {
  color: #1e293b;
}

.home-stat-label {
  margin-top: 4px;
  color: rgba(4, 120, 87, 0.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-stat--closed .home-stat-label {
  color: #64748b;
}

.home-hero-search {
  position: relative;
  z-index: 4;
  margin-top: 22px;
}

.home-hero-search .exchange-search-results {
  z-index: 5;
  margin-top: 0;
}

.home-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

#home-exchange-search {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 84px 0 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 400;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  -webkit-appearance: none;
  appearance: none;
}

#home-exchange-search:focus {
  outline: none;
  border-color: #10b981;
  background: #fff;
}

#home-search-clear,
.home-reset,
.home-pill,
.home-ticker-pill {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

#home-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.8);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

#home-search-clear:hover,
#home-search-clear:focus {
  color: #0f172a;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.home-pill:hover,
.home-pill:focus {
  background: #e2e8f0;
}

.home-pill.is-active {
  background: #059669;
  color: #fff;
}

.home-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
}

.home-pill.is-active .home-pill-dot {
  background: #fff;
}

.home-map {
  overflow: hidden;
}

.home-map-head,
.home-ticker {
  padding: 20px 24px;
}

.home-map-head {
  border-bottom: 1px solid #f1f5f9;
}

.home-legend,
.home-legend span,
.home-ticker-head,
.home-inspector-foot,
.home-card-region,
.home-holiday-top,
.home-faq article p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-legend {
  gap: 16px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.home-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.home-legend i.is-open,
.home-ticker-dot.is-open,
.home-badge.is-open .home-badge-dot {
  background: #10b981;
}

.home-legend i.is-closed,
.home-ticker-dot,
.home-badge.is-closed .home-badge-dot {
  background: #f43f5e;
}

.home-map-layout {
  display: grid;
}

.home-map-canvas {
  min-height: 340px;
  background: #e7eef5;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.home-map .exchange-map {
  height: 380px;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.home-inspector {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 16px;
  background: rgba(248, 250, 252, 0.7);
}

.home-inspector-head,
.home-card-top,
.home-card-facts div,
.home-inspector-facts div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-inspector-identity,
.home-card-identity,
.home-holidays-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-inspector-flag {
  font-size: 28px;
  line-height: 1;
}

.home-inspector-kicker,
.home-card-region,
.home-ticker-head,
.home-inspector-foot {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-inspector h3,
.home-card h3 {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.3;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.home-badge.is-open {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.home-badge.is-open .home-badge-dot {
  animation: home-dot-pulse 1.6s ease-in-out infinite;
}

.home-badge.is-closed {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

@keyframes home-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.home-inspector-facts,
.home-card-facts {
  margin: 16px 0 0;
}

.home-inspector-facts {
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #fff;
}

.home-inspector-facts div + div,
.home-card-facts div + div {
  margin-top: 10px;
}

.home-inspector-facts dt,
.home-card-facts dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.home-inspector-facts dd,
.home-card-facts dd {
  margin: 0;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-inspector-facts dd.is-open,
.home-card-facts dd.is-open {
  color: #059669;
}

.home-inspector-link,
.home-inspector-link:visited,
.home-card-link,
.home-card-link:visited,
.home-text-link,
.home-text-link:visited,
.home-holiday,
.home-holiday:visited {
  text-decoration: none;
}

.home-inspector-link,
.home-inspector-link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #059669;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.home-inspector-link:hover,
.home-inspector-link:focus {
  background: #10b981;
  color: #fff;
}

.home-inspector-link svg {
  width: 16px;
  height: 16px;
}

.home-inspector-foot {
  justify-content: space-between;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.home-inspector-foot span:last-child {
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.home-ticker {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.85);
}

.home-ticker-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.home-ticker-hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.home-ticker-strip {
  display: flex;
  overflow: hidden;
  margin: 0 -24px;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.home-ticker-track {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  width: max-content;
  padding-right: 8px;
  animation: home-ticker-marquee 48s linear infinite;
}

.home-ticker-strip:hover .home-ticker-track,
.home-ticker-strip:has(.home-ticker-pill:focus-visible) .home-ticker-track {
  animation-play-state: paused;
}

@keyframes home-ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ticker-track {
    animation: none;
  }

  .home-ticker-track[aria-hidden="true"] {
    display: none;
  }

  .home-ticker-strip {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-ticker-strip::-webkit-scrollbar {
    display: none;
  }
}

.home-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}

.home-ticker-pill:hover,
.home-ticker-pill:focus {
  border-color: #cbd5e1;
}

.home-ticker-pill.is-selected {
  border-color: #10b981;
  background: rgba(236, 253, 245, 0.75);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.home-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f43f5e;
}

.home-ticker-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.home-ticker-state {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-ticker-state.is-open {
  color: #059669;
}

.home-directory-grid,
.home-holiday-grid,
.home-faq-grid {
  display: grid;
  gap: 14px;
}

.home-directory-grid {
  margin-top: 16px;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.home-card[hidden],
.home-empty[hidden],
.home-reset[hidden],
#home-search-clear[hidden] {
  display: none;
}

.home-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.home-code {
  padding: 2px 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.home-card-region {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.home-card-facts {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.home-card-link,
.home-card-link:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
}

.home-card-link:hover,
.home-card-link:focus {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.home-reset {
  padding: 6px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.85);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.home-reset:hover,
.home-reset:focus {
  background: #cbd5e1;
}

.home-empty {
  margin-top: 16px;
  padding: 40px 20px;
  text-align: center;
}

.home-empty-title {
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
}

.home-holidays-head,
.home-faq-head {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.home-holidays-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.home-holidays-icon svg {
  width: 20px;
  height: 20px;
}

.home-text-link,
.home-text-link:visited {
  color: #059669;
  font-size: 14px;
  font-weight: 700;
}

.home-text-link:hover,
.home-text-link:focus {
  color: #047857;
}

.home-holiday-grid,
.home-faq-grid {
  margin-top: 18px;
}

.home-holiday,
.home-holiday:visited {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
}

.home-holiday:hover,
.home-holiday:focus {
  border-color: rgba(16, 185, 129, 0.45);
  color: #0f172a;
}

.home-holiday-top {
  justify-content: space-between;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
}

.home-holiday-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}

.home-holiday strong {
  display: block;
  font-size: 14px;
}

.home-holiday time {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.home-faq-grid {
  grid-template-columns: 1fr;
}

.home-faq article {
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: #f8fafc;
}

.home-faq h3 {
  font-size: 14px;
  font-weight: 800;
}

.home-faq article p {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

button.exchange-marker.is-selected {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35);
  z-index: 3;
}

.exchange-tooltip.maplibregl-popup .maplibregl-popup-content {
  white-space: normal;
  min-width: 180px;
}

.exchange-tip-top,
.exchange-tip-meta,
.exchange-tip-bell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exchange-tip-top strong {
  font-size: 13px;
}

.exchange-tip-status {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exchange-tip-status.is-open {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.exchange-tip-status.is-closed {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
}

.exchange-tip-meta,
.exchange-tip-bell {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.exchange-tip-bell {
  color: #059669;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-footer {
  margin-top: 28px;
  padding: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 22px 24px 26px;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.site-footer-brand span:first-child {
  color: #334155;
  font-weight: 800;
}

.site-footer a,
.site-footer a:visited {
  color: #059669;
  font-weight: 700;
  text-decoration: none;
}

@media only screen and (min-width: 720px) {
  .home-hero h1 {
    font-size: 34px;
  }
  .home-directory-grid,
  .home-holiday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (min-width: 960px) {
  .home-hero-top {
    flex-wrap: nowrap;
    align-items: flex-end;
  }
}

@media only screen and (min-width: 1020px) {
  .home-hero,
  .home-holidays,
  .home-faq {
    padding: 32px;
  }
  .home-map-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  }
  .home-map-canvas {
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom: 0;
  }
  .home-map .exchange-map {
    height: 460px;
  }
  .home-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .home-holiday-grid,
  .home-faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-holiday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

html[data-theme="dark"] body.home,
html[data-theme="dark"] body.home .site {
  background: #020617;
}

html[data-theme="dark"] .home-board h1,
html[data-theme="dark"] .home-board h2,
html[data-theme="dark"] .home-board h3,
html[data-theme="dark"] .home-lead strong,
html[data-theme="dark"] .home-stat--closed .home-stat-value,
html[data-theme="dark"] .home-inspector-facts dd,
html[data-theme="dark"] .home-card-facts dd,
html[data-theme="dark"] .home-code,
html[data-theme="dark"] .home-holiday,
html[data-theme="dark"] .home-holiday:visited,
html[data-theme="dark"] .home-holiday:hover,
html[data-theme="dark"] .home-holiday-top,
html[data-theme="dark"] .home-empty-title,
html[data-theme="dark"] .home-ticker-pill,
html[data-theme="dark"] .site-footer-brand span:first-child {
  color: #f8fafc;
}

html[data-theme="dark"] .home-hero,
html[data-theme="dark"] .home-map,
html[data-theme="dark"] .home-holidays,
html[data-theme="dark"] .home-faq,
html[data-theme="dark"] .home-card,
html[data-theme="dark"] .home-empty,
html[data-theme="dark"] .home-ticker-pill,
html[data-theme="dark"] .home-inspector-facts,
html[data-theme="dark"] .site-footer {
  background: #0f172a;
  border-color: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .home-lead,
html[data-theme="dark"] .home-map-head p,
html[data-theme="dark"] .home-section-head p,
html[data-theme="dark"] .home-holidays-head p,
html[data-theme="dark"] .home-faq-head p,
html[data-theme="dark"] .home-card-place,
html[data-theme="dark"] .home-faq article p,
html[data-theme="dark"] .home-inspector-facts dt,
html[data-theme="dark"] .home-card-facts dt,
html[data-theme="dark"] .home-holiday time,
html[data-theme="dark"] .home-legend,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer p {
  color: #94a3b8;
}

html[data-theme="dark"] .home-live-pill {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

html[data-theme="dark"] .home-stat--open {
  background: rgba(6, 78, 59, 0.35);
  border-color: rgba(6, 95, 70, 0.7);
}

html[data-theme="dark"] .home-stat--closed {
  background: rgba(30, 41, 59, 0.7);
  border-color: #334155;
}

html[data-theme="dark"] .home-stat-value,
html[data-theme="dark"] .home-stat-label,
html[data-theme="dark"] .home-inspector-facts dd.is-open,
html[data-theme="dark"] .home-card-facts dd.is-open,
html[data-theme="dark"] .home-ticker-state.is-open,
html[data-theme="dark"] .home-text-link,
html[data-theme="dark"] .home-text-link:visited,
html[data-theme="dark"] .exchange-tip-bell {
  color: #6ee7b7;
}

html[data-theme="dark"] .home-stat--closed .home-stat-label {
  color: #94a3b8;
}

html[data-theme="dark"] #home-exchange-search {
  background: rgba(30, 41, 59, 0.8);
  border-color: #334155;
  color: #fff;
}

html[data-theme="dark"] #home-exchange-search:focus {
  background: #020617;
  border-color: #10b981;
}

html[data-theme="dark"] .home-pill,
html[data-theme="dark"] .home-code,
html[data-theme="dark"] .home-reset,
html[data-theme="dark"] #home-search-clear,
html[data-theme="dark"] .home-faq article,
html[data-theme="dark"] .home-holiday,
html[data-theme="dark"] .home-holiday:visited {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .home-pill.is-active {
  background: #059669;
  color: #fff;
}

html[data-theme="dark"] .home-map-head,
html[data-theme="dark"] .home-map-canvas,
html[data-theme="dark"] .home-ticker,
html[data-theme="dark"] .home-inspector-foot,
html[data-theme="dark"] .home-card-facts,
html[data-theme="dark"] .home-holidays-head,
html[data-theme="dark"] .home-faq-head {
  border-color: #1e293b;
}

html[data-theme="dark"] .home-map-canvas {
  background: #020617;
}

html[data-theme="dark"] .home-inspector,
html[data-theme="dark"] .home-ticker,
html[data-theme="dark"] .home-card-link,
html[data-theme="dark"] .home-card-link:visited {
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

html[data-theme="dark"] .home-badge.is-open {
  background: rgba(6, 78, 59, 0.55);
  border-color: rgba(6, 95, 70, 0.8);
  color: #6ee7b7;
}

html[data-theme="dark"] .home-badge.is-closed {
  background: rgba(136, 19, 55, 0.4);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

html[data-theme="dark"] .home-ticker-pill.is-selected {
  background: rgba(6, 78, 59, 0.35);
  border-color: #10b981;
}

html[data-theme="dark"] .home-card-link:hover,
html[data-theme="dark"] .home-card-link:focus {
  background: #10b981;
  border-color: #10b981;
  color: #042f2e;
}

html[data-theme="dark"] .home-holiday-badge {
  background: rgba(120, 53, 15, 0.55);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

html[data-theme="dark"] .exchange-tip-status.is-open {
  color: #6ee7b7;
}

html[data-theme="dark"] .exchange-tip-status.is-closed {
  color: #fecdd3;
}

html[data-theme="dark"] .site-footer {
  background: rgba(15, 23, 42, 0.72);
  border-top-color: #1e293b;
}

@media only screen and (max-width: 719px) {
  .home-ticker-hint {
    display: none;
  }
}
