/* Product pages: courses, communities, forms, payments, analytics, branding, capabilities.
   Builds on system.css + home.css. Editorial devices only: rules, numbers, serif, real frames. */

/* ---------- Page hero ---------- */
.ph { padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(56px, 6vw, 96px); }
.ph__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr); gap: clamp(32px, 4.5vw, 76px); align-items: center; }
@media (max-width: 1020px) { .ph__grid { grid-template-columns: minmax(0, 1fr); } }
.ph__copy { display: grid; gap: 22px; justify-items: start; }
.ph .strike { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -.015em; line-height: 1; margin-bottom: -6px; }
.ph .h1 { font-size: clamp(2.4rem, 1.3rem + 3.2vw, 3.9rem); }
.ph .lede { max-width: 52ch; }
.ph__media { position: relative; min-width: 0; }
.ph__media .frame { margin-inline-end: calc(min(0px, (100vw - var(--wrap)) / -2 + 20px)); }
.ph__cap { margin-top: 12px; font-size: var(--t-xs); color: var(--ink-3); }
.stage .ph__cap { color: var(--stage-ink-3); }
.ph--stage { background: var(--stage); color: var(--stage-ink); padding-top: clamp(40px, 5vw, 80px); }
.ph--stage .lede { color: var(--stage-ink-2); }

/* crop a tall screenshot to a window */

/* floating detail */
.ph__media .float, .media-stack .float { position: absolute; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: var(--surface); }

/* mono annotation pins on a frame */
.pins { position: relative; }
/* left/top set the pin's centre */
.pin { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 10.5px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent); }
.on-stage .pin { background: var(--stage-ink); color: var(--stage); box-shadow: 0 0 0 4px rgba(5,4,11,.6); }
@media (max-width: 680px) { .pin { width: 22px; height: 22px; font-size: 9.5px; } }

