:root {
  color-scheme: light;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-subtle: #edf1f3;
  --surface-strong: #e2e8eb;
  --ink: #15232b;
  --muted: #586871;
  --faint: #5f7078;
  --line: #cbd5da;
  --line-strong: #aebdc4;
  --accent: #0969a2;
  --accent-strong: #07527f;
  --accent-soft: #dceef8;
  --verified: #137468;
  --verified-soft: #dcefeb;
  --attention: #9f5600;
  --attention-soft: #fff0d4;
  --danger: #a33a35;
  --danger-soft: #f8e5e3;
  --focus: #007fc4;
  --on-accent: #ffffff;
  --inverse-bg: #15232b;
  --inverse-text: #f5f9fa;
  --inverse-muted: #b9c8ce;
  --inverse-line: #52646d;
  --inverse-accent: #91d0f2;
  --r-sm: 0.375rem;
  --r-md: 0.625rem;
  --r-lg: 0.875rem;
  --duration: 160ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shell: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}



a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p,
ul,
ol,
pre {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 3.65rem;
  font-weight: 720;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  translate: 0 -150%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.35;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.preview-badge {
  margin-right: auto;
  padding: 0.2rem 0.52rem;
  border: 1px solid color-mix(in srgb, var(--attention) 42%, var(--line));
  border-radius: 999px;
  background: var(--attention-soft);
  color: var(--attention);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.public-release-body .preview-badge {
  border-color: var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.site-nav a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}



.eyebrow,
.section-index {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}



.button {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.62rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease), translate var(--duration) var(--ease);
}

.button:hover:not(:disabled) {
  translate: 0 -1px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button--primary:hover {
  background: var(--accent-strong);
}



.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
}

.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}


/* Public service surface */

.service-alert {
  border-bottom: 1px solid color-mix(in srgb, var(--attention) 35%, var(--line));
  background: var(--attention-soft);
  color: color-mix(in srgb, var(--attention) 82%, var(--ink));
}

.service-alert__inner {
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.55rem;
}

.service-alert p {
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.service-alert p:last-child {
  max-width: 35rem;
  color: var(--muted);
  text-align: right;
}

.public-release-body .service-alert__inner {
  min-height: 3rem;
  padding-block: 0.45rem;
  gap: 1.25rem;
}

.public-release-body .service-alert p {
  font-size: 0.76rem;
}



.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-weight: 750;
}



.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 4.2rem;
  padding: 1rem 2.5rem 1rem 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
}

.faq-list details[open] summary {
  color: var(--accent);
}

.faq-list details p {
  max-width: 46rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner--public {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto;
  align-items: start;
  row-gap: 1.25rem;
}

.footer-inner--public nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
}

.footer-inner--public nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.footer-readiness {
  max-width: 48rem;
  grid-column: 1;
}

/* Public explanation page */

.public-info-body {
  background: var(--surface);
}



.public-info-shell {
  max-width: 68rem;
}



.public-meta {
  display: grid;
  margin: 2rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.public-meta div {
  padding: 0.75rem 1rem;
}

.public-meta div + div {
  border-left: 1px solid var(--line);
}

.public-meta dt {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 750;
}

.public-meta dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}



.public-section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.public-section-heading h2 {
  margin-bottom: 0.7rem;
}

.public-section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}



/* Public guide library */



