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

:root {
  --c2c-navy: #0a192f;
  --c2c-navy-light: #1e3a8a;
  --c2c-crimson: #b91c1c;
  --c2c-crimson-light: #dc2626;
  --c2c-white: #ffffff;
  --c2c-bg: #f8fafc;
  --c2c-grey: #e2e8f0;
  --c2c-text: #0f172a;
  --c2c-text-muted: #64748b;
  --c2c-max: 80rem;
  --c2c-gutter: 1rem;
  --header-offset: 9rem;
  --footer-offset: 2rem;

  /* Legacy aliases for existing class names */
  --bbc-black: var(--c2c-navy);
  --bbc-white: var(--c2c-white);
  --bbc-grey: var(--c2c-grey);
  --bbc-max: var(--c2c-max);
  --bbc-gutter: var(--c2c-gutter);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--c2c-bg);
  color: var(--c2c-text);
  line-height: 1.375;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(220, 38, 38, 0.18);
  color: var(--c2c-crimson-light);
}

::-moz-selection {
  background: rgba(220, 38, 38, 0.18);
  color: var(--c2c-crimson-light);
}

.bbc-header ::selection,
.bbc-nav ::selection,
.bbc-footer ::selection {
  background: rgba(220, 38, 38, 0.45);
  color: var(--c2c-white);
}

.bbc-header ::-moz-selection,
.bbc-nav ::-moz-selection,
.bbc-footer ::-moz-selection {
  background: rgba(220, 38, 38, 0.45);
  color: var(--c2c-white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--c2c-navy);
  color: var(--c2c-white);
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: var(--c2c-gutter);
  top: var(--c2c-gutter);
}

/* —— Header with subtle topographic pattern —— */

.bbc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background-color: var(--c2c-navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cg fill='none' stroke='%231e3a8a' stroke-width='0.5' opacity='0.35'%3E%3Cpath d='M0 80 Q50 60 100 80 T200 80 T300 80 T400 80'/%3E%3Cpath d='M0 100 Q60 120 120 100 T240 100 T360 100 T400 100'/%3E%3Cpath d='M0 120 Q40 100 80 120 T160 120 T240 120 T320 120 T400 120'/%3E%3Cpath d='M0 140 Q70 160 140 140 T280 140 T400 140'/%3E%3Cpath d='M0 60 Q80 40 160 60 T320 60 T400 60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 200px;
  color: var(--c2c-white);
  border-bottom: 3px solid var(--c2c-crimson);
}

.bbc-header--minimal .bbc-clock__date {
  display: none;
}

.bbc-header--minimal .bbc-logo__name,
.bbc-header--minimal .bbc-logo__tagline,
.bbc-header--minimal .header-tagline-container {
  display: none;
}

.bbc-header--minimal .header-logo {
  height: 3rem;
  width: auto;
}

.bbc-header--minimal .bbc-header__inner {
  min-height: 2rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.bbc-header--minimal .bbc-logo__monogram {
  transform: scale(0.85);
  transform-origin: left center;
}

.bbc-header--minimal .bbc-logo__letter {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.5625rem;
}

.bbc-header--minimal .bbc-clock__time {
  font-size: 0.875rem;
}

.bbc-header--minimal .bbc-nav {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bbc-header--minimal .bbc-nav__inner {
  min-height: 2rem;
}

.bbc-header--minimal .bbc-nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.bbc-header--minimal .bbc-nav__chevron {
  font-size: 0.5rem;
}

.bbc-header__inner,
.bbc-nav__inner,
.bbc-region-panel__inner,
.bbc-main__inner,
.bbc-footer__inner {
  max-width: var(--c2c-max);
  margin: 0 auto;
  padding-left: var(--c2c-gutter);
  padding-right: var(--c2c-gutter);
}

.bbc-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 5.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-tagline-container,
.header-logo-container,
.bbc-header__meta {
  flex: 1;
  min-width: 0;
}

.header-tagline-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-tagline {
  max-width: 16rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.header-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.header-logo {
  display: block;
  width: auto;
  height: 4.5rem;
  max-width: 100%;
}

.bbc-logo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.bbc-logo__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.bbc-logo__mark {
  display: flex;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.bbc-logo__monogram {
  display: inline-flex;
  border: 2px solid var(--c2c-crimson);
  background: rgba(185, 28, 28, 0.15);
}

.bbc-logo__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c2c-white);
}

.bbc-logo__letter + .bbc-logo__letter {
  border-left: 1px solid var(--c2c-crimson);
}

.bbc-logo__name {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: 1.125rem;
  color: var(--c2c-white);
}

.bbc-logo__tagline {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #94a3b8;
  max-width: 18rem;
}

.bbc-header__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
}

.bbc-header__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.625rem;
  list-style: none;
}

.bbc-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c2c-white);
  text-decoration: none;
}

.bbc-social-link:hover {
  color: var(--c2c-crimson-light);
}

