:root {
  --bg: #F9FAFB;
  --band: #F0FDF4;
  --panel: #FFFFFF;
  --elev: #F3F4F6;
  --line: #D1D5DB;
  --ink: #111827;
  --muted: #4B5563;
  --acc: #047857;
  --acc-ink: #FFFFFF;
  --font-ui: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
  --font-serif: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body.sh {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
code, kbd, pre, textarea, input {
  font-family: var(--font-mono);
  font-feature-settings: "liga" 0, "calt" 0 !important;
}
a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.86; }
img, svg, canvas { max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  padding: 8px 14px; border-radius: 8px; background: var(--acc); color: var(--acc-ink); text-decoration: none;
}
.skip:focus { left: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* Header & Navigation */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: 1360px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em;
}
.hd-n { display: flex; align-items: center; gap: 6px; }
.dd { position: relative; }
.dd-t {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
}
.dd-t:hover, .dd.cur .dd-t { background: var(--elev); color: var(--acc); }
.dd-p {
  display: none; position: absolute; left: 0; top: 100%; padding-top: 6px; width: 320px; z-index: 80;
}
.dd:hover .dd-p, .dd:focus-within .dd-p { display: block; }
.dd-in {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12); display: grid; gap: 4px;
}
.dd-in a {
  display: block; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.dd-in a:hover, .dd-in a[aria-current="page"] { background: var(--band); }
.dd-in b { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.dd-in small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 1px; }

.hd-act { display: flex; align-items: center; gap: 10px; }
.hd-badge {
  padding: 5px 11px; border-radius: 999px; background: var(--band); border: 1px solid var(--line);
  color: var(--acc); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.thm-btn {
  padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--elev);
  color: var(--ink); font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 500; cursor: pointer;
}
.mnu { display: none; position: relative; }
.mnu summary {
  list-style: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--elev); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mnu summary::-webkit-details-marker { display: none; }
.mnu-p {
  position: absolute; right: 0; top: 46px; width: min(300px, calc(100vw - 32px));
  max-height: 76vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
  display: grid; gap: 4px;
}
.mnu-g { margin: 8px 6px 2px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.mnu-p a {
  padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500;
}
.mnu-p a:hover, .mnu-p a[aria-current="page"] { background: var(--band); color: var(--acc); }

/* Breadcrumbs & Page Headers */
.crumbs-w { padding-top: 14px; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: 0.5; }

.pg-h { padding: 36px 0 24px; background: var(--band); border-bottom: 1px solid var(--line); }
.pg-t { margin-top: 12px; max-width: 780px; }
.pg-t h1, .e404 h1 {
  margin: 0 0 10px; font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 500;
  line-height: 1.12; letter-spacing: -0.025em; color: var(--ink);
}
.sub { margin: 0; font-size: 1.05rem; color: var(--muted); }

/* Editorial & Technical Prose */
.prose-w { padding: 48px 0; border-top: 1px solid var(--line); }
.prose h2, .sec-hd h2 {
  margin: 40px 0 12px; font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 500;
  line-height: 1.18; letter-spacing: -0.02em; color: var(--ink);
}
.prose > h2:first-child, .sec-hd h2 { margin-top: 0; }
.prose h3 {
  margin: 26px 0 8px; font-size: 1.18rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.prose p, .prose li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; }
.prose li { margin-bottom: 6px; }
.prose code {
  padding: 2px 6px; border-radius: 6px; background: var(--elev); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.85em;
}
.prose pre {
  padding: 16px; border-radius: 14px; background: var(--elev); border: 1px solid var(--line);
  overflow-x: auto; font-size: 0.85rem; line-height: 1.55;
}
.prose pre code { padding: 0; border: 0; background: transparent; }

.tbl {
  margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.tbl table { width: 100%; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
.tbl thead tr { background: var(--band); border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th { color: var(--ink); font-weight: 600; }
.tbl td { color: var(--muted); }

/* FAQ & Connected Tools Sections */
.bd { padding: 52px 0; border-top: 1px solid var(--line); }
.bd-alt { background: var(--band); }
.sec-hd { margin-bottom: 24px; max-width: 760px; }
.sec-sub { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }

.faq-g {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start;
}
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ch { font-style: normal; font-family: var(--font-mono); color: var(--acc); font-size: 1.1rem; transition: transform 0.18s ease; }
.faq-item[open] .faq-ch { transform: rotate(45deg); }
.faq-a p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

.more-g { display: grid; gap: 16px; }
.more-g.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-g.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-c {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  text-decoration: none; color: var(--ink); transition: transform 0.18s ease;
}
.more-c:hover { transform: translateY(-3px); border-color: var(--acc); opacity: 1; }
.more-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.more-top strong { font-size: 1rem; font-weight: 600; color: var(--ink); }
.more-tag {
  padding: 3px 9px; border-radius: 999px; background: var(--band); border: 1px solid var(--line);
  color: var(--acc); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}
.more-c p { margin: 0 0 14px; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.more-go { font-size: 0.8125rem; font-weight: 600; color: var(--acc); }

/* 404 & Buttons */
.e404 { padding: 72px 0; }
.e404-g { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.e404-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-pri, .btn-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-pri { background: var(--acc); color: var(--acc-ink); border: 1px solid var(--acc); }
.btn-sec { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.e404-box {
  height: 200px; border-radius: 20px; background: var(--band); border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
}
.e404-tag { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; color: var(--acc); }

/* Footer */
.ft { background: #0F291E; color: #F9FAFB; padding: 52px 0 32px; }
.ft a { color: #F9FAFB; text-decoration: none; opacity: 0.86; }
.ft a:hover { opacity: 1; text-decoration: underline; }
.ft .logo span { color: #FFFFFF; }
.ft-g { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.ft-b p { color: #D1D5DB; font-size: 0.875rem; max-width: 340px; margin: 12px 0; }
.ft-mail a { font-family: var(--font-mono); font-size: 0.8125rem; color: #FFFFFF; }
.ft-n { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.ft-n b { font-size: 0.875rem; font-weight: 600; color: #FFFFFF; margin-bottom: 4px; }
.ft-c { padding-top: 22px; font-size: 0.8125rem; color: #D1D5DB; }

@media (max-width: 960px) {
  .hd-n, .hd-badge { display: none; }
  .mnu { display: block; }
  .more-g.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap, .wide, .hd-in { padding-left: 16px; padding-right: 16px; }
  .faq-g, .more-g.n6, .more-g.n4, .e404-g, .ft-g { grid-template-columns: minmax(0, 1fr); }
  .bd, .prose-w { padding: 36px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
