/* ==========================================================================
   MediaMyne Support – stylesheet
   Brand: teal gradient #00a4bd → #00b69f, Poppins (headings), Open Sans (text)
   ========================================================================== */

:root {
  --brand-1: #00a4bd;
  --brand-2: #00b69f;
  --brand-dark: #00788a;          /* accessible teal for text and links */
  --brand-tint: #e6f6f7;
  --gradient: linear-gradient(90deg, var(--brand-1), var(--brand-2));

  --ink: #1d1c1c;
  --ink-2: #44505e;
  --slate: #526172;
  --slate-2: #858dac;
  --line: #e3e6ed;
  --smoke: #e6e9ed;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --cms-dark: #2c3a4b;            /* colour of the CMS side menu */

  --blue: #1876f2;
  --green: #3bb422;
  --green-bg: #e9f8e5;
  --orange: #e69500;
  --orange-bg: #fff4dc;
  --red: #e0203f;
  --red-bg: #ffe7ea;

  --radius: 8px;
  --shadow: 0 5px 11px -5px rgba(82, 97, 114, .55);
  --shadow-hover: 0 10px 22px -8px rgba(82, 97, 114, .6);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --header-h: 64px;
  --content-w: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 2px; }
a:hover { color: var(--brand-1); }
:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--ink); }
kbd {
  font: 600 12px/1 var(--font-body);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid currentColor;
  opacity: .8;
}

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--gradient); color: #fff; }

.header-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: var(--gradient);
}
.header-bar.is-scrolled { box-shadow: 0 4px 18px -8px rgba(0, 60, 70, .5); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 160px; height: auto; }
.brand-sub {
  font: 600 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 4px; background: rgba(255, 255, 255, .18);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: #fff; text-decoration: none; font: 600 14px/1.2 var(--font-body); white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .24); }

.search-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer;
  font: 600 14px/1 var(--font-body);
}
.search-trigger:hover { background: rgba(255, 255, 255, .28); }
.search-trigger svg, .hero-search svg, .search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; }

.lang-menu { position: relative; flex-shrink: 0; }
.lang-switch {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  color: #fff; text-decoration: none; font: 600 14px/1 var(--font-body);
}
.lang-switch .lang-caret { width: 14px; height: 14px; stroke-width: 2.4; }
.lang-switch[aria-expanded="true"] { background: rgba(255, 255, 255, .24); }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: var(--radius); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .35);
}
.lang-list[hidden] { display: none; }
.lang-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font: 600 14px/1.2 var(--font-body);
}
.lang-list a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-list a[aria-current="true"] { background: var(--brand-tint); color: var(--brand-dark); }
.lang-code { min-width: 24px; font-size: 11px; letter-spacing: .06em; color: var(--slate-2); }
.lang-switch:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-switch-code { display: none; }

.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Page hero */
.page-hero { padding: 28px clamp(16px, 4vw, 40px) 40px; }
.page-hero-inner { max-width: 1180px; margin: 0 auto; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.page-hero .lead { margin: 0; max-width: 680px; font-size: 18px; color: rgba(255, 255, 255, .92); }
.audience { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.audience-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .18); padding: 4px 8px; border-radius: 4px; }

.hero-search { display: none; }
.layout-home .page-hero { padding: 48px 16px 88px; text-align: center; }
.layout-home .page-hero-inner { max-width: 960px; }
.layout-home .page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.layout-home .page-hero .lead { margin: 0 auto; max-width: 760px; }
.page-hero h1, .page-hero .lead { text-wrap: balance; }
.layout-home .hero-search {
  display: flex; align-items: center; gap: 12px;
  margin: 28px auto 0; max-width: 600px;
  padding: 0 18px; height: 58px; border-radius: 12px;
  background: #fff; color: var(--slate);
  box-shadow: 0 16px 36px -14px rgba(0, 50, 60, .55);
}
.hero-search input { flex: 1; border: 0; outline: 0; font: 16px var(--font-body); color: var(--ink); background: transparent; min-width: 0; }

/* --------------------------------------------------------------------------
   Page layout
   -------------------------------------------------------------------------- */
