/* =========================================================
   Vector Tile Pipeline & Caching Reference
   Sunset Gradient — light theme
   ========================================================= */

:root {
  /* Sunset palette */
  --c-bg: #fff7ef;
  --c-bg-2: #fff1e1;
  --c-surface: #ffffff;
  --c-surface-2: #fff8ee;
  --c-border: #f4d6b6;
  --c-border-soft: #f7e3c8;
  --c-text: #2a1a12;
  --c-text-soft: #5b3a25;
  --c-muted: #7a5a45;

  --c-accent: #ff7a3d;
  --c-accent-2: #ffa64d;
  --c-accent-3: #ffd86b;
  --c-accent-deep: #c8442e;
  --c-accent-ink: #8a2d1f;
  --c-link: #d24a1f;
  --c-link-hover: #8a2d1f;

  --c-code-bg: #fff3df;
  --c-code-ink: #5b3a25;
  --c-inline-bg: rgba(255, 217, 168, 0.32);
  --c-inline-ink: #7a3f1a;

  --c-success: #2f8a52;
  --c-info: #2563a8;

  --shadow-sm: 0 1px 2px rgba(200, 68, 46, 0.08);
  --shadow-md: 0 6px 18px rgba(200, 68, 46, 0.12);
  --shadow-lg: 0 18px 40px rgba(200, 68, 46, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --header-h: 64px;
  --max-w: 1480px;
  --content-w: 1480px;
  --sidebar-w: 280px;
  --gutter: clamp(16px, 3vw, 36px);

  --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Consolas, monospace;
}

/* Reset-ish */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 90% -10%, #ffd6a8 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #ffcfb6 0%, transparent 60%),
    var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Sticky header lifts content off the page – give in-page anchors breathing room. */
:target { scroll-margin-top: calc(var(--header-h) + 16px); }
h1, h2, h3, h4, h5, h6 { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Skip-to-content link — visible only when focused. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--c-accent-deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
#main:focus { outline: none; }

/* =========================================================
   Layout shell
   ========================================================= */
.page {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
}

.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--content {
  width: min(100%, var(--content-w));
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 247, 239, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-accent-ink);
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: transform 0.18s ease, color 0.18s ease;
}
.brand:hover { transform: translateY(-1px); color: var(--c-accent-deep); }
.brand__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand__text {
  font-size: 17px;
  background: linear-gradient(180deg, var(--c-accent-deep), var(--c-accent-ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { margin-left: auto; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--c-text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav__link svg { width: 16px; height: 16px; }
.nav__link:hover {
  background: var(--c-bg-2);
  color: var(--c-accent-deep);
  transform: translateY(-1px);
}
.nav__link.is-current {
  background: linear-gradient(135deg, #ffe1bf, #ffd09a);
  color: var(--c-accent-ink);
  box-shadow: inset 0 0 0 1px rgba(200, 68, 46, 0.15);
}
.nav__link.is-current::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.18);
}

/* Mobile nav: collapse labels under a breakpoint */
@media (max-width: 640px) {
  .brand__text { display: none; }
  .nav__link { padding: 8px 10px; font-size: 13.5px; }
  .nav__link .nav__label { display: none; }
  .nav__link.is-current .nav__label { display: inline; }
}

/* =========================================================
   Main + footer flex
   ========================================================= */
.site-main { flex: 1 0 auto; padding-block: clamp(24px, 4vw, 48px); }

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, transparent, #ffe7c9 60%, #ffd9a8 100%);
  border-top: 1px solid var(--c-border);
  padding: 32px 0 24px;
  flex-shrink: 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1.2fr 2fr; align-items: start; }
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 40px; height: 40px; }
.site-footer__brand span {
  font-weight: 700;
  color: var(--c-accent-ink);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.site-footer__nav h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: var(--c-accent-deep);
}
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { margin: 4px 0; }
.site-footer__nav a {
  color: var(--c-text-soft);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.18s ease;
}
.site-footer__nav a:hover { color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal {
  margin-top: 24px;
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px solid rgba(200, 68, 46, 0.15);
  padding-top: 14px;
  text-align: center;
}

/* =========================================================
   Hero / homepage
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 360px at 80% -20%, #ffd069 0%, transparent 60%),
    radial-gradient(900px 360px at -10% 110%, #ff8a5b 0%, transparent 60%),
    linear-gradient(135deg, #fff5e2 0%, #ffe1c0 100%);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, transparent 70%, rgba(200, 68, 46, 0.08));
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__title {
  margin: 16px 0 12px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(140deg, #c8442e 0%, #ff7a3d 60%, #ffb24d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--c-text-soft);
  max-width: 70ch;
  margin: 0 0 12px;
}
.hero__lede + .hero__lede { margin-top: 8px; }

.hero__ctas {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .hero__ctas { grid-template-columns: repeat(3, 1fr); }
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent-2);
}
.cta__icon {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
}
.cta__icon svg { width: 22px; height: 22px; }
.cta__icon--grid     { background: linear-gradient(135deg, #ff7a3d, #c8442e); }
.cta__icon--pipeline { background: linear-gradient(135deg, #ffb24d, #ff7a3d); }
.cta__icon--palette  { background: linear-gradient(135deg, #ffd86b, #ffa64d); }

.cta__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cta__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.cta__title {
  font-weight: 700;
  color: var(--c-accent-ink);
  font-size: 16px;
  line-height: 1.25;
}
.cta__arrow { margin-left: auto; color: var(--c-accent); transition: transform 0.2s ease; }
.cta:hover .cta__arrow { transform: translateX(4px); }

/* Homepage overview cards */
.overview {
  margin-top: clamp(40px, 5vw, 72px);
}
.overview__head { margin-bottom: 24px; }
.overview__head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 8px;
  background: linear-gradient(140deg, var(--c-accent-deep), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.overview__head p { color: var(--c-text-soft); margin: 0; max-width: 70ch; }

.pillars {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px)  { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c-accent-2); }
.pillar__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.pillar__head .cta__icon { width: 36px; height: 36px; }
.pillar__title {
  margin: 0;
  font-size: 18px;
  color: var(--c-accent-ink);
  font-weight: 700;
}
.pillar__title a { color: inherit; text-decoration: none; background-image: none; }
.pillar__title a:hover { color: var(--c-accent-deep); text-decoration: underline; }
.pillar__summary { color: var(--c-text-soft); margin: 0 0 16px; font-size: 15px; }
.pillar__links { margin-top: auto; }
.pillar__links h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin: 0 0 6px;
}
.pillar__links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pillar__links a {
  color: var(--c-link);
  text-decoration: none;
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.pillar__links a:hover { color: var(--c-link-hover); border-bottom-color: var(--c-accent-2); }

/* =========================================================
   Content pages (articles)
   ========================================================= */
.article-layout {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  }
}

.article {
  min-width: 0; /* prevent overflow from <pre> inside grid */
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3.2vw, 48px) clamp(20px, 3.6vw, 56px);
  box-shadow: var(--shadow-sm);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13.5px;
  color: var(--c-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.breadcrumbs a { color: var(--c-link); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs__sep { color: var(--c-border); }
.breadcrumbs__current { color: var(--c-text-soft); font-weight: 600; }

/* Article typography */
.article h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 4px 0 32px;
  background: linear-gradient(140deg, #c8442e 0%, #ff7a3d 60%, #ffb24d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 2.6em 0 0.9em;
  color: var(--c-accent-ink);
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border-soft);
}
.article h3 {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  margin: 2.2em 0 0.7em;
  color: var(--c-accent-deep);
}
.article h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.8em 0 0.5em;
  color: var(--c-text);
}

.article p {
  margin: 0 0 1.35em;
  color: var(--c-text);
  line-height: 1.8;
}
.article p strong { color: var(--c-accent-ink); }

.article a {
  color: var(--c-link);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.18s ease, background-size 0.18s ease;
}
.article a:hover {
  color: var(--c-link-hover);
  background-size: 100% 2px;
}

/* Header anchor links from markdown-it-anchor */
.article h2 .header-anchor,
.article h3 .header-anchor,
.article h4 .header-anchor {
  color: inherit;
  background: none;
  text-decoration: none;
}
.article h2 .header-anchor:hover::after,
.article h3 .header-anchor:hover::after,
.article h4 .header-anchor:hover::after {
  content: "  #";
  color: var(--c-accent-2);
  font-weight: 500;
}

/* Lists */
.article ul, .article ol {
  padding-left: 1.4em;
  margin: 0 0 1.5em;
}
.article li { margin: 0.55em 0; line-height: 1.75; }
.article li > p { margin-bottom: 0.6em; }
.article li::marker { color: var(--c-accent); }

/* Task list rendering */
.article li.task-list-item {
  list-style: none;
  margin-left: -1.2em;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.article li.task-list-item::marker { content: none; }
.article li.task-list-item > input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  flex: 0 0 18px;
  border: 1.5px solid var(--c-accent-2);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.article li.task-list-item > input[type="checkbox"]:hover { border-color: var(--c-accent); transform: scale(1.05); }
.article li.task-list-item > input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep));
  border-color: var(--c-accent-deep);
}
.article li.task-list-item > input[type="checkbox"]:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.article li.task-list-item.is-checked > *:not(input) {
  text-decoration: line-through;
  color: var(--c-muted);
}

