/* FAQ additions: isolated from the existing portfolio components. */
.faq-band {
  background: var(--paper);
}

.faq-home-head {
  max-width: 940px;
}

.faq-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.faq-home-card {
  position: relative;
  min-height: 390px;
  padding: 34px 30px 30px;
  border: 1px solid rgba(40, 49, 84, 0.34);
  background: rgba(255, 253, 248, 0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.faq-home-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 42%;
  height: 4px;
  background: var(--orange);
}

.faq-home-card:hover {
  transform: translateY(-5px);
  border-color: var(--navy);
  box-shadow: 0 20px 34px rgba(40, 49, 84, 0.12);
}

.faq-home-index {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.faq-home-topic {
  margin: 16px 0 9px;
  color: #2f5f9f;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-home-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.28rem, 1.7vw, 1.72rem);
  line-height: 1.25;
}

.faq-home-card > p:last-of-type {
  margin: 18px 0 28px;
  color: rgba(23, 32, 57, 0.72);
  font-size: 0.96rem;
  line-height: 1.75;
}

.faq-home-card a {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(40, 49, 84, 0.18);
}

.faq-home-card a span {
  color: var(--orange);
  font-size: 1.1rem;
}

.faq-home-action {
  max-width: 1320px;
  margin: 28px auto 0;
  display: flex;
  justify-content: flex-end;
}

/* FAQ hub and article pages. */
.faq-page {
  background: var(--paper);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 116px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.faq-page .side-brand {
  margin-bottom: 32px;
}

.faq-page-main {
  overflow: clip;
}

.faq-hero,
.article-hero {
  background: var(--navy);
  color: var(--paper);
}

.faq-hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
}

.faq-hero-grid,
.article-hero-grid {
  width: min(100%, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.68fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: center;
}

.faq-breadcrumbs {
  margin: 0 0 28px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
}

.faq-breadcrumbs a:hover {
  color: var(--orange-2);
}

.faq-breadcrumbs span {
  margin: 0 9px;
  color: var(--orange);
}

.faq-kicker {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-hero h1,
.article-hero h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(2.35rem, 4.8vw, 5.25rem);
  line-height: 1.04;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.faq-hero-copy > p:last-child,
.article-hero-copy > p:last-of-type {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 253, 248, 0.8);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.75;
}

.faq-hero-visual,
.article-hero-visual {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  place-items: center;
  padding: 34px;
}

.faq-hero-visual::before,
.article-hero-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(243, 162, 70, 0.48);
  pointer-events: none;
}

.faq-orbit {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.faq-orbit::before,
.faq-orbit::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.28);
}

.faq-orbit::before {
  width: 126%;
  height: 1px;
}

.faq-orbit::after {
  width: 1px;
  height: 126%;
}

.faq-orbit strong {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1rem;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.faq-orbit span {
  position: absolute;
  padding: 7px 10px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  z-index: 2;
}

.faq-orbit span:nth-of-type(1) { top: 4%; left: 2%; }
.faq-orbit span:nth-of-type(2) { top: 14%; right: -2%; }
.faq-orbit span:nth-of-type(3) { bottom: 11%; left: -5%; }
.faq-orbit span:nth-of-type(4) { right: 0; bottom: 1%; }

.faq-index-band {
  background: var(--cream);
}

.faq-index-inner,
.related-inner {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.faq-index-intro {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: end;
  margin-bottom: 46px;
}

.faq-index-intro h2,
.related-inner h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.faq-index-intro p {
  margin: 0;
  color: rgba(23, 32, 57, 0.72);
  line-height: 1.85;
}

.faq-index-list {
  border-top: 1px solid rgba(40, 49, 84, 0.34);
}

.faq-index-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 170px;
  gap: 26px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(40, 49, 84, 0.34);
  background: rgba(248, 245, 237, 0.76);
  transition: padding-left 180ms ease, background 180ms ease;
}

.faq-index-item:hover {
  padding-left: 18px;
  background: rgba(255, 253, 248, 0.94);
}

.faq-index-number {
  color: var(--orange);
  font-weight: 700;
}

.faq-index-item h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.faq-index-item p {
  margin: 0;
  color: rgba(23, 32, 57, 0.68);
  line-height: 1.65;
}

.faq-index-cta {
  justify-self: end;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-index-cta span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border: 1px solid rgba(40, 49, 84, 0.4);
  color: var(--orange);
}

.article-hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
}

.article-hero h1 {
  font-size: clamp(2.15rem, 3.9vw, 4.45rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.75rem;
  font-weight: 600;
}

.article-meta span + span::before {
  content: "|";
  margin-right: 18px;
  color: var(--orange);
}

.article-visual-flow {
  width: min(100%, 320px);
  position: relative;
  display: grid;
  gap: 30px;
}

.article-visual-flow::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 25px;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.article-visual-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.article-visual-step span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--orange);
  color: var(--orange-2);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.article-visual-step strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.article-reading-band {
  background: var(--paper);
  padding-top: 0;
}

.article-layout {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: block;
}

.article-toc {
  position: sticky;
  top: 0;
  z-index: 45;
  width: calc(100% + 14vw);
  margin: 0 -7vw 64px;
  padding: 14px 7vw 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(40, 49, 84, 0.2);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 28px rgba(40, 49, 84, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.article-toc.is-hidden {
  transform: translateY(calc(-100% - 4px));
  box-shadow: none;
}

.article-toc p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-toc ol {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  counter-reset: toc;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 162, 70, 0.82) rgba(40, 49, 84, 0.12);
  -webkit-overflow-scrolling: touch;
}

.article-toc ol::-webkit-scrollbar {
  height: 3px;
}

.article-toc ol::-webkit-scrollbar-track {
  background: rgba(40, 49, 84, 0.1);
}

.article-toc ol::-webkit-scrollbar-thumb {
  background: rgba(243, 162, 70, 0.82);
}

.article-toc li {
  flex: 0 0 auto;
  counter-increment: toc;
}

.article-toc a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(40, 49, 84, 0.22);
  background: rgba(47, 95, 159, 0.055);
  color: rgba(23, 32, 57, 0.68);
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.article-toc a::before {
  content: "0" counter(toc);
  color: var(--orange);
  font-weight: 700;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--navy);
  border-color: rgba(47, 95, 159, 0.7);
  background: rgba(47, 95, 159, 0.12);
}

.article-content {
  min-width: 0;
  width: 100%;
}

.faq-hero-copy,
.article-hero-copy,
.faq-index-intro,
.article-answer,
.article-section,
.related-head {
  position: relative;
  isolation: isolate;
}

.faq-hero-copy::after,
.article-hero-copy::after,
.faq-index-intro::after,
.article-answer::after,
.article-section::after,
.related-head::after {
  content: "";
  position: absolute;
  inset: -10px -12px;
  z-index: -1;
  pointer-events: none;
}

.faq-hero-copy::after,
.article-hero-copy::after {
  background: rgba(40, 49, 84, 0.7);
}

.faq-index-intro::after,
.related-head::after {
  background: rgba(248, 245, 237, 0.8);
}

.article-answer::after,
.article-section::after {
  background: rgba(255, 253, 248, 0.8);
}

.article-answer {
  margin: 0 0 58px;
  padding: 28px 0 28px 28px;
  border-left: 4px solid var(--orange);
  color: var(--navy);
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  line-height: 1.7;
  font-weight: 500;
}

.article-section {
  scroll-margin-top: 92px;
  margin-top: 72px;
}

.article-section:first-of-type {
  margin-top: 0;
}

.article-section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-section h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3.2vw, 3.15rem);
  line-height: 1.14;
}

