.top-symptom-guide,
.symptom-directory {
  padding: 86px 0;
  background: linear-gradient(180deg, #f7fcff 0%, #edf8fd 100%);
  color: #163b4d;
}

.symptom-guide__inner,
.symptom-detail__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.symptom-guide__head {
  margin-bottom: 30px;
  text-align: center;
}

.symptom-guide__eyebrow,
.symptom-detail__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #48add5;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .22em;
}

.symptom-guide__head h2 {
  margin: 0;
  color: #164b64;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.3;
}

.symptom-guide__head p {
  margin: 12px 0 0;
  color: #526d7c;
  font-size: 1rem;
  line-height: 1.8;
}

.symptom-guide__switch {
  width: min(570px, 100%);
  margin: 0 auto 30px;
}

.symptom-guide__switch-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0 0 9px;
  color: #365e72;
  text-align: center;
}

.symptom-guide__switch-label strong {
  color: #087fb9;
  font-size: .92rem;
}

.symptom-guide__switch-label span {
  font-size: .72rem;
}

.symptom-guide__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border: 1px solid #a9dceb;
  border-radius: 25px;
  background: rgba(218, 242, 250, .82);
  box-shadow: inset 0 1px 4px rgba(32, 105, 137, .08);
}

.symptom-guide__tab {
  position: relative;
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 66px;
  padding: 11px 18px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  color: #1679ad;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.symptom-guide__tab-name {
  font-size: 1rem;
  line-height: 1.35;
}

.symptom-guide__tab-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 19px;
  padding: 1px 8px;
  border: 1px solid #b4dce9;
  border-radius: 999px;
  color: #5a7b8a;
  font-size: .62rem;
  line-height: 1.3;
}

.symptom-guide__tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, #39b8ea, #008fd1);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 143, 209, .24);
}

.symptom-guide__tab[aria-selected="true"] .symptom-guide__tab-state {
  border-color: rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .symptom-guide__tab[aria-selected="false"]:hover {
    transform: translateY(-2px);
    border-color: #72c5e4;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 111, 150, .13);
  }
}

.symptom-guide__tab:focus-visible {
  outline: 3px solid rgba(0, 143, 209, .38);
  outline-offset: 3px;
}

.symptom-guide__panel[hidden] { display: none; }

.symptom-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.symptom-guide__card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #c7e3ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: #164b64;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(29, 93, 123, .09), 0 2px 0 rgba(0, 143, 209, .08);
  cursor: pointer;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .28s ease, background .28s ease, color .28s ease, box-shadow .28s ease;
}

.symptom-guide__card--priority {
  border-color: #7fcbe9;
  background: linear-gradient(145deg, #fff, #edf9ff);
}

.symptom-guide__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f7fd;
  color: #008fd1;
  transition: transform .22s ease, background-color .22s ease, color .22s ease;
}

.symptom-guide__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.symptom-guide__card strong {
  display: block;
  font-size: .96rem;
  line-height: 1.55;
  transition: color .22s ease;
}

@media (min-width: 768px) {
  .symptom-guide__card--child strong { white-space: nowrap; }
}

.symptom-guide__card small {
  display: block;
  margin-top: 4px;
  color: #6b818d;
  font-size: .69rem;
  line-height: 1.5;
}

.symptom-guide__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid #77c8e7;
  border-radius: 50%;
  background: #fff;
  color: #008fd1;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 143, 209, .12);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.symptom-guide__age-card {
  grid-template-columns: 122px minmax(0, 1fr) 32px;
  min-height: 150px;
  overflow: hidden;
}

#age-panel .symptom-guide__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.symptom-guide__age-illustration {
  position: relative;
  display: block;
  width: 116px;
  height: 116px;
  overflow: hidden;
  border-radius: 50%;
  background: #edf9fe;
}
.symptom-guide__age-illustration img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
#age-panel .symptom-guide__age-card:nth-child(2) .symptom-guide__age-illustration,
#age-panel .symptom-guide__age-card:nth-child(5) .symptom-guide__age-illustration { background: linear-gradient(160deg, #f1fbf7, #e1f5eb); color: #289986; }
#age-panel .symptom-guide__age-card:nth-child(3) .symptom-guide__age-illustration,
#age-panel .symptom-guide__age-card:nth-child(6) .symptom-guide__age-illustration { background: linear-gradient(160deg, #fffaf0, #f9eed6); color: #b98535; }
#age-panel .symptom-guide__age-card strong { font-size: 1.02rem; }
#age-panel .symptom-guide__age-card small { font-size: .72rem; }

