/* =====================================================================
   الإرسال — the documentary site
   The client's own language (white ground, logo-blue headings, the logo's
   two teeth as the section mark, featured split, card grid, filters) built
   on the logo's measured system: blue #21409A, red #ED1B24, one cut 10.4°.
   Frames are plain rectangles in strict grids, like an editor's contact
   sheet; the only red on a page is the editor's pick.
   ===================================================================== */

:root {
  --blue: #21409A;
  --blue-deep: #182F74;
  --blue-tint: #EDF0F8;
  --red: #ED1B24;            /* marks and the pick only */
  --red-ink: #C8161E;        /* red as small text on white (5.9:1) */
  --ground: #FFFFFF;
  --band: #F3F5F9;
  --band-2: #E9EDF4;
  --rule: #E1E5EE;
  --rule-strong: #C6CEDC;
  --ink: #0F1428;
  --text: #2A3042;
  --muted: #5A6275;
  --tick: #9AA4B8;
  --control: #7A8599;          /* field and control borders: 3.6:1 on white */
  --navy: #0B1433;
  --on-navy: #E6EBF7;

  --cut: 10.4deg;
  --cut-tan: .1836;

  --f-display: "Changa", "Readex Pro", system-ui, sans-serif;
  --f-text: "Readex Pro", "Changa", system-ui, sans-serif;
  --fs-hero: clamp(1.85rem, 1.2rem + 2.1vw, 3rem);
  --fs-h2: clamp(1.4rem, 1.15rem + .8vw, 1.9rem);
  --fs-read: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-meta: .875rem;
  --fs-micro: .8125rem;

  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --hd: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  --devlo-theme-font: var(--f-text);
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--devlo-font, var(--f-text)); font-size: var(--fs-body); line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
html { scrollbar-color: var(--rule-strong) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border: 3px solid var(--ground); }
input::placeholder { color: var(--muted); opacity: 1; }
input { caret-color: var(--blue); }
time, .num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: var(--blue); color: #fff; padding: 10px 16px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
h1, h2, h3 { font-family: var(--devlo-font, var(--f-display)); color: var(--ink); }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.fi { width: 18px; height: 18px; flex: none; fill: currentColor; }
/* the section mark: the logo's two teeth, exactly */
.mk { height: .7em; width: .78em; flex: none; overflow: visible; }

/* ---------- logo ---------- */
.ersal-mark { --logo-word: var(--blue); --logo-red: var(--red); --logo-grad-a: #C0304C; --logo-grad-b: #2F4496; display: block; height: auto; }
.ersal-mark .m-word { fill: var(--logo-word); }
.ersal-mark .m-latin, .ersal-mark .m-bar-1 { fill: var(--logo-red); }
.ersal-mark .m-bar-2 { fill: url(#ersal-handover); }
.ersal-mark .m-bar { transform-box: fill-box; transform-origin: 0 100%; }

/* ---------- buttons and links ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none;
  min-height: var(--h); padding-inline: 20px calc(20px + var(--h) * var(--cut-tan));
  font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  background: var(--blue); color: #fff;
  clip-path: polygon(calc(var(--h) * var(--cut-tan)) 0, 100% 0, 100% 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform 160ms var(--ease-out);
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { clip-path: none; }
.btn .fi { width: 14px; height: 14px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--control); clip-path: none; padding-inline: 18px; }
.btn.line:hover { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn.line .fi { width: 18px; height: 18px; }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--blue); }
.go .ic { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s var(--ease-out); }
.go:hover .ic { transform: translateX(-4px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--ink); }
.icon-btn:hover { color: var(--blue); }
.act-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 1px solid var(--rule); }
.hd-in { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); height: var(--hd); }
.hd-logo { flex: none; }
.hd-logo .ersal-mark { width: 148px; }
.hd-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.hd-nav a { position: relative; display: flex; align-items: center; height: var(--hd); font-weight: 500; color: var(--ink); white-space: nowrap; }
.hd-nav a:hover { color: var(--blue); }
.hd-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
/* the current section sits on the logo's red tooth */
.hd-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--red);
}
.hd-tools { display: flex; align-items: center; margin-inline-start: auto; }
.hd-menu { display: none; }
.hd-menu .i-close { display: none; }

/* ---------- breadcrumb band + page head ---------- */
.crumbs-band { background: var(--band); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; min-height: 48px; font-size: var(--fs-meta); color: var(--muted); }
.crumbs > * { display: inline-flex; align-items: center; gap: 6px; }
.crumbs > * + *::before { content: "/"; margin-inline: 10px; color: var(--tick); }
.crumbs .ic { width: 17px; height: 17px; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.pg-head { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 2.5vw, 28px); }
.pg-h { display: flex; align-items: center; gap: .32em; font-size: var(--fs-hero); font-weight: 800; line-height: 1.3; color: var(--blue); }
.pg-sub { margin-top: 6px; max-width: 62ch; font-size: 1.125rem; line-height: 1.8; color: var(--muted); text-wrap: pretty; }
.pg-head + .sec { padding-top: 8px; }

/* ---------- section head ---------- */
.sec { padding-top: clamp(48px, 6vw, 88px); }
.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 26px; }
.sec-head h2 { display: flex; align-items: center; gap: .32em; font-size: var(--fs-h2); font-weight: 800; line-height: 1.4; color: var(--blue); }
.sec-note { color: var(--muted); font-size: 1rem; }
.sec-head .more { margin-inline-start: auto; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: .9375rem; color: var(--blue); }
.more .ic { width: 17px; height: 17px; stroke-width: 2; }
.band-sec { margin-top: clamp(48px, 6vw, 88px); padding-block: clamp(48px, 6vw, 80px); background: var(--band); }
.band-sec .sec-head { margin-bottom: 30px; }

/* ---------- meta line: items separated by a slanted hairline ---------- */
.meta, .card-meta, .reel-meta, .w-meta { --sep: 10px; display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px; font-family: var(--devlo-font, var(--f-display)); font-weight: 600; font-size: var(--fs-meta); line-height: 1.6; color: var(--muted);
  margin-inline-start: calc(-2 * var(--sep) - 1px); clip-path: inset(-4px calc(2 * var(--sep) + 1px) -4px -4px); }
