/* InSmart Docs — reader UI.
   Tokens, fonts and icons follow insmart.ro (site/assets/css/site.css): warm off-white page,
   brand-navy ink, one brand blue, Poppins for headings, Nunito for text.
   Motion: transform/opacity only, strong ease-out, gated by reduced-motion. */

@font-face { font-family: "Nunito"; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-latin-wght-normal.woff2) format("woff2-variations"); 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Poppins"; font-display: swap; font-weight: 600; src: url(fonts/poppins-latin-600-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-display: swap; font-weight: 600; src: url(fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Poppins"; font-display: swap; font-weight: 700; src: url(fonts/poppins-latin-700-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-display: swap; font-weight: 700; src: url(fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Notion-like neutrals: white page, warm-grey fills, near-black ink */
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --ink: #191919;
  --ink-2: #37352f;
  --muted: #73726e;
  --line: rgba(55, 53, 47, 0.09);
  --line-strong: rgba(55, 53, 47, 0.16);
  --brand: #4798cb;
  --brand-600: #3680b3;
  --brand-700: #2a6890;
  --accent-soft: #ebf3fa;
  --link: var(--brand-700);
  --ok: #1a9b5a;   --ok-soft: #e8f6ee;
  --warn: #c77700; --warn-soft: #fdf3e2;
  --danger: #c2410c; --danger-soft: #fdeee6;
  --dark: #0b1a29; --dark-2: #12263a; --dark-ink: #f5f5f7; --dark-muted: #a1a1a6;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --scrim: rgba(11, 26, 41, 0.32);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow: 0 2px 6px rgba(16, 24, 40, 0.04), 0 12px 32px -8px rgba(16, 24, 40, 0.12);
  --shadow-l: 0 4px 12px rgba(16, 24, 40, 0.05), 0 32px 64px -16px rgba(16, 24, 40, 0.22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Inter: the face Notion's UI type is built on */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  color-scheme: light;
}

/* Dark: brand navy surfaces, never pure black */
:root[data-theme="dark"] {
  --bg: #0b1a29; --bg-soft: #102335; --surface: #12263a;
  --ink: #f5f5f7; --ink-2: #d4dbe3; --muted: #9aa8b6;
  --line: rgba(245, 245, 247, 0.09); --line-strong: rgba(245, 245, 247, 0.18);
  --accent-soft: rgba(71, 152, 203, 0.16); --link: #8cc4e6;
  --ok-soft: rgba(26, 155, 90, 0.16); --warn-soft: rgba(199, 119, 0, 0.16); --danger-soft: rgba(194, 65, 12, 0.18);
  --nav-bg: rgba(11, 26, 41, 0.72); --scrim: rgba(0, 0, 0, 0.5);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  --shadow-l: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a29; --bg-soft: #102335; --surface: #12263a;
    --ink: #f5f5f7; --ink-2: #d4dbe3; --muted: #9aa8b6;
    --line: rgba(245, 245, 247, 0.09); --line-strong: rgba(245, 245, 247, 0.18);
    --accent-soft: rgba(71, 152, 203, 0.16); --link: #8cc4e6;
    --ok-soft: rgba(26, 155, 90, 0.16); --warn-soft: rgba(199, 119, 0, 0.16); --danger-soft: rgba(194, 65, 12, 0.18);
    --nav-bg: rgba(11, 26, 41, 0.72); --scrim: rgba(0, 0, 0, 0.5);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 12px 32px -8px rgba(0, 0, 0, 0.45);
    --shadow-l: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Press feedback lives on pointer-down (Apple: respond instantly) */
.press { transition: transform 120ms var(--ease-out), background-color 160ms, border-color 160ms, box-shadow 200ms; }
.press:active { transform: scale(0.98); }

/* ---------- Layout: Notion-style help center ----------
   Flat and text-led: full-height sidebar with a hairline, one narrow reading column,
   contents rail on the right. Decoration is limited to hairlines and the brand blue. */
:root { --side-w: 400px; --top-h: 60px; --col: 720px; --toc-w: 270px; }

/* Top bar: logo, a few links, one primary action */
.nav { position: sticky; top: 0; z-index: 50; height: var(--top-h); background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--brand); color: #fff; font: 700 12px/1 var(--font-display); }
.brand-logo { display: block; height: 24px; width: auto; }
.brand-name { font: 500 16px/1 var(--font); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: var(--brand-700); }
.icon-btn svg.i { width: 18px; height: 18px; }
/* Theme: three-option segmented control (light / dark / system) */
.theme-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); }
.theme-seg button { display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color 160ms, color 160ms; }
.theme-seg button:hover { color: var(--ink); }
.theme-seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.theme-seg svg.i { width: 15px; height: 15px; }

/* Language: compact trigger + menu that grows out of it */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer; }
.lang-btn:hover { background: var(--bg-soft); }
.lang-btn svg.i { width: 15px; height: 15px; color: var(--muted); }
.lang-btn .chev { transition: transform 180ms var(--ease-out); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 4px; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  transform-origin: top right; opacity: 0; transform: scale(0.96) translateY(-4px); transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out); }
.lang-menu.open { opacity: 1; transform: none; }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 14.5px; text-align: left; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--bg-soft); outline: none; }
.lang-menu .code { width: 22px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-menu .name { flex: 1; }
.lang-menu svg.i { width: 16px; height: 16px; color: var(--brand); visibility: hidden; }
.lang-menu button[aria-checked="true"] svg.i { visibility: visible; }
.link-btn { padding: 6px 10px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.link-btn:hover { background: var(--bg-soft); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 500; font-size: 14.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.menu-btn { display: none; }

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }

/* Sidebar: search, plain category list, then link groups */
.side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain;
        border-right: 1px solid var(--line); padding: 18px 14px 48px 16px; font-size: 15.5px; background: var(--bg); }
.side-search { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; margin-bottom: 22px;
               border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; font-size: 15px; }
.side-search:hover { border-color: var(--brand); }
.side-search svg.i { width: 16px; height: 16px; }
.side-search span { flex: 1; }
.side-label { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px 6px; margin-top: 4px; }
.side-group + .side-label, .side-links + .side-label { margin-top: 22px; }
.side-group > button { width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 0; background: none; border-radius: 7px; text-align: left; color: var(--ink); cursor: pointer; font-size: 15.5px; }
.side-group > button:hover { background: var(--bg-soft); }
.side-group > button span { flex: 1; line-height: 1.35; }
.side-group > button svg.i { width: 15px; height: 15px; color: var(--muted); transition: transform 180ms var(--ease-out); }
.side-group[data-open="true"] > button svg.i { transform: rotate(90deg); }
.side-group[data-current="true"] > button { font-weight: 600; }
.side-group ul { list-style: none; margin: 2px 0 10px; padding: 0 0 0 12px; display: none; }
.side-group[data-open="true"] ul { display: block; }
.side-sub { font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 12px 8px 4px; }
.side-link { display: block; padding: 6px 8px; border-radius: 7px; color: var(--ink-2); text-decoration: none; line-height: 1.4; font-size: 15px; }
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link[aria-current="page"] { color: var(--brand-700); font-weight: 500; background: var(--accent-soft); }
.side-link.is-draft { color: var(--muted); font-style: italic; }
.side-links a { display: block; padding: 7px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.side-links a:hover { background: var(--bg-soft); color: var(--ink); }

/* Main area: reading column + contents rail */
.main-area { display: grid; grid-template-columns: minmax(0, var(--col)) var(--toc-w); gap: 64px; justify-content: center; padding: 48px 40px 120px; }
.main-area.wide { grid-template-columns: minmax(0, 880px); }
.toc { position: sticky; top: calc(var(--top-h) + 40px); align-self: start; max-height: calc(100vh - var(--top-h) - 64px); overflow-y: auto; font-size: 14.5px; padding-top: 34px; }
.toc h2 { font: 500 11.5px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.toc a.sub { padding-left: 22px; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand-700); border-left-color: var(--brand); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }
.crumbs svg.i { width: 13px; height: 13px; }

.article h1, .page-title { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.022em; font-weight: 700; }
.intro { margin: 32px 0 0; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.intro-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.intro p { margin: 0; font-size: 1.25rem; line-height: 1.55; font-weight: 400; color: var(--ink); }
.byline { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

details.review { border: 1px dashed var(--line-strong); border-radius: 8px; margin: 20px 0 0; background: var(--surface); }
details.review summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
details.review summary::-webkit-details-marker { display: none; }
details.review summary svg.i { width: 15px; height: 15px; }
.review dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; padding: 4px 12px 12px; font-size: 13.5px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review code { font-size: 12px; }
.st { font-weight: 700; }
.st-review { color: var(--brand-700); } .st-published { color: var(--ok); } .st-draft { color: var(--warn); }

/* Prose */
.prose { font-size: 1rem; line-height: 1.7; font-weight: 400; color: var(--ink); margin-top: 8px; }
.prose h2 { font-size: 1.875rem; line-height: 1.25; letter-spacing: -0.021em; font-weight: 700; margin: 64px 0 18px; }
.prose h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.014em; margin: 40px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: 9px 0; padding-left: 4px; }
.prose li::marker { color: var(--ink); }
.prose strong { font-weight: 600; }
/* UI labels render as small grey chips, like the app's own controls */
.prose .ui { display: inline; font-weight: 500; font-size: 0.875em; padding: 1px 6px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line-strong); white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prose code { font: 0.86em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--danger); background: var(--bg-soft); border-radius: 4px; padding: 0.1em 0.35em; }
.prose a { color: var(--link); }
.prose a.broken { color: var(--danger); text-decoration: wavy underline; }
.table-wrap { overflow-x: auto; margin: 4px 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.55; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-weight: 700; }
.callout { display: flex; gap: 12px; border-radius: 8px; padding: 16px 18px; margin: 8px 0 24px; background: var(--bg-soft); }
.callout > svg.i { margin-top: 3px; width: 18px; height: 18px; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-title { display: block; font-weight: 600; margin-bottom: 2px; }
.callout.note > svg.i { color: var(--brand-700); }
.callout.tip { background: var(--ok-soft); } .callout.tip > svg.i { color: var(--ok); }
.callout.warning, .callout.caution, .callout.important { background: var(--warn-soft); }
.callout.warning > svg.i, .callout.caution > svg.i, .callout.important > svg.i { color: var(--warn); }
.shot { display: grid; place-items: center; gap: 6px; aspect-ratio: 16 / 9; max-height: 340px; margin: 8px 0 20px; padding: 20px; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
.shot svg.i { width: 26px; height: 26px; }
.shot code { font-size: 12px; color: var(--muted); }

.helpful { margin: 56px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.helpful .btns { display: flex; gap: 8px; }
.helpful .thanks { color: var(--ok); }
.related { margin-top: 36px; }
.related h2 { font-size: 1.125rem; margin-bottom: 8px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.related li a:hover { color: var(--brand-700); }
.related li svg.i { width: 15px; height: 15px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.pager a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pager a:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.pager small { display: block; color: var(--muted); font-size: 12.5px; }
.pager .next { grid-column: 2; text-align: right; }
.source { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Hub (home) */
.hub-hero { padding: 24px 0 8px; }
.hub-hero .page-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.hub-search { margin-top: 22px; width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); cursor: text; font-size: 16px; text-align: left; }
.hub-search:hover { border-color: var(--brand); }
.hub-search span { flex: 1; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; background: var(--surface); }
.pill:hover { background: var(--bg-soft); }
.hub-block { margin-top: 48px; }
.hub-block h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin-bottom: 14px; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); }
.topic:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.topic svg.i { color: var(--brand-700); width: 22px; height: 22px; margin-bottom: 4px; }
.topic h3 { font-size: 1rem; }
.topic p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.text-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.text-links a { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.text-links a:hover { color: var(--brand-700); }
.text-links svg.i { width: 15px; height: 15px; }
.support-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.support-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.support-tile:hover { background: var(--bg-soft); }
.support-tile svg.i { color: var(--brand-700); margin-bottom: 4px; }
.support-tile strong { font-weight: 600; }
.support-tile span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* Section page */
.art-list { margin-top: 8px; }
.group { margin-top: 36px; }
.group h2 { font-size: 1.25rem; margin-bottom: 4px; }
.art-row { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.art-row:hover .art-title { color: var(--brand-700); }
.art-title { font-weight: 600; }
.art-desc { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.5; margin-top: 2px; }

/* Search palette */
.palette { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 200ms var(--ease-out); }
.palette-panel { position: relative; width: 100%; max-width: 620px; max-height: 70vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-l); border: 1px solid var(--line);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top center; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.palette.open .palette-scrim { opacity: 1; }
.palette.open .palette-panel { opacity: 1; transform: none; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-results { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.palette-results a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.palette-results a[aria-selected="true"] { background: var(--bg-soft); }
.palette-results strong { display: block; font-weight: 700; }
.palette-results small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.palette-results mark { background: transparent; color: var(--brand-700); font-weight: 600; }
.palette-empty { padding: 24px 16px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
kbd { font: 600 11.5px/1 var(--font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 2px 5px; background: var(--surface); }

.side-scrim { display: none; }

@media (max-width: 1180px) {
  .main-area { grid-template-columns: minmax(0, var(--col)); }
  .toc { display: none; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: grid; }
  .side { position: fixed; z-index: 40; top: var(--top-h); left: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform 300ms var(--ease-drawer); }
  .side.open { transform: none; box-shadow: var(--shadow-l); }
  .side-scrim { display: block; position: fixed; inset: var(--top-h) 0 0 0; z-index: 39; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease-out); }
  .side.open + .side-scrim { opacity: 1; pointer-events: auto; }
  .main-area { padding: 24px 20px 72px; }
  .topics, .support-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand-name, .link-btn { display: none; }
  .topics, .support-tiles, .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .review dl { grid-template-columns: 1fr; gap: 2px; }
  .prose h2 { font-size: 1.5rem; margin-top: 44px; }
  .palette { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .palette-panel { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(11, 26, 41, 0.3); --line-strong: rgba(11, 26, 41, 0.5); --muted: #33475b; }
}

/* ---------- insmart.ro component skin ----------
   Shapes and depth copied from site/assets/css/site.css: pill buttons with layered shadows that
   lift on hover and press to 0.97, pill segments with a white thumb, 28px cards that rise,
   20px menu panels with 12px items. Hover effects only on hover-capable pointers. */
.btn { min-height: 40px; height: auto; padding: 0 18px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500;
  transition: transform 200ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 100ms; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(42, 104, 144, 0.25), 0 8px 20px -8px rgba(42, 104, 144, 0.55); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: rgba(11, 26, 41, 0.14); box-shadow: 0 1px 2px rgba(11, 26, 41, 0.06), 0 4px 12px -6px rgba(11, 26, 41, 0.15); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(42, 104, 144, 0.2), 0 14px 28px -10px rgba(42, 104, 144, 0.6); }
  .btn-ghost:hover { background: var(--surface); border-color: rgba(11, 26, 41, 0.28); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(11, 26, 41, 0.06), 0 10px 22px -10px rgba(11, 26, 41, 0.25); }
}

/* Icon buttons and the theme segment: round, like the site's nav toggle and language switch */
.icon-btn { width: 36px; height: 36px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(0, 0, 0, 0.045); } }
.theme-seg { padding: 3px; gap: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.05); }
.theme-seg button { width: 34px; height: 28px; border-radius: 999px; transition: background-color 150ms ease, color 150ms ease; }
.theme-seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }

/* Language trigger = site chip; menu = site menu panel */
.lang-btn { height: 36px; padding: 0 12px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .lang-btn:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); } }
.lang-menu { top: calc(100% + 10px); min-width: 200px; padding: 8px; border-radius: 20px; box-shadow: var(--shadow-l); transform: translateY(-4px) scale(0.98); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.lang-menu.open { transform: none; }
.lang-menu button { padding: 10px 12px; border-radius: 12px; font-size: 0.9375rem; transition: background-color 120ms ease; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(0, 0, 0, 0.045); }
.lang-menu button:active { background: rgba(0, 0, 0, 0.06); }

/* Search fields: pill inputs */
.side-search { height: 40px; padding: 0 14px; border-radius: 999px; border-color: var(--line); box-shadow: 0 1px 2px rgba(11, 26, 41, 0.04); }
.hub-search { height: 56px; padding: 0 22px; border-radius: 999px; border-color: var(--line); box-shadow: 0 1px 2px rgba(11, 26, 41, 0.06), 0 4px 12px -6px rgba(11, 26, 41, 0.15); font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .side-search:hover, .hub-search:hover { border-color: var(--line-strong); }
}
kbd { border-radius: 6px; }

/* Quick links = site chips */
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: border-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); } }

/* Cards = site .card + .card-link: 28px radius, rise on hover */
.topic, .support-tile { border-radius: var(--radius-l); padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); background: var(--surface);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 200ms ease; }
.topic:active, .support-tile:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .topic:hover, .support-tile:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
}
.topic svg.i, .support-tile svg.i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--brand-700); margin-bottom: 8px; }

