/* GENERATED by bin/build-site-css.php from tokens.css + fonts.css + app.css — do not edit; edit those and re-run. */
/* ============================================================
   The Balochistan Post — Design Tokens
   BRAND = red. --brand-600 (#b0070f) is the single knob; the whole brand scale
   — and every chrome element (links, kickers, logo mark, footer, breaking bar)
   — derives from it. NAVY IS RETIRED. GOLD IS RETIRED (neutralized 2026-07-04:
   urgency = red family, chips on red = white, editorial marks = brand red).
   Neutrals = ink + paper (white canvas, ink topstrip/text).
   Live/breaking red is the same red family. Editorial. Bilingual. RTL-aware.
   ============================================================ */

:root {
  /* ── Ink scale (text + dark surfaces) ───────────────────── */
  /* Base neutrals bridge to Global Styles presets (Site Editor → Styles → Colors):
     change them there and the whole theme follows. Hardcoded hex = fallback. */
  --ink-950: #050505;
  --ink-900: var(--wp--preset--color--ink, #0a0a0a);
  --ink-800: #161616;
  --ink-700: var(--wp--preset--color--ink-700, #262626);
  --ink-600: #3a3a3a;
  --ink-500: var(--wp--preset--color--ink-500, #585858);
  --ink-400: #767b84;
  --ink-300: var(--wp--preset--color--ink-300, #a6abb3);
  --ink-200: #d2d6dc;
  --ink-150: var(--wp--preset--color--hairline, #e0e3e8);
  --ink-100: #eaecef;
  --ink-50:  var(--wp--preset--color--ink-50, #f5f6f8);

  /* ── Absolute black/white (mode-independent primitives) ──── */
  --white: #fff;
  --black: #000;
  /* An INVERSE surface: dark in BOTH modes, with what sits on it. The --ink-*
     scale flips in dark mode (--ink-950 becomes #fff), so a card painted
     background: var(--ink-950); color: var(--white) turns white-on-white the
     moment the reader switches — the dossier card, the tip form's button, the
     live band all did. Paint an always-dark surface with these instead. */
  --surface-inverse:  #0a0a0a;
  --on-inverse:       #fff;                       /* 19:1 */
  --on-inverse-dim:   rgba(255, 255, 255, .72);   /* 11:1 */
  --red-on-inverse:   var(--red-text-dark);       /* small red text on it, AA */

  /* ── Paper (light surfaces) ─────────────────────────────── */
  --paper:        var(--wp--preset--color--paper, #ffffff);
  --paper-card:   var(--wp--preset--color--paper-card, #ffffff);
  --paper-sunken: var(--wp--preset--color--paper-sunken, #f5f6f8);
  /* The band at the foot of a story (people.php): a step off the page. */
  --credit-band-bg: #f1f2f4;
  --credit-band-r:  10px;
  --credit-link:    var(--red);           /* 6.2:1 on the band */

  /* ── Brand — RED (primary). TRUE single knob. ──────────
     Change --brand-600 ONLY; the whole scale (and every chrome element,
     incl. logo mark + footer) is derived from it via color-mix(). ── */
  --brand-600: var(--wp--preset--color--brand, #b0070f);   /* ◀ THE KNOB — now wired to Global Styles (Site Editor → Styles → Colors → "Brand Red"). Change it there and the whole theme + every language clone recolors, no code. Hardcoded hex = fallback. */
  --brand-900: color-mix(in srgb, var(--brand-600), #000 42%);
  --brand-800: color-mix(in srgb, var(--brand-600), #000 26%);
  --brand-700: color-mix(in srgb, var(--brand-600), #000 13%);
  --brand-100: color-mix(in srgb, var(--brand-600), #fff 88%);
  --brand-50:  color-mix(in srgb, var(--brand-600), #fff 94%);
  --brand: var(--brand-600);
  /* Solid ACCENT FILLS (white text sits on these): sign-in hover, active chips,
     current page, story-reader CTAs. Red in both themes — #b0070f/#8a050c both
     clear AA with white text on light and dark canvases. */
  --fill-brand:   var(--red);
  --fill-brand-h: var(--red-strong);

  /* ── LIVE breaking news (slightly hotter than brand, same family) ── */
  --live-bg:  color-mix(in srgb, var(--brand-600), #fff 9%);
  --live-pulse: var(--red-lift);

  /* ── Signal red — the design-system accent. The "Featured & Live" hero is the
     benchmark module; this is its primary accent (red band, LIVE tag, timeline,
     breaking). Use these, never hardcode the hex/rgb. A translucent red (a glow,
     a tint) is color-mix(in srgb, var(--red) N%, transparent), so it follows the
     knob too; --red-rgb was a fixed copy of the default red and is kept only
     for custom CSS that still names it.
     --red-lift = small marks (dots, rules) on BLACK surfaces, where the deep
     brand red loses contrast. */
  --red:        var(--brand-600);
  --red-strong: color-mix(in srgb, var(--brand-600), #000 20%);
  --red-rgb:    176, 7, 15; /* legacy: the default red, NOT the knob — the theme no longer uses it */
  --red-lift:   color-mix(in srgb, var(--brand-600), #fff 26%);
  /* Small red text on a dark surface: --red-lift is only 3.8:1 there. The
     accent made BRIGHTER, not paler: its own hue at full strength and 58%
     light (5.2:1 on the dark page, 4.8:1 on a dark card). Mixing it toward
     white (46%, until the-post 0.9.210) gave #d4797d, which read pink.
     inc/design.php works it out again for another accent (tbp_design_on_dark). */
  --red-text-dark: #ff2933;

  /* ── Semantic ───────────────────────────────────────────── */
  --green-600: #18794e;
  --amber-600: #b45309;
  --blue-700:  #1d4ed8;
  --blue-600:  #2563eb;

  /* ── Fonts ──────────────────────────────────────────────── */
  --font-display: 'Source Serif 4', 'Times New Roman', Georgia, serif;
  --font-ui:      'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui-cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  /* Urdu typography system
     - urdu      : default for body / UI / dense text — Noto Naskh Arabic (BBC Urdu style: clean, fast-rendering Naskh)
     - urdu-disp : for display headlines & masthead — modern Nastaliq (Gulzar)
     - urdu-trad : traditional Nastaliq for cultural anchor
     - naskh     : alternate Naskh for Balochi / Brahui specimens */
  --font-urdu:      'Noto Naskh Arabic', 'Noto Sans Arabic', 'Cairo', system-ui, sans-serif;
  --font-urdu-disp: 'Gulzar', 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-urdu-trad: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-naskh:     'Noto Naskh Arabic', 'Cairo', sans-serif;
  --font-ar:        'IBM Plex Sans Arabic', 'Noto Naskh Arabic', system-ui, sans-serif; /* hero module (Featured & Live design) */
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; /* the device's own: JetBrains Mono (62 KB) set a handful of small Latin labels */

  /* ── Type scale (display) ───────────────────────────────── */
  --t-kicker:  11px;   /* eyebrow / kicker */
  --t-meta:    12px;
  --t-caption: 13px;
  --t-body:    16px;
  --t-lead:    19px;
  --t-h6:      18px;
  --t-h5:      22px;
  --t-h4:      26px;
  --t-h3:      32px;
  --t-h2:      42px;
  --t-h1:      56px;
  --t-hero:    76px;

  /* ── Spacing ────────────────────────────────────────────── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* ── Radius ─────────────────────────────────────────────── */
  /* Three corner tokens for the whole site. A style mode or the Studio
     corner control moves these three and nothing else. */
  --r-card:  8px;    /* cards, boxes, lead images, media frames */
  --r-thumb: 6px;    /* small thumbnails, chips, badges, form controls */
  --r-pill:  999px;  /* pills: buttons, counters, tag chips */
  /* Studio ▸ Design ▸ Button corners. Declared as the guaranteed-invalid
     value on purpose: every button keeps its own corner token until an
     admin picks Sharp / Rounded / Pill, which sets this to a length. */
  --btn-radius: initial;

  /* ── Rhythm ─────────────────────────────────────────────── */
  --section-gap: 72px;  /* homepage: end of one section's content → the next .secbar */
  --grid-gap: 24px;     /* the one gap inside every card grid */
  --rail-gap: 16px;     /* the one gap inside every swipe rail (videos, lens) */
  --writer-photo: 64px;     /* a writer's photo at the foot of their article and in the writers list */
  --writer-photo-lg: 96px;  /* the photo on the writer's own page */
  --card-min: 160px;    /* a card grid keeps two columns below --bp-sm only while a card stays this wide */
  --col-gap: 40px;      /* the one gap between a section's side-by-side panels */

  /* ── Breakpoints ────────────────────────────────────────────
     A custom property cannot be read inside @media, so these are declared
     for scripts and as the contract: every section stylesheet queries ONLY
     these three widths — (max-width: 1024px) / (768px) / (480px). */
  --bp-lg: 1024px;
  --bp-md: 768px;
  --bp-sm: 480px;

  /* ── Headline voice ─────────────────────────────────────────
     Every headline in the homepage sections reads these; the Nastaliq style
     mode re-points them (home.css "STYLE MODES"). */
  --font-head: var(--font-urdu);        /* Naskh headlines */
  --font-head-sans: var(--font-ar);     /* the hero's sans voice */
  --head-lh-x: 1;                       /* line-height multiplier */

  /* ── Title scale — THE rule for every story title ─────────────
     Four sizes, one weight, one family (app.css "TITLE SCALE"). Every story
     title on the site is one of these and nothing else sets a title's size,
     weight, family, line height or tracking (tests/test-title-scale.php).
     Studio ▸ Typography ▸ Headlines scales all four (size, line height,
     weight, font, tracking). Page titles, article sub-headings and section
     headings are their own roles, not story titles.
       1 — the page's lead story (hero, photo leads, the dossier's latest)
       2 — a section's lead story
       3 — a card with room (secondary features, archive and related cards)
       4 — every list, rail and grid title */
  --title-1: 30px;  --title-1-lh: 1.4;
  --title-2: 24px;  --title-2-lh: 1.45;
  --title-3: 18px;  --title-3-lh: 1.5;
  --title-4: 15px;  --title-4-lh: 1.6;
  --title-weight: 700;

  /* ── Category label ─────────────────────────────────────────
     One look for every kicker / category label (.tbp-cat, app.css).
     The font is the bundled IBM Plex Sans Arabic, not --font-urdu: the body
     font can be set to anything in Studio (staging had Noto Sans TC, a CJK
     face), and an Arabic-script label must never fall back through it. */
  /* ── "More" links ──────────────────────────────────────────
     One look for every section "more" (.tbp-more, home.css): the hero
     rail's — a red arrow at the inline start, the label in the text colour. */
  --more-font: var(--font-ar);
  --more-weight: 700;
  --more-size: 14px;
  --more-gap: 9px;
  --more-color: var(--tbp-text);
  --more-arrow: var(--red);
  --more-arrow-size: 16px;
  --more-arrow-shift: -5px;   /* the arrow's hover nudge, along the reading direction */

  /* ── Widgets ────────────────────────────────────────────────
     One frame for every widget (.widget, app.css): the card, the heading
     rule, the body text. Studio ▸ Design ▸ Widgets rewrites the first
     three (plain / tinted); the "Widget titles" role reaches the heading. */
  --w-bg: var(--paper-card);
  --w-border: var(--frame-border);
  --w-pad: 18px;
  --w-radius: var(--r-card);
  --w-gap: 24px;                 /* between widgets in a stack, and between rows in a band */
  --w-head-font: var(--font-urdu);
  --w-head-weight: 800;
  --w-head-size: 16px;
  --w-head-rule: 2px solid var(--red);
  --w-head-gap: 8px;
  --w-head-space: 12px;          /* under the heading rule */
  --w-lead-size: 17px;           /* a widget's own headline (promo, WhatsApp, newsletter) */
  --w-text-size: 13px;
  --w-text-color: var(--ink-600);
  --w-pic-ratio: 16 / 10;
  --w-meta-size: 11px;           /* a widget's small print: notes, the ad label */
  --w-btn-size: 14px;            /* the big button (WhatsApp, a CTA) */
  --w-btn-pad: 12px 16px;
  --w-field-pad: 10px 14px;      /* a form field or its button */
  --w-icon: 18px;                /* the icon on a big button */
  --w-icon-sm: 16px;             /* an icon beside small print */
  --dossier-col: 880px;          /* the dossier page's reading column, and anything added under it */
  --dossier-pad: 28px;
  --w-ed-size: 24px;             /* Our languages: an edition's name */
  --w-ed-head-size: 21px;        /* …its heading */
  --w-ed-track: 0.14em;          /* …the Latin small print, spaced */
  --w-ed-rule: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  --w-ed-dim: color-mix(in srgb, var(--white) 62%, transparent);
  --w-min: 280px;                /* a widget in a band: no narrower */
  --w-max: 440px;                /* …and no wider */

  /* ── Brand colours — the Follow buttons' hover and a CTA card's button, once ── */
  --brand-telegram: #2AABEE;
  --brand-youtube: #FF0000;
  --brand-x: #0a0a0a;
  --brand-facebook: #1877F2;
  --brand-instagram: #d62976;
  --brand-tiktok: #0a0a0a;
  --brand-linkedin: #0A66C2;
  --brand-threads: #0a0a0a;
  --brand-mastodon: #6364FF;
  --brand-bluesky: #0085FF;
  --brand-nostr: #8E30EB;
  --brand-substack: #FF6719;
  --brand-google-news: #4285F4;
  --brand-apple-news: #FB1D4A;
  --brand-flipboard: #E12828;
  --brand-feedly: #2BB24C;
  --brand-whatsapp: #0a7d5a;
  /* A brand colour behind white words (the follow buttons on hover): darkened
     only as far as 4.5:1 needs. WhatsApp green with white words was 2:1. */
  --brand-telegram-on: #1e7bab;
  --brand-youtube-on: #eb0000;
  --brand-facebook-on: #1771e6;
  --brand-instagram-on: #d23b57;
  --brand-mastodon-on: #6061f7;
  --brand-bluesky-on: #0074de;
  --brand-substack-on: #c44f13;
  --brand-google-news-on: #3972d2;
  --brand-apple-news-on: #e41a43;
  --brand-feedly-on: #208639;
  /* Keyboard focus: the text colour, so it shows on paper in both modes;
     white on the dark and red bars (app.css). */
  --focus-ring: var(--ink-900);

  --cat-font: var(--font-ar);
  --cat-weight: 700;
  --cat-size: 12px;
  --cat-color: var(--red);
  --cat-bg: transparent;
  --cat-pad: 0;
  --cat-ring: none;      /* the outlined label style: an inset box-shadow */
  --cat-overlay-color: #fff;
  --cat-overlay-bg: rgba(0, 0, 0, .55);
  --cat-on-color: #fff;       /* a label on a photo or the hero's red band */
  --cat-on-bg: transparent;   /* chip styles keep their chip there */
  --cat-band-color: var(--cat-on-color); /* on the hero's red band */
  --cat-band-bg: var(--cat-on-bg);
  --card-meta-gap: 6px;       /* label → title → date on every card */
  --card-hover: var(--tbp-red); /* a hovered card's title, every section (home.css CARD TITLES) */
  --title-lines: 2;           /* a card title's most lines, then an ellipsis */
  --card-img-ratio: 16 / 10;  /* a card's picture, when a list is shown as a grid */

  /* ── Card date ──────────────────────────────────────────────
     One date on every card (.tbp-date, app.css): the edition's words from
     Studio ▸ Text, in the Arabic-script face (JetBrains Mono has no Arabic,
     so the month names fell back), one size, one weight, one grey.
     #737373 is the grey nearest #8a8a8a that keeps 11px text at 4.5:1 on
     the white page (4.74:1). */
  --date-font: var(--font-ar);
  --date-size: 12px;   /* 11px until 2026-09-29: the 12px floor (the mobile plan, M4) */
  --date-weight: 500;
  --date-color: #6b6b6b; /* 5.3:1 on white; #737373 was chosen for 11px */
  --date-on-color: #fff;      /* on a photo or the hero's red band */

  /* ── Live coverage (live.css) ───────────────────────────────
     The live blog's own structure: the timeline rail and the update cards.
     Not the divider tokens (--tbp-line, --ink-150): Studio ▸ Design ▸
     Divider lines "off" empties those, and the cards and the rail went with
     them -- white cards on the white page, no timeline, updates running
     together. A timeline is not a divider. */
  /* The ticker on an ordinary day (no live coverage, nothing marked
     Breaking): the same red as a gradient, with no alarm. */
  --bn-calm-from: var(--red-strong);
  --bn-calm-to: color-mix(in srgb, var(--red-strong), #000 32%);
  --bn-calm-rule: rgba(255,255,255,.38);
  /* The red menu bar (Studio ▸ Header ▸ Menu bar: Red) and its search field. */
  --navbar-from: var(--bn-calm-from);
  --navbar-to: var(--bn-calm-to);
  /* ONE red gradient for every red surface — the menu bar, the calm ticker,
     the homepage hero's caption band, the phones' line under the masthead and
     the footer's tip box. They were three recipes running three ways (brand
     red to darker, right to left; darker to brighter at 120deg with a white
     corner glow), so the menu bar and the hero band met as two reds. Brand
     red at the reading start, darker toward the end. */
  --red-grad: linear-gradient(to right, var(--navbar-from), var(--navbar-to));
  /* The homepage hero's caption band: brighter than the bar — a diagonal
     from the accent 28% darker up to the accent itself (the owner's pick,
     2026-09-30, "B"). */
  --hero-grad: linear-gradient(120deg, color-mix(in srgb, var(--red), #000 28%), var(--red) 80%);
  /* A fine, still film grain laid over every red surface (overlay blend).
     An inline SVG noise tile: nothing is fetched. Studio ▸ Colour ▸ Grain on
     red surfaces off puts .tbp-red-smooth on <body>, which empties it. */
  --red-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --red-grain-size: 180px;
  --navbar-fg: rgba(255,255,255,.88);
  --navbar-field-bg: rgba(255,255,255,.14);
  --navbar-field-line: rgba(255,255,255,.3);
  /* The pale ticker (Studio ▸ Header ▸ Ticker: Pale), desktop. */
  --bn-pale-bg: #f6f3f2;
  --bn-pale-line: #ebe3e1;
  --bn-pale-wash: #fff1f1;  /* a live coverage or a story marked Breaking */
  --bn-pale-wash-line: #f3c9cb;
  /* The ticker's category dot: one colour on each surface (it was six,
     picked by a hash of the section's slug). */
  --bn-cat-dot: rgba(255,255,255,.7);     /* on the red band */
  --bn-cat-dot-pale: var(--red);          /* on the pale ticker */
  --bn-cat-dot-panel: var(--red-lift);    /* in the "all stories" tray */
  --live-rail: #d2d6dc;
  --live-card-bg: #fafafa;
  --live-card-line: #e6e8ec;
  --live-ended-bg: transparent;        /* the ENDED badge: an outlined stamp, not a greyed-out button */
  --live-ended-line: rgba(255,255,255,.55);
  --live-ended-fg: #fff;
  --live-note-bg: rgba(255,255,255,.07); /* the "coverage has ended" note, inside the dark band */
  --live-note-fg: rgba(255,255,255,.86);
  --live-band-meta: rgba(255,255,255,.72); /* small text on the band: 7.9:1 on #0a0a0a */

  /* ── Mode-switched chrome ───────────────────────────────────
     Off in the standard mode; the Broadsheet preset turns them on for EVERY
     card and section bar at once. */
  --card-border: 0;
  --frame-border: 1px solid var(--tbp-line); /* cards that are framed in every mode */
  --sec-rule: 0;            /* rule above each section bar */
  --sec-rule-pad: 0;        /* room under that rule */
  --sec-tick: inline-block; /* the short bar beside desk headings */

  /* ── List thumbnails ─────────────────────────────────────
     One size for every thumbnail + headline row (hero rail,
     newsrow stories, featured reports, editorials, opinion,
     press desk). Sits on the inline-start side in all of them. */
  --thumb-w: 96px;
  --thumb-ratio: 4 / 3;
  --list-gap: 14px;     /* a list story: between its picture and its text */
  --list-pad: 14px;     /* …and above/below it */
  --list-title: 15px;   /* …its headline */

  /* ── Borders / shadow ───────────────────────────────────── */
  --hairline: 1px solid var(--ink-150);
  --hairline-strong: 1px solid var(--ink-300);
  --rule-thick: 3px solid var(--ink-900);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.14);

  /* ── Layout ─────────────────────────────────────────────── */
  --maxw: 1320px;
  --maxw-narrow: 720px;
  --gutter: 28px;  /* a page's side margin (.wrap, the archive and 404 mains) */
  --ft-rule: rgba(255,255,255,.12); /* a line on the dark footer */
  /* The masthead mark's height: desktop, and below 1024px. Studio ▸ Identity ▸
     Logo height — desktop / phones (design.php writes them when changed). */
  --mast-logo-h: 60px;
  --mast-logo-phone: 64px;
  --maxw-wide:   1440px;
  --topbar-h: 36px;
  --nav-h:    64px;
}

/* The title scale steps down with the screen (--bp-md, --bp-sm). */
@media (max-width: 768px) { :root { --title-1: 23px; --title-2: 21px; } }
@media (max-width: 480px) { :root { --title-1: 20px; --title-2: 19px; --title-3: 17px; } }

/* ── Dark mode tokens (applied via .dark on root) ─────────── */
/* The gradient runs from the reading start: right to left in RTL. */
:root[dir="rtl"] { --red-grad: linear-gradient(to left, var(--navbar-from), var(--navbar-to)); }

.dark {
  --date-color:   #8a8a8a;   /* 5.6:1 on the dark page */
  --live-rail: #333;
  --live-card-bg: #181818;
  --live-card-line: #2a2a2a;
  --bn-pale-bg: #151515;
  --bn-pale-line: #262626;
  --bn-pale-wash: #241012;
  --bn-pale-wash-line: #4a1a1d;
  --bn-cat-dot-pale: var(--red-lift);
  --paper:        #0d0d0d;
  --paper-card:   #161616;
  --paper-sunken: #0a0a0a;
  --credit-band-bg: var(--ink-50);        /* #1a1a1a: one step up from the page */
  --credit-link:    var(--red-text-dark); /* the brand red is 2.6:1 here; this is 5.6:1 */
  --ink-50:  #1a1a1a;
  --ink-100: #232323;
  --ink-150: #2a2a2a;
  --ink-200: #353535;
  --ink-300: #4a4a4a;
  --ink-400: #6a6a6a;
  --ink-500: #8a8a8a;
  --ink-600: #a8a8a8;
  --ink-700: #c4c4c4;
  --ink-800: #e2e2e2;
  --ink-900: #f4f4f4;
  --ink-950: #ffffff;
  --hairline: 1px solid #262626;
  --hairline-strong: 1px solid #3a3a3a;
  --rule-thick: 3px solid var(--ink-900);
  /* Brand is red (mode-independent) — no dark remap needed; the :root red scale
     reads well on the dark canvas. */
  --fill-brand:   var(--red);
  --fill-brand-h: var(--red-strong);
}

/* ── Base reset ────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink-900);
  background: var(--paper);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── RTL — automatic typography swap ──────────────────────── */
html[dir="rtl"] body { font-family: var(--font-urdu); font-weight: 500; line-height: 1.85; }
html[dir="rtl"] .ltr,
html[dir="rtl"] [lang="en"] { font-family: var(--font-ui); line-height: 1.5; direction: ltr; }
html[dir="rtl"] .display-ur,
html[dir="rtl"] .nastaliq { font-family: var(--font-urdu-disp); font-weight: 400; line-height: 1.9; }
html[dir="rtl"] .naskh { font-family: var(--font-naskh); line-height: 1.7; }

/* English-side helpers (when in LTR doc) */
.ltr .display-en { font-family: var(--font-display); }
.ltr .ui { font-family: var(--font-ui); }

/* ── Reusable atoms ───────────────────────────────────────── */
.kicker {
  font-family: var(--font-ui-cond);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
html[dir="rtl"] .headline { font-family: var(--font-urdu-disp); font-weight: 400; line-height: 1.7; letter-spacing: 0; }

.deck {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-600);
  line-height: 1.45;
}
html[dir="rtl"] .deck { font-family: var(--font-urdu); font-style: normal; line-height: 1.85; }

.meta {
  font-family: var(--font-ui);
  font-size: var(--t-meta);
  color: var(--ink-500);
  letter-spacing: 0.01em;
}

/* ── Shared pulse (live dots / badges across chrome) ──────── */
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(.78); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 2px;
  border: 1px solid var(--surface-inverse);
  background: var(--surface-inverse);
  color: var(--on-inverse);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); }

/* ── Scrollbars (subtle) ──────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--red); color: var(--white); }

/* TBP self-hosted fonts — generated from Google Fonts css2, subsets: latin/latin-ext/arabic.
   Removes the fonts.googleapis.com/gstatic.com dependency (reader-IP deanonymisation). */

/* One rule per FILE, not per weight: where Google served one variable file for
   several weights (byte-identical, e.g. Noto Nastaliq 400-700), the weights
   share one rule with a weight range, so a page using two of them downloads
   the font once, not twice. Runs are merged only without gaps, so every
   weight the site asks for renders as before. The per-weight files stay:
   TBP Atlas and Studio find them by name. */

/* One rule per FILE, not per weight: where Google served one variable file for
   several weights (byte-identical, e.g. Noto Nastaliq 400-700), the weights
   share one rule with a weight range, so a page using two of them downloads
   the font once, not twice. Runs are merged only without gaps, so every
   weight the site asks for renders as before. The per-weight files stay:
   TBP Atlas and Studio find them by name. */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/cairo-300-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/cairo-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/cairo-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Gulzar';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/gulzar-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Gulzar';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/gulzar-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Gulzar';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/gulzar-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibmplexsans-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibmplexsans-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibmplexsansarabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibmplexsansarabic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibmplexsansarabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibmplexsansarabic-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibmplexsansarabic-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibmplexsansarabic-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibmplexsanscondensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/notonaskharabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/notonaskharabic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/notonaskharabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/notonastaliqurdu-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/notonastaliqurdu-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/notonastaliqurdu-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/notosansarabic-300-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/notosansarabic-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/notosansarabic-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/sourceserif4-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/sourceserif4-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   The Balochistan Post — site chrome
   Topstrip · Masthead · Navrail (+mega) · Breaking bar · Footer
   Extracted from the homepage mockup so every template shares it.
   Depends on tokens.css.
   ============================================================ */

:root {
  --tbp-red:    var(--red);         /* design-system ACCENT — the "Featured & Live" hero red.
                                       Was navy under the old "no red" rule; flipped so every
                                       chrome accent (kickers, tags, badges) matches the hero. */
  --tbp-red-d:  var(--red-strong);
  /* NOTE: navy is retired — these legacy aliases now resolve to RED shades
     (brand is red). Names kept to avoid a wide rename; treat them as "brand". */
  --tbp-blue:   var(--brand-600);   /* = red */
  --tbp-navy:   var(--brand-700);   /* = deep red — brand chrome */
  --tbp-navy-d: var(--brand-900);   /* = deepest red — big surfaces (footer, logo hover) */
  --tbp-live:   var(--live-bg);     /* hot red — LIVE coverage signal only (NOT the breaking ticker, which is brand navy) */
  /* --tbp-gold retired 2026-07-04 — gold accent system removed (see tokens.css) */
  --tbp-paper:  #ffffff;
  --tbp-card:   var(--paper-card);  /* canonical surface (incl. dark) */
  --tbp-card-2: #f4f6f9;
  --tbp-line:   #e6e8ec;
  --tbp-line-2: #d5d8de;
  --tbp-text:   var(--ink-900);     /* canonical text (incl. dark) */
  --tbp-text-2: #3a3a3a;
  --tbp-text-3: var(--ink-500);     /* canonical muted (incl. dark) */
  --maxw-page:  1280px;
  /* Corner tokens (--r-card / --r-thumb / --r-pill) live in tokens.css. */
  /* The ratio the newsroom authors its photographs at. Any box that fills with
     `cover` crops whatever does not match it, edges first -- which is exactly
     where a corner watermark lives -- so lead images are shaped to this rather
     than to a fixed height. Change it here if the client's camera crop changes. */
  --tbp-ar-lead: 7 / 4;
}
html.dark {
  --tbp-paper:  #0a0a0a;
  --tbp-card-2: #1c1c1c;
  --tbp-line:   #262626;
  --tbp-line-2: #333333;
  --tbp-text-2: #c8c8c8;
  /* --tbp-card / --tbp-text / --tbp-text-3 inherit dark values from their
     canonical tokens (--paper-card / --ink-900 / --ink-500) — no override needed. */
}
html.dark { --cat-color: var(--red-text-dark); }
html.dark .topstrip { background: var(--black); }
html.dark .navrail  { background: color-mix(in srgb, var(--paper), var(--paper-card)); } /* dark colours from the tokens, so Studio's dark settings reach them */
/* Topstrip + footer are permanently-dark chrome (fixed dark backgrounds in BOTH
   modes). But the ink scale INVERTS in dark mode (--ink-200..500 go dark), which
   turned their light-on-dark text (clock, weather, footer nav, social/legal
   links) into dark-on-dark — near-invisible. Re-pin the low ink tokens to their
   light-mode values inside these dark islands so the text stays light. */
html.dark .topstrip,
html.dark footer.site {
	--ink-200: #d2d6dc;
	--ink-300: #a6abb3;
	--ink-400: #767b84;
	--ink-500: #585858;
}
html.dark .breaking.bn { background: var(--red-strong); }

body { background: var(--tbp-paper); color: var(--tbp-text); }
.wrap { max-width: var(--maxw-page); margin: 0 auto; padding: 0 var(--gutter); }
/* The archive, search and 404 mains are block groups: WordPress pads them
   with the root padding, which is 0 here, so on a phone their pictures and
   titles ran to the screen's edges. (Desktop hid it: the 1280px column sits
   well inside the window.) */
/* A page (About, Contact, the trust pages…) the same: its title and words ran to
   a phone's edges (the owner, 2026-11-08). The class is page.html's; the body
   selector catches a page template copied into the Site Editor without it. */
.tbp-archive, .error404 .wp-site-blocks > main,
.tbp-page, body.page:not(.home) .wp-site-blocks > main.wp-block-group { padding-inline: var(--gutter); }

/* ── Utility atoms ───────────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-600); }

/* Kill WordPress's default block-gap between the homepage's top-level blocks —
   the theme controls its own spacing, so these stack flush with no empty band.
   Covers the breaking bar and the main sections group (and any direct child of
   the site wrapper marked .tbp-flush). */
.wp-block-template-part.tbp-flush,
.wp-site-blocks > .tbp-home-main,
.wp-site-blocks > .tbp-flush { margin-block-start: 0; }

/* ── Card pictures ─────────────────────────────────────────────
   A card's photograph is an <img class="tbp-cimg"> in its box (.tbp-cbox),
   not the box's CSS background (inc/images.php tbp_card_img): the browser
   picks the smallest file that fills the box and waits until the card nears
   the screen. It paints as the background did — covering the box, centred or
   at the focus point, under everything else in it: the box is its own
   stacking context and the picture sits at the bottom of it. A box that is
   already positioned keeps its own position (zero specificity). */
:where(.tbp-cbox) { position: relative; }
.tbp-cbox { isolation: isolate; }
.tbp-cimg {
  position: absolute; inset: 0; z-index: -1;
  display: block; inline-size: 100%; block-size: 100%; max-inline-size: none;
  object-fit: cover; object-position: var(--tbp-fx, 50%) var(--tbp-fy, 50%);
  border-radius: inherit;
}
/* A box that clips and is narrower than the photo (a 9:16 video card, a 3:4
   interview) shows the photo's whole height, so the <img> takes the photo's
   whole cover width and sizes="auto" asks for the pixels the crop really
   shows. Placed as background-position places: the photo's x% point on the
   box's x% point. `left` is physical on purpose — a point in the picture, not
   in the reading direction. */
.tbp-cimg--cover {
  inset: 0 auto auto var(--tbp-fx, 50%);
  inline-size: auto; min-inline-size: 100%;
  translate: calc(var(--tbp-fx, 50%) * -1) 0;
  border-radius: 0;
}

/* ── Top strip ───────────────────────────────────────────────── */
.topstrip { background: var(--ink-900); color: var(--ink-300); font-family: var(--font-mono); font-size: 11px; height: 32px; display: flex; align-items: center; }
/* .topstrip is display:flex, which makes its .wrap a FLEX ITEM. A flex item
   shrinks to its content instead of filling, so the wrap took its intrinsic
   width and `margin: 0 auto` then centred it -- while .navrail, .breaking and
   the masthead are block parents whose .wrap fills the row and lands on the
   page gutter. Measured at 983px: the strip's content box started at 120px
   against everyone else's 10px, so the top strip sat ~110px inside the rest of
   the page. Growing the item restores the shared gutter at every width. */
.topstrip .wrap { flex: 1 1 auto; min-width: 0; }
.topstrip .row { display: flex; align-items: center; gap: 24px; justify-content: space-between; width: 100%; }
.topstrip .left, .topstrip .right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topstrip .sep { width: 1px; height: 12px; background: #2a2a2a; }
.topstrip .dateline { color: var(--ink-400); letter-spacing: .06em; }
.topstrip .wx { letter-spacing: .02em; color: var(--ink-300); }
/* THE FOUR LABELS SHARE ONE BOX.
   `.ur` used to trim its own padding-block to 2px, to stop the taller Urdu
   face pushing the strip open. That worked at desktop and broke everywhere
   below 1024px, where the tap-target rule adds padding-block: 12px to
   `.topstrip .langs a` -- (0,2,1) -- which `.topstrip .langs a.ur` -- (0,3,1)
   -- outranks. EN kept 12px, the three Urdu-script names kept 2px, so they
   sat ~10px higher than EN on the same row, and the links grew to 44px inside
   a 28px strip: the dividers between them overflowed top and bottom.
   Height is set by centring, not by cancelling padding, so the two font sizes
   share a centre line and the tap-target rule applies to all four equally. */
.topstrip .langs { display: flex; align-items: center; }
.topstrip .langs a { position: relative; display: inline-flex; align-items: center; line-height: 1; padding: 4px 10px; color: var(--ink-400); font-size: 11px; cursor: pointer; }
/* The divider is a fixed 12px rule, matching .topstrip .sep beside it -- NOT a
   border on the link. A border is as tall as its box, and below 1024px the box
   is padded out to ~37px for a usable tap target inside a 32px strip, so the
   borders drew past the strip top and bottom. Pinning the height decouples the
   rule from the touch area. */
.topstrip .langs a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background: rgba(255,255,255,.12); }
.topstrip .langs a:first-child::before { display: none; }
.topstrip .langs a.active { color: var(--white); }
/* Size only — no padding-block, so nothing here fights the tap target. */
.topstrip .langs a.ur { font-family: var(--font-urdu); font-size: 13px; }
.topstrip .icon-btn { color: var(--ink-400); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.topstrip .icon-btn:hover { color: var(--white); }
/* Theme toggle: moon in light mode, sun once dark is active */
.theme-toggle .i-sun { display: none; }
html.dark .theme-toggle .i-moon { display: none; }
html.dark .theme-toggle .i-sun { display: inline-flex; }

/* ── Masthead ────────────────────────────────────────────────── */
.mast { padding: 30px 0 24px; }
.mast .nameplate { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mast-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; }
.mast-logo-name { display: flex; flex-direction: column; text-align: center; align-items: center; margin-block: .67em; } /* the room it had as an <h1> (the browser's heading margin); it is a span now, the article has the page's h1 */
/* The mark (Studio ▸ Identity ▸ Masthead shows): the logo, the icon, the icon
   beside the name, or the name. Its height is the cap (--mast-h, per screen)
   and its width follows the file: height:auto with max-width means a picture
   too wide for a phone shrinks whole instead of being squeezed sideways. */
.mast-logo { max-width: 100%; }
.mast-v { --mast-h: var(--mast-logo-h); display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.mast-v--phone { display: none; }
.mast-logo-img, .mast-icon-img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--mast-h); margin: 0 auto; }
.mast-iname { display: inline-flex; align-items: center; gap: calc(var(--mast-h) * .22); max-width: 100%; }
.mast-iname .mast-icon-img { margin: 0; flex: none; max-width: none; }
.mast-iname-t { font-family: var(--font-display); font-weight: 800; font-size: calc(var(--mast-h) * .42); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-900); min-width: 0; }
html.dark .mast-iname-t { color: var(--tbp-text); }
/* Dark-mode twins (Studio ▸ Identity): both are in the DOM, html.dark decides which paints. */
.mast-logo-img--dark, .mast-icon-img--dark { display: none; }
html.dark .mast-logo-img--light, html.dark .mast-icon-img--light { display: none; }
html.dark .mast-logo-img--dark, html.dark .mast-icon-img--dark { display: block; }
@media (max-width: 1024px) {
  .mast-v { --mast-h: var(--mast-logo-phone); }
  .mast-v--desk { display: none; }
  .mast-v--phone { display: flex; }
}
.mast-logo-name .en { font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -0.028em; line-height: 1; color: var(--ink-900); transition: color .15s; }
.mast-logo:hover .mast-logo-name .en { color: var(--red-strong); }
.mast-logo-name .ur { font-family: var(--font-urdu-disp); font-weight: 400; font-size: 24px; line-height: 1.4; color: var(--ink-700); margin-top: 8px; white-space: nowrap; }
html.dark .mast-logo-name .en { color: var(--tbp-text); }
html.dark .mast-logo-name .ur { color: var(--tbp-text-2); }
@media (max-width: 720px) {
  .mast { padding: 22px 0 18px; }
  .mast-logo-name .en { font-size: 30px; }
  .mast-logo-name .ur { font-size: 19px; }
}

/* Mobile/tablet header: hamburger + off-canvas drawer. Desktop nav is hidden below
   1024px; the hamburger opens a slide-in drawer with the full category list and the
   key actions. No horizontal overflow. */
.nav-burger { display: none; }
.mobile-drawer, .md-backdrop { display: none; }

@media (max-width: 1024px) {
  html { overflow-x: clip; } /* the off-canvas drawer must not create page scroll */
  /* Touch ergonomics: ≥40px hit areas on the small chrome controls. Negative
     block margins keep the visual metrics — only the tappable box grows. */
  .topstrip .icon-btn { width: 40px; height: 40px; margin-block: -9px; }
  .topstrip .langs a { padding-block: 12px; margin-block: -8px; }
  .md-close { padding: 8px 14px; margin: -8px -14px; }
  /* 44px to tap, the words where they were (the mobile plan, M4): "more"
     links (27px), breadcrumbs (26px); the tip page's copy buttons: tip.css. */
  .tbp-more, .crumb a, .lessay-crumb a, .vwatch-crumb a { padding-block: 9px; margin-block: -9px; }
  .search-input-row .s-close { width: 40px; height: 40px; } /* scoped: this block sits above the base .s-close rule */
  .topstrip { height: auto; }
  .topstrip .row { flex-wrap: wrap; gap: 6px 16px; padding: 5px 0; }
  /* The rail under the masthead held one thing here — a search icon — and the
     tab bar's Search tab (thumb zone) does the same job, so the 52px row went
     (2026-09-29, the mobile plan M1): news starts that much higher. Its
     sections, tip link and Live button were already hidden below 1024px. */
  .navrail { display: none; }
  /* One compact masthead on phones; the mark's phone height is --mast-logo-phone
     (Studio ▸ Identity ▸ Logo height — phones), set on .mast-v above. */
  .mast { padding: 12px 0; }
  /* No top hamburger on phones/tablets: the tab bar's Menu tab (thumb zone)
     is the single drawer trigger — two menu icons on one screen was noise. */
  /* And no top براہ راست button, by the same rule: the tab bar carries a live
     tab in the thumb zone, so this was a second route to /live on one screen —
     a third before .topstrip .left went. It stays on desktop, where there is no
     tab bar and this is the only live entry point. Unlike the search tool two
     rules up, which stays precisely because nothing else offers it here. */
  .navrail .right .live-btn { display: none !important; }

  .md-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 200; }
  .md-backdrop.open { opacity: 1; visibility: visible; }
  .mobile-drawer { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(82vw, 340px); background: var(--white); z-index: 201; transform: translateX(100%); transition: transform .24s ease; overflow-y: auto; }
  [dir="ltr"] .mobile-drawer { right: auto; left: 0; transform: translateX(-100%); }
  /* The shadow only while open: closed, the drawer waits just off the screen
     and a 60px blur reached back across the header's edge on every page. */
  .mobile-drawer.open { transform: translateX(0) !important; box-shadow: var(--shadow-lg); }
  html.dark .mobile-drawer { background: color-mix(in srgb, var(--paper), var(--paper-card)); }
  .md-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--tbp-line); }
  .md-logo { display: flex; align-items: center; min-width: 0; color: var(--tbp-text); text-decoration: none; font-family: var(--font-urdu-disp); font-weight: 700; font-size: 18px; line-height: 1.3; }
  .md-logo :is(.mast-logo-img, .mast-icon-img) { max-height: 40px; max-width: 200px; margin: 0; }
  .md-logo .mast-iname { display: flex; align-items: center; gap: 8px; }
  html[dir="rtl"] .md-logo .mast-logo-name .en, html[dir="ltr"] .md-logo .mast-logo-name .ur { display: none; }
  .md-close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ink-700); cursor: pointer; }
  .md-links { display: flex; flex-direction: column; padding: 8px 0; }
  .md-links a { padding: 13px 20px; font-family: var(--font-urdu); font-weight: 600; font-size: 17px; color: var(--ink-900); text-decoration: none; border-bottom: 1px solid var(--tbp-line-2); }
  .md-links a:hover { background: var(--paper-sunken); color: var(--tbp-navy); }
  html.dark .md-links a { color: var(--tbp-text); border-color: #262626; }
  .md-actions { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 28px; margin-top: auto; }
  .md-actions a { text-align: center; padding: 11px; border-radius: var(--btn-radius, var(--r-thumb)); font-family: var(--font-urdu); font-weight: 700; font-size: 15px; text-decoration: none; }
  .md-actions .md-live { background: var(--tbp-live); color: var(--white); }
  /* While one coverage runs, the button is the event: the live word and its headline. */
  .md-actions .md-live-event { display: flex; flex-direction: column; gap: 4px; text-align: start; padding: 12px 14px; }
  .md-live-k { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
  .md-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: livepulse 1.4s ease-in-out infinite; }
  .md-live-t { font-size: 15px; line-height: 1.6; }
  /* The tip line: a standing promise, not an alarm — outlined, in the edition's face. */
  .md-actions .md-tip { background: transparent; color: var(--tbp-text); border: 1px solid var(--tbp-text); font-size: 14px; }

  /* Drawer: search first (opens the overlay), sections as a 2-col grid
     (10 rows → 5), dark-mode toggle in a utility row at the bottom. */
  .md-search { display: flex; align-items: center; gap: 10px; width: calc(100% - 36px); margin: 14px 18px 6px; padding: 11px 14px; border: 1px solid var(--tbp-line); border-radius: var(--r-card); background: var(--paper-sunken); color: var(--ink-500); font-family: var(--font-urdu); font-size: 14px; cursor: pointer; text-align: start; }
  .md-search svg { width: 15px; height: 15px; flex: none; }
  html.dark .md-search { background: var(--ink-50); border-color: var(--ink-150); }
  .md-links { display: grid; grid-template-columns: 1fr 1fr; }
  .md-links a { padding: 13px 16px; font-size: 15px; }
  .md-utils { display: flex; padding: 0 18px 18px; }
  .md-utils .md-dark { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 10px 2px; font-family: var(--font-urdu); font-size: 13.5px; color: var(--ink-500); cursor: pointer; }

  /* ── Mobile tab bar ── Home · Live · Search · Menu. Fixed bottom,
     safe-area aware (installed-PWA / notched phones). Desktop never sees it.
     Columns are AUTO, never a count: this rule read repeat(5, 1fr) for a
     fifth tab (Voice) that f1f9a3a removed from header.html, leaving a dead
     column on every phone. Auto-columns cannot drift from the markup. */
  /* Room for the tab bar at the foot of the page, inside the footer: as the
     body's padding it painted a white band under the dark footer. */
  body footer.site { padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom, 0px)); } /* "body": the base footer rule comes later in this file */
  .tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 190; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--tbp-paper); border-top: 1px solid var(--tbp-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 55px; background: none; border: 0; padding: 0; font-family: var(--font-urdu); font-size: 10.5px; line-height: 1; color: var(--ink-500); text-decoration: none; cursor: pointer; }
  .tb-item svg { width: 21px; height: 21px; }
  .tb-item.active { color: var(--tbp-red); }
  /* The second tab: Latest on a quiet day (a list, and a small red dot for
     fresh news), Live while coverage runs — red, its centre pulsing. */
  .tb-latest-dot { fill: var(--tbp-red); }
  .tb-item.tb-live-on { color: var(--tbp-red); font-weight: 700; }
  .tb-item.tb-live-on svg circle { transform-origin: 12px 12px; animation: livepulse 1.4s ease-in-out infinite; }
  html.dark .tabbar { background: color-mix(in srgb, var(--paper), var(--paper-card)); border-top-color: var(--tbp-line); }
}
@media (min-width: 1025px) {
  .tabbar { display: none; }
}
@media (max-width: 600px) {
  /* The whole left group goes on phones, not just its separators and the
     clock. Once those were hidden it held one item — براہ راست — and the row
     wraps here, so .left took an entire line to itself with everything else
     below it: a band of empty black across the top of the page.

     Hiding it costs nothing. براہ راست is already on this screen twice more,
     as the navrail's red button and as a tab-bar tab; this was the third. Same
     reasoning as the top hamburger in the 1024px block above, dropped because
     "two menu icons on one screen was noise". */
  .topstrip .left { display: none; }
  /* What is left — the theme toggle and the edition links — then sat as one
     group part-way across the strip, reading as centred. It spans the strip
     instead: the toggle at the start edge, the editions at the end edge, where
     they sit on desktop; the rule between them has nothing to divide. */
  .topstrip .right { flex: 1 1 auto; }
  .topstrip .right > .sep { display: none; }
  .topstrip .langs { margin-inline-start: auto; }
}

/* ── Primary nav ─────────────────────────────────────────────── */
/* Header chrome wrapper — own stacking context so the sticky navrail's mega
   menus paint above the breaking bar (a later-DOM positioned sibling). */
.tbp-chrome { position: relative; z-index: 100; }
.navrail { background: var(--white); border-bottom: 1px solid var(--tbp-line); position: sticky; top: 0; z-index: 50; }
.navrail-inner { display: flex; align-items: stretch; height: 56px; }
.navrail .section { display: inline-flex; align-items: center; padding: 0 14px; font-family: var(--font-urdu); font-weight: 600; font-size: calc(15px * var(--tbp-fsx-ui, 1)); color: var(--ink-900); cursor: pointer; transition: color .15s; position: relative; }
.navrail .section:hover { color: var(--tbp-red); }
/* A label never breaks onto two lines (2026-10-31: Safari did, on the Brahui
   menu, which filled the bar to its last pixels in Chrome; Safari measures the
   Arabic a little wider). When the bar is tight, the search field gives way
   first (down to its icon), then the gaps between labels narrow. */
.navrail .section, .navrail .right .live-btn, .navrail .right .tool { white-space: nowrap; }
.navrail .section, .navrail .right .live-btn { flex-shrink: 0; }
.navrail .right { flex-shrink: 1; min-width: 0; }
@media (max-width: 1279px) { .navrail .section { padding-inline: 10px; } }
.navrail .section.has-mega::after { content: "▾"; font-size: calc(9px * var(--tbp-fsx-ui, 1)); margin-inline-start: 6px; color: var(--ink-400); }
html.dark .navrail .section { color: var(--tbp-text); }
.navrail .right { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.navrail .right .tool { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; padding: 0 12px; font-family: var(--font-mono); font-size: calc(11px * var(--tbp-fsx-ui, 1)); letter-spacing: 0.06em; color: var(--ink-700); cursor: pointer; gap: 8px; }
.navrail .right .tool:hover { color: var(--tbp-red); }
.navrail .right .tool svg { width: 14px; height: 14px; }
/* Tip-line button — quiet mono pill */
.nav-tip { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--ink-600); padding: 6px 4px; font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; flex-shrink: 0; white-space: nowrap; transition: color .15s; text-decoration: none; }
.nav-tip:hover { color: var(--red-strong); }
.nav-tip svg { width: 11px; height: 11px; }
.navrail .right .live-btn { background: var(--red); color: var(--white); border-radius: var(--btn-radius, var(--r-thumb)); padding: 8px 14px 8px 12px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-urdu); font-weight: 600; font-size: calc(14px * var(--tbp-fsx-ui, 1)); cursor: pointer; transition: background .18s ease; }
/* Play arrow — white on the red pill by default; turns black on
   hover/focus with a small forward nudge (reads as a "watch live" control). */
.navrail .right .live-btn::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 8px; border-color: transparent transparent transparent var(--white); transition: border-color .18s ease, transform .18s ease; }
[dir="rtl"] .navrail .right .live-btn::before { border-width: 6px 8px 6px 0; border-color: transparent var(--white) transparent transparent; }
.navrail .right .live-btn:hover, .navrail .right .live-btn:focus-visible { background: var(--red-strong); }
.navrail .right .live-btn:hover::before, .navrail .right .live-btn:focus-visible::before { border-color: transparent transparent transparent var(--ink-900); transform: translateX(2px); }
[dir="rtl"] .navrail .right .live-btn:hover::before, [dir="rtl"] .navrail .right .live-btn:focus-visible::before { border-color: transparent var(--ink-900) transparent transparent; transform: translateX(-2px); }

/* ── The header's look (Studio ▸ Design ▸ Header; inc/design.php adds the
   body classes). The red was the homepage ticker's alone, so a section or an
   article had no red band at all (2026-09-29): the menu bar can carry it on
   every page, the ticker then sits pale under it, and search takes the tip
   line's place as a field. ── */
/* :root lifts these over html.dark .navrail / .breaking.bn (flat dark and flat red) as the
   [dir="rtl"] rules did, and keeps the calm ticker under the pale one (html … [data-mode]). */
:root .tbp-nav-red .navrail { background: var(--red-grain) 0 0 / var(--red-grain-size), var(--red-grad); background-blend-mode: overlay, normal; border-bottom: 0; }
.tbp-nav-red .navrail .section { color: var(--navbar-fg); }
.tbp-nav-red .navrail .section:hover, .tbp-nav-red .navrail .section[aria-current="page"] { color: var(--white); }
.tbp-nav-red .navrail .section[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--white); }
.tbp-nav-red .navrail .section.has-mega::after { color: var(--navbar-fg); }
.tbp-nav-red .navrail .right .tool, .tbp-nav-red .nav-tip { color: var(--white); }
.tbp-nav-red .navrail .right .tool:hover, .tbp-nav-red .nav-tip:hover { color: var(--white); opacity: .85; }
/* The Live button, while coverage runs: white on the red bar. */
.tbp-nav-red .navrail .right .live-btn { background: var(--white); color: var(--red-strong); }
[dir="rtl"] .tbp-nav-red .navrail .right .live-btn::before { border-color: transparent var(--red-strong) transparent transparent; }
[dir="ltr"] .tbp-nav-red .navrail .right .live-btn::before { border-color: transparent transparent transparent var(--red-strong); }
.tbp-nav-red .navrail .right .live-btn:hover, .tbp-nav-red .navrail .right .live-btn:focus-visible { background: var(--paper-sunken); }
.navrail .current, .navrail .section[aria-current="page"] { color: var(--tbp-red); }
.tbp-nav-red .navrail .section[aria-current="page"] { color: var(--white); }
/* Search as a field: the placeholder beside the icon, a box shape. */
.tool-ph { display: none; }
.tbp-search-field .tool-ph { display: inline; overflow: hidden; text-overflow: ellipsis; }
.tbp-search-field .navrail .right .tool svg { flex: none; }
.tbp-search-field .navrail .right .tool { gap: 8px; flex: 0 1 200px; width: 200px; min-width: 38px; overflow: hidden; height: 36px; padding: 0 12px; justify-content: flex-start; border: 1px solid var(--tbp-line-2); border-radius: var(--btn-radius, var(--r-thumb)); background: var(--paper-sunken); color: var(--ink-500); font-family: var(--font-urdu); font-size: 13px; letter-spacing: 0; text-transform: none; }
.tbp-search-field .navrail .right .tool:hover { color: var(--ink-900); border-color: var(--ink-300); }
.tbp-nav-red.tbp-search-field .navrail .right .tool { background: var(--navbar-field-bg); border-color: var(--navbar-field-line); color: var(--navbar-fg); }
.tbp-nav-red.tbp-search-field .navrail .right .tool:hover { color: var(--white); border-color: var(--white); opacity: 1; }
/* The pale ticker, desktop (phones keep the red band): a light row with a red
   label; a live coverage or a story marked Breaking washes it light red and
   gives the label the red pill with its pulsing dot. */
@media (min-width: 1025px) {
  html .tbp-ticker-pale .breaking.bn, html .tbp-ticker-pale .breaking.bn[data-mode] { background: var(--bn-pale-bg); color: var(--tbp-text); border-bottom: 1px solid var(--bn-pale-line); }
  html .tbp-ticker-pale .breaking.bn[data-mode="live"], html .tbp-ticker-pale .breaking.bn[data-mode="breaking"] { background: var(--bn-pale-wash); border-bottom-color: var(--bn-pale-wash-line); }
  .tbp-ticker-pale .bn[data-mode="calm"] .bn-badge { color: var(--red-strong); border-inline-end-color: var(--bn-pale-line); }
  html.dark .tbp-ticker-pale .bn[data-mode="calm"] .bn-badge { color: var(--red-lift); } /* the dark red was ~2:1 on the dark row */
  .tbp-ticker-pale .bn[data-mode="live"] .bn-badge, .tbp-ticker-pale .bn[data-mode="breaking"] .bn-badge { background: var(--red); color: var(--white); }
  .tbp-ticker-pale .bn[data-mode="live"] .bn-dot, .tbp-ticker-pale .bn[data-mode="breaking"] .bn-dot { background: var(--white); }
  .tbp-ticker-pale .bn-text { color: var(--tbp-text); }
  .tbp-ticker-pale .bn-time { color: var(--ink-500); border-color: var(--bn-pale-line); }
  .tbp-ticker-pale .bn-progress { background: var(--red); }
  .tbp-ticker-pale .bn-inner .bn-cat-dot { background: var(--bn-cat-dot-pale); }
  .tbp-ticker-pale .bn-live-item::before { background: var(--bn-pale-line); }
  .tbp-ticker-pale .bn-more { background: var(--bn-pale-line); color: var(--tbp-text); }
  .tbp-ticker-pale .bn-more-n { background: var(--red); color: var(--white); }
  .tbp-ticker-pale .bn-livechip { background: var(--red); color: var(--white); }
  .tbp-ticker-pale .bn-livechip .d { background: var(--white); }
  .tbp-ticker-pale .bn-live-n { background: var(--white); color: var(--red); }
}
/* Phones: the brand line under the masthead on every page but the homepage,
   whose red ticker sits right there. */
@media (max-width: 1024px) {
  .tbp-mast-rule:not(.home) .mast { position: relative; }
  .tbp-mast-rule:not(.home) .mast::after { content: ""; position: absolute; bottom: 0; inset-inline: calc(50% - 50vw); height: 4px; background: var(--red-grad); }
}

/* ── Mega menu (hover panel under a nav section) ─────────────── */
.navrail .section .mega { position: absolute; top: 100%; inset-inline-start: 0; min-width: 560px; background: var(--white); border: 1px solid var(--tbp-line); border-top: 3px solid var(--tbp-red); box-shadow: var(--shadow-lg); padding: 20px; display: grid; grid-template-columns: 1fr 240px; gap: 24px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.navrail .section:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
html.dark .navrail .section .mega { background: var(--tbp-card); border-color: var(--tbp-line); }
.mega .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-content: start; }
.mega .m-link { font-family: var(--font-urdu); font-weight: 500; font-size: 14px; color: var(--ink-700); padding: 6px 0; border-bottom: 1px solid var(--tbp-line); cursor: pointer; }
.mega .m-link:hover { color: var(--tbp-red); }
html.dark .mega .m-link { color: var(--tbp-text-2); }
.mega .m-feat { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.mega .m-fimg { display: block; aspect-ratio: 16/10; border-radius: var(--r-card); background: linear-gradient(135deg, var(--ink-300), var(--ink-600)) center/cover no-repeat; }
.mega .m-ftag { display: block; font-family: var(--font-urdu); font-weight: 700; font-size: 11px; color: var(--tbp-red); }
.mega .m-fttl { display: block; font-family: var(--font-urdu); font-weight: 600; font-size: 13px; line-height: 1.6; color: var(--ink-900); margin-top: 4px; transition: color .15s; }
.mega .m-feat:hover .m-fttl { color: var(--red); }
html.dark .mega .m-fttl { color: var(--tbp-text); }

/* ── Breaking news bar ───────────────────────────────────────── */
.breaking.bn { position: relative; background: var(--red-strong); color: var(--white); }
.bn-inner { display: flex; align-items: center; gap: 16px; height: 54px; }
.bn-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--red); font-family: var(--font-urdu); font-weight: 800; font-size: 12.5px; letter-spacing: .03em; padding: 6px 14px; border-radius: var(--r-pill); }
.bn-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
/* One label, by the list (parts/breaking-bar.html sets data-mode): live,
   breaking, or an ordinary day. Before the script runs the bar is hidden. */
.bn-lbl { display: none; }
.bn[data-mode="live"] .bn-lbl-live, .bn[data-mode="breaking"] .bn-lbl-breaking, .bn[data-mode="calm"] .bn-lbl-calm, .bn:not([data-mode]) .bn-lbl-breaking { display: inline; }
/* An ordinary day: the bar is the latest headlines and says so — the red as
   a gradient, the label as plain text, no pill and no pulsing dot. It used to
   say "Breaking" every day over whatever was newest. */
:root .breaking.bn[data-mode="calm"] { background: var(--red-grain) 0 0 / var(--red-grain-size), var(--red-grad); background-blend-mode: overlay, normal; }
.bn[data-mode="calm"] .bn-badge { background: none; color: var(--white); padding-block: 6px; padding-inline: 0 14px; border-radius: 0; border-inline-end: 1px solid var(--bn-calm-rule); }
.bn[data-mode="calm"] .bn-dot { display: none; }
.bn-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; animation: bn-pulse 1.7s ease-out infinite; }
@keyframes bn-pulse { 0%{transform:scale(.55);opacity:.8} 100%{transform:scale(1.7);opacity:0} }
.bn-body { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 14px; }
.bn-time { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-thumb); padding: 3px 8px; line-height: 1; }
.bn-cat-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--bn-cat-dot); }
.bn-panel .bn-cat-dot { background: var(--bn-cat-dot-panel); }
.bn-text { font-family: var(--font-urdu); font-weight: 600; font-size: 15px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color .15s; }
.bn-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(9px); pointer-events: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.bn-item.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bn-item:hover .bn-text { text-decoration: underline; text-underline-offset: 3px; }
.bn-wire-cur { position: relative; flex: 1; min-width: 0; height: 100%; }
.bn-progress { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; background: rgba(255,255,255,.9); border-radius: var(--r-thumb); }
html[dir="rtl"] .bn-progress { transform-origin: 100% 50%; } /* the bar fills from the reading start */
@media (prefers-reduced-motion: reduce) { .bn-progress { transition: none !important; } }
.bn-more { flex: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0; background: rgba(255,255,255,.09); color: var(--white); border-radius: var(--btn-radius, var(--r-pill)); padding: 6px 12px; font-family: var(--font-urdu); font-weight: 700; font-size: 12px; transition: background .15s; }
.bn-more:hover { background: rgba(255,255,255,.17); }
.bn-more-n { background: var(--white); color: var(--red); font-family: var(--font-mono); font-weight: 600; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; }
/* Live-coverage row in the ticker/panel: pulsing براہ راست pill instead of a time chip. */
.bn-livechip { display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--red); font-family: var(--font-urdu); font-weight: 800; font-size: 11px; line-height: 1; padding: 4px 10px; border-radius: var(--r-pill); flex: none; }
.bn-livechip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: livepulse 1.4s ease-in-out infinite; }
/* The counts: a live row's updates so far; an updated story's, from its second. */
.bn-live-n, .bn-upd-n { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; font-family: var(--date-font); font-weight: 700; font-size: 10px; line-height: 15px; font-variant-numeric: tabular-nums; }
.bn-live-n { margin-inline-start: 2px; border-radius: var(--r-pill); background: var(--red); color: var(--white); }
.bn-upd-n { margin-inline-start: 6px; border-radius: calc(var(--r-thumb) / 2); background: var(--white); color: var(--tbp-red); }
.bn-chev { font-size: 10px; transition: transform .3s; opacity: .85; }
.bn.is-open .bn-chev { transform: rotate(180deg); }
.bn-panel { position: absolute; top: 100%; inset-inline: 0; background: #101010; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 28px 60px rgba(0,0,0,.45); max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1); z-index: 60; }
/* Constrain dropdown content to the site width so lines stay readable on wide
   screens (the navy bar background still spans edge-to-edge). */
.bn-panel-wrap { max-width: var(--maxw-page); margin: 0 auto; padding: 0 28px; }
.bn-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.bn-panel-title { display: inline-flex; align-items: center; gap: 8px; color: var(--red-lift); font-family: var(--font-urdu); font-weight: 800; font-size: 13px; }
.bn-panel-title .bn-dot { background: var(--red-lift); }
.bn-panel-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.bn-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bn-row:last-child { border-bottom: 0; }
.bn-row-cat { flex: none; min-width: 104px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-urdu); font-weight: 700; font-size: 11.5px; color: rgba(255,255,255,.72); }
.bn-row-tx { flex: 1; min-width: 0; font-family: var(--font-urdu); font-weight: 600; font-size: 15px; color: var(--white); line-height: 1.5; transition: color .15s; }
.bn-row:hover .bn-row-tx { text-decoration: underline; text-underline-offset: 3px; }
.bn-row-time { flex: none; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.bn-roll { flex: 1; min-width: 0; height: 54px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(180deg,transparent,#000 26%,#000 74%,transparent); mask-image: linear-gradient(180deg,transparent,#000 26%,#000 74%,transparent); }
.bn-roll-track { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.6,.02,.2,1); }
.bn-roll-line { height: 26px; display: flex; align-items: center; gap: 11px; opacity: .26; transition: opacity .6s; }
.bn-roll-line.is-active { opacity: 1; }
.bn-roll-line .bn-text { font-size: 14px; }
.bn-live { flex: 1; min-width: 0; height: 100%; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent); mask-image: linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent); }
.bn-live-track { display: flex; align-items: center; height: 100%; width: max-content; white-space: nowrap; animation: bn-marquee 64s linear infinite; }
.bn.is-live:hover .bn-live-track { animation-play-state: paused; }
.bn-live-item { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 0 26px; height: 100%; }
.bn-live-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 15px; background: rgba(255,255,255,.16); }
.bn-live-item .bn-text { font-size: 14px; font-weight: 500; }
@keyframes bn-marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
/* Right to left the track starts at the window's right edge and runs off to
   the LEFT, so it has to travel right: moving it left (the LTR direction)
   emptied the window within a second -- on a phone the band showed its
   badge and nothing else. The track holds the items twice, so +50% loops as
   seamlessly as -50% does. */
