:root { --ink: #13233f; --mute: #6f7787; --cream: #fbf7f1; --sand: #f3ebdf; --line: #e9dfcf; --blue: #1fa5d6; }
* { box-sizing: border-box; margin: 0; }
body { font-family: "Manrope", system-ui, sans-serif; background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

.top { border-bottom: 1px solid var(--line); background: rgba(251,247,241,.9); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; text-decoration: none; }
.brand img { width: 26px; }
.back { font-weight: 700; font-size: 14px; color: var(--mute); text-decoration: none; }

.draft { background: #fff3c4; color: #6b5200; font-size: 14px; padding: 10px 0; }

main { padding: 64px 32px 90px; }
.kicker { font-weight: 700; color: var(--blue); font-size: 15px; }
h1 { font-family: "Bricolage Grotesque", sans-serif; font-size: 58px; letter-spacing: -.03em; line-height: 1; margin: 10px 0 12px; }
.updated { color: var(--mute); font-size: 14px; font-weight: 600; }
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 60px; margin-top: 50px; align-items: start; }
.toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { text-decoration: none; color: var(--mute); font-size: 14px; font-weight: 600; padding: 6px 0 6px 16px; line-height: 1.3; }

article { max-width: 720px; font-size: 16.5px; line-height: 1.65; }
article .summary { background: #fff; border-radius: 22px; padding: 24px 28px; margin-bottom: 40px; box-shadow: 0 20px 40px -32px rgba(13,33,64,.4); }
article .summary b.t { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; margin-bottom: 8px; }
article .summary ul { margin: 0; }
article h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 26px; letter-spacing: -.02em; margin: 40px 0 12px; line-height: 1.15; scroll-margin-top: 20px; }
article h3 { font-size: 17px; margin: 22px 0 6px; }
article p, article ul, article ol, article table { margin-bottom: 14px; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
article table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 15px; }
article th, article td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
article th { background: var(--sand); font-size: 13.5px; }
article tr:last-child td { border-bottom: 0; }
mark { background: #ffe58a; padding: 0 4px; border-radius: 4px; color: #4d3b00; }
.note { background: var(--sand); border-radius: 16px; padding: 16px 20px; font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: #fff; border-radius: 18px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }

footer { border-top: 1px solid var(--line); background: var(--sand); padding: 30px 0; font-size: 13px; color: var(--mute); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
footer .links a { text-decoration: none; }
footer .links a.on { color: var(--ink); }
footer .copy { margin-top: 14px; }

@media (max-width: 760px) {
  .wrap, main { padding-left: 18px; padding-right: 18px; }
  main { padding-top: 40px; }
  h1 { font-size: 38px; }
  .layout { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .toc a { background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; }
  article { font-size: 16px; }
  article table { font-size: 14px; }
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #13233f; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid #1fa5d6; outline-offset: 3px; border-radius: 6px; }
.brand-sub { font-weight: 500; color: var(--mute); }
footer .links a[aria-current] { color: var(--ink); }