.meta > *, .card-meta > *, .reel-meta > *, .w-meta > * { white-space: nowrap; }
.meta > *::before, .card-meta > *::before, .reel-meta > *::before, .w-meta > *::before {
  content: ""; display: inline-block; width: 1px; height: .9em; margin-inline: var(--sep); background: var(--rule-strong); vertical-align: -.12em; transform: skewX(calc(var(--cut) * -1));
}
.cat { color: var(--blue); font-weight: 700; }
a.cat { display: inline-flex; align-items: center; min-height: 28px; }
a.cat:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }
.on-tg { display: inline-flex; align-items: center; gap: 4px; }
.on-tg .fi { width: 13px; height: 13px; }

/* ---------- media ---------- */
.ph { position: relative; display: block; overflow: hidden; background: var(--band-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: opacity .3s var(--ease-out), transform .8s var(--ease-out); }
.ph img.img-wait { opacity: 0; }
@media (hover: hover) and (pointer: fine) { a:hover .ph img { transform: scale(1.03); } }
.r34 { aspect-ratio: 3 / 4; } .r43 { aspect-ratio: 4 / 3; } .r45 { aspect-ratio: 4 / 5; } .r1610 { aspect-ratio: 16 / 10; } .r169 { aspect-ratio: 16 / 9; } .r11 { aspect-ratio: 1; }
.badge {
  --h: 28px; position: absolute; inset-inline-start: 8px; inset-block-end: 8px; display: inline-flex; align-items: center; gap: 6px;
  height: var(--h); padding-inline: calc(var(--h) * var(--cut-tan) + 8px);
  font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: var(--fs-micro); line-height: 1; color: #fff;
  background: rgba(11, 20, 51, .8); clip-path: polygon(calc(var(--h) * var(--cut-tan)) 0, 100% 0, calc(100% - var(--h) * var(--cut-tan)) 100%, 0 100%);
}
.badge .fi { width: 11px; height: 11px; }
.badge .ic { width: 15px; height: 15px; stroke-width: 2; }
.badge.tg { background: rgba(11, 20, 51, .72); }
.badge.tg .ic { width: 13px; height: 13px; stroke-width: 2.2; }
/* the editor's pick on a featured story: the same red slanted outline as the contact sheet */
.pick-mark { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pick-mark polygon { fill: none; stroke: var(--red); stroke-width: 6; vector-effect: non-scaling-stroke; }
.w-ph .badge { display: none; }

/* ---------- home lead: the story beside its contact sheet ---------- */
.lead { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 52px) 0; }
.lead-text { display: flex; flex-direction: column; gap: 18px; }
.lead-h { font-size: var(--fs-hero); font-weight: 800; line-height: 1.35; color: var(--blue); text-wrap: balance; }
.lead-h a:hover { color: var(--blue-deep); }
.lead-dek { max-width: 46ch; font-size: var(--fs-read); line-height: 1.9; color: var(--text); }
.lead-act { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 6px; }

.sheet { position: relative; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sheet-wide .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 10px; }
.fr a { display: block; }
.fr-cap { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-family: var(--devlo-font, var(--f-display)); font-size: .8125rem; font-weight: 600; line-height: 1.5; color: var(--muted); min-width: 0; }
.fr-cap time { color: var(--ink); font-weight: 700; }
.fr-place { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fr a:hover .fr-cap time { color: var(--blue); }
/* the editor's pick: one red slanted outline, measured from the logo's cut */
.fr.is-pick .ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--red); }
.js .sheet .fr.is-pick .ph::after { display: none; }
.sheet-pick { position: absolute; top: 0; left: 0; display: none; pointer-events: none; z-index: 2;
  width: var(--pw, 0); height: var(--phh, 0); transform: translate(var(--px, 0), var(--py, 0));
  transition: transform .34s var(--ease-out); }
