/* ============================================================
   Condition and treatment guides (includes/topic-page.php).
   Builds on speciality.css — only what those pages add is here.
   ============================================================ */

/* the icon inside the hero tag takes the place of the number */
.tp-hero .sp-hero__tag b svg { width: 14px; height: 14px; }

/* ── What it is + at a glance ────────────────────────────── */
.tp-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 48px; align-items: start; }
.tp-glance {
  background: #fff; border: 1px solid #E3E8EF; border-radius: 18px; padding: 24px 24px 20px;
  box-shadow: 0 14px 40px rgba(16, 33, 69, .08); position: sticky; top: 110px;
}
.tp-glance::before {
  content: ""; display: block; height: 4px; width: 56px; border-radius: 4px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.tp-glance h3 { font-size: 20px; margin-bottom: 12px; }
.tp-glance dl { margin: 0; }
.tp-glance dl > div { padding: 11px 0; border-top: 1px solid #EEF2F6; }
.tp-glance dl > div:first-child { border-top: 0; padding-top: 0; }
.tp-glance dt { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; font-family: var(--font-body); }
.tp-glance dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--heading); }
.tp-glance__btn { width: 100%; justify-content: center; margin-top: 16px; }
.tp-glance__where { font-size: 12.5px; color: #7A8699; text-align: center; margin: 10px 0 0; }

/* ── Card grids ──────────────────────────────────────────── */
.tp-lead { max-width: 720px; margin: 10px auto 0; color: var(--body); font-size: 16px; }
.section__head .tp-lead { text-align: center; }
.tp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.tp-card {
  background: #fff; border: 1px solid #E3E8EF; border-radius: 16px; padding: 22px 22px 20px;
  position: relative; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tp-card::before {
  content: ""; position: absolute; left: 22px; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--teal);
}
.tp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 33, 69, .09); border-color: #CBD8E6; }
.tp-card h3 { font-size: 18px; margin: 6px 0 8px; }
.tp-card p { font-size: 14.5px; line-height: 1.62; color: var(--body); margin: 0; }

/* ── Steps (dark band) ───────────────────────────────────── */
.tp-steps__lead { color: #A9BDD6; font-size: 15px; margin-bottom: 26px; }
.tp-num { position: relative; z-index: 2; font-family: var(--font-head); font-weight: 400; font-size: 18px; color: #fff; line-height: 1; }
.tp-step__h { font-size: 17px; color: #fff; margin: 0 0 3px; }

/* ── When to see a doctor ────────────────────────────────── */
.tp-when { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 44px; align-items: start; }
.tp-when .tp-lead { margin: 10px 0 0; }
.tp-list { margin: 20px 0 0; display: grid; gap: 11px; }
.tp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--heading); line-height: 1.5; }
.tp-tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E4F4F1; margin-top: 1px; position: relative;
}
.tp-tick::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tp-urgent { background: #FFF6F1; border: 1px solid #F6D9C8; border-radius: 18px; padding: 22px 24px; }
.tp-urgent h3 { font-size: 18px; color: #A23E0B; margin-bottom: 10px; }
.tp-urgent ul { display: grid; gap: 9px; }
.tp-urgent li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: #5A3320; }
.tp-urgent li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #E0662B; }
.tp-urgent p { font-size: 13px; color: #8A5A40; margin: 12px 0 0; }

/* ── Related ─────────────────────────────────────────────── */
.tp-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.tp-rel {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px;
  background: #F6F9FC; border: 1px solid #E3E8EF; color: inherit; transition: background .2s, border-color .2s, transform .2s;
}
.tp-rel:hover { background: #fff; border-color: var(--teal); transform: translateY(-2px); }
.tp-rel b { font-family: var(--font-head); font-weight: 400; font-size: 17px; color: var(--heading); line-height: 1.3; }
.tp-rel span { font-size: 13.5px; color: var(--body); line-height: 1.5; flex: 1; }
.tp-rel i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--teal); margin-top: 4px; }
.tp-note { max-width: 860px; margin: 30px auto 0; font-size: 12.5px; line-height: 1.6; color: #8792A6; text-align: center; }

/* ── Guides listed on other pages (treatments, conditions, home) ── */
.tp-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }

@media (max-width: 1100px) {
  .tp-cards, .tp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tp-intro, .tp-when { grid-template-columns: 1fr; gap: 28px; }
  .tp-glance { position: static; }
}
@media (max-width: 620px) {
  .tp-cards, .tp-related, .tp-index { grid-template-columns: 1fr; }
  .tp-card { padding: 20px 18px 18px; }
  .section__head .tp-lead, .tp-note { text-align: left; }
}
