:root {
  --sw-blue: #0057b8;
  --sw-blue-dark: #073b72;
  --sw-red: #ee0024;
  --sw-yellow: #ffcd00;
  --sw-ink: #13213a;
  --sw-muted: #5c687b;
  --sw-line: #dbe4ef;
  --sw-sky: #eef6ff;
  --sw-paper: #f6f0e3;
}

.sw-logo { gap: 11px; font-weight: 900; color: var(--sw-blue); }
.sw-logo b { color: var(--sw-red); }
.sw-logo-disc { width: 46px; height: 46px; overflow: hidden; border: 3px solid var(--sw-blue); border-radius: 50%; }
.sw-logo-disc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.sw-hero {
  position: relative;
  min-height: min(730px, 78vh);
  overflow: hidden;
  background: #062c58;
  isolation: isolate;
}
.sw-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/images/thomas/sodor-key-art.jpg") 66% 48% / cover no-repeat;
}
.sw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3,23,46,.94) 0%, rgba(3,36,72,.82) 40%, rgba(3,36,72,.12) 76%);
}
.sw-hero-inner { min-height: inherit; display: flex; align-items: center; }
.sw-hero-copy { width: min(650px, 58vw); padding: 76px 0 92px; color: #fff; }
.sw-hero h1 { margin: 0 0 26px; max-width: 620px; color: #fff; font-size: clamp(3.2rem, 7.4vw, 6.8rem); line-height: .9; letter-spacing: -.065em; }
.sw-hero p { margin: 0 0 34px; color: rgba(255,255,255,.9); font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.64; }
.sw-primary-action,
.sw-times a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--sw-yellow);
  color: var(--sw-ink);
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.sw-route { padding: 92px 0 66px; background: #fff; }
.sw-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 42px; }
.sw-section-head h2 { margin: 0; color: var(--sw-ink); font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -.055em; line-height: .95; }
.sw-section-head p { max-width: 560px; margin: 0 0 6px; color: var(--sw-muted); font-size: 1.08rem; line-height: 1.7; }
.sw-country-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding-top: 30px;
}
.sw-country-tabs::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 7%;
  right: 7%;
  height: 3px;
  background: var(--sw-line);
}
.sw-country-tab {
  position: relative;
  z-index: 1;
  min-height: 122px;
  padding: 0 8px 12px;
  border: 0;
  background: transparent;
  color: var(--sw-muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.sw-country-tab::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 17px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #b8c6d6;
  box-shadow: 0 0 0 2px #b8c6d6;
  transition: .2s ease;
}
.sw-country-tab span { display: block; font-size: 1.85rem; margin-bottom: 7px; }
.sw-country-tab strong { display: block; font-size: 1rem; line-height: 1.25; }
.sw-country-tab:hover::before,
.sw-country-tab:focus-visible::before,
.sw-country-tab[aria-selected="true"]::before {
  background: var(--sw-red);
  box-shadow: 0 0 0 2px var(--sw-red), 0 8px 18px rgba(238,0,36,.22);
  transform: scale(1.08);
}
.sw-country-tab[aria-selected="true"] { color: var(--sw-ink); }
.sw-country-tab:focus-visible { outline: 3px solid rgba(0,87,184,.25); outline-offset: 5px; border-radius: 8px; }

.sw-country { padding: 70px 0 0; background: linear-gradient(#f7fbff, #fff 22%); }
.sw-country-heading { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: end; margin-bottom: 70px; }
.sw-country-flag { display: block; margin-bottom: 10px; font-size: 3.2rem; }
.sw-country-heading h2 { margin: 0; color: var(--sw-ink); font-size: clamp(3.2rem, 7vw, 6rem); letter-spacing: -.06em; line-height: .9; }
.sw-local-title { margin: 16px 0 0; color: var(--sw-red); font-size: 1.15rem; font-weight: 900; }
.sw-country-lede { max-width: 670px; margin: 0 0 2px; color: var(--sw-muted); font-family: Georgia, serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.58; }

.sw-feature { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); gap: 70px; align-items: center; }
.sw-feature-media { margin: 0; }
.sw-feature-media img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--sw-sky); border-radius: 5px; box-shadow: 0 26px 64px rgba(15,39,74,.15); }
.sw-feature-media figcaption { margin-top: 12px; color: var(--sw-muted); font-size: .82rem; line-height: 1.55; }
.sw-number { color: var(--sw-red); font: 900 clamp(2.8rem, 5vw, 4.5rem)/.85 Georgia, serif; }
.sw-feature-copy h3,
.sw-event-band h3,
.sw-timeline-block h3,
.sw-videos h3,
.sw-sources h3 { margin: 18px 0; color: var(--sw-ink); font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.06; letter-spacing: -.035em; }
.sw-feature-copy p,
.sw-event-band p { color: var(--sw-muted); font-size: 1.05rem; line-height: 1.75; }

