/* عكاظ اليوم 2026, okaznews.net theme (okaz-2026)
   Tokens: the brand's cerulean and navy (logo, covers), sky and sand tints,
   Markazi Text for headlines (literary Naskh, as on the covers), Noto Kufi
   Arabic for interface labels. RTL, logical properties throughout. */
@font-face { font-family: "Markazi Text"; src: url(fonts/markazi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Markazi Text"; src: url(fonts/markazi-700.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url(fonts/kufi-600.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url(fonts/kufi-800.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --cer: #1A8FB8; --cer-600: #157AA0; --cer-700: #0E6A8F; --cer-300: #6CC3E2;
  --sky: #EAF5FA; --sky-2: #D9EDF6; --sand: #F5F2EB;
  --navy-950: #041621; --navy-900: #071F2E; --navy-800: #0B2B40; --navy-700: #0F3A55;
  --ink: #0C1B28; --ink-2: #33475A; --mute: #56697A; --line: #DCE5EB; --silver: #D6E0E7;
  --red: #C8102E; --paper: #fff;
  --f-head: "Markazi Text", "Noto Naskh Arabic", "Times New Roman", serif;
  --f-ui: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1280px; --gut: 24px; --r: 12px;
  --shadow: 0 1px 2px rgba(7, 31, 46, .06), 0 8px 24px rgba(7, 31, 46, .08);
  --roshan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 24 24 0l24 24-24 24Z'/%3E%3Cpath d='M12 24 24 12l12 12-12 12Z'/%3E%3Cpath d='M24 0v48M0 24h48'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-ui); color: var(--ink); background: var(--paper); line-height: 1.6; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cer-700); }
:focus-visible { outline: 3px solid var(--cer-700); outline-offset: 2px; border-radius: 4px; }
.brandbar :focus-visible, .nav :focus-visible, .chips :focus-visible, .breaking :focus-visible, .tone-navy :focus-visible,
.band :focus-visible, .cat-hero :focus-visible, .footer :focus-visible, .drawer :focus-visible, .card--split :focus-visible { outline-color: #fff; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; margin-inline: 10px; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }

/* ---------- masthead ---------- */
.masthead { color: #fff; }
.brandbar { background: radial-gradient(120% 140% at 85% 0%, #10405e 0%, var(--navy-900) 55%, var(--navy-950) 100%); position: relative; overflow: hidden; }
.brandbar::before { content: ""; position: absolute; inset: 0; background: var(--roshan); opacity: .07; pointer-events: none; }
.brandbar__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; min-height: 92px; }
.logo { flex: none; }
.logo img { width: 168px; height: auto; }
.brandbar__meta { display: flex; align-items: center; gap: 16px; padding-inline-start: 28px; border-inline-start: 1px solid rgba(255,255,255,.14); font-size: 13.5px; color: #C7D6E0; }
.dateline { margin: 0; }
.dateline time { color: #fff; font-weight: 700; }
.brandbar__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #C7D6E0; background: rgba(255,255,255,.06); }
.social a:hover { background: rgba(255,255,255,.14); color: #fff; }
.prayer { position: relative; font-size: 13px; }
.prayer summary { list-style: none; cursor: pointer; padding: 5px 12px; border-radius: 999px; background: rgba(26,143,184,.22); border: 1px solid rgba(108,195,226,.35); color: #DDF2FB; }
.prayer summary::-webkit-details-marker { display: none; }
.prayer summary time { color: #fff; font-weight: 800; margin-inline-start: 6px; }
.prayer__list { position: absolute; z-index: 30; inset-inline-start: 0; top: calc(100% + 8px); background: var(--paper); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 210px; }
.prayer__list li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; }
.prayer__list li.is-next { background: var(--sky); color: var(--cer-700); font-weight: 700; }
.drawer-open { display: none; }
.search { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding-inline: 16px 5px; height: 44px; width: 300px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; }
.search input::placeholder { color: #A9BFCD; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--cer-300); background: rgba(255,255,255,.12); }
.search button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cer); color: #fff; cursor: pointer; }

.nav-sentinel { display: block; height: 1px; margin-bottom: -1px; }
.nav { position: sticky; top: 0; z-index: 60; background: var(--cer-700); box-shadow: 0 1px 0 rgba(255,255,255,.06); transition: box-shadow .2s; }
.nav.is-stuck { box-shadow: 0 8px 24px rgba(4,22,33,.28); }
.nav__inner { display: flex; align-items: center; gap: 8px; }
.nav__brand { display: none; flex: none; padding: 6px; border-radius: 8px; }
.nav.is-stuck .nav__brand { display: block; }
.nav__brand img { width: 30px; height: auto; }
.nav__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav__item { position: relative; display: flex; align-items: center; flex: none; }
.nav__link { display: block; padding: 14px 12px; font-weight: 700; font-size: 15.5px; color: #fff; }
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; box-shadow: inset 0 -4px 0 #fff; }
.nav__link--accent { color: #FFE7A3; }
.nav__more { width: 26px; height: 32px; margin-inline-start: -8px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: rgba(221,242,251,.7); cursor: pointer; }
.nav__more:hover, .nav__more:focus-visible { color: #fff; background: rgba(255,255,255,.14); }
.nav__more[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.2); transform: rotate(180deg); }
.mega { position: absolute; z-index: 40; inset-inline: 0; top: 100%; background: var(--paper); color: var(--ink); box-shadow: 0 28px 56px rgba(4, 22, 33, .25); border-top: 4px solid var(--cat, var(--cer)); }
.mega__inner { display: grid; grid-template-columns: 250px minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding-block: 26px 30px; }
.mega__side { background: var(--sky); border-radius: 14px; padding: 20px; align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.mega__title { margin: 0; font-weight: 800; font-size: 24px; color: var(--cat, var(--navy-800)); }
.mega__desc { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.mega__subs { display: flex; flex-wrap: wrap; gap: 8px; }
.mega__subs a { display: block; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--cat, var(--cer-700)); }
.mega__all { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--cat, var(--cer-700)); }
.mega__feature { display: grid; gap: 10px; align-content: start; }
.mega__feature img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.mega__ftitle { font-family: var(--f-head); font-weight: 700; font-size: 24px; line-height: 1.3; }
.mega__feature time, .mega__list time { font-size: 12.5px; color: var(--mute); }
.mega__list { display: grid; gap: 14px; align-content: start; }
.mega__list a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; font-family: var(--f-head); font-weight: 700; font-size: 18.5px; line-height: 1.35; }
.mega__list img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.chips { display: none; }

/* ---------- breaking (only while a story is flagged) ---------- */
.breaking { background: linear-gradient(90deg, #A50D25, var(--red)); color: #fff; }
.breaking__inner { display: flex; align-items: center; gap: 16px; min-height: 50px; }
.breaking__label { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--red); font-weight: 800; font-size: 14px; padding: 5px 14px; border-radius: 999px; }
.breaking__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,16,46,.55); } 100% { box-shadow: 0 0 0 10px rgba(200,16,46,0); } }
.breaking__link { font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.35; color: #fff; }
.breaking__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.breaking__time { margin-inline-start: auto; flex: none; font-size: 13px; color: #FFF0F2; }

/* ---------- cards ---------- */
.card { display: grid; gap: 12px; align-content: start; }
.card__media { display: block; border-radius: var(--r); overflow: hidden; background: var(--sky-2); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: grid; gap: 6px; }
.kicker { font-size: 12.5px; font-weight: 800; color: var(--cat, var(--cer-700)); }
.card__title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 23px; line-height: 1.32; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s; }
.card__title a:hover { background-size: 100% 1.5px; color: inherit; }
.card__dek { margin: 0; color: var(--ink-2); font-family: var(--f-head); font-size: 20px; line-height: 1.5; }
.card__time { font-size: 12.5px; color: var(--mute); }
.card--hero .card__title { font-size: 44px; line-height: 1.2; }
.card--lead .card__title { font-size: 33px; line-height: 1.24; }
.card--row { grid-template-columns: 168px 1fr; gap: 16px; align-items: start; }
.card--row .card__title { font-size: 21px; }
.card--text { padding-block: 12px; border-top: 1px solid var(--line); }
.card--text .card__title { font-size: 20px; }
.card--dark .card__title a { color: #fff; }
.card--dark .card__time { color: #A9BFCD; }
.card--dark .kicker { color: var(--cer-300); }
.ph { display: grid; place-items: center; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--cer-700), var(--navy-900)); position: relative; }
.ph::before { content: ""; position: absolute; inset: 0; background: var(--roshan); opacity: .12; }
.ph img { position: relative; width: 22%; height: auto; opacity: .9; }

/* ---------- home: top ---------- */
.top { background: linear-gradient(180deg, var(--sky) 0, var(--paper) 100%); padding-block: 28px 36px; }
.top__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gut); }
.top__lead { grid-column: span 8; }
.top__related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.top__related a { display: flex; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.4; }
.top__related a::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 11px; background: var(--cer); transform: rotate(45deg); }
.top__grid > .rail { grid-column: 9 / -1; grid-row: 1; }
.top__seconds { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); }
.rail { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; align-self: start; }
.rail__title { margin: 0 0 8px; font-weight: 800; font-size: 20px; color: var(--navy-800); display: flex; align-items: center; gap: 10px; }
.rail__title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,16,46,.15); }
.rail__list li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding-block: 11px; border-top: 1px solid var(--line); }
.rail__list li:first-child { border-top: 0; }
.rail__list time { font-size: 13px; font-weight: 800; color: var(--cer-700); padding-top: 3px; }
.rail__list a { font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.35; }
.rail__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--cer-700); }