.article-section h3 {
  margin: 34px 0 12px;
  color: var(--navy);
  font-size: clamp(1.14rem, 1.8vw, 1.45rem);
  line-height: 1.35;
}

.article-section p,
.article-section li {
  color: rgba(23, 32, 57, 0.76);
  font-size: 1rem;
  line-height: 1.85;
}

.article-section p {
  margin: 0 0 20px;
}

.article-section strong {
  color: var(--navy);
}

.article-section ul,
.article-section ol {
  margin: 22px 0;
  padding-left: 22px;
}

.article-section li + li {
  margin-top: 12px;
}

.article-callout {
  margin: 34px 0;
  padding: 26px 28px;
  background: var(--navy);
  color: var(--paper);
  border-left: 4px solid var(--orange);
}

.article-callout p {
  margin: 0;
  color: rgba(255, 253, 248, 0.86);
}

.article-callout strong {
  color: var(--orange-2);
}

.article-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.article-pill-row span {
  padding: 8px 11px;
  border: 1px solid rgba(47, 95, 159, 0.42);
  background: rgba(47, 95, 159, 0.08);
  color: #2f5f9f;
  font-size: 0.76rem;
  font-weight: 600;
}

.article-step-list {
  margin: 30px 0;
  border-top: 1px solid rgba(40, 49, 84, 0.24);
}

.article-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(40, 49, 84, 0.24);
}

.article-step > span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-step h3 {
  margin: 0 0 8px;
}

