/* Interactive patient guidance tools */
.at-finder-section,
.at-prep,
.at-ha-guide,
.at-resources-tools {
  --ati-ink: #092734;
  --ati-navy: #071d2b;
  --ati-teal: #2f9e94;
  --ati-teal-bright: #55c6bb;
  --ati-mint: #eaf7f4;
  --ati-cream: #f7f3ea;
  --ati-line: rgba(9,39,52,.14);
  --ati-muted: #5c7079;
  font-family: "Source Sans 3", sans-serif;
}

.at-finder-shell {
  display: grid;
  grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr);
  gap: clamp(36px,6vw,78px);
  padding: clamp(34px,5vw,62px);
  border: 1px solid var(--ati-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 10%, rgba(85,198,187,.16), transparent 28%),
    linear-gradient(145deg,#fff,#f4fbf9);
  box-shadow: 0 24px 70px rgba(7,29,43,.1);
}

.at-finder-intro {
  align-self: start;
}

.at-finder-intro h2,
.at-prep h1,
.at-prep h2,
.at-ha-guide h2,
.at-resources-tools h3 {
  font-family: "Fraunces", Georgia, serif !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.at-finder-intro h2 {
  margin: 16px 0 18px;
  color: var(--ati-ink);
  font-size: clamp(2.6rem,4.4vw,4.7rem);
  line-height: .98;
}

.at-finder-intro p {
  color: var(--ati-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.at-finder-kicker,
.at-prep-kicker,
.at-ha-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(47,158,148,.22);
  border-radius: 999px;
  background: var(--ati-mint);
  color: #236d66;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.at-finder-kicker::before,
.at-prep-kicker::before,
.at-ha-guide-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

.at-finder-disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--ati-teal);
  background: rgba(234,247,244,.68);
  color: var(--ati-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.at-finder-workspace {
  min-width: 0;
  padding: clamp(24px,4vw,42px);
  border: 1px solid var(--ati-line);
  border-radius: 20px;
  background: #fff;
}

.at-finder-progress {
  margin-bottom: 30px;
}

.at-finder-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--ati-muted);
  font-size: .84rem;
  font-weight: 700;
}

.at-finder-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eff0;
}

.at-finder-progress-bar {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--ati-teal),var(--ati-teal-bright));
  transition: width .25s ease;
}

.at-finder-panel[hidden],
.at-ha-result[hidden],
.at-resources-empty-state[hidden] {
  display: none !important;
}

.at-finder-panel h3 {
  display: block;
  margin: 0 0 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ati-ink);
  font-family: "Fraunces",Georgia,serif;
  font-size: clamp(1.8rem,3vw,2.65rem);
  line-height: 1.06;
}

.at-finder-panel > p {
  margin: 0 0 24px;
  color: var(--ati-muted);
}

.at-finder-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.at-finder-option,
.at-ha-option {
  width: 100%;
  min-height: 70px;
  padding: 16px 18px;
  border: 1px solid var(--ati-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ati-ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}

.at-finder-option span,
.at-ha-option span {
  display: block;
  margin-top: 4px;
  color: var(--ati-muted);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.4;
}

.at-finder-option:hover,
.at-finder-option.is-selected,
.at-ha-option:hover,
.at-ha-option.is-selected {
  transform: translateY(-2px);
  border-color: rgba(47,158,148,.48);
  background: #f3fbf9;
  box-shadow: 0 12px 30px rgba(7,29,43,.07);
}

.at-finder-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.at-finder-back,
.at-finder-reset,
.at-ha-reset {
  border: 0;
  background: transparent;
  color: var(--ati-teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.at-finder-result {
  padding: 26px;
  border-radius: 18px;
  background: var(--ati-navy);
  color: #fff;
}

.at-finder-result h3,
.at-finder-result p {
  color: #fff !important;
}

.at-finder-result p {
  color: rgba(255,255,255,.74) !important;
}

.at-finder-result ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.at-finder-result li {
  display: flex;
  gap: 10px;
  color: rgba(255,255,255,.8);
}

.at-finder-result li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--ati-teal-bright);
  box-shadow: 0 0 0 5px rgba(85,198,187,.12);
}

.at-finder-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.at-finder-result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ati-teal-bright);
  color: var(--ati-navy) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.at-finder-result-actions a:last-child {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff !important;
}

/* Hearing-aid guidance tool */
.at-ha-guide {
  max-width: 1180px;
  margin: 72px auto;
  padding: clamp(36px,5vw,64px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 10%,rgba(85,198,187,.2),transparent 28%),
    var(--ati-cream);
}

.at-ha-guide-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.58fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.at-ha-guide h2 {
  max-width: 13ch;
  margin: 16px 0 0;
  color: var(--ati-ink);
  font-size: clamp(2.5rem,4.5vw,4.5rem);
  line-height: 1;
}

.at-ha-guide-header p {
  color: var(--ati-muted);
  line-height: 1.7;
}

.at-ha-groups {
  display: grid;
  gap: 20px;
}

.at-ha-group {
  padding: 26px;
  border: 1px solid var(--ati-line);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.at-ha-group h3 {
  margin: 0 0 14px;
  color: var(--ati-ink);
  font-family: "Fraunces",Georgia,serif;
  font-size: 1.55rem;
}

.at-ha-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.at-ha-option {
  min-height: 62px;
  font-size: .94rem;
}

.at-ha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.at-ha-build {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ati-navy);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.at-ha-result {
  margin-top: 28px;
  padding: clamp(26px,4vw,42px);
  border-radius: 20px;
  background: var(--ati-navy);
  color: #fff;
}

.at-ha-result :is(h3,p) {
  color: #fff !important;
}

.at-ha-result p {
  color: rgba(255,255,255,.72) !important;
}

.at-ha-result ul {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 20px;
  color: rgba(255,255,255,.82);
}

.at-ha-result a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ati-teal-bright);
  color: var(--ati-navy) !important;
  font-weight: 800;
  text-decoration: none !important;
}