[dir="rtl"] .bn-live-track { animation-name: bn-marquee-rtl; }
@keyframes bn-marquee-rtl { from{transform:translateX(0)} to{transform:translateX(50%)} }
@media (prefers-reduced-motion: reduce){ .bn-live-track{ animation: none; } }
@media (max-width: 720px) { .bn-time { display: none; } .bn-badge { padding: 6px 11px; } .bn-inner { gap: 12px; } .bn-row-cat { min-width: 84px; } }

/* ── Footer (footer.site) ────────────────────────────────────── */
footer.site { background: #0d0d0d; color: var(--white); padding: 56px 0 28px; margin-top: 24px; }
/* Identity strip — the two things TBP stands on: protected sources, reader money. */
footer.site .ft-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 52px; }
footer.site .ft-cta > a { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--btn-radius, var(--r-card)); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
footer.site .ft-cta > a:hover { transform: translateY(-2px); }
footer.site .ft-tip { background: var(--red-grain) 0 0 / var(--red-grain-size), var(--red-grad); background-blend-mode: overlay, normal; color: var(--white); }
/* Studio ▸ Colour ▸ Grain on red surfaces: off. */
.tbp-red-smooth { --red-grain: none; }
footer.site .ft-tip:hover { box-shadow: 0 14px 40px color-mix(in srgb, var(--red) 35%, transparent); }
footer.site .ft-fund { background: #161616; border: 1px solid #262626; color: var(--white); }
footer.site .ft-fund:hover { box-shadow: 0 14px 40px rgba(0,0,0,.5); border-color: #3a3a3a; }
footer.site .ft-cta .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
footer.site .ft-fund .ic { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red-lift); }
footer.site .ft-cta .ic svg { width: 20px; height: 20px; }
footer.site .ft-cta .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
footer.site .ft-cta .tx b { font-family: var(--font-urdu); font-weight: 700; font-size: calc(16px * var(--tbp-fsx-foot, 1)); }
footer.site .ft-cta .tx span { font-family: var(--font-urdu); font-size: calc(12.5px * var(--tbp-fsx-foot, 1)); line-height: 1.7; color: rgba(255,255,255,.72); }
footer.site .ft-cta .go { flex: none; font-family: var(--font-urdu); font-weight: 700; font-size: calc(13.5px * var(--tbp-fsx-foot, 1)); white-space: nowrap; }
footer.site .ft-fund .go { color: var(--red-text-dark); }
@media (max-width: 860px) { footer.site .ft-cta { grid-template-columns: 1fr; } }
/* One explicit track for the brand; the link columns are AUTO, because how
   many of them render depends on how many have links this site can resolve.
   Five hardcoded tracks left an empty one behind every dropped column. */
footer.site .top { display: grid; grid-template-columns: 1.6fr; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
footer.site .brand .en { font-family: var(--font-display); font-weight: 800; font-size: calc(30px * var(--tbp-fsx-foot, 1)); color: var(--white); letter-spacing: -0.018em; line-height: 1; }
footer.site .brand .ft-logo { display: block; width: fit-content; line-height: 0; margin-bottom: 12px; }
footer.site .brand .ft-logo-img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--ft-logo-h, 64px); }
footer.site .brand .ur { font-family: var(--font-urdu-disp); font-weight: 400; font-size: calc(22px * var(--tbp-fsx-foot, 1)); color: var(--white); margin-top: 6px; line-height: 1.4; }
footer.site .brand p { font-family: var(--font-urdu); font-weight: 400; font-size: calc(13px * var(--tbp-fsx-foot, 1)); line-height: 1.7; color: var(--ink-400); margin-top: 14px; }
footer.site .brand .socials { margin-top: 18px; display: flex; gap: 8px; }
footer.site .brand .socials a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink-700); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-300); }
footer.site .brand .socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
footer.site h4 { font-family: var(--font-mono); font-size: calc(10px * var(--tbp-fsx-foot, 1)); text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,.62); margin: 0 0 14px; }
/* Direct children only — nested widgets (.socials, .sf-btns) style their own links. */
footer.site .col > a { display: block; padding: 6px 0; font-family: var(--font-urdu); font-size: calc(14px * var(--tbp-fsx-foot, 1)); color: var(--ink-200); transition: color .15s; }
footer.site .col > a:hover { color: var(--white); }
footer.site .languages { margin-top: 22px; padding-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: calc(10px * var(--tbp-fsx-foot, 1)); color: rgba(255,255,255,.62); letter-spacing: 0.12em; text-transform: uppercase; }
footer.site .languages a { color: var(--ink-200); padding: 6px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill); }
footer.site .languages a.ur { font-family: var(--font-urdu); font-size: calc(13px * var(--tbp-fsx-foot, 1)); text-transform: none; padding: 4px 14px; letter-spacing: 0; }
footer.site .languages a:hover { background: var(--ink-800); border-color: var(--ink-700); }
/* The legal bar was a plain <div> whose anchors carried inline margins; it is a
   rendered row now, so the spacing lives here and does not have to be retyped
   onto every link. */
