


/* =====================================================================
   THE GAZETTE — broadsheet-modern news portal
   Design layer for uiCookies. Bootstrap 5 vendor stays untouched.
   Palette : cool ink on crisp paper, one authoritative press-red accent
   Type    : Newsreader (display) · Archivo (UI/body) · IBM Plex Mono (labels)
   ===================================================================== */

:root {
  /* palette — cool broadsheet neutrals + press red */
  --ink: #15181e;
  /* cool near-black — headlines & body */
  --ink-2: #4a515c;
  /* secondary text */
  --ink-3: #78808c;
  /* muted meta */
  --paper: #f4f5f7;
  /* cool broadsheet white (hued neutral) */
  --card: #ffffff;
  /* cards float above paper */
  --band: #e7eaef;
  /* cool grey section band */
  --rule: #d2d7de;
  /* hairline rules */
  --press: #c8102e;
  /* press red — masthead rule, breaking, labels */
  --press-d: #9c0c23;
  /* darker red for hover */
  --up: #1b7a4b;
  /* markets up */
  --down: #c8102e;
  /* markets down (= press) */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1220px;
  --gap: clamp(1.1rem, 2.4vw, 2rem);
  --shadow: 0 1px 2px rgba(21, 24, 30, .05), 0 8px 24px -14px rgba(21, 24, 30, .18);
}

/* ---------- reset-ish ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration: none;
}

/* ---------- a11y ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 6px 6px;
  font: 600 .85rem/1 var(--sans);
  transition: top .18s ease;
}

.skip-link:focus {
  top: 0;
}

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

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

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section {
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}

.section.band {
  background: var(--band);
}

/* generic image frame — kills the aspect-ratio collapse bug */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--band);
  display: block;
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--21x9 {
  aspect-ratio: 21 / 9;
}

.frame--16x9 {
  aspect-ratio: 16 / 9;
}

.frame--3x2 {
  aspect-ratio: 3 / 2;
}

.frame--4x3 {
  aspect-ratio: 4 / 3;
}

.frame--1x1 {
  aspect-ratio: 1 / 1;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(21, 24, 30, .06);
  pointer-events: none;
}

/* ---------- kicker / labels ---------- */
.kicker {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--press);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.kicker--ink {
  color: var(--ink-2);
}

.dateline {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tag {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--press);
  border: 1px solid currentColor;
  padding: .18rem .5rem;
  display: inline-block;
  line-height: 1;
}

.tag--solid {
  background: var(--press);
  color: #fff;
  border-color: var(--press);
}

.tag--ink {
  color: var(--ink);
}

.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-3);
  vertical-align: middle;
  margin: 0 .5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .7rem 1.25rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}

.btn:hover {
  background: #000;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--press {
  background: var(--press);
  border-color: var(--press);
}

.btn--press:hover {
  background: var(--press-d);
  border-color: var(--press-d);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--sm {
  padding: .5rem .9rem;
  font-size: .72rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.icon-btn:hover {
  background: var(--band);
  border-color: var(--ink-3);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--ink);
  color: #cfd4dc;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .45rem;
}

.topbar a {
  color: #cfd4dc;
}

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

.tb-left {
  text-transform: uppercase;
}

.tb-mid {
  color: #9aa2ad;
  text-transform: uppercase;
}

.tb-right {
  display: flex;
  gap: 1.1rem;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .tb-mid {
    display: none;
  }
}

/* ===================== MASTHEAD ===================== */
.masthead {
  border-bottom: 3px solid var(--press);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1.1rem, 3vw, 1.9rem);
}

.mh-side {
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: .04em;
}

.mh-side b {
  color: var(--ink);
  font-weight: 600;
}

.mh-side--right {
  text-align: right;
}

.nameplate {
  text-align: center;
}

.nameplate .the {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--press);
  margin-bottom: .2rem;
  padding-left: .42em;
}