@media (hover: hover) and (pointer: fine) {
  .symptom-guide__card:hover {
    transform: translateY(-7px) scale(1.018);
    border-color: #149fd6;
    background: linear-gradient(145deg, #fff 0%, #e5f7fe 100%);
    color: #087aad;
    box-shadow: 0 20px 38px rgba(20, 106, 145, .22), 0 5px 0 rgba(0, 143, 209, .12);
  }
  .symptom-guide__card:hover .symptom-guide__icon {
    transform: scale(1.12) rotate(-3deg);
    background: #008fd1;
    color: #fff;
  }
  .symptom-guide__card:hover .symptom-guide__age-illustration img {
    transform: translate(-50%, -50%) scale(1.05);
  }
  .symptom-guide__card:hover .symptom-guide__arrow {
    transform: translateX(5px) scale(1.08);
    border-color: #008fd1;
    background: #008fd1;
    color: #fff;
    box-shadow: 0 7px 15px rgba(0, 143, 209, .28);
  }
}

.symptom-guide__card:active {
  transform: translateY(-1px) scale(.992);
  box-shadow: 0 7px 16px rgba(20, 106, 145, .14);
}

.symptom-guide__card:focus-visible {
  outline: 3px solid rgba(0, 143, 209, .42);
  outline-offset: 4px;
}

.symptom-guide__card:focus-visible .symptom-guide__arrow {
  border-color: #008fd1;
  background: #008fd1;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .symptom-guide__card,
  .symptom-guide__icon,
  .symptom-guide__arrow,
  .symptom-guide__age-illustration img {
    transition-duration: .01ms;
  }
}

.symptom-guide__footer {
  margin: 26px 0 0;
  text-align: center;
}

.symptom-guide__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: min(100%, 360px);
  min-height: 62px;
  padding: 13px 28px;
  border: 2px solid #159fd7;
  border-radius: 999px;
  background: linear-gradient(135deg, #36b7e8, #008fd1);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 143, 209, .2);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.symptom-guide__footer a::after {
  content: "›";
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  color: #008fd1;
  font-size: 1.25rem;
  line-height: 1;
}

@media (hover: hover) {
  .symptom-guide__footer a:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
    box-shadow: 0 15px 30px rgba(0, 118, 178, .28);
  }
}

.symptom-guide__footer a:focus-visible {
  outline: 3px solid rgba(0, 143, 209, .3);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .symptom-guide__footer a {
    min-width: min(100%, 310px);
    min-height: 56px;
    padding: 11px 20px;
    font-size: .9rem;
  }
}

