:root {
  /* Light palette is the SSR fallback until the early theme script runs. */
  --color-background: #ffffff;
  --color-surface: #f5f4f1;
  --color-text: #111111;
  --color-text-muted: #5c5a55;
  --color-border: #e2e0db;
  --color-input-border: #8b8882;
  --color-cookie-shadow: rgba(0, 0, 0, 0.16);
  --color-accent: #c8102e;
  --color-text-on-accent: #ffffff;
  --color-image-background: #e4e1da;

  /* The footer stays dark in both themes. */
  --color-footer-background: #111111;
  --color-footer-text: #ffffff;
  --color-footer-text-muted: #b8b6b0;
  --color-footer-text-subtle: rgba(255, 255, 255, 0.55);
  --color-footer-border: #333333;
  --color-footer-accent: #ff5a6e;
  --color-footer-partner: #89cff0;

  /* Overlay and performance-gauge colors stay consistent across themes. */
  --color-overlay-backdrop: rgba(0, 0, 0, 0.45);
  --color-score-track: rgba(255, 255, 255, 0.12);
  --color-score-text: #ffffff;
  --color-score-poor: #ee3b3b;
  --color-score-average: #ffa400;
  --color-score-good: #23c552;

  color-scheme: light;
}

/* The head script resolves the system or saved preference before CSS loads. */
:root[data-theme="dark"] {
  --color-background: #111111;
  --color-surface: #1c1c1a;
  --color-text: #f2f1ee;
  --color-text-muted: #a3a19b;
  --color-border: #2e2e2b;
  --color-input-border: #74716b;
  --color-cookie-shadow: rgba(0, 0, 0, 0.45);
  --color-accent: #ff5a6e;
  --color-image-background: #242422;
  --color-footer-background: #0a0a0a;
  --color-footer-text-muted: #a3a19b;

  color-scheme: dark;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

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

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

.article-media {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-image-background);
}