.guide-directory__role {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.guide-body {
  background: var(--surface);
}

.guide-index-main {
  padding-block: 3rem 6rem;
}

.release-home .guide-index-main {
  padding-top: 3.25rem;
}

.guide-index-title {
  max-width: 57rem;
  margin-bottom: 2.5rem;
}

.release-home .guide-index-title {
  margin-bottom: 2.5rem;
}

.guide-index-title h1 {
  font-size: 3.25rem;
}

.guide-index-title > p:not(.eyebrow) {
  max-width: 49rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.guide-index-section {
  margin-top: 2.5rem;
}

.guide-index-section > .public-section-heading {
  margin-bottom: 1rem;
}

.release-home .guide-index-section {
  margin-top: 2.5rem;
}

.guide-directory {
  border-block: 1px solid var(--line-strong);
}

.guide-directory > a {
  position: relative;
  display: grid;
  min-height: 10rem;
  padding: 1.5rem 3.5rem 1.5rem 1rem;
  grid-template-columns: 13rem minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  align-items: center;
  gap: 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: background var(--duration) var(--ease);
}

.guide-directory > a + a {
  border-top: 1px solid var(--line);
}

.guide-directory > a:hover {
  background: var(--surface-subtle);
}

.guide-directory strong {
  font-size: 1.08rem;
  line-height: 1.55;
}

.guide-directory p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.guide-directory__arrow {
  position: absolute;
  right: 1.15rem;
  color: var(--accent);
  font-size: 1.35rem;
}

@media (min-width: 58.01rem) {
  .release-home .header-inner {
    min-height: 4.3rem;
  }

  .release-home .service-alert__inner {
    min-height: 3rem;
    padding-block: 0.4rem;
  }

  .release-home .service-alert p {
    font-size: 0.75rem;
  }

  .release-home .guide-index-main {
    padding-top: 2rem;
  }

  .release-home .guide-index-title {
    margin-bottom: 1.5rem;
  }

  .release-home .guide-index-title h1 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    line-height: 1.2;
  }

  .release-home .guide-index-title > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.65;
  }

  .release-home .public-meta {
    margin-top: 1.25rem;
  }

  .release-home .guide-index-section {
    margin-top: 1.5rem;
  }

  .release-home .public-section-heading {
    margin-bottom: 1.25rem;
  }

  .release-home .public-section-heading h2 {
    font-size: 1.65rem;
  }

  .release-home .guide-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .release-home .guide-directory > a {
    min-height: 10.5rem;
    padding: 1.1rem 2.5rem 1.1rem 1rem;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.65rem;
  }

  .release-home .guide-directory > a + a {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.guide-reading-note {
  display: grid;
  padding: 2rem;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem 3rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.guide-reading-note h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.guide-reading-note ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-reading-note .text-link {
  margin: 0;
  grid-column: 2;
  justify-self: start;
}

.guide-main {
  padding-block: 1.5rem 6rem;
}

.guide-shell {
  max-width: 68rem;
}

.breadcrumb ol {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
}

.policy-external-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.guide-header {
  max-width: 58rem;
  margin-block: 2.25rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.guide-header h1 {
  max-width: 55rem;
  font-size: 2.75rem;
}

.acceptance-title span:last-child {
  white-space: nowrap;
}

.guide-deck {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.guide-meta {
  display: grid;
  max-width: 48rem;
  margin: 2rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.guide-meta > div {
  padding: 0.7rem 0.9rem;
}

.guide-meta > div + div {
  border-left: 1px solid var(--line);
}

.guide-meta dt {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 750;
}

.guide-meta dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  align-items: start;
  gap: 4rem;
}

.guide-toc {
  position: sticky;
  top: 6.5rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line-strong);
}

.guide-toc > strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--faint);
  font-size: 0.75rem;
}

.guide-toc nav {
  display: grid;
}

.guide-toc a {
  display: flex;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--accent);
}

.guide-content {
  min-width: 0;
  max-width: 47rem;
}

.guide-content > section {
  margin-top: 4.25rem;
  scroll-margin-top: 6.5rem;
}

.guide-content > section:first-child {
  margin-top: 0;
}

.guide-content h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.guide-content h3 {
  font-size: 1.05rem;
}

.guide-content p,
.guide-content li {
  overflow-wrap: anywhere;
}

.guide-content p {
  margin-bottom: 1.2rem;
}

.guide-source-ref {
  display: inline-flex;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  align-items: center;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.guide-summary {
  padding: 1.75rem 0;
  border-block: 1px solid var(--line-strong);
}

.guide-summary h2 {
  font-size: 1.55rem;
}

.guide-summary ul {
  display: grid;
  margin: 1.25rem 0 0;
  padding: 0;
  gap: 0.55rem;
  color: var(--muted);
  list-style: none;
}

.guide-summary li {
  position: relative;
  padding-left: 1.4rem;
}

.guide-summary li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--verified);
  font-weight: 800;
}