.page-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--content-w));
  gap: 56px;
  justify-content: center;
  max-width: 1180px; margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 80px;
}
.layout-home .page-wrap, .layout-plain .page-wrap { display: block; max-width: 1180px; }
.layout-home .sidebar, .layout-plain .sidebar { display: none; }
.layout-home .page-wrap { padding-top: 0; margin-top: -56px; }
.content { min-width: 0; outline: 0; }

/* Sidebar / table of contents */
.sidebar-inner { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 8px; }
.sidebar-title { margin: 0 0 8px; font: 600 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 6px 12px; border-left: 2px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4;
}
.toc ul ul a { padding-left: 26px; font-size: 13px; }
.toc a:hover { color: var(--brand-dark); border-left-color: var(--brand-2); }
.toc a.is-active { color: var(--brand-dark); border-left-color: var(--brand-1); font-weight: 600; background: var(--brand-tint); }

/* --------------------------------------------------------------------------
   Content typography
   -------------------------------------------------------------------------- */
.content > section, .doc-section { margin-bottom: 64px; }
.content h2 { font-size: 28px; margin: 0 0 16px; padding-top: 8px; }
.content h3 { font-size: 20px; margin: 40px 0 12px; }
.content h4 { font-size: 16px; margin: 28px 0 8px; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 16px; }
.content li { margin-bottom: 6px; }
.content li::marker { color: var(--brand-1); }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }

/* Who can use it */
.role {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--font-body); color: var(--slate);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px;
}
.role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.role.role-license::before { background: var(--orange); }

/* Numbered callout reference – matches the circles in the screenshots */
.num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #8c9db1; color: var(--slate);
  font: 700 12px/1 var(--font-head);
  vertical-align: 1px; margin: 0 2px;
}

/* Legend list for numbered screenshots */
ol.legend { list-style: none; padding: 0; counter-reset: legend; display: grid; gap: 10px; margin: 0 0 24px; }
ol.legend > li { counter-increment: legend; position: relative; padding: 12px 16px 12px 52px; background: var(--bg-soft); border-radius: var(--radius); margin: 0; }
ol.legend > li::before {
  content: counter(legend);
  position: absolute; left: 14px; top: 12px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #8c9db1; background: #fff; color: var(--slate);
  font: 700 13px/1 var(--font-head);
}
ol.legend strong { display: block; font-family: var(--font-head); font-weight: 600; }
ol.legend a.more { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Procedure steps */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 0 0 24px; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 16px 48px; margin: 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient); color: #fff; font: 700 14px/1 var(--font-head);
}
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }

/* Definition-style list of terms */
dl.terms { margin: 0 0 24px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
dl.terms > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
dl.terms > div:first-child { border-top: 0; }
dl.terms dt { font-family: var(--font-head); font-weight: 600; }
dl.terms dd { margin: 0; }
dl.terms dd p:last-child { margin-bottom: 0; }

/* Figures */
figure.shot { margin: 24px 0 28px; }
figure.shot img, figure.shot video {
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); cursor: zoom-in;
}
figure.shot video { cursor: default; }
figure.shot.small { max-width: 520px; }
figure.shot.plain img { box-shadow: none; border: 0; }
figure.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--slate); }