.js .sheet-pick.on { display: block; }
.sheet-pick svg { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; }
.sheet-pick polygon { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.sheet-cap { position: relative; margin-top: 16px; padding-inline-start: 16px; font-family: var(--devlo-font, var(--f-display)); font-weight: 600; font-size: .9375rem; line-height: 1.6; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sheet-cap::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 3px; height: 1em; background: var(--red); transform: skewX(calc(var(--cut) * -1)); }

/* ---------- featured split ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); grid-template-areas: "text media"; background: var(--band); }
.feat-media { grid-area: media; }
.feat { align-items: center; }
.feat-media .ph { aspect-ratio: 16 / 9; clip-path: polygon(10.33% 0, 100% 0, 100% 100%, 0 100%); }
.feat-text { grid-area: text; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 3.2vw, 48px); }
.feat-h { font-size: clamp(1.55rem, 1.15rem + 1.2vw, 2.25rem); font-weight: 800; line-height: 1.4; color: var(--blue); text-wrap: balance; }
.feat-h a:hover { color: var(--blue-deep); }
.feat-dek { font-size: 1.0625rem; line-height: 1.85; color: var(--text); max-width: 52ch; }
.feat .go { align-self: flex-start; }
.js-feat-wrap { margin-top: 8px; }
.js-list > .sec { padding-top: clamp(24px, 3vw, 40px); }
.js-feat-wrap + .sec { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- cards: no box, no radius, no shadow ---------- */
.cards { display: grid; gap: 40px 28px; }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec .feat + .cards { margin-top: 40px; }
.card a { display: block; }
.card-h { margin-top: 14px; font-family: var(--devlo-font, var(--f-text)); font-size: 1.125rem; font-weight: 600; line-height: 1.6; color: var(--ink); text-wrap: pretty; transition: color .15s ease; }
.card a:hover .card-h { color: var(--blue); }
.card-meta { margin-top: 8px; }

/* ---------- reels ---------- */
.reels-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 20px) / 6); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.reels-row .reel { scroll-snap-align: start; }
.reels.c6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
.reel a { display: block; }
.reel-h { margin-top: 10px; font-family: var(--devlo-font, var(--f-text)); font-size: 1rem; font-weight: 500; line-height: 1.65; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel a:hover .reel-h, .albums a:hover .reel-h { color: var(--blue); }
.reel-meta { margin-top: 6px; font-size: var(--fs-micro); }
.reel-meta time { color: var(--ink); }

/* ---------- slider ---------- */
.slider { position: relative; }
.js-track { scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.js-track::-webkit-scrollbar { display: none; }
.slider.can-drag .js-track { cursor: grab; }
.slider.dragging .js-track { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.slider.dragging .js-track a { pointer-events: none; }
.sl-foot { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.sl-progress { position: relative; flex: 1; height: 14px;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) bottom / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 9px) bottom / 100% 5px no-repeat; }
.sl-progress i { position: absolute; bottom: 0; inset-inline-start: 0; width: var(--w, 30%); height: 3px; background: var(--blue); transform: translateX(var(--tx, 0px)); }
.sl-progress i::after { content: ""; position: absolute; bottom: 0; inset-inline-end: -1px; width: 3px; height: 14px; background: var(--red); transform: skewX(calc(var(--cut) * -1)); transform-origin: bottom; }
.slider.fits .sl-foot { display: none; }
.sl-ctrl { display: flex; gap: 6px; }
.sl-btn { --h: 44px; width: 52px; height: var(--h); display: grid; place-items: center; color: var(--ink); background: var(--band-2);
  clip-path: polygon(calc(var(--h) * var(--cut-tan)) 0, 100% 0, calc(100% - var(--h) * var(--cut-tan)) 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform 160ms var(--ease-out); }
.sl-btn:hover:not(:disabled) { background: var(--blue); color: #fff; }
.sl-btn:active:not(:disabled) { transform: scale(.97); }
.sl-btn:disabled { opacity: .35; cursor: default; }
.sl-btn:focus-visible { clip-path: none; }
.sl-btn .ic { width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- people ---------- */
.people { display: grid; gap: 40px 28px; }
.people.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pp a { display: block; }
.pp-text { margin-top: 16px; }
.pp-q p { font-family: var(--devlo-font, var(--f-display)); font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--ink); text-wrap: balance; }
.pp-line { font-family: var(--devlo-font, var(--f-display)); font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--ink); text-wrap: balance; }
.pp-name { margin-top: 12px; font-size: 1.0625rem; font-weight: 800; color: var(--blue); }
.pp-place { font-size: var(--fs-meta); color: var(--muted); line-height: 1.6; }
.pp a:hover .pp-name { color: var(--blue-deep); }
.src-note { margin-top: 40px; max-width: 70ch; font-size: var(--fs-meta); color: var(--muted); }

/* ---------- dossiers ---------- */
.dossiers { border-top: 1px solid var(--rule); }
.dos a { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.dos-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dos-h { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); font-weight: 800; line-height: 1.45; color: var(--ink); transition: color .15s ease; }
.dos a:hover .dos-h { color: var(--blue); }
.dos-dek { margin-top: 6px; max-width: 64ch; line-height: 1.8; color: var(--text); }
.dos .meta { margin-top: 10px; }

/* ---------- programs ---------- */
.progs { display: grid; gap: 36px 24px; }
.progs.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prog a { display: block; }
.prog-h { margin-top: 14px; font-size: 1.25rem; font-weight: 800; color: var(--blue); }
.prog-desc { margin-top: 4px; font-size: 1rem; line-height: 1.75; color: var(--text); }
.prog .meta { margin-top: 8px; font-size: var(--fs-micro); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 3vw, 48px); padding-block: 32px; border-bottom: 1px solid var(--rule); }
.prow:first-child { border-top: 1px solid var(--rule); }
.prow-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; }
.prow-h { font-size: var(--fs-h2); font-weight: 800; color: var(--blue); line-height: 1.35; }
.prow-desc { margin-top: 6px; line-height: 1.8; }
.prow .meta { margin-top: 8px; }
.eps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: start; }
.ep-t { display: block; margin-top: 8px; font-size: .875rem; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-t time { display: block; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--muted); }
.eps a:hover .ep-t { color: var(--blue); }

/* ---------- albums ---------- */
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.albums.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.albums a { display: block; }

/* ---------- wire (news rows) ---------- */
.wire { border-top: 1px solid var(--rule); }
.w-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.w-t { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--ink); line-height: 1.75; direction: ltr; text-align: end; }
.w-h { display: block; font-weight: 500; line-height: 1.75; color: var(--ink); }
.w-meta { margin-top: 2px; font-size: var(--fs-micro); }
.w-story { display: inline-block; margin-top: 4px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: var(--fs-micro); color: var(--blue); }
.w-ph { width: 64px; }
.pfx { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--blue); white-space: nowrap; }
.pfx::after { content: ""; display: inline-block; width: .16em; height: .95em; margin-inline: .38em .42em; background: currentColor; transform: skewX(calc(var(--cut) * -1)); vertical-align: -.12em; }
.pfx.urgent { color: var(--red-ink); }
.wire.compact .w-ph, .wire.compact .w-meta span:not(:first-child) { display: none; }
.auto-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--fs-meta); color: var(--muted); }
.auto-note .fi { width: 15px; height: 15px; color: var(--blue); }
.split-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-sec .albums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-wrap { max-width: 940px; }
.w-day { margin-top: 32px; }
.w-day-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.w-day-h span { font-size: var(--fs-meta); font-weight: 600; color: var(--muted); }
.w-day .wire { border-top: 2px solid var(--ink); }

