/* ================================================================
   Warehouse Slotting — Sunny Beach Day palette
   Golden sand · turquoise waves · deep-blue sky · coral · amber
   ================================================================ */

:root {
  /* Palette */
  --sand-50: #fdf7eb;
  --sand-100: #f9eed1;
  --sand-200: #f4dfa6;
  --sand-300: #ecc873;
  --sand-400: #e2a04a;
  --sand-500: #c97f1c;
  --sand-700: #8a5712;

  --sky-50: #e9f5fa;
  --sky-100: #cfeaf3;
  --sky-200: #9fd3e6;
  --sky-300: #6cb9d4;
  --sky-400: #2bb7c7;
  --sky-500: #0d6e8e;
  --sky-700: #0b3d4d;
  --sky-900: #052836;

  --coral-200: #ffd3c2;
  --coral-400: #ff8a65;
  --coral-600: #d2562f;

  --amber-300: #ffd97a;
  --amber-400: #ffcf5c;
  --amber-600: #d99100;

  --ink: #0f2a35;
  --ink-soft: #1f3a45;
  --ink-muted: #4f6671;

  --bg: var(--sand-50);
  --surface: #ffffff;
  --surface-warm: #fff9ee;
  --surface-cool: var(--sky-50);
  --border-soft: #ecd9b3;
  --border-cool: #c9e3ec;

  --link: var(--sky-500);
  --link-hover: var(--coral-600);

  --shadow-sm: 0 1px 2px rgba(11, 61, 77, 0.07), 0 1px 1px rgba(11, 61, 77, 0.04);
  --shadow-md: 0 6px 18px rgba(11, 61, 77, 0.10), 0 2px 6px rgba(11, 61, 77, 0.06);
  --shadow-lg: 0 24px 48px rgba(11, 61, 77, 0.14), 0 4px 12px rgba(11, 61, 77, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --header-height: 72px;
  --container-max: 1480px;
  --content-max: 1160px;

  scroll-padding-top: calc(var(--header-height) + 12px);
}

/* ---------- Reset & base ---------- */

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

html, body { margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #fef9ec 0%, #fdf7eb 30%, #f6e9c8 100%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

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

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
a:hover, a:focus-visible {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}
a:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--sky-500);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.site-main { flex: 1 0 auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 252, 244, 0.85);
  border-bottom: 1px solid rgba(201, 127, 28, 0.16);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  min-height: var(--header-height);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  border-bottom: none;
}
.site-brand:hover { color: var(--sky-500); }
.site-brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); }
.brand-logo { transition: transform 200ms ease; filter: drop-shadow(0 2px 4px rgba(11, 61, 77, 0.18)); }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.site-brand__tag { font-size: 0.78rem; color: var(--ink-muted); font-weight: 500; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.primary-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: none;
  position: relative;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.primary-nav__link:hover {
  background: rgba(43, 183, 199, 0.12);
  color: var(--sky-500);
  transform: translateY(-1px);
}
.primary-nav__link.is-current {
  background: var(--sky-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.primary-nav__link.is-current .ui-icon path[stroke="currentColor"] { stroke: #fff; }
.primary-nav__link .ui-icon { flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(11, 61, 77, 0.18);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 252, 244, 0.98);
    border-bottom: 1px solid rgba(201, 127, 28, 0.16);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }
  .primary-nav.is-open { max-height: 640px; }
  .primary-nav__link { width: 100%; justify-content: flex-start; padding: 12px 16px; border-radius: var(--radius-md); }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, var(--sky-700) 0%, var(--sky-900) 100%);
  color: #eaf3f7;
  border-top: 4px solid var(--amber-400);
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.15);
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px clamp(16px, 3vw, 32px) 40px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(220px, 1fr) 2fr 1fr;
  align-items: start;
}
.site-footer__brand { display: flex; gap: 12px; align-items: center; }
.site-footer__name { margin: 0; font-weight: 700; line-height: 1.2; }
.site-footer__name span { font-weight: 400; opacity: 0.75; font-size: 0.85rem; }
.site-footer__nav h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  color: var(--amber-300);
}
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eaf3f7;
  font-weight: 500;
}
.site-footer__nav a:hover { color: var(--amber-300); }
.site-footer__legal { font-size: 0.85rem; opacity: 0.75; line-height: 1.5; max-width: 32ch; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Front page ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px) clamp(64px, 9vw, 120px);
  background: radial-gradient(ellipse at 20% 10%, rgba(255, 207, 92, 0.45), transparent 55%),
              radial-gradient(ellipse at 80% 0%, rgba(43, 183, 199, 0.30), transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(255, 138, 101, 0.18), transparent 70%);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 110, 142, 0.10);
  color: var(--sky-500);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--sky-500) 0%, var(--sky-700) 55%, var(--coral-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-soft); margin: 0 0 16px; max-width: 60ch; }
