/* Concern pages (tools/concern-pages.mjs), served at /concerns/concern.css. The rows are the
   captured injectables, /team/, /faq/ and /testimonials/ rows, styled by their own CSS plus
   /treatments/page.css, /assets/doctors.css and /hubs/hub.css (table, cards). This file styles
   only what concern pages add: the "why" bullets, the "not to do" list, the ranked answer,
   the marked option card and the wider comparison table. Palette and type are the site's own:
   black hairlines, FreightNeo Pro text, DidotDisplay for names, the site yellow #FFFF6E. */

/* 1b. Why it happens: three bullets in the split row's text column. */
.dr-cn-why { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid rgba(0, 0, 0, .15); }
.dr-cn-why li { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .15); text-align: left; line-height: 1.5; }
.dr-cn-why strong { font-weight: 600; }

/* 2. What we'd tell you not to do: numbered 1 2 3, never 01 02 03 (Amr, 2026-10-14). */
.dr-cn-avoid, .dr-cn-best { max-width: 860px; margin: 32px auto 0; padding: 0; list-style: none; counter-reset: dr-cn; text-align: left; }
.dr-cn-avoid li, .dr-cn-best li { position: relative; counter-increment: dr-cn; padding: 20px 0 20px 56px; border-top: 1px solid rgba(0, 0, 0, .15); text-align: left; }
.dr-cn-avoid li:last-child, .dr-cn-best li:last-child { border-bottom: 1px solid rgba(0, 0, 0, .15); }
.dr-cn-avoid li::before, .dr-cn-best li::before {
  content: counter(dr-cn); position: absolute; left: 0; top: 16px; font-family: DidotDisplay, Verdana, Arial, sans-serif; font-size: 30px; line-height: 1;
}
.dr-cn-avoid__h { margin: 0 0 6px; font-family: DidotDisplay, Verdana, Arial, sans-serif; font-size: 22px; line-height: 1.25; font-weight: 400; text-align: left; }
.dr-cn-avoid p { margin: 0; font-size: 16px; line-height: 1.55; text-align: left; }

/* 3. The ranked answer. */
.dr-cn-best li { font-size: 16px; line-height: 1.55; }
.dr-cn-best__when { display: block; margin-bottom: 4px; font-weight: 600; }
.dr-cn-best a, .dr-cn-avoid a, .dr-cn-why a, .dr-cn-after a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; }
.dr-cn-after { max-width: 860px; margin: 18px auto 0; font-size: 16px; text-align: left; }

/* 4a. Options: five cards in a row on desktop, two on phones; the marked card's label. */
.dr-cn-cards { grid-template-columns: repeat(5, 1fr); gap: 24px; }
/* Four options fill the row instead of leaving a fifth column empty (Volume Loss). */
@media (min-width: 1101px) { .dr-cn-cards:has(> .dr-hub-card:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.dr-cn-cards .dr-hub-card { position: relative; }
.dr-cn-cards .dr-hub-card__name { font-size: 22px; }
.dr-cn-mark {
  position: absolute; top: 10px; left: 10px; z-index: 1; max-width: calc(100% - 20px); padding: 6px 10px; background: #FFFF6E; color: #000;
  font-size: 12px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
}
@media (max-width: 1100px) { .dr-cn-cards { grid-template-columns: repeat(3, 1fr); } }
/* Two or three cards (melasma two; hair loss two or three on production): centred at a card's
   usual width, not stranded left or stretched over five columns. */
@media (min-width: 768px) { .dr-cn-cards:not(:has(> li:nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); justify-content: center; } }
@media (max-width: 767px) { .dr-cn-cards { grid-template-columns: 1fr 1fr; gap: 20px 14px; } .dr-cn-cards .dr-hub-card__name { font-size: 20px; } .dr-cn-cards .dr-hub-card__line { font-size: 14px; } }

/* 4b. Comparison: six columns; the hub table's column widths are for four. */
@media (min-width: 768px) {
  .dr-cn-table { font-size: 15px; }
  .dr-cn-table tbody th { width: 15%; }
  .dr-cn-table td:nth-child(2) { width: 24%; }
  .dr-cn-table td:nth-child(3) { width: 22%; }
  .dr-cn-table th, .dr-cn-table td { padding-right: 14px; }
  .dr-cn-table tbody th + td { padding-left: 14px; } /* header and body columns line up */
  .dr-cn-table td + td, .dr-cn-table th + th { padding-left: 14px; }
  .dr-cn-table tbody th > a { font-size: 22px; }
}

/* Optional extra sections (concern-pages.mjs `sections`): the "not to do" list, unnumbered. */
.dr-cn-list li { padding-left: 0; }
.dr-cn-list li::before { content: none; }

#why, #not-to-do, #best-treatment, #options, #compare, #topicals { scroll-margin-top: 90px; }

/* QA 2026-10-14: the label row centres its rich text, so the lists, bullets and table read
   centred against left-hand numbers; everything this file adds is left-aligned. */
.dr-cn-why, .dr-cn-why *, .dr-cn-avoid, .dr-cn-avoid *, .dr-cn-list, .dr-cn-list *, .dr-cn-best, .dr-cn-best *, .dr-cn-after,
.dr-cn-table th, .dr-cn-table th *, .dr-cn-table td, .dr-cn-table td * { text-align: left !important; }
.dr-cn-table th, .dr-cn-table td { vertical-align: top; }
/* headings and the byline never leave one word on a line */
.dr-tx-label, .dr-tx-byline { text-wrap: balance; }
.dr-tx-byline a { white-space: nowrap; color: inherit; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .dr-cn-mark { top: 6px; left: 6px; max-width: calc(100% - 12px); padding: 4px 7px; font-size: 10px; letter-spacing: .04em; }
  /* an odd last card spans the row instead of sitting alone at half width */
  .dr-cn-cards .dr-hub-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dr-cn-cards .dr-hub-card:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
}

/* ---- How Is X Treated? (copy pass 2026-10-18): the ranked answer, "The Treatments" cards and
   the comparison collapsed under "Side by Side", in one section. ---- */
.dr-cn-derm { margin-top: 18px; font-weight: 600; text-align: left; }
.dr-cn-sub { margin-top: 56px; scroll-margin-top: 90px; }
.dr-cn-sub__h { margin: 0 0 24px; font-family: DidotDisplay, Verdana, Arial, sans-serif; font-size: 28px; line-height: 1.2; font-weight: 400; text-align: center; }
.dr-cn-compare { margin-top: 48px; border-top: 1px solid #000; border-bottom: 1px solid rgba(0, 0, 0, .15); scroll-margin-top: 90px; }
.dr-cn-compare > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0;
  cursor: pointer; list-style: none; font-family: DidotDisplay, Verdana, Arial, sans-serif; font-size: 24px; line-height: 1.2; text-align: left;
}
.dr-cn-compare > summary::-webkit-details-marker { display: none; }
.dr-cn-compare > summary::after { content: "+"; font-size: 26px; line-height: 1; }
.dr-cn-compare[open] > summary::after { content: "\2212"; }
.dr-cn-compare > summary:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.dr-cn-compare[open] { padding-bottom: 24px; }
