/* Course single pages — description / requirements / resources */

.page-course .course-page-band__body {
  padding-block: var(--spacing-section-y);
}

.page-course .inner-band.inner-band--bridge > .course-page-band__body {
  padding-block: 8rem var(--spacing-section-y) !important;
}

.course-blocks {
  width: 100%;
  max-width: var(--max-width-band, 1100px);
  margin-inline: auto;
  display: grid;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 80, 0.12);
}

.course-block {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.8vw, 1.75rem) 0;
  border-bottom: 1px solid rgba(0, 0, 80, 0.1);
}

.course-block:last-child {
  border-bottom: 0;
}

.course-block__title {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem); /* ~24px, fluid */
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #000050;
}

.course-block__body {
  display: grid;
  gap: 0.75rem;
}

.course-block__body > p,
.course-block__text {
  margin: 0;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  color: #2a2a2a;
  text-wrap: pretty;
}

.course-block__body strong {
  font-weight: 500;
}

.course-block__subhead {
  margin: 0.35rem 0 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1rem, 1.7vw, 1.125rem); /* 18px */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000050;
}

.course-block__list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.6;
  color: #2a2a2a;
}

.course-block__list--plain {
  list-style: none;
  padding-left: 0;
}

.course-cost {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: clamp(1rem, 2.2vw, 1.25rem) clamp(1.1rem, 2.5vw, 1.5rem);
  border-left: 3px solid #000050;
  background:
    linear-gradient(135deg, rgba(0, 0, 80, 0.05) 0%, rgba(0, 0, 80, 0.015) 48%, transparent 100%),
    linear-gradient(180deg, #f3f5fa 0%, #eef1f7 100%);
}

.course-cost__price {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #000050;
}

.course-cost__note {
  margin: 0;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 1.125rem; /* 18px */
  line-height: 1.5;
  color: rgba(0, 0, 80, 0.78);
}

.course-inline-cta {
  margin-top: 0.2rem;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-brand, 4px);
  border: 1px solid #000050;
  background: #000050;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.course-inline-cta:hover {
  background: #00006a;
  border-color: #00006a;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .course-inline-cta:hover {
    transform: none;
  }
}

.course-equip {
  width: 100%;
  max-width: var(--max-width-band, 1100px);
  margin: 0 auto;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.65rem, 1.6vw, 1rem);
}

.course-equip__card {
  flex: 1 1 9.5rem;
  max-width: 13.5rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.65rem;
  padding: 1.05rem 0.9rem 0.95rem;
  border: 0;
  border-radius: 0.65rem;
  text-align: center;
  text-decoration: none;
  color: #000050;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    linear-gradient(155deg, #f8f9fd 0%, #eef1f8 48%, #e2e7f2 100%);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.course-equip__card:hover {
  color: #fff;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, 0.16) 0%, transparent 52%),
    linear-gradient(155deg, #00006a 0%, #000050 46%, #000038 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 50, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .course-equip__card {
    transition: background 0.2s ease, color 0.2s ease;
  }

  .course-equip__card:hover {
    transform: none;
    box-shadow: none;
  }
}

.course-equip__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  background: transparent;
}

.course-equip__icon .material-symbols-outlined {
  font-size: 1.85rem;
  line-height: 1;
  color: inherit;
  font-variation-settings: "wght" 400, "opsz" 24, "FILL" 0, "GRAD" 0;
}

.course-equip__label {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

/* Course banner — more vertical room than default inner pages */
.page-course .inner-stage {
  --inner-banner-h: clamp(36rem, 82vh, 48rem);
}

@media (max-width: 520px) {
  .page-course .inner-stage {
    --inner-banner-h: clamp(32rem, 78vh, 42rem);
  }
}

.page-course .inner-banner__inner {
  gap: clamp(0.35rem, 1.2vw, 0.5rem);
  padding-top: calc(var(--header-h) + clamp(1.75rem, 4vw, 2.75rem));
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.page-course .inner-banner__inner > h1,
.page-course .course-hero-title {
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  line-height: 1.22;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-course .inner-banner__tabs {
  margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.course-hero-purchase {
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 1.8vw, 1rem);
  margin-top: clamp(1rem, 2.4vw, 1.35rem);
}

.course-hero-price {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
}

/* Buy Now — the locked HTML uses Tailwind arbitrary utilities that are not in the
   compiled app.css, so express the full visual here (white text on frosted dark). */
.course-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: clamp(0.75rem, 2vw, 0.9rem) clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-brand, 4px);
  background: rgba(0, 0, 50, 0.28);
  color: #fff;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.course-hero-cta:hover {
  border-color: #fff;
  background: rgba(0, 0, 50, 0.5);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.25);
}

