.authority-guide-page {
  background:
    radial-gradient(circle at 9% 28%, rgba(182, 141, 48, .055), transparent 24rem),
    radial-gradient(circle at 91% 72%, rgba(13, 31, 52, .045), transparent 30rem),
    #f5f1e9;
  color: #101c2d;
}

.authority-guide-page .guide-hero {
  min-height: 70vh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 31, .96) 0%,
      rgba(7, 17, 31, .88) 42%,
      rgba(7, 17, 31, .62) 55%,
      rgba(7, 17, 31, .16) 68%,
      rgba(7, 17, 31, 0) 78%
    ),
    var(--guide-hero-image) center/cover no-repeat;
  color: #fff;
  padding: clamp(7rem, 13vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.authority-guide-page .guide-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #b68d30 24%, #e2c875 50%, #b68d30 76%, transparent 100%);
  opacity: .82;
}

.authority-guide-page .guide-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 1;
  right: clamp(-180px, -8vw, -70px);
  bottom: clamp(-230px, -17vw, -120px);
  border: 1px solid rgba(216, 182, 92, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(216, 182, 92, .04),
    0 0 0 88px rgba(216, 182, 92, .025);
}

.authority-guide-page .guide-hero-copy,
.authority-guide-page .guide-rail {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.authority-guide-page .guide-hero-copy {
  max-width: 820px;
  margin-left: max(20px, calc((100vw - 1180px) / 2));
}

.guide-kicker,
.guide-meta-label {
  font: 600 .75rem/1.35 "IBM Plex Sans", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d8b65c;
}

.guide-hero h1 {
  margin: .8rem 0 1.1rem;
  max-width: 800px;
  font: 500 clamp(2.65rem, 6vw, 5.5rem)/.92 "Cormorant Garamond", serif;
  letter-spacing: -.035em;
}

.guide-hero-deck {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font: 400 clamp(1.04rem, 1.8vw, 1.3rem)/1.65 "IBM Plex Sans", sans-serif;
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.2rem;
  margin-top: 1.6rem;
  color: rgba(255,255,255,.72);
  font: 500 .82rem/1.5 "IBM Plex Sans", sans-serif;
}

.guide-body {
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

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

.guide-answer {
  position: relative;
  overflow: hidden;
  margin: 0 0 3rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(13, 31, 52, .16);
  border-left: 4px solid #b68d30;
  background:
    linear-gradient(135deg, rgba(216, 182, 92, .08), transparent 45%),
    #fff;
  box-shadow: 0 20px 55px rgba(13, 31, 52, .07);
}

.guide-answer::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -38px;
  bottom: -38px;
  border: 1px solid rgba(182, 141, 48, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(182, 141, 48, .035);
  pointer-events: none;
}

.guide-answer strong {
  display: block;
  margin-bottom: .55rem;
  color: #8b671d;
  font: 600 .76rem/1.4 "IBM Plex Sans", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.guide-answer p {
  margin: 0;
  color: #17253a;
  font: 500 clamp(1.15rem, 2vw, 1.42rem)/1.55 "Cormorant Garamond", serif;
}

.guide-prose h2 {
  margin: 3.2rem 0 1rem;
  color: #0a192b;
  font: 600 clamp(2rem, 4vw, 3.15rem)/1 "Cormorant Garamond", serif;
  letter-spacing: -.025em;
}

.guide-prose h3 {
  margin: 2rem 0 .65rem;
  color: #12233a;
  font: 600 1.35rem/1.2 "Cormorant Garamond", serif;
}

.guide-prose p,
.guide-prose li {
  color: #344257;
  font: 400 1rem/1.82 "IBM Plex Sans", sans-serif;
}

.guide-prose a {
  color: #765515;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-checklist {
  counter-reset: guide-check;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2.4rem;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  counter-increment: guide-check;
  position: relative;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(13, 31, 52, .12);
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.6));
  box-shadow: 0 12px 28px rgba(13, 31, 52, .035);
}

.guide-checklist li::after {
  content: counter(guide-check, decimal-leading-zero);
  position: absolute;
  top: .75rem;
  right: .9rem;
  color: rgba(182, 141, 48, .32);
  font: 600 .72rem/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .08em;
}

.guide-checklist strong {
  display: block;
  margin-bottom: .3rem;
  color: #102039;
}

.guide-case-grid {
  counter-reset: guide-case;
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.guide-case {
  counter-increment: guide-case;
  position: relative;
  overflow: hidden;
  padding: clamp(1.55rem, 3vw, 2.25rem);
  border: 1px solid rgba(13, 31, 52, .14);
  background:
    linear-gradient(145deg, rgba(255,255,255,1), rgba(252,250,246,.92));
  box-shadow: 0 14px 34px rgba(13, 31, 52, .045);
}

.guide-case::after {
  content: counter(guide-case, decimal-leading-zero);
  position: absolute;
  top: -.3rem;
  right: .75rem;
  color: rgba(13, 31, 52, .045);
  font: 600 clamp(4.5rem, 9vw, 7rem)/1 "Cormorant Garamond", serif;
  pointer-events: none;
}

.guide-case.is-panama {
  border-top: 3px solid #b68d30;
  background:
    linear-gradient(125deg, rgba(216, 182, 92, .13), transparent 50%),
    #fff;
  box-shadow: 0 22px 48px rgba(13, 31, 52, .085);
}

.guide-case-priority {
  display: flex;
  width: max-content;
  margin: 0 0 .85rem;
  padding: .42rem .66rem;
  border: 1px solid rgba(182, 141, 48, .38);
  border-radius: 999px;
  background: rgba(216, 182, 92, .11);
  color: #765515;
  font: 600 .66rem/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-case h3 {
  margin-top: .45rem;
}

.guide-case-outcome {
  padding-top: .85rem;
  border-top: 1px solid rgba(13, 31, 52, .1);
}

.guide-caution {
  position: relative;
  overflow: hidden;
  margin: 2.2rem 0;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid #d8b65c;
  background:
    linear-gradient(110deg, rgba(216, 182, 92, .09), transparent 45%),
    #0d1d32;
  color: rgba(255,255,255,.86);
  box-shadow: 0 18px 38px rgba(13, 31, 52, .12);
}

.guide-caution p {
  margin: 0;
  color: inherit;
}

.guide-sidebar {
  position: sticky;
  top: 120px;
}

.guide-side-card {
  margin-bottom: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(13, 31, 52, .13);
  border-top: 2px solid rgba(182, 141, 48, .6);
  background:
    linear-gradient(145deg, rgba(216, 182, 92, .055), transparent 42%),
    #fff;
  box-shadow: 0 14px 32px rgba(13, 31, 52, .045);
}

.guide-side-card h2 {
  margin: .35rem 0 .8rem;
  font: 600 1.55rem/1.1 "Cormorant Garamond", serif;
}

.guide-side-card p,
.guide-side-card li {
  color: #4a5669;
  font: 400 .88rem/1.65 "IBM Plex Sans", sans-serif;
}

.guide-side-card ul {
  padding-left: 1.1rem;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #b68d30;
  background: #b68d30;
  color: #091727 !important;
  text-decoration: none !important;
  font: 600 .79rem/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.guide-cta:hover,
.guide-cta:focus-visible {
  background: #0d1d32;
  color: #fff !important;
  transform: translateY(-1px);
}

.guide-sources {
  margin-top: 4rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(13, 31, 52, .13);
  border-left: 3px solid rgba(182, 141, 48, .8);
  background: rgba(255,255,255,.52);
  box-shadow: 0 16px 38px rgba(13, 31, 52, .04);
}

.guide-sources ol {
  padding-left: 1.25rem;
}

.guide-disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(13, 31, 52, .14);
  color: #566174;
  font: 400 .82rem/1.7 "IBM Plex Sans", sans-serif;
}

@media (max-width: 900px) {
  .authority-guide-page .guide-hero {
    min-height: 620px;
    background:
      linear-gradient(180deg, rgba(7, 17, 31, .48) 0%, rgba(7, 17, 31, .95) 66%),
      var(--guide-hero-image) 62% center/cover no-repeat;
  }
  .authority-guide-page .guide-hero-copy {
    width: min(100% - 36px, 720px);
    margin-inline: auto;
  }
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .authority-guide-page .guide-hero::after {
    right: -190px;
    bottom: -210px;
  }
  .guide-checklist {
    grid-template-columns: 1fr;
  }
  .guide-case::after {
    font-size: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-cta {
    transition: none;
  }
}