.hero__art {
  background: linear-gradient(160deg, #fff8e2, #ffe9c4 55%, #cfe8f0);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero__art h2 { margin: 0 0 12px; color: var(--sky-700); font-size: 1.1rem; }
.hero__art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero__art li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: 2; }
}

.hero__ctas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
  max-width: 720px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  border-bottom-width: 1px;
}
.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-300);
  color: var(--ink);
}
.hero__cta-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff7e0, #ffe2c2);
}
.hero__cta.accent-deep-blue .hero__cta-icon { background: linear-gradient(135deg, #d4ecf5, #9fd3e6); }
.hero__cta.accent-turquoise .hero__cta-icon { background: linear-gradient(135deg, #bff0f5, #6dd6df); }
.hero__cta.accent-coral .hero__cta-icon { background: linear-gradient(135deg, #ffd9c5, #ffb09a); }
.hero__cta-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero__cta-text span { font-size: 0.86rem; color: var(--ink-muted); }

/* ---------- Section cards (front page) ---------- */

.section-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px);
}
.section-grid > h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--sky-700);
}
.section-grid > p { color: var(--ink-muted); max-width: 70ch; margin: 0 0 32px; }
.section-grid__cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.section-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
  border-bottom-width: 1px;
  color: var(--ink);
}
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.section-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.section-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff5d8, #ffe1bd);
}
.section-card.accent-deep-blue .section-card__icon { background: linear-gradient(135deg, #d4ecf5, #9fd3e6); }
.section-card.accent-turquoise .section-card__icon { background: linear-gradient(135deg, #bff0f5, #6dd6df); }
.section-card.accent-coral .section-card__icon { background: linear-gradient(135deg, #ffd9c5, #ffb09a); }
.section-card p { margin: 0; color: var(--ink-muted); line-height: 1.55; }
.section-card__subpages { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.section-card__subpages a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--sky-500);
  font-weight: 500;
}
.section-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--coral-600);
  border-bottom: none;
}
.section-card__cta:hover { transform: translateX(2px); }

/* ---------- Content pages ---------- */

.content { padding: clamp(16px, 2vw, 28px) clamp(16px, 4vw, 48px) 24px; }
.content__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.breadcrumbs {
  background: linear-gradient(180deg, var(--surface-warm) 0%, rgba(255, 249, 238, 0.6) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 18px;
  display: inline-flex;
  box-shadow: var(--shadow-sm);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--sand-500);
  font-weight: 700;
  font-size: 1.05em;
}
.breadcrumbs a {
  color: var(--sky-500);
  border-bottom: 1px dotted transparent;
  font-weight: 500;
}
.breadcrumbs a:hover { color: var(--coral-600); border-bottom-color: currentColor; }
.breadcrumbs [aria-current="page"] span { color: var(--coral-600); font-weight: 700; }

.content__header { margin: 0; }
.content__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}
.content__eyebrow .dot { color: var(--sand-400); }

.content__body { line-height: 1.7; }
/* All block children use the full width of their container, matching the
   codeblocks/tables. Container width is capped by --container-max on .content__inner. */
.content__body > * { max-width: none; }

.content__body h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 4px 0 20px;
  background: linear-gradient(120deg, var(--sky-500) 0%, var(--sky-700) 55%, var(--coral-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.content__body h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  color: var(--sky-700);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sand-200);
}
.content__body h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.35rem);
  margin: 36px 0 12px;
  color: var(--sky-500);
}
.content__body h4 { margin: 28px 0 10px; color: var(--ink-soft); font-size: 1.08rem; }

.content__body h2 a.header-anchor,
.content__body h3 a.header-anchor,
.content__body h4 a.header-anchor {
  color: inherit;
  border-bottom: none;
}
.content__body h2:hover a.header-anchor::after,
.content__body h3:hover a.header-anchor::after {
  content: " §";
  color: var(--sand-400);
  font-weight: 400;
}

.content__body p { margin: 0 0 18px; }
.content__body ul, .content__body ol { padding-left: 1.4em; margin: 0 0 20px; }
.content__body li { margin-bottom: 6px; }
.content__body li::marker { color: var(--sand-400); }

.content__body blockquote {
  border-left: 4px solid var(--amber-400);
  background: rgba(255, 207, 92, 0.10);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  color: var(--ink-soft);
}

.content__body strong { color: var(--sky-700); }

.content__body a {
  color: var(--sky-500);
  font-weight: 500;
  border-bottom: 1px solid rgba(13, 110, 142, 0.35);
}
.content__body a:hover { color: var(--coral-600); border-bottom-color: currentColor; }

/* ---------- Inline code ---------- */

.content__body :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(43, 183, 199, 0.10);
  color: var(--sky-700);
  padding: 1px 6px;
  border-radius: 5px;
  border: none;
  white-space: break-spaces;
  word-break: break-word;
}

/* ---------- Code blocks (with copy button) ---------- */