/* Resource search and filters */
.at-resources-tools {
  display: grid;
  grid-template-columns: minmax(260px,1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--ati-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7,29,43,.06);
}

.at-resources-search label {
  display: block;
  margin-bottom: 7px;
  color: var(--ati-ink);
  font-size: .88rem;
  font-weight: 800;
}

.at-resources-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--ati-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ati-ink);
  font: inherit;
}

.at-resources-filter-controls {
  display: grid;
  gap: 8px;
}

.at-resources-filter-label {
  color: var(--ati-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.at-resources-filter-label:not(:first-child) {
  margin-top: 6px;
}

.at-resources-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.at-resource-filter {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--ati-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ati-ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
}

.at-resource-filter.is-active {
  border-color: var(--ati-navy);
  background: var(--ati-navy);
  color: #fff;
}

.at-resources-result-count {
  grid-column: 1 / -1;
  color: var(--ati-muted);
  font-size: .88rem;
}

.at-resources-article-card[hidden],
.at-resources-featured[hidden] {
  display: none !important;
}

.at-resources-empty-state {
  padding: 34px;
  border: 1px dashed rgba(47,158,148,.42);
  border-radius: 18px;
  background: var(--ati-mint);
  text-align: center;
}

/* Preparation centre */
.at-prep {
  background: #fff;
  color: var(--ati-ink);
}

.at-prep-container {
  width: min(1160px,calc(100% - 40px));
  margin-inline: auto;
}

.at-prep-hero {
  padding: clamp(72px,8vw,112px) 0;
  background:
    radial-gradient(circle at 82% 18%,rgba(85,198,187,.22),transparent 28%),
    linear-gradient(135deg,var(--ati-navy),#0d3444 62%,#0f5b78);
  color: #fff;
}

.at-prep-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.72fr);
  gap: clamp(40px,7vw,90px);
  align-items: center;
}

.at-prep h1 {
  max-width: 13ch;
  margin: 18px 0 22px;
  color: #fff;
  font-size: clamp(3.3rem,5.5vw,6rem);
  line-height: .96;
}

.at-prep-hero p {
  max-width: 650px;
  color: rgba(255,255,255,.76);
  font-size: 1.12rem;
  line-height: 1.75;
}

.at-prep-hero-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}

.at-prep-hero-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Fraunces",Georgia,serif;
  font-size: 1.7rem;
}

.at-prep-section {
  padding: clamp(64px,8vw,104px) 0;
}

.at-prep-section:nth-of-type(even) {
  background: var(--ati-cream);
}

.at-prep-section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.at-prep h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--ati-ink);
  font-size: clamp(2.5rem,4.5vw,4.6rem);
  line-height: 1;
}

.at-prep-section-head p {
  color: var(--ati-muted);
  line-height: 1.7;
}

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

.at-prep-card {
  padding: 26px;
  border-top: 3px solid var(--ati-teal);
  background: #fff;
  box-shadow: 0 14px 36px rgba(7,29,43,.06);
}

.at-prep-card h3 {
  margin: 0 0 10px;
  color: var(--ati-ink);
  font-family: "Fraunces",Georgia,serif;
  font-size: 1.55rem;
}

.at-prep-card p,
.at-prep-card li {
  color: var(--ati-muted);
  line-height: 1.65;
}

.at-prep-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.at-prep-alert {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(179,112,35,.24);
  border-radius: 18px;
  background: #fff8eb;
}

.at-prep-alert svg {
  width: 34px;
  height: 34px;
  color: #a7641b;
}

.at-prep-alert strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ati-ink);
}

.at-prep-checklist {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px 28px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.at-prep-checklist li {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ati-line);
  color: var(--ati-muted);
}

.at-prep-checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: .5em;
  border: 2px solid var(--ati-teal);
  border-radius: 3px;
}

.at-prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.at-prep-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ati-navy);
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.at-prep-button.is-light {
  border: 1px solid var(--ati-line);
  background: #fff;
  color: var(--ati-ink) !important;
}

@media (max-width: 900px) {
  .at-finder-shell,
  .at-ha-guide-header,
  .at-prep-hero-grid,
  .at-prep-section-head {
    grid-template-columns: 1fr;
  }

  .at-ha-options,
  .at-prep-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .at-resources-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .at-finder-options,
  .at-ha-options,
  .at-prep-grid,
  .at-prep-checklist {
    grid-template-columns: 1fr;
  }

  .at-finder-shell,
  .at-finder-workspace,
  .at-ha-guide {
    padding: 22px;
    border-radius: 18px;
  }

  .at-finder-actions-row,
  .at-finder-result-actions,
  .at-ha-actions,
  .at-prep-actions {
    display: grid;
  }

  .at-finder-result-actions a,
  .at-prep-button,
  .at-ha-build {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .at-mobile-action-bar,
  .at-prep-actions,
  #ht-ctc-chat,
  iframe[src*="tawk.to"] {
    display: none !important;
  }

  .at-prep-hero {
    padding: 30px 0;
    background: #fff !important;
    color: #000 !important;
  }

  .at-prep h1,
  .at-prep-hero p,
  .at-prep-hero-card strong {
    color: #000 !important;
  }

  .at-prep-section {
    padding: 28px 0;
  }

  .at-prep-card,
  .at-prep-hero-card {
    box-shadow: none;
  }
}