.bbc-social-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.bbc-header--minimal .bbc-social-icon {
  width: 1rem;
  height: 1rem;
}

.bbc-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  max-width: 16rem;
  line-height: 1.3;
}

.bbc-clock__time {
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bbc-clock__date {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

/* Secondary nav row */

.bbc-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  background: var(--c2c-navy);
}

.bbc-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.5rem;
}

.bbc-nav__list {
  display: flex;
  flex: 1;
  min-width: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bbc-nav__list::-webkit-scrollbar {
  display: none;
}

.bbc-nav__item {
  flex: 0 0 auto;
}

.bbc-nav__item--end {
  margin-left: auto;
}

.bbc-nav__meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.bbc-nav__link {
  display: block;
  padding: 0.6875rem 1rem;
  border: none;
  background: transparent;
  color: var(--c2c-white);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.25;
}

.bbc-nav__link:hover {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bbc-nav__link--active {
  font-weight: 700;
  box-shadow: inset 0 -0.25rem 0 var(--c2c-crimson);
  text-decoration: none;
  color: var(--c2c-white);
}

.bbc-nav__link--menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bbc-nav__chevron {
  font-size: 0.625rem;
  transition: transform 0.15s;
}

.bbc-nav__link--menu[aria-expanded="true"] .bbc-nav__chevron {
  transform: rotate(180deg);
}

.bbc-region-panel,
.bbc-publisher-panel {
  background: var(--c2c-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bbc-region-panel__inner {
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
}

.bbc-region-panel__inner--states {
  max-width: none;
  padding: 1.5rem var(--c2c-gutter) 2rem;
}

.states-mega-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem 1.75rem;
  max-width: var(--c2c-max);
  margin: 0 auto;
}

.state-link {
  display: block;
  width: 100%;
  padding: 0.375rem 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #cbd5e1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.state-link:hover {
  color: var(--c2c-white);
}

.state-link--active {
  color: var(--c2c-crimson-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
}

.bbc-region-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.bbc-region-item {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--c2c-white);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
}

.bbc-region-item:hover,
.bbc-region-item--active,
.bbc-publisher-item:hover,
.bbc-publisher-item--active {
  text-decoration: underline;
  font-weight: 700;
  color: var(--c2c-crimson-light);
}

.bbc-publisher-item {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--c2c-white);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
}

.bbc-publisher-empty {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* —— Main content —— */

.bbc-main {
  flex: 1;
  padding: 1rem 0 2rem;
  padding-top: calc(var(--header-offset) + 1rem);
  padding-bottom: var(--footer-offset);
  transition: padding-bottom 0.25s ease;
}

/* —— Footer (fixed, scroll-aware) —— */

.bbc-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c2c-navy);
  color: var(--c2c-white);
  border-top: 3px solid var(--c2c-crimson);
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.bbc-footer--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.bbc-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.bbc-footer__meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
}

.bbc-footer__meta-link {
  border: none;
  background: transparent;
  color: var(--c2c-white);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.bbc-footer__meta-link:hover,
.bbc-footer__meta-link--active {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--c2c-crimson-light);
}

.bbc-footer__meta-link--active {
  font-weight: 700;
}

.bbc-about {
  padding-top: 0.25rem;
}

.bbc-about .bbc-prose {
  max-width: 40rem;
}

.bbc-footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  color: var(--c2c-crimson-light);
}

.bbc-footer__heading--social {
  margin-top: 1.25rem;
}

.bbc-footer__regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.25rem 0.5rem;
  list-style: none;
}

.bbc-footer__region {
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  color: var(--c2c-white);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.bbc-footer__region:hover,
.bbc-footer__region--active {
  text-decoration: underline;
  font-weight: 700;
  color: var(--c2c-crimson-light);
}

.bbc-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  list-style: none;
}

.bbc-footer__social .bbc-social-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--c2c-navy);
  background: var(--c2c-white);
  color: var(--c2c-navy);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    bottom 0.25s ease;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--c2c-navy);
  color: var(--c2c-white);
}

.scroll-top--above-footer {
  bottom: calc(var(--footer-offset) + 1rem);
}

/* Static info pages */

.bbc-page .bbc-main__inner {
  max-width: 40rem;
}

.bbc-prose {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bbc-prose p + p {
  margin-top: 1rem;
}

.bbc-prose a {
  color: var(--c2c-navy-light);
  font-weight: 600;
}

.bbc-back {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.bbc-back a {
  color: var(--c2c-navy-light);
  font-weight: 600;
}

.bbc-page-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 4px solid var(--c2c-navy);
}

.bbc-page-title {
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c2c-navy);
}

.status {
  font-size: 0.9375rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--c2c-text-muted);
}

.status--error {
  border: 2px solid var(--c2c-crimson);
  padding: 1rem;
  color: var(--c2c-crimson);
  background: rgba(185, 28, 28, 0.05);
}

