/* PalmMate — base design system (shared by SPA and content pages)
   Fonts are loaded via <link> in each HTML <head> (no @import):
   Sora (display) + DM Sans (body); Pretendard for ko, Noto Sans JP for ja. */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #07080f;
  --bg-2: #0b0c1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #11132a;
  --bg-card: var(--surface);
  --bg-elevated: var(--surface-2);
  --bg-glass: rgba(14, 16, 36, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(167, 139, 250, 0.45);

  /* Text */
  --text: #eef0ff;
  --text-muted: #a3a8c3;
  --text-dim: #7d83a3; /* ≥4.5:1 on --bg */

  /* Brand */
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --indigo-soft: #a5b4fc;
  --cyan: #22d3ee;
  --gold: #f5c46b;
  --gold-dim: rgba(245, 196, 107, 0.14);
  --gold-glow: rgba(245, 196, 107, 0.35);
  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --accent-dim: rgba(139, 92, 246, 0.16);
  --accent-glow: rgba(139, 92, 246, 0.45);
  --accent-dark: #6d28d9;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-text: linear-gradient(120deg, #c4b5fd 0%, #a5b4fc 40%, #67e8f9 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.1));
  --danger: #fb7185;
  --success: #34d399;

  /* Five elements */
  --wood: #4ade80;
  --fire: #fb7185;
  --earth: #fbbf24;
  --metal: #cbd5e1;
  --water: #60a5fa;

  /* Type */
  --font-sans: "DM Sans", "Pretendard", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", "Pretendard", "Noto Sans JP", "DM Sans", -apple-system, sans-serif;
  --font-serif: var(--font-display); /* legacy alias */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: clamp(2.1rem, 6vw, 3.25rem);

  /* Space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Shape */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 12px 40px rgba(99, 102, 241, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 150ms;
  --dur-2: 280ms;
  --dur-3: 600ms;

  /* Layers */
  --z-bg: 0;
  --z-content: 1;
  --z-header: 50;
  --z-overlay: 100;
  --z-toast: 200;

  --container: 560px;
  --container-wide: 960px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(34, 211, 238, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="ko"] body { word-break: keep-all; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--indigo-soft); text-decoration: none; }
a:hover { color: #c7d2fe; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 var(--sp-3); }
p { margin: 0 0 var(--sp-4); }
::selection { background: rgba(139, 92, 246, 0.4); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-5); }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-soft);
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 12px var(--sp-5);
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.site-logo img { width: 30px; height: 30px; }
.site-logo span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-logo span b { font-weight: 600; color: var(--indigo-soft); }
.site-logo:hover { color: var(--text); opacity: 0.9; }
.site-header-actions { display: flex; align-items: center; gap: var(--sp-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: var(--text-base); font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.6), 0 16px 48px rgba(99, 102, 241, 0.5); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-light); }
.btn-secondary:hover { color: var(--text); border-color: var(--border-strong); background: rgba(139, 92, 246, 0.12); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: var(--text-lg); padding: 14px 28px; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: var(--text-sm); }

/* ---------- Cards / chips ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card-glow { border-color: var(--border-strong); box-shadow: var(--shadow-glow); background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.03)); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--text); white-space: nowrap;
}
.chip-accent { background: var(--accent-dim); border-color: rgba(167, 139, 250, 0.35); color: #ddd6fe; }
.chip-gold { background: var(--gold-dim); border-color: rgba(245, 196, 107, 0.35); color: var(--gold); }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }
.input, .select, select.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  color: var(--text); font-size: var(--text-base);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.input:focus, .select:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.input::placeholder { color: var(--text-dim); }
select.input, .select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a3a8c3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select option { background: var(--surface-solid); color: var(--text); }

/* ---------- Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.4s linear infinite;
  border-radius: var(--radius-sm);
}
@keyframes pm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Site footer ---------- */
.site-footer {
  margin-top: var(--sp-8);
  padding: var(--sp-6) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: var(--text-sm);
}
.site-footer .footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); margin-bottom: var(--sp-3); }
.site-footer .footer-brand img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: var(--sp-3); }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; color: var(--text-dim); font-size: var(--text-xs); }

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

/* ===================================================================
   Content pages (.article) — owned by content-pages work
   =================================================================== */