.course-resources {
  width: 100%;
  max-width: var(--max-width-band, 1100px);
  margin-inline: auto;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 80, 0.12);
  border-bottom: 1px solid rgba(0, 0, 80, 0.12);
}

.course-resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 80, 0.1);
  color: #000050;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.course-resource:last-child {
  border-bottom: 0;
}

.course-resource:hover {
  color: #00006a;
  padding-left: 0.35rem;
}

.course-resource__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--secondary-accent, #c0c0c0) 70%, transparent);
  color: #000050;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 58%),
    linear-gradient(155deg, #ffffff 0%, #f4f6fb 52%, #e9edf6 100%);
}

.course-resource__icon .material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
  font-variation-settings: "wght" 400, "opsz" 24, "FILL" 0, "GRAD" 0;
}

.course-resource__label {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.course-resource__arrow {
  font-size: 1.15rem;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .course-resource:hover {
    padding-left: 0;
  }
}

/* ---------------------------------------------------------------------------
   Content rendering — course/city block bodies. Anything the Ghost editor can
   produce (images, tables, lists, quotes, Koenig cards) renders in-design and
   never breaks the layout. course-slots.js / city-slots.js re-apply the block
   classes; these rules also cover raw Koenig markup as a safety net.
--------------------------------------------------------------------------- */
.course-block__media {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin: 0.35rem 0;
  border-radius: var(--radius-brand, 4px);
  border: 1px solid color-mix(in srgb, var(--secondary-accent, #c0c0c0) 80%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 80, 0.12);
}

.course-block__media--center {
  margin-inline: auto;
}

.course-block__media-caption {
  margin: 0;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(0, 0, 80, 0.72);
}

/* Schedule table (e.g. 2026 armed class dates) + any editor table */
.course-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.course-table,
.course-block__body table,
.ghost-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 1rem;
  color: #2a2a2a;
}

.course-table th,
.course-table td,
.course-block__body table th,
.course-block__body table td,
.ghost-content table th,
.ghost-content table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 80, 0.12);
}

.course-table thead th,
.course-block__body table thead th,
.ghost-content table thead th {
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #000050;
  border-bottom: 0;
}

.course-table tbody tr:nth-child(even),
.course-block__body table tbody tr:nth-child(even) {
  background: rgba(0, 0, 80, 0.035);
}

.course-table tbody tr:hover,
.course-block__body table tbody tr:hover {
  background: rgba(0, 0, 80, 0.07);
}

.course-table td:first-child {
  font-weight: 500;
  color: #000050;
  white-space: nowrap;
}

/* Koenig card safety net — images, quotes, dividers, callouts, buttons, embeds
   dropped straight into a block body still look right without extra JS. */
.course-block__body figure,
.course-block__body .kg-card {
  margin: 0.35rem 0;
}

.course-block__body figure img,
.course-block__body .kg-image-card img,
.course-block__body picture img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin: 0.35rem 0;
  border-radius: var(--radius-brand, 4px);
  border: 1px solid color-mix(in srgb, var(--secondary-accent, #c0c0c0) 80%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 80, 0.12);
}

.course-block__body figcaption,
.course-block__body .kg-card figcaption {
  margin-top: 0.4rem;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(0, 0, 80, 0.7);
  text-align: center;
}

.course-block__body blockquote {
  margin: 0.35rem 0;
  padding: 0.65rem 0 0.65rem 1.1rem;
  border-left: 3px solid #000050;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: rgba(0, 0, 80, 0.82);
}

.course-block__body hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 80, 0.14);
  margin: 0.5rem 0;
}