.ft-legal { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site .bottom { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: calc(11px * var(--tbp-fsx-foot, 1)); color: rgba(255,255,255,.62); letter-spacing: 0.04em; flex-wrap: wrap; gap: 16px; }
footer.site .bottom .left { display: flex; gap: 24px; }
footer.site .bottom a { color: var(--ink-300); }
footer.site .bottom a:hover { color: var(--white); }
@media (max-width: 880px) {
  footer.site .top { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  footer.site .col.brand { grid-column: 1 / -1; } /* brand full-width, link cols pair up */
}
@media (max-width: 640px) {
  /* Phones: NEVER a single 23-link column. Brand full-width, then the four
     link groups as a 2x2 grid; tidy pill grids; centered legal row. */
  footer.site { padding-top: 40px; }
  footer.site .top { grid-template-columns: 1fr 1fr; grid-auto-flow: row; gap: 26px 18px; padding-bottom: 32px; }
  footer.site .col.brand { grid-column: 1 / -1; }
  footer.site .col > a { padding: 7px 0; font-size: calc(13.5px * var(--tbp-fsx-foot, 1)); }
  footer.site .ft-cta { margin-bottom: 36px; gap: 12px; }
  footer.site .ft-cta > a { padding: 16px 18px; gap: 12px; }
  .sf-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .sf-btn { justify-content: center; }
  footer.site .languages span { flex-basis: 100%; } /* label on its own line, pills row under it */
  footer.site .bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  footer.site .bottom .left { justify-content: center; }
}
/* The phone footer (the mobile plan, M3): ~1,450px → ~640px, nothing removed.
   The tip card stays a card; reader-funded becomes one line; the follow row is
   icons (the names stay for screen readers); the link lists open on a tap (the
   footer script makes each title a button); pills and legal links get 44px to
   tap and a 12px floor. Desktop is untouched: every list stays open there. */
.ft-acc { all: unset; display: block; cursor: default; }
.ft-acc-ch { display: none; }
@media (max-width: 640px) {
  footer.site .ft-cta { margin-bottom: 18px; }
  footer.site .ft-fund { padding: 0; min-height: 44px; background: none; border: 0; gap: 10px; }
  footer.site .ft-fund:hover { box-shadow: none; transform: none; }
  footer.site .ft-fund .ic { width: auto; height: auto; background: none; }
  footer.site .ft-fund .tx > span { display: none; } /* the sub-line only: the title's words are a span inside <b> */
  footer.site .ft-fund .tx b { font-size: 14px; font-weight: 600; }
  footer.site .top { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; border-bottom: 0; }
  footer.site .col.brand { padding-bottom: 20px; }
  footer.site .social-follow .sf-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  footer.site .social-follow .sf-btn { width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  footer.site .social-follow .sf-btn svg { width: 18px; height: 18px; }
  footer.site .top .col:not(.brand) { border-top: 1px solid var(--ft-rule); }
  footer.site .top .col:not(.brand) h4 { margin: 0; font-family: var(--font-urdu); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--white); }
  .ft-acc { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; cursor: pointer; }
  .ft-acc:focus-visible { outline: 2px solid var(--red-lift); outline-offset: 2px; }
  .ft-acc-ch { display: inline-block; font-size: 12px; color: var(--ink-400); transition: transform .2s ease; }
  footer.site .col.is-open .ft-acc-ch { transform: rotate(180deg); }
  footer.site .top .col.ft-closable:not(.is-open) > a { display: none; }
  footer.site .top .col.is-open { padding-bottom: 10px; }
  footer.site .col > a { padding: 10px 0; font-size: 14px; }
  footer.site .languages { margin-top: 12px; }
  footer.site .languages a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 16px; font-size: 13px; }
  footer.site .bottom { font-family: var(--font-urdu); font-size: 12px; letter-spacing: 0; }
  footer.site .bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── Social-follow (footer) ──────────────────────────────────── */
.social-follow { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.sf-lbl {sf-lbl}
.sf-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--btn-radius, var(--r-card)); cursor: pointer; white-space: nowrap; font-family: var(--font-urdu); font-weight: 600; font-size: 13px; border: 1px solid #2a2a2a; color: var(--ink-300); transition: background-color .15s, border-color .15s, color .15s; background: none; text-decoration: none; }
.sf-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sf-btn.wa:hover { background: var(--brand-whatsapp); border-color: var(--brand-whatsapp); color: var(--white); }
.sf-btn.tg:hover { background: var(--brand-telegram-on); border-color: var(--brand-telegram-on); color: var(--white); }
.sf-btn.yt:hover { background: var(--brand-youtube-on); border-color: var(--brand-youtube-on); color: var(--white); }
.sf-btn.x:hover { background: var(--white); border-color: var(--white); color: #000; }
.sf-btn.facebook:hover { background: var(--brand-facebook-on); border-color: var(--brand-facebook-on); color: var(--white); }
.sf-btn.instagram:hover { background: var(--brand-instagram-on); border-color: var(--brand-instagram-on); color: var(--white); }
.sf-btn.tiktok:hover { background: var(--white); border-color: var(--white); color: #000; }
.sf-btn.linkedin:hover { background: var(--brand-linkedin); border-color: var(--brand-linkedin); color: var(--white); }
.sf-btn.threads:hover { background: var(--white); border-color: var(--white); color: #000; }
.sf-btn.mastodon:hover { background: var(--brand-mastodon-on); border-color: var(--brand-mastodon-on); color: var(--white); }
.sf-btn.bluesky:hover { background: var(--brand-bluesky-on); border-color: var(--brand-bluesky-on); color: var(--white); }
.sf-btn.nostr:hover { background: var(--brand-nostr); border-color: var(--brand-nostr); color: var(--white); }
.sf-btn.substack:hover { background: var(--brand-substack-on); border-color: var(--brand-substack-on); color: var(--white); }
.sf-btn.google-news:hover { background: var(--brand-google-news-on); border-color: var(--brand-google-news-on); color: var(--white); }
.sf-btn.apple-news:hover { background: var(--brand-apple-news-on); border-color: var(--brand-apple-news-on); color: var(--white); }
.sf-btn.flipboard:hover { background: var(--brand-flipboard); border-color: var(--brand-flipboard); color: var(--white); }
.sf-btn.feedly:hover { background: var(--brand-feedly-on); border-color: var(--brand-feedly-on); color: var(--white); }


/* ── Search overlay ──────────────────────────────────────────── */
/* The overlay scrolls itself (the page under it is locked): with a phone's
   keyboard up, half the screen is left, and results below it were
   unreachable. */
.search-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(5,5,5,.88); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .2s ease; display: flex; align-items: flex-start; justify-content: center; padding: 64px 20px; overflow-y: auto; overscroll-behavior: contain; }
.search-overlay.open { opacity: 1; pointer-events: all; }
/* overflow: clip, not hidden: a hidden box can still be scrolled, and on a
   phone (a larger system text size, a wider fallback font) a row a few px too
   wide let Chrome scroll the whole panel sideways to show the caret — the
   search icon and the close button both cut off. A clipped box never scrolls. */
.search-box { width: 100%; max-width: 740px; background: var(--tbp-card); border-radius: var(--r-card); overflow: hidden; overflow: clip; box-shadow: 0 32px 80px rgba(0,0,0,.45); transform: translateY(-16px); transition: transform .2s ease; }
.search-overlay.open .search-box { transform: translateY(0); }
.search-input-row { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--tbp-line); }
.search-input-row svg { width: 20px; height: 20px; color: var(--tbp-text-3); flex-shrink: 0; }
.search-input-row input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: var(--font-urdu); font-size: 22px; font-weight: 500; color: var(--tbp-text); }
.search-input-row input::placeholder { color: var(--tbp-text-3); }
.s-close { width: 34px; height: 34px; border-radius: 50%; background: var(--tbp-line); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--tbp-text-2); flex-shrink: 0; font-size: 18px; line-height: 1; }
.s-close:hover { background: var(--tbp-red); color: var(--white); }
/* Scope toggle — only on section pages: search THIS section vs all of TBP. */
.search-scope[hidden] { display: none; }
.search-scope { padding: 12px 24px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scope-pill { background: none; border: 1px solid var(--tbp-line-2, var(--tbp-line)); padding: 5px 14px; border-radius: var(--r-pill); font-family: var(--font-urdu); font-size: 12px; font-weight: 700; color: var(--tbp-text-2); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.scope-pill:hover { border-color: var(--tbp-red); color: var(--tbp-red); }
.scope-pill.active { background: var(--tbp-red); border-color: var(--tbp-red); color: var(--white); }
.search-box > * { min-width: 0; max-width: 100%; }
.search-pills { padding: 12px 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; border-bottom: 1px solid var(--tbp-line); font-family: var(--font-urdu); font-size: 12px; color: var(--tbp-text-3); }
.search-pill { background: var(--tbp-line); padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; color: var(--tbp-text-2); cursor: pointer; }
.search-pill:hover { background: var(--tbp-red); color: var(--white); }
/* Scoped to the overlay: WordPress gives <body> the class "search-results"
   on a search page, and this rule padded the whole page 24px each side. */
.search-box .search-results { min-height: 160px; padding: 12px 24px; }
.search-empty { padding: 36px 0; text-align: center; font-family: var(--font-urdu); font-size: 15px; color: var(--tbp-text-3); }
.s-result { display: block; padding: 12px 0; border-bottom: 1px solid var(--tbp-line); cursor: pointer; text-decoration: none; }
.s-result:last-child { border-bottom: 0; }
.s-result:hover .s-title { color: var(--tbp-red); }
.s-all { display: block; padding: 14px 0 4px; font-family: var(--font-urdu); font-size: 14.5px; font-weight: 600; color: var(--tbp-red); text-decoration: none; text-align: center; }
.s-all:hover { text-decoration: underline; }
.s-cat { font-family: var(--font-urdu); font-size: 12px; color: var(--tbp-red); font-weight: 700; margin-bottom: 3px; }
@media (max-width: 600px) {
  .search-overlay { padding: 12px 12px 24px; }
  .search-input-row { padding: 14px 16px; gap: 10px; }
  .search-input-row input { font-size: 18px; }
  .search-pills, .search-scope { padding-inline: 16px; }
  .search-box .search-results { padding: 4px 16px 12px; }
}
.s-title { color: var(--tbp-text); }
html.dark .search-box { background: var(--ink-50); }
html.dark .s-close { background: var(--ink-150); }
html.dark .search-pill { background: #2a2a2a; color: var(--tbp-text-2); }

/* ── Keyboard focus: one ring everywhere (Hallmark audit, 2026-10-31). The
   browser's own ring was all but invisible on the dark top strip, the red
   menu bar and the footer, and the search field had none. :where() keeps it
   at no weight, so a component's own focus style still wins. ── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.topstrip, footer.site, .tbp-nav-red .navrail, .tbp-livetoast { --focus-ring: #fff; }
.search-input-row:focus-within { box-shadow: inset 0 -2px 0 var(--red); }
/* Headlines: no last line of one word. "pretty", not "balance": balance cuts a
   long first line short to match the second and leaves an empty block beside
   a two-line story headline (0.9.211 regression). */
:where(h1, h2, h3) { text-wrap: pretty; }

/* ── Scroll-reveal (class added by app.js; reduced-motion users never get it) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ── Category / section archive — from the claude.ai/design "section-ur" handoff ──
   Red gradient header band + count + toolbar, essay-card grid, custom pager.
   Local names are pure ALIASES into the global design system, so the section
   follows Global Styles (one-place colour) + dark mode automatically — no
   hardcoded hex here. (--ink-* and --red inherit straight from tokens.css.) */
.sec-page {
  --red:        var(--brand-600);
  --red-strong: color-mix(in srgb, var(--brand-600), #000 20%);
  --red-lift:   color-mix(in srgb, var(--brand-600), #fff 26%);
  --hair:   var(--ink-150);
  --sunken: var(--paper-sunken);
  --card:   var(--paper-card);
  --disp: var(--font-display);
  --mono: var(--font-mono);
  --ur:   var(--font-urdu);
}

/* header — flat, restrained (retired the red gradient band to match the article page) */
.ah-band { padding:2px 0 24px; margin-top:4px; color:var(--ink-900); border-bottom:1px solid var(--hair); }
.ah-eyebrow {ah-eyebrow}
.ah-main { display:flex; align-items:flex-end; justify-content:space-between; gap:48px; }
.ah-title { font-family:var(--ur); font-weight:700; font-size:clamp(34px,4.6vw,52px); line-height:1.22; margin:0; color:var(--ink-900); letter-spacing:-.01em; }
.ah-sf { font-family:var(--ur); font-weight:400; font-size:19px; line-height:1.9; color:var(--ink-600); margin:16px 0 0; max-width:58ch; }
/* A Writer's Description on their page, under the note: the same voice, a little smaller. */
.ah-about { font-family:var(--ur); font-size:16.5px; line-height:1.9; color:var(--ink-600); margin:10px 0 0; max-width:62ch; }
.ah-about p { margin:0 0 8px; }
.ah-count { text-align:center; flex:none; }
.ah-count b { display:block; font-family:var(--disp); font-weight:700; font-size:52px; line-height:.86; color:var(--ink-900); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.ah-count .lbl { display:block; font-family:var(--ur); font-size:13px; color:var(--ink-500); margin-top:10px; }
.ah-count .upd { display:block; font-family:var(--mono); font-size:11px; letter-spacing:.06em; color:var(--ink-500); margin-top:6px; }

/* toolbar — single row under the header, no double rule */
.ah-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; padding:16px 0 0; }
.ah-tools { display:flex; align-items:center; gap:14px; }
.ah-sort { display:flex; align-items:center; gap:8px; font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-500); }
.ah-sort select { font-family:var(--ur); font-size:13px; color:var(--ink-700); background:var(--card); border:1px solid var(--ink-400); /* a field's edge at 3:1 or more */ border-radius:var(--btn-radius, var(--r-thumb)); padding:6px 12px; cursor:pointer; }
.ah-rss { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid var(--hair); border-radius:var(--btn-radius, var(--r-thumb)); color:var(--ink-400); cursor:pointer; text-decoration:none; transition:color .15s, border-color .15s; }
.ah-rss:hover { color:var(--red); border-color:var(--red); }

/* essay grid — flat cards, 7:4 images, hairline meta */
.essay-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:40px 30px; margin-top:42px; }
.arch-empty { grid-column: 1 / -1; font-family: var(--font-urdu); font-size: 16px; color: var(--ink-500); padding: 28px 0; margin: 0; }
.ecard { position:relative; display:flex; flex-direction:column; cursor:pointer; }
/* The whole card opens the story through its headline's own link, stretched
   over the card — a real link, so Ctrl/⌘-click, middle-click and Shift-click
   open a new tab or window as anywhere else. A script used to catch the click
   and go to the story in the same tab, whatever keys were held. */
.ec-title a::after { content:""; position:absolute; inset:0; }
.ec-img { position:relative; aspect-ratio:7/4; border-radius:var(--r-card); overflow:hidden; background:var(--sunken); background-size:cover; background-position:center; transition:opacity .15s ease; }
.ec-img::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 46%,rgba(0,0,0,.42)); }
.ecard:hover .ec-img { opacity:.92; }
.ec-kk { display: block; width: max-content; margin: 17px 0 8px; } /* the label itself is .tbp-cat */
.ec-title { margin:0; text-align:right; text-wrap:pretty; }
.ec-title a { color:var(--ink-900); text-decoration:none; transition:color .15s; }
.ecard:hover .ec-title a { color:var(--red); }
.ec-dek { font-family:var(--ur); font-weight:400; font-size:14px; line-height:1.95; color:var(--ink-500); margin:11px 0 0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ec-date { font-family:var(--date-font); font-size:var(--date-size); font-weight:var(--date-weight); color:var(--date-color); margin-top:auto; padding-top:14px; }

/* pager — mono numerals (English), flat (paginate_links output) */
.sec-pager { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:60px; flex-wrap:wrap; }
.sec-pager .page-numbers { min-width:42px; height:42px; padding:0 15px; display:inline-flex; align-items:center; justify-content:center; font-family:var(--mono); font-size:13px; color:var(--ink-700); background:transparent; border:1px solid var(--hair); border-radius:var(--r-thumb); text-decoration:none; transition:border-color .15s, color .15s; }
.sec-pager a.page-numbers:hover { border-color:var(--red); color:var(--red); }
.sec-pager .page-numbers.current { background:var(--red-strong); border-color:var(--red-strong); color:#fff; font-weight:600; }
.sec-pager .page-numbers.dots { border:0; min-width:20px; color:var(--ink-400); }
.sec-pager .prev, .sec-pager .next { font-family:var(--ur); font-weight:600; font-size:14px; }

@media (max-width:1000px){ .essay-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:720px){
  .ah-band { padding:2px 0 20px; }
  .ah-main { flex-direction:column; align-items:flex-start; gap:22px; }
  .ah-count { text-align:right; }
  .essay-grid { grid-template-columns:1fr; }
}
.ah-upd { display: none; }
/* A phone (the mobile plan, M2): the title and its count on one ruled line,
   "last updated" in the edition's words, one sort menu. The 52px number, the
   stories-per-page menu, the search and RSS icons took ~330px before the first
   story (search is the tab bar's; RSS stays in the footer and on desktop). */
@media (max-width:720px){
  .ah-band { padding: 0 0 10px; border-bottom: 2px solid var(--ink-900); }
  .ah-main { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ah-title { font-size: 30px; }
  .ah-sf { font-size: 15px; margin-top: 8px; }
  .ah-count { display: flex; align-items: baseline; gap: 5px; text-align: end; flex: none; }
  .ah-count b { display: inline; font-family: var(--date-font); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--ink-700); }
  .ah-count .lbl { display: inline; margin: 0; font-size: 13px; }
  .ah-count .upd, .ah-search, .ah-show, .ah-rss, .ah-sort-w { display: none; }
  .ah-bar { padding-top: 10px; flex-wrap: nowrap; }
  .ah-upd { display: block; font-family: var(--date-font); font-size: 12px; color: var(--date-color); }
  .ah-tools { margin-inline-start: auto; }
  .ah-sort select { min-height: 40px; }
  .essay-grid { margin-top: 20px; }
  html.dark .ah-band { border-bottom-color: var(--tbp-text); }
}

/* Per-role typography hooks (TBP Studio ▸ Design ▸ Typography).
   Base values live in the rules above; Studio supplies only a multiplier or a
   family, so this stylesheet stays the single source of truth for the design. */
footer.site { font-family: var(--tbp-ff-foot, inherit); }
/* `inherit` is the wrong fallback for anything that HAS a font of its own.
   .navrail declares none, so inheriting is a no-op there -- but .topstrip is
   font-family: var(--font-mono) at the top of this file, and this rule comes
   later at equal specificity, so with no UI font set in Studio the strip
   silently dropped its mono and inherited the body's Urdu stack. The clock,
   the dateline and the EN label had not been monospaced since this hook
   landed. Every other --tbp-ff-* consumer falls back to a real family
   (var(--tbp-ff-head, var(--font-urdu)) and friends); these two did not.
   Studio still wins when it sets the role -- only the default is restored. */
.navrail { font-family: var(--tbp-ff-ui, inherit); }
.topstrip { font-family: var(--tbp-ff-ui, var(--font-mono)); }
.ah-eyebrow, .sf-lbl { font-family: var(--tbp-ff-kick, inherit); }

/* ── Widget zones ──────────────────────────────────────────────────────────
   A widget zone is ONE element wherever it is dropped -- see
   tbp_render_widget_zone(). Without this the widgets are loose siblings, and
   in .op-shell (a two-track grid) each one after the first starts a new row.

   THIS RULE LIVED IN home.css, which only the front page and the blog index
   enqueue. Of the three zones, two are on the homepage and the third --
   article-rail -- is on single posts, where the stylesheet carrying its only
   layout rule was never loaded. So the article rail fell back to display:
   block with no gap, and because each card also sets margin: 0, the measured
   distance between them was exactly 0px: three panels fused into one slab.
   It is in app.css now, which every page enqueues. */
.tbp-wstack { display: flex; flex-direction: column; gap: var(--w-gap); }
/* A band (a zone under a section, or under a page's content): widgets side by
   side, each between --w-min and --w-max wide, centred, wrapping on phones. */
.tbp-wzone { margin-block: var(--section-gap) 0; }
.tbp-wzone .tbp-wstack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--w-min), 100%), 1fr)); gap: var(--w-gap); align-items: start; }
.tbp-wzone .tbp-wstack > .widget { width: 100%; max-width: var(--w-max); justify-self: center; box-sizing: border-box; }
/* Size in a band (Studio ▸ widget ▸ Size): Wide takes two slots, Full the whole
   band. Below md the band is one column, so both are regular there. */