/* ---------- Language switch (header) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 30px; padding: 0 8px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; color: var(--text-dim);
  transition: color var(--dur-1), background var(--dur-2) var(--ease);
}
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch a[aria-current="page"] { color: var(--text); background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.4); }

/* ---------- Long-form layout ---------- */
.article {
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-7);
  font-size: 1.0625rem; line-height: 1.75;
  overflow-wrap: break-word;
}
html[lang="ja"] .article, html[lang="ko"] .article { line-height: 1.85; }
.article > :first-child { margin-top: 0; }

.breadcrumbs { margin: 0 0 var(--sp-4); font-size: var(--text-sm); color: var(--text-dim); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-dim); font-size: inherit; line-height: 1.4; }
.breadcrumbs li + li::before { content: "›"; color: var(--text-dim); opacity: 0.7; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: var(--text-muted); }

.article h1 {
  font-size: clamp(1.75rem, 5.2vw, 2.5rem); line-height: 1.18; letter-spacing: -0.025em;
  margin: 0 0 var(--sp-5); color: var(--text); text-wrap: balance;
}
.article h2 {
  position: relative;
  font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.3;
  margin: var(--sp-7) 0 var(--sp-4); padding-top: var(--sp-4);
  color: var(--text); text-wrap: balance;
}
.article h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 36px; height: 3px; border-radius: 3px; background: var(--grad);
}
.article h3 {
  font-size: var(--text-lg); line-height: 1.4; letter-spacing: -0.01em;
  margin: var(--sp-6) 0 var(--sp-3); color: var(--indigo-soft);
}
.article p, .article li { color: var(--text-muted); }
.article p { margin: 0 0 var(--sp-4); }
.article strong, .article b { color: var(--text); font-weight: 600; }
.article em { color: var(--text); }
.article a:not(.btn) { color: var(--indigo-soft); text-decoration: underline; text-decoration-color: rgba(165, 180, 252, 0.35); text-underline-offset: 3px; }
.article a:not(.btn):hover { color: var(--text); text-decoration-color: var(--cyan); }
.article ul, .article ol { margin: 0 0 var(--sp-5); padding-left: 1.4em; }
.article li { margin: 0 0 var(--sp-2); padding-left: 4px; }
.article li::marker { color: var(--violet-soft); }
.article ol li::marker { font-weight: 600; font-size: 0.95em; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em;
  padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.article hr { border: 0; height: 1px; background: var(--border); margin: var(--sp-7) 0; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-5); font-size: var(--text-sm); }
.article th, .article td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.article th { color: var(--text); font-weight: 600; background: var(--surface); }
.article td { color: var(--text-muted); }

/* Lead + notes */
.article .lede { font-size: 1.125rem; color: var(--text); }
.article .note { font-size: var(--text-sm); color: var(--text-dim); font-style: italic; }
.article .updated { font-size: var(--text-sm); color: var(--text-dim); margin: calc(var(--sp-4) * -1) 0 var(--sp-6); }

/* Callout */
.article .highlight {
  margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5);
  background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, 0.22); border-left: 3px solid var(--violet-soft);
  border-radius: var(--radius-xs) var(--radius-sm) var(--radius-sm) var(--radius-xs);
  color: var(--text-muted);
}
.article .highlight > :last-child { margin-bottom: 0; }

/* Diagram figure (reserved aspect ratio = no layout shift; glass frame doubles as loading skeleton) */
.article-figure { margin: 0 auto var(--sp-6); max-width: 380px; }
.article-figure .diagram-frame {
  position: relative; aspect-ratio: 8 / 11; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.article-figure .diagram-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--surface-2) 50%, transparent 100%);
  background-size: 200% 100%; animation: pm-shimmer 1.4s linear infinite; opacity: 0.6;
}
.article-figure img { position: relative; z-index: var(--z-content); width: 100%; height: 100%; object-fit: contain; }
.article-figure figcaption { margin-top: var(--sp-3); text-align: center; font-size: var(--text-sm); color: var(--text-dim); line-height: 1.5; }

