/* ============================================================
   symptoms.css - Symptom sections and symptom index pages
   Loaded only where symptom-specific components are needed.
   ============================================================ */

/* Symptom cards */
.symptoms { padding: 100px 0; background: var(--off); }
.symptom-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.symptom-card {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); border: 1.5px solid var(--border);
  transition: box-shadow var(--ease-mid), transform var(--ease-mid), border-color var(--ease-mid);
  cursor: pointer; display: block;
}
.symptom-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-5px); border-color: var(--pink); }
.symptom-card__img { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.symptom-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease-slow); }
.symptom-card:hover .symptom-card__img img { transform: scale(1.06); }
.symptom-card__body  { padding: 18px 20px 22px; }
.symptom-card__title { font-family: var(--ff-display); font-weight: 400; font-size: 16px; color: var(--purple); margin-bottom: 8px; }
.symptom-card__desc  { font-size: 12.5px; color: var(--ink-light); line-height: 1.65; }
.symptom-card__cta   { font-size: 12px; font-weight: 600; color: var(--pink); margin-top: 12px; display: inline-block; }

/* Symptoms index */
.symptoms-index { padding: 80px 0 110px; background: var(--off); }
.symptom-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.symptom-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 380px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 22px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.symptom-search:focus-within { border-color: var(--pink); box-shadow: var(--shadow-sm); }
.symptom-search svg { color: var(--ink-light); flex-shrink: 0; }
.symptom-search input {
  flex: 1; border: none; outline: none;
  padding: 12px 0; background: transparent;
  font-family: var(--ff-body); font-size: 15px; color: var(--ink);
}
.symptom-controls__count {
  font-size: 13px; color: var(--ink-light); font-weight: 600;
  white-space: nowrap;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.symptom-tile {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--ease-mid), transform var(--ease-mid), border-color var(--ease-mid);
}
.symptom-tile:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.symptom-tile__img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--purple-pale);
}
.symptom-tile__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--ease-slow);
}
.symptom-tile:hover .symptom-tile__img img { transform: scale(1.05); }
.symptom-tile__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.symptom-tile__title {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 17px; color: var(--purple);
  line-height: 1.25;
}
.symptom-tile__desc {
  font-size: 13px; color: var(--ink-light);
  line-height: 1.6; margin: 0;
}
.symptom-tile__cta {
  margin-top: auto; padding-top: 10px;
  font-size: 12px; font-weight: 600; color: var(--pink);
  letter-spacing: .04em;
}

.symptom-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-light);
  font-size: 15px;
}
.symptom-empty a { color: var(--pink); font-weight: 600; }

/* Symptom detail */
.symptom-detail-hero { padding-bottom: 105px; }
.symptom-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
  gap: 56px;
  align-items: center;
}
.symptom-detail-hero__copy { min-width: 0; }
.symptom-detail-hero .page-hero__title span {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.symptom-detail-hero .page-hero__sub p { margin: 0 0 18px; }
.symptom-detail-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: -10px 0 28px;
}
.symptom-detail-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}
.symptom-adviser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.74);
}
.symptom-adviser:hover { color: var(--gold); }
.symptom-adviser img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.22);
}
.symptom-adviser strong { color: var(--white); font-weight: 600; }
.symptom-detail-hero__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--purple-pale);
}
.symptom-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.symptom-detail {
  background: var(--off);
  padding: 72px 0 110px;
}
.symptom-detail__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}
.symptom-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.symptom-toc__title {
  font-family: var(--ff-display);
  color: var(--purple);
  font-size: 18px;
  margin-bottom: 14px;
}
.symptom-toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--ease), padding-left var(--ease);
}
.symptom-toc a:hover,
.symptom-toc a.active {
  color: var(--pink);
  padding-left: 6px;
}
.symptom-mobile-toc {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 28px;
}
.symptom-mobile-toc label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}
.symptom-mobile-toc select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
}
.symptom-article {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.symptom-content-section {
  scroll-margin-top: 95px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-sm);
}
.symptom-content-section .label-tag { margin-bottom: 14px; }
.symptom-content-section .h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 20px;
}
.symptom-prose {
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.85;
}
.symptom-prose p { margin: 0 0 18px; }
.symptom-prose p:last-child { margin-bottom: 0; }
.symptom-prose ul,
.symptom-prose ol {
  margin: 0 0 20px 22px;
}
.symptom-prose li { margin-bottom: 8px; }
.symptom-prose a { color: var(--pink); font-weight: 600; }
.symptom-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.symptom-partner {
  margin-top: 34px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--pink-wash);
  border: 1.5px solid var(--border);
}
.symptom-partner h3 {
  font-family: var(--ff-display);
  font-weight: 300;
  color: var(--purple);
  font-size: clamp(24px, 3vw, 34px);
  margin: 12px 0;
}
.symptom-partner > div > p,
.symptom-partner__body p {
  color: var(--ink-mid);
  line-height: 1.75;
}
.symptom-partner__body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.symptom-partner__logo {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.symptom-partner__logo img {
  width: 100%;
  height: auto;
  display: block;
}
.symptom-partner h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  color: var(--purple);
  font-size: 22px;
  margin-bottom: 8px;
}
.symptom-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.symptom-faq__item {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--off);
  overflow: hidden;
}
.symptom-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  color: var(--purple);
  font-weight: 700;
  line-height: 1.45;
  position: relative;
}
.symptom-faq__item summary::-webkit-details-marker { display: none; }
.symptom-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 22px;
  font-weight: 400;
}
.symptom-faq__item[open] summary::after { content: '-'; }
.symptom-faq__answer {
  padding: 0 22px 20px;
  color: var(--ink-mid);
  line-height: 1.75;
}
.symptom-not-found {
  max-width: 680px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(30px, 5vw, 54px);
  box-shadow: var(--shadow-sm);
}
.symptom-not-found .h2 { margin: 16px 0; }
.symptom-not-found p {
  color: var(--ink-mid);
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .symptom-grid { grid-template-columns: repeat(3, 1fr); }
  .symptom-row { grid-template-columns: repeat(2, 1fr); }
  .symptom-detail-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .symptom-detail-hero__media { max-width: 640px; }
  .symptom-detail__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .symptom-toc { display: none; }
  .symptom-mobile-toc {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 12px);
    z-index: 10;
  }
}
@media (max-width: 820px) {
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 60px 0 70px; }
  .page-hero__stats { gap: 28px; }
  .symptom-detail-hero { padding-bottom: 85px; }
  .symptom-detail { padding: 50px 0 80px; }
  .symptom-detail-hero__actions { margin-top: 0; }
  .symptom-partner__body { grid-template-columns: 1fr; }
  .symptom-partner__logo { max-width: 220px; }
}
@media (max-width: 640px) {
  .symptom-row { grid-template-columns: 1fr; }
  .symptom-detail-hero__meta { align-items: flex-start; flex-direction: column; }
  .symptom-content-section { border-radius: var(--r-md); }
}
@media (max-width: 480px) {
  .symptom-grid { grid-template-columns: 1fr; }
  .symptom-detail-hero__actions a { width: 100%; text-align: center; }
}