@media (min-width: 769px) {
  .tbp-wzone .tbp-wstack > .w-size--wide { grid-column: span 2; max-width: calc(var(--w-max) * 2 + var(--w-gap)); }
  .tbp-wzone .tbp-wstack > .w-size--full { grid-column: 1 / -1; max-width: none; }
}
/* Picture ratio (Studio ▸ widget ▸ Picture ratio) on the widgets that show one */
.widget.w-pic--4x3 { --w-pic-ratio: 4 / 3; } .widget.w-pic--1x1 { --w-pic-ratio: 1 / 1; } .widget.w-pic--16x9 { --w-pic-ratio: 16 / 9; }
.tbp-wzone--article-foot .tbp-wstack, .tbp-wzone--live-rail .tbp-wstack { display: flex; flex-direction: column; }
/* A side column beside a section (the World desk's) is as tall as the section.
   With ONE widget in it, that widget takes the column and its picture grows to
   fill the slack (the ratio is then a minimum) — no half-empty column. */
.press-shell > aside { display: flex; flex-direction: column; }
.press-shell > aside .tbp-wstack { flex: 1 1 auto; }
.press-shell > aside .tbp-wstack > .widget:only-child { flex: 1 1 auto; display: flex; flex-direction: column; box-sizing: border-box; }
.press-shell > aside .tbp-wstack > .widget:only-child > .w-pic { flex: 1 0 auto; }

