:root {
  --bg: #ffffff;
  --accent: #9fbcde;
  --text: #1a1a1a;
  --text-strong: #000000;
  --line: #e0e0e0;
  --muted: #555555;
  --accent-hover: #87a7ca;
  --max-width: 1200px;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Georgia", "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-serif);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #eef3f8;
  z-index: 1200;
}

.reading-progress__bar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 100ms linear;
}

.site-header__inner,
.layout {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
}

.brand__name {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.site-nav {
  justify-self: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-strong);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  font-weight: 600;
  color: #3c5875;
}

.site-nav a.site-nav__weather {
  padding: 0.32rem 0.72rem;
  border: 1px solid #c7d9ec;
  border-radius: 999px;
  background: #f4f9ff;
  color: #3c5875;
  font-weight: 600;
}

.site-nav a.site-nav__weather::after {
  display: none;
}

.site-nav a.site-nav__weather:hover,
.site-nav a.site-nav__weather:focus-visible {
  background: #e8f1fb;
}

.site-nav a.site-nav__weather[aria-current="page"] {
  background: #dce9f6;
  border-color: #b8cde3;
}

.site-nav a.is-active::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(330px, 100%);
  padding: 0.32rem 0.42rem 0.32rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--text-strong);
}

.search-bar input::placeholder {
  color: #7a7a7a;
}

.search-bar button {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.search-bar button:hover,
.search-bar button:focus-visible {
  background: var(--accent-hover);
}

.search-bar svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nav-toggle {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 8.2fr) minmax(150px, 1.8fr);
  gap: 40px;
  padding: 32px 0 56px;
}

.content-flow {
  min-width: 0;
  max-width: 900px;
  justify-self: start;
}

.featured-story {
  position: relative;
}

.featured-story__link {
  display: block;
}

.featured-story__link:hover h2,
.featured-story__link:focus-visible h2 {
  color: #3c5875;
}

.eyebrow {
  display: inline-block;
  padding: 0.32rem 0.72rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.featured-story h2 {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.featured-story__lead {
  margin: 0 0 1.15rem;
  font-family: var(--font-serif);
  font-size: 1.36rem;
  line-height: 1.6;
  color: var(--text-strong);
}

.featured-story__meta {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: #5f6b77;
}

.featured-story__figure {
  margin: 0;
}

.featured-story__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.caption {
  margin: 0.65rem 0 0;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.share-rail {
  position: sticky;
  top: 100px;
  margin-top: -90px;
  margin-left: calc(100% + 14px);
  width: fit-content;
  padding: 0.75rem 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  z-index: 5;
}

.share-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #666666;
}

.share-rail a,
.social-links a {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #c8d9ec;
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.share-rail a:hover,
.share-rail a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  transform: scale(1.06);
  opacity: 0.8;
}

.share-rail svg,
.social-links svg {
  width: 1.14rem;
  height: 1.14rem;
  fill: currentColor;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.feed-controls,
.category-controls {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.25rem;
  border: 1px solid #d6e2ef;
  border-radius: 999px;
  background: #f8fbff;
}

.view-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f6b88;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
}

.view-toggle button.is-active {
  background: #dce9f6;
  color: #355270;
}

.tag-filters {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.8rem;
}

.tag-filters__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5f6b77;
}

.tag-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-filter-chip {
  border: 1px solid #d4e2f1;
  border-radius: 999px;
  background: #f6f9fd;
  color: #4f6b88;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.tag-filter-chip.is-active {
  background: #dce9f6;
  border-color: #b9cde3;
  color: #2f4b67;
}

.tag-filters__reset {
  margin-top: 0.7rem;
  border: 0;
  background: transparent;
  color: #3f5d7c;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.tag-filters__reset.is-hidden {
  display: none;
}

.article-grid.is-list-view {
  grid-template-columns: 1fr;
}

.article-grid.is-list-view .article-card__link {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.article-grid.is-list-view .article-card__meta {
  align-content: start;
}

.article-card--skeleton {
  pointer-events: none;
}

.article-card--skeleton:hover,
.article-card--skeleton:focus-within {
  transform: none;
  box-shadow: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #edf2f8;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: skeletonShimmer 1.2s infinite;
}

.skeleton--image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton--line {
  margin-top: 0.65rem;
  height: 0.7rem;
}

.skeleton--title {
  height: 0.95rem;
  width: 84%;
}

.skeleton--short {
  width: 62%;
}

@keyframes skeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

.search-status {
  min-height: 1.3rem;
  margin: 0.7rem 0 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: #5f6b77;
}

.search-status.is-empty {
  color: #8a4950;
}

mark {
  background: #f5ecb7;
  color: inherit;
  padding: 0 0.05em;
}

.article-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card__link {
  display: block;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.article-card__image-wrap {
  overflow: hidden;
}

.article-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.article-card:hover .article-card__image,
.article-card:focus-within .article-card__image {
  transform: scale(1.04);
}

.article-card__meta {
  display: grid;
  gap: 0.35rem;
}

.article-card__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--text-strong);
}

.article-card__excerpt {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-strong);
}