.nameplate .word {
  font-family: var(--serif);
  font-weight: 800;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: .92;
  letter-spacing: -.02em;
  display: block;
  color: var(--ink);
}

.nameplate .sub {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .5rem;
}

@media (max-width: 860px) {
  .masthead-inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
  }

  .mh-side {
    display: none;
  }

  .nameplate {
    text-align: left;
  }

  .nameplate .the {
    padding-left: 0;
  }
}

/* ===================== PRIMARY NAV ===================== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--card);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease;
}

.nav-bar.is-stuck {
  box-shadow: 0 6px 18px -12px rgba(21, 24, 30, .4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(.9rem, 2vw, 1.7rem);
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: .95rem 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--press);
  border-color: var(--press);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--rule);
    border-radius: 50%;

    background: transparent;
    color: var(--ink);

    cursor: pointer;

    font-size: 17px;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.theme-toggle:hover {
    background: var(--ink);
    color: var(--card);

    transform: rotate(15deg);
}

.theme-toggle i {
    line-height: 1;
}
.nav-close,
.nav-toggle {
  display: none;
}

/* mobile drawer */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    z-index: 1200;
    background: var(--card);
    transform: translateX(102%);
    transition: transform .28s ease;
    padding: 1.25rem;
    overflow-y: auto;
    box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 2.5rem;
  }

  .main-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    border-color: var(--rule);
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 22, .5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* search slide-down */
.searchbar {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
  background: var(--ink);
}

.searchbar.open {
  grid-template-rows: 1fr;
}

.searchbar>div {
  overflow: hidden;
}

.searchbar form {
  display: flex;
  gap: .6rem;
  padding-block: 1rem;
}

.searchbar input {
  flex: 1;
  border: 1px solid #3a414c;
  background: #1d2129;
  color: #fff;
  padding: .7rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
}

.searchbar input::placeholder {
  color: #7d858f;
}

.searchbar input:focus {
  outline: none;
  border-color: var(--press);
}
.main-nav .home-nav-link {
  width: 100px;
  font-size: 15px;
  text-align: center;
    background: #e00000;
    color: #fff;
    padding: .85rem 1rem;
    border-bottom: none;
    display: block;
}

.main-nav .home-nav-link:hover {
    background: #c90000;
    color: #fff;
}
/* ===================== LIVE TICKER ===================== */

.ticker {
  width: 100%;

  background: #ffffff;

  overflow: hidden;

  border: 1px solid #e4e4e4;

  border-radius: 32px;

  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.08);

  margin-top: 12px;
  margin-bottom: 12px;
}


/* ===================== TICKER INNER ===================== */

.ticker-inner {
  display: flex;

  align-items: stretch;

  width: 100%;

  min-height: 58px;

  background: #ffffff;

  border-radius: 32px;

  overflow: hidden;
}


/* ===================== يحدث الآن ===================== */

.ticker-label {
  flex: 0 0 auto;

  display: flex;

  align-items: center;

  justify-content: center;

  min-width: 180px;

  padding: 0 25px;

  background: #f04f4f;

  color: #ffffff;

  font-size: 20px;

  font-weight: 800;

  white-space: nowrap;

  border-radius: 0 32px 32px 0;

  z-index: 5;
}


/* ===================== منطقة الأخبار ===================== */

.ticker-viewport {
  flex: 1;

  min-width: 0;

  overflow: hidden;

  display: flex;

  align-items: center;

  background: #ffffff;

  border: none;
}


/* ===================== حركة الأخبار ===================== */

.ticker-track {
  display: flex;

  align-items: center;

  width: max-content;

  white-space: nowrap;

  animation: ticker 40s linear infinite;

  will-change: transform;
}


/* إيقاف الحركة عند وضع الماوس */

.ticker-track:hover {
  animation-play-state: paused;
}


/* ===================== مجموعات الأخبار ===================== */

.ticker-group {
  display: flex;

  align-items: center;

  flex-shrink: 0;

  white-space: nowrap;
}


/* ===================== الفاصل بين المجموعتين ===================== */