.article-step p {
  margin: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.article-grid-item {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(40, 49, 84, 0.28);
  background: rgba(248, 245, 237, 0.58);
}

.article-grid-item > span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.article-grid-item h3 {
  margin: 12px 0 9px;
}

.article-grid-item p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.72;
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid rgba(40, 49, 84, 0.28);
}

.article-table {
  width: 100%;
  min-width: 670px;
  border-collapse: collapse;
  background: var(--paper);
}

.article-table th,
.article-table td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(40, 49, 84, 0.16);
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-table th {
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
}

.article-table td:first-child {
  color: var(--navy);
  font-weight: 700;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-faq {
  margin-top: 30px;
  border-top: 1px solid rgba(40, 49, 84, 0.24);
}

.article-faq details {
  border-bottom: 1px solid rgba(40, 49, 84, 0.24);
}

.article-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 46px 22px 0;
  color: var(--navy);
  font-weight: 700;
  position: relative;
}

.article-faq summary::-webkit-details-marker {
  display: none;
}

.article-faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 0;
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 400;
}

.article-faq details[open] summary::after {
  content: "−";
}

.article-faq details p {
  margin: 0;
  padding: 0 48px 24px 0;
}

.related-band {
  background: var(--cream);
}

.related-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 38px;
}

.related-head > a {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
  white-space: nowrap;
}

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

.related-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid rgba(40, 49, 84, 0.3);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.related-card span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 14px 0 18px;
  color: var(--navy);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.28;
}

.related-card a {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(40, 49, 84, 0.16);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.faq-contact-strip {
  background: var(--navy);
  color: var(--paper);
}

.faq-contact-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.faq-contact-inner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 3.4rem);
  line-height: 1.14;
}

.faq-contact-inner p {
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.74);
}

@media (max-width: 1180px) {
  .faq-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-home-card:last-child {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .article-layout {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .faq-home-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 58vw);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 162, 70, 0.78) rgba(40, 49, 84, 0.14);
  }

  .faq-home-grid::-webkit-scrollbar {
    height: 4px;
  }

  .faq-home-grid::-webkit-scrollbar-track {
    background: rgba(40, 49, 84, 0.12);
  }

  .faq-home-grid::-webkit-scrollbar-thumb {
    background: rgba(243, 162, 70, 0.78);
  }

  .faq-home-card,
  .faq-home-card:last-child {
    grid-column: auto;
    min-height: 370px;
    scroll-snap-align: start;
  }

  .skip-link {
    left: 12px;
  }

  .faq-page-main {
    padding-bottom: 0;
  }

  .faq-hero-grid,
  .article-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .faq-hero,
  .article-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .faq-hero-visual,
  .article-hero-visual {
    min-height: 330px;
  }

  .faq-index-intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .faq-index-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .faq-index-cta {
    grid-column: 2;
    justify-self: start;
  }

  .article-layout {
    width: 100%;
  }

  .article-toc {
    width: calc(100% + 12vw);
    margin-right: -6vw;
    margin-left: -6vw;
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .article-content {
    width: 100%;
  }

}

@media (max-width: 640px) {
  .faq-home-grid {
    grid-auto-columns: minmax(278px, 86vw);
  }

  .faq-home-card,
  .faq-home-card:last-child {
    min-height: 390px;
    padding: 28px 24px 24px;
  }

  .faq-home-action {
    justify-content: stretch;
  }

  .faq-home-action .btn {
    width: 100%;
  }

  .faq-hero h1,
  .article-hero h1 {
    font-size: clamp(1.95rem, 8.8vw, 3rem);
  }

  .article-reading-band {
    padding-top: 48px;
  }

  .article-toc {
    display: none;
  }

  .article-section {
    scroll-margin-top: 24px;
  }

  .faq-hero-visual,
  .article-hero-visual {
    min-height: 295px;
    padding: 26px 18px;
  }

  .faq-hero-visual::before,
  .article-hero-visual::before {
    inset: 14px;
  }

  .faq-orbit {
    width: 225px;
  }

  .faq-orbit strong {
    width: 106px;
    height: 106px;
    font-size: 0.84rem;
  }

  .faq-orbit span {
    font-size: 0.58rem;
  }

  .faq-index-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0;
  }

  .faq-index-item:hover {
    padding-left: 0;
  }

  .article-answer {
    margin-bottom: 46px;
    padding: 22px 0 22px 20px;
  }

  .article-section {
    margin-top: 58px;
  }

  .article-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-grid-item {
    min-height: 0;
  }

  .article-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .article-callout {
    padding: 22px 20px;
  }

  .article-faq details p {
    padding-right: 0;
  }

  .related-head {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  .faq-home-card,
  .faq-index-item,
  .article-toc,
  .article-toc a {
    transition: none;
  }
}