/* ---------- filters row (the client's search · tabs · sort) ---------- */
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-bottom: 28px; }
.tools-tight { padding-inline: 0; padding-bottom: 18px; }
.field { display: flex; align-items: center; gap: 10px; flex: 0 1 380px; min-width: 0; height: 48px; padding-inline: 14px; border: 1.5px solid var(--control); background: var(--ground); color: var(--muted); transition: border-color .15s ease, box-shadow .15s ease; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); color: var(--blue); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.field input::-webkit-search-cancel-button { filter: grayscale(1); }
.field.big { flex: 1 1 auto; height: 56px; }
.tabs { display: flex; gap: 2px; }
.tab {
  --h: 44px; height: var(--h); padding-inline: calc(var(--h) * var(--cut-tan) + 12px); white-space: nowrap;
  font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: .9375rem; color: var(--ink);
  clip-path: polygon(calc(var(--h) * var(--cut-tan)) 0, 100% 0, calc(100% - var(--h) * var(--cut-tan)) 100%, 0 100%);
  transition: background-color .15s ease, color .15s ease;
}
.tab:hover { background: var(--band-2); color: var(--blue); }
.tab[aria-pressed="true"], .tab[aria-pressed="true"]:hover { background: var(--blue); color: #fff; }
.tab:focus-visible { clip-path: none; }
.sort { position: relative; margin-inline-start: auto; display: inline-flex; align-items: center; }
.sort select { appearance: none; height: 44px; padding-inline: 16px 40px; border: 1.5px solid var(--control); border-radius: 0; background: var(--ground); font-family: var(--devlo-font, var(--f-display)); font-weight: 600; font-size: .9375rem; color: var(--ink); cursor: pointer; }
.sort select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sort .ic { position: absolute; inset-inline-end: 12px; width: 18px; height: 18px; pointer-events: none; color: var(--muted); }
.list-count { margin-bottom: 18px; font-size: var(--fs-meta); color: var(--muted); }
.empty { padding-block: 48px; text-align: center; color: var(--muted); }

/* ---------- pager ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pager:empty { display: none; }
.pager a, .pager span { --h: 44px; min-width: 48px; height: var(--h); display: inline-grid; place-items: center; padding-inline: 10px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--ink); }
.pager a:hover { color: var(--blue); background: var(--band); }
.pager [aria-current="page"] { background: var(--blue); color: #fff; clip-path: polygon(calc(var(--h) * var(--cut-tan)) 0, 100% 0, calc(100% - var(--h) * var(--cut-tan)) 100%, 0 100%); }
.pager .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.pager .off { opacity: .3; }

/* ---------- story ---------- */
.st-head { max-width: 900px; padding-block: clamp(28px, 4vw, 44px) 24px; }
/* portrait material: the clip or photo stands beside the text, the material line under it */
.st-tall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: "head lead" "body lead" "aside lead"; grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.st-tall .st-lead { align-self: stretch; }
.st-stick { position: sticky; top: calc(var(--hd) + 24px); }
.st-tall .st-head { grid-area: head; }
.st-tall .st-lead { grid-area: lead; margin: clamp(28px, 4vw, 44px) 0 0; }
.st-tall .st-body { grid-area: body; }
.st-tall .st-aside { grid-area: aside; position: static; margin-top: 40px; max-width: 68ch; }
.st-tall .vp-frame { --vh: min(68vh, 680px); }
.st-tall .lead-fig.natural img { width: 100%; max-height: none; }
.st-h { font-size: var(--fs-hero); font-weight: 800; line-height: 1.35; color: var(--blue); text-wrap: balance; }
.st-dek { margin-top: 12px; font-size: 1.25rem; line-height: 1.85; color: var(--text); max-width: 60ch; }
.st-head .meta { margin-top: 16px; }
.st-lead { margin-bottom: clamp(28px, 4vw, 48px); }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.st-aside { position: sticky; top: calc(var(--hd) + 24px); }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.15em; font-size: var(--fs-read); line-height: 2.05; color: var(--text); }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.375rem; font-weight: 800; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.st-q { margin: 6px 0 30px; }
.st-q p { margin: 0 0 6px; font-family: var(--devlo-font, var(--f-display)); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); font-weight: 700; line-height: 1.6; color: var(--ink); text-wrap: balance; }
.st-q footer { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--muted); }
.st-q footer::before { content: ""; width: 3px; height: 1em; background: var(--red); transform: skewX(calc(var(--cut) * -1)); }
.roads { margin: 0 0 1.4em; border-top: 2px solid var(--ink); max-width: 460px; }
.roads li { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--rule); }
.roads b { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; }
.roads [data-s="سالك"] b { color: var(--blue); }
.roads [data-s="حاجز"] b { color: var(--red-ink); }
.roads [data-s="مغلق"] b { color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.side-h { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.side-h + * { margin-top: 10px; }
.side-note { font-size: var(--fs-meta); color: var(--muted); }
* + .side-h { margin-top: 32px; }
.tl li { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.tl time { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--ink); direction: ltr; text-align: end; line-height: 1.7; }
.tl a { font-size: .9375rem; line-height: 1.7; color: var(--ink); }
.tl-k { grid-column: 2; font-family: var(--devlo-font, var(--f-display)); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.tl-day { margin-top: 24px; font-size: 1.0625rem; font-weight: 800; color: var(--muted); }
.side-links a { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--blue); }
.lead-fig figcaption { margin-top: 10px; font-size: var(--fs-meta); color: var(--muted); }
.lead-fig.natural img { width: auto; max-height: min(74vh, 760px); clip-path: polygon(var(--cx) 0, 100% 0, 100% 100%, 0 100%); }
.lead-fig .ph .badge { inset-inline-start: 14px; inset-block-end: 14px; --h: 34px; font-size: .875rem; }

/* share */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); }
.share > span { margin-inline-end: 8px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--ink); }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding-inline: 10px; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--control); transition: color .15s ease, box-shadow .15s ease; }
.share a:hover, .share button:hover { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.share button { font-family: var(--devlo-font, var(--f-display)); font-weight: 600; font-size: .875rem; }
.share .ic { width: 19px; height: 19px; }
.share .is-done { color: var(--blue); }

/* ---------- video player ---------- */
.vp-page { padding-top: clamp(24px, 3vw, 40px); }
.vp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.vp { position: relative; background: var(--navy); }
.vp-frame { --ar: 16 / 9; --arn: 1.7778; --vh: min(72vh, 760px); position: relative; aspect-ratio: var(--ar); max-height: var(--vh); max-width: min(100%, calc(var(--vh) * var(--arn))); margin-inline: auto; background: var(--navy); }
.vp-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--navy); }
.vp-big { --h: 68px; position: absolute; inset: 0; margin: auto; width: 84px; height: var(--h); display: grid; place-items: center; background: var(--blue); color: #fff;
  clip-path: polygon(calc(var(--h) * var(--cut-tan)) 0, 100% 0, calc(100% - var(--h) * var(--cut-tan)) 100%, 0 100%); transition: opacity .2s ease, transform 160ms var(--ease-out), background-color .2s ease; }
