/* ==========================================================================
   PULSE LINE WORLD — stylesheet
   Editorial newsroom UI. Light canvas / slate-navy dark mode.
   ========================================================================== */

:root {
  color-scheme: light;

  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --ink: #0f172a;
  --ink-soft: #3b4658;
  --muted: #64748b;

  --line: #e6eaf1;
  --line-strong: #d5dce7;

  --crimson: #e11d48;
  --crimson-soft: rgba(225, 29, 72, 0.1);
  --cobalt: #2563eb;
  --cobalt-soft: rgba(37, 99, 235, 0.09);

  --footer-bg: #0b1220;

  --glass: rgba(250, 250, 250, 0.78);
  --glass-line: rgba(15, 23, 42, 0.07);
  --pill-hover: rgba(15, 23, 42, 0.055);
  --pill-active-bg: #0f172a;
  --pill-active-ink: #ffffff;
  --thumb-bg: #eef1f6;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 30px -24px rgba(15, 23, 42, 0.45);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, 0.05), 0 28px 50px -28px rgba(15, 23, 42, 0.5);

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #090d16;
  --surface: #0e1524;
  --surface-2: #141d2e;
  --ink: #f4f7fd;
  --ink-soft: #c3cdde;
  --muted: #8b98ae;

  --line: #1c2637;
  --line-strong: #2b3648;

  --crimson: #fb3b63;
  --crimson-soft: rgba(251, 59, 99, 0.15);
  --cobalt: #6c9bff;
  --cobalt-soft: rgba(108, 155, 255, 0.14);

  --footer-bg: #060a12;

  --glass: rgba(9, 13, 22, 0.76);
  --glass-line: rgba(255, 255, 255, 0.08);
  --pill-hover: rgba(255, 255, 255, 0.07);
  --pill-active-bg: #f4f7fd;
  --pill-active-ink: #0b1220;
  --thumb-bg: #162033;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 16px 34px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 2px 8px rgba(0, 0, 0, 0.5), 0 30px 54px -28px rgba(0, 0, 0, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 0 0 12px 0;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Masthead — frosted sticky glass bar
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-line);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.masthead.is-stuck {
  box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.65);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 11px;
  padding-bottom: 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(148deg, #f43f5e, #be123c);
  box-shadow: 0 10px 20px -12px rgba(225, 29, 72, 0.95);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__live {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 1px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-soft);
}

.brand__live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--crimson);
  animation: pulse-ring 2.6s cubic-bezier(0.3, 0, 0.4, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.iconbtn:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -16px rgba(15, 23, 42, 0.8);
}

.iconbtn:active {
  transform: translateY(0) scale(0.96);
}

.iconbtn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iconbtn .icon--sun {
  display: none;
}

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

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

/* Pill navigation */

.nav {
  order: 3;
  flex: 1 0 100%;
  min-width: 0;
}

.nav__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
  cursor: grab;
}

.nav__scroll::-webkit-scrollbar {
  display: none;
}

.nav__scroll.is-dragging {
  cursor: grabbing;
}

.nav__scroll.is-dragging .nav__link {
  pointer-events: none;
}

.nav__list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 1px 0 8px;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--pill-hover);
  text-decoration: none;
}

.nav__link:active {
  transform: scale(0.97);
}

.nav__link[aria-current="page"] {
  color: var(--pill-active-ink);
  background: var(--pill-active-bg);
  font-weight: 700;
  box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.95);
}

.nav__link[aria-current="page"]:hover {
  color: var(--pill-active-ink);
  background: var(--pill-active-bg);
}

.nav__link--live {
  color: var(--crimson);
  font-weight: 700;
}

.nav__link--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-soft);
}

.nav__link--live[aria-current="page"] {
  color: var(--crimson);
  background: var(--crimson-soft);
  box-shadow: none;
}

/* Search drawer */

.searchpanel {
  border-top: 1px solid var(--glass-line);
}

.searchpanel[hidden] {
  display: none;
}

.searchpanel form {
  display: flex;
  gap: 8px;
  padding: 12px 0 14px;
}

.field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px var(--cobalt-soft);
}