.article-card__byline {
  margin: 0.2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #5f6b77;
}

.article-card__date {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6b77;
}

.article-card__caption {
  margin-top: 0.08rem;
  font-size: 0.86rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border: 1px solid #d4e2f1;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #4f6b88;
  background: #f6f9fd;
}

.article-tags a:hover,
.article-tags a:focus-visible {
  border-color: #c3d7ec;
  color: #3c5875;
}

.featured-story__tags {
  margin: 0.7rem 0 0;
}

.featured-story__sources {
  margin-top: 0.7rem;
}

.article-card__tags {
  margin: 0.62rem 0 0;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid #d0dde9;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #3f5d7c;
  background: #f8fbff;
}

.source-link:hover,
.source-link:focus-visible {
  border-color: #bdcfe1;
  color: #2f4b67;
}

.loading-indicator {
  margin-top: 18px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #505050;
  opacity: 0;
  transition: opacity 160ms ease;
}

.loading-indicator.is-visible {
  opacity: 1;
}

.sentinel {
  block-size: 1px;
}

.sentinel.is-hidden {
  display: none;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.sidebar-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem;
}

.sidebar-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-strong);
}

.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.donate-button:hover,
.donate-button:focus-visible {
  background: var(--accent-hover);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-card--links {
  display: grid;
  gap: 0.65rem;
}

.sidebar-card__text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.sidebar-card--links a {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent);
}

.newsletter-form {
  display: grid;
  gap: 0.6rem;
}

.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #556273;
}

.newsletter-consent input {
  margin-top: 0.1rem;
}

.newsletter-form button {
  min-height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: var(--accent-hover);
}

.newsletter-feedback {
  margin: 0;
  min-height: 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #5f6b77;
}

.newsletter-feedback.is-success {
  color: #2f6a4f;
}

.newsletter-feedback.is-error {
  color: #8a4950;
}

.category-home-link {
  justify-content: center;
  width: auto;
  min-height: 2.2rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.category-page,
.article-page {
  width: min(calc(100% - 2rem), 1200px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.breadcrumb {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: #637180;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: #9aa8b6;
}

.breadcrumb a {
  color: #4f6b88;
}

.breadcrumb li[aria-current="page"] {
  color: #3c5875;
}

.category-page__head {
  margin: 0 0 1.2rem;
}

.category-page__head h1 {
  margin: 0.6rem 0 0.3rem;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.category-page__lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
}

.article-page {
  width: min(calc(100% - 2rem), 920px);
}

.article-page__back {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  color: var(--accent);
}

.article-page__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--text-strong);
}

.article-page__excerpt {
  margin: 0 0 1rem;
  font-size: 1.14rem;
  line-height: 1.65;
}

.article-meta {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.article-meta__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6b77;
}

.article-meta__line--muted {
  color: #7b8794;
}

.article-page__image {
  width: 100%;
  margin-top: 0.35rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-page__tags {
  margin-top: 0.9rem;
}

.source-panel {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.source-panel h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
}

.related-articles {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.32rem;
}

.related-articles__list {
  display: grid;
  gap: 0.65rem;
}

.related-article {
  display: block;
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.related-article:hover,
.related-article:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.related-article__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.35;
}

.related-article__meta {
  margin: 0.45rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #5f6b77;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.newsletter-panel {
  margin-top: 1.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.newsletter-panel h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1.28rem;
}

.newsletter-panel p {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

.info-page {
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.info-page__head h1 {
  margin: 0.6rem 0 0.7rem;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.1;
}

.info-page__head p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
}

.info-page__section {
  margin-top: 1.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.info-page__section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  font-size: 1.35rem;
}

.info-page__section p {
  margin: 0;
  line-height: 1.7;
}

.info-page__list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.7;
}

.info-page__section--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 0.9rem;
  background: #fff;
}

.contact-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.04rem;
}

.contact-card p {
  margin: 0;
  font-family: var(--font-sans);
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #556273;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.52rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.4rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--accent-hover);
}