.ticker-group+.ticker-group {
  border-left: 1px solid #e5e5e5;
}


/* ===================== الخبر ===================== */

.ticker-item {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 0 28px;

  color: #d79a2b;

  font-size: 20px;

  font-weight: 700;

  line-height: 1;

  white-space: nowrap;
}


/* ===================== الوقت ===================== */

.ticker-item b {
  color: #b98220;

  font-size: 15px;

  font-weight: 800;

  font-family: var(--mono);

  direction: ltr;

  letter-spacing: .05em;
}


/* ===================== الفاصل بين الأخبار ===================== */

.ticker-item+.ticker-item {
  border-left: 1px solid #e5e5e5;
}


/* ===================== الروابط ===================== */

.ticker-item a {
  color: #d79a2b;

  font-weight: 700;

  text-decoration: none;

  white-space: nowrap;

  transition: color 0.2s ease;
}


.ticker-item a:hover {
  color: #a87517;

  text-decoration: underline;
}


/* ===================== Animation ===================== */

@keyframes ticker {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}



/* ===================== Mobile ===================== */

@media (max-width: 768px) {

  .ticker {
    width: 100%;

    border-radius: 25px;

    margin-top: 8px;

    margin-bottom: 8px;

    padding-top: 0;
  }


  .ticker-inner {
    min-height: 48px;

    border-radius: 25px;
  }


  .ticker-label {
    min-width: 115px;

    padding: 0 15px;

    font-size: 15px;

    border-radius: 0 25px 25px 0;
  }


  .ticker-item {
    padding: 0 18px;

    font-size: 15px;
  }


  .ticker-item b {
    font-size: 12px;
  }

}


/* ===================== Small Mobile ===================== */

@media (max-width: 500px) {

  .ticker {
    border-radius: 20px;

    margin-top: 8px;

    margin-bottom: 8px;
  }


  .ticker-inner {
    min-height: 45px;

    border-radius: 20px;
  }


  .ticker-label {
    min-width: 100px;

    padding: 0 12px;

    font-size: 14px;

    border-radius: 0 20px 20px 0;
  }


  .ticker-item {
    font-size: 14px;

    padding: 0 15px;
  }


  .ticker-item b {
    font-size: 12px;
  }

}

/* =========================
   MOBILE CONTENT OFFSET
========================= */

@media (max-width: 768px) {

  .ticker {
    margin-top: 95px !important;
  }

}

/* ===================== SECTION HEADER ===================== */
.sec-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.sec-head h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.sec-head h2::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--press);
  flex: 0 0 auto;
}

.sec-head .rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
}

.sec-head .more {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.sec-head .more:hover {
  color: var(--press);
}

.sec-head .more svg {
  width: 14px;
  height: 14px;
}

/* headline links */
.hl {
  color: var(--ink);
  transition: color .14s;
}

.hl:hover {
  color: var(--press);
}

.byline {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-3);
  margin: 0;
}

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

/* ===================== FRONT PAGE ===================== */
.frontpage {
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
}

.fp-grid {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: var(--gap);
  align-items: start;
}

/* left rail: in brief */
.briefs {
  border-top: 3px solid var(--ink);
  padding-top: .9rem;
}

.briefs h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

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

.brief-list li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}

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

.brief-list .dateline {
  display: block;
  margin-bottom: .25rem;
}

.brief-list h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.22;
}

.brief-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--press);
}

.brief-more svg {
  width: 13px;
  height: 13px;
}

/* center: dominant lead */
.lead {
  position: relative;
}

.lead .frame {
  margin-bottom: 1rem;
}

.lead .kicker {
  margin-bottom: .6rem;
}

.lead-title {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.02;
  margin-bottom: .7rem;
}

.lead-title a {
  color: var(--ink);
}

.lead-title a:hover {
  color: var(--press);
}

.lead-dek {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: .9rem;
  max-width: 62ch;
}

.lead-dek .first {}