/* ---------- Section head with side note ---------- */
.shead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.shead > div { display: grid; gap: 18px; }
@media (max-width: 900px) { .shead { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ledger: label / text rows with hairlines ---------- */
.ledger { display: grid; border-top: 1px solid var(--line-2); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ledger dt, .ledger .k { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.ledger dd, .ledger .v { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.ledger dd b { color: var(--ink); font-weight: 650; }
.ledger--tight > div { padding: 14px 0; }
.ledger--tight dt { font-size: 1.05rem; }
@media (max-width: 620px) { .ledger > div { grid-template-columns: minmax(0, 1fr); } }
.stage .ledger { border-color: var(--stage-line); }
.stage .ledger > div { border-color: var(--stage-line); }
.stage .ledger dt { color: var(--stage-ink); }
.stage .ledger dd { color: var(--stage-ink-2); }
.stage .ledger dd b { color: var(--stage-ink); }

/* mono label */
.lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stage .lbl { color: var(--stage-ink-3); }

/* ---------- Structure tree (program > course > chapter > lesson) ---------- */
.tree { list-style: none; display: grid; gap: 0; font-family: var(--f-display); }
.tree li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tree li > span:last-child { position: relative; padding-inline-start: calc(var(--d, 0) * clamp(14px, 2.6vw, 30px)); }
.tree li:not(:first-child) > span:last-child::before { content: ""; position: absolute; inset-inline-start: calc(var(--d, 0) * clamp(14px, 2.6vw, 30px) - 16px); top: .2em; width: 10px; height: .6em; border-inline-start: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tree li:first-child { border-top: 1px solid var(--line-2); }
.tree .lbl { align-self: center; }
.tree b { font-weight: 700; font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); letter-spacing: -.015em; line-height: 1.15; }
.tree small { display: block; font-family: var(--f-body); font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; letter-spacing: 0; }
.tree li[style*="--d:3"] b { color: var(--accent); }

/* ---------- Trio: three typographic columns (not cards) ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 56px); }
@media (max-width: 900px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.trio > div { display: grid; gap: 14px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.trio > div:nth-child(2) { border-color: var(--accent, var(--violet)); }
.trio h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); letter-spacing: -.025em; line-height: 1; }
.trio p { color: var(--ink-2); font-size: var(--t-sm); }
.stage .trio > div { border-color: var(--stage-ink); }
.stage .trio > div:nth-child(2) { border-color: var(--accent, var(--mint-bright)); }

/* ---------- Ladder: gated steps to a certificate ---------- */
.ladder { list-style: none; display: grid; gap: 10px; counter-reset: lad; }
.ladder li { counter-increment: lad; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; padding-inline-end: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ladder li::before { content: counter(lad, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft, var(--violet-soft)); color: var(--accent, var(--violet)); font-family: var(--f-mono); font-size: 12px; }
.ladder b { display: block; font-weight: 650; }
.ladder small { display: block; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; }
.ladder .gate { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ladder li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 35px; bottom: -11px; width: 2px; height: 12px; background: var(--line-2); }
.ladder li.is-end { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ladder li.is-end small, .ladder li.is-end .gate { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.ladder li.is-end::before { background: var(--accent, var(--violet)); color: #fff; content: ""; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 22px; }
@media (max-width: 520px) { .ladder li { grid-template-columns: 44px minmax(0, 1fr); } .ladder .gate { grid-column: 2; } }

/* ---------- Certificate anatomy (a labelled diagram, not a screenshot) ---------- */
.cert { position: relative; aspect-ratio: 1.414; border-radius: 6px; background: #fbf8f1; color: #1d1a14; padding: clamp(18px, 4%, 40px); box-shadow: var(--shadow-lg); display: grid; grid-template-rows: auto 1fr auto; text-align: center; border: 1px solid rgba(0,0,0,.08); }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(184, 110, 0, .45); border-radius: 3px; pointer-events: none; }
.cert__k { font-family: var(--f-mono); font-size: clamp(8px, 1.1vw, 10.5px); letter-spacing: .22em; text-transform: uppercase; color: #8a6a2c; }
.cert__mid { display: grid; align-content: center; gap: clamp(4px, 1vw, 10px); }
.cert__mid small { font-size: clamp(9px, 1.2vw, 12px); color: #6b6455; }
.cert__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, .9rem + 2.2vw, 2.5rem); letter-spacing: -.02em; line-height: 1.05; }
.cert__course { font-family: var(--f-display); font-weight: 500; font-size: clamp(.85rem, .7rem + .6vw, 1.15rem); }
.cert__foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; font-size: clamp(8px, 1vw, 10.5px); color: #6b6455; }
.cert__sig { display: grid; gap: 4px; justify-items: center; }
.cert__sig i { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(.9rem, .7rem + .8vw, 1.35rem); color: #2b2620; border-bottom: 1px solid rgba(0,0,0,.35); padding: 0 10px 2px; line-height: 1.1; }
.cert__seal { width: clamp(34px, 6vw, 58px); aspect-ratio: 1; border-radius: 50%; background: #8e5500; color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: clamp(7px, .9vw, 9px); letter-spacing: .08em; box-shadow: 0 0 0 3px #fbf8f1, 0 0 0 4px rgba(184,110,0,.5); }
.cert__id { position: absolute; inset-inline: 0; bottom: -30px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-align: center; direction: ltr; }
.cert-wrap { position: relative; padding-bottom: 36px; }
.cert .pin { box-shadow: 0 0 0 4px rgba(251,248,241,.9); }

/* ---------- Pair: two big words side by side (USD / EGP) ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pair > div { padding: clamp(22px, 3vw, 40px) clamp(0px, 2vw, 28px); display: grid; gap: 10px; align-content: start; }
.pair > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(18px, 3vw, 40px); }
.pair b { font-family: var(--f-display); font-weight: 900; font-size: clamp(3.2rem, 2rem + 5vw, 7rem); line-height: .85; letter-spacing: -.04em; color: var(--accent, var(--ink)); }
.pair span { color: var(--ink-2); font-size: var(--t-sm); max-width: 36ch; }
.pair span b { font: inherit; color: var(--ink); font-weight: 650; letter-spacing: 0; }
@media (max-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr); } .pair > div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; } }

/* ---------- Meter: four labelled slots (no numbers) ---------- */
.meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.meter > div { background: var(--surface); padding: 20px; display: grid; gap: 8px; align-content: start; }
.meter b { font-weight: 650; font-size: .98rem; }
.meter small { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; }
.meter i { width: 26px; height: 3px; border-radius: 2px; background: var(--accent, var(--violet)); opacity: var(--o, 1); }
@media (max-width: 760px) { .meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Fee table ---------- */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.fees > div { padding: 22px; display: grid; gap: 6px; align-content: start; border-inline-end: 1px solid var(--line); }
.fees > div:last-child { border-inline-end: 0; }
.fees .lbl { margin-bottom: 4px; }
.fees b { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1; }
.fees b small { font-family: var(--f-body); font-weight: 500; font-size: .85rem; letter-spacing: 0; color: var(--ink-3); }
.fees em { font-style: normal; font-size: var(--t-sm); color: var(--accent, var(--violet-ink)); font-weight: 650; }
.fees > div.is-hi { background: var(--accent-soft, var(--violet-soft)); }
@media (max-width: 860px) { .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fees > div:nth-child(2) { border-inline-end: 0; } .fees > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Gates: three join modes as a switch ---------- */
.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.gates > div { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; align-content: start; border-inline-end: 1px solid var(--line); }
.gates > div:last-child { border-inline-end: 0; }
.gates .lbl { color: var(--accent, var(--violet-ink)); }
.gates h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; }
.gates p { color: var(--ink-2); font-size: var(--t-sm); }
.gates .who { margin-top: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
@media (max-width: 820px) { .gates { grid-template-columns: minmax(0, 1fr); } .gates > div { border-inline-end: 0; border-bottom: 1px solid var(--line); } .gates > div:last-child { border-bottom: 0; } }

/* ---------- Specimen: big type list (question types, roles) ---------- */
.spec { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line-2); }
.spec > span { flex: 1 1 33%; min-width: 220px; display: grid; gap: 4px; padding: 18px 0; padding-inline-end: 20px; border-bottom: 1px solid var(--line); }
.spec b { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.02em; line-height: 1.05; }
.spec small { font-size: var(--t-xs); color: var(--ink-3); }
.spec .lbl { color: var(--accent, var(--ink-3)); }

/* chips row */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .86rem; color: var(--ink-2); }
.chips span.on { background: var(--accent-soft, var(--violet-soft)); border-color: transparent; color: var(--accent, var(--violet-ink)); font-weight: 600; }
.stage .chips span { background: transparent; border-color: var(--stage-line); color: var(--stage-ink-2); }

/* ---------- Board questions ---------- */
.qs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--stage-line); }
.qs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 10px 28px; padding: 22px 0; border-bottom: 1px solid var(--stage-line); align-items: baseline; }
.qs q { quotes: none; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem); letter-spacing: -.015em; line-height: 1.2; color: var(--stage-ink); }
.qs span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--stage-ink-3); }
.qs span b { color: var(--stage-ink); font-weight: 500; }
@media (max-width: 720px) { .qs li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Org band (link to learning.html) ---------- */
.orgband { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .orgband { grid-template-columns: minmax(0, 1fr); } }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.who-list > div { padding: 16px 0; border-top: 1px solid var(--stage-line); display: grid; gap: 4px; }
.who-list b { color: var(--stage-ink); font-weight: 650; font-size: .98rem; }
.who-list small { color: var(--stage-ink-3); font-size: var(--t-xs); line-height: 1.5; }
@media (max-width: 520px) { .who-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Capabilities map ---------- */
.cap-jump { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-jump ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cap-jump a { display: flex; align-items: baseline; gap: 10px; padding: 14px 4px; text-decoration: none; color: var(--ink-2); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; border-inline-end: 1px solid var(--line); padding-inline-start: 16px; }
.cap-jump li:first-child a { padding-inline-start: 0; }
.cap-jump li:last-child a { border-inline-end: 0; }
.cap-jump a:hover { color: var(--ink); }
.cap-jump a span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--accent); }
.cap-jump a small { font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--ink-3); letter-spacing: 0; }
@media (max-width: 760px) { .cap-jump a small { display: none; } .cap-jump a { font-size: 1rem; padding-inline-start: 10px; } }

.cap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .cap { grid-template-columns: minmax(0, 1fr); } }
.cap__side { position: sticky; top: calc(var(--nav-h) + 90px); display: grid; gap: 18px; }
@media (max-width: 960px) { .cap__side { position: static; } }
.cap__num { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent); letter-spacing: .08em; }
.cap__verb { font-family: var(--f-display); font-weight: 900; font-size: clamp(3.6rem, 2rem + 6vw, 7.5rem); line-height: .85; letter-spacing: -.04em; color: var(--ink); }
.cap__verb span { color: var(--accent); }
.cap__side p { color: var(--ink-2); max-width: 38ch; }
.cap__side .frame { margin-top: 8px; }
.cap__list { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.cap__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.cap__item h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); letter-spacing: -.018em; line-height: 1.1; }
.cap__item h3 a { text-decoration: none; }
.cap__item h3 a:hover { color: var(--accent); }
.cap__item p { color: var(--ink-2); font-size: var(--t-sm); max-width: 56ch; grid-column: 1; }
.cap__item .mini-tags { grid-column: 1 / -1; }
.cap__go { grid-row: 1; grid-column: 2; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-3); transition: background-color .2s, color .2s, transform .2s var(--ease); text-decoration: none; }
.cap__go svg { width: 16px; height: 16px; }
.cap__item:hover .cap__go { background: var(--accent); color: #fff; border-color: transparent; transform: translateX(3px); }
[dir="rtl"] .cap__item:hover .cap__go { transform: translateX(-3px); }
[dir="rtl"] .cap__go svg { transform: scaleX(-1); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-inline-start: 10px; vertical-align: middle; border-radius: 6px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* the one-account spine on capabilities */
.spine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--stage-line); border-radius: var(--r-lg); overflow: hidden; }
.spine > div { padding: 24px; display: grid; gap: 6px; border-inline-end: 1px solid var(--stage-line); }
.spine > div:last-child { border-inline-end: 0; }
.spine b { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--stage-ink); letter-spacing: -.01em; }
.spine small { color: var(--stage-ink-3); font-size: var(--t-sm); line-height: 1.5; }
@media (max-width: 760px) { .spine { grid-template-columns: minmax(0, 1fr); } .spine > div { border-inline-end: 0; border-bottom: 1px solid var(--stage-line); } .spine > div:last-child { border-bottom: 0; } }

/* everywhere strip on light background is not needed: branding uses stage */
.ew__img .crop { aspect-ratio: auto; height: 100%; }
.ew__ph { position: relative; }
.ew__ph::after { content: attr(data-k); position: absolute; top: 8px; inset-inline-start: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(5,4,11,.7); padding: 3px 7px; border-radius: 5px; }

/* misc */
.pull { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); letter-spacing: -.01em; line-height: 1.3; color: var(--ink-2); max-width: 30ch; padding-inline-start: 18px; border-inline-start: 3px solid var(--accent, var(--violet)); }
.stage .pull { color: var(--stage-ink); }
.fine { font-size: var(--t-xs); color: var(--ink-3); }
.stage .fine { color: var(--stage-ink-3); }
.closing .cta-band h2 { max-width: 18ch; }
.notes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
@media (max-width: 620px) { .notes--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* zoomed crop of a screenshot: --z scale, --x/--y offsets (percent of the window) */
.zoom { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 5); background: #fff; }
.zoom img { position: absolute; max-width: none; width: calc(100% * var(--z, 1)); height: auto; left: var(--x, 0); top: var(--y, 0); }
.stage .trio p { color: var(--stage-ink-2); }
.stage .trio h3 { color: var(--stage-ink); }

/* ---------- Branding: the everywhere strip tiles ---------- */
.bwrap { --brand: #0F6E6E; }
.ew__img { position: relative; }
.ew__img .bsw__mark { top: 10px; inset-inline-start: 10px; padding: 4px; padding-inline-end: 9px; font-size: .72rem; border-radius: 9px; gap: 7px; }
.ew__img .bsw__mono { width: 22px; height: 22px; border-radius: 6px; font-size: .62rem; background: var(--brand); }
.ewx { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 16px; font-size: .78rem; color: var(--stage-ink-2); }
.ewx__fav { width: 18px; height: 18px; border-radius: 5px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--f-brand); font-weight: 800; font-size: 8px; flex: none; transition: background-color .4s; }
.ewx-tabs { display: flex; gap: 4px; align-items: end; }
.ewx-tab { display: flex; align-items: center; gap: 7px; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px 8px 0 0; background: var(--stage-3); color: var(--stage-ink-3); font-size: .72rem; white-space: nowrap; overflow: hidden; }
.ewx-tab.is-on { background: #fff; color: #12101f; font-weight: 600; flex: 1; }
.ewx-tab span { overflow: hidden; text-overflow: ellipsis; }
.ewx-url { margin-top: -10px; height: 30px; border-radius: 0 8px 8px 8px; background: #fff; color: #4b4763; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-family: "JetBrains Mono", monospace; font-size: .68rem; white-space: nowrap; overflow: hidden; direction: ltr; }
.ewx-url b { color: #12101f; font-weight: 500; }
.ewx-mail { background: #fff; color: #12101f; border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; align-items: center; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.ewx-mail .ewx__fav { width: 30px; height: 30px; border-radius: 50%; font-size: 10px; grid-row: span 2; }
.ewx-mail b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ewx-mail small { color: #66637f; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ewx-mail p { grid-column: 1 / -1; margin-top: 6px; padding-top: 8px; border-top: 1px solid #eceaf4; color: #3a3854 !important; font-size: .72rem; line-height: 1.4; }
.ewx-mail--ghost { opacity: .35; transform: scale(.94); box-shadow: none; }
.cert--mini { aspect-ratio: auto; height: 100%; border-radius: 0; padding: 14px; box-shadow: none; border: 0; }
.cert--mini::before { inset: 7px; }
.cert--mini .cert__k { font-size: 7px; letter-spacing: .18em; }
.cert--mini .cert__name { font-size: 1.05rem; }
.cert--mini .cert__mid small { font-size: 7.5px; }
.cert--mini .cert__course { font-size: .66rem; }
.cert--mini .cert__foot { font-size: 6.5px; gap: 6px; }
.cert--mini .cert__sig i { font-size: .7rem; padding: 0 4px 1px; }
.cert--mini .cert__seal { width: 26px; font-size: 6.5px; background: var(--brand); box-shadow: 0 0 0 2px #fbf8f1, 0 0 0 3px var(--brand); transition: background-color .4s; }
.cert--mini .cert__logo { justify-self: center; display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-brand); font-weight: 800; font-size: .62rem; color: #1d1a14; }
.cert--mini .cert__logo .ewx__fav { width: 14px; height: 14px; font-size: 6px; border-radius: 4px; }
@media (max-width: 1100px) and (min-width: 901px) { .everywhere { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* languages specimen */
.langbig { display: grid; gap: 4px; }
.langbig span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.25; letter-spacing: -.01em; color: var(--ink-4); }
.langbig span.on { color: var(--ink); }
.langbig span[lang="ar"], .langbig span[lang="ur"] { font-family: "Thmanyah Serif Display", serif; letter-spacing: 0; direction: rtl; text-align: start; }
.ew .ewx b, .ew .ewx-url b { color: #12101f; }
.ewx-url { font-size: .6rem; text-overflow: ellipsis; display: block; line-height: 30px; }
.pair--stack { grid-template-columns: minmax(0, 1fr); }
.pair--stack > div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: clamp(0px, 2vw, 28px); }
.pair--stack b { overflow-wrap: anywhere; }
.langbig span[lang="ar"], .langbig span[lang="ur"] { text-align: left; }
/* RTL page: every language line hangs from the right edge */
[dir="rtl"] .langbig span[lang="ar"], [dir="rtl"] .langbig span[lang="ur"] { text-align: start; }
[dir="rtl"] .langbig span:not([lang="ar"]):not([lang="ur"]) { direction: ltr; text-align: end; }

/* capabilities hero: the four verbs as an index */
.verbs { display: grid; border-top: 2px solid var(--ink); }
.verbs a { display: grid; grid-template-columns: 34px minmax(0, auto) minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: padding .25s var(--ease); }
.verbs .mono { color: var(--accent); font-size: 12px; }
.verbs b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem); line-height: .95; letter-spacing: -.035em; color: var(--ink); }
.verbs b i { font-style: normal; color: var(--accent); }
.verbs small { color: var(--ink-3); font-size: var(--t-sm); line-height: 1.4; justify-self: end; text-align: end; max-width: 24ch; }
.verbs a:hover { padding-inline-start: 10px; }
.verbs a:hover b { color: var(--accent); }
@media (max-width: 560px) { .verbs a { grid-template-columns: 28px minmax(0, 1fr); } .verbs small { grid-column: 2; justify-self: start; text-align: start; } }
.frame .pin { background: #0c0b17; color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 14px -4px rgba(0,0,0,.4); }
