/* A quiet reading page with the owner's selected left-hand contents index. */
@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --page: #fbfdfc; --ink: #143e38; --muted: #4d6961; --green: #236e5f; --mist: #eaf4ef; --line: #c5d9cf; --orange: #ffae73; --orange-ink: #4c2a17; }
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 18px/1.65 Outfit, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus, :focus-visible { outline: none; box-shadow: none; }
html:not([data-input-mode="pointer"]) :is(a, summary):focus-visible { background: var(--ink); color: #f5fcf8; border-radius: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
strong { font-weight: 600; }
img { display: block; max-width: 100%; }
.wrap { width: min(1048px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.breadcrumbs { padding-block: 30px 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 12px; color: var(--muted); }
.guide-hero { max-width: 760px; margin-left: auto; padding-block: 46px 54px; }
.guide-hero h1 { max-width: 750px; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -.047em; text-wrap: balance; }
.guide-hero .lead { margin-top: 24px; font-size: 22px; line-height: 1.5; }
.guide-hero p + p { margin-top: 16px; }
.guide-hero > p:not(.lead) { color: var(--muted); font-size: 16px; }
.guide-hero .article-meta { margin-top: 24px; font-size: 13px; }
.article-meta span { margin-inline: 8px; }
.guide-layout { display: grid; grid-template-columns: 232px minmax(0, 760px); gap: 56px; align-items: start; }
.reading-column { min-width: 0; max-width: 760px; }
.desktop-contents { position: sticky; top: 24px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.toc h2 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin: 4px 10px 14px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 14px; }
.toc a { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; min-height: 40px; font-size: 14px; line-height: 1.45; text-decoration: none; border-radius: 8px; }
.toc a span { flex: 0 0 22px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.toc a:hover { background: var(--mist); }
.toc a:active { background: #d9eee4; }
html:not([data-input-mode="pointer"]) .toc a:focus-visible span { color: inherit; }
.toc .toc-extra { min-height: 38px; font-size: 13px; color: var(--muted); }
html:not([data-input-mode="pointer"]) .toc .toc-extra:focus-visible { color: #f5fcf8; }
.mobile-contents { display: none; }
.guide-step { padding-bottom: 48px; }
.guide-step + .guide-step { padding-top: 38px; border-top: 1px solid var(--line); }
.guide-step h2, .guide-faq > h2 { font-size: clamp(28px, 2.8vw, 35px); margin-bottom: 22px; }
.guide-step h2 { display: flex; align-items: baseline; gap: 13px; }
.step-number { color: var(--green); font-size: .72em; font-variant-numeric: tabular-nums; }
.reading-column h3 { font-size: 23px; margin: 28px 0 12px; }
.reading-column p + p { margin-top: 18px; }
.reading-column ul { padding-left: 23px; margin: 20px 0; }
.reading-column li { padding-left: 4px; }
.reading-column li + li { margin-top: 12px; }
.reading-column li::marker { color: var(--green); }
.country-list { font-size: 16px; }
.country-list li + li { margin-top: 16px; }
.table-wrap { margin-block: 26px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; text-align: left; }
caption { text-align: left; font-weight: 500; font-size: 19px; letter-spacing: -.02em; margin-bottom: 14px; }
th, td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead { background: var(--mist); }
th { font-weight: 550; }
th:first-child { width: 27%; }
.worked-example { padding: 28px; margin: 28px 0; border-radius: 24px; background: var(--mist); }
.worked-example h3 { margin-top: 0; font-size: 27px; }
.worked-example .example-label, .caption-note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.worked-example ul { margin-bottom: 0; font-size: 17px; }
.mds-help { margin-top: 26px; }
.delivery-help { margin-top: 30px; padding: 32px; border-radius: 24px; background: var(--ink); color: #f5fcf8; }
.delivery-help h3 { margin-top: 0; font-size: 29px; }
.delivery-help p { color: #e0eee7; font-size: 17px; }
.delivery-help a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; color: var(--orange); font-weight: 500; }
html:not([data-input-mode="pointer"]) .delivery-help a:focus-visible { background: var(--orange); color: var(--orange-ink); }
.guide-faq { padding-block: 40px; border-top: 1px solid var(--line); }
.guide-faq h3 { font-size: 23px; margin-top: 30px; }
.guide-faq p { font-size: 17px; }
.closing-help { padding: 32px; margin-top: 22px; background: #fff0e2; border-radius: 24px; }
.closing-help h2 { font-size: clamp(29px, 3vw, 37px); margin-bottom: 16px; }
.closing-help p { font-size: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 24px; margin-top: 24px; border-radius: 100px; background: var(--orange); color: var(--orange-ink); font-size: 16px; font-weight: 550; text-decoration: none; transition: transform 140ms ease, background-color 140ms ease; }
.button:hover { background: #ffbd8d; }
.button:active { transform: scale(.98); }
.source-note { margin-block: 28px 56px; color: var(--muted); font-size: 13px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 980px) {
  .wrap { max-width: 760px; }
  .guide-layout { display: block; }
  .desktop-contents { display: none; }
  .guide-hero { padding-block: 34px 32px; }
  .mobile-contents { display: block; margin-bottom: 38px; padding: 6px 14px; background: var(--mist); border-radius: 14px; }
  .mobile-contents summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; padding: 8px 6px; font-size: 16px; font-weight: 550; cursor: pointer; list-style: none; }
  .mobile-contents summary::-webkit-details-marker { display: none; }
  .mobile-contents summary span { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; }
  .mobile-contents summary::after { content: '+'; font-size: 22px; font-weight: 400; }
  .mobile-contents[open] summary::after { content: '−'; }
  .mobile-contents nav { padding-bottom: 10px; }
  .mobile-contents .toc a { min-height: 44px; font-size: 15px; }
  html:not([data-input-mode="pointer"]) .mobile-contents summary:focus-visible span { color: inherit; }
}
@media (max-width: 540px) {
  body { font-size: 17px; line-height: 1.6; }
  .wrap { width: calc(100% - 36px); }
  .breadcrumbs { font-size: 12px; padding-top: 22px; }
  .breadcrumbs ol { gap: 4px 8px; }
  .breadcrumbs li + li::before { margin-right: 8px; }
  .guide-hero h1 { font-size: clamp(36px, 9.5vw, 45px); }
  .guide-hero .lead { font-size: 19px; }
  .guide-hero > p:not(.lead) { font-size: 15px; }
  .guide-hero .article-meta { font-size: 12px; }
  .guide-step { padding-bottom: 34px; }
  .guide-step + .guide-step { padding-top: 30px; }
  .guide-step h2 { gap: 10px; }
  .reading-column ul { padding-left: 21px; }
  th, td { padding: 12px 9px; }
  table { font-size: 14px; }
  th:first-child { width: 31%; }
  .worked-example, .delivery-help, .closing-help { padding: 23px; border-radius: 20px; }
  .worked-example ul, .delivery-help p, .closing-help p { font-size: 16px; }
  .delivery-help h3 { font-size: 27px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .button:active { transform: none; }
}
@media print {
  .site-navigation, .desktop-contents, .mobile-contents, .skip-link, .site-footer { display: none; }
  .wrap { width: 100%; max-width: 760px; }
  .guide-layout { display: block; }
  .guide-hero { padding-top: 20px; }
  .guide-step { break-inside: auto; }
  h2, h3 { break-after: avoid; }
  .delivery-help { background: white; color: black; }
  .delivery-help p, .delivery-help a { color: black; }
}
