/* tron-charts brand book — ported from tron-charts-help-center src/assets/styles/tailwind.css */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-700.woff2") format("woff2"); }

/* ─── Tokens (dark is the brand default) ─── */
:root {
  --ink-950: oklch(0.145 0.012 255);
  --ink-900: oklch(0.175 0.014 255);
  --ink-850: oklch(0.205 0.015 255);
  --ink-800: oklch(0.235 0.015 255);
  --ink-700: oklch(0.285 0.014 255);
  --ink-600: oklch(0.345 0.013 255);
  --gray-400: oklch(0.585 0.012 255);
  --gray-300: oklch(0.685 0.010 255);
  --white: oklch(0.975 0.004 255);

  --plasma: oklch(0.685 0.255 332);
  --plasma-soft: oklch(0.685 0.255 332 / 0.16);
  --plasma-line: oklch(0.685 0.255 332 / 0.40);
  --plasma-deep: oklch(0.545 0.215 332);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --page-max: 80rem;
  --header-h: 4rem;
  --ease: 150ms ease;

  --bg: var(--ink-950);
  --panel: var(--ink-900);
  --raised: var(--ink-850);
  --line: oklch(1 0 0 / 0.08);
  --line-strong: oklch(0.360 0.014 255);
  --text: var(--white);
  --text-2: var(--gray-300);
  --text-3: var(--gray-400);
  /* Plasma used as text: brand value on dark, deepened on light for 4.5:1 contrast. */
  --accent-text: var(--plasma);
  --header-bg: oklch(0.145 0.012 255 / 0.9);
  --scrim: oklch(0 0 0 / 0.6);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: oklch(0.975 0.004 255);
  --panel: oklch(0.960 0.004 255);
  --raised: oklch(0.945 0.004 255);
  --line: oklch(0 0 0 / 0.07);
  --line-strong: oklch(0 0 0 / 0.14);
  --text: var(--ink-950);
  --text-2: var(--ink-700);
  --text-3: var(--ink-600);
  --accent-text: var(--plasma-deep);
  --header-bg: oklch(0.975 0.004 255 / 0.9);
  --scrim: oklch(0 0 0 / 0.4);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: oklch(0.975 0.004 255);
    --panel: oklch(0.960 0.004 255);
    --raised: oklch(0.945 0.004 255);
    --line: oklch(0 0 0 / 0.07);
    --line-strong: oklch(0 0 0 / 0.14);
    --text: var(--ink-950);
    --text-2: var(--ink-700);
    --text-3: var(--ink-600);
    --accent-text: var(--plasma-deep);
    --header-bg: oklch(0.975 0.004 255 / 0.9);
    --scrim: oklch(0 0 0 / 0.4);
    color-scheme: light;
  }
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--plasma-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--plasma); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.icon-md { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 64rem; }
.page { padding-top: 3rem; padding-bottom: 3rem; }
.site-main { flex: 1; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  padding: 0.625rem 1rem; border-radius: var(--radius-md);
  background: var(--plasma); color: var(--ink-950); font-weight: 600; font-size: 0.875rem;
}
.skip-link:focus { top: 0.75rem; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3); font-weight: 400;
}

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.625rem; min-height: 44px; flex-shrink: 0; }
.brand-echo { width: 35px; height: 35px; color: var(--text); overflow: visible; }
.brand-echo .echo-g1, .brand-echo .echo-g2, .brand-echo .echo-main { transform-box: fill-box; }
.brand-echo .echo-g2 { fill: var(--plasma); opacity: 0.15; transform: translateX(-12px); }
.brand-echo .echo-g1 { fill: var(--plasma); opacity: 0.42; transform: translateX(-6px); }
.brand-echo .echo-main { fill: currentColor; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tron { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.brand-prop { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--text-3); }
.brand-help { font-size: 15px; color: var(--text-3); }

.header-nav { display: none; align-items: center; gap: 1.5rem; font-size: 0.875rem; color: var(--text-3); }
.nav-link { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; transition: color var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }

.header-search { display: none; }
.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  color: var(--text-3); transition: color var(--ease), background var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--raised); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}

.locale-switcher {
  display: flex; align-items: center; gap: 0.25rem; padding: 0.125rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-family: var(--mono); font-size: 0.75rem;
}
.locale-switcher a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 40px; padding: 0 0.625rem;
  border: 1px solid transparent; border-radius: 999px; color: var(--text-3);
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.locale-switcher a:hover { color: var(--text); }
@media (min-width: 768px) and (pointer: fine) {
  .locale-switcher a { min-width: 0; min-height: 26px; }
  .header-nav .icon-btn { width: 36px; height: 36px; }
}
.locale-switcher a[aria-current="true"] { border-color: var(--plasma); background: var(--plasma-soft); color: var(--accent-text); }