/* ── Widgets ────────────────────────────────────────────────────────────────
   Moved here from article.css. The Studio widget zones are not article-only:
   home-opinion-aside puts Follow and Popular tags on the front page, where
   article.css is never enqueued, so both rendered as bare inline links with
   the SVG icons run together -- the buttons, the chip row and the card frame
   all missing. Same failure as .tbp-wstack above, one layer up. Every rule
   below reads only tokens.css / app.css custom properties and the livepulse
   keyframes in tokens.css, so nothing here depends on a template sheet.
   The .art-aside WhatsApp frame stays in article.css: that one is article-
   specific by design (the homepage gives it .newsletter-card instead). */
/* Widget card — one frame for every widget, on the --w-* tokens (tokens.css) */
.widget { background: var(--w-bg); border: var(--w-border); border-radius: var(--w-radius); padding: var(--w-pad); }
.widget .whead { display: flex; align-items: center; gap: var(--w-head-gap); margin: 0 0 var(--w-head-space); padding-bottom: var(--w-head-space); border-bottom: var(--w-head-rule); }
.widget .whead h2 { font-family: var(--tbp-ff-widget, var(--w-head-font)); font-weight: var(--w-head-weight); font-size: calc(var(--w-head-size) * var(--tbp-fsx-widget, 1)); margin: 0; color: var(--ink-900); display: inline-flex; align-items: center; gap: var(--w-head-gap); }
.widget .whead .ico { color: var(--red); font-size: var(--w-btn-size); display: inline-flex; }
.widget .whead .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: livepulse 1.4s ease-in-out infinite; }
.widget .whead .tbp-more { margin-inline-start: auto; }
/* The bodies every widget shares: its own headline, its text, a picture, a button, a form */
.widget .w-lead { font-family: var(--font-head); font-weight: 700; font-size: var(--w-lead-size); line-height: calc(1.45 * var(--head-lh-x)); color: var(--ink-900); margin: 0 0 8px; }
.widget .w-text { font-family: var(--font-urdu); font-weight: 500; font-size: var(--w-text-size); line-height: 1.7; color: var(--w-text-color); margin: 0 0 12px; }
.widget .w-text p { margin: 0 0 10px; } .widget .w-text p:last-child { margin-bottom: 0; }
.widget .w-note { margin-top: 10px; font-family: var(--font-urdu); font-size: var(--w-meta-size); color: var(--ink-500); line-height: 1.6; }
.widget .w-pic { display: block; aspect-ratio: var(--w-pic-ratio); border-radius: var(--r-thumb); background: var(--paper-sunken) center/cover no-repeat; margin-bottom: 12px; position: relative; overflow: hidden; }
.widget .w-cta { margin-top: 4px; }
.widget .w-form input { width: 100%; padding: var(--w-field-pad); box-sizing: border-box; border: 1px solid var(--ink-200); border-radius: var(--r-pill); background: var(--paper); color: var(--ink-900); font-family: var(--font-urdu); font-size: var(--w-text-size); margin-bottom: 8px; }
.widget .w-form button { width: 100%; padding: var(--w-field-pad); border: 0; border-radius: var(--btn-radius, var(--r-pill)); background: var(--red); color: var(--white); font-family: var(--font-urdu); font-weight: 700; font-size: var(--w-text-size); cursor: pointer; }
.widget .w-form button:hover { background: var(--red-strong); }
/* WhatsApp: the brand's darker green, so white text clears AA */
.w-whatsapp .wa-join, .w-cta .w-cta-go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: var(--w-btn-pad); box-sizing: border-box; background: var(--w-cta-bg, var(--brand-whatsapp)); color: var(--white); border-radius: var(--btn-radius, var(--r-pill)); font-family: var(--font-urdu); font-weight: 700; font-size: var(--w-btn-size); text-decoration: none; transition: filter .15s; }
.w-whatsapp .wa-join:hover, .w-cta .w-cta-go:hover { filter: brightness(.9); }
.w-whatsapp .wa-join svg, .w-cta .w-cta-go svg { flex: 0 0 auto; width: var(--w-icon); height: var(--w-icon); }
/* Our languages: the ink banner — always ink, in both modes (absolute black + white,
   never the mode-flipping inks), the accent rule down its start edge, every
   edition a row. As the only widget in a side column the rows spread over the slack. */