/* Sidebar rows and list rows: soft 10px hover, like the site's menu items */
.side-group > button, .side-link { border-radius: var(--radius-s); transition: background-color 120ms ease; }
.side-group > button:hover, .side-link:hover { background: rgba(0, 0, 0, 0.045); }
.side-link[aria-current="page"] { background: var(--accent-soft); color: var(--brand-700); }

/* Article furniture */
.callout { border-radius: var(--radius); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); }
.prose table th, .prose table td { border: 0; border-bottom: 1px solid var(--line); }
.prose table tr:last-child td { border-bottom: 0; }
.prose .ui { border-radius: 999px; padding: 1px 8px; border-color: var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(11, 26, 41, 0.06); }
.shot { border-radius: var(--radius-l); border: 1px solid var(--line); }
.pager a { border-radius: var(--radius); padding: 16px 18px; transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .pager a:hover { background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; } }
.palette-panel { border-radius: 20px; }
.palette-results a { border-radius: 12px; }
.palette-results a[aria-selected="true"] { background: rgba(0, 0, 0, 0.045); }

/* Dark theme: the site's light-on-glass values don't apply; keep thumbs and hovers visible */
:root[data-theme="dark"] .theme-seg, :root[data-theme="dark"] .side-group > button:hover, :root[data-theme="dark"] .side-link:hover,
:root[data-theme="dark"] .icon-btn:hover, :root[data-theme="dark"] .lang-menu button:hover, :root[data-theme="dark"] .palette-results a[aria-selected="true"] { background: rgba(255, 255, 255, 0.07); }
:root[data-theme="dark"] .theme-seg button[aria-checked="true"] { background: var(--surface); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-seg, :root:not([data-theme="light"]) .side-group > button:hover, :root:not([data-theme="light"]) .side-link:hover,
  :root:not([data-theme="light"]) .icon-btn:hover, :root:not([data-theme="light"]) .lang-menu button:hover, :root:not([data-theme="light"]) .palette-results a[aria-selected="true"] { background: rgba(255, 255, 255, 0.07); }
  :root:not([data-theme="light"]) .theme-seg button[aria-checked="true"] { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .topic:hover, .support-tile:hover, .pager a:hover { transform: none; }
}

/* Search lives in the top bar, centred on the page (independent of the logo/actions widths) */
.nav-in { position: relative; }
.nav-search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 40vw); height: 40px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--muted); font-size: 0.9375rem; text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.nav-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search svg.i { width: 17px; height: 17px; }
.nav-search:active { transform: translate(-50%, -50%) scale(0.98); }
@media (hover: hover) and (pointer: fine) { .nav-search:hover { background: var(--surface); border-color: var(--line-strong); } }
.side { padding-top: 22px; }
@media (max-width: 1100px) { .nav-search { width: min(360px, 34vw); } }
@media (max-width: 760px) {
  .nav-search { position: static; transform: none; width: 40px; height: 40px; padding: 0; justify-content: center; margin-left: auto; background: transparent; border: 0; color: var(--ink-2); }
  .nav-search:active { transform: scale(0.95); }
  .nav-search span, .nav-search kbd { display: none; }
  .nav-actions { margin-left: 4px; }
}

/* App-menu icons in the sidebar, sized and coloured like the CRM menu */
svg.ni { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-2); }
.side-group > button { gap: 12px; padding-left: 10px; }
.side-group > button > svg.ni { color: var(--ink-2); }
.side-group[data-current="true"] > button > svg.ni { color: var(--ink); }
.side-group ul { padding-left: 22px; }
.side-sub { display: flex; align-items: center; gap: 8px; }
.side-sub svg.ni { width: 16px; height: 16px; color: var(--muted); }
.topic svg.ni { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--brand-700); margin-bottom: 8px; }

/* The hidden attribute always wins over component display rules (e.g. the review toggle on the public site). */
[hidden] { display: none !important; }
