:root {
  color-scheme: light;
  --navy: #102a43;
  --navy-soft: #29485f;
  --teal: #087f72;
  --teal-bright: #0ca58f;
  --teal-pale: #eaf8f5;
  --blue-pale: #edf5fa;
  --paper: #ffffff;
  --page: #f7fafc;
  --line: #d7e3e8;
  --muted: #5b7080;
  --focus: #0b78b7;
  --shadow: 0 16px 42px rgba(16, 42, 67, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #075e58;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(11, 120, 183, 0.32);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 820;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand svg {
  width: 28px;
  height: 28px;
  fill: var(--teal-bright);
}

.brand rect:first-child {
  fill: var(--teal);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.primary-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--navy-soft);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--blue-pale);
  color: var(--navy);
}

.primary-nav a[aria-current="page"] {
  background: var(--teal-pale);
  color: #056b61;
}

.guide-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 10%, rgba(12, 165, 143, 0.11), transparent 34%),
    linear-gradient(145deg, #f8fbfd 0%, #eef8f7 100%);
}

.hero-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 56px) 0 clamp(42px, 5vw, 56px);
}

.eyebrow,
.step-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 5.5vw, 3.25rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
}

.hero-summary {
  max-width: 730px;
  margin: 0 0 16px;
  color: var(--navy-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.guide-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
}

.hero-link:hover {
  background: #183d59;
  color: #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 760px);
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 84px;
  justify-content: space-between;
  gap: clamp(42px, 7vw, 86px);
}

.contents {
  position: sticky;
  top: 28px;
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contents > p {
  margin: 0 0 13px;
  color: var(--navy);
  font-weight: 800;
}

.contents ol {
  margin: 0;
  padding-left: 20px;
}

.contents li + li {
  margin-top: 10px;
}

.contents a {
  color: var(--muted);
  text-decoration: none;
}

.contents a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.contents-faq {
  display: inline-block;
  margin-top: 15px;
  font-weight: 720;
}

.guide-article {
  min-width: 0;
}

.guide-article p,
.guide-article li,
.guide-article a,
.primary-nav a {
  overflow-wrap: anywhere;
}

.intro {
  margin: 0 0 26px;
  color: var(--navy-soft);
  font-size: 1.16rem;
  line-height: 1.7;
}

.workspace-note {
  margin: 0 0 52px;
  padding: 19px 22px;
  border-left: 4px solid var(--teal-bright);
  border-radius: 0 10px 10px 0;
  background: var(--teal-pale);
  color: var(--navy-soft);
}

.workspace-note strong {
  color: var(--navy);
}

.workspace-note p {
  margin: 5px 0 0;
  font-size: 0.94rem;
}

.guide-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 21px;
  padding: 0 0 52px;
  scroll-margin-top: 24px;
}

.guide-step + .guide-step {
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid #a8dcd4;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 820;
  line-height: 1;
  place-items: center;
}

.guide-step p {
  margin: 0 0 17px;
  color: #314c60;
}

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

.guide-step b,
.workspace-note b {
  color: var(--navy);
  font-weight: 750;
}

.guide-step ul {
  margin: 0 0 19px;
  padding-left: 1.25em;
}

.guide-step li {
  padding-left: 0.2em;
  color: #314c60;
}

.guide-step li + li {
  margin-top: 7px;
}

.faq {
  padding: 48px 0 12px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

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

.faq summary {
  padding: 18px 34px 18px 0;
  color: var(--navy);
  font-weight: 760;
  cursor: pointer;
}

.faq details p {
  max-width: 690px;
  margin: -2px 0 20px;
  color: var(--navy-soft);
}

.next-action {
  display: flex;
  margin-top: 54px;
  padding: 26px 0 0;
  border-top: 3px solid var(--navy);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.next-action h2 {
  max-width: 510px;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.next-action a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid #98d2c8;
  border-radius: 8px;
  background: var(--teal-pale);
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
}

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

.footer-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 112px;
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  color: var(--navy);
  font-weight: 820;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
}

.footer-inner nav a {
  color: var(--navy-soft);
  font-size: 0.86rem;
  font-weight: 680;
  text-decoration: none;
}

.footer-inner p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

@media (max-width: 800px) {
  .guide-layout {
    display: block;
    width: min(760px, calc(100% - 32px));
    padding-top: 38px;
  }

  .contents {
    position: static;
    margin-bottom: 48px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--page);
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-inner p {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 9px 16px;
  }

  .brand {
    font-size: 1.06rem;
  }

  .brand svg {
    width: 23px;
    height: 23px;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 3px;
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
  }

  .primary-nav a {
    padding: 7px 8px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .primary-nav a[aria-current="page"] {
    white-space: normal;
    overflow-wrap: normal;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 48px 0 54px;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.1rem);
  }

  .guide-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .workspace-note {
    padding: 17px;
  }

  .next-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

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