.vp-big .fi { width: 26px; height: 26px; }
.vp-big:hover { background: var(--blue-deep); }
.vp-big:active { transform: scale(.97); }
.vp.playing .vp-big { opacity: 0; pointer-events: none; }
.vp-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; color: #fff; }
.vp-btn { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.vp-btn:hover { color: #B7C6FF; }
.vp-btn .fi { width: 18px; height: 18px; }
.vp-btn .ic { width: 22px; height: 22px; }
.vp-btn .spk { fill: currentColor; stroke: none; }
.vp-btn .ic-pause, .vp-btn[aria-pressed="true"] .ic-play { display: none; }
.vp-btn[aria-pressed="true"] .ic-pause { display: block; }
.js-vp-mute .ic-muted, .js-vp-mute[aria-pressed="true"] .ic-sound { display: none; }
.js-vp-mute[aria-pressed="true"] .ic-muted { display: block; }
.vp-time { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: .9375rem; direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp-scale { position: relative; height: 30px; cursor: ew-resize; touch-action: none; }
.vp-ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vp-ticks line { stroke: rgba(255, 255, 255, .35); shape-rendering: crispEdges; }
.vp-ticks line.v { stroke: rgba(255, 255, 255, .8); }
.vp-ticks line.base { stroke: rgba(255, 255, 255, .3); }
.vp-fill { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: var(--p, 0%); background: #8EA6FF; }
.vp-fill::after { content: ""; position: absolute; bottom: 0; inset-inline-end: -1px; width: 3px; height: 20px; background: #FF3B42; transform: skewX(calc(var(--cut) * -1)); transform-origin: bottom; }
.vp-scale:focus-visible, .vp-btn:focus-visible, .vp-big:focus-visible { outline: 2px solid #B7C6FF; outline-offset: 2px; clip-path: none; }
.vp:fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.vp:fullscreen .vp-frame { max-height: none; max-width: none; height: 100%; aspect-ratio: auto; }
.vp-h { font-size: var(--fs-h2); font-weight: 800; line-height: 1.5; color: var(--blue); }
.vp-h .pfx { color: var(--ink); white-space: normal; }
.vp-info .meta { margin-top: 12px; }
.vp-keys { margin-top: 20px; font-size: var(--fs-micro); line-height: 2.1; color: var(--muted); }
.vp-keys kbd { display: inline-block; min-width: 1.9em; padding: 0 .45em; margin-inline: 2px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: .95em; line-height: 1.6; text-align: center; color: var(--ink); background: var(--band-2); box-shadow: inset 0 -2px 0 var(--rule-strong); }

/* ---------- album reel ---------- */
.al-page { padding-top: clamp(24px, 3vw, 40px); }
.al-head { margin-bottom: 24px; }
.al-head .meta { margin-top: 10px; }
.al-reel { --rh: min(68vh, 720px); display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.al-ph { flex: none; height: var(--rh); aspect-ratio: var(--ar); scroll-snap-align: start; background: var(--band-2); clip-path: polygon(var(--cx) 0, 100% 0, 100% 100%, 0 100%); }
.al-ph img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.al-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-top: 12px; }
.al-bar .sl-progress { margin-bottom: 14px; }
.al-n { font-family: var(--devlo-font, var(--f-display)); line-height: 1; color: var(--muted); direction: ltr; white-space: nowrap; }
.al-n b { font-size: var(--fs-h2); font-weight: 800; color: var(--ink); }
.al-n span { font-size: 1.0625rem; font-weight: 700; }
.al-ctrl { display: flex; gap: 6px; }

/* ---------- about, text pages, placeholders ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: 24px; }
.follow li a { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 500; }
.follow .fi { width: 20px; height: 20px; color: var(--blue); }
.follow b { margin-inline-start: auto; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: var(--fs-meta); color: var(--muted); }
.tbd { padding: 12px 16px; color: var(--muted) !important; font-size: 1rem !important; line-height: 1.8 !important; outline: 1.5px dashed var(--rule-strong); outline-offset: -1.5px; }
.prose .tbd { margin-bottom: 1.4em; }
.sec > .tbd, .sec .tbd:last-child { margin-top: 32px; max-width: 72ch; }
.text-page { padding-bottom: 24px; }
.file-sum { margin-top: -12px; color: var(--muted); font-size: 1rem; }

/* ---------- search ---------- */
.search-form { display: flex; gap: 12px; align-items: stretch; max-width: 820px; }
.search-form .btn { --h: 56px; }
.js-search .list-count { margin-top: 24px; }
.results { max-width: 820px; border-top: 1px solid var(--rule); }
.results li a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.results .ph { width: 64px; }
.results .r-t { font-weight: 500; line-height: 1.7; color: var(--ink); }
.results a:hover .r-t { color: var(--blue); }
.results mark { background: var(--blue-tint); color: inherit; box-shadow: inset 0 -2px 0 var(--blue); }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(48px, 8vw, 96px) 0; }
.lost-mark .mk { width: 72px; height: 64px; margin-bottom: 20px; }

/* ---------- footer ---------- */
.ft { margin-top: clamp(64px, 8vw, 112px); background: var(--band); }
.ft-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(24px, 4vw, 64px); padding-block: 36px; }
.ft-brand img { width: 150px; }
.ft-slogan { margin-top: 6px; font-family: var(--devlo-font, var(--f-display)); font-weight: 600; font-size: var(--fs-meta); color: var(--muted); }
.ft-links ul { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
.ft-links li + li::before { content: ""; display: inline-block; width: 1px; height: .9em; margin-inline: 14px; background: var(--rule-strong); vertical-align: -.1em; transform: skewX(calc(var(--cut) * -1)); }
.ft-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--text); }
.ft-links a:hover { color: var(--blue); }
.ft-social { display: flex; align-items: center; gap: 10px; }
.ft-social > span { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: var(--fs-meta); color: var(--ink); }
.ft-social ul { display: flex; }
.ft-social a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.ft-social a:hover { color: var(--blue); }
.ft-bot { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 16px 24px; font-size: var(--fs-micro); color: var(--muted); }
.ft-bot::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); border-top: 1px solid var(--rule); }

/* ---------- loader: the signal is found, then the name flies to its place ---------- */
#ersal-loader { position: fixed; inset: 0; z-index: 200; display: none; pointer-events: none; animation: ld-failsafe 0s linear 4.5s forwards; }
html.js.is-loading #ersal-loader { display: block; }
@keyframes ld-failsafe { to { visibility: hidden; } }
.ld-bg { position: absolute; inset: 0; background: var(--ground); transition: opacity .42s var(--ease-out) .1s; }
.ld-stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; }
.ld-mark { width: min(260px, 58vw); transform-origin: 0 0; }
.ld-mark .ersal-mark { width: 100%; }
.ld-mark .m-word, .ld-mark .m-latin { opacity: .14; transition: opacity .36s var(--ease-out); }
.ld-mark .m-bar { animation: ld-search 1.15s var(--ease-in-out) infinite; }
.ld-mark .m-bar-2 { animation-delay: .16s; }
@keyframes ld-search { 0%, 100% { transform: scaleY(.06); } 40%, 60% { transform: scaleY(1); } }
.ld-slogan { display: flex; align-items: center; gap: 12px; font-family: var(--devlo-font, var(--f-display)); font-weight: 600; font-size: .9375rem; color: var(--muted); opacity: 0; transition: opacity .3s var(--ease-out); }
.ld-slogan::before, .ld-slogan::after { content: ""; width: 24px; height: 1px; background: var(--red); }
#ersal-loader.is-locked .m-bar { animation: ld-lock .38s var(--ease-out) forwards; }
@keyframes ld-lock { from { transform: scaleY(var(--from, .06)); } to { transform: scaleY(1); } }
#ersal-loader.is-locked .m-word, #ersal-loader.is-locked .m-latin, #ersal-loader.is-locked .ld-slogan { opacity: 1; }
#ersal-loader.is-leaving .ld-slogan { opacity: 0; transition-duration: .15s; }
#ersal-loader.is-leaving .ld-bg { opacity: 0; }
html.is-loading .hd-logo .ersal-mark { visibility: hidden; animation: ld-show 0s linear 4.5s forwards; }
@keyframes ld-show { to { visibility: visible; } }
.acquire .m-bar-1 { animation: ersal-rise .55s var(--ease-out) .15s both; }
.acquire .m-bar-2 { animation: ersal-rise .6s var(--ease-out) .32s both; }
@keyframes ersal-rise { from { transform: scaleY(.04); } to { transform: scaleY(1); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .reels.c6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reels-row { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
  .hd-nav ul { gap: 16px; }
  .hd-logo .ersal-mark { width: 128px; }
}
@media (max-width: 1100px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "text"; }
  .split-sec, .st-grid, .vp-grid, .about { grid-template-columns: minmax(0, 1fr); }
  .st-aside { position: static; }
  .people.c4, .progs.c4, .albums.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  :root { --hd: 64px; }
  .hd-logo .ersal-mark { width: 116px; }
  .hd-menu { display: inline-grid; }
  .hd-nav { display: none; position: fixed; inset-inline: 0; top: var(--hd); bottom: 0; overflow-y: auto; background: var(--ground); border-top: 1px solid var(--rule); padding: 8px var(--gutter) 32px; }
  .hd.menu-open .hd-nav { display: block; }
  .hd.menu-open .i-open { display: none; }
  .hd.menu-open .i-close { display: block; }
  .hd-nav ul { flex-direction: column; gap: 0; }
  .hd-nav a { height: 56px; font-size: 1.125rem; border-bottom: 1px solid var(--rule); }
  .hd-nav a[aria-current="page"]::after { inset-inline: auto 0; top: 18px; bottom: auto; width: 4px; height: 20px; clip-path: none; transform: skewX(calc(var(--cut) * -1)); }
  .hd-nav a[aria-current="page"] { padding-inline-start: 16px; }
}
@media (max-width: 860px) {
  .dos a { grid-template-columns: minmax(0, 1fr); }
  .albums, .split-sec .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reels.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reels-row { grid-auto-columns: calc((100% - 2 * 14px) / 2.6); gap: 14px; }
  .ft-in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .ft-links ul { justify-content: flex-start; }
  .ft-links li + li::before { margin-inline: 10px; }
}
@media (max-width: 600px) {
  .meta, .card-meta, .reel-meta, .w-meta { --sep: 7px; }
  .cards.c3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sheet-lead .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sheet-lead .fr:nth-child(n+7) { display: none; }
  .sheet-wide .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
  .fr-place { display: none; }
  .reels.c6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .people.c4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pp a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--rule); }
  .pp-text { margin-top: 0; }
  .pp-q p, .pp-line { font-size: 1.0625rem; }
  .progs.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .prog-h { font-size: 1.125rem; }
  .prow-head { grid-template-columns: 96px minmax(0, 1fr); }
  .eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { gap: 12px; }
  .field { flex: 1 1 100%; }
  .tabs { flex: 1 1 100%; flex-wrap: wrap; row-gap: 6px; }
  .sort { margin-inline-start: 0; }
  .w-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; }
  .w-ph { width: 52px; }
  .vp { margin-inline: calc(var(--gutter) * -1); }
  .vp-bar { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px; }
  .js-vp-full { display: none; }
  .al-stage { margin-inline: calc(var(--gutter) * -1); }
  .al-reel { --rh: min(62vh, 520px); gap: 6px; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .al-ph { max-width: calc(100vw - var(--gutter) * 2); }
  .al-bar { padding-inline: var(--gutter); gap: 12px; }
  .search-form { flex-direction: column; }
  .search-form .btn { align-self: flex-start; }
  .lead-fig.natural img { max-height: 70vh; }
  .ft-bot { flex-direction: column; }
}
@media (max-width: 1100px) {
  .st-tall { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "lead" "body" "aside"; }
  .st-tall .st-lead { margin: 0 0 32px; }
  .st-stick { position: static; }
  .st-tall .lead-fig.natural img { width: auto; max-width: 100%; max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   inner pages, critique round: each index page opens on its strongest
   material, as home and beyond do
   ===================================================================== */
.skip:hover { color: #fff; }
a.inline { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* watch: the most watched clip plays first */
.watch-lead { padding-bottom: 8px; }

/* people: one voice leads */
.pp-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "text media"; gap: clamp(28px, 4vw, 64px); align-items: center; }
.pp-lead-media { grid-area: media; }
.pp-lead-text { grid-area: text; }
.pp-lead-q p { position: relative; padding-inline-start: 22px; font-family: var(--devlo-font, var(--f-display)); font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); font-weight: 800; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.pp-lead-q p::before, blockquote.pp-q p::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 5px; height: 1.1em; background: var(--red); transform: skewX(calc(var(--cut) * -1)); }
blockquote.pp-q p { position: relative; padding-inline-start: 14px; }
blockquote.pp-q p::before { width: 3px; }
.pp-lead-text .pp-name { margin-top: 18px; font-size: 1.125rem; }
.pp-lead-ctx { margin-top: 10px; max-width: 52ch; line-height: 1.85; color: var(--text); }
.people.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* dossiers: the biggest one leads; every dossier shows how it ran over three days */
.dos-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "text media"; gap: clamp(28px, 4vw, 56px); align-items: center; }
.dos-lead-media { grid-area: media; }
.dos-lead-text { grid-area: text; display: flex; flex-direction: column; gap: 14px; }
.dos-mosaic { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 8px; }
.dos-mosaic li:first-child { grid-row: span 2; }
.dos-mosaic li:first-child .ph { height: 100%; aspect-ratio: auto; }
.days3 { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; align-items: end; margin-top: 4px; }
.days3 li { display: grid; grid-template-rows: 46px auto auto; justify-items: center; gap: 2px; }
.days3 i { align-self: end; display: block; width: 18px; height: max(3px, calc(46px * var(--v) / 100)); background: var(--blue); transform: skewX(calc(var(--cut) * -1)); transform-origin: bottom; }
.days3 b { font-family: var(--devlo-font, var(--f-display)); font-weight: 800; font-size: .9375rem; color: var(--ink); line-height: 1.3; }
.days3 span { font-family: var(--devlo-font, var(--f-display)); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.dos .days3 { margin-top: 12px; }
.file-top { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 40px; }
.file-top .file-sum { margin-top: 0; }

/* programs: every segment in its own format */
.prog-lead { padding-top: 8px; }
.prog-lead .pbox-head { margin-bottom: 20px; }
.prog-lead > .go { margin-top: 10px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; align-items: start; }
.pbox { padding-top: 20px; border-top: 2px solid var(--ink); min-width: 0; }
.pbox-wide { grid-column: 1 / -1; }
.pbox-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pbox-h { font-size: var(--fs-h2); font-weight: 800; line-height: 1.35; color: var(--blue); }
.pbox-desc { max-width: 60ch; line-height: 1.8; color: var(--text); }
.pbox-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 10px; }
.pbox .go { margin-top: 12px; }
.pbox-weather, .pbox-who { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pbox-quote { font-family: var(--devlo-font, var(--f-display)); font-size: 1.125rem; font-weight: 700; line-height: 1.7; color: var(--ink); }
.pbox-weather .meta, .pbox-who .meta { margin-top: 8px; }
.pbox-prev { margin-top: 12px; }
.pbox-prev a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--devlo-font, var(--f-display)); font-weight: 700; color: var(--blue); }
.pbox .roads { max-width: none; }
.pgrid-note { grid-column: 1 / -1; margin-top: 0 !important; }

