.guides-page {
  min-height: 100vh;
}

.guides-hero {
  max-width: 760px;
  padding: 88px 0 64px;
}

.guides-eyebrow {
  margin: 0 0 14px;

  color: var(--blue, #0f3770);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.guides-hero h1 {
  margin: 0;

  color: #18385d;

  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.guides-lead {
  margin: 28px 0 0;

  color: #18385d;

  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
}

.guides-description {
  max-width: 650px;
  margin: 16px 0 0;

  color: #687486;

  font-size: 1rem;
  line-height: 1.75;
}

.guides-content {
  padding: 0 0 88px;
}

.guides-section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.guides-section-heading h2 {
  margin: 0;

  color: #18385d;

  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.guides-section-heading p {
  margin: 10px 0 0;

  color: #768092;

  line-height: 1.65;
}

.guides-status {
  padding: 28px 0;

  color: #768092;

  line-height: 1.6;
}

.guides-status[hidden] {
  display: none;
}

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

.guide-card {
  display: flex;
  flex-direction: column;

  min-height: 230px;
  padding: 28px;

  color: inherit;
  text-decoration: none;

  background: #ffffff;
  border: 1px solid #e8e8e3;
  border-radius: 18px;

  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(198, 161, 90, 0.55);
  outline: none;

  transform: translateY(-2px);

  box-shadow: 0 12px 32px rgba(24, 56, 93, 0.06);
}

.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-bottom: 20px;
}

.guide-chip {
  display: inline-flex;
  align-items: center;

  min-height: 28px;
  padding: 4px 10px;

  color: #40536d;

  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;

  background: rgba(198, 161, 90, 0.09);
  border: 1px solid rgba(198, 161, 90, 0.22);
  border-radius: 999px;
}

.guide-card h3 {
  margin: 0;

  color: #18385d;

  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.guide-card-description {
  margin: 12px 0 24px;

  color: #768092;

  font-size: 0.94rem;
  line-height: 1.65;
}

.guide-card-action {
  margin-top: auto;

  color: #0f3770;

  font-size: 0.9rem;
  font-weight: 600;
}

.guides-empty,
.guides-error {
  max-width: 680px;
  padding: 28px;

  background: #ffffff;
  border: 1px solid #e8e8e3;
  border-radius: 18px;
}

.guides-empty h3,
.guides-error h3 {
  margin: 0;

  color: #18385d;

  font-size: 1.1rem;
  font-weight: 600;
}

.guides-empty p,
.guides-error p {
  margin: 10px 0 0;

  color: #768092;

  line-height: 1.65;
}

@media (max-width: 760px) {
  .guides-hero {
    padding: 62px 0 48px;
  }

  .guides-content {
    padding-bottom: 64px;
  }

  .guides-list {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .guides-hero {
    padding-top: 46px;
  }

  .guide-card,
  .guides-empty,
  .guides-error {
    border-radius: 14px;
  }
}

/* --------------------------------------------------
   Guide detail
-------------------------------------------------- */

.guide-detail {
  max-width: 860px;
  padding: 72px 0 88px;
}

.guide-back {
  display: inline-flex;
  margin-bottom: 44px;

  color: #768092;

  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.guide-back:hover,
.guide-back:focus {
  color: #0f3770;
}

.guide-detail article > h1 {
  max-width: 820px;
  margin: 0;

  color: #18385d;

  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.guide-detail-description {
  max-width: 720px;
  margin: 24px 0 0;

  color: #687486;

  font-size: 1.05rem;
  line-height: 1.75;
}

.guide-steps-section {
  margin-top: 64px;
}

#guide-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;

  padding: 26px 28px;

  background: #ffffff;
  border: 1px solid #e8e8e3;
  border-radius: 18px;
}

.guide-step-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  color: #0f3770;

  font-size: 0.82rem;
  font-weight: 700;

  background: rgba(198, 161, 90, 0.12);
  border: 1px solid rgba(198, 161, 90, 0.26);
  border-radius: 50%;
}

.guide-step-body h3 {
  margin: 4px 0 0;

  color: #18385d;

  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}

.guide-step-statement {
  margin: 10px 0 0;

  color: #687486;

  line-height: 1.7;
}

@media (max-width: 760px) {
  .guide-detail {
    padding: 52px 0 64px;
  }

  .guide-back {
    margin-bottom: 34px;
  }

  .guide-steps-section {
    margin-top: 50px;
  }

  .guide-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 15px;

    padding: 22px;
  }

  .guide-step-number {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 520px) {
  .guide-step {
    border-radius: 14px;
  }
}

/* --------------------------------------------------
   Guides V1 premium layer
-------------------------------------------------- */

.guide-chip-jurisdiction {
  color: #18385d;
  background: rgba(15, 55, 112, 0.055);
  border-color: rgba(15, 55, 112, 0.13);
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: auto;
  padding-top: 4px;
}

.guide-card-count {
  color: #8a93a1;
  font-size: 0.82rem;
  font-weight: 500;
}

.guide-card-action {
  margin-top: 0;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  max-width: 720px;
  margin-top: 28px;
}

.guide-tags[hidden] {
  display: none;
}

.guide-tag {
  display: inline-flex;
  align-items: center;

  min-height: 30px;
  padding: 5px 11px;

  color: #687486;

  font-size: 0.76rem;
  font-weight: 500;

  border: 1px solid #e4e5e2;
  border-radius: 999px;
}

.guide-overview {
  display: grid;
  grid-template-columns:
    minmax(180px, 0.7fr)
    minmax(0, 1.3fr);
  gap: 52px;

  margin-top: 58px;
  padding: 32px 0;

  border-top: 1px solid rgba(198, 161, 90, 0.28);
  border-bottom: 1px solid rgba(198, 161, 90, 0.28);
}

.guide-overview-label,
.guide-section-eyebrow {
  margin: 0 0 9px;

  color: #a27f3d;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.guide-overview h2 {
  margin: 0;

  color: #18385d;

  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.guide-overview > p {
  align-self: end;

  max-width: 520px;
  margin: 0;

  color: #687486;

  font-size: 0.96rem;
  line-height: 1.75;
}

.guide-steps-section {
  margin-top: 76px;
}

.guide-steps-section .guides-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;

  max-width: none;
}

.guide-steps-section .guides-section-heading > p {
  flex: 0 0 auto;

  margin: 0 0 4px;

  font-size: 0.82rem;
}

#guide-steps {
  gap: 0;
}

.guide-step {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;

  padding: 32px 0;

  background: transparent;
  border: 0;
  border-top: 1px solid #e7e8e5;
  border-radius: 0;
}

.guide-step:last-child {
  border-bottom: 1px solid #e7e8e5;
}

.guide-step-number {
  width: 40px;
  height: 40px;
}

.guide-step-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 9px;

  color: #72806c;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.guide-step-verified::before {
  content: "";

  width: 6px;
  height: 6px;

  background: #819678;
  border-radius: 50%;
}

.guide-step-body h3 {
  max-width: 680px;
  margin: 0;

  font-size: clamp(1.12rem, 2vw, 1.3rem);
}

.guide-step-statement {
  max-width: 700px;
  margin-top: 13px;

  color: #4f6075;

  font-size: 1rem;
  line-height: 1.75;
}

.guide-step-explanation {
  max-width: 700px;
  margin-top: 15px;

  color: #687486;

  white-space: pre-line;

  font-size: 0.94rem;
  line-height: 1.78;
}

.guide-step-sources {
  max-width: 700px;
  margin-top: 22px;
  padding-top: 17px;

  border-top: 1px solid #efefec;
}

.guide-step-sources-label {
  margin: 0 0 8px;

  color: #8a93a1;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.guide-step-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.guide-step-source {
  color: #52667e;

  font-size: 0.78rem;
  line-height: 1.5;
}

a.guide-step-source {
  text-decoration:
    underline rgba(82, 102, 126, 0.28);
  text-underline-offset: 3px;
}

a.guide-step-source:hover,
a.guide-step-source:focus-visible {
  color: #0f3770;
}

.guide-finish {
  max-width: 700px;

  margin-top: 72px;
  padding: 38px 0 10px;
}

.guide-finish h2 {
  margin: 0;

  color: #18385d;

  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.guide-finish > p:not(.guide-section-eyebrow) {
  max-width: 590px;
  margin: 16px 0 0;

  color: #687486;

  line-height: 1.75;
}

.guide-finish > a {
  display: inline-flex;

  margin-top: 24px;

  color: #0f3770;

  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 760px) {
  .guide-overview {
    grid-template-columns: 1fr;
    gap: 18px;

    margin-top: 46px;
  }

  .guide-steps-section {
    margin-top: 60px;
  }

  .guide-steps-section .guides-section-heading {
    display: block;
  }

  .guide-steps-section .guides-section-heading > p {
    margin-top: 10px;
  }

  .guide-step {
    grid-template-columns:
      38px minmax(0, 1fr);
    gap: 16px;

    padding: 27px 0;
  }

  .guide-step-number {
    width: 34px;
    height: 34px;
  }

  .guide-finish {
    margin-top: 56px;
  }
}

@media (max-width: 520px) {
  .guide-step-source-list {
    display: grid;
  }
}


/* --------------------------------------------------
   Guides V1 final polish
--------------------------------------------------- */

/*
 * Keep long-form guidance comfortably readable.
 * The guide itself remains wide and spacious while
 * individual text blocks retain an editorial measure.
 */

.guide-step-body {
  min-width: 0;
  max-width: 720px;
}

.guide-step-body h3 {
  max-width: 660px;
}

.guide-step-statement,
.guide-step-explanation,
.guide-step-sources {
  max-width: 680px;
}


/*
 * Sources are supporting evidence, not competing
 * content. Keep them clearly discoverable but quiet.
 */

.guide-step-sources {
  margin-top: 24px;
  padding-top: 16px;

  border-top-color: rgba(24, 56, 93, 0.08);
}

.guide-step-sources-label {
  margin-bottom: 9px;

  color: #8993a1;

  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.guide-step-source-list {
  gap: 6px 18px;
}

.guide-step-source {
  color: #607086;

  font-size: 0.77rem;
  line-height: 1.55;
}

a.guide-step-source {
  text-decoration-color: rgba(82, 102, 126, 0.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a.guide-step-source:hover,
a.guide-step-source:focus-visible {
  color: #0f3770;
  text-decoration-color: rgba(15, 55, 112, 0.48);
}


/*
 * Guide cards should feel interactive without
 * looking like generic application UI.
 */

.guide-card {
  box-shadow:
    0 1px 2px rgba(24, 56, 93, 0.015),
    0 8px 24px rgba(24, 56, 93, 0.025);
}

.guide-card:hover,
.guide-card:focus-visible {
  box-shadow:
    0 2px 4px rgba(24, 56, 93, 0.025),
    0 14px 34px rgba(24, 56, 93, 0.055);
}

.guide-card-action {
  transition: transform 160ms ease;
}

.guide-card:hover .guide-card-action,
.guide-card:focus-visible .guide-card-action {
  transform: translateX(2px);
}


@media (max-width: 760px) {
  .guide-step-body,
  .guide-step-body h3,
  .guide-step-statement,
  .guide-step-explanation,
  .guide-step-sources {
    max-width: none;
  }
}

/* Guides language selector */

.guides-language {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guides-language select {
  min-width: 4.8rem;
  min-height: 2.5rem;
  padding: 0.45rem 1.8rem 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.guides-language select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