.error-message {
  font-size: 0.9375rem;
  padding: 2rem 1rem;
  text-align: center;
  border: 2px solid var(--c2c-crimson);
  color: var(--c2c-crimson);
  background: rgba(185, 28, 28, 0.05);
}

.bbc-stories {
  list-style: none;
}

.bbc-story {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c2c-grey);
}

.bbc-story:first-child {
  padding-top: 0.25rem;
}

.bbc-story__link {
  flex: 1 1 14rem;
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.bbc-story__headline {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  color: var(--c2c-text);
  transition: color 0.2s ease-in-out;
}

.bbc-story__link:hover .bbc-story__headline {
  color: var(--c2c-crimson-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bbc-story__meta {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c2c-text-muted);
}

.bbc-story__meta span + span::before {
  content: " | ";
}

.bbc-story__share {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.bbc-story__share-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c2c-text-muted);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--c2c-grey);
  border-radius: 999px;
  background: var(--c2c-white);
  color: var(--c2c-navy);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.share-btn:hover {
  border-color: var(--c2c-crimson-light);
  color: var(--c2c-crimson-light);
  background: rgba(220, 38, 38, 0.06);
}

.share-btn__icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.share-btn--copy {
  width: auto;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* —— News modal popup —— */

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: none;
  background: transparent;
  overflow: hidden;
}

.news-modal:not([open]) {
  display: none;
}

.news-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
}

.news-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.news-modal__card {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: news-modal-in 0.25s ease-out;
}

@keyframes news-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.news-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.news-modal__close:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
  transform: scale(1.08);
}

.news-modal__close-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
}

.news-modal__figure {
  margin: 0 0 1.25rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c2c-grey);
}

.news-modal__image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.news-modal__title {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c2c-navy);
  margin: 0 2rem 0.75rem 0;
}

.news-modal__meta {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.news-modal__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c2c-text);
  margin: 0;
}

.news-modal__actions {
  margin-top: 1.5rem;
}

.news-modal__read-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: #dc2626;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.news-modal__read-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.news-modal__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 25px;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.news-modal__share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c2c-text-muted);
}

.news-modal__share .share-buttons {
  gap: 0.5rem;
}

.news-modal__share .share-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.news-modal__share .share-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

body.modal-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 10000;
  transform: translateX(-50%) translateY(0.5rem);
  padding: 0.65rem 1rem;
  border-radius: 0.375rem;
  background: var(--c2c-navy);
  color: var(--c2c-white);
  font-size: 0.8125rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .bbc-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    min-height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    gap: 0.5rem;
  }

  .header-tagline-container {
    display: none;
  }

  .header-logo-container {
    flex: 1 1 100%;
    order: 1;
  }

  .bbc-header__meta {
    flex: 1 1 100%;
    order: 2;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .bbc-header__social {
    justify-content: center;
  }

  .bbc-clock {
    align-items: center;
    max-width: none;
  }

  .header-logo {
    height: 3.25rem;
  }

  .bbc-header--minimal .header-logo-container {
    flex: 0 1 auto;
  }

  .bbc-header--minimal .bbc-header__meta {
    flex: 0 1 auto;
  }
}

@media (min-width: 37.5rem) {
  :root {
    --c2c-gutter: 1rem;
  }

  .states-mega-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 2rem;
  }

  .state-link {
    font-size: 0.9375rem;
  }

  .bbc-logo__letter {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .bbc-logo__name {
    font-size: 1.375rem;
  }

  .bbc-logo__tagline {
    font-size: 0.6875rem;
  }

  .bbc-clock__date {
    font-size: 0.8125rem;
  }

  .bbc-page-title {
    font-size: 2.5rem;
  }

  .bbc-story__headline {
    font-size: 1.25rem;
  }
}

@media (min-width: 63rem) {
  .states-mega-menu {
    grid-template-columns: repeat(6, 1fr);
  }

  .bbc-story__headline {
    font-size: 1.375rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --c2c-bg: #0f172a;
    --c2c-text: #f1f5f9;
    --c2c-text-muted: #94a3b8;
    --c2c-grey: #1e293b;
    --c2c-white: #f8fafc;
  }

  body {
    background: var(--c2c-bg);
    color: var(--c2c-text);
  }

  .bbc-story__headline {
    color: var(--c2c-text);
  }

  .bbc-page-title {
    color: var(--c2c-text);
  }

  .scroll-top {
    background: #1e293b;
    color: var(--c2c-text);
    border-color: var(--c2c-navy-light);
  }

  .scroll-top:hover {
    background: var(--c2c-navy-light);
    color: var(--c2c-white);
  }

  .news-modal__card {
    background: #0f172a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  }

  .news-modal__title {
    color: var(--c2c-text);
  }

  .news-modal__close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .news-modal__share {
    border-top-color: #1e293b;
  }

  .news-modal__share .share-btn {
    border-color: #334155;
    background: #1e293b;
    color: var(--c2c-text);
  }
}