/* news: the wire beside a day index and the stories it fed */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.news-side { position: sticky; top: calc(var(--hd) + 24px); }
.day-jump a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule); font-family: var(--devlo-font, var(--f-display)); font-weight: 600; color: var(--ink); }
.day-jump a:hover { color: var(--blue); }
.day-jump b { font-weight: 800; color: var(--muted); }
.side-stories li a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.side-stories li a:hover { color: var(--blue); }
.news-side .auto-note { margin-top: 18px; }

/* about: the network's own frames and numbers */
.about-lead { padding-bottom: clamp(28px, 4vw, 48px); }
.facts-h { margin: 1.4em 0 .6em; font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.places-bars { max-width: 520px; margin-bottom: 1.6em; }
.places-bars a { display: grid; grid-template-columns: minmax(0, 1fr) 140px 2.4em; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--rule); color: var(--text); }
.places-bars a:hover { color: var(--blue); }
.places-bars i { display: block; height: 8px; width: var(--v); background: var(--blue); transform: skewX(calc(var(--cut) * -1)); }
.places-bars b { font-family: var(--devlo-font, var(--f-display)); font-weight: 800; color: var(--ink); text-align: end; }
.sections5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.sections5 a { display: block; }
.s5-t { display: block; margin-top: 12px; font-family: var(--devlo-font, var(--f-display)); font-size: 1.125rem; font-weight: 800; color: var(--blue); }
.s5-d { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.7; color: var(--text); }
.sections5 a:hover .s5-t { color: var(--blue-deep); }