.lead-foot {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.lead-foot .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--band);
}

.lead-foot .avatar img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* right rail: secondary stories */
.rail {
  display: grid;
  gap: 1.1rem;
}

.rail-head {
  font-family: var(--sans);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-top: 3px solid var(--ink);
  padding-top: .9rem;
}

.sstory {
  display: grid;
  gap: .55rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.sstory:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sstory .frame {}

.sstory h3 {
  font-size: 1.15rem;
  line-height: 1.16;
}

.sstory .kicker {
  margin-bottom: .1rem;
}

@media (max-width: 1040px) {
  .fp-grid {
    grid-template-columns: 1fr 300px;
  }

  .briefs {
    grid-column: 1 / -1;
    order: 3;
    border-top: 1px solid var(--rule);
  }

  .briefs .brief-list {
    columns: 2;
    column-gap: 2rem;
  }

  .brief-list li:first-child {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .fp-grid {
    grid-template-columns: 1fr;
  }

  .lead-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .briefs .brief-list {
    columns: 1;
  }
}

/* ===================== TOP STORIES GRID ===================== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: .85rem;
  box-shadow: var(--shadow);
}

.story-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.story-card h3 {
  font-size: 1.18rem;
  line-height: 1.16;
}

.story-card p {
  font-size: .92rem;
  color: var(--ink-2);
  margin: 0;
}

.story-card .byline {
  margin-top: auto;
}

@media (max-width: 960px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== DESKS (interior + sidebar) ===================== */
.interior {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.desk+.desk {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.desk-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap);
}

.desk-feature .frame {
  margin-bottom: .9rem;
}

.desk-feature h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.08;
  margin-bottom: .55rem;
}

.desk-feature p {
  color: var(--ink-2);
  margin-bottom: .6rem;
}

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

.desk-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.desk-list li:first-child {
  padding-top: 0;
}

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

.desk-list .frame {
  align-self: start;
}

.desk-list h4 {
  font-size: 1.02rem;
  line-height: 1.18;
  margin-bottom: .25rem;
}

@media (max-width: 620px) {
  .desk-grid {
    grid-template-columns: 1fr;
  }
}

/* sidebar */
.sidebar {
  display: grid;
  gap: 1.8rem;
  position: sticky;
  top: 84px;
}

.side-block {
  background: var(--card);
  border: 1px solid var(--rule);
}

.side-block .side-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .9rem 1.1rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.side-title .live-dot {
  background: var(--press);
}

.trend-list {
  list-style: none;
  margin: 0;
  padding: .4rem 1.1rem 1rem;
  counter-reset: t;
}

.trend-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

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

.trend-list li::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--press);
  line-height: 1;
}

.trend-list h4 {
  font-size: 1rem;
  line-height: 1.18;
  margin-bottom: .2rem;
}

.trend-list .dateline {
  font-size: .62rem;
}

/* markets widget */
.markets {
  padding: .3rem 1.1rem 1rem;
}

.mkt-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .6rem;
  align-items: center;
  padding: .62rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .8rem;
}

.mkt-row:last-child {
  border-bottom: 0;
}

.mkt-name {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .02em;
}

.mkt-val {
  color: var(--ink-2);
}

.mkt-chg {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-weight: 600;
  justify-content: flex-end;
  min-width: 74px;
}

.mkt-chg svg {
  width: 12px;
  height: 12px;
}

.mkt-chg.up {
  color: var(--up);
}

.mkt-chg.down {
  color: var(--down);
}

.mkt-foot {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: .7rem 1.1rem;
  border-top: 1px solid var(--rule);
}

/* weather mini */
.weather {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather .temp {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
}

.weather .w-meta {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--ink-2);
  letter-spacing: .04em;
  line-height: 1.6;
  text-transform: uppercase;
}