/* ---------- desks ---------- */
.desk { padding-block: 40px; }
.desk__head { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.desk__head::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 88px; height: 4px; border-radius: 2px; background: var(--cat, var(--cer)); }
.desk__title { margin: 0; font-weight: 800; font-size: 26px; display: flex; align-items: center; gap: 12px; }
.desk__title::before { content: ""; width: 11px; height: 11px; background: var(--cat, var(--cer)); transform: rotate(45deg); border-radius: 2px; }
.desk__title a { color: inherit; }
.desk__subs { display: flex; gap: 14px; }
.desk__subs a { font-weight: 600; color: var(--cer-700); }
.desk__note { margin: 0; color: #A9BFCD; }
.desk__more { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--cer-700); padding: 6px 14px; border-radius: 999px; border: 1px solid currentColor; }
.desk__more:hover { background: var(--cer-700); color: #fff; border-color: var(--cer-700); }
.desk__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.desk__body > .card--lead { grid-column: span 6; }
.desk__grid, .desk__list { grid-column: span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gut); align-content: start; }
.desk__list { grid-template-columns: 1fr; gap: 18px; }
.desk__grid--4 { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tone-sky { background: var(--sky); }
.tone-pitch { background: #EDF6EF linear-gradient(90deg, transparent calc(50% - 1px), rgba(26,107,60,.08) calc(50% - 1px), rgba(26,107,60,.08) calc(50% + 1px), transparent calc(50% + 1px)); position: relative; }
.tone-pitch::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); border: 2px solid rgba(26,107,60,.08); border-radius: 50%; pointer-events: none; }
.tone-pitch .wrap { position: relative; }
.market { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: -6px 0 24px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.market__label { font-weight: 800; font-size: 13px; color: var(--navy-950); background: #FFE7A3; padding: 4px 12px; border-radius: 999px; }
.market__title { font-family: var(--f-head); font-weight: 700; font-size: 21px; color: #fff; }
.market time { color: #A9BFCD; font-size: 13px; }
.market:hover .market__title { text-decoration: underline; text-underline-offset: 6px; }
.tone-navy { background: var(--navy-800); color: #fff; }
.tone-navy .desk__head { border-color: rgba(255,255,255,.18); }
.tone-navy .card__title a, .tone-navy .desk__title a { color: #fff; }
.tone-navy .card__dek { color: #C7D6E0; }
.tone-navy .card__time { color: #A9BFCD; }
.tone-navy .kicker, .tone-navy .desk__more, .tone-navy .desk__subs a { color: var(--cer-300); }

.band { padding-block: 40px; }
.band--forecast { background: var(--navy-950) var(--roshan); background-blend-mode: soft-light; color: #fff; }
.desk__head--light { border-color: rgba(255,255,255,.18); }
.desk__head--light .desk__title a { color: #fff; }
.desk__head--light .desk__more { color: var(--cer-300); }
.band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); }

.quad { background: var(--sand); padding-block: 40px; }
.quad__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); }
.mini { background: var(--paper); border-radius: 14px; padding: 18px 18px 8px; box-shadow: var(--shadow); border-top: 4px solid var(--cat, var(--cer)); }
.mini .desk__head { margin-bottom: 16px; }
.mini .desk__head::after { display: none; }
.mini .desk__more { padding: 4px 10px; font-size: 13px; }
.mini .desk__title { font-size: 21px; }
.mini__list { margin-top: 6px; }

/* ---------- category & article ---------- */
.crumbs { padding-block: 16px 0; font-size: 13.5px; color: var(--mute); }
.crumbs ol { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 8px; color: var(--silver); }
.cat-hero { position: relative; background: radial-gradient(120% 160% at 90% 0%, #10405e 0%, var(--navy-900) 60%); color: #fff; padding-block: 18px 34px; border-bottom: 5px solid var(--cat, var(--cer)); overflow: hidden; }
.cat-hero::before { content: ""; position: absolute; inset: 0; background: var(--roshan); opacity: .07; pointer-events: none; }
.cat-hero .wrap { position: relative; }
.crumbs--light { padding-block: 0 14px; color: #A9BFCD; }
.crumbs--light a:hover { color: #fff; }
.cat-hero__row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.cat-hero__title { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.2; display: flex; align-items: center; gap: 14px; }
.cat-hero__title::before { content: ""; width: 14px; height: 14px; background: var(--cat, var(--cer)); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.cat-hero__subs { display: flex; gap: 8px; }
.cat-hero__subs a { display: block; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: 14px; }
.cat-hero__subs a:hover { background: #fff; color: var(--navy-900); }
.cat-hero__dek { margin: 10px 0 0; color: #C7D6E0; max-width: 760px; font-size: 15.5px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px var(--gut); padding-block: 30px 36px; }
.cat-grid__lead { grid-column: 1 / -1; }
.card--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; background: var(--navy-800); border-radius: var(--r); overflow: hidden; color: #fff; }
.card--split .card__media { border-radius: 0; }
.card--split .card__media img { height: 100%; }
.card--split .card__body { align-content: center; gap: 12px; padding: 28px 32px; }
.card--split .card__title { font-size: 36px; line-height: 1.22; }
.card--split .card__title a { color: #fff; }
.card--split .card__dek { color: #C7D6E0; font-size: 21px; }
.card--split .card__time { color: #A9BFCD; }
.pager { display: flex; gap: 8px; justify-content: center; padding-bottom: 40px; }
.pager a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; }
.pager a { gap: 6px; }
.pager a[aria-current] { background: var(--cer-700); color: #fff; border-color: var(--cer-700); }
.pager a:not([aria-current]):hover { border-color: var(--cer-700); color: var(--cer-700); }

.story { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 16px 48px; }
.story__main { min-width: 0; }
.story__head { display: grid; gap: 14px; }
.story__title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 48px; line-height: 1.18; }
.story__dek { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 25px; line-height: 1.55; color: var(--ink-2); }
.story__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; border-block: 1px solid var(--line); }
.story__meta { margin: 0; color: var(--mute); font-size: 14px; }
.story__by { color: var(--ink); font-weight: 800; }
.share { display: flex; align-items: center; gap: 10px; }
.share__label { font-size: 13px; font-weight: 800; color: var(--mute); }
.share ul { display: flex; gap: 6px; }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.share__btn:hover { color: #fff; border-color: transparent; }
.share__btn--wa:hover { background: #128C4B; } .share__btn--xlogo:hover { background: #0F1419; } .share__btn--fb:hover { background: #1877F2; } .share__btn--tg:hover { background: #229ED9; } .share__copy:hover, .share__copy.is-done { background: var(--cer-700); color: #fff; }
.story__media { margin: 22px 0 8px; }
.story__media img { width: 100%; border-radius: var(--r); }
.story__body { font-family: var(--f-head); font-size: 23px; line-height: 1.95; font-weight: 500; color: #16232F; }
.story__body p { margin: 0 0 1.05em; }
.story__body h2 { font-family: var(--f-ui); font-weight: 800; font-size: 24px; line-height: 1.5; margin: 1.6em 0 .55em; padding-inline-start: 14px; border-inline-start: 4px solid var(--cer); }
.story__body a { color: var(--cer-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.story__body .nai-also { margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; background: var(--sky); font-family: var(--f-ui); font-size: 16px; line-height: 1.8; font-weight: 700; color: var(--navy-800); }
.story__body .nai-also a { text-decoration: none; color: var(--cer-700); }
.story__foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.story__aside { min-width: 0; }
.story__aside .rail { position: sticky; top: 72px; }
.related { background: var(--sand); }

/* ---------- footer ---------- */
.frieze { height: 30px; background: var(--navy-900) var(--roshan) center / 30px 30px; position: relative; }
.frieze::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,106,143,.85), rgba(7,31,46,.55)); mix-blend-mode: multiply; }
.footer { position: relative; background: var(--navy-950); color: #C7D6E0; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--roshan); opacity: .04; pointer-events: none; }
.footer__inner { position: relative; display: grid; grid-template-columns: 1.6fr 1.4fr 1fr 1fr; gap: 40px; padding-block: 48px 40px; }
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand img { width: 160px; }
.footer__brand p { margin: 0; max-width: 420px; line-height: 1.9; }
.footer__title { margin: 0 0 14px; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.footer__title::before { content: ""; width: 8px; height: 8px; background: var(--cer); transform: rotate(45deg); }
.footer__col li { padding-block: 5px; }
.footer__col a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); }
.footer__social a:hover { background: var(--cer); color: #fff; }
.footer__base { position: relative; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #A9BFCD; }
.footer__baseinner { display: flex; justify-content: space-between; gap: 16px; }
.footer__base p { margin: 0; padding-block: 16px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(4, 22, 33, .62); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(360px, 88vw); background: var(--navy-900); color: #fff; padding: 16px 18px 24px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer__panel::before { content: ""; position: absolute; inset: 0; background: var(--roshan); opacity: .05; pointer-events: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.search--drawer { width: 100%; position: relative; }
.drawer__links { position: relative; }
.drawer__links li { border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer__links a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; font-weight: 700; font-size: 16px; }
.drawer__links li > a::before { content: ""; width: 9px; height: 9px; background: var(--cat, var(--cer)); transform: rotate(45deg); border-radius: 2px; }
.drawer__links a[aria-current] { color: var(--cer-300); }
.drawer__subs { display: flex; gap: 8px; padding: 0 25px 12px; }
.drawer__subs a { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; }
.drawer__meta { position: relative; display: flex; gap: 16px; margin-top: auto; font-size: 13px; color: #A9BFCD; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .top__lead { grid-column: 1 / -1; }
  .top__grid > .rail { grid-column: 1 / -1; grid-row: auto; }
  .brandbar__meta .dateline span:last-child, .brandbar__meta .dot { display: none; }
  .search { width: 220px; }
  .quad__grid, .band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__inner { grid-template-columns: 220px minmax(0, 1fr); }
  .mega__list { display: none; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .brandbar__inner { min-height: 64px; gap: 6px; }
  .logo img { width: 112px; }
  .brandbar__meta { order: 3; flex-basis: 100%; padding: 0 0 10px; border: 0; justify-content: space-between; }
  .brandbar__inner { flex-wrap: wrap; }
  .dateline .dot, .dateline span:last-child, .social { display: none; }
  .brandbar__tools { margin-inline-start: auto; }
  .drawer-open { display: inline-grid; }
  .search { width: 44px; padding: 0; border: 0; background: transparent; }
  .search input { display: none; }
  .search button { width: 44px; height: 44px; background: transparent; }
  .nav { display: none; }
  .chips { display: block; position: sticky; top: 0; z-index: 60; background: var(--navy-800); box-shadow: 0 6px 16px rgba(4,22,33,.2); }
  .chips ul { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
  .chips a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 700; font-size: 14px; }
  .chips a[aria-current] { background: var(--cer); }
  .top__seconds, .desk__grid, .band__grid, .quad__grid, .desk__grid--4, .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .top__seconds .card, .desk__grid .card, .cat-grid > .card { grid-template-columns: 116px 1fr; gap: 12px; }
  .top__seconds { order: 2; } .rail { order: 3; }
  .desk__head { flex-wrap: wrap; }
  .desk__note { order: 3; flex-basis: 100%; font-size: 14px; }
  .band__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .band__grid > * { scroll-snap-align: start; }
  .card--hero .card__title { font-size: 31px; }
  .rail__list li:nth-child(n+6) { display: none; }
  .top__related { grid-template-columns: 1fr; }
  .breaking__inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .breaking__link { font-size: 19px; flex-basis: 100%; order: 3; }
  .breaking__time { margin-inline-start: 0; }
  .top__seconds .card__title, .desk__grid .card__title, .cat-grid > .card .card__title { font-size: 19px; }
  .top__seconds, .desk__grid { gap: 16px; }
  .desk__body > .card--lead, .desk__grid, .desk__list { grid-column: 1 / -1; }
  .card--hero .card__title { font-size: 30px; }
  .card--row { grid-template-columns: 120px 1fr; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card--split { grid-template-columns: 1fr; }
  .card--split .card__body { padding: 18px 18px 22px; }
  .card--split .card__title { font-size: 28px; }
  .cat-hero__title { font-size: 34px; }
  .story__title { font-size: 33px; }
  .story__dek { font-size: 21px; }
  .story__body { font-size: 21px; }
  .search--drawer input { display: block; }
  .search--drawer { width: 100%; padding-inline: 16px 5px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
  .search--drawer button { width: 34px; height: 34px; background: var(--cer); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand, .footer__col--wide { grid-column: 1 / -1; }
  .footer__baseinner { flex-direction: column; gap: 0; }
  .footer__base p { padding-block: 6px; }
  .footer__base { padding-block: 10px; }
}
/* ---------- WordPress additions ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.search-page { padding-block: 24px 8px; }
.search--page { width: min(560px, 100%); background: var(--sky); border-color: var(--line); }
.search--page input { color: var(--ink); }
.search--page input::placeholder { color: var(--mute); }
.search--page:focus-within { border-color: var(--cer-700); background: var(--paper); }
.empty { padding-block: 40px; color: var(--mute); font-size: 17px; }
.pager { flex-wrap: wrap; }
.pager__gap { display: grid; place-items: center; min-width: 24px; color: var(--mute); }
.cat-grid--plain { padding-block: 0; }
.page-body { padding-block: 32px 56px; max-width: 900px; }
.story__updated { display: inline-block; margin-inline-start: 10px; }
.story__media figcaption { margin-top: 8px; font-size: 14px; color: var(--mute); }
.story__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.story__tags a { display: block; padding: 5px 14px; border-radius: 999px; background: var(--sky); color: var(--cer-700); font-weight: 700; font-size: 14px; }
.story__tags a:hover { background: var(--cer-700); color: #fff; }
.story__body h3 { font-family: var(--f-ui); font-weight: 800; font-size: 20px; line-height: 1.5; margin: 1.4em 0 .5em; }
.story__body ul { list-style: disc; padding-inline-start: 1.3em; margin: 0 0 1.05em; }
.story__body ol { list-style: decimal; padding-inline-start: 1.3em; margin: 0 0 1.05em; }
.story__body li { margin-block: .3em; }
.story__body blockquote { margin: 1.4em 0; padding: 6px 20px; border-inline-start: 4px solid var(--cer); color: var(--ink-2); }
.story__body figure { margin: 1.4em 0; }
.story__body img { border-radius: 10px; }
.story__body figcaption, .story__body .wp-caption-text { font-family: var(--f-ui); font-size: 14px; color: var(--mute); margin-top: 6px; }
.story__body iframe, .story__body video, .story__body embed { max-width: 100%; }
.story__body table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 16px; display: block; overflow-x: auto; }
/* word-break: normal undoes core's break-word on fixed-layout tables, which let columns shrink until Arabic words split mid-word */
.story__body th, .story__body td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; word-break: normal; overflow-wrap: break-word; }
.story__body th { background: var(--sky); }
.story__body .nai-toc { margin: 1.4em 0; padding: 16px 20px; border: 0; border-radius: 12px; background: var(--sky); font-family: var(--f-ui); font-size: 15.5px; line-height: 1.8; }
.story__body .nai-toc-title { margin: 0 0 6px; font-weight: 800; color: var(--navy-800); }
.story__body .nai-toc ul { list-style: none; padding: 0; margin: 0; }
.story__body .nai-toc li.nai-toc-h3 { margin-inline-start: 1em; }
.story__body .nai-toc a { text-decoration: none; color: var(--cer-700); font-weight: 700; }
.story__body .nai-jump { font-family: var(--f-ui); font-size: 16px; }
.comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.comments__title { margin: 0 0 16px; font-weight: 800; font-size: 22px; }
.comments__list { display: grid; gap: 14px; margin-bottom: 24px; }
.comments__list .comment-body { padding: 14px 16px; border-radius: 12px; background: var(--sky); }
.comments__list .children { margin-top: 12px; padding-inline-start: 24px; display: grid; gap: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata a { font-size: 13px; color: var(--mute); }
.comment-reply-title { margin: 0 0 10px; font-weight: 800; font-size: 19px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; }
.comment-form textarea { min-height: 120px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; }
.btn, .comment-form .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--cer-700); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.btn:hover { background: var(--navy-800); }
@media (max-width: 760px) {
  .search--page { width: 100%; padding-inline: 16px 5px; border: 1px solid var(--line); background: var(--sky); }
  .search--page input { display: block; }
  .search--page button { width: 34px; height: 34px; background: var(--cer); }
  .page-body { padding-block: 20px 40px; }
}

/* ---------- contact page: the publish blocks (toggled from the banner plugin's admin) and the form ---------- */
.story__body .cnx-pub { margin: 1.6em 0; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 140% at 85% 0%, #10405e 0%, var(--navy-900) 60%); color: #fff; font-family: var(--f-ui); }
.cnx-pub__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 26px 28px; }
.cnx-pub__tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 800; color: #DDF2FB; }
.story__body .cnx-pub h2 { margin: 10px 0 6px; padding: 0; border: 0; font-family: var(--f-ui); font-size: 24px; color: #fff; }
.cnx-pub i { font-style: normal; color: var(--cer-300); }
.story__body .cnx-pub p { margin: 0 0 14px; color: #C7D6E0; font-size: 16px; line-height: 1.8; }
.story__body .cnx-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--cer); color: #fff; font-weight: 800; text-decoration: none; }
.cnx-cta svg { width: 18px; height: 18px; }
.cnx-pub__art { display: grid; place-items: center; gap: 10px; text-align: center; color: var(--cer-300); }
.cnx-pub__art svg { width: 96px; height: auto; }
.cnx-pub__art b { direction: ltr; font-size: 14px; color: #A9BFCD; }
.story__body .cnx-note { margin: 1.4em 0; padding: 16px 18px; border-radius: 12px; background: var(--sand); font-family: var(--f-ui); font-size: 15.5px; line-height: 1.8; }
.story__body .cnx-note p { margin: 0 0 8px; }
.story__body .cnx-note a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--cer-700); text-decoration: none; }
.cnx-note svg { width: 16px; height: 16px; }
.story__body .contact-email a { display: inline-block; padding: 10px 18px; border-radius: 12px; background: var(--sky); font-family: var(--f-ui); font-weight: 800; font-size: 20px; text-decoration: none; direction: ltr; }
.story__body .form-note { font-family: var(--f-ui); font-size: 14px; color: var(--mute); }
.story__body .kb-form { font-family: var(--f-ui); font-size: 16px; }
.story__body .kb-form .kadence-blocks-form-field { margin-bottom: 12px; }
.story__body .kb-form .kb-field { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; }
/* Kadence's form stylesheet hard-codes text-align: left on the form and every field; keep them right-aligned (start) like the rest of the page */
.story__body .kb-form, .story__body .kb-form .kadence-blocks-form-field, .story__body .kb-form .kb-field, .kb-form-error-msg { text-align: start; }
.story__body .kb-form .kb-email-field { direction: ltr; text-align: right; }
.story__body .kb-form .kb-field:focus { outline: 3px solid var(--cer-700); outline-offset: 1px; }
.story__body .kb-form .kb-forms-submit { width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: var(--cer-700); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.story__body .kb-form .kb-forms-submit:hover { background: var(--navy-800); }
.story__body .kb-form { margin: 0; overflow: hidden; }
.kb-form .kadence-blocks-field.verify { position: absolute !important; inset: auto !important; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.kadence-blocks-form-message { margin-top: 10px; padding: 12px 16px; border-radius: 10px; background: var(--sky); font-family: var(--f-ui); font-size: 15px; }
.kadence-blocks-form-warning { background: #FDECEC; color: #8A1C1C; }
@media (max-width: 760px) { .cnx-pub__grid { grid-template-columns: 1fr; } .cnx-pub__art { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