.btn {
  flex: 0 0 auto;
  padding: 0 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--cobalt);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--cobalt-soft);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  white-space: nowrap;
}

.pill:hover {
  text-decoration: none;
  border-color: var(--cobalt);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--crimson);
  box-shadow: 0 10px 24px -12px rgba(225, 29, 72, 0.9);
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* --------------------------------------------------------------------------
   Top stories
   -------------------------------------------------------------------------- */

.top {
  display: grid;
  gap: 28px;
  padding: 22px 0 6px;
}

.lead__media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: var(--thumb-bg);
  box-shadow: var(--shadow-card);
}

.lead__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lead:hover .lead__media img {
  transform: scale(1.02);
}

.lead__media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.68), rgba(7, 11, 20, 0.14) 55%, transparent);
  pointer-events: none;
}

.live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(225, 29, 72, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 14px 30px -10px rgba(225, 29, 72, 0.95), 0 0 22px rgba(225, 29, 72, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.8s ease-in-out infinite;
}

.lead__body {
  padding-top: 16px;
}

.lead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 6.4vw, 45px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead__title a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.lead__title a:hover {
  color: var(--cobalt);
  text-decoration: none;
}

.lead__standfirst {
  margin: 13px 0 0;
  font-size: clamp(15.5px, 2.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.briefbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  box-shadow: var(--shadow-card);
}

.briefbar__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

.briefbar strong {
  color: var(--ink);
  font-weight: 600;
}

.briefbar__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.briefbar__brief {
  color: var(--ink-soft);
}

/* Secondary cards */

.top__side {
  display: grid;
  gap: 16px;
}

.top__duo {
  display: grid;
  gap: 16px;
}

.card-sm {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-sm:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.card-sm__media {
  display: block;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--thumb-bg);
}

.card-sm__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-sm:hover .card-sm__media img {
  transform: scale(1.04);
}

.card-sm__body {
  padding: 12px 14px 14px;
}

.card-sm__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.card-sm__title a:hover {
  color: var(--cobalt);
  text-decoration: none;
}

.card-sm__sum {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Quick links */

.quicklinks {
  padding: 14px 16px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.quicklinks__head {
  margin: 0 0 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quicklinks ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quicklinks li + li {
  border-top: 1px solid var(--line);
}

.quicklinks a {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.quicklinks a::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--crimson);
}

.quicklinks a:hover {
  color: var(--cobalt);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Section rows
   -------------------------------------------------------------------------- */

.rows {
  margin-top: 14px;
}

.row {
  margin-top: 36px;
}

.row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.row__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 3.2vw, 23px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.032em;
}

.row__title::before {
  content: "";
  width: 5px;
  height: 21px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cobalt), #60a5fa);
}

.row__more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cobalt);
  white-space: nowrap;
}

.row__grid {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.card__media {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--thumb-bg);
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 6px 0;
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.card__title a:hover {
  color: var(--cobalt);
  text-decoration: none;
}

.card__sum {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card__body .meta {
  margin-top: auto;
  padding-top: 10px;
}

/* --------------------------------------------------------------------------
   Most read
   -------------------------------------------------------------------------- */

.mostread {
  margin-top: 42px;
  padding: 22px 22px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.mostread__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.mostread__title::before {
  content: "";
  width: 5px;
  height: 19px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--crimson), #fb7185);
}

.mostread ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: 36px;
}

.mostread li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.mostread li:last-child {
  border-bottom: 0;
}

.mostread .num {
  flex: 0 0 auto;
  min-width: 22px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}

.mostread a {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.018em;
}

.mostread a:hover {
  color: var(--cobalt);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Article reader
   -------------------------------------------------------------------------- */

.article {
  padding: 20px 0 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--cobalt);
}

.breadcrumb span:last-child {
  color: var(--muted);
}

.article__head {
  max-width: 800px;
}

.article h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 6.2vw, 46px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.article__standfirst {
  margin: 15px 0 0;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.byline__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  border: 1px solid var(--cobalt-soft);
}

.byline strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.byline__stamp {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.article__figure {
  margin: 22px 0 0;
}

.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: var(--thumb-bg);
  box-shadow: var(--shadow-card);
}

.article__caption {
  margin: 10px 2px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.keypoints {
  max-width: 700px;
  margin: 26px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cobalt);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.keypoints h2 {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.keypoints ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.keypoints li::marker {
  color: var(--cobalt);
}

.article__body {
  max-width: 700px;
  margin: 24px 0 0;
}

.article__body p {
  margin: 0 0 19px;
  font-size: 17.5px;
  line-height: 1.68;
  letter-spacing: -0.003em;
}

.article__body p:first-child {
  color: var(--ink);
}

.livefeed {
  max-width: 700px;
  margin: 24px 0 0;
}

.livefeed__item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 0 14px 20px;
  border-top: 1px solid var(--line);
}

.livefeed__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px var(--crimson-soft);
}

.livefeed__item:last-child {
  border-bottom: 1px solid var(--line);
}

.livefeed__time {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}

.livefeed__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tags {
  max-width: 700px;
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tags h2 {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tags a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tags a:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  text-decoration: none;
}

.article__foot {
  max-width: 700px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.article__foot a {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Search results
   -------------------------------------------------------------------------- */

.searchpage {
  padding: 26px 0 0;
}

.searchpage__form {
  display: flex;
  gap: 8px;
}

.searchpage h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.results {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.results li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.results li:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.results__title {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
}

.results__title:hover {
  color: var(--cobalt);
  text-decoration: none;
}

.notice {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.notice a {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Static prose pages
   -------------------------------------------------------------------------- */

.prose {
  max-width: 700px;
  padding: 28px 0 0;
}

.prose h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.prose h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose a {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: 52px;
  padding: 34px 0 38px;
  font-size: 14px;
  color: #c3cfe2;
  background: var(--footer-bg);
}

.footer a {
  color: #c3cfe2;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.footer__brand:hover {
  text-decoration: none;
}

.footer__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(148deg, #f43f5e, #be123c);
}

.footer__mark svg {
  width: 18px;
  height: 18px;
}

.footer__grid {
  display: grid;
  gap: 24px;
}

.footer h3 {
  margin: 0 0 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7f8fa9;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  line-height: 1.7;
  color: #8593ab;
}

.footer__note a {
  color: #c3cfe2;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
  .row__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mostread ol {
    columns: 2;
  }

  .mostread li:nth-last-child(2) {
    border-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}

@media (min-width: 900px) {
  .bar {
    flex-wrap: nowrap;
    gap: 18px;
    padding-top: 13px;
    padding-bottom: 11px;
  }

  .brand {
    font-size: 15px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .nav {
    order: 1;
    flex: 1 1 auto;
  }

  .bar__actions {
    order: 2;
    margin-left: 0;
  }

  .nav__scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
    cursor: default;
  }

  .nav__list {
    justify-content: center;
    padding: 0;
  }

  .top {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
    gap: 36px;
    padding-top: 28px;
  }

  .top__side {
    align-content: start;
  }

  .top__duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  .lead__media img {
    aspect-ratio: 16 / 9.6;
  }

  .card-sm__body {
    padding: 12px 15px 16px;
  }

  .card-sm__title {
    font-size: 16.5px;
  }

  .card-sm__sum {
    font-size: 13px;
  }

  .article h1 {
    letter-spacing: -0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contactcard {
  margin: 22px 0 26px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.contactcard__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contactcard__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 4.8vw, 27px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--cobalt);
  word-break: break-word;
}

.contactcard__note {
  margin: 10px 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.contactcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  text-decoration: none;
}

.contactcard__btn:hover {
  color: #fff;
  text-decoration: none;
}

.contactform {
  display: grid;
  gap: 16px;
  margin: 16px 0 6px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.form__row {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__label span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.contactform .field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
}

.contactform textarea.field {
  min-height: 148px;
  line-height: 1.6;
  resize: vertical;
}

.form__hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.form__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

.form__status {
  flex: 1 1 240px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.form__status.is-ok {
  color: var(--ink-soft);
}

.form__status.is-error {
  color: var(--crimson);
  font-weight: 600;
}

.form__status a {
  color: var(--cobalt);
  word-break: break-word;
}

@media (min-width: 700px) {
  .form__row--split {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