.sw-event-band { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; gap: 34px; align-items: center; margin: 100px 0 0; padding: 54px 0; border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.sw-event-band h3 { margin: 0 0 12px; }
.sw-event-band p { margin: 0; max-width: 720px; }
.sw-text-link,
.sw-videos-heading a {
  color: var(--sw-blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.sw-story-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 90px; padding: 100px 0; }
.sw-timeline-block ol { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: route; }
.sw-timeline-block li { position: relative; padding: 0 0 34px 42px; color: var(--sw-muted); font-size: 1.02rem; line-height: 1.7; border-left: 2px solid var(--sw-line); }
.sw-timeline-block li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--sw-blue); box-shadow: 0 0 0 5px #fff; }
.sw-timeline-block li strong { display: block; margin-bottom: 3px; color: var(--sw-ink); font-size: 1.1rem; }
.sw-fact-block { align-self: center; padding: 42px; background: var(--sw-paper); border-top: 5px solid var(--sw-red); box-shadow: 0 18px 42px rgba(79,55,21,.09); }
.sw-fact-block h3 { margin: 0 0 18px; color: var(--sw-ink); font: 900 1.65rem/1.1 Georgia,serif; }
.sw-fact-block p { margin: 0; color: #5d5142; font: 1.1rem/1.75 Georgia,serif; }

.sw-videos { padding: 90px 0; border-top: 1px solid var(--sw-line); }
.sw-videos-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 38px; }
.sw-videos-heading h3 { margin-bottom: 0; }
.sw-video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.sw-video-card { display: flex; flex-direction: column; color: var(--sw-ink); text-decoration: none; background: #fff; box-shadow: 0 16px 42px rgba(15,39,74,.09); transition: transform .2s ease, box-shadow .2s ease; }
.sw-video-card:hover,
.sw-video-card:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(15,39,74,.16); }
.sw-video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sw-video-card div { padding: 22px; }
.sw-video-card time { color: var(--sw-red); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.sw-video-card h4 { margin: 10px 0 16px; font-size: 1.15rem; line-height: 1.35; }
.sw-video-card span { color: var(--sw-blue); font-weight: 900; }

.sw-sources { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding: 90px 0 110px; border-top: 1px solid var(--sw-line); }
.sw-source-list { display: grid; align-content: start; }
.sw-source-link { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 0; color: var(--sw-ink); border-bottom: 1px solid var(--sw-line); text-decoration: none; font-weight: 850; }
.sw-source-link span { color: var(--sw-blue); }

.sw-times { padding: 74px 0; background: var(--sw-blue-dark); color: #fff; }
.sw-times-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.sw-times h2 { margin: 0 0 12px; color: #fff; font-size: clamp(2.1rem,4vw,3.7rem); line-height: 1; letter-spacing: -.045em; }
.sw-times p { margin: 0; max-width: 720px; color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.65; }
.sw-times a { flex: 0 0 auto; }

@media (max-width: 920px) {
  .sw-hero { min-height: 630px; }
  .sw-hero-copy { width: min(620px, 80vw); }
  .sw-section-head,
  .sw-country-heading,
  .sw-feature,
  .sw-story-layout,
  .sw-sources { grid-template-columns: 1fr; gap: 38px; }
  .sw-country-tabs { grid-template-columns: repeat(3,1fr); gap: 18px 0; }
  .sw-country-tabs::before { display: none; }
  .sw-country-tab { min-height: 100px; border-bottom: 1px solid var(--sw-line); }
  .sw-country-tab::before { display: none; }
  .sw-event-band { grid-template-columns: 74px 1fr; }
  .sw-event-band a { grid-column: 2; }
  .sw-video-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .sw-hero { min-height: 560px; }
  .sw-hero-media { background-position: 60% center; opacity: .55; }
  .sw-hero::after { background: linear-gradient(90deg,rgba(3,23,46,.96),rgba(3,36,72,.68)); }
  .sw-hero-copy { width: 100%; padding: 70px 0; }
  .sw-route { padding-top: 64px; }
  .sw-country-tabs { grid-template-columns: 1fr 1fr; }
  .sw-country-tab { min-height: 92px; }
  .sw-country { padding-top: 52px; }
  .sw-country-heading { margin-bottom: 46px; }
  .sw-feature { gap: 34px; }
  .sw-event-band { grid-template-columns: 1fr; gap: 18px; margin-top: 70px; padding: 42px 0; }
  .sw-event-band a { grid-column: 1; }
  .sw-story-layout { padding: 72px 0; }
  .sw-fact-block { padding: 30px; }
  .sw-videos-heading { align-items: start; flex-direction: column; }
  .sw-video-grid { grid-template-columns: 1fr; }
  .sw-sources { padding: 72px 0 80px; }
  .sw-times-inner { align-items: flex-start; flex-direction: column; }
}
