/* ============================================================
   NEWS — Dynamics launch (AR + EN)
   Formal company announcement: white and light grey, dark ink,
   one accent in LEAP black (#1d1d1d), Cairo for every script and size.
   No illustration, no decorative colour, no glass or gradients.
   Shared by news/2026/11/dynamics-launch.html and its /en/ mirror;
   direction-sensitive rules use logical properties.
   ============================================================ */

:root {
    --primary: #1d1d1d;   /* read by the shared footer */
    --accent: #37b3e3;    /* read by the shared header */
    --bg: #FFFFFF;
    --panel: #F4F6F8;
    --line: #E2E6EA;
    --line-strong: #CBD2D9;
    --ink: #161B22;
    --ink-2: #4B5563;
    --ink-3: #5F6875;
    --act: #1d1d1d;       /* LEAP black: buttons, links, bullets, focus */
    --act-ink: #1d1d1d;
    --act-deep: #000000;  /* hover */
    /* The old names, still read by design previews that link this file. */
    --green: var(--act);
    --green-ink: var(--act-ink);
    --green-deep: var(--act-deep);
    --radius: 10px;
    --wrap: 1200px;
    --measure: 660px;     /* one text width for paragraphs and ruled lists; boxes span the column */
    --gutter: clamp(16px, 4vw, 48px);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
    font-family: 'Cairo', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; }

::selection { background: #D9DCE0; color: var(--ink); }
input { caret-color: var(--act); }
a { color: var(--act-ink); }
:focus-visible { outline: 3px solid var(--act); outline-offset: 3px; border-radius: 4px; }

.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px;
    border-radius: 8px;
    font: 700 1rem/1.2 'Cairo', sans-serif;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .btn svg.dir { transform: scaleX(-1); }
.btn--primary { background: var(--act); color: #fff; }
.btn--primary:hover { background: var(--act-deep); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }

/* ── HEAD ───────────────────────────────────────────────── */
.head { padding-top: clamp(118px, 12vw, 150px); border-bottom: 1px solid var(--line); }
.crumbs {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start;
    padding: 0; margin: 0 0 28px; max-width: none; width: auto; height: auto;
    font-size: 14px; font-weight: 600; color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--act-ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }

.head__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    padding-bottom: clamp(40px, 5vw, 64px);
}
.head h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    max-width: 24ch;
    text-wrap: balance;
}
html[lang="en"] .head h1 { line-height: 1.18; letter-spacing: -0.01em; max-width: 26ch; }
.meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
    margin-top: 18px;
    font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-inline-end: 16px; vertical-align: middle; }