.course-block__body h2,
.course-block__body h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  color: #000050;
}

.course-block__body a:not(.course-inline-cta):not([class*="kg-"]) {
  color: #00006a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.course-block__body .kg-embed-card,
.course-block__body iframe {
  max-width: 100%;
}

/* Koenig button + toggle + callout cards are styled site-wide in ghost-cards.css
   (single source) so every editor content type matches the design on every page. */

/* ---------------------------------------------------------------------------
   Step track — horizontal connected progress navigator (License page)
--------------------------------------------------------------------------- */
.step-track {
  width: 100%;
  max-width: var(--max-width-band, 1100px);
  margin-inline: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(7rem, 1fr);
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.35rem 0 0.85rem;
}

.step-track__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.35rem;
  text-decoration: none;
  color: #000050;
}

/* connector to the previous node */
.step-track__item::before {
  content: "";
  position: absolute;
  top: calc(0.4rem + 1.4rem - 1px);
  right: calc(50% + 1.4rem);
  width: calc(100% - 2.8rem);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 80, 0.14), rgba(0, 0, 80, 0.34));
  z-index: 0;
}

.step-track__item:first-child::before {
  display: none;
}

.step-track__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #24248a 0%, #000050 72%);
  box-shadow: 0 6px 14px rgba(0, 0, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-track__label {
  max-width: 8.5rem;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: #000050;
  transition: color 0.25s ease;
}

.step-track__item:hover .step-track__node {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 12px 24px rgba(0, 0, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-track__item:hover .step-track__label {
  color: #00006a;
}

@media (max-width: 1023px) {
  /* All 8 nodes in one row need ~896px; below that the single row forces the
     surrounding header/section wider than the viewport (overflow-x:auto can't
     clip it because the ancestors expand). So wrap into a 4-column grid — the
     track then never pushes the page into a horizontal scroll on tablets/laptops. */
  .step-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    min-width: 0;
    row-gap: 1.35rem;
    column-gap: 0.4rem;
  }
  .step-track__item {
    padding-inline: 0.2rem;
  }
  .step-track__label {
    max-width: 100%;
  }
  /* Connector line links nodes within the same row only; drop the one that
     would dangle at the start of a new row. */
  .step-track__item:nth-child(4n + 1)::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .step-track {
    row-gap: 1.15rem;
    column-gap: 0.3rem;
  }
  .step-track__item {
    padding-inline: 0.1rem;
  }
  .step-track__label {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-track__node,
  .step-track__label {
    transition: none;
  }
  .step-track__item:hover .step-track__node {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Step guide — vertical numbered timeline (License page licensing steps)
--------------------------------------------------------------------------- */
.step-guide {
  --step-gap: clamp(1.15rem, 2.8vw, 1.9rem);
  position: relative;
  width: 100%;
  max-width: var(--max-width-band, 1100px);
  margin-inline: auto;
  list-style: none;
  margin-block: 0;
  padding: 0;
  display: grid;
  gap: var(--step-gap);
}

.step-guide__item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(2.75rem, 7vw, 3.4rem) minmax(0, 1fr);
  gap: clamp(0.9rem, 2.4vw, 1.6rem);
  align-items: stretch;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* number node + connecting spine */
.step-guide__marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.step-guide__node {
  flex: 0 0 auto;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 7vw, 3.4rem);
  height: clamp(2.75rem, 7vw, 3.4rem);
  border-radius: 50%;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #24248a 0%, #000050 72%);
  box-shadow: 0 8px 18px rgba(0, 0, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-guide__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(clamp(2.75rem, 7vw, 3.4rem) + 0.4rem);
  bottom: calc(-1 * var(--step-gap));
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(0, 0, 80, 0.32) 0%, rgba(0, 0, 80, 0.08) 100%);
}

.step-guide__item:last-child .step-guide__marker::after {
  display: none;
}

/* content card */
.step-guide__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--secondary-accent, #c0c0c0) 45%, transparent);
  border-radius: var(--radius, 6px);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.98), transparent 55%),
    linear-gradient(158deg, #ffffff 0%, #f6f8fc 60%, #eef2f8 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.08);
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.15rem, 2.8vw, 1.75rem);
}

/* top accent bar */
.step-guide__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #000050 0%, rgba(0, 0, 80, 0.35) 45%, transparent 85%);
}

