/* Content pages: article rhythm, guidance, FAQs and reference tables. */
.page-intro {
  padding-block: clamp(44px, 6.5vw, 78px) 30px;
}
.page-intro h1 {
  max-width: 19ch;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.page-intro .intro-lead {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
  align-items: start;
  gap: clamp(36px, 6vw, 76px);
  padding-block: 18px clamp(68px, 9vw, 104px);
}
.article-main { min-width: 0; max-width: 74ch; }
.article-main > p,
.guide-sections p,
.faq-list p { color: var(--ink-soft); }
.article-main > p { margin-bottom: 1.2em; }
.article-main h2,
.guide-sections h2,
.timeline h2 {
  margin-block: 1.7em .55em;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.article-main h2:first-child,
.guide-sections h2:first-child { margin-top: 0; }
.article-main h3,
.guide-detail-body h3 {
  margin-block: 1.5em .45em;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.article-main li,
.guide-sections li { padding-left: .2em; }
.article-main li + li { margin-top: .55em; }
.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}
.article-aside h2 {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.article-aside p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.article-aside a { width: fit-content; font-weight: 600; }

.timeline {
  display: grid;
  gap: 0;
  margin: 1.8rem 0 2.2rem;
  padding: 0 0 0 26px;
  border-left: 2px solid var(--line);
  list-style: none;
}
.timeline li { position: relative; padding: 0 0 26px 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  position: absolute;
  top: 4px;
  left: -35px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--action, var(--ink-blue));
  box-shadow: 0 0 0 1px var(--line);
  content: "";
}
.timeline h2 { margin: 0 0 6px; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.callout,
.note {
  margin-block: 1.6rem;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--action, var(--ink-blue));
  border-radius: 8px 16px 16px 8px;
  background: var(--paper-soft);
}
.callout h2 { margin: 0 0 7px; font-family: var(--sans); font-size: 1.2rem; }
.callout p { margin: 0; color: var(--ink-soft); }
.callout p + p { margin-top: 10px; }
.note { color: var(--ink-soft); }

.guide-index {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 4px 30px;
}
.guide-index a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.guide-index a:hover { border-color: var(--action, var(--ink-blue)); color: var(--action, var(--ink-blue)); }
.guide-index a:focus-visible,
.guide-detail summary:focus-visible,
.faq-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.guide-sections {
  display: grid;
  gap: 20px;
  padding-block: 0 clamp(68px, 9vw, 100px);
}
.guide-sections > section {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-soft);
  scroll-margin-top: 110px;
}
.guide-sections > section > .eyebrow { margin-bottom: 12px; color: var(--action, var(--ink-blue)); }
.guide-sections ol { padding-inline-start: 1.35rem; }
.guide-sections li { margin-bottom: .7rem; }
.guide-sections li:last-child { margin-bottom: 0; }
.guide-detail {
  margin-top: 10px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  scroll-margin-top: 110px;
}
.guide-detail:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.guide-detail summary,
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 15px 48px 15px 18px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.guide-detail summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker { display: none; }
.guide-detail summary::marker,
.faq-list summary::marker { content: ""; }
.guide-detail summary::after,
.faq-list summary::after {
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--action, var(--ink-blue));
  content: "+";
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}
.guide-detail[open] > summary::after,
.faq-list details[open] > summary::after { content: "−"; }
.guide-detail summary span {
  flex: 0 0 auto;
  color: var(--action, var(--ink-blue));
  font-size: .84rem;
  font-weight: 650;
}
.guide-detail[open] > summary,
.faq-list details[open] > summary { border-bottom: 1px solid var(--line); }
.guide-detail-body { padding: 18px clamp(18px, 3vw, 25px) 23px; }
.guide-detail-body > :first-child { margin-top: 0; }
.guide-detail-body > :last-child { margin-bottom: 0; }
.guide-detail-body p { color: var(--ink-soft); }
.guide-detail-body li + li { margin-top: .55em; }
.guide-checked { color: var(--ink-soft); font-size: .84rem; }

.faq-list {
  display: grid;
  gap: 10px;
  padding-block: 12px clamp(68px, 9vw, 100px);
}
.faq-list h2 {
  margin: 1.5em 0 .2em;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-list h2:first-child { margin-top: 0; }
.faq-list details {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  scroll-margin-top: 110px;
}
.faq-list details:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.faq-list summary { min-height: 58px; }
.faq-list details p { margin: 0; padding: 16px 20px 19px; color: var(--ink-soft); }

.table-scroll {
  max-width: 100%;
  margin-block: 24px 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--line) transparent;
}
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.table-scroll table { width: 100%; border-collapse: collapse; background: var(--paper-soft); }
.table-scroll th,
.table-scroll td {
  min-width: 140px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table-scroll tr:last-child > * { border-bottom: 0; }
.table-scroll thead th { background: var(--paper-deep); color: var(--ink); font-weight: 700; }
.table-scroll tbody th { color: var(--ink); font-weight: 650; }
.table-scroll td { color: var(--ink-soft); }
.article-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-next a { font-weight: 650; }

@media (max-width: 760px) {
  .page-intro { padding-top: 42px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .article-aside { position: static; }
  .guide-sections > section,
  .guide-detail,
  .faq-list details { scroll-margin-top: 96px; }
  .guide-detail summary,
  .faq-list summary { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 14px; }
  .guide-detail summary span { padding-inline-start: 1px; }
}
@media (max-width: 480px) {
  .page-intro h1 { overflow-wrap: anywhere; }
  .guide-index { gap: 8px; }
  .guide-index a { min-height: 40px; padding-inline: 12px; }
  .guide-sections > section { padding: 18px 16px; }
  .guide-detail summary,
  .faq-list summary { padding-inline-start: 15px; }
  .guide-detail-body { padding-inline: 16px; }
  .table-scroll th,
  .table-scroll td { min-width: 125px; padding: 11px 12px; }
  .article-next { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-index a { transition: none; }
}
