@font-face {
    font-family: 'League Spartan';
    src: url('fonts/LeagueSpartan-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --ink: #20111a;
    --ink-soft: #513844;
    --muted: #795f6b;
    --cream: #f1e9e7;
    --cream-light: #fbf6f4;
    --paper: #fff;
    --line: #e4d7d4;
    --pink: #ec287b;
    --pink-dark: #a80f54;
    --pink-soft: #fde3ee;
    --orange: #ff8544;
    --orange-soft: #ffe4d1;
    --magenta: #9b1649;
    --green: #277b56;
    --green-soft: #e0f5ea;
    --blue: #315fae;
    --blue-soft: #e3ebfb;
    --accent: var(--pink);
    --accent-dark: var(--pink-dark);
    --accent-soft: var(--pink-soft);
    --shadow-sm: 0 8px 24px rgba(62, 28, 43, .08);
    --shadow-lg: 0 24px 70px rgba(62, 28, 43, .13);
    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 34px;
    --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream-light);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
body.accent-supporter { --accent: #ec287b; --accent-dark: #a80f54; --accent-soft: #fde3ee; }
body.accent-family { --accent: #f2691e; --accent-dark: #873007; --accent-soft: #ffe4d1; }
body.accent-help { --accent: #9b1649; --accent-dark: #6e0f34; --accent-soft: #f5dfe8; }
a { color: var(--accent-dark); text-underline-offset: .18em; text-decoration-thickness: .09em; }
a:hover { text-decoration-thickness: .14em; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 5px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-150%); border-radius: 8px; color: white; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 90; top: 0; right: 0; left: 0; height: 4px; background: rgba(255,255,255,.5); }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--orange), var(--pink), var(--magenta)); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(228,215,212,.82); background: rgba(255,255,255,.94); box-shadow: 0 4px 18px rgba(32,17,26,.035); }
.header-inner { display: flex; width: min(calc(100% - 40px), var(--content)); min-height: 78px; margin: auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { width: 166px; height: auto; display: block; }
.main-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 4px; }
.main-nav a { padding: 9px 11px; border-radius: 9px; color: var(--ink-soft); font-family: 'League Spartan', sans-serif; font-size: .9rem; font-weight: 680; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: var(--cream-light); color: var(--ink); }
.main-nav a[aria-current='page'] { color: var(--accent-dark); background: var(--accent-soft); }
.header-action { display: inline-flex; min-height: 42px; padding: 0 16px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font-family: 'League Spartan', sans-serif; font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-action:hover { border-color: #cdbab6; box-shadow: var(--shadow-sm); }

.doc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--cream); }
.doc-hero::before, .doc-hero::after { position: absolute; content: ''; border-radius: 999px; filter: blur(.1px); opacity: .72; }
.doc-hero::before { width: 430px; height: 430px; top: -260px; right: -90px; background: var(--accent-soft); }
.doc-hero::after { width: 210px; height: 210px; bottom: -140px; left: 7%; background: var(--orange-soft); }
.hero-inner { position: relative; z-index: 1; width: min(calc(100% - 40px), var(--content)); margin: auto; padding: 28px 0 48px; }
.breadcrumbs { display: flex; min-height: 28px; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 760px) 250px; min-height: 235px; align-items: center; justify-content: space-between; gap: 50px; }
.eyebrow { margin: 0 0 9px; color: var(--accent-dark); font-family: 'League Spartan', sans-serif; font-size: .82rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.hero-copy h1 { max-width: 780px; margin: 0; font-family: 'League Spartan', sans-serif; font-size: clamp(2.75rem, 6vw, 4.9rem); font-weight: 760; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
.hero-lead { max-width: 720px; margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.27rem); line-height: 1.55; text-wrap: pretty; }
.hero-mascot { position: relative; display: grid; height: 245px; place-items: end center; }
.hero-mascot span { position: absolute; width: 210px; height: 210px; bottom: 0; border-radius: 46% 54% 61% 39% / 52% 38% 62% 48%; background: white; box-shadow: var(--shadow-lg); transform: rotate(-7deg); }
.hero-mascot img { position: relative; z-index: 1; width: auto; max-height: 235px; object-fit: contain; filter: drop-shadow(0 13px 18px rgba(32,17,26,.11)); }

.content-shell { display: grid; width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 62px 0 90px; grid-template-columns: 230px minmax(0, 820px); justify-content: space-between; gap: 72px; }
.toc { position: sticky; top: 108px; align-self: start; border-top: 3px solid var(--accent); padding-top: 17px; }
.toc > p { margin: 0 0 9px; font-family: 'League Spartan', sans-serif; font-size: .76rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.toc nav { display: grid; gap: 2px; }
.toc nav a { position: relative; padding: 7px 9px 7px 14px; border-radius: 7px; color: var(--muted); font-size: .87rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.toc nav a::before { position: absolute; width: 5px; height: 5px; top: 15px; left: 2px; border-radius: 50%; background: var(--line); content: ''; }
.toc nav a:hover, .toc nav a[aria-current='true'] { color: var(--accent-dark); background: var(--accent-soft); }
.toc nav a[aria-current='true']::before { background: var(--accent); }
.toc-help { display: grid; margin-top: 22px; padding: 13px 15px; border-radius: 11px; color: var(--ink-soft); background: var(--cream); font-size: .82rem; text-decoration: none; }
.toc-help span { color: var(--accent-dark); font-weight: 800; }
.article-content { min-width: 0; }
.article-content > p:first-child { margin-top: 0; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.6; }
.article-content h2 { margin: 62px 0 15px; scroll-margin-top: 110px; font-family: 'League Spartan', sans-serif; font-size: clamp(1.8rem, 4vw, 2.45rem); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.article-content h3 { margin: 28px 0 8px; font-family: 'League Spartan', sans-serif; font-size: 1.35rem; line-height: 1.2; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content li { margin: 7px 0; padding-left: .18em; }
.article-content strong { font-weight: 800; }

.intro-panel { display: grid; margin-bottom: 44px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); gap: 26px; }
.intro-panel h2 { margin: 0; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.role-card { position: relative; display: flex; min-height: 270px; overflow: hidden; padding: 29px; flex-direction: column; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.role-card.supporter { background: linear-gradient(145deg, #fff 0 43%, var(--pink-soft) 100%); border: 1px solid #f4c9dc; }
.role-card.family { background: linear-gradient(145deg, #fff 0 43%, var(--orange-soft) 100%); border: 1px solid #f7ceb4; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.role-card span:first-child { color: var(--muted); font-family: 'League Spartan'; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-card strong { max-width: 330px; margin-top: 13px; font-family: 'League Spartan'; font-size: 1.85rem; line-height: 1.04; }
.role-card p { max-width: 330px; margin: 12px 0 20px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.role-card b { display: inline-flex; margin-top: auto; align-items: center; gap: 8px; color: var(--pink-dark); font-family: 'League Spartan'; }
.role-card.family b { color: #a63f0a; }
.role-card i { position: absolute; width: 85px; height: 85px; right: 22px; bottom: 16px; border-radius: 50%; background: rgba(255,255,255,.65); }
.role-card i::before { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-dark); content: '→'; font: 800 2rem/1 'League Spartan'; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 50px; gap: 14px; }
.quick-card { padding: 21px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; text-decoration: none; }
.quick-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; }
.quick-card strong { display: block; font-family: 'League Spartan'; font-size: 1.08rem; line-height: 1.2; }
.quick-card span { display: block; margin-top: 7px; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.guide-step { position: relative; margin: 0 0 42px; scroll-margin-top: 110px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.guide-step + .guide-step::before { position: absolute; width: 3px; height: 43px; top: -43px; left: 47px; background: linear-gradient(var(--accent-soft), var(--accent)); content: ''; }
.guide-step-copy { display: grid; padding: clamp(24px, 5vw, 42px); grid-template-columns: 58px minmax(0, 1fr); gap: 22px; }
.guide-step-copy .step-number { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; color: white; background: var(--accent); box-shadow: 0 9px 23px color-mix(in srgb, var(--accent) 28%, transparent); font-family: 'League Spartan'; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.guide-step-copy h2 { margin: 0 0 13px; font-size: clamp(1.65rem, 3vw, 2.1rem); }
.guide-step-copy p:last-child { margin-bottom: 0; }
.guide-figure { margin: 0; padding: 0 clamp(18px, 4vw, 34px) 31px; }
.browser-frame { overflow: hidden; border: 1px solid #d8c9c6; border-radius: 16px; background: #f7f2f0; box-shadow: 0 16px 38px rgba(32,17,26,.12); }
.browser-toolbar { display: flex; height: 32px; align-items: center; gap: 6px; border-bottom: 1px solid #dfd2cf; padding: 0 12px; background: #f4eeec; }
.browser-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: #cbbab6; }
.browser-toolbar span:first-child { background: #f19a76; }
.browser-toolbar span:nth-child(2) { background: #e7bd63; }
.browser-toolbar span:nth-child(3) { background: #7fc097; }
.browser-frame img { display: block; width: 100%; height: auto; background: white; }
.guide-figure figcaption { margin: 11px 4px 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.mobile-figure { display: grid; margin: 28px auto 48px; place-items: center; }
.phone-frame { width: min(100%, 340px); overflow: hidden; border: 8px solid var(--ink); border-radius: 30px; background: white; box-shadow: var(--shadow-lg); }
.phone-frame::before { display: block; width: 72px; height: 14px; margin: -2px auto 4px; border-radius: 0 0 10px 10px; background: var(--ink); content: ''; }
.phone-frame img { display: block; width: 100%; }
.mobile-figure figcaption { max-width: 430px; margin-top: 13px; color: var(--muted); font-size: .82rem; text-align: center; }

.doc-note { display: grid; margin: 27px 0; padding: 21px 23px; grid-template-columns: 36px minmax(0, 1fr); gap: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.doc-note .note-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; }
.doc-note .note-icon::before { font-family: 'League Spartan'; font-size: 1.15rem; font-weight: 900; }
.doc-note > div > strong { display: block; margin: 1px 0 5px; font-family: 'League Spartan'; font-size: 1.08rem; }
.doc-note p:last-child, .doc-note ul:last-child { margin-bottom: 0; }
.note-good { border-color: #b9dfc9; background: var(--green-soft); }
.note-good .note-icon { color: white; background: var(--green); }
.note-good .note-icon::before { content: '✓'; }
.note-privacy { border-color: #c7d6f2; background: var(--blue-soft); }
.note-privacy .note-icon { color: white; background: var(--blue); }
.note-privacy .note-icon::before { content: '⌁'; }
.note-next { border-color: #f5c9dd; background: var(--pink-soft); }
.note-next .note-icon { color: white; background: var(--pink); }
.note-next .note-icon::before { content: '→'; }
.note-help { border-color: #f0c5aa; background: var(--orange-soft); }
.note-help .note-icon { color: white; background: var(--orange); }
.note-help .note-icon::before { content: '?'; }

.doc-details { margin: 14px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.doc-details summary { display: flex; min-height: 60px; padding: 14px 18px; align-items: center; justify-content: space-between; gap: 20px; font-family: 'League Spartan'; font-weight: 750; cursor: pointer; list-style: none; }
.doc-details summary::-webkit-details-marker { display: none; }
.doc-details summary span { position: relative; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--accent-soft); }
.doc-details summary span::before, .doc-details summary span::after { position: absolute; width: 10px; height: 2px; top: 11px; left: 7px; background: var(--accent-dark); content: ''; }
.doc-details summary span::after { transform: rotate(90deg); transition: transform .16s ease; }
.doc-details[open] summary span::after { transform: rotate(0); }
.doc-details .details-body { border-top: 1px solid var(--line); padding: 18px; color: var(--ink-soft); }
.doc-details .details-body > :last-child { margin-bottom: 0; }

.action-row { display: flex; margin: 29px 0; flex-wrap: wrap; gap: 11px; }
.doc-button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; border: 2px solid var(--accent-dark); border-radius: 11px; color: white; background: var(--accent-dark); font-family: 'League Spartan'; font-weight: 760; text-decoration: none; }
.doc-button:hover { color: white; background: var(--ink); border-color: var(--ink); text-decoration: none; }
.doc-button.secondary { color: var(--ink); border-color: var(--line); background: white; }
.doc-button.secondary:hover { color: var(--accent-dark); border-color: var(--accent); }

.next-navigation { margin-top: 78px; border-top: 1px solid var(--line); padding-top: 30px; }
.next-navigation > p { margin: 0 0 13px; color: var(--muted); font-family: 'League Spartan'; font-size: .8rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.next-navigation > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-card { position: relative; display: grid; min-height: 125px; padding: 20px 52px 20px 21px; align-content: center; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; text-decoration: none; }
.next-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; }
.next-card span { color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.next-card strong { margin-top: 5px; font-family: 'League Spartan'; font-size: 1.16rem; line-height: 1.2; }
.next-card i { position: absolute; top: 50%; right: 19px; color: var(--accent); font: normal 800 1.5rem/1 'League Spartan'; transform: translateY(-50%); }

.site-footer { display: flex; min-height: 190px; padding: 42px max(20px, calc((100% - var(--content)) / 2)); align-items: center; justify-content: space-between; gap: 30px; color: #f9eff3; background: var(--ink); }
.site-footer img { width: 165px; padding: 7px 10px; border-radius: 8px; background: white; }
.site-footer p { margin: 10px 0 0; color: #dccbd2; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: white; font-size: .9rem; }

@media (max-width: 980px) {
    .header-inner { min-height: 70px; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; padding: 2px 0 4px; scrollbar-width: thin; }
    .header-action { margin-left: auto; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) 180px; }
    .hero-mascot { height: 190px; }
    .hero-mascot span { width: 165px; height: 165px; }
    .hero-mascot img { max-height: 185px; }
    .content-shell { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
    .toc { position: static; z-index: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: white; }
    .toc nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 3px; }
    .toc nav a { flex: 0 0 auto; padding: 8px 12px; background: var(--cream-light); }
    .toc nav a::before, .toc-help { display: none; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .header-inner, .hero-inner, .content-shell { width: min(calc(100% - 28px), var(--content)); }
    .brand img { width: 142px; }
    .header-action { min-height: 38px; padding: 0 11px; font-size: .76rem; }
    .hero-inner { padding: 19px 0 34px; }
    .breadcrumbs { overflow-x: auto; white-space: nowrap; }
    .hero-grid { display: block; min-height: 0; }
    .hero-copy { position: relative; z-index: 2; padding-right: 34px; }
    .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .hero-lead { margin-top: 16px; font-size: 1.02rem; }
    .hero-mascot { position: absolute; right: -12px; bottom: -10px; width: 105px; height: 130px; opacity: .3; }
    .hero-mascot span { width: 105px; height: 105px; }
    .hero-mascot img { max-height: 125px; }
    .content-shell { padding: 24px 0 64px; }
    .role-grid, .quick-grid, .next-navigation > div { grid-template-columns: 1fr; }
    .role-card { min-height: 245px; padding: 24px; }
    .guide-step { border-radius: 22px; }
    .guide-step-copy { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
    .guide-step-copy .step-number { width: 42px; height: 42px; border-radius: 13px; font-size: 1.1rem; }
    .guide-step + .guide-step::before { left: 38px; }
    .guide-figure { padding-right: 10px; padding-bottom: 22px; padding-left: 10px; }
    .browser-frame { border-radius: 12px; }
    .browser-toolbar { height: 26px; }
    .doc-note { padding: 18px; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
    .doc-note .note-icon { width: 30px; height: 30px; }
    .site-footer { min-height: 0; padding-top: 36px; padding-bottom: 36px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    @page { margin: 18mm; }
    body { color: #000; background: #fff; font-size: 11pt; }
    .site-header, .reading-progress, .toc, .hero-mascot, .next-navigation, .site-footer { display: none !important; }
    .doc-hero { border: 0; background: white; }
    .hero-inner, .content-shell { width: 100%; padding: 0; }
    .hero-copy h1 { font-size: 28pt; }
    .hero-lead { font-size: 12pt; }
    .content-shell { display: block; }
    .guide-step, .intro-panel, .doc-note, .doc-details { break-inside: avoid; box-shadow: none; }
    .guide-step { margin: 12mm 0; border-color: #bbb; }
    .browser-frame { box-shadow: none; }
    a { color: #000; }
    a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 8pt; font-weight: 400; }
}