.lede {
    margin-top: 22px;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.85;
    color: var(--ink-2);
    max-width: 60ch;
}
html[lang="en"] .lede { line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── FACT SHEET ─────────────────────────────────────────── */
.facts {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}
.facts h2 {
    font-size: 1rem; font-weight: 800; line-height: 1.4;
    padding: 16px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.facts dt, .facts dd { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.facts dl > :nth-child(1), .facts dl > :nth-child(2) { border-top: 0; }
.facts dt { color: var(--ink-3); font-weight: 600; padding-inline-end: 8px; }
.facts dd { color: var(--ink); font-weight: 700; text-align: end; }
.facts dd bdi { white-space: nowrap; }
.facts dd a { color: var(--act-ink); }
.facts .btn { margin: 4px 20px 20px; width: calc(100% - 40px); }

/* ── ARTICLE ────────────────────────────────────────────── */
.body { padding-block: clamp(44px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.body__grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.article > * + * { margin-top: 20px; }
.article h2 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.45;
    margin-top: 52px;
    scroll-margin-top: 120px;
}
html[lang="en"] .article h2 { line-height: 1.3; }
.article > h2:first-child { margin-top: 0; }
.article p { font-size: 1.1rem; line-height: 1.95; color: var(--ink); max-width: var(--measure); }
html[lang="en"] .article p { line-height: 1.75; }
.article p a, .article li a { color: var(--act-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.article p a:hover, .article li a:hover { color: var(--act-deep); }
.article strong { font-weight: 800; }

.shot { margin-top: 0; margin-bottom: 8px; }
.shot__frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.shot__bar { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.shot__bar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; direction: ltr; }
.shot img, .shot picture { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.shot figcaption a { color: var(--act-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.shot figcaption a:hover { color: var(--act-deep); }
/* A screenshot inside the running text sits apart from the list above it. */
.article > .shot--flow { margin-top: 32px; margin-bottom: 0; }
.shot--flow figcaption { max-width: var(--measure); }

/* Section screenshots: two per row, each with its own short caption. */
.article > .gallery { margin-top: 32px; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.gallery__grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.gallery__grid figcaption { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.gallery__grid figcaption strong { color: var(--ink); font-weight: 800; }
.gallery__note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

.points { list-style: none; display: grid; gap: 14px; max-width: var(--measure); }
.points li { position: relative; padding-inline-start: 26px; font-size: 1.1rem; line-height: 1.9; }
html[lang="en"] .points li { line-height: 1.7; }
.points li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 8px; height: 8px; border-radius: 2px; background: var(--act); }

.article > h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.5; margin-top: 36px; }
.article > h3 + * { margin-top: 12px; }

/* Ruled rows: publishing rules, the site's sections, and the FAQ share one rhythm. */
.rules, .sections, .qa { list-style: none; border-top: 1px solid var(--line); max-width: var(--measure); }
.rules li, .sections li, .qa li { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules li { padding-inline-start: 26px; }
.rules li::before { content: ""; position: absolute; inset-inline-start: 2px; top: calc(18px + .8em); width: 8px; height: 8px; border-radius: 2px; background: var(--act); }
.rules h3, .sections h3, .qa h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.article .rules p, .article .sections p, .article .qa p { margin: 6px 0 0; font-size: 1.02rem; line-height: 1.85; color: var(--ink-2); }
html[lang="en"] .article .rules p, html[lang="en"] .article .sections p, html[lang="en"] .article .qa p { line-height: 1.65; }

.sections__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.sections h3 a { color: var(--act-ink); text-decoration: none; }
.sections h3 a:hover { color: var(--act-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.sections__fig { font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

/* Services: one ruled sheet split into four groups, not four cards. */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer section { background: #fff; padding: 20px 22px 22px; }
.offer h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.offer ul { list-style: none; display: grid; gap: 8px; }
.offer li { position: relative; padding-inline-start: 18px; font-size: .98rem; line-height: 1.7; color: var(--ink-2); }
html[lang="en"] .offer li { line-height: 1.55; }
.offer li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--act); }
.article p.note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 1.02rem; line-height: 1.85; max-width: none; }
html[lang="en"] .article p.note { line-height: 1.65; }

.coverage { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 1rem; }
.coverage caption { caption-side: bottom; text-align: start; padding-top: 12px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.coverage th, .coverage td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.coverage thead th { font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--panel); border-bottom: 1px solid var(--line-strong); }
.coverage td:last-child, .coverage th:last-child { text-align: end; }
.coverage tbody td { font-weight: 600; }
.coverage tbody td:first-child a { color: var(--ink); text-decoration: none; font-weight: 700; margin-inline-end: 12px; }
.coverage tbody td:first-child a:hover { color: var(--act-ink); text-decoration: underline; text-underline-offset: 4px; }
.coverage .en { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.coverage tfoot td { font-weight: 800; border-bottom: 0; border-top: 1.5px solid var(--ink); }

.finder { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.finder label { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.finder__row { display: flex; gap: 10px; }
.finder input {
    flex: 1; min-width: 0; height: 50px;
    border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff;
    padding-inline: 16px; font: 600 1rem/1 'Cairo', sans-serif; color: var(--ink);
}
.finder input::placeholder { color: #6B7280; font-weight: 400; opacity: 1; }
.finder input:hover { border-color: var(--ink-3); }
.finder input:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; border-color: var(--act); }
.finder p { margin-top: 12px; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.finder p a { color: var(--act-ink); font-weight: 700; }

.about { margin-top: 56px !important; padding: clamp(22px, 3vw, 32px); background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); }
.about h2 { margin-top: 0 !important; font-size: 1.2rem !important; }
.about p { font-size: 1.02rem !important; color: var(--ink-2) !important; }
.about .actions { margin-top: 22px; }

.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px !important; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--act-ink); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .back svg { transform: scaleX(-1); }

.side { position: sticky; top: 112px; align-self: start; }
nav.toc, .toc { display: block; border-inline-start: 1px solid var(--line); padding: 0; padding-inline-start: 22px; }
.toc h2 { font-size: 14px; font-weight: 800; color: var(--ink-3); line-height: 1.5; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--act-ink); }
.toc a[aria-current="true"] { color: var(--act-ink); font-weight: 800; }
.side .actions { margin-top: 26px; flex-direction: column; align-items: stretch; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .head__grid, .body__grid { grid-template-columns: minmax(0, 1fr); }
    .side { display: none; }
}
@media (max-width: 600px) {
    .head { padding-top: 104px; }
    .crumbs { margin-bottom: 18px; }
    .head h1 { font-size: 1.65rem; }
    .actions .btn { flex: 1 1 100%; }
    .finder__row { flex-direction: column; }
    .offer { grid-template-columns: minmax(0, 1fr); }
    .gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .offer section { padding: 18px; }
    .coverage th, .coverage td { padding: 10px 8px; }
    .coverage .en { display: block; }
    html[dir="ltr"] .coverage .en { text-align: left; }
    html[dir="rtl"] .coverage .en { text-align: right; }
    .coverage tbody td:first-child a { margin-inline-end: 0; }
}