.w-editions { --w-bg: var(--black); --w-border: 0; color: var(--white); border-inline-start: var(--w-head-rule); display: flex; flex-direction: column; }
.w-editions .w-mark { display: flex; align-items: center; gap: var(--w-head-gap); direction: ltr; font-family: var(--font-ui); font-weight: 700; font-size: var(--w-meta-size); letter-spacing: var(--w-ed-track); color: var(--white); margin-block-end: var(--w-head-space); }
.w-editions .w-mark::before { content: ''; width: var(--w-head-gap); height: var(--w-head-gap); border-radius: var(--r-pill); background: var(--red); }
.w-editions .w-lead { color: var(--white); font-family: var(--font-head-sans); font-size: var(--w-ed-head-size); }
.w-editions .w-text { color: var(--w-ed-dim); }
.w-editions .w-ed-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.w-editions .w-ed { display: flex; justify-content: space-between; align-items: baseline; gap: var(--w-head-gap); padding-block: calc(var(--w-pad) / 2); border-block-end: var(--w-ed-rule); color: var(--white); text-decoration: none; font-family: var(--font-head-sans); font-weight: 600; font-size: var(--w-ed-size); line-height: calc(1.4 * var(--head-lh-x)); }
.w-editions li:last-child .w-ed { border-block-end: 0; }
.w-editions .w-ed[dir="ltr"] .w-ed-name { font-family: var(--font-ui); font-weight: 700; }
.w-editions .w-ed-code { font-family: var(--font-ui); font-weight: 500; font-size: var(--w-meta-size); letter-spacing: var(--w-ed-track); text-transform: uppercase; color: var(--w-ed-dim); direction: ltr; }
.w-editions a.w-ed:hover .w-ed-name, .w-editions .w-ed.is-current .w-ed-name { color: var(--red-lift); }
.w-editions .w-cta { margin-block-start: var(--w-head-space); }
.w-editions .w-cta .tbp-more { color: var(--white); }
/* ═══ LABELS IN AN ARABIC-SCRIPT EDITION ════════════════════════
   The small tracked mono labels (kickers, roles, counters, badges) were drawn
   for Latin: JetBrains Mono has no Arabic glyphs, and letter-spacing breaks
   the joining of Arabic letters — "ڈوسیئر" fell apart into detached shapes.
   In an RTL edition every such label takes the Urdu face, no tracking, no
   case change, a readable size; the tracked mono look stays for a run marked
   Latin (dir="ltr" or .lat — TIP LINE, DOSSIER, TBP INVESTIGATIONS). */