.guide-quick-start,
.guide-today {
  max-width: 58rem;
  margin-bottom: 3.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  background: var(--surface-subtle);
}

.guide-quick-start h2,
.guide-today h2 {
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
}

.guide-quick-start .guide-number-list,
.guide-today__steps {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  list-style: none;
}

.guide-quick-start .guide-number-list li,
.guide-today__steps li {
  display: grid;
  min-height: 11rem;
  padding: 1rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-content: start;
  gap: 0.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-quick-start .guide-number-list li > span,
.guide-today__steps li strong > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-quick-start .guide-number-list h3,
.guide-today__steps strong {
  font-size: 0.98rem;
  line-height: 1.5;
}

.guide-quick-start .guide-number-list p,
.guide-today__steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.guide-today__steps li strong {
  grid-column: 1 / -1;
}

.guide-today__steps li p {
  grid-column: 1 / -1;
}

.guide-urgency,
.guide-today__boundary {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left-color: var(--attention);
  background: var(--attention-soft);
  color: var(--ink);
}

.guide-today__boundary {
  border-left: 3px solid var(--attention);
}

.guide-urgency p,
.guide-today__boundary {
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-callout {
  margin-block: 1.8rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.guide-callout > strong {
  display: block;
  margin-bottom: 0.35rem;
}

.guide-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-callout--critical {
  border-left-color: var(--attention);
  background: var(--attention-soft);
}

.guide-number-list,
.guide-detail-list {
  margin: 1.5rem 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.guide-number-list li,
.guide-detail-list li {
  display: grid;
  padding-block: 1.25rem;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.guide-number-list li > span,
.guide-detail-list li > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-number-list h3,
.guide-detail-list h3 {
  margin-bottom: 0.3rem;
}

.guide-number-list p,
.guide-detail-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-detail-list li > div > p + p {
  margin-top: 0.75rem;
}

.guide-eligibility__common {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-subtle);
}

.guide-eligibility__common > p:last-child {
  margin-bottom: 0;
}

.guide-eligibility__branches {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.guide-eligibility__branches > section {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.guide-eligibility__branches ul,
.guide-eligibility__common ul {
  padding-left: 1.2rem;
}

.guide-eligibility__label {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-condition-sheet,
.guide-worksheet {
  margin-block: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.guide-condition-sheet > h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.condition-sheet__grid {
  display: grid;
  margin: 1.25rem 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.condition-sheet__item {
  min-width: 0;
  padding: 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.condition-sheet__item dt {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.condition-sheet__blank {
  min-height: 3rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.condition-sheet__example {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 3px solid var(--verified);
  background: var(--verified-soft);
}

.condition-sheet__example h3 {
  font-size: 0.92rem;
}

.condition-sheet__example p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-worksheet > h2 {
  margin-bottom: 0.65rem;
}

.guide-worksheet__meta {
  display: grid;
  margin-block: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-strong);
}

.guide-worksheet__meta span {
  padding: 0.65rem;
  font-size: 0.8rem;
}

.guide-worksheet__meta span + span {
  border-left: 1px solid var(--line);
}

.guide-worksheet__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
}

.guide-worksheet__table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.78rem;
  text-align: left;
}

.guide-worksheet__table caption {
  padding: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.guide-worksheet__table th,
.guide-worksheet__table td {
  padding: 0.65rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

.guide-worksheet__table thead th {
  background: var(--surface-strong);
  color: var(--ink);
}

.guide-worksheet__line {
  color: var(--muted);
}

.guide-worksheet__result {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.84rem;
}

.guide-official-route {
  padding-top: 1.5rem;
  border-top: 3px solid var(--verified);
}

.guide-glossary,
.guide-terms {
  margin-block: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.guide-glossary dl,
.guide-terms dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-glossary dl > div,
.guide-terms dl > div {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.guide-glossary dt,
.guide-terms dt {
  font-weight: 800;
}

.guide-glossary dd,
.guide-terms dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.guide-check-grid {
  display: grid;
  margin: 1.5rem 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  list-style: none;
}

.guide-check-grid li {
  min-height: 9rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-check-grid strong,
.guide-check-grid span {
  display: block;
}

.guide-check-grid span {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-state-list,
.guide-status-key {
  display: grid;
  margin-block: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.guide-state-list > div {
  display: grid;
  min-height: 6rem;
  padding-block: 1rem;
  grid-template-columns: 3rem minmax(9rem, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.guide-state-list > div > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-state-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-status-key {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.guide-status-key > div {
  min-height: 7.5rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-status-key strong,
.guide-status-key span {
  display: block;
}

.guide-status-key span {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-tool-cta {
  display: grid;
  padding: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem 2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
}

.guide-tool-cta h2 {
  margin-bottom: 0.45rem;
  font-size: 1.45rem;
}

.guide-tool-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-tool-cta small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
}

.guide-faq .faq-list {
  margin-top: 1.5rem;
}

.guide-sources {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}

.guide-sources ul {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.guide-sources li {
  border-bottom: 1px solid var(--line);
}

.guide-sources li:first-child {
  border-top: 1px solid var(--line);
}

.guide-sources a {
  display: flex;
  min-height: 3.25rem;
  padding-block: 0.65rem;
  align-items: center;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.guide-sources > p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.guide-final-check {
  display: grid;
  margin: 1.5rem 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.guide-final-check li {
  position: relative;
  min-height: 5.25rem;
  padding: 1rem 1rem 1rem 2.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.guide-final-check li::before {
  position: absolute;
  top: 1.08rem;
  left: 0.85rem;
  content: "□";
  color: var(--accent);
  font-size: 1.05rem;
}

.guide-next {
  display: grid;
  margin-top: 6rem;
  padding-top: 1rem;
  grid-template-columns: 8rem repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.guide-next > span {
  padding: 1rem 1rem 1rem 0;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 800;
}

.guide-next a {
  display: grid;
  min-height: 7.5rem;
  padding: 1rem 1.25rem;
  align-content: center;
  border-left: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.guide-next a:hover {
  background: var(--surface-subtle);
}

.guide-next strong,
.guide-next small {
  display: block;
}

.guide-next small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}



@media (max-width: 58rem) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 0.6rem;
  }

  .site-nav {
    display: flex;
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-block: 0.375rem;
    gap: 0.25rem;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .site-nav a {
    min-width: max-content;
    padding-inline: 0.75rem;
  }

  

  

  .service-alert__inner {
    align-items: start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .service-alert p:last-child {
    max-width: none;
    text-align: left;
  }

  

  

  .guide-directory > a {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .guide-directory p {
    grid-column: 2;
  }

  .guide-directory > a {
    padding-right: 3rem;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .guide-toc {
    position: static;
    padding: 1rem;
    background: var(--surface-subtle);
  }

  .guide-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .guide-content {
    max-width: none;
  }

  .guide-layout {
    gap: 2rem;
  }
}

@media (max-width: 40rem) {
  html {
    scroll-padding-top: 5rem;
  }

  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .header-inner {
    min-height: 4.4rem;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    display: grid;
    width: calc(100% + 1.5rem);
    margin-inline: -0.75rem;
    overflow: visible;
    padding: 0.35rem 0.4rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .public-release-body .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav a {
    min-width: 0;
    min-height: 3rem;
    padding: 0.3rem 0.12rem;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .site-nav a:focus-visible {
    outline-offset: -3px;
  }

  .brand small {
    display: none;
  }

  .preview-badge {
    margin-left: auto;
    margin-right: 0;
    font-size: 0.75rem;
  }

  

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  

  .service-alert p {
    font-size: 0.74rem;
  }

  .public-release-body .service-alert__inner {
    padding-block: 0.35rem;
    gap: 0;
  }

  .public-release-body .service-alert p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  

  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  

  .footer-inner--public {
    display: flex;
  }

  .footer-inner--public nav {
    justify-content: flex-start;
  }

  

  

  .public-meta {
    grid-template-columns: 1fr;
  }

  .public-meta div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  

  .guide-index-main {
    padding-block: 2rem 4rem;
  }

  .guide-index-title {
    margin-bottom: 2rem;
  }

  .guide-index-title h1,
  .guide-header h1 {
    font-size: 2.1rem;
  }

  .guide-index-title h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .guide-header h1 {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .guide-index-title > p:not(.eyebrow),
  .guide-deck {
    font-size: 0.95rem;
  }

  .guide-deck {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .guide-index-section {
    margin-top: 1.75rem;
  }

  .guide-index-section > .public-section-heading > p:last-child {
    display: none;
  }

  .release-home .guide-index-main {
    padding-top: 1.5rem;
  }

  .release-home .guide-index-title {
    margin-bottom: 1.25rem;
  }

  .release-home .guide-index-title h1 {
    margin-bottom: 0.8rem;
    font-size: 1.72rem;
    line-height: 1.2;
  }

  .release-home .guide-index-title > p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .release-home .guide-index-section {
    margin-top: 1.25rem;
  }

  .release-home .public-section-heading {
    margin-bottom: 0.65rem;
  }

  .release-home .public-section-heading h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
  }

  .release-home .public-section-heading > p:last-child,
  .release-home .guide-directory p {
    display: none;
  }

  .release-home .guide-directory > a {
    padding-block: 0.55rem;
    gap: 0.2rem;
  }

  .release-home .guide-directory strong {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  

  .guide-directory > a {
    min-height: 0;
    padding: 1.2rem 2.75rem 1.2rem 0.85rem;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .guide-directory__role,
  .guide-directory strong,
  .guide-directory p {
    grid-column: 1;
  }

  .guide-directory__arrow {
    right: 0.8rem;
  }

  .guide-directory strong {
    font-size: 1rem;
  }

  .guide-reading-note {
    padding: 1.25rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guide-reading-note .text-link {
    grid-column: 1;
  }

  .guide-main {
    padding-block: 0.5rem 4rem;
  }

  .guide-header {
    margin-block: 1.25rem 2rem;
    padding-bottom: 1.5rem;
  }

  .guide-header h1 br {
    display: none;
  }

  .acceptance-title span {
    display: block;
    white-space: nowrap;
  }

  .guide-meta {
    margin-top: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-meta > div {
    min-width: 0;
    padding: 0.55rem 0.4rem;
  }

  .guide-meta > div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .guide-meta dt {
    font-size: 0.67rem;
  }

  .guide-meta dd {
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .guide-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }

  .guide-content > section {
    margin-top: 3.75rem;
  }

  .guide-content h2 {
    font-size: 1.55rem;
  }

  .guide-summary h2,
  .guide-tool-cta h2 {
    font-size: 1.35rem;
  }

  .guide-quick-start,
  .guide-today {
    margin-bottom: 2rem;
    padding: 1rem;
  }

  .guide-quick-start h2,
  .guide-today h2 {
    font-size: 1.3rem;
  }

  .guide-quick-start .guide-number-list,
  .guide-today__steps {
    grid-template-columns: 1fr;
  }

  .guide-quick-start .guide-number-list li,
  .guide-today__steps li {
    min-height: 0;
    padding: 0.85rem;
  }

  .guide-eligibility__branches,
  .condition-sheet__grid,
  .guide-worksheet__meta,
  .guide-glossary dl,
  .guide-terms dl {
    grid-template-columns: 1fr;
  }

  .guide-eligibility__branches > section + section,
  .guide-worksheet__meta span + span {
    border-top: 1px solid var(--line);
  }

  .guide-worksheet__meta span + span {
    border-left: 0;
  }

  .guide-condition-sheet,
  .guide-worksheet,
  .guide-glossary,
  .guide-terms {
    padding: 0.9rem;
  }

  .guide-worksheet__table {
    min-width: 0;
    table-layout: fixed;
    font-size: 0.68rem;
  }

  .guide-worksheet__table th,
  .guide-worksheet__table td {
    padding: 0.45rem;
    overflow-wrap: anywhere;
  }

  .guide-number-list li,
  .guide-detail-list li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.45rem;
  }

  .guide-check-grid,
  .guide-status-key,
  .guide-final-check {
    grid-template-columns: 1fr;
  }

  .guide-check-grid li,
  .guide-status-key > div {
    min-height: 0;
  }

  .guide-state-list > div {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.35rem 0.5rem;
  }

  .guide-state-list p {
    grid-column: 2;
  }

  .guide-tool-cta {
    padding: 1.15rem;
    grid-template-columns: 1fr;
  }

  .guide-tool-cta .button {
    width: 100%;
  }

  .guide-next {
    margin-top: 4.5rem;
    grid-template-columns: 1fr;
  }

  .guide-next > span {
    padding: 0.6rem 0;
  }

  .guide-next a {
    min-height: 5.5rem;
    padding-inline: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}





@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .public-release-body:has(.guide-condition-sheet),
  .public-release-body:has(.guide-worksheet) {
    min-width: 0;
    background: #ffffff;
    color: #000000;
    font-size: 9pt;
  }

  .public-release-body:has(.guide-condition-sheet) .site-header,
  .public-release-body:has(.guide-condition-sheet) .service-alert,
  .public-release-body:has(.guide-condition-sheet) .breadcrumb,
  .public-release-body:has(.guide-condition-sheet) .guide-header,
  .public-release-body:has(.guide-condition-sheet) .guide-toc,
  .public-release-body:has(.guide-condition-sheet) .guide-next,
  .public-release-body:has(.guide-condition-sheet) .site-footer,
  .public-release-body:has(.guide-worksheet) .site-header,
  .public-release-body:has(.guide-worksheet) .service-alert,
  .public-release-body:has(.guide-worksheet) .breadcrumb,
  .public-release-body:has(.guide-worksheet) .guide-header,
  .public-release-body:has(.guide-worksheet) .guide-toc,
  .public-release-body:has(.guide-worksheet) .guide-next,
  .public-release-body:has(.guide-worksheet) .site-footer {
    display: none !important;
  }

  .public-release-body:has(.guide-condition-sheet) .guide-main,
  .public-release-body:has(.guide-worksheet) .guide-main {
    padding: 0;
  }

  .public-release-body:has(.guide-condition-sheet) .guide-shell,
  .public-release-body:has(.guide-worksheet) .guide-shell,
  .public-release-body:has(.guide-condition-sheet) .guide-content,
  .public-release-body:has(.guide-worksheet) .guide-content {
    width: 100%;
    max-width: none;
  }

  .public-release-body:has(.guide-condition-sheet) .guide-article > :not(.guide-layout),
  .public-release-body:has(.guide-worksheet) .guide-article > :not(.guide-layout),
  .public-release-body:has(.guide-condition-sheet) .guide-content > section,
  .public-release-body:has(.guide-worksheet) .guide-content > section {
    display: none !important;
  }

  .public-release-body:has(.guide-condition-sheet) .guide-layout,
  .public-release-body:has(.guide-worksheet) .guide-layout,
  .public-release-body:has(.guide-condition-sheet) .guide-content > section:has(.guide-condition-sheet),
  .public-release-body:has(.guide-worksheet) .guide-content > .guide-worksheet {
    display: block !important;
    margin: 0;
  }

  .public-release-body:has(.guide-condition-sheet) .guide-content > section:has(.guide-condition-sheet) > * {
    display: none !important;
  }

  .public-release-body:has(.guide-condition-sheet) .guide-content > section:has(.guide-condition-sheet) > h2,
  .public-release-body:has(.guide-condition-sheet) .guide-content > section:has(.guide-condition-sheet) > .guide-condition-sheet {
    display: block !important;
  }

  .guide-condition-sheet,
  .guide-worksheet {
    margin: 0;
    padding: 0;
    break-inside: avoid;
    border: 0;
    background: #ffffff;
    color: #000000;
  }

  .guide-condition-sheet > h3 {
    display: none;
  }

  .condition-sheet__grid {
    margin-top: 5mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-color: #777777;
  }

  .condition-sheet__item {
    min-height: 23mm;
    padding: 3mm;
    break-inside: avoid;
    border-color: #aaaaaa;
  }

  .condition-sheet__item dt,
  .condition-sheet__blank,
  .condition-sheet__example,
  .condition-sheet__example p,
  .guide-worksheet__result {
    color: #000000;
  }

  .condition-sheet__blank {
    min-height: 12mm;
    font-size: 8pt;
  }

  .condition-sheet__example {
    padding: 3mm;
    break-inside: avoid;
    border-color: #555555;
    background: #ffffff;
  }

  .guide-worksheet__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-color: #777777;
  }

  .guide-worksheet__table-wrap {
    overflow: visible;
    border-color: #777777;
  }

  .guide-worksheet__table {
    min-width: 0;
    table-layout: fixed;
    background: #ffffff;
    color: #000000;
    font-size: 7.5pt;
    line-height: 1.35;
  }

  .guide-worksheet__table caption,
  .guide-worksheet__table th,
  .guide-worksheet__table td {
    padding: 2.2mm;
    border-color: #aaaaaa;
    color: #000000;
  }

  .guide-worksheet__table thead th {
    background: #eeeeee;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f181d;
    --surface: #162229;
    --surface-subtle: #1b2a31;
    --surface-strong: #25363e;
    --ink: #edf4f6;
    --muted: #b5c3c9;
    --faint: #92a5ae;
    --line: #34474f;
    --line-strong: #4a5e67;
    --accent: #61b8e8;
    --accent-strong: #91d0f2;
    --accent-soft: #173b4e;
    --verified: #68c7b6;
    --verified-soft: #153d37;
    --attention: #f0b25a;
    --attention-soft: #3d2d17;
    --danger: #e78e88;
    --danger-soft: #412521;
    --focus: #83d3ff;
    --on-accent: #071219;
    --inverse-bg: #091217;
    --inverse-text: #f5f9fa;
    --inverse-muted: #b9c8ce;
    --inverse-line: #52646d;
    --inverse-accent: #91d0f2;
  }

  .brand-mark,
  .button--primary {
    color: var(--on-accent);
  }

  
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover:not(:disabled) {
    translate: none;
  }
}

/* Public information reading and keyboard navigation. */
.public-release-body .guide-content { line-height: 1.85; }
.public-release-body .guide-content > section { padding-top: 0.5rem; }
.public-release-body .guide-content > section > h2 { padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.public-release-body .guide-toc { max-height: calc(100dvh - 8rem); overflow-y: auto; scrollbar-width: thin; padding-inline: 0.25rem; }
.public-release-body .guide-toc a:hover,
.public-release-body .guide-toc a:focus-visible { background: var(--accent-soft); color: var(--accent-strong); }
.public-release-body .guide-directory > a { border-left: 3px solid var(--accent); transition: background var(--duration) var(--ease); }
.public-release-body .guide-directory > a:hover,
.public-release-body .guide-directory > a:focus-visible { background: var(--accent-soft); }
.public-release-body .guide-summary li::before { content: "・"; color: var(--accent); }
.public-release-body .guide-source-ref { white-space: normal; overflow-wrap: anywhere; }
.guide-table-hint { color: var(--muted); font-size: 0.82rem; }
.guide-worksheet__table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 48rem) {
  .public-release-body .guide-toc { max-height: none; overflow: visible; }
  .public-release-body .guide-content { line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .public-release-body .guide-directory > a { transition: none; }
}
@media print {
  .guide-table-hint { display: none; }
  .public-release-body .guide-content > section { padding-top: 0; }
  .public-release-body .guide-content > section > h2 { border-bottom: 0; }
  .public-release-body .guide-worksheet__table thead { display: table-header-group; }
  .public-release-body .guide-worksheet__table tr { break-inside: avoid; }
}
