:root {
  color-scheme: light;
  --page: #faf7f2;
  --surface: #ffffff;
  --ink: #2d2725;
  --muted: #665d58;
  --brand: #ba202f;
  --brand-soft: #fff0ed;
  --line: #e5dcd3;
  --notice: #fff5dc;
  --notice-ink: #664514;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a { color: var(--brand); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; border-radius: 3px; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  padding: 10px 18px;
  transform: translateY(-160%);
  background: var(--surface);
  border: 2px solid var(--brand);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-inner, .page, .footer-inner { width: min(100% - 48px, 1080px); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; }
.brand-name { color: var(--brand); font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: 1px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.site-nav a[aria-current="page"] { font-weight: 750; text-decoration-thickness: 2px; }

.page { padding-block: 48px 64px; }
.hero { max-width: 800px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 750; letter-spacing: 2px; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); line-height: 1.3; letter-spacing: 1px; }
.lead { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.meta { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.draft-notice { margin-bottom: 28px; padding: 18px 22px; border: 1px solid #e2c47f; border-radius: 14px; background: var(--notice); color: var(--notice-ink); }
.draft-notice p { margin: 4px 0 0; font-size: 14px; }
.draft-notice strong { font-size: 15px; }

.document-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: 24px; }
.contents { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contents h2 { margin: 0 0 12px; font-size: 16px; }
.contents ol { margin: 0; padding-left: 22px; }
.contents li + li { margin-top: 4px; }
.contents a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.document { display: grid; gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.card h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.5; }
.card h3 { margin: 22px 0 8px; font-size: 17px; line-height: 1.6; }
.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 23px; margin: 12px 0 0; }
.card li + li { margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section-number { margin-right: 8px; color: var(--brand); font-size: 15px; font-weight: 750; }
.note { margin-top: 18px !important; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--brand-soft); font-size: 14px; }
.details-list { margin: 0; }
.details-list > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.details-list > div:first-child { padding-top: 0; }
.details-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.details-list dt { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.details-list dd { margin: 0; font-weight: 650; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.contact-column { display: grid; gap: 24px; }
.support-topics { list-style: none; padding-left: 0 !important; }
.support-topics li { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.support-topics li:last-child { padding-bottom: 0; border-bottom: 0; }
.support-topics strong { display: block; margin-bottom: 4px; }
.support-topics span { color: var(--muted); font-size: 15px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--brand); border-radius: 12px; font-weight: 650; text-decoration: none; }
.button-primary { background: var(--brand); color: #ffffff; }
.button:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .header-inner, .page, .footer-inner { width: min(100% - 32px, 1080px); }
  .header-inner { min-height: 80px; gap: 12px; }
  .brand-name { font-size: 21px; }
  .site-nav { gap: 4px 12px; }
  .page { padding-block: 32px 40px; }
  .hero { margin-bottom: 22px; }
  .lead { font-size: 16px; }
  .draft-notice { padding: 16px 18px; margin-bottom: 22px; }
  .document-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contents { padding: 18px 22px; }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .contents li + li { margin-top: 0; }
  .card { padding: 22px; }
  .card h2 { font-size: 20px; }
  .contact-column { gap: 20px; }
}

@media (max-width: 380px) {
  .header-inner { flex-wrap: wrap; padding-block: 14px; gap: 4px; }
  .site-nav { justify-content: flex-start; }
  .contents ol { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .site-nav, .skip-link, .contents, .page-actions, .footer-links { display: none; }
  .page, .header-inner, .footer-inner { width: 100%; }
  .page { padding-block: 24px; }
  .document-layout, .contact-grid { display: block; }
  .card { margin-bottom: 16px; padding: 18px; border-radius: 0; }
  h2, h3 { break-after: avoid; }
  a { color: #000000; }
}

.public-language-selector { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8rem; }
.public-language-selector select { min-height: 44px; padding: .5rem; max-width: 100%; color: inherit; background: white; border: 1px solid #ddd; border-radius: 6px; }
.public-password-field { display: flex; align-items: stretch; gap: .35rem; }
.public-password-field input { flex: 1; min-width: 0; }
.public-password-toggle { min-width: 44px; min-height: 44px; border: 1px solid #ddd; border-radius: 6px; background: white; font-size: 20px; }
