/* ==========================================================================
   100MCQs Design System v2 — "Textbook Companion"  (M2-A premium pilot)
   --------------------------------------------------------------------------
   Loaded ONLY by pilot pages that opt in with <html class="ds">. Every rule is
   scoped under html.ds, so the rest of the site is untouched until the owner
   accepts the direction. System fonts only, no downloads, no JS dependency.

   Identity: warm "paper" surfaces + deep ink navy + Indus teal, with a gold
   accent used sparingly; a fine ajrak-inspired geometric band marks the brand
   edge (header, hero, footer). Each subject has its own colour + line icon
   ("book spine" colours) so students recognise subjects at a glance.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
html.ds {
  --ink: #1A2333;          /* body text            (15.6:1 on paper) */
  --ink-2: #39465A;        /* secondary headings    (9.6:1) */
  --muted: #586374;        /* secondary text        (5.9:1 on paper, 6.3:1 on white) */
  --paper: #F7F5F0;        /* page background — warm, book-like */
  --paper-2: #EFEBE2;      /* quiet panels */
  --card: #FFFFFF;
  --line: #E3DED3;         /* warm hairline */
  --line-2: #D3CCBE;
  --navy: #13233B;         /* brand ink navy (header, hero, primary dark) */
  --navy-2: #1D3456;
  --teal: #0A7166;         /* primary action (5.7:1 with white) */
  --teal-ink: #075A51;     /* teal text on light surfaces (7.6:1) */
  --teal-tint: #E3F1EE;
  --gold: #E2A93B;         /* accent — on navy only, never body text on light */
  --gold-ink: #8A5A0E;     /* gold-family text on light (6.0:1) */
  --gold-tint: #FBF1DC;
  --ok: #17703F;   --ok-tint: #E4F4EA;
  --bad: #B3261E;  --bad-tint: #FCEBE9;
  --info: #24518A; --info-tint: #E8EFF8;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --font-sd: "Noto Naskh Arabic", "MB Lateefi", "Segoe UI", "Arial", sans-serif;

  --fs-0: .8125rem;  --fs-1: .9rem;  --fs-2: 1rem;  --fs-3: 1.0625rem;
  --fs-4: 1.25rem;   --fs-5: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-6: clamp(1.7rem, 1.25rem + 2.2vw, 2.6rem);
  --lh: 1.65;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r1: 8px; --r2: 12px; --r3: 18px; --rp: 999px;
  --sh-1: 0 1px 2px rgba(19,35,59,.05), 0 2px 8px rgba(19,35,59,.05);
  --sh-2: 0 2px 6px rgba(19,35,59,.06), 0 12px 28px rgba(19,35,59,.09);
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 5px #1C6DD0;
  --tap: 44px;
  --ease: 150ms cubic-bezier(.2,.7,.3,1);

  /* subject identity (icon / accent colour, tint) */
  --subj: var(--teal); --subj-tint: var(--teal-tint);

  /* ajrak-inspired band: original geometric strip, ~0.6 KB, decorative only */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Crect width='28' height='8' fill='%2313233B'/%3E%3Cpath d='M7 0l3 4-3 4-3-4z' fill='%23E2A93B'/%3E%3Cpath d='M21 1.5l2 2.5-2 2.5-2-2.5z' fill='%230A7166'/%3E%3Ccircle cx='14' cy='4' r='1' fill='%23F7F5F0' fill-opacity='.7'/%3E%3Ccircle cx='0' cy='4' r='1' fill='%23F7F5F0' fill-opacity='.7'/%3E%3Ccircle cx='28' cy='4' r='1' fill='%23F7F5F0' fill-opacity='.7'/%3E%3C/svg%3E");
}
html.ds[data-subject="math"] { --subj: #3B5BDB; --subj-tint: #ECF0FD; }
html.ds[data-subject="sci"]  { --subj: #1E8A57; --subj-tint: #E6F5EC; }
html.ds[data-subject="bio"]  { --subj: #2B8A3E; --subj-tint: #E8F5EA; }
html.ds[data-subject="chem"] { --subj: #6C47D8; --subj-tint: #F0ECFC; }
html.ds[data-subject="phy"]  { --subj: #1A6FC4; --subj-tint: #E7F0FA; }
html.ds[data-subject="eng"]  { --subj: #C2410C; --subj-tint: #FCEEE6; }
html.ds[data-subject="isl"]  { --subj: #0A7166; --subj-tint: #E3F1EE; }
html.ds[data-subject="sst"]  { --subj: #A8660C; --subj-tint: #FBF0DD; }
html.ds[data-subject="comp"] { --subj: #0B7D8F; --subj-tint: #E2F3F6; }
html.ds[data-subject="pak"]  { --subj: #23753A; --subj-tint: #E6F3EA; }
html.ds[data-subject="acad"] { --subj: #B4234F; --subj-tint: #FBE9EF; }
html.ds .subj-math { --subj: #3B5BDB; --subj-tint: #ECF0FD; }
html.ds .subj-sci  { --subj: #1E8A57; --subj-tint: #E6F5EC; }
html.ds .subj-bio  { --subj: #2B8A3E; --subj-tint: #E8F5EA; }
html.ds .subj-chem { --subj: #6C47D8; --subj-tint: #F0ECFC; }
html.ds .subj-phy  { --subj: #1A6FC4; --subj-tint: #E7F0FA; }
html.ds .subj-eng  { --subj: #C2410C; --subj-tint: #FCEEE6; }
html.ds .subj-isl  { --subj: #0A7166; --subj-tint: #E3F1EE; }
html.ds .subj-sst  { --subj: #A8660C; --subj-tint: #FBF0DD; }
html.ds .subj-comp { --subj: #0B7D8F; --subj-tint: #E2F3F6; }
html.ds .subj-pak  { --subj: #23753A; --subj-tint: #E6F3EA; }
html.ds .subj-acad { --subj: #B4234F; --subj-tint: #FBE9EF; }

/* ---------- 2. Base ------------------------------------------------------ */
html.ds body {
  background: var(--paper); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; margin: 0;
}
html.ds ::selection { background: #CFE7E2; }
html.ds :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
html.ds a { text-underline-offset: 3px; }
html.ds .ds-ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
html.ds .ds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html.ds *, html.ds *::before, html.ds *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- 3. Header & navigation (shared markup, both page families) ---- */
/* Desktop: header stays pinned (as before). Phones: header scrolls away so only the learning tabs stay
   pinned, keeping most of a small screen for reading. */
html.ds .site-head { background: var(--navy); position: sticky; top: 0; z-index: 80; box-shadow: none; }
@media (max-width: 1023px) { html.ds .site-head { position: relative; } }
html.ds .site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--band) repeat-x; background-size: 28px 6px; z-index: 2; pointer-events: none; }
html.ds .site-head .sh-wrap { min-height: 64px; }
html.ds .site-head .brand-logo { height: 46px; width: auto; }
html.ds .main-nav .nav-list > li > a, html.ds .main-nav .nav-drop-btn {
  border-radius: var(--rp); font-weight: 600; letter-spacing: .005em; transition: background var(--ease), color var(--ease);
}
html.ds .main-nav .nav-list > li > a:hover, html.ds .main-nav .nav-drop-btn:hover { background: rgba(255,255,255,.08); }
html.ds .main-nav .drop { border-radius: var(--r2); border: 1px solid var(--line); box-shadow: var(--sh-2); }
html.ds .main-nav .drop-head { color: var(--gold-ink); letter-spacing: .08em; }
html.ds .nav-toggle { border-radius: var(--rp); min-height: var(--tap); }
@media (max-width: 1023px) {
  html.ds .site-head .brand-logo { height: 40px; }
  html.ds .site-head .sh-wrap { min-height: 58px; }
}

/* ---------- 4. Breadcrumbs ---------------------------------------------- */
html.ds .sh-crumbs {
  font-size: var(--fs-0); color: var(--muted); padding-top: 18px;
  --muted: #586374; --teal-dark: var(--teal-ink);
}
html.ds .sh-crumbs a { color: var(--teal-ink); font-weight: 600; }
@media (max-width: 760px) {
  html.ds .sh-crumbs { white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding: 16px 16px 2px; }
  html.ds .sh-crumbs::-webkit-scrollbar { display: none; }
}

/* ---------- 5. Buttons, chips, badges ----------------------------------- */
html.ds .ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  padding: 0 20px; border-radius: var(--rp); font: 700 var(--fs-2)/1 var(--font); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
html.ds .ds-btn:active { transform: translateY(1px); }
html.ds .ds-btn-primary { background: var(--gold); color: var(--navy); }
html.ds .ds-btn-primary:hover { background: #EDBA55; }
html.ds .ds-btn-teal { background: var(--teal); color: #fff; }
html.ds .ds-btn-teal:hover { background: var(--teal-ink); }
html.ds .ds-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
html.ds .ds-btn-ghost:hover { border-color: #fff; }
html.ds .ds-chip, html.ds .meta-row .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--rp);
  font-size: var(--fs-0); font-weight: 600; line-height: 1.3; background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line);
}
html.ds .ds-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--rp); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
html.ds .ds-badge-free { background: var(--ok-tint); color: var(--ok); }
html.ds .ds-badge-pro  { background: var(--gold-tint); color: var(--gold-ink); }
html.ds .ds-badge-plan { background: var(--paper-2); color: var(--muted); }
html.ds .ds-badge-info { background: var(--info-tint); color: var(--info); }

/* ---------- 6. Subject identity tile ------------------------------------ */
html.ds .ds-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--subj-tint); color: var(--subj);
}
html.ds .ds-tile .ds-ic { width: 24px; height: 24px; }
html.ds .ds-tile-sm { width: 34px; height: 34px; border-radius: 10px; }
html.ds .ds-tile-sm .ds-ic { width: 19px; height: 19px; }

/* ---------- 7. Learning page: header, toolbar, sticky tabs --------------- */
html.ds .sh-layout { align-items: start; }
html.ds .sh-centre .wrap, html.ds main.wrap { background: transparent; }
html.ds .sh-centre h1, html.ds main.wrap > h1 {
  font-size: var(--fs-5); line-height: 1.25; letter-spacing: -.012em; color: var(--ink); margin: 6px 0 8px;
}
html.ds .ds-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-0); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--subj); margin-top: 4px;
}
html.ds main.wrap > .sub, html.ds .sh-centre .sub { font-size: var(--fs-1); color: var(--muted); line-height: 1.55; max-width: 68ch; margin: 0 0 12px; }
html.ds .meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

html.ds .ds-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; margin: 0 0 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r2);
}
html.ds .ds-toolbar .readsize, html.ds .ds-toolbar .langswitch {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; flex-wrap: nowrap;
}
html.ds .ds-toolbar .rs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.ds .ds-toolbar .readsize::before { content: "Aa"; font-weight: 700; font-size: var(--fs-1); color: var(--muted); margin-inline-end: 2px; }
html.ds .ds-toolbar .rs-btn, html.ds .ds-toolbar .langbtn {
  min-height: 40px; min-width: 42px; padding: 0 12px; border-radius: var(--rp); border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink-2); font: 600 var(--fs-1)/1 var(--font); cursor: pointer;
}
html.ds .ds-toolbar .rs-btn[aria-pressed="true"], html.ds .ds-toolbar .rs-btn.active,
html.ds .ds-toolbar .langbtn.active, html.ds .ds-toolbar .langbtn[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
html.ds .ds-toolbar .langbtn[data-lang="ur"], html.ds .ds-toolbar .langbtn[data-lang="sd"] { font-family: var(--font-sd); font-size: 1rem; }
html.ds .ds-toolbar .ls-label { font-size: var(--fs-1); color: var(--muted); font-weight: 600; }
html.ds .ds-toolbar .ls-note { flex-basis: 100%; font-size: var(--fs-0); color: var(--muted); line-height: 1.45; margin: 0; }
html.ds .ds-toolbar .langswitch { flex-wrap: wrap; }
html.ds main.wrap > p.crumbs { font-size: var(--fs-0); color: var(--muted); margin: 8px 0 10px !important; }

/* Tabs: one sticky row of four, icon over label on phones */
html.ds .tabs[role="tablist"] {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 5px; margin: 0 0 16px; background: rgba(247,245,240,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1);
}
@media (min-width: 1024px) { html.ds .tabs[role="tablist"] { top: 74px; } }
html.ds .tabs .tabbtn {
  margin: 0; min-height: 46px; padding: 6px 4px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink-2); font: 600 var(--fs-1)/1.2 var(--font); white-space: normal; flex: none; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
html.ds .tabs .tabbtn:hover { background: var(--paper-2); color: var(--ink); border: 0; }
html.ds .tabs .tabbtn.active, html.ds .tabs .tabbtn[aria-selected="true"] { background: var(--navy); color: #fff; border: 0; box-shadow: 0 2px 6px rgba(19,35,59,.25); }
@media (max-width: 560px) {
  html.ds .tabs .tabbtn { font-size: .78rem; min-height: 54px; }
}

/* Long-reading comfort */
html.ds .panel { font-size: var(--fs-3); line-height: var(--lh); }
html.ds body[data-readsize="1"] .panel { font-size: 1.15rem; }
html.ds body[data-readsize="2"] .panel { font-size: 1.27rem; }
html.ds .panel > p, html.ds .panel .story p { max-width: 70ch; }
html.ds .panel h2 { font-size: var(--fs-4); letter-spacing: -.01em; color: var(--ink); }
html.ds .panel h3 { color: var(--ink); }
html.ds .parthead {
  position: relative; margin: 28px 0 12px !important; padding: 10px 14px 10px 16px !important; font-weight: 700;
  color: var(--ink) !important; background: var(--card) !important; border: 1px solid var(--line) !important;
  border-left: 4px solid var(--subj) !important; border-radius: 10px !important; font-size: var(--fs-2) !important;
}
html.ds .creditblock {
  font-size: var(--fs-0) !important; line-height: 1.5 !important; color: var(--muted) !important; background: var(--paper-2) !important;
  border: 0 !important; border-radius: 10px !important; padding: 10px 12px !important; margin: 0 0 16px !important;
}
html.ds .note {
  background: var(--info-tint) !important; border: 0 !important; border-left: 4px solid var(--info) !important;
  border-radius: 10px !important; color: var(--ink) !important;
}
html.ds .words { background: var(--teal-tint) !important; border: 1px solid #C7E2DC !important; border-radius: var(--r2) !important; }
html.ds .words-h { color: var(--teal-ink) !important; }
html.ds .trline, html.ds .urline {
  background: #FBF7EC !important; border: 1px solid #EFE3C4 !important; border-radius: 10px !important; color: #3D3524 !important;
}
html.ds .trline[lang="ur"], html.ds .urline[lang="ur"], html.ds .sup[lang="ur"] { font-family: var(--font-ur); line-height: 2.1; }
html.ds .trline[lang="sd-Arab-PK"], html.ds .urline[lang="sd-Arab-PK"], html.ds .sup[lang="sd-Arab-PK"] { font-family: var(--font-sd); line-height: 1.95; }
html.ds .figbox, html.ds .tblwrap { border-radius: var(--r2) !important; border-color: var(--line) !important; background: var(--card) !important; }
html.ds .voctable th { background: var(--paper-2) !important; color: var(--ink) !important; }
html.ds .qcard, html.ds .exsec { border-color: var(--line) !important; border-radius: var(--r2) !important; box-shadow: var(--sh-1); }
html.ds .qopt-correct { color: var(--ok) !important; }

/* Previous / next */
html.ds .sh-prevnext a { border-radius: var(--r2); border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh-1); }
html.ds .sh-prevnext a:hover { border-color: var(--subj); }

/* Side rails: lighter */
html.ds .sh-left, html.ds .sh-rail .sh-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: none; }
html.ds .sh-list a[aria-current="page"], html.ds .sh-list a.sh-current { background: var(--subj-tint) !important; color: var(--ink) !important; border-color: var(--subj) !important; }
html.ds .sh-list a[aria-current="page"] .sh-num { background: var(--subj) !important; color: #fff !important; }
html.ds .sh-drawer summary { border-radius: var(--rp); background: var(--card); border: 1px solid var(--line); }

/* ---------- 8. Quiz ------------------------------------------------------ */
html.ds #panel-quiz .card, html.ds #panel-quiz > .card { border-radius: var(--r3) !important; border: 1px solid var(--line) !important; box-shadow: var(--sh-1) !important; }
html.ds #panel-quiz .qbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--muted); font-size: var(--fs-1); }
html.ds #panel-quiz .timer { font-variant-numeric: tabular-nums; background: var(--paper-2); padding: 3px 10px; border-radius: var(--rp); }
html.ds #panel-quiz .progress { height: 8px !important; background: var(--paper-2) !important; border-radius: var(--rp) !important; overflow: hidden; }
html.ds #panel-quiz .progress > div { background: linear-gradient(90deg, var(--teal), #13A08F) !important; border-radius: var(--rp); }
html.ds #panel-quiz .qtext { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem) !important; line-height: 1.45 !important; letter-spacing: -.005em; }
html.ds #panel-quiz .opt {
  border: 1.5px solid var(--line-2) !important; background: var(--card) !important; border-radius: 14px !important;
  min-height: 54px !important; padding: 12px 14px !important; transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
html.ds #panel-quiz .opt:not(.locked):hover { border-color: var(--teal) !important; background: #FBFEFD !important; }
html.ds #panel-quiz .opt:not(.locked):active { transform: scale(.995); }
html.ds #panel-quiz .opt .letter { width: 32px !important; height: 32px !important; border-radius: 10px !important; background: var(--paper-2) !important; color: var(--ink-2) !important; }
html.ds #panel-quiz .opt.correct { border-color: var(--ok) !important; background: var(--ok-tint) !important; }
html.ds #panel-quiz .opt.correct .letter { background: var(--ok) !important; color: #fff !important; }
html.ds #panel-quiz .opt.wrong { border-color: var(--bad) !important; background: var(--bad-tint) !important; }
html.ds #panel-quiz .opt.wrong .letter { background: var(--bad) !important; color: #fff !important; }
html.ds #panel-quiz .explain { border-radius: 14px !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--teal) !important; background: var(--card) !important; }
html.ds #panel-quiz .verdict.ok { color: var(--ok) !important; }
html.ds #panel-quiz .verdict.no { color: var(--bad) !important; }
html.ds #panel-quiz .score-big { font-size: 3rem !important; color: var(--navy); letter-spacing: -.02em; }
html.ds #panel-quiz .review .item { border-radius: var(--r2) !important; border-color: var(--line) !important; }
html.ds #panel-quiz .btn { border-radius: var(--rp) !important; min-height: var(--tap); background: var(--teal) !important; }
html.ds #panel-quiz .btn:hover { background: var(--teal-ink) !important; }
html.ds .procard {
  border: 1px solid #EBD9AE !important; background: linear-gradient(180deg, #FFFBF2, #FFF6E4) !important; border-radius: var(--r3) !important;
}
html.ds .procard h3 { color: var(--gold-ink) !important; }

/* ---------- 9. Cards: hub units, discovery, home ------------------------- */
html.ds .hubgrid { gap: 14px !important; }
/* M3-FIX hub-grid hardening: bare 1fr tracks size to card min-content and .unitcard had no
   min-width:0, so beside the 240px subjects rail the two-column grid could exceed the centre
   column and the right-hand cards were clipped under the sticky rail (Maths Class 9 report).
   minmax(0,1fr) tracks + shrinkable cards make overflow structurally impossible on every hub;
   html.ds specificity also overrides the identical bare-1fr rules in page-local hub styles. */
html.ds .hubgrid { grid-template-columns: minmax(0,1fr); min-width: 0; }
@media (min-width: 640px) { html.ds .hubgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
html.ds .unitcard { min-width: 0; }
html.ds .unitcard .counts { overflow-wrap: break-word; }
html.ds .unitcard {
  position: relative; background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r3) !important;
  box-shadow: var(--sh-1) !important; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
html.ds .unitcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2) !important; border-color: var(--subj) !important; }
html.ds .unitcard .uno { background: var(--subj) !important; color: #fff !important; border-radius: var(--rp) !important; }
html.ds .unitcard .uico { background: var(--subj-tint) !important; border-radius: 12px !important; }
html.ds .unitcard h2 { color: var(--ink) !important; letter-spacing: -.01em; }
html.ds .unitcard .labels .lbl { background: var(--paper-2) !important; color: var(--ink-2) !important; border: 0 !important; }
html.ds .unitcard .counts { color: var(--muted) !important; }
html.ds .unitcard .go { color: var(--teal-ink) !important; font-weight: 700; }

/* ---------- 10. Footer --------------------------------------------------- */
html.ds .site-foot { position: relative; background: var(--navy) !important; margin-top: 48px; }
html.ds .site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: var(--band) repeat-x; background-size: 28px 6px; }
html.ds .site-foot a { color: #F2D9A6 !important; }

/* ---------- 11. RTL (Sindhi-medium pages) -------------------------------- */
/* RTL pages keep their own Sindhi body font; English UI islands get the Latin stack */
html.ds[dir="rtl"] .site-head, html.ds[dir="rtl"] .site-foot, html.ds[dir="rtl"] .sh-drawer summary, html.ds[dir="rtl"] .ds-kicker, html.ds[dir="rtl"] .creditblock { font-family: var(--font); }
html.ds[dir="rtl"] .site-head, html.ds[dir="rtl"] .site-foot { direction: ltr; }
html.ds[dir="rtl"] .parthead { border-left: 1px solid var(--line) !important; border-right: 4px solid var(--subj) !important; padding: 10px 16px 10px 14px !important; }
html.ds[dir="rtl"] .readsize::before { margin-inline-end: 2px; }
html.ds[dir="rtl"] .panel { font-size: 1.08rem; line-height: 1.95; }
html.ds[dir="rtl"] .learning-context {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r3) !important;
  border-top: 4px solid var(--subj) !important; box-shadow: var(--sh-1) !important;
}
html.ds .formula, html.ds bdi, html.ds .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- 12. Mobile compaction of the learning-page top (pilot pass 2) - */
@media (max-width: 760px) {
  html.ds .sh-drawer { background: transparent !important; padding: 8px 16px 0 !important; }
  html.ds .sh-drawer summary { padding: 9px 14px !important; font-size: var(--fs-1) !important; }
  html.ds .sh-centre h1, html.ds main.wrap > h1 { font-size: 1.32rem; margin: 4px 0 6px; }
  html.ds .meta-row .chip { font-size: .75rem; padding: 4px 9px; }
  html.ds .ds-toolbar { gap: 8px 10px; padding: 8px 10px; }
  html.ds .ds-toolbar .ls-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.ds .ds-toolbar .langswitch::before { content: ""; width: 18px; height: 18px; margin-inline-end: 2px; flex: none;
    background: currentColor; color: var(--muted);
    -webkit-mask: url("/ds/lang.svg") center/contain no-repeat; mask: url("/ds/lang.svg") center/contain no-repeat; }
  html.ds .ds-toolbar .rs-btn { min-width: 38px; padding: 0 8px; }
  html.ds .ds-toolbar .langbtn { padding: 0 10px; }
  html.ds .ds-toolbar .ls-note { font-size: .75rem; }
  html.ds .card.panel { padding: 14px 13px !important; border-radius: 16px !important; }
  html.ds .creditblock, html.ds .creditblock p { font-size: .75rem !important; line-height: 1.45 !important; }
}
html.ds #panel-lesson > h2:first-of-type + p, html.ds #panel-lesson > h2:first-of-type + p + p.vocab-note {
  font-size: var(--fs-1); color: var(--ink-2); background: var(--paper-2); border-radius: 10px; padding: 10px 12px; line-height: 1.55;
}

/* ---------- 13. Subject hub ---------------------------------------------- */
html.ds .ds-hubhead { display: flex; align-items: center; gap: 14px; margin: 8px 0 10px; }
html.ds .ds-hubhead h1 { margin: 2px 0 0 !important; }
html.ds .ds-hubhead .ds-kicker { margin: 0; }
html.ds .ds-tile-lg { width: 56px; height: 56px; border-radius: 16px; }
html.ds .ds-tile-lg .ds-ic { width: 30px; height: 30px; }
html.ds main.wrap > .note { font-size: var(--fs-1); line-height: 1.6; padding: 12px 14px !important; }
html.ds .hubgrid .unitcard .uhead { align-items: center; }
html.ds .hubgrid .unitcard .counts { font-size: var(--fs-0) !important; }
@media (max-width: 760px) {
  html.ds .ds-tile-lg { width: 46px; height: 46px; border-radius: 14px; }
  html.ds .ds-tile-lg .ds-ic { width: 25px; height: 25px; }
  html.ds .hubgrid .unitcard .labels { display: none; }   /* repeated on every card; the four parts are named in the hub intro */
}
html.ds .unitcard .uno { display: inline-block; padding: 3px 10px; line-height: 1.4; font-size: .72rem !important; letter-spacing: .06em !important; white-space: nowrap; }
html.ds .unitcard .uico { display: inline-grid; place-items: center; width: 40px; height: 40px; font-size: 22px; }
@media (max-width: 760px) {
  /* chapters first on phones: page heading block, then the chapter grid, then notes, credit and the rest
     (nothing removed; the source order is unchanged for screen readers and desktop) */
  html.ds main.wrap:has(> .hubgrid) { display: flex; flex-direction: column; }
  html.ds main.wrap:has(> .hubgrid) > * { order: 3; }
  html.ds main.wrap:has(> .hubgrid) > :is(h1, .ds-hubhead, .sub, .lede, .meta-row, p.crumbs, .crumbs, .learning-context, .langswitch, .ds-toolbar, .readsize) { order: 0; }
  html.ds main.wrap > .hubgrid { order: 1 !important; margin-top: 4px; }
  html.ds main.wrap:has(> .hubgrid) > .note { order: 2; margin-top: 18px; }
  html.ds main.wrap:has(> .hubgrid) > :is(footer, .site-foot) { order: 9; }
  html.ds main.wrap > .meta-row { gap: 5px; }
}

/* Reading-size control everywhere in the pilot: icon label instead of "Reading size:" text (accessible name kept) */
html.ds .readsize .rs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.ds .readsize { display: flex; align-items: center; gap: 6px; }
html.ds .readsize::before { content: "Aa"; font: 700 var(--fs-1)/1 var(--font); color: var(--muted); }
html.ds .readsize .rs-btn { min-height: 40px; min-width: 42px; border-radius: var(--rp); }
html.ds[dir="rtl"] .readsize { direction: ltr; justify-content: flex-start; }
/* English text blocks inside RTL pages read left-to-right (fixes "Board." showing as ".Board") */
html.ds[dir="rtl"] .creditblock, html.ds[dir="rtl"] .ds-kicker { direction: ltr; text-align: left; }
html.ds .sh-drawer, html.ds .sh-drawer details { background: transparent !important; box-shadow: none !important; border: 0 !important; }
/* small text in a subject colour: darken for WCAG AA (icons keep the brighter tone, 3:1 is enough for graphics) */
html.ds .ds-kicker, html.ds .ds-subjcard .topics-label { color: var(--ink-2); color: color-mix(in srgb, var(--subj) 72%, #000); }
/* consistent desktop navigation spacing on every page family (some page-local styles squeezed it) */
@media (min-width: 1024px) {
  html.ds .main-nav .nav-list { display: flex; align-items: center; gap: 2px; }
  html.ds .main-nav .nav-list > li > a, html.ds .main-nav .nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: .92rem; white-space: nowrap; }
}
@media (max-width: 760px) {
  html.ds[dir="rtl"] .learning-context { padding: 12px 14px !important; margin-bottom: 10px !important; }
  html.ds[dir="rtl"] .learning-context h1 { margin: 2px 0 !important; font-size: 1.4rem !important; }
  html.ds[dir="rtl"] .learning-context p:not(.ds-kicker) { margin: 0 !important; }
  html.ds .readsize { margin: 0 0 8px !important; }
}

/* ---------- 14. M2-B rollout: icon tabs (all generations) --------------- */
html.ds .tabs .tabbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
html.ds .tabs .tabbtn .ds-ic { width: 1.2em; height: 1.2em; opacity: .9; }
@media (max-width: 560px) {
  html.ds .tabs .tabbtn { flex-direction: column; gap: 3px; }
  html.ds .tabs .tabbtn .ds-ic { width: 20px; height: 20px; }
}
html.ds .chip .ds-ic, html.ds .ds-chip .ds-ic { width: 1.1em; height: 1.1em; color: var(--subj); }
html.ds .tabs .tabbtn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; min-height: 46px; padding: 6px 4px;
  border: 0 !important; border-radius: 10px; background: transparent !important; color: var(--teal-ink) !important; font: 700 var(--fs-1)/1.2 var(--font);
  text-decoration: none; white-space: normal;
}
html.ds .tabs .tabbtn-link:hover { background: var(--paper-2) !important; }
@media (max-width: 560px) { html.ds .tabs .tabbtn-link { flex-direction: column; gap: 3px; font-size: .78rem; } }

/* ---------- 15. Legacy-generation quiz (Class 6 static "check answer" items) ---------- */
html.ds .xquiz { background: var(--card); border: 1px solid var(--line) !important; border-radius: 16px !important; padding: 16px 16px 14px !important; margin: 14px 0 !important; box-shadow: var(--sh-1); }
html.ds .xquiz .q { font-weight: 700; font-size: var(--fs-3); line-height: 1.45; margin: 0 0 10px; color: var(--ink); }
html.ds .xquiz .opts { display: grid; gap: 8px; }
html.ds .xquiz .opts label {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2);
  border-radius: 12px; background: var(--card); cursor: pointer; transition: border-color var(--ease), background var(--ease);
}
html.ds .xquiz .opts label:hover { border-color: var(--teal); }
html.ds .xquiz .opts label:has(input:checked) { border-color: var(--navy); background: #F2F4F8; }
html.ds .xquiz .opts input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); flex: none; margin: 0; }
html.ds .checkbtn, html.ds .revealbtn { min-height: var(--tap); padding: 0 20px !important; border-radius: var(--rp) !important; background: var(--teal) !important; margin-top: 12px !important; }
html.ds .checkbtn:hover, html.ds .revealbtn:hover { background: var(--teal-ink) !important; }
html.ds .xquiz .fb { margin: 10px 0 0; }
html.ds .xquiz .exp { margin-top: 10px; padding: 10px 12px; border-left: 4px solid var(--teal); background: var(--paper); border-radius: 0 10px 10px 0; }
html.ds main p.crumbs a, html.ds main .crumbs a { color: var(--teal-ink); font-weight: 700; }

/* footer text: readable on navy (the shared footer component no longer inherits page-scoped colours) */
html.ds .site-foot .foot-blurb, html.ds .site-foot .foot-credit, html.ds .site-foot .foot-copy { color: #C6D1E0 !important; }
html.ds .site-foot .foot-blurb b { color: #fff !important; }

/* ---- M2-B trust review: calm markers, reference marks, compact credit, feedback line ---- */
/* calm line icons that replaced alarm emoji; the words after them are unchanged */
html.ds .ds-mk { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-inline-end: .3em; color: var(--teal-ink); }
html.ds .ds-mk-tip { color: var(--gold-ink); }
html.ds .ds-mk-info { color: var(--info, #2A5DA8); }
html.ds .ds-mk-safety { color: #9A4A06; }
/* internal editorial reference codes: lifted out of the student reading flow, kept in the page
   (data-ref + register CSV) and shown as quiet reference marks in the Teacher's Guide */
html.ds .ds-ref { display: none; }
html.ds .ds-ref.inl,
html.ds :is(#panel-guide, #guide, .tabpanel.guide) .ds-ref {
  display: inline; font-size: .8em; font-weight: 500; color: var(--muted); letter-spacing: .01em;
}
/* compact source credit: the source line stays visible; reproduction and independence notes open on request */
html.ds .creditblock .ds-credit-more { margin-top: 4px; }
html.ds .creditblock .ds-credit-more summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; color: var(--teal-ink);
}
html.ds .creditblock .ds-credit-more summary { list-style: none; }
html.ds .creditblock .ds-credit-more summary::-webkit-details-marker { display: none; }
html.ds .creditblock .ds-credit-more summary::after {
  content: ""; width: .42em; height: .42em; margin-inline-start: .55em; margin-top: -.25em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
html.ds .creditblock .ds-credit-more[open] summary::after { transform: rotate(-135deg); margin-top: .2em; }
html.ds .creditblock .ds-credit-more summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
html.ds .creditblock .ds-credit-more p { margin: 2px 0 4px; }
html.ds .creditblock .ds-credit-more a { color: var(--teal-ink); font-weight: 600; }
/* one unified, unobtrusive feedback line on content pages (rendered by SiteFooter feedback) */
html.ds .ds-feedback { background: var(--paper-2); border-top: 1px solid var(--line); }
html.ds .ds-feedback p {
  max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-0); line-height: 1.5; color: var(--ink-2) !important;
}
html.ds .ds-feedback .ds-ic { color: var(--teal-ink); margin-top: 1px; }
html.ds .ds-feedback a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---- M2-B final refinement: lesson pages reach the lesson sooner on phones ----
   Nothing is removed: the language note stays available to screen readers (the Lesson introduction
   repeats the same instruction visibly), and the source credit's "About this source" control sits
   on the same line as the credit. */
@media (max-width: 640px) {
  html.ds .ds-toolbar .ls-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.ds .ds-toolbar { padding: 6px 10px; margin-bottom: 4px; }
  html.ds .creditblock > p:first-child { display: inline; }
  html.ds .creditblock .ds-credit-more { display: inline; margin: 0; }
  html.ds .creditblock .ds-credit-more summary { display: inline-flex; min-height: 32px; margin-inline-start: 4px; vertical-align: middle; }
  html.ds .creditblock .ds-credit-more[open] > p { display: block; margin-top: 6px; }
  html.ds .creditblock { padding: 8px 12px !important; }
}

/* ---- M2-B final refinement: Islamiyat IX–X style hubs (chapter grid inside a panel card) ----
   On phones the chapter cards come straight after the short introduction; the review notices and
   the source credit follow the grid (same as every other hub). Source order is unchanged. */
@media (max-width: 760px) {
  html.ds .card.panel:has(> .hubgrid) { display: flex; flex-direction: column; }
  html.ds .card.panel:has(> .hubgrid) > * { order: 3; }
  html.ds .card.panel:has(> .hubgrid) > p:not(.small) { order: 0; }
  html.ds .card.panel > .hubgrid { order: 1; margin: 6px 0 4px; }
  html.ds .card.panel:has(> .hubgrid) > .note { order: 2; margin-top: 16px; }
  html.ds .card.panel:has(> .hubgrid) > .creditblock { order: 4; margin: 16px 0 0 !important; }
  html.ds .card.panel:has(> .hubgrid) > p.small { order: 2; }
}

/* internal workflow labels (owner refinement R0x, preflight notes, P01-FIX reports …): lifted for every
   reader, including Teacher's Guides; text kept in the page and listed in internal_labels_register.csv */
html.ds .ds-ref.ds-int, html.ds :is(#panel-guide, #guide, .tabpanel.guide) .ds-ref.ds-int { display: none !important; }
html.ds .ds-mk-pro { color: var(--gold-ink); }

/* phones: reading size and language share one row when they fit (wrap otherwise); the visible
   "Aa" and globe marks give way, their accessible labels (rs-label / ls-label) remain */
@media (max-width: 640px) {
  html.ds .ds-toolbar { gap: 6px 8px; justify-content: space-between; }
  html.ds .ds-toolbar .readsize::before { content: none; }
  html.ds .ds-toolbar .langswitch::before { display: none; }
  html.ds .ds-toolbar .rs-btn { min-width: 34px; padding: 0 6px; }
  html.ds .ds-toolbar .langbtn { padding: 0 9px; }
  html.ds .ds-toolbar .readsize, html.ds .ds-toolbar .langswitch { gap: 4px; }
}

/* textbook Learning Outcomes as a disclosure (open by default; closed on phones by shell.js) */
html.ds details.los > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; }
html.ds details.los > summary::-webkit-details-marker { display: none; }
html.ds details.los > summary::after {
  content: ""; width: .5em; height: .5em; margin-inline-start: auto; margin-inline-end: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none;
}
html.ds details.los[open] > summary::after { transform: rotate(-135deg); }
html.ds details.los > summary:focus-visible { box-shadow: var(--focus); border-radius: 8px; }
html.ds details.los .ds-count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); font-size: .8rem; font-weight: 700; flex: none; }
html.ds .procard ul:has(> li > .ds-mk-pro:first-child) { list-style: none; padding-inline-start: 0; }
html.ds .procard ul:has(> li > .ds-mk-pro:first-child) > li { padding-inline-start: 1.5em; text-indent: -1.5em; }

/* ===================== Membership: Free and Pro (M2-B, owner-approved presentation) =====================
   Shared by the homepage and About Us (src/components/shell/MembershipPlans.astro) and echoed by the
   quiz-tab Pro card. Public price format "Rs. 250/month"; Pro is "Coming soon" (a label, not a control). */
html.ds .ds-mship { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; max-width: 920px; margin: 0 auto; }
html.ds .ds-mcard {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 30px 28px 26px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(19,35,59,.05), 0 14px 34px -18px rgba(19,35,59,.28);
}
html.ds .ds-mcard h3 { margin: 14px 0 4px; font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink); }
html.ds .ds-mcard-tag { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-1); line-height: 1.45; }
html.ds .ds-mcard-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
html.ds .ds-mcard-price b { font-size: 2.35rem; line-height: 1; letter-spacing: -.02em; color: var(--navy); }
html.ds .ds-mcard-price span { color: var(--muted); font-weight: 600; }
html.ds .ds-mcard-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; flex: 1; }
html.ds .ds-mcard-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--ink-2); }
html.ds .ds-mcard-list .ds-ic { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--teal); }
html.ds .ds-mcard-emblem { width: 56px; height: 56px; display: grid; place-items: center; }
html.ds .ds-mcard-emblem svg { width: 100%; height: auto; }
html.ds .ds-mcard-cta {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; font-weight: 700;
  background: var(--paper-2); color: var(--ink); text-decoration: none; border: 1px solid var(--line);
}
html.ds .ds-mcard-cta:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
html.ds .ds-mcard-free { background: linear-gradient(180deg, #FFFFFF 0%, #FBFAF6 100%); }
html.ds .ds-mcard-free::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, #2FA592, #0A7166);
}

/* Pro: deep navy, gold hairline, soft gold light, original crown */
html.ds .ds-mcard-pro {
  color: #E9EEF6; border: 1px solid rgba(226,169,59,.55);
  background:
    radial-gradient(420px 220px at 85% -10%, rgba(226,169,59,.22), transparent 70%),
    radial-gradient(360px 260px at -10% 110%, rgba(10,113,102,.30), transparent 70%),
    linear-gradient(160deg, #1A2E4C 0%, #13233B 48%, #0C1829 100%);
  box-shadow: 0 0 0 4px rgba(226,169,59,.08), 0 22px 46px -20px rgba(12,24,41,.65);
}
html.ds .ds-mcard-pro::before {
  content: ""; position: absolute; inset: 10px; border-radius: 15px; border: 1px solid rgba(243,207,116,.14); pointer-events: none;
}
html.ds .ds-mcard-pro::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 6px; border-radius: 6px 6px 0 0;
  background: var(--band) repeat-x; background-size: 28px 6px; opacity: .9;
}
html.ds .ds-mcard-pro h3, html.ds .pg .ds-mcard-pro h3, html.ds main .ds-mcard-pro h3 { color: #F3CF74 !important; }
html.ds .pg .ds-mcard h3, html.ds main .ds-mcard h3 { margin: 14px 0 4px; }
html.ds .ds-mcard-pro .ds-mcard-tag { color: #C6D1E0; }
html.ds .ds-mcard-pro .ds-mcard-price { border-bottom-color: rgba(243,207,116,.22); }
html.ds .ds-mcard-pro .ds-mcard-price b { color: #FFF; text-shadow: 0 2px 18px rgba(226,169,59,.35); }
html.ds .ds-mcard-pro .ds-mcard-price span { color: #F3CF74; }
html.ds .ds-mcard-pro .ds-mcard-list li { color: #E9EEF6; }
html.ds .ds-mcard-pro .ds-mcard-list .ds-ic { color: #F3CF74; }
html.ds .ds-mcard-crown { width: 72px; height: 58px; filter: drop-shadow(0 6px 14px rgba(226,169,59,.35)); }
html.ds .ds-mcard-soon {
  position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: #13233B; background: linear-gradient(180deg, #FBE3A0, #E2A93B); box-shadow: 0 4px 12px -4px rgba(226,169,59,.6);
}
html.ds .ds-mcard-soon .ds-ic { width: 15px; height: 15px; }
html.ds .ds-mcard-status {
  margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; font-size: var(--fs-0); line-height: 1.5; text-align: center;
  color: #F3CF74; background: rgba(226,169,59,.10); border: 1px dashed rgba(243,207,116,.45);
}
html.ds .ds-mship-note { max-width: 920px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: var(--fs-0); }
@media (max-width: 760px) {
  html.ds .ds-mship { grid-template-columns: 1fr; gap: 18px; }
  html.ds .ds-mcard { padding: 26px 20px 22px; }
  html.ds .ds-mcard-price b { font-size: 2.1rem; }
  html.ds .ds-mcard-soon { top: 18px; right: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  html.ds .ds-mcard-free:hover { transform: translateY(-2px); transition: transform .2s ease; }
}

/* quiz-tab Pro card (all chapter/unit pages): the same identity in a compact form */
html.ds .procard {
  position: relative; color: #E9EEF6 !important; border: 1px solid rgba(226,169,59,.55) !important; border-radius: 18px !important;
  background:
    radial-gradient(320px 180px at 90% -20%, rgba(226,169,59,.22), transparent 70%),
    linear-gradient(160deg, #1A2E4C 0%, #13233B 55%, #0C1829 100%) !important;
  box-shadow: 0 18px 36px -20px rgba(12,24,41,.6) !important; padding: 20px 20px 16px !important;
}
html.ds .procard h3 { color: #FFF !important; font-size: 1.08rem !important; line-height: 1.35; margin: 8px 0 6px !important; }
html.ds .procard p { color: #C6D1E0 !important; }
html.ds .procard ul { list-style: none !important; padding-inline-start: 0 !important; margin: 10px 0 4px !important; display: grid; gap: 8px; }
html.ds .procard li { display: flex; gap: 9px; align-items: flex-start; color: #E9EEF6 !important; line-height: 1.45; text-indent: 0 !important; padding: 0 !important; }
html.ds .procard li .ds-ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #F3CF74; }
html.ds .procard .ds-pro-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; }
html.ds .procard .ds-pro-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .02em; color: #F3CF74 !important; margin: 0; }
html.ds .procard .ds-pro-brand svg { width: 30px; height: 24px; }
html.ds .procard .ds-pro-soon {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  color: #13233B; background: linear-gradient(180deg, #FBE3A0, #E2A93B);
}
html.ds .procard .ds-pro-soon .ds-ic { width: 13px; height: 13px; }
html.ds .procard .ds-pro-price { margin: 0 0 6px !important; color: #F3CF74 !important; font-weight: 600; }
html.ds .procard .ds-pro-price b { font-size: 1.6rem; color: #FFF; letter-spacing: -.01em; margin-inline-end: 2px; }
