/* ryanhelp.com - public site styles. System fonts only (no third-party requests). */
:root {
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --border: #dbe3ee;
  --text: #0f1b2d;
  --muted: #55667d;
  --navy: #0b2545;
  --navy-2: #13315c;
  --accent: #1565c0;
  --accent-2: #0d8bd9;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 101, 192, 0.09);
  --link: #1565c0;
  --warm: #f59e0b;
  --ok: #148a55;
  --warn: #b7791f;
  --danger: #c53030;
  --code-bg: #0f1b2d;
  --code-text: #e6ecf5;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-2: #0f1828;
  --surface: #131e31;
  --surface-2: #1a2740;
  --border: #26354f;
  --text: #e6ecf5;
  --muted: #9aa9bf;
  --navy: #07101e;
  --navy-2: #0f1f38;
  --accent: #5aa9ff;
  --accent-2: #38c3ff;
  --accent-ink: #06121f;
  --accent-soft: rgba(90, 169, 255, 0.12);
  --link: #7dbbff;
  --ok: #3ccf8e;
  --warn: #f5c451;
  --danger: #ff6b6b;
  --code-bg: #070d18;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); margin-top: .2em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-weight: 750; }
h3 { font-size: 1.18rem; } h4 { font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
.icon { flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { margin: 0 0 .5em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---- Top bar + header -------------------------------------------------- */
.topbar { background: var(--navy); color: #c9d6e8; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #9fd3ff; }
.topbar-right { gap: 18px !important; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 10px; width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.site-nav a.nav-cta { color: var(--accent-ink); margin-left: 6px; padding: 9px 18px; }
.site-nav a.nav-cta:hover { background: var(--accent-2); color: var(--accent-ink); }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .brand-sub { display: none; }
  .nav-toggle-label { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-toggle-label span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px 18px; box-shadow: var(--shadow);
  }
  .site-nav a { padding: 12px; }
  .site-nav a.nav-cta { margin: 8px 0 0; justify-content: center; }
  .theme-toggle { margin: 10px auto 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---- Layout ------------------------------------------------------------- */
.main { flex: 1; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 700px) { .section { padding: 52px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { margin: 0 0 .35em; }
.section-head p { margin: 0; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head-row a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; align-items: start; }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(56, 195, 255, .28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(21, 101, 192, .45), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero .eyebrow { color: #8fd0ff; }
.hero-title { color: #fff; margin: 0 0 .35em; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; }
.hero-text { font-size: 1.18rem; color: #cfdcef; max-width: 58ch; margin: 0 0 1.6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.hero-note { display: flex; align-items: center; gap: 8px; color: #a9bdd8; font-size: .92rem; margin: 1.6em 0 0; }
.hero-art { position: relative; height: 340px; }
.hero-card {
  position: absolute; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  width: 250px; padding: 16px 18px; border-radius: 16px; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.hero-card svg { grid-row: span 2; color: #8fd0ff; }
.hero-card span { font-weight: 700; font-size: .98rem; }
.hero-card em { font-style: normal; font-size: .82rem; color: #7ee2b0; display: flex; align-items: center; gap: 6px; }
.hero-card em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 0 3px rgba(60,207,142,.25); }
.hc-1 { top: 0; left: 8%; }
.hc-2 { top: 86px; right: 0; }
.hc-3 { top: 176px; left: 0; }
.hc-4 { top: 262px; right: 10%; }
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 60px; gap: 32px; }
  .hero-art { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-card { position: static; width: auto; }
}
@media (max-width: 480px) { .hero-art { grid-template-columns: 1fr; } .hc-3, .hc-4 { display: none; } }

.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 56px 0 44px; }
.page-hero h1 { margin: 0 0 .25em; }
.page-hero .lead { margin: 0; max-width: 68ch; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--accent); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e8f3ff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
button[disabled] { opacity: .7; cursor: progress; }

/* ---- Services ------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }
.service-card h3 { margin: 12px 0 2px; }
.service-card p { margin: 0 0 10px; font-size: .97rem; }
.service-more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .92rem; }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.service-icon-lg { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 8px; }
.service-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}

/* ---- Why / steps ------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.why h3 { margin: 14px 0 6px; }
.why p { margin: 0; font-size: .97rem; }
.why-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--accent); box-shadow: var(--shadow-sm); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.steps h3 { margin: 12px 0 6px; }
.steps p { margin: 0; font-size: .97rem; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #0b4f9c 100%); color: #fff; padding: 56px 0; }
:root[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #123a6b 0%, #0b2545 100%); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #dbe9fb; max-width: 60ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Cards (tips) ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.card.is-pinned { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.card-media { display: block; text-decoration: none; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%;
  color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%), linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-title { margin: 0; font-size: 1.14rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-summary { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); text-decoration: none;
}
a.badge:hover { color: var(--accent); border-color: var(--accent); }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---- Sidebar & panels ---------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 94px; }
@media (max-width: 920px) { .sidebar { position: static; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel-pad { padding: 28px; }
@media (max-width: 600px) { .panel-pad { padding: 20px; } }
.panel-accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }
.panel-title { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.panel p { margin-top: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.cat-list a:hover, .cat-list a[aria-current="page"] { background: var(--surface-2); color: var(--accent); }
.count { color: var(--muted); font-size: .85rem; }
.side-search input { width: 100%; }

/* ---- Forms ------------------------------------------------------------- */
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-size: 1rem; font-weight: 400;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; min-height: 140px; }
.form label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.req { color: var(--danger); }
.pref { border: 0; padding: 0; margin: 0 0 20px; }
.pref legend { font-weight: 650; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.form .radio { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 8px 0; font-weight: 500; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot p { margin: 0; flex: 1; min-width: 200px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 920px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side > p { margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { color: var(--accent); margin-top: 3px; }
.tick-list { margin: 0; padding-left: 1.2em; }
.tick-list li { margin: .3em 0; }
.sent { text-align: center; padding: 28px 8px; }
.sent h2 { margin: 12px 0 8px; }
.sent-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

/* ---- Article ------------------------------------------------------------- */
.article { max-width: 780px; margin: 0 auto; padding: 48px 0 64px; }
.article-head { margin-bottom: 28px; }
.article-head h1 { margin: .2em 0 .3em; }
.crumbs a { font-weight: 600; text-decoration: none; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1em; }
.cover { margin: 0 0 28px; }
.cover img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.article-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.prose { font-size: 1.06rem; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose img { border-radius: 10px; border: 1px solid var(--border); display: block; margin: 1.2em auto; }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--accent-soft); margin-left: 0; padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose code {
  font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border);
  padding: .1em .4em; border-radius: 6px;
}
.code-wrap { position: relative; margin: 0 0 1.15em; }
.code-wrap pre { margin: 0; }
.prose pre {
  font-family: var(--mono); font-size: .9rem; line-height: 1.55; background: var(--code-bg); color: var(--code-text);
  border-radius: 10px; padding: 16px 18px; overflow-x: auto; white-space: pre; tab-size: 4;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px; font: 600 .75rem var(--font); border-radius: 7px;
  background: rgba(255,255,255,.1); color: #cfdcef; border: 1px solid rgba(255,255,255,.2); cursor: pointer;
}
.copy-btn:hover { color: #fff; border-color: #fff; }
.copy-btn.ok { color: #7ee2b0; border-color: #7ee2b0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose iframe, .prose .ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; margin: 1.2em 0; background: #000; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; } .prose .ql-indent-2 { padding-left: 6em; } .prose .ql-indent-3 { padding-left: 9em; }
.prose .ql-indent-4 { padding-left: 12em; } .prose .ql-indent-5 { padding-left: 15em; }
.prose .callout { padding: 14px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.prose .callout-tip { border-color: var(--ok); } .prose .callout-warn { border-color: var(--warn); }
.prose mark { background: color-mix(in srgb, var(--warm) 30%, transparent); color: inherit; padding: 0 .2em; border-radius: 3px; }
.prose kbd { font-family: var(--mono); font-size: .82em; padding: .1em .45em; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 5px; background: var(--surface-2); }

/* ---- Lists, search, alerts ----------------------------------------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.search-big { display: flex; gap: 10px; max-width: 640px; margin-top: 18px; }
.search-big input { flex: 1; margin: 0; }
.result-list { list-style: none; padding: 0; margin: 16px 0; max-width: 820px; }
.result-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.result-title { font-weight: 700; font-size: 1.12rem; margin-right: 8px; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 0 0 22px; border: 1px solid var(--border); background: var(--surface); }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.container > .alert:first-child { margin-top: 24px; }
.alert-warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.alert-error { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.notfound { text-align: center; padding: 80px 16px; }
.notfound-code { font-size: 6rem; font-weight: 900; margin: 0; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.notfound p.muted { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c2cfe2; padding: 56px 0 22px; }
.site-footer a { color: #e3ebf6; text-decoration: none; }
.site-footer a:hover { color: #8fd0ff; }
.site-footer .muted { color: #9fb0c8; }
.site-footer .brand { color: #fff; margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { max-width: 36ch; }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .13em; margin: 4px 0 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .94rem; }
.footer-list li { margin: 0 0 9px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { margin-top: 4px; color: #8fd0ff; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; }
.copyright { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8597b0 !important; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .topbar, .site-footer, .cta-band, .sidebar, .copy-btn { display: none !important; } body { font-size: 12pt; } }