/* Symptom detail template */
.symptom-detail { color: #263f4c; }
.symptom-detail__hero {
  padding: 62px 0 66px;
  background: radial-gradient(circle at 84% 20%, rgba(97, 196, 232, .18), transparent 30%), linear-gradient(145deg, #f8fdff, #eaf7fd);
}
.symptom-detail__hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 440px); gap: clamp(36px, 6vw, 78px); align-items: center; }
.symptom-detail__hero-photo { height: 280px; margin: 0; overflow: hidden; border: 8px solid rgba(255,255,255,.75); border-radius: 28px; background: #d9edf5; box-shadow: 0 20px 45px rgba(21,93,125,.14); }
.symptom-detail__hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.symptom-detail__breadcrumb { margin: 0 0 28px; color: #69808d; font-size: .78rem; }
.symptom-detail__breadcrumb a { color: #167eb4; text-decoration: none; }
.symptom-detail__breadcrumb span { margin: 0 8px; }
.symptom-detail__hero h1 { margin: 0; color: #164b64; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.3; }
.symptom-detail__hero-lead { max-width: 760px; margin: 18px 0 0; color: #486675; font-size: 1rem; line-height: 2; }
.symptom-detail__section { padding: 72px 0; }
.symptom-detail__section--tint { background: #f4fbfe; }
.symptom-detail__section-head { margin-bottom: 26px; }
.symptom-detail__section-head h2 { margin: 0; color: #164b64; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.45; }
.symptom-detail__section-head p { margin: 9px 0 0; color: #657d89; line-height: 1.8; }
.symptom-detail__two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.symptom-detail__card { padding: 28px; border: 1px solid #cbe4ef; border-radius: 22px; background: #fff; box-shadow: 0 9px 25px rgba(26, 91, 121, .06); }
.symptom-detail__card h2,
.symptom-detail__card h3 { margin: 0 0 15px; color: #164b64; line-height: 1.5; }
.symptom-detail__card p { margin: 0; line-height: 1.9; }
.symptom-detail__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.symptom-detail__list li { position: relative; padding: 13px 14px 13px 38px; border-radius: 12px; background: #f1f9fd; line-height: 1.65; }
.symptom-detail__list li::before { content: "✓"; position: absolute; left: 14px; color: #0998d5; font-weight: 900; }
.symptom-detail__causes,
.symptom-detail__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.symptom-detail__cause,
.symptom-detail__link { display: block; padding: 22px; border: 1px solid #c9e2ed; border-radius: 17px; background: #fff; color: #174b63; text-decoration: none; }
.symptom-detail__cause strong,
.symptom-detail__link strong { display: block; margin-bottom: 7px; color: #087db7; font-size: 1.04rem; }
.symptom-detail__cause span,
.symptom-detail__link span { color: #647c89; font-size: .78rem; line-height: 1.65; }
.symptom-detail__alert { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 24px; padding: 22px; border: 1px solid #efb4b4; border-radius: 18px; background: #fff7f7; }
.symptom-detail__alert b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #d9434b; color: #fff; font-size: 1.5rem; }
.symptom-detail__alert strong { display: block; color: #bd272f; }
.symptom-detail__alert p { margin: 5px 0 0; line-height: 1.8; }
.symptom-detail__note { margin-top: 20px; padding: 16px 18px; border-left: 4px solid #42b4df; border-radius: 8px; background: #eef9fd; color: #526d7b; line-height: 1.8; }
.symptom-detail__priority-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.symptom-detail__button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 24px; border-radius: 999px; background: linear-gradient(135deg, #38b7e8, #008fd1); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 10px 23px rgba(0, 143, 209, .18); }
.symptom-detail__button--ghost { border: 1px solid #83cae5; background: #fff; color: #087ab4; box-shadow: none; }
.symptom-detail__faq { display: grid; gap: 10px; }
.symptom-detail__faq details { border: 1px solid #cce4ee; border-radius: 15px; background: #fff; }
.symptom-detail__faq summary { padding: 18px 52px 18px 20px; color: #174b63; font-weight: 900; cursor: pointer; }
.symptom-detail__faq details p { margin: 0; padding: 0 20px 20px; color: #506c7a; line-height: 1.85; }
.symptom-detail__visit { padding: 34px; border-radius: 24px; background: linear-gradient(145deg, #eaf8fd, #fff); text-align: center; }
.symptom-detail__visit h2 { margin: 0; color: #164b64; }
.symptom-detail__visit p { margin: 12px auto 20px; max-width: 760px; line-height: 1.9; }
.symptom-detail__disclaimer { margin-top: 18px; color: #6b7e88; font-size: .75rem; line-height: 1.7; }

@media (max-width: 900px) {
  .symptom-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #age-panel .symptom-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .symptom-detail__causes,
  .symptom-detail__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .top-symptom-guide,
  .symptom-directory { padding: 52px 0; }
  .symptom-guide__inner,
  .symptom-detail__inner { width: calc(100% - 28px); }
  .symptom-guide__switch { margin-bottom: 22px; }
  .symptom-guide__switch-label { gap: 7px; }
  .symptom-guide__switch-label strong { font-size: .78rem; }
  .symptom-guide__switch-label span { font-size: .63rem; }
  .symptom-guide__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border-radius: 19px; }
  .symptom-guide__tab { min-height: 58px; padding: 8px 5px 7px; border-radius: 14px; }
  .symptom-guide__tab-name { font-size: .79rem; }
  .symptom-guide__tab-state { min-width: 67px; font-size: .55rem; }
  .symptom-guide__grid { gap: 9px; }
  .symptom-guide__card { grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 8px; min-height: 92px; padding: 12px 10px; border-radius: 15px; }
  .symptom-guide__icon { width: 36px; height: 36px; }
  .symptom-guide__icon svg { width: 21px; height: 21px; }
  .symptom-guide__card strong { font-size: .76rem; }
  .symptom-guide__card small { font-size: .59rem; }
  .symptom-guide__age-card { grid-template-columns: 74px minmax(0, 1fr) 30px; min-height: 116px; }
  .symptom-guide__age-illustration { width: 70px; height: 70px; }
  #age-panel .symptom-guide__age-card strong { font-size: .8rem; }
  #age-panel .symptom-guide__age-card small { font-size: .6rem; }
  .symptom-detail__hero { padding: 36px 0 44px; }
  .symptom-detail__hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .symptom-detail__hero-photo { height: 210px; border-width: 5px; border-radius: 20px; }
  .symptom-detail__section { padding: 48px 0; }
  .symptom-detail__two-column,
  .symptom-detail__causes,
  .symptom-detail__links { grid-template-columns: 1fr; }
  .symptom-detail__card { padding: 21px 17px; border-radius: 17px; }
  .symptom-detail__alert { grid-template-columns: 38px minmax(0, 1fr); padding: 17px 14px; }
  .symptom-detail__alert b { width: 36px; height: 36px; font-size: 1.1rem; }
  .symptom-detail__visit { padding: 25px 17px; }
}
