/* Guide hub and article pages only. Home-page styling remains in styles.css. */
.guides-page {
  --guides-deep: var(--deep, #083A50);
  --guides-teal: var(--teal, #0B4F6C);
  --guides-aqua: var(--aqua, #1E9BA0);
  --guides-sand: var(--sand, #F6EFE3);
  --guides-coral: var(--coral, #E07A5F);
  --guides-amber: var(--amber, #F2A65A);
  --guides-text: var(--text, #22313A);
  min-width: 0;
  color: var(--guides-text);
  background: #fff;
}

.guides-page *,
.guides-page *::before,
.guides-page *::after {
  box-sizing: border-box;
}

.guides-page a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.guides-page a:focus-visible,
.guides-page button:focus-visible,
.guides-page input:focus-visible,
.guides-page .article-table-scroll:focus-visible {
  outline: 3px solid var(--guides-amber);
  outline-offset: 4px;
}

.guides-page .guides-container {
  width: min(1000px, calc(100% - 80px));
  margin-inline: auto;
}

/* Header and path */
.guides-page .guides-header {
  padding-block: 25px 23px;
  border-bottom: 1px solid #E3EBE9;
}

.guides-page .guides-header > .guides-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.guides-page .guides-header .brand {
  color: var(--guides-deep);
  text-decoration: none;
  flex: 0 0 auto;
}

.guides-page .guides-header .brand-dot {
  color: var(--guides-amber);
}

.guides-page .guides-header .guides-home-signup {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  text-align: right;
  color: var(--guides-teal);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.guides-page .guides-breadcrumbs {
  padding-top: 20px;
}

.guides-page .guides-breadcrumbs > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #607983;
  font-size: 12px;
  line-height: 1.6;
  list-style: none;
}

.guides-page .guides-breadcrumbs > ol > li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.guides-page .guides-breadcrumbs > ol > li + li::before {
  content: "/";
  margin-right: 6px;
  color: #94A5A8;
}

.guides-page .guides-breadcrumbs a {
  color: var(--guides-teal);
}

.guides-page .guides-breadcrumbs [aria-current="page"] {
  color: #63757A;
  text-decoration: none;
}

/* Hub */
.guides-page .guides-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 7vw, 88px);
  padding-block: clamp(42px, 7vw, 76px) clamp(38px, 6vw, 64px);
  border-bottom: 1px solid #E3EBE9;
}

.guides-page .guides-hub-header h1,
.guides-page .guides-article h1 {
  margin: 0;
  color: var(--guides-deep);
  font-weight: 740;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

.guides-page .guides-hub-header h1 {
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.06;
}

.guides-page .guides-cover {
  display: block;
  width: min(225px, 28vw);
  height: auto;
  flex: 0 0 auto;
  border-radius: 10px;
}

.guides-page .guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: 42px 76px;
}

.guides-page .guides-card {
  display: flex;
  min-width: 0;
  min-height: 255px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3.5vw, 34px);
  border: 1px solid #DCE7E5;
  border-radius: 16px;
  background: #fff;
}

.guides-page .guides-card h2 {
  margin: 0;
  color: var(--guides-deep);
  font-size: clamp(22px, 2.3vw, 27px);
  font-weight: 710;
  letter-spacing: -0.035em;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.guides-page .guides-card h2 a {
  color: inherit;
  text-decoration-color: rgba(11, 79, 108, 0.38);
}

.guides-page .guides-card h2 a:hover {
  color: var(--guides-teal);
  text-decoration-color: currentColor;
}

.guides-page .guides-card-summary {
  width: 100%;
  margin: 15px 0 24px;
  overflow: hidden;
  color: #5C7178;
  font-size: 14px;
  line-height: 1.75;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guides-page .button.guides-read-button {
  min-height: 44px;
  margin-top: auto;
  padding: 10px 17px;
  border: 1px solid var(--guides-teal);
  border-radius: 9px;
  background: var(--guides-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.guides-page .button.guides-read-button:hover {
  transform: none;
  border-color: var(--guides-deep);
  background: var(--guides-deep);
}

/* Articles */
.guides-page .guides-article {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-block: clamp(39px, 6vw, 72px) clamp(47px, 7vw, 84px);
}

.guides-page .guides-article h1 {
  max-width: 750px;
  font-size: clamp(35px, 5.5vw, 54px);
  line-height: 1.1;
  text-wrap: balance;
}

.guides-page .guides-prose {
  margin-top: 35px;
  color: #33474E;
  font-size: 17px;
  line-height: 1.85;
}

.guides-page .guides-prose p {
  margin: 0;
}

.guides-page .guides-prose p + p,
.guides-page .guides-prose ul + p,
.guides-page .guides-prose ol + p,
.guides-page .guides-prose .article-table-scroll + p {
  margin-top: 1.5em;
}

.guides-page .guides-prose h2 {
  margin: 2.7em 0 0.85em;
  color: var(--guides-deep);
  font-size: clamp(25px, 3.2vw, 32px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guides-page .guides-prose ul,
.guides-page .guides-prose ol {
  margin: 1.45em 0;
  padding-left: 1.35em;
}

.guides-page .guides-prose li + li {
  margin-top: 0.62em;
}

.guides-page .guides-prose li::marker {
  color: var(--guides-aqua);
  font-weight: 700;
}

.guides-page .guides-prose em {
  color: #465C64;
}

.guides-page .guides-prose strong {
  color: var(--guides-deep);
  font-weight: 720;
}

.guides-page .guides-prose .article-checklist {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.guides-page .guides-prose .article-checklist li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guides-page .guides-prose .article-checklist .checklist-box {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 0.47em;
  border: 1.5px solid var(--guides-aqua);
  border-radius: 4px;
  background: #F5FBFA;
}

/* The scroll wrapper intentionally owns horizontal overflow, never the document. */
.guides-page .guides-prose .article-table-scroll {
  width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #DDE7E5;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #8FAAAD #F2F6F4;
  scrollbar-width: thin;
}

.guides-page .guides-prose .article-table-scroll table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  color: #385057;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.guides-page .guides-prose .article-table-scroll th,
.guides-page .guides-prose .article-table-scroll td {
  padding: 14px 17px;
  vertical-align: top;
  border-bottom: 1px solid #E2EBE9;
}

.guides-page .guides-prose .article-table-scroll th {
  color: var(--guides-deep);
  background: var(--guides-sand);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.guides-page .guides-prose .article-table-scroll tr:last-child td {
  border-bottom: 0;
}

/* Reading path and conversion area */
.guides-page .guides-series {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 37px);
  border-left: 3px solid var(--guides-coral);
  border-radius: 0 16px 16px 0;
  background: var(--guides-sand);
}

.guides-page .guides-series h2 {
  margin: 0;
  color: var(--guides-deep);
  font-size: 22px;
  font-weight: 710;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.guides-page .guides-series ul {
  display: grid;
  gap: 10px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.guides-page .guides-series li {
  color: #46616A;
  font-size: 14px;
  line-height: 1.65;
}

.guides-page .guides-series a {
  color: var(--guides-teal);
  font-weight: 630;
}

.guides-page .guides-series > a:last-child {
  display: inline-block;
  margin-top: 20px;
  color: var(--guides-deep);
  font-size: 13px;
  font-weight: 700;
}

.guides-page .guides-pagination {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding-top: 26px;
  border-top: 1px solid #DDE7E5;
}

.guides-page .guides-pagination a {
  width: min(46%, 300px);
  color: var(--guides-teal);
  font-size: 13px;
  font-weight: 670;
  line-height: 1.55;
}

.guides-page .guides-pagination .guides-next {
  margin-left: auto;
  text-align: right;
}

.guides-page .guides-cta {
  width: min(1000px, calc(100% - 80px));
  margin: clamp(56px, 8vw, 92px) auto clamp(52px, 7vw, 80px);
  padding: clamp(31px, 5vw, 53px);
  border-radius: 16px;
  background: var(--guides-deep);
  color: #fff;
}

.guides-page .guides-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.guides-page .guides-cta .lead-form {
  max-width: 535px;
  margin-top: 24px;
}

.guides-page .guides-cta .form-fields {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
}

.guides-page .guides-cta .field label {
  display: block;
  margin-bottom: 8px;
  color: #F1F6F7;
  font-size: 11px;
  font-weight: 580;
  line-height: 1.45;
}

.guides-page .guides-cta .field input {
  width: 100%;
  height: 51px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--guides-text);
  font: inherit;
  font-size: 14px;
}

.guides-page .guides-cta .field input::placeholder {
  color: #717E85;
  opacity: 1;
}

.guides-page .guides-cta .field input:focus {
  border-color: var(--guides-amber);
  outline: 3px solid rgba(242, 166, 90, 0.5);
  outline-offset: 2px;
}

.guides-page .guides-cta .field input[aria-invalid="true"] {
  border-color: #FFC9B3;
}

.guides-page .guides-cta .field-error,
.guides-page .guides-cta .form-status {
  display: block;
  color: #FFE0D5;
  font-size: 11px;
  line-height: 1.5;
}

.guides-page .guides-cta .field-error:not(:empty) {
  margin-top: 7px;
}

.guides-page .guides-cta .form-status:not(:empty) {
  margin-top: 12px;
}

.guides-page .guides-cta .button-primary {
  width: 100%;
  min-height: 53px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--guides-coral);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(85, 34, 25, 0.25);
  transition: background-color 0.16s ease;
}

.guides-page .guides-cta .button-primary:hover {
  transform: none;
  background: #D76F55;
}

.guides-page .guides-cta .button-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.guides-page .guides-cta .form-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: #D6E6EA;
  font-size: 10px;
  line-height: 1.5;
}

.guides-page .guides-cta .form-success {
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.guides-page .guides-cta .form-success h3 {
  margin: 10px 0;
  font-size: 23px;
}

.guides-page .guides-cta .form-success p {
  font-size: 14px;
  line-height: 1.7;
}

.guides-page .guides-cta .form-success a {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
}

/* Existing footer markup remains intact; this only supports the new note. */
.guides-page .footer {
  color: #78878C;
}

.guides-page .guides-legal-note {
  max-width: 760px;
  margin: 9px auto 0;
  color: #859398;
  font-size: 9px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .guides-page .guides-container,
  .guides-page .guides-cta {
    width: calc(100% - 40px);
  }

  .guides-page .guides-header {
    padding-block: 19px;
  }

  .guides-page .guides-header > .guides-container {
    gap: 15px;
  }

  .guides-page .guides-header .brand {
    font-size: 21px;
  }

  .guides-page .guides-header .brand img {
    width: 32px;
    height: 32px;
  }

  .guides-page .guides-header .guides-home-signup {
    font-size: 12px;
    text-align: right;
  }

  .guides-page .guides-breadcrumbs {
    padding-top: 16px;
  }

  .guides-page .guides-hub-header {
    gap: 21px;
    padding-block: 34px 33px;
  }

  .guides-page .guides-hub-header h1 {
    font-size: clamp(37px, 11vw, 47px);
  }

  .guides-page .guides-cover {
    width: min(108px, 29vw);
    border-radius: 7px;
  }

  .guides-page .guides-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 29px 49px;
  }

  .guides-page .guides-card {
    min-height: 222px;
    padding: 25px 23px;
  }

  .guides-page .guides-card h2 {
    font-size: 23px;
  }

  .guides-page .guides-card-summary {
    margin-block: 12px 21px;
    font-size: 13px;
  }

  .guides-page .guides-article {
    padding-block: 34px 50px;
  }

  .guides-page .guides-article h1 {
    font-size: clamp(32px, 9.2vw, 42px);
    line-height: 1.13;
    text-wrap: pretty;
  }

  .guides-page .guides-prose {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.85;
  }

  .guides-page .guides-prose h2 {
    margin-top: 2.4em;
    font-size: 25px;
  }

  .guides-page .guides-prose ul,
  .guides-page .guides-prose ol {
    padding-left: 1.25em;
  }

  .guides-page .guides-prose .article-table-scroll {
    margin-inline: 0;
    border-radius: 10px;
  }

  .guides-page .guides-prose .article-table-scroll th,
  .guides-page .guides-prose .article-table-scroll td {
    padding: 12px 14px;
  }

  .guides-page .guides-series {
    padding: 25px 22px;
  }

  .guides-page .guides-series h2 {
    font-size: 20px;
  }

  .guides-page .guides-pagination {
    gap: 15px;
    margin-top: 28px;
    padding-top: 22px;
  }

  .guides-page .guides-pagination a {
    font-size: 12px;
  }

  .guides-page .guides-cta {
    margin-block: 48px 52px;
    padding: 29px 22px;
  }

  .guides-page .guides-cta h2 {
    font-size: 29px;
  }

  .guides-page .guides-cta .lead-form {
    margin-top: 21px;
  }

  .guides-page .guides-cta .form-fields {
    gap: 9px;
  }

  .guides-page .guides-cta .field input {
    height: 50px;
    padding-inline: 12px;
    font-size: 16px;
  }

  .guides-page .guides-cta .field input::placeholder {
    font-size: 12px;
  }

  .guides-page .guides-legal-note {
    padding-inline: 20px;
  }
}

@media (max-width: 390px) {
  .guides-page .guides-header .guides-home-signup {
    max-width: 116px;
  }

  .guides-page .guides-hub-header {
    gap: 15px;
  }

  .guides-page .guides-cover {
    width: 91px;
  }

  .guides-page .guides-cta .form-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guides-page *,
  .guides-page *::before,
  .guides-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
