@font-face {
    font-family: "Ritm Geist";
    src: url("/fonts/geist-variablefont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #18110f;
    --muted: #626770;
    --line: #e9e2de;
    --surface: #f7f4f2;
    --accent: #d63710;
    --accent-soft: #fff0e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 135px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Ritm Geist", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, summary { font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--ink); background: #ffd8c7; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 10px; padding: 16px; background: #fff; transform: translateY(-160%); border: 1px solid var(--accent); border-radius: 12px; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 20; top: 0; padding: 18px 28px; background: linear-gradient(#fff 75%, #fffffff2); }
.header-inner { max-width: 1440px; margin: auto; min-height: 76px; padding: 12px 24px; display: flex; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: 22px; background: #ffffffed; box-shadow: 0 8px 28px #1a1d210e; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ffd5c4; border-radius: 13px; background: linear-gradient(145deg,#fff7f3,#ffd8c7); box-shadow: inset 0 1px 0 #ffffffcc,0 7px 18px #f044181f; }
.brand-mark img { width: 90%; height: 90%; object-fit: contain; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-caption { margin: 0 auto; padding-right: 72px; font-size: 13px; color: var(--muted); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 14px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.back-link:hover { background: #bb2d0c; }
.page-shell { width: min(1224px, calc(100% - 56px)); margin: 14px auto 88px; }
.document-hero { padding: 32px 48px 42px; border-radius: 28px; background: linear-gradient(110deg,#faf8f7 20%,#f7eee8); }
.hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; }
.document-switcher { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #ece5e080; border: 1px solid var(--line); border-radius: 12px; }
.document-switcher a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; text-decoration: none; font-size: 14px; color: var(--muted); border-radius: 8px; }
.document-switcher a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: 0 2px 5px #24100b0a; }
.document-switcher a:hover { color: var(--accent); }
.print-button { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #dfd4cc; border-radius: 11px; background: transparent; color: var(--ink); font-size: 13px; }
.print-button:hover { background: #fff; }
.print-button svg { width: 18px; height: 18px; }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 980px; margin: 0; font-size: clamp(34px,4.2vw,58px); line-height: 1.08; font-weight: 520; letter-spacing: -.045em; text-wrap: balance; }
.hero-description { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.document-meta { margin-top: 28px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--accent); border-radius: 50%; }
.document-layout { display: grid; grid-template-columns: 244px minmax(0,1fr); gap: 68px; padding: 52px 22px 0; align-items: start; }
.contents { position: sticky; top: 135px; }
.contents details > summary { cursor: default; list-style: none; margin: 0 0 16px; padding: 0 10px; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contents summary::-webkit-details-marker { display: none; }
.contents summary > span { display: none; }
.contents ol { padding: 0; margin: 0; list-style: none; }
.contents li + li { margin-top: 3px; }
.contents nav a { display: grid; grid-template-columns: 20px 1fr; gap: 10px; min-height: 44px; padding: 11px 10px; border-radius: 9px; font-size: 13px; line-height: 1.45; color: var(--muted); text-decoration: none; }
.contents nav a > span { color: #8b817a; font-size: 11px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.contents nav a:hover { color: var(--ink); background: var(--surface); }
.contents nav a[aria-current="location"] { color: var(--accent); background: var(--accent-soft); }
.contents nav a[aria-current="location"] > span { color: inherit; }
.contact-note { border-top: 1px solid var(--line); margin: 26px 10px 0; padding-top: 22px; }
.contact-note > span { display: block; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.contact-note > a { display: flex; justify-content: space-between; align-items: center; min-height: 30px; font-size: 13px; text-decoration: none; }
.document { min-width: 0; max-width: 824px; outline: none; }
.document-intro { padding: 0 0 30px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.document p, .document li { font-size: 15px; line-height: 1.8; color: #393533; overflow-wrap: anywhere; }
.document p { margin: 0 0 17px; }
.document p:last-child { margin-bottom: 0; }
.document a { color: #b72c0b; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.document a:hover { text-decoration-thickness: 2px; }
.document-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.document-section h2 { display: flex; gap: 10px; margin: 0 0 22px; font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.document-section h2 > span { color: var(--accent); }
.document ul { margin: 15px 0 21px; padding-left: 21px; }
.document li { padding-left: 5px; margin-bottom: 9px; }
.document li::marker { color: var(--accent); }
.document-end { padding: 23px 26px; background: var(--surface); border-radius: 16px; }
.document-end > span { display: block; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.document-end > a { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; line-height: 1.5; color: var(--ink); text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 28px; }
.footer-inner { max-width: 1180px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { font-size: 19px; font-weight: 650; letter-spacing: -.03em; text-decoration: none; }
.footer-inner p { margin: 0; color: #393533; font-size: 12px; line-height: 1.8; text-align: center; }
.footer-inner p > span { color: var(--muted); font-size: 11px; }
.footer-inner > a:last-child { font-size: 13px; text-decoration: none; }

@media (max-width: 1000px) {
    .document-layout { grid-template-columns: 208px minmax(0,1fr); gap: 32px; padding-inline: 4px; }
    .document-hero { padding-inline: 32px; }
    .header-caption { padding-right: 0; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 104px; }
    .site-header { padding: 12px 16px; }
    .header-inner { min-height: 64px; padding: 10px 12px; border-radius: 17px; gap: 12px; justify-content: space-between; }
    .header-caption, .brand-copy small { display: none; }
    .brand { gap: 10px; }
    .brand-copy strong { font-size: 16px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .back-link { padding-inline: 13px; font-size: 12px; }
    .page-shell { width: calc(100% - 32px); margin-top: 8px; margin-bottom: 48px; }
    .document-hero { padding: 20px 22px 28px; border-radius: 22px; }
    .hero-topline { margin-bottom: 30px; gap: 8px; }
    .document-switcher a { font-size: 12px; padding: 0 12px; }
    .print-button { padding: 0 12px; }
    .print-button span { display: none; }
    h1 { font-size: clamp(30px,7.4vw,48px); }
    .eyebrow { font-size: 10px; letter-spacing: .08em; }
    .hero-description { font-size: 14px; margin-top: 17px; }
    .document-meta { margin-top: 22px; font-size: 11px; }
    .document-layout { display: block; padding: 22px 5px 0; }
    .contents { position: static; margin-bottom: 32px; }
    .contents details { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
    .contents details > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 48px; margin: 0; padding: 14px 16px; }
    .contents summary > span { display: block; font-size: 20px; line-height: 1; }
    .contents details[open] summary > span { transform: rotate(180deg); }
    .contents nav { padding: 0 6px 6px; }
    .contact-note { display: none; }
    .document p, .document li { font-size: 15px; line-height: 1.75; }
    .document-section h2 { font-size: 21px; margin-bottom: 20px; }
    .document-section { padding-bottom: 26px; margin-bottom: 26px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-inner p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media print {
    @page { size: A4; margin: 17mm; }
    html, body { background: #fff; color: #000; }
    .site-header, .hero-topline, .contents, .site-footer, .document-end, .skip-link { display: none !important; }
    .page-shell { width: 100%; margin: 0; }
    .document-hero { background: none; padding: 0 0 20px; border-radius: 0; border-bottom: 1px solid #999; margin-bottom: 22px; }
    .eyebrow { font-size: 9pt; }
    h1 { font-size: 24pt; max-width: none; }
    .hero-description { font-size: 11pt; margin-top: 9px; max-width: none; }
    .document-meta { font-size: 9pt; margin-top: 12px; }
    .status-dot { display: none; }
    .document-layout { display: block; padding: 0; }
    .document { max-width: none; }
    .document p, .document li { font-size: 10pt; line-height: 1.5; color: #000; orphans: 3; widows: 3; }
    .document p { margin-bottom: 9px; }
    .document-section { padding-bottom: 12px; margin-bottom: 16px; }
    .document-section h2 { break-after: avoid; font-size: 13pt; margin-bottom: 12px; }
    .document-section h2 > span, .document a { color: #000; }
    .document li { margin-bottom: 5px; }
    .document-intro { margin-bottom: 18px; padding-bottom: 18px; }
}