.weather svg {
  width: 40px;
  height: 40px;
  color: var(--press);
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .interior {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
}

/* ===================== OPINION BAND ===================== */
.opinion {
  background: var(--ink);
  color: #e8ebf0;
}

.opinion .sec-head h2 {
  color: #fff;
}

.opinion .sec-head h2::before {
  background: var(--press);
}

.opinion .sec-head .rule {
  background: #333a45;
}

.opinion .sec-head .more {
  color: #aeb6c1;
}

.opinion .sec-head .more:hover {
  color: #fff;
}

.op-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--gap);
}

.op-lead {
  border-right: 1px solid #2c333d;
  padding-right: var(--gap);
}

.op-lead .frame {
  margin-bottom: 1rem;
}

.op-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.op-card .op-head {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.op-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #2c333d;
}

.op-card .avatar img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  letter-spacing: .02em;
}

.op-role {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a929d;
}

.op-card h3 {
  color: #f3f5f8;
  font-size: 1.28rem;
  line-height: 1.14;
}

.op-card h3 a {
  color: inherit;
}

.op-card h3 a:hover {
  color: #ff8a9a;
}

.op-lead h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.op-card p {
  color: #b8c0cb;
  font-size: .95rem;
  margin: 0;
}

.op-divide {
  display: grid;
  gap: 1.4rem;
}

.op-divide .op-card {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #2c333d;
}

.op-divide .op-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .op-grid {
    grid-template-columns: 1fr;
  }

  .op-lead {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid #2c333d;
    padding-bottom: 1.6rem;
  }

  .op-divide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .op-divide {
    grid-template-columns: 1fr;
  }
}

/* ===================== IN PICTURES ===================== */
/* explicit row heights: cells use absolutely-positioned imgs, so 1fr rows
   (measured against an auto-height container) would collapse to zero. */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 215px 215px;
  gap: .6rem;
}

.gallery a {
  position: relative;
  overflow: hidden;
  background: var(--band);
}

.gallery a:first-child {
  grid-row: 1 / 3;
}

.gallery a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 22, .7), transparent 55%);
}

.gallery .cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: .8rem 1rem;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}

.gallery a:first-child .cap {
  font-size: 1.35rem;
}

.gallery .cap .k {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffb3bd;
  margin-bottom: .3rem;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery a {
    aspect-ratio: 4/3;
  }

  .gallery a:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
  }
}

/* ===================== NEWSLETTER ===================== */
.news {
  background: var(--band);
  border-top: 3px solid var(--press);
}

.news-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.news h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  margin-bottom: .7rem;
}

.news p {
  color: var(--ink-2);
  margin-bottom: 0;
}

.news-form {}

.news-row {
  display: flex;
  gap: .6rem;
}

.news-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
}

.news-input::placeholder {
  color: var(--ink-3);
}

.news-input:focus {
  outline: none;
  border-color: var(--press);
}

.news-input.invalid {
  border-color: var(--press);
  background: #fdecef;
}

.news-msg {
  margin: .7rem 0 0;
  font-size: .85rem;
  min-height: 1.1em;
  font-family: var(--mono);
  letter-spacing: .02em;
}

.news-msg.ok {
  color: var(--up);
}

.news-msg.err {
  color: var(--press);
}

.news-note {
  margin: .5rem 0 0;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .news-inner {
    grid-template-columns: 1fr;
  }

  .news-row {
    flex-direction: column;
  }
}

