:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #1d2733;
  --muted: #5c6878;
  --line: #d9e1ea;
  --fsu: #782f40;
  --orange: #fa4616;
  --blue: #174ea6;
  --green: #26734d;
  --gold: #a86f00;
  --shadow: 0 14px 35px rgba(29, 39, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--fsu);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 36px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  padding: 48px 0;
}

.header-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--fsu);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 3.1rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.06rem;
}

p {
  margin: 12px 0 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.verified {
  color: var(--muted);
  font-size: 0.94rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button.primary {
  border-color: var(--fsu);
  background: var(--fsu);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
}

.policy-notice {
  max-width: 680px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(250, 70, 22, 0.35);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fff7f3;
  color: #573123;
  line-height: 1.5;
}

.policy-notice strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.policy-band .policy-notice {
  max-width: 820px;
  margin-top: 0;
}

.button:focus-visible,
.copy-button:focus-visible,
.side-nav a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(250, 70, 22, 0.28);
  outline-offset: 2px;
}

.workflow-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workflow-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.side-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.side-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a.active {
  background: #f1f4f7;
  color: var(--fsu);
}

main {
  min-width: 0;
}

.content-band {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.content-band:first-child {
  padding-top: 4px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.flow-grid,
.choice-grid,
.info-grid,
.process-columns,
.reference-grid {
  display: grid;
  gap: 14px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid,
.info-grid,
.process-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card,
.choice-card,
.info-card,
.process-card,
.stat-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-card {
  min-height: 210px;
  padding: 18px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--fsu);
  color: #ffffff;
  font-weight: 850;
}

.step-card:nth-child(2) .step-number {
  background: var(--orange);
}

.step-card:nth-child(3) .step-number {
  background: var(--green);
}

.step-card:nth-child(4) .step-number {
  background: var(--blue);
}

.step-card p,
.choice-card p,
.info-card p,
.process-card li,
.plain-list li,
.timeline li,
.faq-list p {
  color: var(--muted);
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff4ef;
  color: #573123;
}

.choice-card,
.info-card,
.process-card {
  padding: 18px;
}

.choice-card.recommended {
  border-color: rgba(120, 47, 64, 0.42);
  box-shadow: inset 0 4px 0 var(--fsu);
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
}

.checklist label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--fsu);
}

.checklist span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.code-card {
  min-width: 0;
  border: 1px solid #c6d1dd;
  border-radius: 8px;
  background: #1d2733;
  overflow: hidden;
}

.code-card.compact {
  margin-top: 18px;
}

.code-card.template-card pre {
  overflow: hidden;
}

.code-card.template-card pre code {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.group-name {
  color: var(--fsu);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1em;
  font-weight: 800;
  white-space: nowrap;
}

.code-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.code-header h3 {
  color: #ffffff;
  font-size: 0.98rem;
}

.copy-button {
  min-width: 56px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
}

.copy-button.copied {
  border-color: rgba(77, 183, 120, 0.7);
  background: rgba(77, 183, 120, 0.22);
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

pre code {
  display: block;
  min-width: max-content;
  color: #eef5fc;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
}

.timeline li {
  padding-left: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  min-height: 118px;
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--fsu);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat-card p {
  color: var(--muted);
}

.supporting-note {
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.process-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  min-height: 52px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
}

.reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-grid a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer p {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  h1 {
    font-size: 2.55rem;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid,
  .choice-grid,
  .info-grid,
  .process-columns,
  .code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner,
  .page-shell,
  .site-footer p {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    padding: 34px 0;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1rem;
  }

  .action-row,
  .button {
    width: 100%;
  }

  .side-nav,
  .flow-grid,
  .choice-grid,
  .info-grid,
  .process-columns,
  .code-grid,
  .reference-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .content-band {
    padding: 30px 0;
  }

  .step-card {
    min-height: 0;
  }

}