/* CTA */
.cta-box {
  position: relative; margin: var(--sp-7) 0; padding: var(--sp-6) var(--sp-5);
  text-align: center; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.06), var(--surface));
}
.article .cta-box h2, .article .cta-box h3 { margin: 0 0 var(--sp-2); padding: 0; font-size: var(--text-xl); color: var(--text); }
.article .cta-box h2::before { display: none; }
.article .cta-box p { margin: 0 auto var(--sp-5); max-width: 46ch; font-size: var(--text-base); color: var(--text-muted); }
.cta-box .cta-eyebrow { display: inline-flex; margin-bottom: var(--sp-2); }
.cta-box .btn { min-width: 220px; }
.cta-box .cta-sub { display: block; margin-top: var(--sp-3); font-size: var(--text-xs); color: var(--text-dim); }

.cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  border-radius: var(--radius); border: 1px solid rgba(167, 139, 250, 0.3);
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.06));
}
.article .cta-inline p { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--text); }
.article .cta-inline p span { display: block; color: var(--text-muted); }
.cta-inline .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .cta-inline { flex-direction: column; align-items: stretch; text-align: center; padding: var(--sp-4); }
}

/* FAQ */
.faq { margin-top: var(--sp-7); }
.faq-item {
  margin: 0 0 var(--sp-3); padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.article .faq-q { margin: 0 0 var(--sp-2); font-weight: 600; color: var(--text); line-height: 1.5; }
.article .faq-a { margin: 0; color: var(--text-muted); }

/* Related */
.related-articles { margin-top: var(--sp-7); padding-top: var(--sp-2); }
.article .related-articles ul { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .article .related-articles ul { grid-template-columns: 1fr 1fr; } }
.article .related-articles li { margin: 0; padding: 0; }
.article .related-articles a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 100%;
  padding: 14px var(--sp-4); border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: var(--text-sm); font-weight: 500; line-height: 1.45;
  transition: border-color var(--dur-2), background var(--dur-2);
}
.article .related-articles a::after { content: "→"; color: var(--violet-soft); flex-shrink: 0; }
.article .related-articles a:hover { border-color: var(--border-strong); background: var(--accent-dim); color: var(--text); }
.related-articles .link-icon { display: none; }

/* About page */
.about-hero { text-align: center; margin: var(--sp-2) 0 var(--sp-6); }
.about-hero .hero-visual {
  width: 100%; max-width: 480px; aspect-ratio: 3 / 2; margin: 0 auto var(--sp-5);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card);
  background: var(--surface-2);
}
.about-hero .hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-hero .hero-mark { width: 56px; height: 56px; margin: 0 auto var(--sp-3); }
.article .about-hero h1 { margin-bottom: var(--sp-2); }
.article .tagline { font-size: var(--text-lg); color: var(--text); margin: 0 auto; max-width: 34ch; }
.features { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: var(--sp-3);
  border-radius: 10px; background: var(--accent-dim); color: var(--violet-soft);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.article .feature p { margin: 0; font-size: var(--text-sm); }
.about-cta { margin: var(--sp-6) 0; text-align: center; }
.contact-box { margin-top: var(--sp-6); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.article .contact-box h2, .article .contact-box h3 { margin: 0 0 var(--sp-2); padding: 0; font-size: var(--text-lg); }
.article .contact-box h2::before { display: none; }
.article .contact-box p:last-child { margin-bottom: 0; }

/* 404 */
.error-page {
  min-height: calc(100dvh - 260px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 460px; margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-6); text-align: center;
}
.error-page .error-mark { position: relative; width: 96px; height: 96px; margin-bottom: var(--sp-5); }
.error-page .error-mark img { width: 96px; height: 96px; opacity: 0.95; }
.error-page .error-mark::before {
  content: ""; position: absolute; inset: -24px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent);
}
.error-page .error-code { font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: 0.3em; margin-bottom: var(--sp-3); }
.error-page h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: var(--sp-3); }
.error-page p { color: var(--text-muted); margin-bottom: var(--sp-6); }
.error-page .error-actions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); width: 100%; }
.error-page .error-actions .btn { min-width: 240px; }

@media (min-width: 768px) {
  .article { padding: var(--sp-7) var(--sp-6) var(--sp-8); }
}
@media (max-width: 380px) {
  .lang-switch a { min-width: 30px; padding: 0 6px; }
}
.article .breadcrumbs a { text-decoration: none; }
.article .breadcrumbs ol { padding: 0; margin: 0; }
.article .breadcrumbs li { padding: 0; margin: 0; }