/* Notes – NOTE / CAUTION / WARNING as in ASD-STE100 practice */
.note {
  position: relative; margin: 24px 0; padding: 16px 20px 16px 56px;
  border-radius: var(--radius); background: var(--brand-tint); border-left: 4px solid var(--brand-1);
}
.note::before {
  content: "i"; position: absolute; left: 18px; top: 16px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-1); color: #fff; font: 700 14px/1 var(--font-head);
}
.note-title { display: block; font: 700 13px/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; color: var(--brand-dark); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.tip { background: #eef8f1; border-left-color: var(--green); }
.note.tip::before { content: "★"; background: var(--green); font-size: 12px; }
.note.tip .note-title { color: #26801a; }
.note.caution { background: var(--orange-bg); border-left-color: var(--orange); }
.note.caution::before { content: "!"; background: var(--orange); }
.note.caution .note-title { color: #9a6300; }
.note.warning { background: var(--red-bg); border-left-color: var(--red); }
.note.warning::before { content: "!"; background: var(--red); }
.note.warning .note-title { color: #b0142f; }

/* Status pills (same colours as in the CMS) */
.status {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  font: 700 11px/1.4 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
.status.active { color: var(--green); background: var(--green-bg); }
.status.planned { color: var(--orange); background: var(--orange-bg); }
.status.concept { color: var(--red); background: var(--red-bg); }
.status.processing { color: var(--slate); background: var(--bg-soft); }
.status.warn-active { color: var(--orange); background: #fff; }
.status.invited { color: var(--orange); background: var(--orange-bg); }
.status.new { color: var(--red); background: var(--red-bg); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--bg-soft); font: 600 13px/1.4 var(--font-head); color: var(--slate); }
td:first-child { white-space: nowrap; }

/* Code / CSV example */
.code {
  position: relative; margin: 0 0 24px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--cms-dark); color: #e8eef5; overflow-x: auto;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.code pre { margin: 0; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  border: 0; border-radius: 5px; padding: 5px 10px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font: 600 12px var(--font-body);
}
.copy-btn:hover { background: rgba(255, 255, 255, .24); }

.ui { font-weight: 600; white-space: nowrap; }   /* UI labels such as buttons and menu items */
.path { font-weight: 600; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 6px; border: 0; cursor: pointer;
  font: 700 15px/1.2 var(--font-body); text-decoration: none;
  background: var(--gradient); color: #fff; transition: transform .15s, box-shadow .15s;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.button-grey { background: var(--smoke); color: var(--ink); }
.button-grey:hover { background: #cbd3df; color: var(--ink); }
.button-light { background: #fff; color: var(--brand-dark); }
.button-light:hover { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; position: relative; z-index: 2; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(82, 97, 114, .08); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.tile img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 8px; }
.tile h2 { font-size: 19px; margin: 0; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.tile .tile-more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; color: var(--brand-dark); }
.tile-icon { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-tint); margin-bottom: 8px; }
.tile-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-block { margin-top: 64px; }
.home-block > h2 { font-size: 24px; margin: 0 0 20px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.quick-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.quick-links a::after { content: "→"; color: var(--brand-1); transition: transform .15s; }
.quick-links a:hover { color: var(--brand-dark); }
.quick-links a:hover::after { transform: translateX(4px); }

.latest-release { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; padding: 28px; border-radius: 12px; background: var(--bg-soft); }
.latest-release h3 { margin: 0 0 6px; font-size: 18px; }
.latest-release ul { margin: 0; padding-left: 20px; }

/* --------------------------------------------------------------------------
   Player installation steps
   -------------------------------------------------------------------------- */
.install-steps { list-style: none; padding: 0; margin: 0; counter-reset: inst; display: grid; gap: 20px; }
.install-steps > li {
  counter-increment: inst;
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start;
  padding: 24px; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  margin: 0;
}
.install-steps .step-media { position: relative; }
.install-steps .step-media img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; }
.install-steps .step-media::before {
  content: counter(inst); position: absolute; top: -10px; left: -10px; z-index: 1;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient); color: #fff; font: 700 14px/1 var(--font-head); box-shadow: 0 0 0 3px #fff;
}
.install-steps h3 { margin: 0 0 8px; font-size: 19px; }
.install-steps p:last-child, .install-steps ol:last-child { margin-bottom: 0; }
.install-steps figure.shot { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Releases
   -------------------------------------------------------------------------- */
.release-tools {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 0; margin-bottom: 24px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 600 14px/1 var(--font-body); color: var(--ink-2);
}
.filter-btn .count { font-size: 12px; color: var(--slate-2); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn[aria-pressed="true"] .count { color: rgba(255, 255, 255, .7); }
.release-search { margin-left: auto; flex: 1 1 200px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font: 14px var(--font-body); }

.release { margin-bottom: 48px; }
.release-title { font-size: 22px !important; display: flex; align-items: center; gap: 12px; }
.release-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px var(--brand-tint); }
ul.changes { list-style: none; padding: 0 0 0 5px; margin: 0; border-left: 2px solid var(--line); }
li.change { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0 10px 20px; margin: 0; }
li.change p { margin: 0; }
li.change[hidden] { display: none; }
.badge {
  justify-self: start; align-self: start; margin-top: 3px;
  padding: 3px 8px; border-radius: 4px; font: 700 11px/1.4 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
}
.badge-feature { background: var(--brand-tint); color: var(--brand-dark); }
.badge-improvement { background: #e8f0fe; color: #1559b8; }
.badge-fix { background: var(--orange-bg); color: #9a6300; }
.release-empty { padding: 32px; text-align: center; color: var(--slate); background: var(--bg-soft); border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { padding: 24px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.contact-card h2 { font-size: 18px; margin: 0 0 12px; }
.contact-card p { margin: 0 0 8px; }
.contact-card .big { font: 600 17px/1.4 var(--font-head); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--cms-dark); color: #c9d3de; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-help h2 { color: #fff; font-size: 24px; margin: 0 0 8px; }
.footer-help p { margin: 0 0 16px; }
.footer-meta { font-size: 14px; }
.footer-meta img { margin-bottom: 14px; width: 150px; }
.footer-meta p { margin: 0 0 4px; }
.site-footer a:not(.button) { color: #fff; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gradient); color: #fff; box-shadow: var(--shadow-hover);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Search dialog
   -------------------------------------------------------------------------- */
.search-dialog { position: fixed; inset: 0; z-index: 90; background: rgba(20, 30, 40, .55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-dialog[hidden] { display: none; }
.search-panel { width: 100%; max-width: 640px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--line); color: var(--slate); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 17px var(--font-body); color: var(--ink); }
.search-close { border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 4px 8px; font: 600 12px var(--font-body); color: var(--slate); cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.search-results:empty { display: none; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a.is-selected { background: var(--brand-tint); }
.search-results .r-page { font: 600 11px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); }
.search-results .r-title { font: 600 15px/1.4 var(--font-head); display: block; }
.search-results .r-text { font-size: 13px; color: var(--slate); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results mark { background: #ccf1ec; color: inherit; border-radius: 2px; }
.search-results .r-empty { padding: 16px 12px; color: var(--slate); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(15, 22, 30, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 120px); width: auto; border-radius: 6px; background: #fff; }
.lightbox-caption { color: #dfe6ee; font-size: 14px; margin: 12px 0 0; text-align: center; }
.lightbox-close { position: absolute; top: 10px; right: 16px; border: 0; background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .page-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: calc(var(--content-w) + 80px); }
  .sidebar { display: none; }
}
@media (max-width: 1600px) {
  .header-bar { gap: 12px; }
  .main-nav a { padding: 8px 9px; }
  .search-trigger-text, .search-trigger kbd { display: none; }
  .lang-switch { gap: 4px; }
  .lang-switch-text { display: none; }
  .lang-switch-code { display: inline; }
}
@media (max-width: 1360px) {
  .menu-toggle { display: block; order: 3; }
  .search-trigger { margin-left: auto; }
  .search-trigger-text, .search-trigger kbd { display: none; }
  .lang-switch { gap: 4px; }
  .lang-switch-text { display: none; }
  .lang-switch-code { display: inline; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .3);
    display: none; margin: 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px; gap: 0; }
  .main-nav a { color: var(--ink); padding: 12px 16px; font-size: 16px; }
  .main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
  .main-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand img { width: 130px; }
  .header-bar { gap: 8px; }
  .brand-sub { display: none; }
  .lang-switch { padding: 8px 6px; }
  .content h2 { font-size: 24px; }
  dl.terms > div { grid-template-columns: 1fr; gap: 4px; }
  .install-steps > li { grid-template-columns: 1fr; padding: 20px; }
  li.change { grid-template-columns: 1fr; gap: 4px; }
  .latest-release { grid-template-columns: 1fr; }
  .release-search { max-width: none; margin-left: 0; }
  ol.legend > li { padding-left: 48px; }
}

@media print {
  .header-bar, .sidebar, .site-footer, .to-top, .hero-search { display: none !important; }
  .site-header { background: none; color: var(--ink); }
  .page-hero h1, .page-hero .lead { color: var(--ink); }
  .page-wrap { display: block; padding: 0; }
  figure.shot img { box-shadow: none; }
}

.page-hero .lead a { color: #fff; font-weight: 600; }