/* Inline code — soft, blends with surrounding text */
.article :not(pre) > code {
  background: var(--c-inline-bg);
  color: var(--c-inline-ink);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 500;
  border: 0;
  letter-spacing: -0.01em;
}

/* Block quotes */
.article blockquote {
  margin: 1.8em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--c-accent-2);
  background: var(--c-surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-soft);
  line-height: 1.75;
}
.article blockquote p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.2em 0;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  -webkit-overflow-scrolling: touch;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14.5px;
}
.article thead th {
  background: linear-gradient(180deg, #fff1d6, #ffe2b8);
  color: var(--c-accent-ink);
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}
.article tbody td {
  padding: 14px 16px;
  line-height: 1.65;
  border-bottom: 1px solid var(--c-border-soft);
  vertical-align: top;
}
.article tbody tr:last-child td { border-bottom: 0; }
.article tbody tr:hover { background: #fff7ea; }

/* Code blocks */
.codeblock {
  position: relative;
  margin: 1.8em 0;
  background: var(--c-code-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.codeblock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: linear-gradient(180deg, #ffe9c8, #ffdcae);
  border-bottom: 1px solid var(--c-border);
}
.codeblock__lang {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent-ink);
}
.codeblock__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--c-accent-ink);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.codeblock__copy:hover { background: #fff; color: var(--c-accent-deep); }
.codeblock__copy.is-copied { background: #d9f5e3; color: #2f8a52; border-color: #b6e8c8; }
.codeblock pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: transparent;
  color: var(--c-code-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}
.codeblock code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  border: 0;
  color: inherit;
}

/* Prism token colors tuned to the sunset palette */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata { color: #a87a55; font-style: italic; }
.token.punctuation { color: #8a5d3a; }
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted { color: #c8442e; }
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted { color: #2f8a52; }
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string { color: #8a2d1f; background: none; }
.token.atrule,
.token.attr-value,
.token.keyword { color: #d24a1f; font-weight: 600; }
.token.function,
.token.class-name { color: #8a2d1f; font-weight: 600; }
.token.regex,
.token.important,
.token.variable { color: #b86e1a; }
.token.important,
.token.bold { font-weight: 700; }
.token.italic { font-style: italic; }

/* Mermaid container */
.mermaid {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 1.2em 0;
  text-align: center;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
}

/* FAQ accordions: <details class="faq"> ... <summary>Question</summary> ... */
.article details.faq {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  padding: 0;
  margin: 0.6em 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article details.faq + details.faq { margin-top: -1px; }
.article details.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--c-accent-ink);
  background: linear-gradient(180deg, #fff5e2, #ffe7c3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.18s ease;
}
.article details.faq > summary::-webkit-details-marker { display: none; }
.article details.faq > summary::before {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-accent-deep);
  border-bottom: 2px solid var(--c-accent-deep);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex: 0 0 10px;
  margin-right: 4px;
}
.article details.faq[open] > summary::before { transform: rotate(45deg); }
.article details.faq[open] > summary { background: linear-gradient(180deg, #ffe7c3, #ffdba6); }
.article details.faq > .faq__body { padding: 14px 18px 18px; }

/* Related pages sidebar */
.related {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.related h3 {
  margin: 0 0 10px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent-deep);
}
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.related a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--c-text-soft);
  text-decoration: none;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.related a:hover { background: var(--c-bg-2); color: var(--c-accent-deep); border-color: var(--c-border-soft); }
.related a.is-current {
  background: linear-gradient(135deg, #ffe1bf, #ffd09a);
  color: var(--c-accent-ink);
  font-weight: 700;
  border-color: rgba(200, 68, 46, 0.15);
}
.related__group + .related__group { margin-top: 18px; }

/* On smaller screens the sidebar drops below */
@media (max-width: 1079px) {
  .related { position: static; }
}

/* Footer next/prev (inside article) */
.article-tail {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border-soft);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .article-tail { grid-template-columns: 1fr 1fr; } }
.article-tail a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--c-surface-2);
  color: var(--c-text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.article-tail a:hover { transform: translateY(-2px); border-color: var(--c-accent-2); box-shadow: var(--shadow-md); }
.article-tail .article-tail__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.article-tail .article-tail__title { font-weight: 700; color: var(--c-accent-ink); }
.article-tail .next { text-align: right; }

/* Selection */
::selection { background: rgba(255, 122, 61, 0.25); color: var(--c-accent-ink); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