/* Mobile menu: floating trigger + slide-in drawer (popover, works without JS) */
.menu-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text-2);
  box-shadow: 0 20px 25px -5px oklch(0 0 0 / 0.3), 0 8px 10px -6px oklch(0 0 0 / 0.3);
}
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: 16rem; max-width: 85vw; height: 100%; max-height: none;
  flex-direction: column; gap: 0.25rem; padding: 1rem;
  border: 0; border-left: 1px solid var(--line);
  background: var(--panel); color: var(--text-2); font-size: 0.875rem;
  transform: translateX(100%);
  transition: transform 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.drawer:popover-open { display: flex; transform: translateX(0); }
@starting-style { .drawer:popover-open { transform: translateX(100%); } }
.drawer::backdrop { background: var(--scrim); }
.drawer-close { align-self: flex-end; margin-bottom: 0.75rem; }
.drawer-link {
  display: flex; align-items: center; gap: 0.375rem; min-height: 44px;
  padding: 0 0.75rem; border-radius: var(--radius-md); transition: background var(--ease), color var(--ease);
}
.drawer-link:hover, .drawer-link[aria-current="page"] { background: var(--raised); color: var(--text); }
.drawer-search { padding: 0 0 0.75rem; }
.drawer-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem 0; }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .menu-fab, .drawer { display: none; }
  .drawer:popover-open { display: none; }
}
@media (min-width: 1024px) {
  .header-search { display: block; width: 14rem; }
}

/* ─── Search ─── */
.search-box {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
  color: var(--text-3);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search-box:focus-within { border-color: oklch(0.685 0.255 332 / 0.6); box-shadow: 0 0 0 3px oklch(0.685 0.255 332 / 0.2); }
.search-box input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 0.875rem;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input::-webkit-search-cancel-button { filter: grayscale(1); }
.search-compact { padding: 0 0.75rem; gap: 0.5rem; }
.search-compact input { min-height: 38px; font-size: 0.8125rem; }

/* ─── Home ─── */
.hero { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.hero-eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-text); }
.hero h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.025em;
  font-size: 2.25rem; line-height: 1.11; color: var(--text);
}
.hero-sub { max-width: 28rem; font-size: 0.875rem; color: var(--text-3); }
.hero .search-box { max-width: 36rem; padding: 0.125rem 1rem; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; line-height: 1; } }

.home-section { margin-top: 4rem; }
.section-head { margin-bottom: 1.5rem; }
.home-section > .eyebrow { margin-bottom: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 0.875rem; color: var(--text-2);
  transition: border-color var(--ease), color var(--ease);
}
.chip:hover { border-color: var(--plasma-line); color: var(--text); }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.category-card {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel);
  transition: border-color var(--ease), transform var(--ease);
}
.category-card:hover { border-color: var(--plasma-line); transform: translateY(-2px); }
.category-card-head { display: flex; align-items: center; gap: 0.75rem; }
.category-card h3 { font-family: var(--display); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.category-card p { font-size: 0.875rem; line-height: 1.625; color: var(--text-3); }
.count { font-family: var(--mono); font-size: 0.875rem; font-weight: 400; color: var(--text-3); }

.icon-tile {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg);
  background: var(--raised); color: var(--accent-text);
}
.icon-tile-lg { width: 3rem; height: 3rem; }

/* ─── Breadcrumb ─── */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-3); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.breadcrumb a { transition: color var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current="page"] { color: var(--text); overflow-wrap: anywhere; }

/* ─── Page headings ─── */
.page-head { margin-top: 1.5rem; }
.page-head h1, .page-title { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.33; color: var(--text); }
.page-sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--text-3); }
.category-head { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }

/* ─── Row lists (category, release notes, search, FAQ) ─── */
.row-list { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.row-list.tight { margin-top: 2rem; }
.row-list > * + * { border-top: 1px solid var(--line); }
.row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; transition: background var(--ease);
}
.row-link:hover { background: var(--panel); }
.row-link h2, .row-link h3 { font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--text); }
.row-link .row-title-display { font-family: var(--display); font-weight: 600; }
.row-link p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--text-3); }
.row-link > .icon { color: var(--text-3); }
.row-meta { margin-top: 0.25rem; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.row-empty { padding: 2.5rem 1.5rem; text-align: center; font-size: 0.875rem; color: var(--text-3); }
.row-link mark { background: var(--plasma-soft); color: var(--text); border-radius: 2px; padding: 0 2px; }

/* FAQ accordion */
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 500; color: var(--text); transition: background var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--panel); }
.faq-item summary .icon { color: var(--text-3); transition: transform var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; font-size: 0.875rem; max-width: none; }
.faq-answer p { color: var(--text-2); }
.faq-answer > :last-child { margin-bottom: 0; }

/* ─── Article layout ─── */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 768px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .article-aside { position: sticky; top: 6rem; align-self: start; }
}
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav .eyebrow { margin-bottom: 0.5rem; padding: 0 0.75rem; }
.sidebar-link {
  display: flex; align-items: center; min-height: 40px; padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md); font-size: 0.875rem; color: var(--text-2);
  transition: background var(--ease), color var(--ease);
}
.sidebar-link:hover { background: var(--raised); color: var(--text); }
.sidebar-link[aria-current="page"] { background: oklch(0.685 0.255 332 / 0.1); color: var(--accent-text); font-weight: 500; }
.article-body { min-width: 0; }
.article-body .prose { margin-top: 2rem; }

