:root {
  --ink: #10233f;
  --ink-2: #243b5a;
  --muted: #5d6f86;
  --blue: #155eef;
  --blue-dark: #1047b8;
  --blue-soft: #eef4ff;
  --gold: #f6b73c;
  --green: #16794b;
  --green-soft: #ecf8f2;
  --red: #b42318;
  --red-soft: #fff1f0;
  --line: #dce5f0;
  --paper: #ffffff;
  --wash: #f6f9fc;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(16, 35, 63, .09);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(21, 94, 239, .35); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-180%); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 9px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { width: min(var(--max), calc(100% - 36px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(140deg, var(--blue), #6d5ce7); box-shadow: 0 7px 18px rgba(21,94,239,.25); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav-links .nav-cta { color: #fff; background: var(--blue); padding: 9px 15px; border-radius: 11px; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 8px 11px; font-weight: 750; }

.hero { overflow: hidden; background: radial-gradient(circle at 82% 18%, rgba(109,92,231,.16), transparent 32%), linear-gradient(180deg, #f7faff, #fff); border-bottom: 1px solid var(--line); }
.hero-grid { width: min(var(--max), calc(100% - 36px)); margin: auto; padding: 82px 0 74px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 11px; border: 1px solid #cddcff; border-radius: 999px; color: var(--blue-dark); background: var(--blue-soft); font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.032em; }
h1 { max-width: 870px; margin: 0 0 22px; font-size: clamp(2.45rem, 6vw, 4.45rem); }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { margin: 54px 0 16px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { margin: 32px 0 10px; font-size: 1.25rem; }
.lede { max-width: 780px; margin: 0 0 28px; color: var(--ink-2); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(21,94,239,.22); }
.button-primary:hover { color: #fff; background: var(--blue-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.trust-line { margin: 18px 0 0; color: var(--muted); font-size: .86rem; }
.deadline-card { position: relative; padding: 30px; color: #fff; background: var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.deadline-card::before { content: ""; position: absolute; width: 80px; height: 80px; top: -18px; right: -16px; border-radius: 50%; background: rgba(246,183,60,.85); }
.deadline-label { color: #bcd0f1; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.deadline-number { margin: 8px 0 2px; font-size: 4.2rem; font-weight: 900; line-height: 1; }
.deadline-card p { margin: 10px 0 0; color: #e4ecf8; }

.page { width: min(var(--max), calc(100% - 36px)); margin: auto; padding: 68px 0 80px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 1fr); align-items: start; gap: 64px; }
.article { min-width: 0; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 1.35rem; }
.article li + li { margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 28px; color: var(--muted); font-size: .88rem; }
.answer-box { margin: 28px 0; padding: 24px 26px; border: 1px solid #bfd0fa; border-left: 5px solid var(--blue); border-radius: 14px; background: var(--blue-soft); }
.answer-box strong { display: block; margin-bottom: 4px; color: var(--blue-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.answer-box p { margin: 0; color: var(--ink); font-size: 1.08rem; }
.notice { margin: 28px 0; padding: 20px 22px; border-radius: 14px; }
.notice-warning { border: 1px solid #f1cd82; background: #fff8e7; }
.notice-danger { border: 1px solid #f1b8b3; background: var(--red-soft); }
.notice-success { border: 1px solid #a7d9c1; background: var(--green-soft); }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.source-note { margin: 22px 0; padding: 16px 18px; border-left: 3px solid var(--green); background: var(--green-soft); color: #164e36; font-size: .92rem; }
.source-note a { color: #0d633b; font-weight: 750; }
.toc, .sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.toc strong, .sidebar-card h2 { display: block; margin: 0 0 12px; font-size: 1rem; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li + li { margin-top: 5px; }
.toc a { color: var(--ink-2); font-size: .92rem; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.sidebar-card p { margin: 0 0 15px; color: var(--muted); font-size: .9rem; }
.sidebar-card .button { width: 100%; font-size: .9rem; }
.sidebar-card .button + .button { margin-top: 9px; }

.timeline { display: grid; gap: 14px; margin: 28px 0; counter-reset: steps; }
.timeline-step { position: relative; padding: 19px 20px 19px 66px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.timeline-step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 850; }
.timeline-step strong { display: block; margin-bottom: 2px; }
.timeline-step p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--ink); color: #fff; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

.section-wash { background: var(--wash); border-block: 1px solid var(--line); }
.section-inner { width: min(var(--max), calc(100% - 36px)); margin: auto; padding: 70px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(16,35,63,.05); }
.guide-card .tag { align-self: flex-start; color: var(--blue-dark); background: var(--blue-soft); padding: 4px 8px; border-radius: 8px; font-size: .73rem; font-weight: 850; text-transform: uppercase; }
.guide-card h3 { margin: 16px 0 10px; }
.guide-card p { flex: 1; margin: 0 0 16px; color: var(--muted); }
.guide-card a { font-weight: 800; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.principle { padding: 24px; border-top: 4px solid var(--blue); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.principle h3 { margin-top: 0; }
.principle p { margin-bottom: 0; color: var(--muted); }
.principle .tag { display: inline-block; margin-bottom: 14px; padding: 4px 8px; border-radius: 8px; color: var(--blue-dark); background: var(--blue-soft); font-size: .73rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.principle .tag + h3 { margin-top: 0; }
.principle a { display: inline-block; margin-top: 16px; font-weight: 800; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 19px 4px; cursor: pointer; font-weight: 800; list-style-position: outside; }
.faq details p { margin: -2px 4px 20px; color: var(--ink-2); }
.author-box { display: grid; grid-template-columns: 68px 1fr; gap: 18px; margin-top: 54px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.author-avatar { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, var(--blue), #6d5ce7); font-size: 1.35rem; font-weight: 900; }
.author-box h2 { margin: 0 0 4px; font-size: 1.2rem; }
.author-box p { margin: 0; font-size: .93rem; }
.cta-panel { margin-top: 58px; padding: 38px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--ink), #173e79); }
.cta-panel h2 { margin-top: 0; }
.cta-panel p { color: #dce8fa; }

.breadcrumbs { margin: 0 0 28px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--muted); }
.site-footer { background: #0b1b31; color: #dce6f5; }
.footer-grid { width: min(var(--max), calc(100% - 36px)); margin: auto; padding: 48px 0 30px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 42px; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 1.02rem; letter-spacing: 0; }
.site-footer p { max-width: 480px; color: #aebdd2; font-size: .88rem; }
.site-footer nav { display: grid; gap: 8px; }
.site-footer a { color: #dce6f5; font-size: .88rem; }
.footer-bottom { width: min(var(--max), calc(100% - 36px)); margin: auto; padding: 20px 0 28px; border-top: 1px solid #29405f; color: #93a6bf; font-size: .78rem; }

@media (max-width: 880px) {
  .menu-button { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 71px; left: 0; right: 0; padding: 20px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links[data-open="true"] { display: flex; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 60px; gap: 34px; }
  .deadline-card { max-width: 460px; }
  .article-layout { grid-template-columns: 1fr; gap: 38px; }
  .sidebar { position: static; }
  .card-grid, .principles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .nav-wrap, .page, .section-inner, .hero-grid, .footer-grid, .footer-bottom { width: min(100% - 24px, var(--max)); }
  .brand span:last-child { max-width: 180px; line-height: 1.1; }
  h1 { font-size: 2.35rem; }
  .hero-grid { padding: 44px 0 52px; }
  .page, .section-inner { padding-top: 48px; padding-bottom: 54px; }
  .card-grid, .principles, .footer-grid { grid-template-columns: 1fr; }
  .answer-box, .cta-panel { padding: 21px; }
  .hero-actions .button, .cta-row .button { width: 100%; }
  .author-box { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .sidebar, .hero-actions, .cta-panel, .site-footer { display: none !important; }
  body { font-size: 12pt; }
  .article-layout { display: block; }
  a { color: inherit; }
}