/* text pages: start-aligned */
.text-page .prose p { margin-bottom: 1.2em; }

/* search: type tabs, and the mark where a result has no picture */
.js-stabs { margin-top: 16px; }
.results .ph.noimg { display: grid; place-items: center; background: var(--band); }
.results .noimg .mk { width: 30px; height: 27px; }

/* video: the speaker's words under the headline */
.vp-hook { margin-top: 14px; }
.vp-hook p { position: relative; padding-inline-start: 16px; font-family: var(--devlo-font, var(--f-display)); font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--ink); }
.vp-hook p::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 3px; height: 1em; background: var(--red); transform: skewX(calc(var(--cut) * -1)); }

@media (max-width: 1100px) {
  .pp-lead, .dos-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "text"; }
  .pp-lead-media { max-width: 420px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-side { position: static; order: -1; }
  .news-side .side-stories, .news-side .side-h:nth-of-type(2), .news-side .auto-note { display: none; }
  .day-jump { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .day-jump a { border-bottom: 0; gap: 8px; }
  .sections5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .people.c3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .people.c3 .pp a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--rule); }
  .people.c3 .pp-text { margin-top: 0; }
  .pbox-weather, .pbox-who { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .pbox-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sections5, .albums, .sheet-wide .sheet-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .sections5 > li, .albums > li, .sheet-wide .sheet-grid > li { scroll-snap-align: start; }
  /* an RTL scroller's overflow still widens the page in Chrome unless its paint is contained */
  .sections5, .albums, .sheet-wide .sheet-grid, .tabs { contain: paint; }
  /* in a scrolling row the pick stays on its frame instead of gliding */
  .sheet-wide .sheet-pick { display: none !important; }
  .js .sheet-wide .fr.is-pick .ph::after { display: block; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(to left, transparent 0, #000 32px); mask-image: linear-gradient(to left, transparent 0, #000 32px); }
  .tabs::-webkit-scrollbar, .sections5::-webkit-scrollbar, .albums::-webkit-scrollbar { display: none; }
  .w-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .w-t { grid-column: 1; grid-row: 1; text-align: start; direction: rtl; line-height: 1.4; font-size: .875rem; color: var(--muted); }
  .w-body { grid-column: 1; grid-row: 2; }
  .w-ph { grid-column: 2; grid-row: 1 / span 2; }
  .places-bars a { grid-template-columns: minmax(0, 1fr) 90px 2.2em; }
}

/* =====================================================================
   round 3: home, stories, video, albums and the chrome, after the
   second critique — footage first on phones, no frame shown twice
   ===================================================================== */
.hd-follow { display: none; }
.hd-logo { display: flex; align-items: center; min-height: 44px; }

/* tap targets reach 44px without moving the line they sit in */
.crumbs a { min-height: 44px; }
.meta, .card-meta, .reel-meta, .w-meta { clip-path: inset(-12px calc(2 * var(--sep) + 1px) -12px -4px); }
a.cat { min-height: 44px; margin-block: -8px; }
.wire.compact .w-h { padding-block: 6px; margin-block: -6px; }

/* the contact sheet's caption keeps whole words */
.sheet-cap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 3.2em; }

/* one material line: time, frame, what it shows */
.tl li { grid-template-columns: 46px minmax(0, 1fr); align-items: start; }
.tl a { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; min-height: 56px; color: var(--ink); }
.tl a .ph { grid-row: 1 / span 2; width: 56px; }
.tl-t { line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.tl a:hover .tl-t { color: var(--blue); }
.tl-k { grid-column: 2; }
.tl .badge { --h: 20px; inset-inline-start: 3px; inset-block-end: 3px; gap: 3px; padding-inline: calc(var(--h) * var(--cut-tan) + 3px); }
.tl .badge > span:not(.sr) { display: none; }
.tl .badge .fi { width: 9px; height: 9px; }
.tl .badge .ic { width: 12px; height: 12px; }
.tl .noimg { display: grid; place-items: center; background: var(--band); }
.tl .noimg .mk { width: 22px; height: 20px; }

/* a photo lead says what the camera saw */
.lead-fig figcaption { line-height: 1.7; color: var(--text); max-width: 60ch; }
.lead-fig figcaption span { display: block; margin-top: 2px; font-size: var(--fs-micro); color: var(--muted); }

/* the story a clip or album belongs to */
.in-story { margin-top: 36px; }
.in-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 18px; align-items: start; color: var(--ink); }
.in-card .ph { grid-row: 1 / span 2; }
.in-t { font-family: var(--devlo-font, var(--f-display)); font-size: 1.125rem; font-weight: 800; line-height: 1.5; color: var(--blue); text-wrap: balance; transition: color .15s ease; }
.in-d { margin-top: 4px; font-size: .9375rem; line-height: 1.75; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.in-card:hover .in-t { color: var(--blue-deep); }
.in-sub { margin-top: 24px; font-size: 1rem; font-weight: 800; color: var(--muted); }
.in-story .tl { margin-top: 6px; }
.in-story .go { margin-top: 12px; }

/* video: a portrait clip gets a column its own width, the words get the rest */
.vp-h { text-wrap: balance; }
@media (min-width: 1101px) {
  .vp-grid.is-portrait { grid-template-columns: minmax(0, calc(min(76vh, 780px) * var(--pw))) minmax(0, 1fr); }
  .vp-grid.is-portrait .vp-frame { --vh: min(76vh, 780px); }
  .vp-grid.is-portrait .vp-info { max-width: 720px; }
}
@media (hover: none), (pointer: coarse) { .vp-keys { display: none; } }

/* albums: whole photos; the strip leaves the screen at the logo's angle */
.al-stage { container-type: inline-size; }
.al-reel { --rh: min(clamp(300px, 62vh, 640px), var(--mh), calc((100cqw - var(--al-pad, 0px)) / var(--mar)));
  height: var(--rh); align-items: center; padding-inline-end: calc(var(--rh) * var(--cut-tan));
  clip-path: polygon(calc(var(--rh) * var(--cut-tan)) 0, 100% 0, 100% 100%, 0 100%); }
.al-ph { height: min(var(--rh), var(--nh), calc((100cqw - var(--al-pad, 0px)) / var(--arn))); max-width: none; aspect-ratio: var(--ar); clip-path: none; }
.al-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(32px, 5vw, 80px); align-items: start; margin-top: 32px; }
.al-foot .in-story { margin-top: 0; max-width: 640px; }
.al-act .share { margin-top: 18px; }
.albums.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 16px; }
.albums.small .reel-h { font-size: .9375rem; }