html[dir="rtl"] .as-dossier .kk, html[dir="rtl"] .dossier-kicker, html[dir="rtl"] .art-source .k,
html[dir="rtl"] .related .rc .meta, html[dir="rtl"] .news-list .t, html[dir="rtl"] .arch-kk, html[dir="rtl"] .arch-sort,
html[dir="rtl"] .iv-card .who .role, html[dir="rtl"] .invest .kick, html[dir="rtl"] .invest .reporters, html[dir="rtl"] .invest .img .meta,
html[dir="rtl"] .live-band-badge, html[dir="rtl"] .live-band-counter, html[dir="rtl"] .live-band-meta .updated, html[dir="rtl"] .kf-card h3, html[dir="rtl"] .kf-label, html[dir="rtl"] .kf-strip .chip b,
html[dir="rtl"] .pinned-update .pin-label, html[dir="rtl"] .badge-breaking, html[dir="rtl"] .badge-developing, html[dir="rtl"] .badge-verified, html[dir="rtl"] .feed-header .update-count,
html[dir="rtl"] footer.site h4, html[dir="rtl"] footer.site .languages, html[dir="rtl"] footer.site .bottom, html[dir="rtl"] .form-label .optional,
html[dir="rtl"] .tbp-lb-count, html[dir="rtl"] .mono { font-family: var(--font-urdu); letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .as-dossier .kk, html[dir="rtl"] .related .rc .meta, html[dir="rtl"] .news-list .t, html[dir="rtl"] .iv-card .who .role, html[dir="rtl"] .kf-label, html[dir="rtl"] .kf-strip .chip b, html[dir="rtl"] .badge-breaking, html[dir="rtl"] .badge-developing, html[dir="rtl"] .badge-verified, html[dir="rtl"] .pinned-update .pin-label, html[dir="rtl"] .invest .img .meta, html[dir="rtl"] footer.site h4, html[dir="rtl"] footer.site .languages, html[dir="rtl"] .live-band-counter, html[dir="rtl"] .feed-header .update-count { font-size: 12px; }
html[dir="rtl"] .as-dossier .kk { font-weight: 700; }
/* The footer's column headings (the accordion buttons on a phone), editions
   label and legal links are Studio words, in the edition's script on an RTL
   edition: 10-12px suited the Latin mono, not Urdu script. */
html[dir="rtl"] footer.site h4, html[dir="rtl"] footer.site .ft-acc { font-size: calc(14px * var(--tbp-fsx-foot, 1)); }
html[dir="rtl"] footer.site .languages > span:first-child, html[dir="rtl"] footer.site .ft-legal a { font-size: calc(13px * var(--tbp-fsx-foot, 1)); }
/* A Latin run inside one of them keeps the tracked mono voice. (Not the
   footer's editions label: it is a Studio field, in Urdu script on an RTL
   edition, and tracking pulled its joined letters apart.) */
html[dir="rtl"] .as-dossier .kk .lat, html[dir="rtl"] .dossier-kicker .lat, html[dir="rtl"] .invest .kick .lat, html[dir="rtl"] .lat,
html[dir="rtl"] .nav-tip, html[dir="rtl"] .tip-card .card-sub { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* Audio players: the browser's own (inc/audio-uploads.php), the column's width.
   Under one this browser cannot play: the edition's line and a download link (app.js). */
audio.wp-audio-shortcode, .wp-block-audio audio { width: 100%; }
.tbp-audio-note { margin: 6px 0 0; font-size: 14px; color: var(--tbp-text-2, var(--ink-600)); }
.tbp-audio-note a { color: var(--red); text-decoration: underline; }
html.dark .tbp-audio-note a { color: var(--red-text-dark, var(--red-lift)); }

/* CTA card (Studio ▸ widget ▸ Button colour): the accent, the network's brand, or ink */
.w-cta .w-cta-go { --w-cta-bg: var(--red); }
.w-cta .w-cta-go.is-ink { --w-cta-bg: var(--ink-950); }
.w-cta .w-cta-go.is-brand.is-telegram { --w-cta-bg: var(--brand-telegram); }
.w-cta .w-cta-go.is-brand.is-youtube { --w-cta-bg: var(--brand-youtube); }
.w-cta .w-cta-go.is-brand.is-x { --w-cta-bg: var(--brand-x); }
.w-cta .w-cta-go.is-brand.is-facebook { --w-cta-bg: var(--brand-facebook); }
.w-cta .w-cta-go.is-brand.is-instagram { --w-cta-bg: var(--brand-instagram); }
.w-cta .w-cta-go.is-brand.is-tiktok { --w-cta-bg: var(--brand-tiktok); }
.w-cta .w-cta-go.is-brand.is-linkedin { --w-cta-bg: var(--brand-linkedin); }
.w-cta .w-cta-go.is-brand.is-threads { --w-cta-bg: var(--brand-threads); }
.w-cta .w-cta-go.is-brand.is-mastodon { --w-cta-bg: var(--brand-mastodon); }
.w-cta .w-cta-go.is-brand.is-bluesky { --w-cta-bg: var(--brand-bluesky); }
.w-cta .w-cta-go.is-brand.is-nostr { --w-cta-bg: var(--brand-nostr); }
.w-cta .w-cta-go.is-brand.is-substack { --w-cta-bg: var(--brand-substack); }
.w-cta .w-cta-go.is-brand.is-google-news { --w-cta-bg: var(--brand-google-news); }
.w-cta .w-cta-go.is-brand.is-apple-news { --w-cta-bg: var(--brand-apple-news); }
.w-cta .w-cta-go.is-brand.is-flipboard { --w-cta-bg: var(--brand-flipboard); }
.w-cta .w-cta-go.is-brand.is-feedly { --w-cta-bg: var(--brand-feedly); }
.w-cta .w-cta-go.is-brand.is-whatsapp { --w-cta-bg: var(--brand-whatsapp); }
.w-cta .w-cta-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-urdu); font-size: var(--w-text-size); color: var(--ink-500); margin-bottom: 6px; }
.w-cta .w-cta-eyebrow svg { width: var(--w-icon-sm); height: var(--w-icon-sm); }
/* Ad slot: a label, then the creative at its size (or the column's width) */
.w-ad .w-ad-lbl { font-family: var(--font-urdu); font-size: var(--w-meta-size); color: var(--ink-500); margin-bottom: 8px; text-align: center; }
.w-ad .w-ad-box { display: flex; justify-content: center; overflow: hidden; border-radius: var(--r-thumb); }
.w-ad .w-ad-box img { display: block; max-width: 100%; height: auto; }
.w-ad .w-ad-box[data-size="300x250"] { max-width: 300px; margin-inline: auto; aspect-ratio: 300 / 250; }
.w-ad .w-ad-box[data-size="300x300"] { max-width: 300px; margin-inline: auto; aspect-ratio: 1 / 1; }
.w-ad .w-ad-box[data-size="300x600"] { max-width: 300px; margin-inline: auto; aspect-ratio: 300 / 600; }
.w-ad .w-ad-box[data-size="728x90"]  { max-width: 728px; margin-inline: auto; aspect-ratio: 728 / 90; }
/* Live now, Latest video: a card body that is one link */
.w-live-now .w-live, .w-video .w-video { display: block; text-decoration: none; color: inherit; }
.w-live-now .w-live h3, .w-video .w-video h3 { margin: 4px 0; color: var(--ink-900); }
.w-live-now .w-live:hover h3, .w-video .w-video:hover h3 { color: var(--card-hover); }
.w-live-now .w-live-n { display: block; font-family: var(--font-urdu); font-size: var(--w-text-size); color: var(--ink-500); }
.w-video .w-pic .tbp-play { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; }
/* A widget kept to one kind of screen (Studio ▸ widget ▸ Show on) */
@media (max-width: 768px) { .widget[data-w-show="desktop"] { display: none; } }
@media (min-width: 769px) { .widget[data-w-show="mobile"] { display: none; } }

/* Pinned — lead feature + list */
.w-pinned .pin-feature { display: block; text-decoration: none; color: inherit; }
.w-pinned .pin-feature .img { display: block; aspect-ratio: 16/9; border-radius: var(--r-card); margin-bottom: 10px; }
.w-pinned .pin-feature h3 { margin: 0; color: var(--ink-900); }
.w-pinned .pin-feature:hover h3 { color: var(--red); }
.w-pinned .news-list { margin-top: 14px; border-top: 1px solid var(--ink-150); padding-top: 4px; }

/* News list (latest + pinned list) */
.news-list a { display: block; padding: 11px 0; border-bottom: 1px solid var(--ink-150); text-decoration: none; color: inherit; }
.news-list a:last-child { border-bottom: 0; padding-bottom: 0; }
.news-list h3 { margin: 0; color: var(--ink-800); }
.news-list a:hover h3 { color: var(--red); }
.news-list .t { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: .04em; }
.news-list .t.ur { font-family: var(--font-urdu); font-size: 11px; letter-spacing: 0; }
.news-list.pinned a { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.news-list.pinned .pico { color: var(--red); font-size: 11px; line-height: 1.9; }

/* Latest — headline + thumbnail (brings the homepage-rail treatment to the rail) */
.news-list a { transition: transform .16s ease; }
.news-list a:hover { transform: translateX(-3px); }          /* RTL: nudges toward the text */
.news-list.with-thumb a { display: grid; grid-template-columns: 1fr 62px; gap: 12px; align-items: start; }
.news-list.with-thumb .nl-tx { min-width: 0; }
.news-list.with-thumb h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-thumb { width: 62px; height: 46px; border-radius: var(--r-thumb); overflow: hidden; background: var(--paper-sunken) center / cover no-repeat; flex: none; }

/* Follow — social buttons */
.w-social .soc-sub { font-family: var(--font-urdu); font-size: 12.5px; line-height: 1.6; color: var(--ink-500); margin: 0 0 14px; }
.w-social .soc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-social .soc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-card); border: 1px solid var(--ink-150); background: var(--paper); color: var(--ink-700); font-family: var(--font-urdu); font-weight: 600; font-size: 12.5px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.w-social .soc-btn svg { width: 16px; height: 16px; flex: none; }
.w-social .soc-btn span { line-height: 1; }
.w-social .soc-telegram:hover  { background: var(--brand-telegram-on); border-color: var(--brand-telegram-on); color: var(--white); }
.w-social .soc-youtube:hover   { background: var(--brand-youtube-on); border-color: var(--brand-youtube-on); color: var(--white); }
.w-social .soc-x:hover         { background: var(--brand-x); border-color: var(--brand-x); color: var(--white); }
.w-social .soc-facebook:hover  { background: var(--brand-facebook-on); border-color: var(--brand-facebook-on); color: var(--white); }
.w-social .soc-instagram:hover { background: var(--brand-instagram); border-color: var(--brand-instagram); color: var(--white); }
.w-social .soc-tiktok:hover      { background: var(--brand-tiktok); border-color: var(--brand-tiktok); color: var(--white); }
.w-social .soc-linkedin:hover    { background: var(--brand-linkedin); border-color: var(--brand-linkedin); color: var(--white); }
.w-social .soc-threads:hover     { background: var(--brand-threads); border-color: var(--brand-threads); color: var(--white); }
.w-social .soc-mastodon:hover    { background: var(--brand-mastodon-on); border-color: var(--brand-mastodon-on); color: var(--white); }
.w-social .soc-bluesky:hover     { background: var(--brand-bluesky-on); border-color: var(--brand-bluesky-on); color: var(--white); }
.w-social .soc-nostr:hover       { background: var(--brand-nostr); border-color: var(--brand-nostr); color: var(--white); }
.w-social .soc-substack:hover    { background: var(--brand-substack-on); border-color: var(--brand-substack-on); color: var(--white); }
.w-social .soc-google-news:hover { background: var(--brand-google-news-on); border-color: var(--brand-google-news-on); color: var(--white); }
.w-social .soc-apple-news:hover  { background: var(--brand-apple-news-on); border-color: var(--brand-apple-news-on); color: var(--white); }
.w-social .soc-flipboard:hover   { background: var(--brand-flipboard); border-color: var(--brand-flipboard); color: var(--white); }
.w-social .soc-feedly:hover      { background: var(--brand-feedly-on); border-color: var(--brand-feedly-on); color: var(--white); }
html.dark .w-social .soc-btn { background: var(--paper-sunken); border-color: var(--tbp-line); color: var(--tbp-text-2); }

/* Popular tags */
.w-tags .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.w-tags .tags a { font-family: var(--font-urdu); font-size: 13px; color: var(--ink-700); background: var(--paper-sunken); border: 1px solid var(--ink-150); padding: 6px 14px; border-radius: var(--r-pill); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.w-tags .tags a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* Newsletter */
.w-news { text-align: center; }
.w-news input { text-align: center; } /* the shared .w-form handles the rest */

/* ── Category label — ONE class for every kicker and category on the site ──
   Type, colour and shape come from the --cat-* tokens (tokens.css), so one
   Studio control restyles all of them at once. The overlay variant is the
   same label laid over a photograph. Section stylesheets add no typography
   of their own to a .tbp-cat — only position. */
.tbp-cat { display: inline-block; font-family: var(--tbp-ff-kick, var(--cat-font)); font-weight: var(--cat-weight); font-size: calc(var(--cat-size) * var(--tbp-fsx-kick, 1)); line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--cat-color); background: var(--cat-bg); padding: var(--cat-pad); border-radius: var(--r-thumb); box-shadow: var(--cat-ring); }
/* The label on a card: its own line, above the title, on every card on the
   homepage (tbp_card_label_html()). --on is the same label where the card's
   text sits on a photograph or the hero's red band: white text, and a chip
   style keeps its chip. */
.tbp-card-cat { display: table; margin: 0 0 var(--card-meta-gap); align-self: flex-start; justify-self: start; }
.tbp-cat--on { color: var(--cat-on-color); background: var(--cat-on-bg); box-shadow: none; }
/* ── Every "more" link (tbp_more_link: section bars, the hero rail and live
   feed, hub rails, the dossier timeline, the writer widgets) — the --more-*
   tokens (tokens.css). The arrow is its own span at the inline start and
   nudges forward on hover. Global, like .tbp-cat: inner pages wear it too. */