.ad-wrapper {
  width: 100%;
  margin-block: 28px;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ad-slot.desktop {
  display: none;
}

.ad-label {
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.ad-slot ins {
  width: 100%;
  min-height: 90px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-text);
}

.section-header-title {
  min-width: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}

.section-header-title a {
  color: inherit;
  text-decoration: none;
}

.section-header-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.section-header-more svg {
  flex-shrink: 0;
}

.section-header a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.section-header a:focus-visible,
.article-headline-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.article-headline-list {
  list-style: none;
}

.article-headline-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.article-headline-link:hover {
  color: var(--color-accent);
}

.article-headline-title {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.article-headline-list.numbered .article-headline-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.article-headline-number {
  min-width: 30px;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.article-stacked-excerpt {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.page-breadcrumb svg {
  width: 4px;
  height: 7px;
  flex: none;
}

.page-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.page-breadcrumb a:hover,
.category-back-link:hover {
  color: var(--color-accent);
}

.about-page .page-breadcrumb,
.contact-page .page-breadcrumb,
.privacy-page .page-breadcrumb,
.cookie-settings-page .page-breadcrumb,
.about-content,
.contact-content,
.privacy-content,
.cookie-settings-content {
  max-width: 720px;
  margin-inline: auto;
}

.about-content,
.contact-content,
.privacy-content,
.cookie-settings-content {
  padding-block: 28px 48px;
  overflow-wrap: anywhere;
}

.about-content h1,
.contact-content h1,
.privacy-content h1,
.cookie-settings-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.about-content .about-intro,
.contact-content .contact-intro,
.privacy-content .privacy-intro,
.cookie-settings-content .cookie-settings-intro {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.about-content section,
.contact-content section,
.privacy-content section,
.cookie-settings-content section {
  margin-top: 32px;
}

.about-content h2,
.contact-content h2,
.privacy-content h2,
.cookie-settings-content h2 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.about-content p,
.contact-content p,
.privacy-content p,
.cookie-settings-content p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-content h2 {
  color: var(--color-accent);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-publisher {
  margin-top: 12px;
  padding: 20px;
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface);
}

.about-publisher dl > div + div {
  margin-top: 12px;
}

.about-publisher dt {
  color: var(--color-text-muted);
  font-weight: 600;
}

.about-publisher dd {
  margin-top: 4px;
}

.about-publisher a,
.about-team a {
  color: var(--color-accent);
  text-underline-offset: 4px;
}

.about-team {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.about-team-member {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
}

.about-team-member h3 {
  font-size: 1.125rem;
}

.about-team-member .about-team-role {
  margin-top: 4px;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-team-member .about-team-email {
  font-size: 0.875rem;
}

.about-content .about-thanks {
  margin-top: 32px;
}

@media (min-width: 640px) {
  .about-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-publisher dl > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }

  .about-publisher dd {
    margin-top: 0;
  }
}

.contact-about-link,
.privacy-contact-link,
.cookie-settings-policy-link {
  display: inline-block;
  margin-top: 28px;
  padding-block: 12px;
  color: var(--color-accent);
  font-weight: 600;
  text-underline-offset: 4px;
}

.contact-content p a,
.privacy-content p a {
  color: var(--color-accent);
  text-underline-offset: 4px;
}

.cookie-settings-content .cookie-settings-notice {
  margin-top: 24px;
  padding: 16px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
}

.cookie-settings-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.cookie-settings-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-settings-label {
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.cookie-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cookie-settings-actions button {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-settings-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.cookie-settings-actions button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cookie-settings-actions button:not(:disabled):hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.category-title {
  margin: 14px 0 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.category-description {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-text);
  color: var(--color-text-muted);
  font-size: 16px;
}

.category-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.category-content,
.category-sidebar {
  min-width: 0;
}

.category-lead .article-stacked-link {
  gap: 14px;
}

.category-lead .article-stacked-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.category-lead .article-stacked-excerpt {
  margin-top: 10px;
}

.category-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.category-cards > article {
  min-width: 0;
}

.category-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 28px;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.category-sidebar {
  display: grid;
  gap: 28px;
}

.category-empty {
  padding-block: 20px;
  color: var(--color-text-muted);
}

.post-layout {
  display: grid;
  gap: 32px;
  align-items: start;
  margin-top: 22px;
}

.post-main,
.post-sidebar {
  min-width: 0;
}

.post-article {
  max-width: 720px;
  margin-inline: auto;
}

.post-article .page-breadcrumb {
  margin-top: 0;
}

.post-title {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}

.post-figure {
  margin-top: 20px;
}

.post-figure .article-media {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-image-credit {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.post-dek {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.45;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-block: 18px;
  padding-block: 14px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
}

.post-byline-author {
  color: var(--color-text);
  font-weight: 700;
}

.post-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}

.post-share-button:hover {
  color: var(--color-accent);
}

.post-share-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.post-byline .post-share-button {
  margin-left: auto;
}

.post-body {
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body figure,
.post-body h2,
.post-body h3 {
  margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
}

.post-body a {
  color: var(--color-accent);
}

.post-body img,
.post-body video,
.post-body iframe {
  max-width: 100%;
  height: auto;
}

.article-source-note {
  margin-block: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.post-share-row {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.post-share-label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-related {
  margin-top: 40px;
}

.post-related-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.top-news-section {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.latest-most-read-section {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.latest-most-read-section > section {
  min-width: 0;
}

.latest-most-read-section > section:only-child {
  grid-column: 1 / -1;
}

.travel-sport-showbiz-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.travel-section,
.sport-section,
.showbiz-section {
  min-width: 0;
}

.travel-section > .article-stacked,
.sport-section > .article-stacked,
.showbiz-section > .article-stacked {
  margin-top: 16px;
}

.travel-section .article-stacked-title,
.sport-section .article-stacked-title,
.showbiz-section .article-stacked-title {
  width: 100%;
  font-size: 19px;
  font-weight: 800;
}

.business-section,
.technology-section,
.health-section,
.auto-section {
  margin-top: 36px;
}

.business-articles,
.technology-articles,
.health-articles,
.auto-articles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.business-articles > article,
.technology-articles > article,
.health-articles > article,
.auto-articles > article {
  min-width: 0;
}

.top-news-lead,
.top-news-sidebar {
  min-width: 0;
}

.top-news-lead .article-stacked-link {
  gap: 14px;
}

.top-news-lead .article-stacked-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.article-stacked-link,
.article-inline-link {
  display: flex;
  color: var(--color-text);
  text-decoration: none;
}

.article-stacked-link:hover,
.article-inline-link:hover {
  color: var(--color-accent);
}

.article-stacked-link:focus-visible,
.article-inline-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.article-stacked-link {
  flex-direction: column;
  gap: 10px;
}

.article-stacked .article-media {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-stacked-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.article-inline-link {
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--color-border);
}

.article-inline-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.article-inline .article-media {
  flex-shrink: 0;
  width: 104px;
  height: 70px;
  margin-inline-start: auto;
  object-fit: cover;
}

.breaking-news {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  margin-top: 16px;
  background: var(--color-surface);
}

.breaking-news-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-inline: 10px;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

:root[data-theme="dark"] .breaking-news-label {
  background: #c8102e;
}

.breaking-news-link {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.breaking-news-link:hover {
  color: var(--color-accent);
}

.breaking-news-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.site-footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  background: var(--color-footer-background);
  color: var(--color-footer-text);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-footer-accent);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--color-footer-accent);
  outline-offset: 3px;
}

.footer-logo {
  display: inline-flex;
  width: 200px;
  max-width: 100%;
}

.footer-description {
  max-width: 360px;
  margin-top: 12px;
  color: var(--color-footer-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 15px;
  font-weight: 700;
}

.footer-legal {
  color: var(--color-footer-text-muted);
  font-size: 14px;
  font-weight: 400;
}

.footer-copyright {
  padding-top: 18px;
  border-top: 1px solid var(--color-footer-border);
  color: var(--color-footer-text-muted);
  font-size: 13px;
}

.footer-performance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-footer-border);
  text-align: center;
}

.footer-performance-header {
  color: var(--color-footer-text-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.footer-performance-gauges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-items: center;
  width: 100%;
  max-width: 460px;
}

.footer-performance-gauge {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.footer-performance-ring {
  --score-circumference: 339.292;
  position: relative;
  width: 54px;
  height: 54px;
}

.footer-performance-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.footer-performance-track,
.footer-performance-progress {
  fill: none;
  stroke-width: 5;
}

.footer-performance-track {
  stroke: var(--color-score-track);
}

.footer-performance-progress {

  animation-play-state: paused;
  stroke: #ff4e42;
  stroke-linecap: round;
}

.footer-performance-progress.is-red {
  stroke: #ff4e42;
}

.footer-performance-progress.is-yellow {

  stroke: #ffa400;
}

.footer-performance-progress.is-green {

  stroke: #23c552;
}

.footer-performance-score {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  animation-play-state: paused;
  color: var(--color-score-text);
  counter-reset: footerScore var(--score-target);
  font-size: 13px;
  font-weight: 800;
}

.footer-performance-score::after {
  content: counter(footerScore);
}

.footer-performance-label {
  color: var(--color-footer-text-subtle);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-performance-title {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.site-footer .footer-performance-brand,
.site-footer .footer-performance-brand:hover {
  color: var(--color-footer-partner);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-performance-subtitle {
  color: var(--color-footer-text-muted);
  font-size: 11px;
}

@property --score-number {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

@keyframes footer-score-number {
  0% {
    --score-number: 0;
  }

  48%,
  88% {
    --score-number: var(--score-target);
  }

  100% {
    --score-number: 0;
  }
}

@keyframes footer-score-fill {
  0% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-circumference);
  }

  48%,
  88% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-offset);
  }

  100% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-circumference);
  }
}

@keyframes footer-score-fill-yellow {
  0% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-circumference);
  }

  34% {
    stroke: #ff4e42;
  }

  48%,
  88% {
    stroke: #ffa400;
    stroke-dashoffset: var(--score-offset);
  }

  100% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-circumference);
  }
}

@keyframes footer-score-fill-green {
  0% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-circumference);
  }

  28% {
    stroke: #ff4e42;
  }

  40% {
    stroke: #ffa400;
  }

  48%,
  88% {
    stroke: #23c552;
    stroke-dashoffset: var(--score-offset);
  }

  100% {
    stroke: #ff4e42;
    stroke-dashoffset: var(--score-circumference);
  }
}

.footer-performance[data-animate] .footer-performance-progress {
  animation: footer-score-fill 6s ease-in-out infinite paused;
}

.footer-performance[data-animate] .footer-performance-progress.is-yellow {
  animation-name: footer-score-fill-yellow;
}

.footer-performance[data-animate] .footer-performance-progress.is-green {
  animation-name: footer-score-fill-green;
}

.footer-performance[data-animate] .footer-performance-score {
  animation: footer-score-number 6s ease-in-out infinite paused;
  counter-reset: footerScore var(--score-number);
}

.footer-performance[data-running] .footer-performance-progress,
.footer-performance[data-running] .footer-performance-score {
  animation-play-state: running;
}

@media (min-width: 381px) {
  .footer-performance-gauges {
    gap: 12px;
  }
  .footer-performance-ring {
    width: 62px;
    height: 62px;
  }
}

@media (min-width: 781px) {
  .footer-performance-gauges {
    gap: 22px;
  }
  .footer-performance-ring {
    width: 82px;
    height: 82px;
  }
  .footer-performance-score {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-performance[data-animate] .footer-performance-progress,
  .footer-performance[data-animate] .footer-performance-score {
    animation: none;
  }

  .footer-performance-progress {
    stroke-dashoffset: var(--score-offset);
  }

  .footer-performance[data-animate] .footer-performance-score {
    counter-reset: footerScore var(--score-target);
  }
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.icon-button svg {
  display: block;
}

.icon-button:focus-visible,
.header-logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 3px solid var(--color-text);
  background: var(--color-background);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 170px;
  text-decoration: none;
}

.brand-logo {
  --brand-logo-text: #111111;
  --brand-logo-accent: #c8102e;
  display: block;
  width: 100%;
  height: auto;
  fill: var(--brand-logo-text);
}

:root[data-theme="dark"] .brand-logo,
.footer-logo .brand-logo {
  --brand-logo-text: #ffffff;
  --brand-logo-accent: #ff5a6e;
}

.brand-logo-number {
  fill: var(--brand-logo-accent);
  transform-box: view-box;
  animation: brand-logo-in .8s cubic-bezier(.2, .9, .25, 1) both,
    brand-logo-float 3.2s 1s ease-in-out infinite;
}

@keyframes brand-logo-in {
  0% { opacity: 0; transform: translate(454.37px, -15.39px); }
  60% { opacity: 1; transform: translate(454.37px, -45.42px); }
  100% { opacity: 1; transform: translate(454.37px, -40.29px); }
}

@keyframes brand-logo-float {
  0%, 100% { transform: translate(454.37px, -40.29px); }
  50% { transform: translate(454.37px, -48.35px); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-number {
    animation: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  position: relative;
}

.search-field {
  position: absolute;
  right: 100%;
  top: 50%;
  margin-top: -22px;
  z-index: 1;
  width: min(240px, calc(100vw - 120px));
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 250ms ease,
    opacity 250ms ease,
    visibility 0s 250ms;
}

.search-field.show {
  transform: scaleX(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.search-field::placeholder {
  color: var(--color-text-muted);
}

.search-field:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.search-results {
  position: absolute;
  top: calc(50% + 30px);
  right: 100%;
  z-index: 2;
  width: min(240px, calc(100vw - 120px));
  max-height: min(360px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  background: var(--color-background);
  color: var(--color-text);
}

.header-search:not(.search-open) .search-results,
.search-status:empty {
  display: none;
}

.search-status {
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.search-result-list {
  list-style: none;
}

.search-result-list li + li {
  border-top: 1px solid var(--color-border);
}

.search-result-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.search-result-link:hover,
.search-result-link:focus-visible {
  background: var(--color-surface);
  color: var(--color-accent);
}

.search-result-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.search-result-image {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.header-theme-button .sun-icon {
  display: none;
}

.header-theme-control {
  position: relative;
}

.header-theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  min-width: 136px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 12px 32px var(--color-cookie-shadow);
}

.header-theme-menu[hidden] {
  display: none;
}

.header-theme-option {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.header-theme-option:hover,
.header-theme-option:focus-visible {
  background: var(--color-surface);
}

.header-theme-option:focus-visible {
  outline: 2px solid var(--color-accent);
}

.header-theme-check {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
}

.header-theme-option[aria-checked="true"] .header-theme-check {
  opacity: 1;
}

.cookie-settings-open {
  margin-top: 20px;
  min-height: 44px;
}

.cookie-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900;
  width: min(430px, calc(100vw - 32px));
  min-width: 0;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 8px 32px var(--color-cookie-shadow);
}

.cookie-banner,
.cookie-consent,
.cookie-consent__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-manager h2 {
  padding-right: 32px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.cookie-manager p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__actions,
.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-action,
.cookie-consent__close {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

.cookie-action:hover,
.cookie-consent__close:hover {
  border-color: var(--color-text);
}

.cookie-manager button:focus-visible,
.cookie-manager input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cookie-panel:disabled {
  cursor: progress;
}

.cookie-panel:disabled button {
  cursor: progress;
  opacity: 0.65;
}

.cookie-consent__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
}

.cookie-consent__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--color-border);
}

.cookie-consent__item-copy {
  flex: 1;
}

.cookie-consent__item-label {
  font-size: 15px;
  font-weight: 700;
}

.cookie-consent__item-badge {
  display: block;
  margin-block: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.cookie-consent__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.cookie-consent__toggle-input {
  width: 24px;
  height: 24px;
  accent-color: var(--color-accent);
}

.cookie-error {
  margin-top: 12px;
  color: var(--color-accent);
  font-size: 14px;
}

.cookie-error:empty {
  display: none;
}

@media (min-width: 600px) {
  .cookie-panel {
    left: auto;
    right: 16px;
    transform: none;
  }

  .cookie-preferences {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 560px;
    transform: translate(-50%, -50%);
  }

  .cookie-banner__actions,
  .cookie-consent__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cookie-action {
    flex: 1 1 auto;
  }
}

:root[data-theme="dark"] .header-theme-button .moon-icon {
  display: none;
}

:root[data-theme="dark"] .header-theme-button .sun-icon {
  display: block;
}

.category-nav {
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
}

.category-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-links::-webkit-scrollbar {
  display: none;
}

.category-nav-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.category-nav-link:hover {
  color: var(--color-accent);
}

.category-nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-overlay-backdrop);
}

.menu-overlay[hidden] {
  display: none;
}

.menu-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, clamp(280px, 60%, 430px));
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--color-background);
  color: var(--color-text);
}

.menu-overlay:not([hidden]) .menu-panel {
  display: flex;
  flex-direction: column;
  animation: menu-slide-in 250ms ease;
}

.menu-overlay[data-closing] .menu-panel {
  animation: menu-slide-out 250ms ease forwards;
}

.menu-overlay[data-closing] {
  animation: menu-backdrop-out 250ms ease forwards;
}

.menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 56px;
  flex-shrink: 0;
  padding-inline: 4px;
  border-bottom: 1px solid var(--color-border);
}

.menu-panel-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 18px 28px;
}

.menu-category-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-block: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.menu-legal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.menu-legal-link {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.menu-category-link:hover,
.menu-legal-link:hover {
  color: var(--color-accent);
}

.menu-category-link:focus-visible,
.menu-legal-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

@keyframes menu-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes menu-slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes menu-backdrop-out {
  to {
    background-color: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .header-actions {
    gap: 12px;
  }

  .header-actions .icon-button {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
.search-field {
    transition: none;
  }

  .menu-overlay,
  .menu-overlay:not([hidden]) .menu-panel {
    animation: none;
  }
}

@media (min-width: 640px) {
  .category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-related-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-articles,
  .technology-articles,
  .health-articles,
  .auto-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .post-title {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -1.4px;
  }

  .post-body {
    font-size: 19px;
  }

  .travel-sport-showbiz-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-news-lead .article-stacked-title {
    font-size: 40px;
    letter-spacing: -1px;
  }
}

@media (min-width: 1024px) {
  .ad-slot.mobile {
    display: none;
  }

  .ad-slot.desktop {
    display: flex;
  }

  .post-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 40px;
  }

  .category-title {
    font-size: 44px;
    letter-spacing: -1.6px;
  }

  .category-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 40px;
  }

  .category-lead .article-stacked-title {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -1.1px;
  }

  .travel-sport-showbiz-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
  }

  .business-section,
  .technology-section,
  .health-section,
  .auto-section {
    margin-top: 48px;
  }

  .business-articles,
  .technology-articles,
  .health-articles,
  .auto-articles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .latest-most-read-section {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 48px;
  }

  .top-news-section {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 36px;
  }

  .top-news-lead .article-stacked-title {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1.2px;
  }

  .top-news-lead .article-stacked-excerpt {
    font-size: 19px;
  }

  .section-header-title {
    font-size: 26px;
  }

  .article-headline-title {
    font-size: 17px;
  }

  .article-inline-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .article-inline .article-media {
    width: 112px;
    height: 84px;
  }

  .breaking-news {
    min-height: 48px;
  }

  .breaking-news-label {
    padding-inline: 16px;
    font-size: 13px;
  }

  .breaking-news-link {
    font-size: 16px;
  }

  .container {
    padding-inline: 24px;
  }

  .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 82px;
  }

  .header-logo {
    grid-column: 2;
    width: 280px;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
  }

  .header-menu-button {
    display: none;
  }

  .category-nav-links {
    justify-content: safe center;
    gap: 34px;
    height: 50px;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
}

.pagination .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-accent);
  background-color: var(--color-surface);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: system-ui, Arial, sans-serif;
  text-decoration: none;
  color: var(--color-accent);
}

.pagination a.link:not(.disabled):not([aria-disabled="true"]):hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-background);
}

.pagination a.link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.pagination .link.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.pagination .link svg {
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
}

