/* Guide pages share the homepage colors, header and buttons through theme.css. */
:root {
  --surface: #fffdf7;
  --link: #1935be;
  --tint: #e9edff;
}
main.wrap { padding-block: 16px 46px; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px; font-size: 14px; font-weight: 700;
}
.breadcrumb a { color: var(--link); text-underline-offset: .18em; }
.breadcrumb > [aria-current] { overflow-wrap: anywhere; }
.page-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(106px, 20vw, 290px);
  min-height: 190px;
  border: var(--line); background: var(--blue); color: #fff;
}
.page-hero-copy { align-self: center; padding: clamp(20px, 4vw, 54px); }
.page-hero h1 {
  margin: 0; font-size: clamp(34px, 5.25vw, 73px); font-weight: 950;
  line-height: 1.08; letter-spacing: -.055em; overflow-wrap: anywhere;
}
.page-hero .lead { max-width: 55em; margin: 14px 0 0; font-size: clamp(16px, 1.65vw, 21px); }
.page-hero-mark {
  display: grid; place-items: center; overflow: hidden;
  border-left: var(--line); background: var(--lime);
  background-image: radial-gradient(#18181b40 1px, transparent 1px);
  background-size: 14px 14px;
}
.page-hero-mark .brand-mark {
  width: 53%; max-width: 128px; background: var(--ink);
  animation: compass-in 600ms var(--ease);
}
@keyframes compass-in {
  from { transform: rotate(-45deg) scale(.82); }
  to { transform: rotate(0) scale(1); }
}

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  align-items: start; gap: clamp(18px, 3.2vw, 46px);
  margin-top: clamp(20px, 3vw, 36px);
}
.article-body { min-width: 0; line-height: 1.75; }
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.article-body h2[id] { scroll-margin-top: 18px; }
.article-body > h2 {
  margin: 34px 0 12px; padding: 9px 13px;
  border: var(--line); background: var(--tint);
  font-size: clamp(21px, 2.45vw, 31px); line-height: 1.28;
  letter-spacing: -.035em;
}
.article-body > h3 { margin: 22px 0 6px; font-size: 19px; line-height: 1.45; }
.article-body p { margin: 10px 0; }
.article-body ul, .article-body ol { margin: 10px 0; padding-left: 24px; }
.article-body li + li { margin-top: 5px; }
.article-body li::marker { color: var(--link); }
.article-body a, .site-footer a {
  color: var(--link); font-weight: 700; text-underline-offset: .19em;
  overflow-wrap: anywhere;
}
.article-body a:hover, .site-footer a:hover { text-decoration-thickness: 2px; }
.article-body .action { color: var(--ink); font-weight: 800; }
.article-body .callout {
  margin: 18px 0; padding: 10px 16px;
  border: var(--line); border-left-width: 8px; border-left-color: var(--orange);
  background: #ffebe4;
}
.callout p { margin: 6px 0; }
.price-note { font-size: 14px; color: #464650; }

.page-directory {
  position: sticky; top: 16px;
  border: var(--line); background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
}
.page-directory p {
  margin: 0; padding: 9px 13px;
  border-bottom: var(--line); background: var(--violet); font-weight: 900;
}
.page-directory ul { list-style: none; margin: 0; padding: 5px 12px; }
.page-directory li + li { border-top: 1px solid #18181b36; }
.page-directory a {
  display: flex; align-items: center; min-height: 44px; padding-block: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.page-directory a:hover { color: var(--link); text-decoration: underline; text-underline-offset: .18em; }

.table-scroll {
  margin: 14px 0; overflow-x: auto;
  border: var(--line); box-shadow: 3px 3px 0 var(--ink); background: var(--surface);
}
.table-scroll table {
  width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 15px; line-height: 1.55;
}
.table-scroll :is(th, td):not(:last-child) { white-space: nowrap; }
.article-body .table-hint { display: none; font-size: 14px; color: #464650; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--blue); color: #fff; font-weight: 800; }
td { border-top: 1px solid #18181b55; }
td:first-child { font-weight: 750; }
tbody tr:nth-child(even) { background: #f1eefb; }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.faq-item { border: var(--line); background: var(--surface); box-shadow: 3px 3px 0 var(--ink); }
.faq-item h2 {
  margin: 0; padding: 12px 14px;
  background: var(--tint); border-bottom: var(--line);
  font-size: 18px; line-height: 1.42;
}
.faq-item:nth-child(3n + 2) h2 { background: #f0e7ff; }
.faq-item:nth-child(3n) h2 { background: #f1f9c9; }
.faq-item .answer { margin: 0; padding: 12px 14px 16px; }
.article-body .faq-action { margin-top: 20px; }

.article-body .steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative; padding: 13px 15px 13px 64px; min-height: 60px;
  border: var(--line); background: var(--surface);
}
.article-body .steps li + li { margin-top: 13px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; inset: 12px auto auto 12px;
  display: grid; place-items: center;
  width: 36px; aspect-ratio: 1; border: var(--line);
  background: var(--lime); font: 900 16px/1 system-ui;
}
.steps li:nth-child(3n + 2)::before { background: var(--orange); }
.steps li:nth-child(3n)::before { background: var(--violet); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; inset: 100% auto auto 29px; width: 2px; height: 15px;
  background: var(--ink);
}

.site-footer { border-top: var(--line); font-size: 14px; }
.site-footer-inner { padding-block: 14px 26px; }
.site-footer-inner p { margin: 8px 0 0; }
.footer-directory {
  display: flex; flex-wrap: wrap; column-gap: 20px;
  border-bottom: 1px solid #18181b55; margin-bottom: 12px;
}
.footer-directory a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-directory a:is(:hover, [aria-current="page"]) { text-decoration: underline; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .page-directory { position: static; }
  .page-directory ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
  .page-directory li + li { border-top: 0; }
}
@media (max-width: 620px) {
  main.wrap { padding-block: 12px 32px; }
  .page-hero { grid-template-columns: minmax(0, 1fr) 52px; min-height: 0; }
  .page-hero-copy { padding: 18px 14px; }
  .page-hero .lead { margin-top: 10px; }
  .page-hero-mark .brand-mark { width: 68%; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 8px; }
  .table-scroll table { font-size: 14px; }
}
@media (max-width: 515px) {
  .article-body .table-hint { display: block; }
  .table-hint + .table-scroll { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-mark .brand-mark { animation: none; }
}