/* ─── Prose ─── */
.prose { color: var(--text); line-height: 1.75; max-width: 72ch; overflow-wrap: break-word; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); margin-top: 2em; margin-bottom: 0.6em; line-height: 1.2;
}
.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; color: var(--text-2); }
.prose li { margin-bottom: 0.35em; }
.prose code {
  font-family: var(--mono); font-size: 0.875em;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 2px 6px; color: var(--accent-text);
}
.prose pre {
  background: var(--raised); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; overflow-x: auto; margin: 0 0 1.25em;
}
.prose pre code { background: transparent; border: 0; padding: 0; font-size: 0.875rem; color: var(--text-2); }
.prose blockquote {
  border-left: 3px solid var(--plasma-line); margin: 0 0 1em; padding: 10px 16px;
  background: var(--plasma-soft); border-radius: 0 8px 8px 0; color: var(--text-2); font-style: italic;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img {
  border-radius: 14px; border: 2px solid var(--plasma-line); background: var(--panel);
  padding: 10px; margin: 1.5em 0; cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--plasma-soft), 0 12px 32px -16px oklch(0 0 0 / 0.5);
}
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--plasma-line); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--plasma); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: 1.25em; font-size: 0.9em; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line-strong); text-align: left; }
.prose th { background: var(--raised); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose details { margin: 0 0 1em; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); }
.prose summary { cursor: pointer; font-weight: 500; color: var(--text); }

/* ─── Lightbox ─── */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px;
  border: 0; background: transparent; cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: oklch(0 0 0 / 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox-image {
  max-width: 92vw; max-height: 92vh; object-fit: contain; cursor: default;
  border-radius: 12px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 80px -16px oklch(0 0 0 / 0.6);
}
.lightbox-close {
  position: fixed; top: 24px; right: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text-2);
  transition: background var(--ease), color var(--ease);
}
.lightbox-close:hover { background: var(--plasma-soft); color: var(--accent-text); }

/* ─── Not found ─── */
.empty-state { padding: 6rem 1rem; text-align: center; color: var(--text-3); }
.empty-state .eyebrow { color: var(--accent-text); }
.empty-state h1 { margin: 0.75rem 0 1.5rem; font-family: var(--display); font-size: 3rem; font-weight: 600; color: var(--text); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: border-color var(--ease), color var(--ease);
}
.btn-outline:hover { border-color: var(--plasma-line); color: var(--accent-text); }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 6rem; }
.footer-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: var(--text-3); text-align: center; }
.footer-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.025em; }
@media (min-width: 640px) { .footer-row { flex-direction: row; } }
@media (min-width: 768px) { .site-footer { padding-bottom: 2.5rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .category-card:hover { transform: none; }
}

/* ─── Blog ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel); transition: border-color var(--ease), background var(--ease); }
.blog-card:hover { border-color: var(--plasma-line); background: var(--raised); }
.blog-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-cover-empty { background: linear-gradient(135deg, var(--panel), var(--raised)); }
.blog-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.25rem; }
.blog-card h2 { margin: 0; font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--text); }
.blog-card p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.875rem; color: var(--text-3); }
.blog-date { margin-top: auto; padding-top: 0.5rem; font-size: 0.75rem; color: var(--text-3); }
.blog-tag { align-self: flex-start; padding: 0.125rem 0.625rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-text); }
.blog-head { max-width: 48rem; margin: 1.5rem auto 0; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-head h1 { font-family: var(--display); font-size: 1.75rem; font-weight: 600; }
.blog-meta { font-size: 0.75rem; color: var(--text-3); }
.blog-hero { display: block; width: 100%; max-width: 64rem; margin: 2rem auto 0; border: 1px solid var(--line); border-radius: var(--radius-xl); }
.blog-body { max-width: 48rem; margin: 2rem auto 0; }
.blog-foot { max-width: 48rem; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-share { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--text-3); }
.blog-share a, .blog-share button { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-3); transition: color var(--ease); }
.blog-share a:hover, .blog-share button:hover { color: var(--text); }
.blog-back { align-self: flex-start; font-size: 0.875rem; color: var(--accent-text); }
.blog-related { margin-top: 3.5rem; }
.blog-related h2 { font-family: var(--display); font-size: 1.125rem; font-weight: 600; }
.blog-related .blog-grid { margin-top: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }

/* ─── Live search suggestions ─── */
.search-box { position: relative; }
.suggest { position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; z-index: 70; margin: 0; padding: 0.375rem; list-style: none; max-height: 22rem; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--panel); box-shadow: 0 16px 48px oklch(0 0 0 / 0.35); text-align: left; }
.search-compact .suggest { left: auto; right: 0; width: 24rem; max-width: 90vw; }
.suggest a { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-md); }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--raised); }
.suggest strong { font-weight: 500; color: var(--text); }
.suggest small { color: var(--text-3); font-size: 0.75rem; }
.suggest mark { border-radius: 2px; background: var(--plasma-soft); color: inherit; }
.suggest-empty { padding: 0.75rem; color: var(--text-3); font-size: 0.875rem; }