.tbp-more { display: inline-flex; align-items: center; gap: var(--more-gap); white-space: nowrap; font-family: var(--tbp-ff-more, var(--more-font)); font-weight: var(--more-weight); font-size: calc(var(--more-size) * var(--tbp-fsx-more, 1)); color: var(--more-color); text-decoration: none; }
.tbp-more .arr { color: var(--more-arrow); font-size: var(--more-arrow-size); line-height: 1; transition: transform .18s; }
.tbp-more:hover .arr { transform: translateX(var(--more-arrow-shift)); }

/* ── Card date — ONE date on every card (tbp_card_date_html()) ──
   Below the title, in the format Studio ▸ Text sets (relative or full, the
   order, the weekday), in the --date-* tokens and the Dates type role. */
.tbp-date { display: block; margin: var(--card-meta-gap) 0 0; font-family: var(--tbp-ff-date, var(--date-font)); font-size: calc(var(--date-size) * var(--tbp-fsx-date, 1)); font-weight: var(--date-weight); line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--date-color); }
.tbp-date--on { color: var(--date-on-color); }
/* An updated story (inc/rise.php, tbp_updated_badge_html()): a dark tag with
   the edition's "Updated", a red square mark while the update is fresh and
   the count from the second update, before the update's time. Light in dark
   mode (the ink and paper tokens swap). Nothing blinks: that is for live. */
.tbp-upd { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; font-weight: 700; line-height: 1.35; color: var(--paper); background: var(--ink-900); border-radius: var(--r-thumb); padding: 1px 7px 2px; margin-inline-end: 7px; }
.tbp-upd-sq { flex: none; width: 7px; height: 7px; border-radius: calc(var(--r-thumb) / 3); background: var(--tbp-red); }
.tbp-upd-n { font-family: var(--tbp-ff-date, var(--date-font)); font-variant-numeric: tabular-nums; padding-inline-start: 6px; border-inline-start: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
/* Running live coverage (TBP Live): the pill, its dot blinking, the number of
   updates so far (tbp_live_badge_html(); on every card, and on the live pages). */
.tbp-live-pill{display:inline-flex;align-items:center;gap:6px;background:var(--live-bg);color:var(--white);font-family:var(--font-urdu);font-weight:700;font-size:11px;line-height:1.3;padding:3px 9px;border-radius:var(--r-pill);vertical-align:middle}
.tbp-live-pill .dot{position:relative;width:7px;height:7px;border-radius:50%;background:var(--white)}
.tbp-live-pill .n{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 5px;box-sizing:border-box;margin-inline:2px -6px;border-radius:var(--r-pill);background:var(--white);color:var(--live-bg);font-family:var(--date-font);font-size:11px;line-height:17px;font-variant-numeric:tabular-nums}
/* On the hero's red band or a photo: white, so it is not lost in the red. */
.tbp-date--on .tbp-live-pill{background:var(--white);color:var(--live-bg)}
.tbp-date--on .tbp-live-pill .dot{background:var(--live-bg)}
.tbp-date--on .tbp-live-pill .n{background:var(--live-bg);color:var(--white)}
/* Pulse ring as a scaled, fading ::after (composited) — the box-shadow it replaced repainted every frame. */
.tbp-live-pill .dot::after,.page-head .count .dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;opacity:.6;animation:tbp-pulse 1.6s infinite;will-change:transform,opacity}
@keyframes tbp-pulse{0%{transform:scale(1);opacity:.6}70%,100%{transform:scale(2.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.tbp-live-pill .dot::after,.page-head .count .dot::after{animation:none;opacity:0}}
.bn-time .bn-upd { font-family: var(--font-urdu); font-weight: 700; font-size: 1.1em; letter-spacing: 0; color: #fff; background: var(--tbp-red); border-radius: var(--r-thumb); padding: 1px 6px 2px; margin-inline-end: 6px; }

/* Over a photograph and on a coloured band the label keeps its own look in
   every label style: the Outlined ring is for labels on paper, and drew a
   white ring round the photo chip and a padless ring on the hero's red. */
.tbp-cat--overlay { color: var(--cat-overlay-color); background: var(--cat-overlay-bg); padding: 3px 8px; box-shadow: none; }
.tbp-cat--inverse { color: var(--cat-overlay-color); background: transparent; padding: 0; box-shadow: none; }
/* The same label on a solid coloured band (the hero's red): white, no chip. */

/* ═══ WRITERS — pages, index, article sections (inc/writers.php) ═════════
   A writer's photo, name and bio; their stories as cards; the list of
   writers. Tokens only; the cards are the homepage's .tbp-grid-card. */
.tbp-writer-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: var(--section-gap); }
.tbp-writer-photo { inline-size: var(--writer-photo); block-size: var(--writer-photo); border-radius: var(--r-pill); object-fit: cover; flex: none; }
/* No photo: the name's first letter in a disc, as the Interviews cards do. */
.tbp-writer-initial { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--ink-100); color: var(--ink-600); font-family: var(--font-head); font-weight: 700; font-size: calc(var(--writer-photo) * .42); line-height: 1; }
.tbp-writer-page .tbp-writer-photo { inline-size: var(--writer-photo-lg); block-size: var(--writer-photo-lg); }
.tbp-writer-page .tbp-writer-initial { font-size: calc(var(--writer-photo-lg) * .42); }
.tbp-writer-photo-link { flex: none; line-height: 0; }
.tbp-writer-id { min-width: 0; }
.tbp-writer-name { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink-900); }
h1.tbp-writer-name { font-size: 30px; }
.tbp-writer-bio { margin: 8px 0 0; font-family: var(--font-urdu); font-size: 15px; line-height: 1.85; color: var(--ink-600); max-width: 60ch; }
.tbp-writer-count { margin-inline-start: auto; font-family: var(--date-font); font-size: var(--date-size); color: var(--date-color); }
.tbp-writer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: var(--grid-gap); }
.tbp-writer-cards .tbp-grid-card .img { aspect-ratio: var(--card-img-ratio); border-radius: var(--r-card); background-size: cover; }
.tbp-writer-cards .tbp-grid-card .tbp-card-cat { margin-top: 8px; }
.tbp-writer-cards .tbp-grid-card h3 { margin: 0; color: var(--ink-900); }
.tbp-writer-cards .tbp-grid-card:is(:hover, :focus-within) h3 { color: var(--card-hover); }
.tbp-writer-pages { margin-top: var(--grid-gap); }
.tbp-writers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: var(--grid-gap); }
.tbp-writers a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-900); text-align: center; }
.tbp-writers .tbp-writer-name { font-size: 14px; }
.tbp-writers a:is(:hover, :focus-visible) .tbp-writer-name { color: var(--card-hover); }
/* The writer pages and the article strip are not on the homepage, so the
   section bar is laid out here: title, then the count or "more" at the end. */
:is(.tbp-writer-page, .tbp-writers-page) .secbar { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
:is(.tbp-writer-page, .tbp-writers-page) .secbar :is(h1, h2) { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink-900); }
:is(.tbp-writers-page) .secbar h1 { font-size: 28px; }

/* The writers widget (inc/widgets.php), in a rail; never under a story. */
.tbp-wstack--article-foot { margin-top: var(--section-gap); display: grid; gap: var(--grid-gap); }
.w-writers .whead { display: flex; align-items: baseline; gap: 12px; }
.w-writers .w-more { margin-inline-start: auto; }
.tbp-writer-role { margin: 4px 0 0; font-size: 14px; color: var(--ink-500); }

/* ── The line at the foot of a story (inc/people.php) ───────────────────
   One soft grey band per credited person, no heading, no edge, no rules:
   a red disc with the pen name's first letter, the name, "role · N pieces",
   and "all writings" in red at the far end. The note and the round social
   buttons show only where the writer turned them on. */
.tbp-credits { display: grid; gap: 8px; }
.tbp-credit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 14px 16px; border-radius: var(--credit-band-r); background: var(--credit-band-bg); color: var(--ink-900); }
.tbp-credit-mono, .tbp-credit-photo { inline-size: 44px; block-size: 44px; border-radius: 50%; flex: none; }
.tbp-credit-mono { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1; }
.tbp-credit-photo { object-fit: cover; }
.tbp-credit-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tbp-credit-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--ink-900); overflow-wrap: anywhere; }
.tbp-credit-meta { font-size: 13px; line-height: 1.5; color: var(--ink-500); }
.tbp-credit-note { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-600); }
.tbp-credit-all { align-self: center; white-space: nowrap; font-weight: 700; font-size: 14px; color: var(--credit-link); text-decoration: none; padding-block: 12px; }
.tbp-credit-all:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.tbp-credit-social { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tbp-credit-social a { display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--paper-card); color: var(--ink-700); }
.tbp-credit-social a:is(:hover, :focus-visible) { color: var(--credit-link); }
.tbp-credit-social svg { inline-size: 18px; block-size: 18px; }
/* The writer's own page: the same round buttons under the name. */
.tbp-writer-id .tbp-credit-social a { background: var(--credit-band-bg); }
/* The bands are the whole widget: no widget box around them (no border,
   no padding, no ground), so nothing frames them twice. */
.widget.w-author { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
/* A phone keeps "all writings" on the band's row, as approved; only a very
   narrow screen moves it under the name rather than squeezing it. */
@media (max-width: 480px) {
  .tbp-credit { column-gap: 12px; padding: 12px 14px; }
}
@media (max-width: 340px) {
  .tbp-credit { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; }
  .tbp-credit-all { grid-column: 2; justify-self: start; padding-block: 8px 2px; }
}

/* ═══ TITLE SCALE ═══════════════════════════════════════════════
   THE rule for story titles (tokens.css "Title scale"). Every story title
   is listed once, under its size; the component rules no longer set a
   title's family, weight, size, line height or tracking — before this,
   titles doing the same job ran 13–16.5px at 600 or 700 with line heights
   from 27 to 38px (staging, 2026-09-28), and Studio's Headlines size never
   reached a homepage card. A new story title goes in one of these lists. */
.hero .feat-h,
.feature-hero .label,
.spr-hero h3,
.invest h2,
.tl-item.is-latest .tl-mag-ttl,
.live-hero h2,
.press-lead h3,
.op-lead h3,
.ed-lead h3,
.feature-split .right .ttl,
.tl-mag-ttl,
.news-card.lead .nc-title,
.spr-feat h4,
.sec-card .feature h3,
.tbp-ms-title,
.tbp-gcap .t,
.ec-title,
.news-card .nc-title,
.related .rc h3,
.update-h,
.live-evcard h3,
.view-cards .tl-mag-ttl,
.view-cards .tl-item.is-latest .tl-mag-ttl,
.hero .rail-h,
.tr-item h3,
.tr-bead h3,
.press-list .item h4,
.tbp-grid-card h3,
.lr-title,
.op-card h4,
.ed-item h3,
.spr-item .t,
.vc-title,
.feature-split .left .story h4,
.sec-card .list .li h4,
.tbp-blk-list .li h4,
.news-list h3,
.news-list.with-thumb h3,
.w-live-now .w-live h3,
.w-video .w-video h3,
.w-pinned .pin-feature h3,
.tbp-writer-cards .tbp-grid-card h3,
.dm-label,
.live-pastrow h4,
.view-compact .tl-mag-ttl,
.view-compact .tl-item.is-latest .tl-mag-ttl,
.s-title {
  font-family: var(--tbp-ff-head, var(--font-head));
  font-weight: var(--tbp-fw-head, var(--title-weight));
  letter-spacing: var(--tbp-ls-head, 0);
}
/* the page's lead story */
.hero .feat-h,
.feature-hero .label,
.spr-hero h3,
.invest h2,
.tl-item.is-latest .tl-mag-ttl,
.live-hero h2 { font-size: calc(var(--title-1) * var(--tbp-fsx-head, 1)); line-height: calc(var(--title-1-lh) * var(--head-lh-x) * var(--tbp-lhx-head, 1)); }
/* a section's lead story */
.press-lead h3,
.op-lead h3,
.ed-lead h3,
.feature-split .right .ttl,
.tl-mag-ttl,
.news-card.lead .nc-title { font-size: calc(var(--title-2) * var(--tbp-fsx-head, 1)); line-height: calc(var(--title-2-lh) * var(--head-lh-x) * var(--tbp-lhx-head, 1)); }
/* a card with room */
.spr-feat h4,
.sec-card .feature h3,
.tbp-ms-title,
.tbp-gcap .t,
.ec-title,
.news-card .nc-title,
.related .rc h3,
.update-h,
.live-evcard h3,
.view-cards .tl-mag-ttl,
.view-cards .tl-item.is-latest .tl-mag-ttl { font-size: calc(var(--title-3) * var(--tbp-fsx-head, 1)); line-height: calc(var(--title-3-lh) * var(--head-lh-x) * var(--tbp-lhx-head, 1)); }
/* every list, rail and grid title */
.hero .rail-h,
.tr-item h3,
.tr-bead h3,
.press-list .item h4,
.tbp-grid-card h3,
.lr-title,
.op-card h4,
.ed-item h3,
.spr-item .t,
.vc-title,
.feature-split .left .story h4,
.sec-card .list .li h4,
.tbp-blk-list .li h4,
.news-list h3,
.news-list.with-thumb h3,
.w-live-now .w-live h3,
.w-video .w-video h3,
.w-pinned .pin-feature h3,
.tbp-writer-cards .tbp-grid-card h3,
.dm-label,
.live-pastrow h4,
.view-compact .tl-mag-ttl,
.view-compact .tl-item.is-latest .tl-mag-ttl,
.s-title { font-size: calc(var(--title-4) * var(--tbp-fsx-head, 1)); line-height: calc(var(--title-4-lh) * var(--head-lh-x) * var(--tbp-lhx-head, 1)); }

/* 404: the search form was core's unstyled one (a grey square button). */
.error404 .wp-block-search__label { font-family: var(--font-urdu); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.error404 .wp-block-search__inside-wrapper { gap: 8px; }
.error404 .wp-block-search__input { min-height: 44px; border: 1px solid var(--tbp-line-2, var(--ink-200)); border-radius: var(--btn-radius, var(--r-thumb)); padding: 0 14px; font-family: var(--font-urdu); font-size: 16px; background: var(--tbp-card); color: var(--tbp-text); }
.error404 .wp-block-search__button { min-height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--btn-radius, var(--r-thumb)); background: var(--red); color: var(--white); font-family: var(--font-urdu); font-weight: 700; font-size: 15px; }

/* First-visit hint at the dark/light toggle (parts/header.html): a soft ring
   pulsing on the toggle and a bubble under it, once per browser. */
.tbp-hint-pulse { position: relative; }
.tbp-hint-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: var(--r-pill); border: 2px solid rgba(255,255,255,.7);
  pointer-events: none; animation: tbp-hint-pulse 1.6s ease-out 4 both; }
@keyframes tbp-hint-pulse { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
.tbp-theme-hint { position: absolute; z-index: 400; display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 6px;
  border-radius: var(--r-pill); background: var(--paper-card, #fff); color: var(--ink, #0a0a0a); box-shadow: 0 8px 24px rgba(0,0,0,.22);
  font-family: var(--font-urdu); animation: tbp-hint-in .25s cubic-bezier(.16,1,.3,1); }
.tbp-theme-hint::before { content: ""; position: absolute; top: -5px; left: var(--tip-x, 50%); width: 10px; height: 10px; margin-left: -5px;
  transform: rotate(45deg); background: inherit; }
.tbp-theme-hint-go { border: 0; background: none; color: inherit; font: 700 13px/1.4 var(--font-urdu); padding: 6px 10px; cursor: pointer; }
.tbp-theme-hint-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--paper-sunken, #f4f2ec); color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.tbp-theme-hint button:focus-visible { outline: 2px solid var(--brand-600, #b0070f); outline-offset: 2px; }
html.dark .tbp-theme-hint { background: color-mix(in srgb, var(--ink-50), var(--ink-100)); color: var(--ink-800); }
html.dark .tbp-theme-hint-x { background: var(--ink-150); }
@keyframes tbp-hint-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tbp-hint-pulse::after, .tbp-theme-hint { animation: none; } .tbp-hint-pulse::after { transform: scale(1.25); } }
@media print { .tbp-theme-hint { display: none !important; } }