.contact-feedback {
  margin: 0.2rem 0 0;
  min-height: 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.contact-feedback.is-success {
  color: #2f6a4f;
}

.contact-feedback.is-error {
  color: #8a4950;
}

.notfound-page .info-page__head h1 {
  max-width: 28ch;
}

.notfound-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.notfound-search input {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.notfound-search button {
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1rem;
  cursor: pointer;
}

.notfound-search button:hover,
.notfound-search button:focus-visible {
  background: var(--accent-hover);
}

.weather-page {
  padding-bottom: 2.8rem;
}

.weather-map-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 1.4rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.weather-map-section__intro {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto 1rem;
}

.weather-map-section__intro h1 {
  margin: 0.7rem 0 0.45rem;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.weather-map-section__intro p {
  margin: 0;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.6;
}

.weather-map {
  width: min(calc(100% - 2rem), 1280px);
  height: 400px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.weather-map__canvas,
.weather-map__points {
  position: absolute;
  inset: 0;
}

.weather-map__base,
.weather-map__wind {
  width: 100%;
  height: 100%;
}

.weather-map__base {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.weather-map__wind {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wind-line {
  fill: none;
  stroke: #9fbcde;
  stroke-opacity: 0.3;
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 5;
}

.wind-line--a {
  animation: windFlowA 11s linear infinite;
}

.wind-line--b {
  animation: windFlowB 8.2s linear infinite;
}

.wind-line--c {
  animation: windFlowA 10.4s linear infinite reverse;
}

.wind-line--d {
  animation: windFlowB 12.5s linear infinite;
}

.weather-map__points {
  z-index: 3;
}

.weather-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  text-decoration: none;
}

.weather-point__icon {
  width: 48px;
  height: 48px;
  border: 1px solid #cfdeec;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.weather-point__icon svg {
  width: 30px;
  height: 30px;
}

.weather-point:hover .weather-point__icon,
.weather-point:focus-visible .weather-point__icon,
.weather-point:focus-within .weather-point__icon {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(60, 88, 117, 0.18);
  border-color: #a8c2df;
}

.weather-point__anchor {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f5d7c;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #deebf7;
  padding: 0.16rem 0.38rem;
}

.weather-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, 7px);
  min-width: 215px;
  max-width: 260px;
  padding: 0.6rem 0.68rem;
  border: 1px solid #d8e4f0;
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

.weather-point:hover .weather-tooltip,
.weather-point:focus-visible .weather-tooltip,
.weather-point:focus-within .weather-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.weather-tooltip strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #314d69;
}

.weather-tooltip span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.42;
  color: #4f5f70;
}

.weather-tooltip span + span {
  margin-top: 0.28rem;
}

@keyframes windFlowA {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -190;
  }
}

@keyframes windFlowB {
  from {
    stroke-dashoffset: -120;
  }
  to {
    stroke-dashoffset: 60;
  }
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid #c9d8ea;
  border-radius: 999px;
  background: #fff;
  color: #3c5875;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1100;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-block;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    justify-self: center;
  }

  .nav-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    margin: 0.28rem auto;
    background: var(--text-strong);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    justify-self: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #fff;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .content-flow {
    max-width: none;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .share-rail {
    position: static;
    margin: 14px 0 0;
    flex-direction: row;
  }

  .share-rail span {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 767px) {
  .site-header__inner,
  .layout {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .brand__name {
    font-size: 1.6rem;
  }

  .search-bar {
    width: min(240px, 100%);
    min-width: 0;
    padding: 0.28rem 0.42rem 0.28rem 0.72rem;
    justify-content: flex-start;
  }

  .category-home-link {
    width: auto;
    min-width: 0;
    padding: 0.35rem 0.7rem;
  }

  .search-bar input {
    display: block;
  }

  .layout,
  .article-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .article-grid.is-list-view .article-card__link {
    grid-template-columns: 1fr;
  }

  .featured-story__lead {
    font-size: 1.16rem;
  }

  .info-page__section--grid {
    grid-template-columns: 1fr;
  }

  .notfound-search {
    grid-template-columns: 1fr;
  }

  .weather-map {
    height: 300px;
  }

  .weather-map-section__intro p {
    font-size: 0.95rem;
  }

  .weather-point__anchor {
    display: none;
  }

  .weather-point__icon {
    width: 42px;
    height: 42px;
  }

  .weather-point__icon svg {
    width: 26px;
    height: 26px;
  }

  .weather-tooltip {
    min-width: 185px;
    max-width: 220px;
  }
}