.codeblock {
  position: relative;
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.codeblock pre {
  margin: 0;
  padding: 48px 22px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1f3a45;
  background: transparent;
  tab-size: 4;
}
.codeblock pre code { font-family: inherit; background: none; padding: 0; color: inherit; }
.codeblock[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky-700);
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  padding: 5px 14px;
  border-bottom-right-radius: var(--radius-sm);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.codeblock-copy {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(13, 110, 142, 0.10);
  color: var(--sky-700);
  border: 1px solid rgba(13, 110, 142, 0.20);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}
.codeblock-copy:hover { background: var(--sky-500); color: #fff; transform: translateY(-1px); }
.codeblock-copy.is-copied { background: var(--amber-400); color: var(--sky-900); border-color: var(--amber-600); }

/* Prism token colours, tuned to the Sunny Beach palette */
.codeblock .token.comment,
.codeblock .token.prolog,
.codeblock .token.doctype,
.codeblock .token.cdata { color: #8a7651; font-style: italic; }
.codeblock .token.punctuation { color: #6b8590; }
.codeblock .token.property,
.codeblock .token.tag,
.codeblock .token.constant,
.codeblock .token.symbol,
.codeblock .token.deleted { color: var(--coral-600); }
.codeblock .token.boolean,
.codeblock .token.number { color: #b06200; }
.codeblock .token.selector,
.codeblock .token.attr-name,
.codeblock .token.string,
.codeblock .token.char,
.codeblock .token.builtin,
.codeblock .token.inserted { color: #1f6f4a; }
.codeblock .token.operator,
.codeblock .token.entity,
.codeblock .token.url,
.codeblock .language-css .token.string,
.codeblock .style .token.string { color: var(--sky-500); background: none; }
.codeblock .token.atrule,
.codeblock .token.attr-value,
.codeblock .token.keyword { color: var(--sky-700); font-weight: 600; }
.codeblock .token.function,
.codeblock .token.class-name { color: #9a3b94; }
.codeblock .token.regex,
.codeblock .token.important,
.codeblock .token.variable { color: var(--amber-600); }

/* Line numbers (if enabled by syntaxhighlight plugin) */
.codeblock pre[class*="language-"] .line-numbers-rows { border-right-color: var(--border-soft); }

/* ---------- Tables ---------- */

.table-scroll {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.table-scroll th, .table-scroll td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.table-scroll th {
  background: linear-gradient(180deg, var(--sand-100), var(--sand-50));
  color: var(--sky-700);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.table-scroll tr:last-child td { border-bottom: none; }
.table-scroll tbody tr:hover { background: rgba(43, 183, 199, 0.06); }

/* ---------- Task lists (togglable) ---------- */

.content__body ul.contains-task-list,
.content__body ul li.task-list-item {
  list-style: none;
}
.content__body ul.contains-task-list { padding-left: 4px; }
.content__body li.task-list-item { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.content__body li.task-list-item::marker { content: ""; }
.content__body li.task-list-item > input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border: 2px solid var(--sky-500);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background-color 160ms ease, transform 160ms ease;
}
.content__body li.task-list-item > input[type="checkbox"]:hover { transform: scale(1.06); }
.content__body li.task-list-item > input[type="checkbox"]:checked {
  background: var(--sky-500);
  border-color: var(--sky-500);
}
.content__body li.task-list-item > input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 2px 3px 3px 3px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) translate(-1px, -2px);
  width: 6px;
  height: 11px;
  border-top: 0;
  border-left: 0;
}
.content__body li.task-list-item.is-checked { color: var(--ink-muted); text-decoration: line-through; }

/* ---------- FAQ accordion ---------- */

.faq-accordion {
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.faq-accordion details {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}
.faq-accordion details[open] { box-shadow: var(--shadow-md); }
.faq-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--sky-700);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--surface-warm), var(--surface));
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::before {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--sky-500);
  color: #fff;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 200ms ease, background 200ms ease;
}
.faq-accordion details[open] summary::before { content: "−"; background: var(--coral-400); }
.faq-accordion summary:hover { color: var(--coral-600); }
.faq-accordion .faq-answer { padding: 0 20px 20px 56px; color: var(--ink-soft); }
.faq-accordion .faq-answer > *:first-child { margin-top: 0; }
.faq-accordion .faq-answer > *:last-child { margin-bottom: 0; }

/* ---------- Related ---------- */

.related {
  margin-top: 56px;
  padding: 24px;
  background: var(--surface-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}
.related h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-700);
}
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  border-bottom-width: 1px;
  font-weight: 500;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}
.related a:hover { color: var(--sky-500); transform: translateX(3px); border-color: var(--sky-300); }

/* ---------- Mermaid container ---------- */

.mermaid {
  background: var(--surface);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  text-align: center;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mobile/tweaks ---------- */

@media (max-width: 540px) {
  html { font-size: 16px; }
  .site-brand__tag { display: none; }
  .hero { padding-top: 48px; }
  .hero__art { padding: 22px; }
  .codeblock pre { font-size: 0.82rem; padding: 18px 16px; }
}

@media (min-width: 1280px) {
  :root { --header-height: 80px; }
}
