:root {
  scroll-behavior: smooth;
}

.guide-skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0b6b4b;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
}

.guide-skip-link:focus {
  transform: translateY(0);
}

.guide-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #d5e2de;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.guide-topbar-inner {
  display: flex;
  width: min(1120px, calc(100% - 28px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #143d32;
  font-size: 21px;
  font-weight: 950;
  text-decoration: none;
}

.guide-brand img {
  width: 34px;
  height: 34px;
}

.guide-topbar nav,
.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.guide-topbar nav a,
.guide-footer a {
  color: #17634f;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.guide-topbar a:focus-visible,
.guide-index a:focus-visible,
.guide-footer a:focus-visible,
.guide-content a:focus-visible {
  border-radius: 4px;
  outline: 3px solid #0b6b4b;
  outline-offset: 3px;
}

.guide-shell {
  width: min(1120px, calc(100% - 28px));
  padding-top: 34px;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid #c9ddd5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .2), transparent 34%),
    linear-gradient(135deg, #075d43, #0b7b59);
  color: #fff;
  box-shadow: 0 24px 64px rgba(11, 76, 57, .18);
}

.guide-hero .eyebrow {
  color: #ccebe0;
}

.guide-hero h1 {
  max-width: 760px;
  margin-top: 9px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.guide-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: #e5f4ef;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.guide-hero .button-link {
  border-color: #fff;
  background: #fff;
  color: #075d43;
}

.guide-hero .button-link.secondary-link {
  border-color: rgba(255, 255, 255, .64);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 26px;
}

.guide-index {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid #d5e2de;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 36px rgba(12, 30, 25, .06);
}

.guide-index nav {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.guide-index a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 7px;
  color: #34564b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.guide-index a:hover {
  background: #e9f4ef;
  color: #075d43;
}

.guide-content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.guide-section {
  scroll-margin-top: 88px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #d5e2de;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 15px 42px rgba(12, 30, 25, .07);
}

.guide-section > .eyebrow {
  margin-bottom: 7px;
  color: #0b7352;
}

.guide-section h2,
.guide-support h2 {
  margin: 0 0 14px;
  color: #103d31;
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.15;
}

.guide-section h3 {
  margin: 0 0 8px;
  color: #173f34;
  font-size: 17px;
}

.guide-section p,
.guide-section li,
.guide-section dd,
.guide-support p {
  color: #354b44;
  font-size: 15px;
  line-height: 1.68;
}

.guide-section p + p {
  margin-top: 12px;
}

.guide-steps,
.guide-list {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding-left: 22px;
}

.guide-steps li::marker {
  color: #0b7352;
  font-weight: 900;
}

.guide-muted {
  margin-top: 16px;
  color: #60736c !important;
  font-size: 13px !important;
}

.guide-figure {
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid #cdded8;
  border-radius: 12px;
  background: #f3f8f6;
}

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

.guide-figure.compact img {
  max-height: 500px;
  object-fit: cover;
  object-position: top center;
}

.guide-figure figcaption {
  padding: 10px 13px;
  border-top: 1px solid #d7e4df;
  color: #5c7069;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.guide-figure-pair {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.guide-figure-pair .guide-figure {
  margin-top: 0;
}

.guide-image-link {
  display: block;
  padding: 10px;
  background: #fff;
}

.guide-figure-pair .guide-image-link img {
  width: min(100%, 720px);
  margin: 0 auto;
}

.guide-portal-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.guide-portal-card,
.guide-comparison article {
  padding: 18px;
  border: 1px solid #d4e2dd;
  border-radius: 11px;
  background: #f8fbfa;
}

.guide-detail {
  display: grid;
  gap: 4px;
  margin-top: 17px;
  padding: 12px 14px;
  border-left: 3px solid #8ebfae;
  background: #edf5f2;
  color: #536a62;
  font-size: 12px;
  line-height: 1.55;
}

.guide-detail strong {
  color: #294d42;
}

.guide-detail code {
  overflow-wrap: anywhere;
  color: #34584c;
  font-size: .94em;
}

.guide-alert,
.guide-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #ead59d;
  border-left: 4px solid #cc8b00;
  border-radius: 8px;
  background: #fff7df;
  color: #4e411c;
  font-size: 13px;
  line-height: 1.58;
}

.guide-note {
  grid-template-columns: 1fr;
  border-color: #c9ddd5;
  border-left-color: #0b7352;
  background: #eef7f3;
  color: #36594d;
}

.guide-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.guide-status-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.guide-status-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid #d7e4df;
  border-radius: 9px;
  background: #f8fbfa;
}

.guide-status-list dt {
  color: #0b6b4b;
  font-size: 14px;
  font-weight: 950;
}

.guide-status-list dd {
  margin: 0;
}

.guide-section a {
  color: #0b6b4b;
  font-weight: 850;
}

.guide-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #bcd5cc;
  border-radius: 16px;
  background: #e8f4ef;
}

.guide-support .eyebrow {
  margin-bottom: 6px;
  color: #0b7352;
}

.guide-support .button-link {
  flex: 0 0 auto;
}

.guide-footer {
  display: flex;
  width: min(1120px, calc(100% - 28px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 0 34px;
  color: #60736c;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-index {
    position: static;
  }

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

  .guide-section {
    scroll-margin-top: 78px;
  }
}

@media (max-width: 620px) {
  .guide-topbar-inner {
    min-height: 58px;
  }

  .guide-topbar nav {
    gap: 10px;
  }

  .guide-brand {
    font-size: 19px;
  }

  .guide-brand img {
    width: 31px;
    height: 31px;
  }

  .guide-shell {
    padding-top: 18px;
  }

  .guide-hero {
    border-radius: 16px;
  }

  .guide-hero-actions,
  .guide-hero .button-link {
    width: 100%;
  }

  .guide-index nav,
  .guide-comparison {
    grid-template-columns: 1fr;
  }

  .guide-index a {
    min-height: 42px;
  }

  .guide-alert,
  .guide-status-list > div {
    grid-template-columns: 1fr;
  }

  .guide-support,
  .guide-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-support .button-link {
    width: 100%;
  }
}

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