/* ActiveTrail Academy */
/* Brand display fonts, loaded from the marketing site (www.activetrail.com) under the same family names it uses,
   so the chat widget reuses them when it's embedded there. If they fail to load, system fonts take over.
   Body text uses Open Sans from Google Fonts (same design as the marketing site's Open Sans Hebrew, with Hebrew
   included); its hinting renders cleanly on Windows, which the old Open Sans Hebrew webfont files don't. */
@font-face { font-family: "BentonSans-Black"; src: url("https://www.activetrail.com/wp-content/themes/activetrail_new/fonts/BentonSans-Black.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "BentonSans-Regular"; src: url("https://www.activetrail.com/wp-content/themes/activetrail_new/fonts/BentonSans-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Linotype - CaeciliaLTPro-45Light"; src: url("https://www.activetrail.com/wp-content/themes/activetrail_new/fonts/Linotype%20-%20CaeciliaLTPro-45Light.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Linotype - CaeciliaLTPro-55Roman"; src: url("https://www.activetrail.com/wp-content/themes/activetrail_new/fonts/Linotype%20-%20CaeciliaLTPro-55Roman.otf") format("opentype"); font-display: swap; }
:root {
  --navy: #242B3B;
  --navy-2: #323b52;
  --red: #EF4160;
  --red-2: #D9324F;
  --blue: #3B8AC9;
  --red-soft: #fff0f3;
  --ink: #3a4254;
  --ink-strong: #242B3B;
  --ink-body: #4a5263;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --info-bg: #eef4ff; --info-line: #9db8f5;
  --note-bg: #fff8e6; --note-line: #f2c26b;
  --warn-bg: #fff0f1; --warn-line: #f59aa6;
  --tip-bg: #ecfbf3; --tip-line: #84d9ad;
  --code-bg: #f3f4f6;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --radius: 6px;
  --wrap: 1280px;
  --font: "Open Sans", "Open Sans Hebrew", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "BentonSans-Black", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-display-light: "BentonSans-Regular", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Linotype - CaeciliaLTPro-45Light", "Roboto Slab", Rockwell, Georgia, serif;
  --font-serif-strong: "Linotype - CaeciliaLTPro-55Roman", "Roboto Slab", Rockwell, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #d5d9e2; --ink-strong: #f3f5f9; --ink-body: #c6ccd7; --muted: #98a2b3; --line: #2c3446;
    --bg: #12161f; --bg-soft: #181d29; --card: #1a202d; --red-soft: #3a1d26;
    --info-bg: #17233b; --info-line: #3d5a99; --note-bg: #2e2717; --note-line: #8a6a24;
    --warn-bg: #351b21; --warn-line: #9c3d4c; --tip-bg: #15291f; --tip-line: #2f7a52;
    --code-bg: #232a38; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #d5d9e2; --ink-strong: #f3f5f9; --ink-body: #c6ccd7; --muted: #98a2b3; --line: #2c3446;
  --bg: #12161f; --bg-soft: #181d29; --card: #1a202d; --red-soft: #3a1d26;
  --info-bg: #17233b; --info-line: #3d5a99; --note-bg: #2e2717; --note-line: #8a6a24;
  --warn-bg: #351b21; --warn-line: #9c3d4c; --tip-bg: #15291f; --tip-line: #2f7a52;
  --code-bg: #232a38; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may make the page wider than the screen: on a phone that enlarges the layout viewport, and corner buttons
   (Traily's, the websites' widgets) land off screen. Seen with the phone's larger text on activetrail.com/learn.
   On both html and body (either alone doesn't keep the layout viewport to the screen), and clip, not hidden, so
   sticky elements keep working. */
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
h1, h2, h3, h4 { font-family: var(--font-serif-strong); font-weight: 400; }
.btn, .hero h1, .section-title, .help-box strong, .footer-inner strong { font-family: var(--font-display); font-weight: 400; }
.theme-card-body strong, .featured-list strong, .feedback, .section-card h2 { font-family: var(--font); font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; padding: 11px 20px; font: 400 16px/1 var(--font-display); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; background: none; color: inherit; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 9px 14px; font-size: 16px; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: #fff; color: var(--red-2); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-strong); border-radius: 5px; padding: 6px 12px; font: 600 14px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* header of the /learn/ build (the Academy under the main websites; the Railway address has none). Not sticky, so the
   side menus keep sticking to the top of the window as they do without it. */
.learn-header { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.learn-header-inner { display: flex; align-items: center; gap: 14px 24px; min-height: 90px; flex-wrap: wrap; }
.learn-header .brand { display: flex; align-items: center; flex: none; }
.learn-header .brand-logo { height: 66px; width: 196px; display: block; }
.learn-header .brand-academy { font: 400 22px/1 var(--font-display); color: #fff; text-decoration: none; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.3); }
.learn-header-links { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; font: 400 16px var(--font-display); }
.learn-header-links a:not(.btn) { text-decoration: none; color: #fff; }
.learn-header-links a:not(.btn):hover { color: #ffb3c1; }
.learn-langs { display: flex; gap: 14px; padding-inline-end: 20px; border-inline-end: 1px solid rgba(255,255,255,.3); font-family: var(--font); font-size: 15px; }
@media (max-width: 720px) {
  .learn-header-inner { min-height: 64px; padding-block: 8px; gap: 10px 16px; }
  .learn-header .brand-logo { height: 44px; width: 131px; }
  .learn-header .brand-academy { font-size: 17px; padding-inline-start: 10px; }
  .learn-header-links { gap: 14px; font-size: 15px; }
  .learn-header-links a[target]:not(.btn) { display: none; } /* contact: it's in the footer and the help box too */
  .learn-langs { padding-inline-end: 14px; }
}

/* the website's own header and footer on /learn/ (server.mjs, in shadow roots): the Academy's copyright line repeats
   the website's footer, so it goes */
.has-site-chrome .footer-legal { display: none; }
.at-site-chrome { display: block; }

/* suggestions dropdown */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; z-index: 40; text-align: start; }
.suggest a { display: block; padding: 9px 12px; border-radius: 4px; text-decoration: none; color: var(--ink-strong); }
.suggest a small { display: block; color: var(--muted); font-size: 12.5px; }
.suggest a:hover, .suggest a.is-active { background: var(--bg-soft); }
.suggest .suggest-all { color: var(--red); font-weight: 600; font-size: 14px; }

/* hero */
.hero { background: radial-gradient(900px 520px at -5% -20%, rgba(59,138,201,.55), transparent 62%), var(--navy); color: #fff; }
.hero-inner { padding-block: 26px 22px; text-align: center; }
.hero h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0 0 4px; }
.hero-sub { margin: 0 auto 14px; color: #fff; font: 400 clamp(15px, 1.4vw, 17px)/1.5 var(--font-display-light); }
.hero-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 0 auto 12px; background: #fff; border-radius: 5px; padding-block: 5px; padding-inline: 18px 6px; color: #667085; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-search input { flex: 1; border: 0; outline: none; font: 17px var(--font); color: #1b2030; background: transparent; min-width: 0; height: 40px; }
.hero .chips { justify-content: center; color: #c9cfdc; font-size: 14px; }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.hero .chip:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }

/* home */
.home-main { padding-top: 44px; padding-bottom: 72px; }
.section-title { font-size: 28px; margin: 0 0 22px; color: var(--ink-strong); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.theme-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.theme-card:hover { border-color: color-mix(in srgb, var(--red) 60%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.theme-icon { width: 44px; height: 44px; border-radius: 5px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.theme-icon .icon { width: 24px; height: 24px; }
.theme-card-body { display: flex; flex-direction: column; gap: 4px; }
.theme-card-body strong { color: var(--ink-strong); font-size: 16.5px; }
.theme-card-body > span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.theme-card-body .theme-count { color: var(--red); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.home-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 56px; align-items: start; }
.featured-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.featured-list a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--card); color: var(--muted); }
.featured-list a:hover { border-color: var(--red); }
.featured-list strong { display: block; color: var(--ink-strong); font-weight: 600; font-size: 15px; line-height: 1.35; }
.featured-list small { font-size: 13px; }
.assistant-promo { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.assistant-promo h2 { margin: 14px 0 8px; font-size: 24px; color: var(--ink-strong); }
.assistant-promo p { margin: 0 0 18px; color: var(--muted); }
.promo-icon { width: 44px; height: 44px; border-radius: 5px; display: grid; place-items: center; background: var(--navy); color: #fff; }

/* page head */
.page-head { background: radial-gradient(ellipse 70% 140% at 50% 40%, var(--bg) 35%, color-mix(in srgb, var(--navy) 22%, var(--bg)) 100%); border-bottom: 10px solid var(--navy); padding: 28px 0 34px; }
.page-head h1 { margin: 6px 0 4px; font: 400 clamp(30px, 3.6vw, 42px)/1.15 var(--font-serif); color: var(--ink-strong); }
.page-head p { margin: 0; color: var(--muted); }
.page-head-title { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.page-head-title h1 { margin: 0 0 2px; }
/* breadcrumb and search box on one row, at the top of topic and article pages */
.page-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.page-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 220px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--muted); }
.page-search:focus-within { border-color: var(--ink-strong); }
.page-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 15px var(--font); color: var(--ink-strong); }
.page-search input::placeholder { color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { display: inline-flex; opacity: .6; }

/* theme page */
.theme-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-top: 36px; padding-bottom: 72px; }
.theme-nav { position: sticky; top: 24px; align-self: start; }
.theme-nav h2, .toc h2 { font: 700 12px/1.4 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.theme-nav ul { list-style: none; margin: 0; padding: 0; }
.theme-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 5px; text-decoration: none; font-size: 14.5px; color: var(--ink); }
.theme-nav a:hover { background: var(--bg-soft); }
.theme-nav a[aria-current] { background: var(--red-soft); color: var(--red); font-weight: 600; }
/* topic sections: two columns filled by height (the build puts each section in the shorter column), one column in
   reading order when there's no room for two */
.sections { container-type: inline-size; }
.section-cols { display: flex; flex-direction: column; gap: 20px; }
.section-col { display: contents; }
@container (min-width: 660px) {
  .section-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .section-col { display: flex; flex-direction: column; gap: 20px; }
}
.section-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--card); }
.section-card h2 { font-size: 18px; margin: 0 0 12px; color: var(--ink-strong); padding-bottom: 10px; border-bottom: 3px solid var(--red); display: inline-block; }
.article-list { list-style: none; margin: 0; padding: 0; }
/* guide-type tags inside topic sections: one colour per type */
.type-label { display: flex; width: fit-content; align-items: center; gap: 6px; font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .07em; margin: 22px 0 6px; padding-block: 6px; padding-inline: 8px 10px; border-radius: 4px; }
.type-label .icon { width: 14px; height: 14px; }
.section-card h2 + .type-label { margin-top: 8px; }
.type-info { color: #2a6aa0; background: #e8f2fb; }
.type-how-to { color: #c52a47; background: #fdecef; }
.type-troubleshooting { color: #8a5a00; background: #fdf3dc; }
:root[data-theme="dark"] .type-info { color: #8cc3ee; background: #16304a; }
:root[data-theme="dark"] .type-how-to { color: #ff9fb0; background: #3f1b24; }
:root[data-theme="dark"] .type-troubleshooting { color: #f3c868; background: #3a2c0c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .type-info { color: #8cc3ee; background: #16304a; }
  :root:not([data-theme="light"]) .type-how-to { color: #ff9fb0; background: #3f1b24; }
  :root:not([data-theme="light"]) .type-troubleshooting { color: #f3c868; background: #3a2c0c; }
}
.article-list li + li { border-top: 1px solid var(--line); }
.article-list a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.45; }
.article-list a:hover { color: var(--red); }

/* article */
.article-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; padding-top: 32px; padding-bottom: 80px; }
.article-shell:has(> .toc[hidden]) { grid-template-columns: 240px minmax(0, 1fr); }
.article-shell:has(> .toc[hidden]) .article-main { max-width: 800px; }
.toc[hidden] { display: none; }
.article-side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; font-size: 14px; padding-inline-end: 6px; }
.side-toggle { display: none; }
.side-theme { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-strong); text-decoration: none; padding: 6px 8px; margin-bottom: 8px; }
.side-group summary { cursor: pointer; padding: 7px 8px; border-radius: 8px; font-weight: 600; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.side-group[open] summary::after { content: "–"; }
.side-group summary:hover { background: var(--bg-soft); }
.side-group ul { list-style: none; margin: 2px 0 8px; padding: 0; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.side-group a { display: block; padding: 5px 8px; color: var(--muted); text-decoration: none; line-height: 1.4; border-radius: 6px; }
.side-group a:hover { color: var(--ink-strong); }
.side-group a[aria-current] { color: var(--red); font-weight: 600; background: var(--red-soft); }
.article-main { min-width: 0; }
.article-title { font: 400 clamp(30px, 3.6vw, 40px)/1.15 var(--font-serif); margin: 14px 0 8px; color: var(--ink-strong); }
.article-meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.article-body { font-size: 16.5px; line-height: 1.7; overflow-wrap: anywhere; }
/* spacing: room between paragraphs and before headings; a screenshot sits close to the line that introduces it, with
   clear space before the next step */
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 25px; line-height: 1.25; margin: 52px 0 14px; color: var(--ink-strong); scroll-margin-top: 24px; }
.article-body h3 { font-size: 20px; line-height: 1.3; margin: 40px 0 10px; color: var(--ink-strong); scroll-margin-top: 24px; }
.article-body h4 { font-size: 16.5px; margin: 28px 0 8px; color: var(--ink-strong); }
.article-body p { margin: 0 0 20px; }
/* Bold stands out by weight and colour: between semibold and bold (not as heavy when an article has a lot of it),
   in the heading colour, on text one shade softer. Hebrew keeps OE Doo Pro's medium face (its bold is heavier). */
.article-body { color: var(--ink-body); }
.article-body strong, .article-body b { font-weight: 650; color: var(--ink-strong); }
.article-body:lang(he) :is(strong, b) { font-weight: 600; }
.article-body :is(a, tr:first-child) :is(strong, b) { color: inherit; }
.article-body :is(h2, h3, h4) :is(strong, b) { font-weight: inherit; }
.article-body ul, .article-body ol { padding-inline-start: 24px; margin: 0 0 22px; }
.article-body li { margin: 8px 0; }
.article-body li > p { margin: 0 0 6px; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body figure { margin: 12px 0 32px; }
.article-body img { border: 1px solid var(--line); border-radius: 4px; display: block; margin: 12px 0 32px; }
.article-body figure img { margin: 0; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }
.article-body pre { background: var(--code-bg); border-radius: 6px; padding: 16px 18px; overflow: auto; font-size: 13.5px; line-height: 1.55; margin: 0 0 18px; }
.article-body pre code { background: none; padding: 0; font-size: inherit; white-space: pre-wrap; word-break: break-word; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 6px; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: start; vertical-align: top; }
/* the header row only: a table's <thead>, or, in a table without one (Confluence's), its first row */
.article-body thead th, .article-body thead td, .article-body table:not(:has(thead)) tr:first-child th, .article-body table:not(:has(thead)) tr:first-child td { background: var(--navy); font-weight: 600; color: #fff; }
.article-body tr:last-child td { border-bottom: 0; }
/* label/value tables (one row per field, label in the first column): no header row */
.article-body .details-table tr:first-child th, .article-body .details-table tr:first-child td { background: none; font-weight: inherit; color: inherit; }
.article-body .details-table th, .article-body .details-table tr:first-child th { width: 30%; background: var(--code-bg); color: var(--ink-strong); font-weight: 600; }
.article-body .details-table tr:last-child th { border-bottom: 0; }
.article-body td p, .article-body th p { margin: 0; }
/* API reference tables: keep names, types and methods on one line; long paths break after "/" */
.article-body table { overflow-wrap: normal; }
.article-body .api-params th, .article-body .api-params td:nth-child(-n+3), .article-body .api-endpoints th, .article-body .api-endpoints td:first-child { white-space: nowrap; }
.article-body .api-params td:last-child { min-width: 260px; }
@media (max-width: 640px) {
  .article-body .api-params tr:first-child { display: none; }
  .article-body .api-params tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .article-body .api-params tr:last-child { border-bottom: 0; }
  .article-body .api-params td { display: inline; border: 0; padding: 0; }
  .article-body .api-params td:nth-child(2), .article-body .api-params td:nth-child(3) { color: var(--muted); font-size: 13.5px; margin-inline-start: 8px; }
  .article-body .api-params td:last-child { display: block; min-width: 0; margin-top: 4px; }
}
.callout { border-inline-start: 4px solid var(--info-line); background: var(--info-bg); border-radius: 6px; border-start-start-radius: 0; border-end-start-radius: 0; padding: 14px 18px; margin: 0 0 24px; font-size: 15.5px; }
.callout > :last-child { margin-bottom: 0; }
.callout-note { border-color: var(--note-line); background: var(--note-bg); }
.callout-warning { border-color: var(--warn-line); background: var(--warn-bg); }
.callout-tip { border-color: var(--tip-line); background: var(--tip-bg); }
.article-body details { border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; margin: 0 0 16px; }
.article-body summary { cursor: pointer; font-weight: 600; }
.feedback { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--ink-strong); }
.feedback-thanks { color: var(--muted); font-weight: 500; }
.feedback-buttons { display: inline-flex; gap: 10px; } /* Yes and No wrap together, never one per line */
.nowrap { white-space: nowrap; }
.related { margin-top: 36px; }
.related h2 { font-size: 18px; margin: 0 0 8px; color: var(--ink-strong); }
.help-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.help-box p { margin: 4px 0 0; color: #c9cfdc; font-size: 15px; }
.help-box-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.help-box .btn-ghost, .site-footer .btn-ghost { background: #fff; color: var(--red); border-color: #fff; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding-block: 5px; padding-inline: 14px 0; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a.lvl-3 { padding-inline-start: 26px; font-size: 13.5px; }
.toc a:hover { color: var(--ink-strong); }
.toc a.is-active { color: var(--red); border-inline-start-color: var(--red); font-weight: 600; }

/* search page */
.hero-search-inline { margin: 16px 0 0; max-width: 720px; box-shadow: none; border: 1px solid var(--line); }
.search-main { padding-top: 28px; padding-bottom: 72px; max-width: 900px; }
.filter-chips { margin-bottom: 18px; }
.search-count { color: var(--muted); font-size: 14px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-results { overflow-wrap: anywhere; }
.search-results a { font-size: 18px; font-weight: 600; color: var(--ink-strong); text-decoration: none; }
.search-results a:hover { color: var(--red); }
.search-results .crumb { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.search-results p { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.search-results mark { background: color-mix(in srgb, var(--red) 18%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { text-align: center; padding: 40px 0; }
.notfound { padding-block: 80px; text-align: center; }

/* footer */
.site-footer { background: var(--navy); color: #c9cfdc; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 32px; }
.footer-inner p { margin: 4px 0 0; color: #c9cfdc; }
.footer-inner strong { color: #fff; font-size: 22px; }
.footer-actions, .promo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-legal { padding-block: 18px 28px; color: #98a2b3; font-size: 13px; border-top: 1px solid rgba(255,255,255,.1); }

/* responsive */
@media (max-width: 1100px) {
  .article-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { display: none !important; }
}
@media (max-width: 860px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .home-split { grid-template-columns: 1fr; }
  .featured-list { grid-template-columns: 1fr; }
  .theme-layout { grid-template-columns: 1fr; gap: 20px; }
  .theme-nav { position: static; display: none; }
  .article-shell, .article-shell:has(> .toc[hidden]) { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .article-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-toggle { margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink-strong); border-radius: 5px; padding: 8px 14px; font: 600 14px var(--font); cursor: pointer; }
  .side-inner { display: none; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
  .side-inner.is-open { display: block; }
  .hero-inner { padding-block: 20px 18px; }
  .hero-search { padding-inline-start: 14px; }
  .hero-search .btn { padding: 10px 14px; }
}
@media (max-width: 560px) {
  .footer-legal { padding-bottom: 88px; } /* room for the assistant's floating button */
  .help-box-actions, .footer-actions, .promo-actions { width: 100%; }
  .help-box-actions .btn, .footer-actions .btn, .promo-actions .btn { flex: 1 1 auto; justify-content: center; }
  .feedback { font-size: 15px; }
  .page-search { flex-basis: 100%; }
}

/* ------------------------------------------------------------------ other languages
   Notes on pages shown in English on a translated site (LOCALIZATION_PLAN.md, decision 4). */
.lang-note { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0 0 22px; font-size: 14.5px; color: var(--ink); }
.lang-note .icon { margin-top: 3px; color: var(--muted); }
.img-note { display: block; margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.article-body img + .img-note { margin: -26px 0 30px; }
.footer-legal .sep { margin-inline: 6px; opacity: .6; }
.footer-legal a { color: inherit; }

/* right to left: mirror the background glow and the direction arrows; code always reads left to right */
[dir="rtl"] .hero { background: radial-gradient(900px 520px at 105% -20%, rgba(59,138,201,.55), transparent 62%), var(--navy); }
[dir="rtl"] .breadcrumb .sep .icon, [dir="rtl"] .theme-count .icon { transform: scaleX(-1); }
[dir="rtl"] .article-body code, [dir="rtl"] .article-body pre { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .article-body pre { text-align: left; }

/* Hebrew: OE Doo Pro from activetrail.co.il for Hebrew letters (book for text, medium for headings, bold, light for the hero);
   Latin letters keep the English fonts. Hebrew has no capitals or italics. */
@font-face { font-family: "OE Doo Pro"; src: url("https://www.activetrail.co.il/wp-content/themes/activetrail_new/fonts/oedoopro-light-webfont.woff") format("woff"); font-weight: 300; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "OE Doo Pro"; src: url("https://www.activetrail.co.il/wp-content/themes/activetrail_new/fonts/oedoopro-book-webfont.woff") format("woff"); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "OE Doo Pro"; src: url("https://www.activetrail.co.il/wp-content/themes/activetrail_new/fonts/oedoopro-medium-webfont.woff") format("woff"); font-weight: 500 600; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "OE Doo Pro"; src: url("https://www.activetrail.co.il/wp-content/themes/activetrail_new/fonts/oedoopro-bold-webfont.woff") format("woff"); font-weight: 700 900; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }
:root:lang(he) {
  --font: "OE Doo Pro", "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "OE Doo Pro", "BentonSans-Regular", "Segoe UI", system-ui, sans-serif;
  --font-display-light: "OE Doo Pro", "BentonSans-Regular", "Segoe UI", system-ui, sans-serif;
  --font-serif: "OE Doo Pro", "BentonSans-Regular", "Segoe UI", system-ui, sans-serif;
  --font-serif-strong: "OE Doo Pro", "BentonSans-Regular", "Segoe UI", system-ui, sans-serif;
}
:lang(he) h1, :lang(he) h2, :lang(he) h3, :lang(he) h4, :lang(he) .btn, :lang(he) .section-title, :lang(he) .help-box strong, :lang(he) .footer-inner strong, :lang(he) .page-head h1, :lang(he) .article-title { font-weight: 500; }
:lang(he) .hero h1 { font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); }
:lang(he) .hero-sub { font-weight: 300; }
:lang(he) .theme-nav h2, :lang(he) .toc h2 { text-transform: none; letter-spacing: 0; font-size: 14px; }
:lang(he) .type-label { text-transform: none; letter-spacing: 0; font-size: 13px; }
:lang(he) .btn { letter-spacing: 0; }
:lang(he) em, :lang(he) i, :lang(he) cite { font-style: normal; font-weight: 600; }
/* English text on a Hebrew page (an untranslated article) keeps the English fonts */
:root:lang(he) [lang|="en"] {
  --font-display: "BentonSans-Black", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-display-light: "BentonSans-Regular", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Linotype - CaeciliaLTPro-45Light", "Roboto Slab", Rockwell, Georgia, serif;
  --font-serif-strong: "Linotype - CaeciliaLTPro-55Roman", "Roboto Slab", Rockwell, Georgia, serif;
}

/* Traily's trace icon (Nov 2026): the same drawing and motion as in assistant.js. It runs faster on hover, and is
   mirrored on right-to-left pages so the trace runs in the reading direction. */
.at-trace .tr-path { opacity:.38}
.at-trace .tr-run { stroke-dasharray:22 100;stroke-dashoffset:22;animation:at-trace-run 3s cubic-bezier(.45,0,.55,1) infinite}
.at-trace .tr-spark { transform-box:fill-box;transform-origin:center;animation:at-trace-spark 3s ease-in-out infinite}
@keyframes at-trace-run { from { stroke-dashoffset:22}
to { stroke-dashoffset:-100}
}
@keyframes at-trace-spark { 0%,62%{transform:scale(1) rotate(0);opacity:.85}80%{transform:scale(1.35) rotate(20deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:.85}}
80% { transform:scale(1.45);opacity:1}
100% { transform:scale(1);opacity:.75}
}
@media (prefers-reduced-motion:reduce) { .at-trace .tr-run,.at-trace .tr-spark { animation:none}
.at-trace .tr-run { stroke-dashoffset:-70}
.at-trace .tr-spark { opacity:1}
}
.btn:hover .at-trace .tr-run, .btn:hover .at-trace .tr-spark { animation-duration: 1.4s; }
[dir="rtl"] .at-trace { transform: scaleX(-1); }
.promo-icon .at-trace { width: 26px; height: 26px; }
/* The link to the courses on the home page (courses.homeLink in site.config.json) */
.courses-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 8px 0 40px; padding: 24px 28px; border-radius: 10px; background: var(--navy); color: #fff; }
.courses-promo h2 { margin: 0 0 4px; font: 400 22px/1.2 var(--font-display); }
.courses-promo p { margin: 0; opacity: .85; }
