:root {
  --ink: #1b1f3b; --ink-soft: #484d6b; --muted: #767a94; --bg: #fbfaf7; --card: #fff;
  --line: #e7e4dc; --accent: #e8792b; --accent-2: #f2994a; --green: #1f7a4d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.025em; }
.logo img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 19px; border-radius: 9px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); }
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-primary:hover { background: #2a2f57; }
.nav-links .btn { padding: 8px 15px; font-size: 14px; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 40px 0 88px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.answer { font-size: 18.5px; color: var(--ink); margin: 0 0 32px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px; }
article h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.2; margin: 44px 0 12px; letter-spacing: -0.01em; }
article h3 { font-size: 17px; margin: 26px 0 6px; }
article p, article li { color: var(--ink-soft); font-size: 16.5px; }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }
article li::marker { color: var(--accent); }
article a { color: var(--accent); font-weight: 500; }
article strong { color: var(--ink); }
.code { background: var(--ink); color: #e6e7f2; border-radius: 10px; padding: 16px 18px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-x: auto; }
.code .k { color: #f6b27a; }
.facts { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; background: var(--bg); }
.facts dd { color: var(--ink-soft); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
table.t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15.5px; }
table.t th, table.t td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.t th { background: var(--bg); font-weight: 600; }
table.t td { color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 4px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 16.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; }

aside.side { position: sticky; top: 96px; align-self: start; display: grid; gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; font-size: 15px; }
.box h2 { font-size: 15px; margin: 0 0 10px; font-family: Inter, sans-serif; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.box a { text-decoration: none; color: var(--ink-soft); }
.box a:hover, .box a[aria-current="page"] { color: var(--accent); }
.box p { margin: 0 0 14px; color: var(--ink-soft); }
.cta { margin-top: 48px; padding: 28px; border-radius: 14px; background: var(--ink); color: #fff; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #c9cbe0; margin: 0 0 18px; }
.cta .btn { background: #fff; color: var(--ink) !important; border-color: #fff; }

footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .logo { font-size: 16px; color: var(--ink); }
footer .logo img { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 32px; }
  aside.side { position: static; }
  .nav-links a:not(.btn) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