.step-guide__ghost {
  position: absolute;
  top: -0.95rem;
  right: 0.5rem;
  z-index: -1;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 0, 80, 0.045);
  pointer-events: none;
  user-select: none;
}

.step-guide__head {
  margin-bottom: 0.95rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 80, 0.1);
}

.step-guide__eyebrow {
  display: block;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, #000050 55%, #8a8fa3);
}

.step-guide__title {
  margin: 0.3rem 0 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1.15rem, 2.3vw, 1.42rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #000050;
}

/* DATES — 2026 class schedule (editor-driven; matches locked courses design) */
.course-dates > * {
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.course-dates > *:last-child {
  margin-bottom: 0;
}
.course-dates a {
  color: #000050;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.course-dates a:hover {
  color: #0a0a78;
}
.course-dates ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-width: 34rem;
  text-align: left;
}
.course-dates ul li {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(0, 0, 80, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 80, 0.03);
}

/* ---------------------------------------------------------------------------
   FAQ HUB — searchable, category-filtered help center on the FAQ / Links page.
   Built by faq-slots.js: one category button + one accordion panel per editor
   FAQ group, plus a live search that scans every question. Scales to any number
   of course FAQ groups without turning into a wall of text.
--------------------------------------------------------------------------- */
.faq-hub {
  width: 100%;
  max-width: var(--max-width-band, 1100px);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Search */
.faq-hub__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.5rem 0.15rem 1rem;
  border: 1px solid color-mix(in srgb, var(--secondary-accent, #c0c0c0) 75%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-hub__search:focus-within {
  border-color: #000050;
  box-shadow: 0 0 0 3px rgba(0, 0, 80, 0.12), 0 12px 30px rgba(0, 0, 80, 0.12);
}

.faq-hub__search > .material-symbols-outlined {
  font-size: 1.35rem;
  color: #000050;
  opacity: 0.7;
}

.faq-hub__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.85rem 0;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--text-main, #212121);
}

.faq-hub__search-input::placeholder {
  color: rgba(0, 0, 80, 0.45);
}

.faq-hub__search-input::-webkit-search-decoration,
.faq-hub__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.faq-hub__search-clear {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 80, 0.06);
  color: #000050;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-hub__search-clear:hover {
  background: rgba(0, 0, 80, 0.12);
}

.faq-hub__search-clear .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Layout: sticky category rail + panels */
.faq-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.faq-hub__nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.faq-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(0, 0, 80, 0.12);
  border-radius: var(--radius-brand, 6px);
  background: rgba(255, 255, 255, 0.6);
  color: #000050;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.faq-chip:hover {
  border-color: rgba(0, 0, 80, 0.3);
  background: #ffffff;
  transform: translateX(2px);
}

.faq-chip.is-active {
  border-color: #000050;
  background: linear-gradient(160deg, #000050 0%, #00006a 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 80, 0.22);
}

.faq-hub__panels {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  min-width: 0;
}

.faq-group {
  display: grid;
  gap: 0.85rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.faq-group__title {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #000050;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(0, 0, 80, 0.12);
}

/* Explicit display values above beat the UA [hidden] rule — restore hiding. */
.faq-item[hidden],
.faq-group[hidden],
.faq-hub__search-clear[hidden] {
  display: none !important;
}

.faq-hub__empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-roboto, "Roboto", sans-serif);
  font-size: 1rem;
  color: rgba(0, 0, 80, 0.65);
}

@media (max-width: 900px) {
  .faq-hub__layout {
    grid-template-columns: 1fr;
  }

  .faq-hub__nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .faq-chip {
    width: auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem;
  }

  .faq-chip:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-chip,
  .faq-chip:hover {
    transform: none;
  }
}