/* ===================== ARTICLE PAGE ===================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--press);
  z-index: 1500;
  transition: width .1s linear;
}

.article-wrap {
  max-width: 780px;
}

.article-head {
  padding-top: clamp(1.8rem, 4vw, 2.8rem);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

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

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

.article-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  margin: .5rem 0 .8rem;
}

.article-dek {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-weight: 400;
}

.byrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.byrow .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--band);
}

.byrow .avatar img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.by-info {
  line-height: 1.35;
}

.by-info .name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
}

.by-info .meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.share-inline {
  margin-left: auto;
  display: flex;
  gap: .4rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.share-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.share-btn svg {
  width: 17px;
  height: 17px;
}

.share-btn.flashed {
  background: var(--up);
  color: #fff;
  border-color: var(--up);
}

.article-cover {
  margin-block: clamp(1.5rem, 4vw, 2.4rem);
}

.article-cover .frame {
  max-width: 1000px;
  margin-inline: auto;
}

.figcap {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--ink-3);
  margin-top: .6rem;
  text-align: center;
  max-width: 1000px;
  margin-inline: auto;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.72;
  color: #22262e;
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body h2 {
  font-size: 1.7rem;
  margin: 2.2rem 0 .9rem;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 .7rem;
  font-family: var(--sans);
  font-weight: 800;
}

.article-body a {
  color: var(--press);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--press-d);
}

.article-body>p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  float: left;
  font-size: 4.1rem;
  line-height: .78;
  padding: .3rem .55rem .1rem 0;
  color: var(--press);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.35rem 1.2rem;
}

.article-body li {
  margin-bottom: .5rem;
}

.pullquote {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 4px solid var(--press);
}

.pullquote p {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.28;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 .5rem;
}

.pullquote cite {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  font-style: normal;
  text-transform: uppercase;
}

.inline-fig {
  margin: 2rem 0;
}

.inline-fig .frame {}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.article-author {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--band);
  align-items: flex-start;
}

.article-author .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--card);
}

.article-author .avatar img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-author .kicker {
  margin-bottom: .3rem;
}

.article-author h3 {
  font-size: 1.3rem;
  margin-bottom: .4rem;
}

.article-author p {
  font-size: .95rem;
  color: var(--ink-2);
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.related-card h3 {
  font-size: 1.12rem;
  line-height: 1.16;
}

@media (max-width: 720px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    flex-direction: row;
    gap: 1rem;
  }

  .related-card .frame {
    width: 120px;
    flex: 0 0 120px;
  }
}

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* utility */
.mt-0 {
  margin-top: 0;
}

.center {
  text-align: center;
}


















  /* =========================================================
    TOP USER
  ========================================================= */

  .top-user {
      display: flex;
      align-items: center;
      justify-content: center;

      flex-shrink: 0;
  }


  /* =========================================================
    USER LINK
  ========================================================= */

  .top-user-link {
      width: 40px;
      height: 40px;

      display: flex;
      align-items: center;
      justify-content: center;

      text-decoration: none;

      transition: .25s ease;
  }


  /* =========================================================
    USER ICON
  ========================================================= */

  .top-user-icon {
      width: 36px;
      height: 36px;

      display: flex;
      align-items: center;
      justify-content: center;

      color: #ffffff;

      font-size: 24px;

      transition: .25s ease;
  }

  .top-user-link:hover .top-user-icon {
      color: #d71920;
      transform: translateY(-2px);
  }

.top-user-icon {
    width: 36px !important;
    height: 36px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #ffffff !important;

    font-size: 28px !important;

    line-height: 1 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;

    transform: none;
}

.top-user-icon i {
    font-family: "bootstrap-icons" !important;

    font-size: 28px !important;

    line-height: 1 !important;

    display: inline-block !important;

    background: transparent !important;

    border: none !important;
}

.top-user-link:hover .top-user-icon {
    color: #d71920 !important;
    transform: translateY(-2px) scale(1.05);
}
  /* =========================================================
    USER IMAGE
  ========================================================= */

  .top-user-avatar {
      width: 40px;
      height: 40px;

      display: block;

      object-fit: cover;

      border-radius: 50%;

      border: 2px solid #d71920;

      transition: transform .25s ease;
  }

  .top-user-link:hover .top-user-avatar {
      transform: scale(1.08);
  }




  /* =========================================================
   HEADER LOGO
========================================================= */

.logo {
    width: 360px !important;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo img {
    width: 330px !important;
    height: 90px !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
}


/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1200px) {

    .logo {
        width: 320px !important;
        height: 95px;
    }

    .logo img {
        width: 295px !important;
        height: 85px !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .top-header {
        display: none;
    }

}



