/* «أثير القطيف» · Atheer AlQatif — navy masthead, white reading body, coral as the one news accent.
   Coral (#FF7A59) is the logo's sail: it marks rules, bars and the "now" signals; text that must be
   read in coral uses --accent-ink, the same hue darkened to pass 4.5:1 on white. */
:root {
  --navy: #0c243e;
  --navy-2: #133352;
  --navy-ink: #c9d6e4;
  --accent: #FF7A59;
  --accent-ink: #b8401f;
  --accent-t: #fff0eb;
  --amber: #FFB547;
  --sky: #5AB4FF;
  --ink: #14171a;
  --ink-2: #3a3f45;
  --mute: #5b6168;
  --line: #e4e6e9;
  --line-2: #d3d6da;
  --bg: #ffffff;
  --bg-2: #f5f6f7;
  --bg-3: #eef0f2;
  --wa: #128c4a;
  --ui: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --read: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --w: 1240px;
  --gut: clamp(16px, 3vw, 32px);
  --r: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.7 var(--ui);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.45; text-wrap: balance; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 2px; }
html { scrollbar-color: #b9bdc2 var(--bg-2); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #b9bdc2; border-radius: 8px; border: 2px solid var(--bg-2); }
input { caret-color: var(--accent-ink); }

.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { top: 8px; }
.ico { width: 1em; height: 1em; flex: none; }
.muted { color: var(--mute); }

/* ------------------------------------------------------------- masthead */
.mast { background: var(--navy); color: #fff; }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 240px; height: auto; }
.mast__tools { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mast__date { font-size: 12.5px; color: var(--navy-ink); white-space: nowrap; }
.mast .search { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.mast .search:focus-within { background: #fff; border-color: #fff; }
.mast .search input { color: #fff; }
.mast .search:focus-within input, .mast .search:focus-within button { color: var(--ink); }
.mast .search input::placeholder { color: #9fb2c6; }
.mast .search button { color: #dbe5ef; }
.mast :focus-visible { outline-color: var(--accent); }

/* «مصادري» picker */
.pick { position: relative; flex: none; }
.pick__btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s; }
.pick__btn::-webkit-details-marker { display: none; }
.pick__btn:hover, .pick[open] .pick__btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.pick__l::before { content: ""; display: inline-block; width: 18px; height: 8px; margin-inline-end: 8px; vertical-align: 2px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sky) 0 33%, var(--amber) 33% 66%, var(--accent) 66%); }
.pick__v { font-weight: 500; color: var(--navy-ink); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.pick__panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 40; width: min(340px, calc(100vw - 32px)); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 16px; box-shadow: 0 2px 6px rgba(12,36,62,.12), 0 18px 40px -12px rgba(12,36,62,.35); display: grid; gap: 12px; }
.pick fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick legend { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.pick__o { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.pick__o:hover { border-color: var(--line-2); }
.pick__o:has(input:checked) { border-color: var(--navy); background: #f6f8fb; }
.pick__o input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex: none; }
.pick__o i { width: 10px; height: 10px; border-radius: 50%; background: var(--src); flex: none; }
.pick__o span { display: grid; line-height: 1.4; }
.pick__o strong { font-size: 14.5px; }
.pick__o small { font-size: 12px; color: var(--mute); text-align: end; }
.pick__err { margin: 0; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.pick .btn { justify-self: start; }

/* active source scope */
.scope { background: var(--accent-t); border-bottom: 1px solid #f6d6cb; font-size: 13.5px; }
.scope__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 8px; }
.scope a { font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* source badge */
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; line-height: 1.4; }
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--src); flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--src) 22%, transparent); }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.search { display: flex; align-items: stretch; width: min(360px, 100%); border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 9px 18px; font-size: 14px; outline: none; }
.search input::placeholder { color: #767c83; }
.search button { border: 0; background: none; padding: 0 16px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.search button .ico { width: 18px; height: 18px; }
.search--big { width: 100%; border-radius: var(--r); background: #fff; margin-block: 8px 20px; }
.search--big input { font-size: 17px; padding: 14px 18px; }
.search--big .btn { border-radius: 0 var(--r) var(--r) 0; margin: -1px; }
[dir="rtl"] .search--big .btn { border-radius: var(--r) 0 0 var(--r); }

/* ------------------------------------------------------------ section nav */
.secnav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--accent); }
.secnav__in { display: flex; align-items: center; gap: 4px; }
.secnav ul { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.secnav ul::-webkit-scrollbar { display: none; }
.secnav a { display: block; white-space: nowrap; padding: 13px 12px 11px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); position: relative; transition: color .15s; }
.secnav a:hover { color: var(--accent-ink); }
.secnav a[aria-current="page"], .secnav__home.is-on { color: var(--accent-ink); }
.secnav a[aria-current="page"]::after, .secnav__home.is-on::after { content: ""; position: absolute; inset-inline: 12px; bottom: -3px; height: 3px; background: var(--navy); }
.secnav__home { font-weight: 800 !important; color: var(--ink) !important; padding-inline-start: 0 !important; }
.secnav__search { display: none !important; }

/* --------------------------------------------------------------- ticker */
.ticker { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ticker__in { display: flex; align-items: stretch; gap: 0; }
.ticker__h { flex: none; display: flex; align-items: center; background: var(--accent); color: var(--navy); font-size: 13.5px; font-weight: 700; padding: 0 16px; margin-block: 8px; border-radius: 2px; }
.ticker__list { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; }
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list li { flex: none; }
.ticker__list a { display: flex; align-items: center; gap: 8px; padding: 13px 18px; font-size: 14px; font-weight: 500; white-space: nowrap; max-width: 460px; overflow: hidden; text-overflow: ellipsis; border-inline-end: 1px solid var(--line-2); }
.ticker__list li:last-child a { border: 0; }
.ticker__list a:hover { color: var(--accent-ink); }
.ticker__list time { color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: none; }
.stale { background: #fff6e0; color: #6b4d00; font-size: 13.5px; padding-block: 8px; margin: 0 auto; }

/* ---------------------------------------------------------------- atoms */
.tag { display: inline-block; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
a.tag:hover { text-decoration: underline; text-underline-offset: 4px; }
.when { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 12.5px; font-weight: 500; }
.when .ico { width: 13px; height: 13px; }
.ph { display: block; position: relative; overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 10; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph--none { display: grid; place-items: center; background: var(--bg-3); }
.ph--none img { width: 30%; height: auto; max-width: 72px; object-fit: contain; filter: grayscale(1); opacity: .35; }
a:hover .ph:not(.ph--none) img { transform: scale(1.035); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 1px solid var(--navy); padding: 10px 20px; border-radius: var(--r); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn .ico { width: 17px; height: 17px; }
.btn--sm { padding: 7px 12px; font-size: 13px; min-height: 36px; }
.btn--wa { background: #fff; color: var(--wa); border-color: #b7dcc6; }
.btn--wa:hover { background: #eef8f2; border-color: var(--wa); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }

/* section heads */
.sech { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 20px; }
.sech__t { font-size: 21px; font-weight: 800; position: relative; padding-bottom: 10px; margin-bottom: -1px; border-bottom: 3px solid var(--accent); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.more:hover { color: var(--accent-ink); }
.more .ico { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.more:hover .ico { transform: translateX(-3px); }

/* ---------------------------------------------------------------- stories */
.story a { display: block; }
.story__body { display: grid; gap: 6px; padding-top: 12px; }
.story__t { font-weight: 700; color: var(--ink); transition: color .15s; }
.story a:hover .story__t { color: var(--accent-ink); }
.story__ex { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.story--xl .story__t { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.45; }
.story--xl .story__body { gap: 10px; padding-top: 16px; }
.story--xl .story__ex { font-size: 16px; }
.story--md .story__t { font-size: 16.5px; line-height: 1.6; }
.story--sm .story__t { font-size: 15px; line-height: 1.6; }
.story--sm .ph { aspect-ratio: 16 / 10; }

/* rows */
.rows { display: grid; }
.row a { display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.row:first-child a { padding-top: 0; }
.row:last-child a { border-bottom: 0; }
.row__b { display: grid; gap: 4px; flex: 1; }
.row__t { font-weight: 600; font-size: 15px; line-height: 1.6; }
.row a:hover .row__t { color: var(--accent-ink); }
.ph--th { width: 116px; flex: none; aspect-ratio: 4 / 3; border-radius: 2px; }

/* ---------------------------------------------------------------- home top */
.top { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 28px 44px; }
.top__lead .ph { aspect-ratio: 16 / 9; border-radius: 2px; }
.top__sec { display: grid; gap: 24px; align-content: start; }
.top__sec .story + .story { padding-top: 22px; border-top: 1px solid var(--line); }
.top__side { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.side__h { font-size: 18px; font-weight: 800; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 3px solid var(--ink); }
.rows--side .row__t { font-size: 14.5px; }
.rows--side .tag { font-size: 12px; }

.blk { padding-block: 40px 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* bands */
.band { padding-block: 40px; margin-block: 40px 0; }
.band + .band, .band + .blk { margin-top: 0; }
.band__note { margin: -12px 0 18px; font-size: 12.5px; color: var(--mute); }
.band--obit { background: var(--bg-2); border-block: 1px solid var(--line); }
.band--obit .sech__t { border-bottom-color: var(--ink); }
.band--ads { background: #fbf8f1; border-block: 1px solid #ece4d3; }
.band--ads .sech__t { border-bottom-color: #8a6d1f; }
.band--media { background: var(--ink); color: #fff; }
.band--media .sech { border-color: #3a3f45; }
.band--media .more { color: #c9cdd1; }
.band--media .more:hover { color: #fff; }
.band--media + .band--media { padding-top: 8px; }

/* obituaries: quiet, dignified */
.obits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.obit a { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 16px 18px 14px; transition: border-color .2s; }
.obit a:hover { border-color: var(--line-2); border-top-color: var(--ink); }
.obit__place { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.obit__place .ico { width: 13px; height: 13px; }
.obit__name { font-family: var(--read); font-size: 18px; font-weight: 700; line-height: 1.6; }
.obit__top { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.obit__who { display: grid; gap: 4px; min-width: 0; align-content: start; }
.obit__ph { flex: none; width: 64px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.obit__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.85); }
.obit__hon { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.obit__place + .obit__hon { margin-top: -2px; }
.obit__facts { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.obit__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.obit__rip { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.obits--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* notices: jobs, lost & found */
.notices ul { display: grid; }
.notice { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.notice:first-child { padding-top: 0; }
.notice:last-child { border-bottom: 0; }
.notice__t { font-size: 15px; font-weight: 600; line-height: 1.75; }
.notice__t:hover { color: var(--accent-ink); }
.notice__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.notices--page ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.notices--page .notice:nth-child(2) { padding-top: 0; }

/* opinion */
.opinion .row__t { font-family: var(--read); font-size: 17px; font-weight: 700; }

/* media rails */
.rail { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-color: #50565d transparent; }
.media { scroll-snap-align: start; flex: 0 0 calc((100% - 60px) / 4); min-width: 220px; }
.media a { display: grid; gap: 10px; }
.media__fig { position: relative; display: block; }
.media__fig .ph { aspect-ratio: 16 / 10; background: #23272c; border-radius: 2px; }
.media__play { position: absolute; inset-inline-start: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.media__play .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 3px; }
.media__t { font-size: 15px; font-weight: 600; line-height: 1.6; }
.media .when { color: #b3b8bd; }
.media a:hover .media__t { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-ink); }
.rail--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; row-gap: 32px; }
.rail--grid .media { min-width: 0; }
.secpage .media .when { color: var(--mute); }
.secpage .media__fig .ph { background: var(--bg-3); }

/* sponsors */
.sponsors { margin-block: 40px 0; padding: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.sponsors__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.sponsors__h small { font-size: 11.5px; color: var(--mute); font-weight: 500; }
.sponsors ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sponsors img { width: 100%; height: 120px; object-fit: cover; border-radius: 2px; background: #fff; }
.sponsors a:hover img { opacity: .9; }
.is-home .sponsors { margin-top: 40px; }
.is-home .sponsors ul { grid-template-columns: minmax(0, 420px); justify-content: center; }
.is-home .sponsors img { height: auto; max-height: 360px; object-fit: contain; }

/* ------------------------------------------------------------- page heads */
.pagehead { padding-block: 32px 8px; }
.pagehead h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; display: inline-block; border-bottom: 4px solid var(--accent); padding-bottom: 6px; }
.pagehead p { margin: 12px 0 0; color: var(--mute); font-size: 14px; }
.secpage { padding-block: 24px 16px; }
.seclead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.seclead .ph { aspect-ratio: 16 / 9; }
.grid4--page:empty { display: none; }

/* --------------------------------------------------------------- article */
.artwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 24px 16px; }
.art { max-width: 780px; min-width: 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent-ink); }
.art__head { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.art__t { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.5; letter-spacing: -.005em; }
.art__t--long { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.75; }
.art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; }
.art__by { font-weight: 600; color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__b { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; min-height: 36px; }
.share__b .ico { width: 15px; height: 15px; }
.share__b:hover { border-color: var(--ink); }
.share__b--wa { color: var(--wa); border-color: #b7dcc6; }
.share__b--native { background: var(--navy); color: #fff; border-color: var(--navy); }
.share__b--native:hover { border-color: var(--navy); opacity: .92; }
.share__b--tg { color: #1c8ad1; border-color: #bcdcf2; }
.share__b[hidden] { display: none; }
.share--end { margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); align-items: center; }
.share__h { flex-basis: 100%; margin: 0 0 4px; font-weight: 700; font-size: 15px; }
@media (max-width: 760px) {
  .share { gap: 6px; } .share__b { padding: 7px 12px; }
  /* the phone's share sheet already has Telegram and X: keep the top row to one line */
  .has-native-share .share:not(.share--end) :is(.share__b--tg, .share__b--x) { display: none; }
}
.art__fig { margin: 0 0 28px; }
.art__fig img { width: 100%; max-height: 560px; object-fit: cover; background: var(--bg-3); border-radius: 2px; }
.art__body { font-family: var(--read); font-size: 20px; line-height: 2; color: #1d2126; max-width: 70ch; }
.art__body p { margin: 0 0 1.1em; }
.art__body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 24px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reach { margin-block: 12px 24px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); }
.reach h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.reach ul { display: grid; gap: 10px; }
.reach li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reach .num { font-weight: 700; font-size: 16px; min-width: 128px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 8px 20px; font-size: 13px; color: var(--mute); }
.chips--wide { margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; min-height: 34px; }
.chip .ico { width: 13px; height: 13px; color: var(--accent-ink); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.art__src { font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 14px; margin: 8px 0 0; }
.art__src a { color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.art__src .ico { width: 12px; height: 12px; }
.artside { position: sticky; top: 72px; align-self: start; }
.related { padding-block: 40px 16px; border-top: 1px solid var(--line); margin-top: 32px; }
.is-obit .art__t { font-family: var(--read); font-weight: 700; }
.is-obit .art__head { border-bottom-color: var(--ink); }

/* ----------------------------------------------------------- misc pages */
.prose { font-size: 17px; line-height: 1.95; padding-block: 16px 40px; }
.prose .lede { font-family: var(--read); font-size: 22px; font-weight: 600; }
.prose h2 { font-size: 19px; margin: 28px 0 12px; }
.ct { display: grid; gap: 10px; padding-block: 20px 48px; }
.ct a { display: grid; grid-template-columns: 24px 110px 1fr; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; }
.ct a:hover { border-color: var(--ink); background: var(--bg-2); }
.ct .ico { width: 20px; height: 20px; color: var(--accent-ink); }
.ct__l { font-weight: 700; }
.ct__v { color: var(--ink-2); text-align: end; }
.empty { text-align: center; padding: 56px 16px; color: var(--mute); }
.empty__ico { width: 44px; height: 44px; color: #b9bdc2; margin: 0 auto 12px; }
.empty__t { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0; }
.nf { padding-block: 72px; text-align: center; }
.nf h1 { font-size: 34px; font-weight: 800; }
.nf p { color: var(--mute); }
.nf .search { margin-inline: auto; max-width: 520px; }
.rows--results { margin-top: 8px; }
.rows--results .row:first-child a { padding-top: 14px; }

/* ------------------------------------------------------------------ foot */
.foot { background: var(--navy); color: var(--navy-ink); margin-top: 56px; font-size: 14px; }
.is-home .foot { margin-top: 0; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 48px; padding-block: 48px 36px; }
.foot h2 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.brand--foot img { width: 200px; height: auto; }
.foot__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.foot__more .ico { width: 15px; height: 15px; }
.foot__brand p { margin: 14px 0 18px; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; }
.apps a { padding: 7px 14px; border: 1px solid #3f454c; border-radius: var(--r); font-size: 13px; font-weight: 600; color: #fff; direction: ltr; }
.apps a:hover { border-color: #fff; }
.apps--light a { color: var(--ink); border-color: var(--line-2); }
.apps--light a:hover { border-color: var(--ink); }
.foot__secs { columns: 2; column-gap: 24px; }
.foot__secs li { padding-block: 4px; }
.foot a:hover { color: #fff; }
.foot__contact { display: grid; gap: 8px; }
.foot__contact a { display: inline-flex; align-items: center; gap: 8px; }
.foot__contact .ico { width: 16px; height: 16px; color: #8d939a; }
.foot__base { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 12.5px; color: #9aa0a6; }
.foot__base span { margin-inline-end: auto; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .top__side { grid-column: 1 / -1; border: 0; padding: 0; }
  .rows--side { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .rows--side .row:nth-child(2) a { padding-top: 0; }
  .grid4, .grid--3, .obits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artwrap { grid-template-columns: minmax(0, 1fr); }
  .artside { position: static; }
  .rail--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .secnav__search { display: grid !important; place-items: center; padding: 10px !important; }
  .secnav__search .ico { width: 19px; height: 19px; }
  .secnav a { padding: 12px 10px 10px; font-size: 14px; }
  .ticker__h { padding: 0 10px; font-size: 12.5px; }
  .ticker__list a { max-width: 78vw; padding: 12px 14px; }
  .top { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 16px 24px; }
  .top__lead { margin-inline: calc(var(--gut) * -1); }
  .top__lead .story__body { padding-inline: var(--gut); }
  .top__lead .ph { border-radius: 0; }
  .top__sec { gap: 0; }
  .top__sec .story a { display: flex; gap: 14px; align-items: flex-start; }
  .top__sec .story .ph { width: 116px; flex: none; aspect-ratio: 4 / 3; }
  .top__sec .story__body { padding-top: 0; }
  .top__sec .story + .story { padding-top: 16px; margin-top: 16px; }
  .rows--side { grid-template-columns: minmax(0, 1fr); }
  .rows--side .row:nth-child(2) a { padding-top: 14px; }
  .blk { padding-block: 28px 0; }
  .band { padding-block: 28px; margin-top: 28px; }
  .grid4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid4 .story a { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .band--ads .grid4 .story a { border-color: #ece4d3; }
  .grid4 .story:first-child a { padding-top: 0; }
  .grid4 .story:last-child a { border-bottom: 0; }
  .grid4 .ph { width: 116px; flex: none; aspect-ratio: 4 / 3; }
  .grid4 .story__body { padding-top: 0; }
  .grid4 .story__t { font-size: 15.5px; }
  .grid4 .story__ex { display: none; }
.grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .obits, .obits--page { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .obit__name { font-size: 17.5px; }
  .notices--page ul { grid-template-columns: minmax(0, 1fr); }
  .notices--page .notice:nth-child(2) { padding-top: 16px; }
  .media { flex-basis: 74%; min-width: 0; }
  .art__t--long { font-size: 21px; }
  .rail--grid { grid-template-columns: minmax(0, 1fr); }
  .seclead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sech__t { font-size: 19px; }
  .art__t { font-size: 25px; }
  .art__body { font-size: 19px; line-height: 1.95; }
  .art__fig { margin-inline: calc(var(--gut) * -1); }
  .art__fig img { border-radius: 0; }
  .sponsors { padding: 14px; margin-inline: calc(var(--gut) * -1); border-inline: 0; }
  .sponsors ul { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ct a { grid-template-columns: 22px 1fr; }
  .ct__v { grid-column: 2; text-align: start; margin-top: -8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================================================= obituaries — timeline
   The red withdraws here: ink, greys and one hairline rule carry the page. */
.is-obits ::selection { background: var(--ink); color: #fff; }
.is-obits :focus-visible { outline-color: var(--ink); }
.is-obits .secnav a[aria-current="page"] { color: var(--ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: #000; border-color: #000; }

.obx { padding-block: 28px 56px; }
.obx__head { padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 22px; }
.obx__head h1 { font-family: var(--read); font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.3; }
.obx__head p { margin: 6px 0 0; color: var(--mute); font-size: 14.5px; }

.obx__tools { display: grid; gap: 14px; margin-bottom: 18px; }
.obx__f { display: flex; max-width: 560px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.obx__f:focus-within { border-color: var(--ink); }
.obx__f input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 14px; font-size: 16px; outline: none; caret-color: var(--ink); }
.obx__f .btn { border-radius: var(--r) 0 0 var(--r); margin: -1px; }
.obx__towns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); }
.obx__towns > span { font-weight: 600; margin-inline-end: 4px; }
.obx__towns .chip small { color: var(--mute); font-weight: 500; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.obx__towns .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.obx__towns .chip.is-on small { color: #c9ccd0; }
.obx__clear { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; justify-self: start; }
.obx__clear .ico { width: 14px; height: 14px; }
.obx__crawl { font-size: 13px; color: var(--mute); background: var(--bg-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: var(--r); margin: 0 0 20px; }

/* active condolence gatherings */
.majalis { margin: 8px 0 36px; }
.majalis h2 { font-size: 20px; font-weight: 800; }
.majalis__sub { margin: 2px 0 14px; color: var(--mute); font-size: 13.5px; }
.majalis__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.majlis { background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.majlis__n { font-family: var(--read); font-size: 19px; font-weight: 700; line-height: 1.55; }
.majlis__n:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.majlis__w { margin: 0; color: var(--mute); font-size: 13px; }
.majlis .obl { margin-top: 6px; }
.majlis .obon { margin-top: auto; padding-top: 10px; }

/* gathering rows (shared by timeline, strip and article) */
.obl { margin: 8px 0 0; display: grid; gap: 6px; }
.obl__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.75; }
.obl dt { color: var(--mute); font-weight: 600; }
.obl dd { margin: 0; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.obl__map { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; white-space: nowrap; }
.obl__map:hover { border-bottom-color: var(--ink); }
.obl__map .ico { width: 13px; height: 13px; }
.obon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.obon__later { font-size: 12.5px; color: var(--mute); }

/* layout: timeline + month rail */
.obx__grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.obx__side { position: sticky; top: 72px; display: grid; gap: 24px; }
.obx__months h2, .obx__send h2 { font-size: 14px; font-weight: 800; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.obx__months ol { max-height: 52vh; overflow: auto; }
.obx__months a { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.obx__months a:hover { color: var(--ink); }
.obx__months small { color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; }
.obx__send p { font-size: 13px; color: var(--mute); margin: 4px 0 10px; }

.tlm { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.tlm + .tlm { margin-top: 40px; }
.tlm__h { font-size: 13px; font-weight: 800; color: var(--mute); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.tld__h { display: flex; align-items: baseline; gap: 10px; padding: 18px 0 8px; font-size: 16px; position: sticky; top: 52px; background: var(--bg); z-index: 1; }
.tld__h strong { font-weight: 800; }
.tld__h span { color: var(--mute); font-size: 13.5px; font-weight: 500; }
.tld__h em { font-style: normal; margin-inline-start: auto; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* the rail sits on the inline-start (right) edge; times hang off it */
.tl { position: relative; padding-inline-start: 86px; }
.tl::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 70px; width: 1px; background: var(--line-2); }
.tle { position: relative; padding: 12px 0 18px; border-bottom: 1px solid var(--line); }
.tle:last-child { border-bottom: 0; }
.tle::before { content: ""; position: absolute; inset-inline-start: -19px; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.tle__t { position: absolute; inset-inline-start: -86px; top: 16px; width: 58px; text-align: end; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tle__n { font-family: var(--read); font-size: 21px; font-weight: 700; line-height: 1.55; }
.tle__n a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.tle__hon, .obc__hon, .majlis__n .tle__hon { font-family: var(--ui); font-size: .62em; font-weight: 600; color: var(--mute); margin-inline-end: .45em; vertical-align: .12em; }
.tle__facts { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.tle__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.tle__more:hover { color: var(--ink); }
.tle__more .ico { width: 14px; height: 14px; }

/* obituary article card */
.obc { border: 1px solid var(--line); border-top: 2px solid var(--ink); background: var(--bg-2); padding: 28px clamp(18px, 4vw, 40px) 24px; margin: 8px 0 28px; text-align: center; }
.obc__name { font-family: var(--read); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.5; margin: 0; }
.obc__mercy { margin: 4px 0 0; color: var(--mute); font-family: var(--read); font-size: 17px; }
.obc__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.obc__facts dt { font-size: 12px; color: var(--mute); font-weight: 600; }
.obc__facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.obc__sec { text-align: start; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.obc__sec h2, .obc__fam summary { font-size: 15px; font-weight: 800; }
.obc__sec .obl__row { font-size: 15px; grid-template-columns: 110px minmax(0, 1fr); }
.obc__sec .obon { margin-top: 16px; }
.obc__fam { text-align: start; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.obc__fam summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.obc__fam summary::-webkit-details-marker { display: none; }
.obc__fam summary::after { content: "+"; margin-inline-start: auto; font-weight: 400; color: var(--mute); font-size: 18px; }
.obc__fam[open] summary::after { content: "−"; }
.obc__fam dl { margin: 12px 0 0; display: grid; gap: 10px; }
.obc__fam dt { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.obc__fam dd { margin: 2px 0 0; font-family: var(--read); font-size: 16.5px; line-height: 1.8; }
.art__orig { font-size: 13px; font-weight: 700; color: var(--mute); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }

@media (max-width: 1100px) {
  .majalis__l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obx__grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
}
@media (max-width: 760px) {
  .obx { padding-top: 18px; }
  .obx__f { max-width: none; }
  .obx__towns { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .obx__towns .chip { flex: none; }
  .majalis__l { grid-template-columns: minmax(0, 1fr); }
  .obx__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .obx__side { position: static; order: -1; }
  .obx__months { margin-bottom: 8px; }
  .obx__months h2, .obx__send { display: none; }
  .obx__months ol { display: flex; gap: 8px; overflow-x: auto; max-height: none; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .obx__months a { flex: none; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 34px; }
  .tld__h { top: 0; }
  .tl { padding-inline-start: 22px; }
  .tl::before { inset-inline-start: 5px; }
  .tle::before { inset-inline-start: -21px; }
  .tle__t { position: static; display: block; width: auto; text-align: start; margin-bottom: 2px; }
  .tle__n { font-size: 19.5px; }
  .obl__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .obc__sec .obl__row { grid-template-columns: minmax(0, 1fr); }
  .obc__facts { gap: 10px 22px; }
}
.obx__tools { grid-template-columns: minmax(0, 1fr); }
.obx__towns { min-width: 0; }
.tle__b { max-width: 72ch; }
@media (max-width: 760px) {
  .majalis__l { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 8px; scrollbar-width: thin; }
  .majlis { flex: 0 0 86%; scroll-snap-align: start; }
}
.is-obit .tag { color: var(--ink-2); }

/* the notice's own photo in the register */
.tle { display: flex; gap: 18px; align-items: flex-start; }
.tle__b { flex: 1; min-width: 0; }
.tle .ophoto { order: 2; margin-top: 4px; }
.ophoto { display: block; flex: none; width: 100px; aspect-ratio: 4 / 5; background: var(--bg-3); overflow: hidden; border-radius: 2px; }
.ophoto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ophoto--v { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 4px; }
.art__fig--obit img { max-height: 540px; width: auto; max-width: 100%; margin-inline: auto; display: block; object-fit: contain; }
@media (max-width: 640px) { .ophoto { width: 76px; } .ophoto--v { width: 100%; } .art__fig--obit { margin-inline: 0; } }

/* collapsed months: summary is the month heading; entries load when opened */
details.mfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6em; }
details.mfold > summary::-webkit-details-marker { display: none; }
details.mfold > summary .fold-ico { margin-inline-start: auto; width: 20px; height: 20px; flex: none; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
details.mfold[open] > summary .fold-ico { transform: rotate(-90deg); }
details.mfold > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
details.mfold:not([open]) > summary { margin-bottom: 0; }
.fold-msg { padding: 18px 0; opacity: .75; }
.fold-retry { font: inherit; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
@media (prefers-reduced-motion: reduce) { details.mfold > summary .fold-ico { transition: none; } }
/* swipe rows must be as wide as the screen, never as wide as their chips */
.obx, .obx__tools, .obx__side, .obx__months, .obx__grid > * { min-width: 0; max-width: 100%; }
@media (max-width: 760px) { .obx__towns, .obx__months ol { max-width: 100vw; } }

/* photos inside the post body, kept where the paper placed them */
.inphoto { margin: 24px 0; }
.inphoto a { display: block; }
.inphoto img { display: block; width: auto; max-width: 100%; max-height: 80vh; margin-inline: auto; height: auto; }
.inphoto img { border-radius: 2px; background: var(--bg-3); }

/* section pages: numbered pages, newest first */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 40px auto 8px; max-width: 100%; }
.pager ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pager a, .pager__step, .pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.pager__gap { min-width: 20px; padding: 0; opacity: .6; }
.pager__step[aria-disabled="true"] { opacity: .4; }
.pager__info { flex-basis: 100%; text-align: center; margin: 4px 0 0; font-size: .85rem; opacity: .75; }
.pager a, .pager__step { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 4px; }
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) { .pager ol { order: -1; flex-basis: 100%; justify-content: center; } }


/* ---------------------------------------------------- sources: footer + about */
.fsrcs { display: grid; gap: 18px; }
.fsrc { display: grid; gap: 6px; }
.fsrc__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; color: #fff; flex-wrap: wrap; }
.fsrc__name i { width: 10px; height: 10px; border-radius: 50%; background: var(--src); flex: none; }
.fsrc__name small { font-weight: 500; font-size: 12px; color: var(--navy-ink); }
.fsrc p { margin: 0; font-size: 13px; }
.fsrc__links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.fsrc__links a { display: inline-flex; align-items: center; gap: 5px; color: var(--navy-ink); }
.fsrc__links a:hover { color: #fff; }
.fsrc__links .ico { width: 13px; height: 13px; }
.fsrcs--about { margin: 8px 0 24px; gap: 14px; }
.fsrcs--about .fsrc { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.fsrcs--about .fsrc__name, .fsrcs--about .fsrc__links a { color: var(--ink); }
.fsrcs--about .fsrc__name small { color: var(--mute); }
.fsrcs--about .fsrc p { font-size: 15px; color: var(--ink-2); }
.fsrcs--about .fsrc__links a:hover { color: var(--accent-ink); }
.about__logo { width: 360px; max-width: 100%; height: auto; margin: 8px 0 20px; }

/* ----------------------------------------------------- article source credit */
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--src) 12%, #fff); border: 1px solid color-mix(in srgb, var(--src) 40%, #fff); font-size: 14px; }
.credit i { width: 10px; height: 10px; border-radius: 50%; background: var(--src); flex: none; }
.credit a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--navy); margin-inline-start: auto; text-decoration: underline; text-underline-offset: 4px; }
.credit a .ico { width: 13px; height: 13px; }
.credit--end { align-items: flex-start; margin: 24px 0 0; padding: 16px 18px; }
.credit--end i { margin-top: 8px; }
.credit--end p { margin: 0; line-height: 1.8; }
.credit--end p + p { font-size: 13px; color: var(--ink-2); }
.credit--end a { margin: 0; }
.tle__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; }
.tle__foot .tle__more { margin-top: 0; }
.majlis__src { padding-top: 8px; }
.obx__srcs { display: grid; gap: 6px; }
.obx__srcs a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.obx__srcs a:hover { color: var(--accent-ink); }
.obx__srcs i { width: 8px; height: 8px; border-radius: 50%; background: var(--src); }
.ticker__src { color: var(--mute); font-size: 11.5px; font-weight: 600; padding-inline-start: 4px; }
.ph--none img { filter: grayscale(1); opacity: .18; border-radius: 22%; }

@media (max-width: 1100px) {
  .mast__date { display: none; }
}
@media (max-width: 760px) {
  .mast__in { padding-block: 10px; gap: 12px; }
  .brand img { width: 168px; }
  .mast .search { display: none; }
  .pick__btn { padding: 0 12px; min-height: 38px; }
  .pick__v { display: none; }
  .credit a { margin-inline-start: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

/* text-only stories: a post with no photo keeps its weight without an empty frame */
.story--text a { border-top: 3px solid var(--line); padding-top: 4px; }
.story--text a:hover { border-top-color: var(--accent); }
.story--text .story__t { font-size: 17px; }
@media (max-width: 760px) {
  .grid4 .story--text a { border-top: 0; }
}

/* ------------------------------------------------------- app + notifications («التنبيهات») */
.appm { position: relative; flex: none; }
.appm__btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s; }
.appm__btn::-webkit-details-marker { display: none; }
.appm__btn .ico { width: 18px; height: 18px; }
.appm__btn:hover, .appm[open] .appm__btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.appm.is-on .appm__btn .ico { color: var(--amber); }
.appm__panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 40; width: min(360px, calc(100vw - 32px)); max-height: min(78vh, 640px); overflow: auto; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 6px 16px; box-shadow: 0 2px 6px rgba(12,36,62,.12), 0 18px 40px -12px rgba(12,36,62,.35); }
.appm__sec { padding-block: 14px; display: grid; gap: 10px; }
.appm__sec + .appm__sec { border-top: 1px solid var(--line); }
.appm__sec h2 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; }
.appm__sec h2 .ico { width: 18px; height: 18px; color: var(--accent-ink); }
.appm__t { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.appm__ios { margin: 0; padding-inline-start: 20px; list-style: decimal; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.appm__ios .ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--navy); }
.appm__topics { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.appm__topics legend { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.appm__o { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13.5px; min-height: 40px; }
.appm__o:has(input:checked) { border-color: var(--navy); background: #f6f8fb; }
.appm__o input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); flex: none; }
.appm__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.appm .btn { justify-self: start; }
.appm .btn[disabled] { opacity: .5; cursor: not-allowed; }
.appm__msg { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 1.2em; }
.appm__msg.is-err { color: var(--accent-ink); }
.appm__msg:empty { display: none; }
.nf__ico { width: 44px; height: 44px; color: var(--mute); margin-inline: auto; margin-bottom: 12px; }
@media (max-width: 760px) {
  .appm__btn { padding: 0; width: 38px; min-height: 38px; justify-content: center; }
  .appm__l { display: none; }
}
/* header. Desktop: only the section bar sticks (the wrapper is transparent to layout).
   Phone: masthead + sections stick together as one compact navy bar, so iOS Safari
   tints its status/edge area navy instead of a grey blur; scrolling down slides the
   masthead away (sticky "top", never a transform — that would trap the fixed sheets). */
.hdr { display: contents; }
html { background: var(--navy); }
@media (max-width: 760px) {
  .hdr { display: block; position: sticky; top: var(--safe, 0px); z-index: 30; transition: top .28s var(--ease); }
  .hdr.is-up { top: calc(var(--safe, 0px) - var(--mast-h, 0px)); }
  .hdr .secnav { position: static; }
  .mast__in { padding-block: 8px; min-height: 56px; }
  .brand img { width: 132px; }
  .pick__btn, .appm__btn { min-height: 40px; }
  .secnav { box-shadow: 0 1px 0 rgba(12,36,62,.06); }
  html { scroll-padding-top: 116px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .hdr { transition: none; } }
/* installed app: content runs under the status bar, so a fixed navy strip fills it
   and everything sticky parks just below it */
@media (display-mode: standalone) {
  :root { --safe: env(safe-area-inset-top); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top); background: var(--navy); z-index: 35; }
  .secnav { top: env(safe-area-inset-top); }
  body { padding-top: env(safe-area-inset-top); }
}
.appm [hidden] { display: none !important; }

/* «التنبيهات» — sheet header (both sizes) and the phone bottom sheet */
.appm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 6px; }
.appm__head h2 { font-size: 16px; font-weight: 800; }
.appm__x { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--bg-2, #f3f4f6); color: var(--ink); cursor: pointer; }
.appm__x .ico { width: 18px; height: 18px; }
.appm__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.appm__o input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 761px) { .appm__head { display: none; } }
@media (max-width: 760px) {
  .appm[open]::before { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(12, 36, 62, .5); animation: appm-fade .2s ease-out; }
  .appm__panel {
    position: fixed; inset-inline: 0; bottom: 0; top: auto; z-index: 60; width: 100%; max-width: none;
    max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0;
    padding: 0 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(12, 36, 62, .25);
    animation: appm-up .32s cubic-bezier(.16, 1, .3, 1);
  }
  .appm__head { position: sticky; top: 0; z-index: 1; background: #fff; padding: 22px 0 10px; border-bottom: 1px solid var(--line); }
  .appm__head::before { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2, #d6dae0); transform: translateX(50%); }
  .appm__sec { padding-block: 18px; gap: 12px; }
  .appm__sec h2 { font-size: 17px; }
  .appm__t, .appm__ios { font-size: 15px; }
  .appm__topics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .appm__topics legend { font-size: 14px; margin-bottom: 8px; }
  .appm__o { min-height: 48px; padding: 10px 12px; font-size: 15px; border-radius: 12px; }
  .appm__o input { width: 20px; height: 20px; }
  .appm__acts { display: grid; gap: 8px; }
  .appm .btn { justify-self: stretch; justify-content: center; min-height: 48px; font-size: 15px; }
  .appm__msg { font-size: 14px; }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
}
@keyframes appm-up { from { transform: translateY(100%); } }
@keyframes appm-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .appm__panel, .appm[open]::before { animation: none; } }

/* pull to refresh — installed app only (see app.js) */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 60; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(12,36,62,.22);
  transform: translate(-50%, -56px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s; }
.ptr.is-on { transition: none; }
.ptr.is-busy { transition: transform .2s var(--ease); }
.ptr svg { width: 22px; height: 22px; }
.ptr.is-ready { color: var(--accent-ink); }
.ptr.is-busy svg { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr, .ptr.is-busy { transition: none; } .ptr.is-busy svg { animation-duration: 1.6s; } }

/* ------------------------------------------------------------- search */
.search--big { position: relative; align-items: stretch; }
.search--big .btn { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding-inline: 20px; white-space: nowrap; }
.search--big .btn .ico { width: 18px; height: 18px; }
.search--big:focus-within { box-shadow: 0 0 0 3px rgba(255,122,89,.18); }
.search.has-sugg { position: relative; }
.sx { margin-top: 26px; }
.sx__lead { margin-top: 0; }
.sx__h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); }
.sx__h .ico { width: 17px; height: 17px; color: var(--accent-ink); }
.sx .chips { margin-top: 10px; }
.sx__clear { margin-inline-start: auto; border: 0; background: none; color: var(--mute); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.sx__clear:hover { color: var(--accent-ink); }
.chip--plain .ico { display: none; }
.chip--x { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--x .ico { color: #fff; width: 12px; height: 12px; }
.chip--x:hover { background: var(--navy-2); color: #fff; }
.sx__act { margin: 0; }
.sfilt { display: flex; gap: 8px; margin: -8px 0 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sfilt::-webkit-scrollbar { display: none; }
.sfilt__f { position: relative; flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; min-height: 40px; }
.sfilt__f span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sfilt__f select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233a3f45' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 16px 8px 34px; cursor: pointer; border-radius: 999px; }
.sfilt__f:has(select:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sfilt__f:has(option:checked:not([value=""])) { border-color: var(--navy); background: #f6f8fb; }
.sres__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sres__n { margin: 0; color: var(--mute); font-size: 14px; }
.sres__n strong { color: var(--ink); font-size: 16px; }
.sres__approx { margin: 12px 0 0; padding: 10px 14px; background: var(--bg-2); border-radius: var(--r); font-size: 13.5px; color: var(--ink-2); }
.sres { margin-top: 4px; }
.sres__i a { display: flex; gap: 16px; align-items: flex-start; padding-block: 16px; border-bottom: 1px solid var(--line); }
.sres__i .ph { width: 132px; flex: none; aspect-ratio: 4 / 3; }
.sres__b { display: grid; gap: 6px; min-width: 0; }
.sres__t { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--ink); transition: color .15s; }
.sres__i a:hover .sres__t { color: var(--accent-ink); }
.sres__s { font-size: 14px; line-height: 1.8; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sres mark, .sugg mark { background: #ffe3d8; color: inherit; border-radius: 3px; box-shadow: 0 0 0 2px #ffe3d8; }
.sres .tag { justify-self: start; }

.sugg { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 45; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 6px rgba(12,36,62,.10), 0 18px 40px -14px rgba(12,36,62,.35); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; text-align: start; }
.mast .sugg { width: min(440px, 92vw); inset-inline: auto 0; }
.sugg__o { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.sugg__o:hover, .sugg__o.is-on { background: var(--bg-2); }
.sugg__t { font-size: 14.5px; font-weight: 700; line-height: 1.55; }
.sugg__m { font-size: 12px; color: var(--mute); font-weight: 600; }
.sugg__o--chip { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.sugg__k { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-t, #fff0eb); border-radius: 999px; padding: 2px 8px; }
.sugg__all { color: var(--accent-ink); font-weight: 700; font-size: 13.5px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
@media (max-width: 760px) {
  .search--big .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .search--big .btn { padding-inline: 16px; }
  .sres__i .ph { width: 96px; }
  .sres__t { font-size: 15.5px; }
  .sres__s { font-size: 13.5px; }
  .sfilt { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
}

/* touch screens: 16px+ text in every field, so the page never zooms when one is tapped */
@media (max-width: 760px), (pointer: coarse) {
  input, select, textarea { font-size: max(16px, 1em) !important; }
}

/* ---------------------------------------------------------------- one story, several sources */
.also { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--mute); font-size: 12px; }
.also > span:first-child { font-weight: 500; }
.cover { margin: 28px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-inline-start: 4px solid var(--navy); border-radius: 10px; background: color-mix(in srgb, var(--navy) 4%, transparent); }
.cover h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 17px; }
.cover h2 .ico { width: 18px; height: 18px; }
.cover h2 small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.cover ul { list-style: none; margin: 0; padding: 0; }
.cover li + li { border-top: 1px solid var(--line); }
.cover a { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; text-decoration: none; color: inherit; }
.cover__t { font-weight: 700; line-height: 1.6; }
.cover a:hover .cover__t { color: var(--accent-ink); }