/* home: four albums two by two beside eight news lines */
.split-sec .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .hd-nav a[aria-current="page"]::after { inset-inline: 0 auto; }
  .hd-follow { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
  .hd-follow > span { font-family: var(--devlo-font, var(--f-display)); font-weight: 700; font-size: var(--fs-meta); color: var(--ink); }
  .hd-nav .hd-follow ul { flex-direction: row; }
  .hd-nav .hd-follow a { width: 44px; height: 44px; justify-content: center; padding: 0; border-bottom: 0; }
  .hd-follow .fi { width: 20px; height: 20px; }
}
@media (max-width: 860px) {
  .al-foot { grid-template-columns: minmax(0, 1fr); }
  .ft-links ul { column-gap: 22px; }
  .ft-links li + li::before { display: none; }
}
@media (max-width: 600px) {
  /* phones open on the footage: headline, then the frame, then the words */
  .lead { display: flex; flex-direction: column; padding-top: 22px; }
  .lead-text, .st .st-head { display: contents; }
  .lead-h, .st-h { order: 1; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 1.85rem); }
  .st-h { padding-top: 22px; }
  .lead .sheet { order: 2; margin-top: 16px; }
  .st .st-lead, .st.st-tall .st-lead { order: 2; margin: 16px 0 0; }
  .lead-dek, .st-dek { order: 3; margin-top: 18px; font-size: 1.0625rem; }
  .lead .meta, .st-head .meta { order: 4; margin-top: 12px; }
  .lead-act { order: 5; margin-top: 16px; }
  .st, .st.st-tall { display: flex; flex-direction: column; }
  .st-grid, .st-body { order: 5; margin-top: 24px; }
  .st-tall .st-aside { order: 6; }
  .st .vp-frame { --vh: 66svh; }
  .st .lead-fig.natural img { max-height: 62svh; }

  /* stories in a list become rows, so a section is not four screens tall */
  .cards.c3 { gap: 0; border-top: 1px solid var(--rule); }
  .cards.c3 .card a { display: grid; grid-template-columns: 124px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
  .cards.c3 .card .ph { grid-row: 1 / span 2; aspect-ratio: 4 / 3; }
  .cards.c3 .card-h { margin-top: 0; font-size: 1rem; line-height: 1.6; }
  .cards.c3 .card-meta { margin-top: 4px; }

  /* scroll rows keep the gutter when they snap */
  .albums.small, .split-sec .albums { grid-template-columns: none; grid-auto-columns: 42%; }
  .albums, .reels-row { scroll-padding-inline: var(--gutter); }
  .al-stage { --al-pad: calc(var(--gutter) * 2); }
  .al-reel { --rh: min(64svh, 540px, var(--mh), calc((100cqw - var(--al-pad)) / var(--mar))); }
  .in-card { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; }
  .in-t { font-size: 1rem; }
}

@media (max-width: 600px) { .reels-row { grid-auto-columns: 42%; } }
