/* The cash-pay medicine directory at /health/. Theme-inherited, TYPE-LED.
 * (File name is internal — see wordpress/mu-plugins/lc-health.php for why it did not
 * move with the URL.)
 *
 * Most records here have no photograph (see the spec: nothing was sourced from a paid image
 * API), so the card is designed to carry without one rather than around one. What replaces
 * the image is the fact this directory exists to surface: the practitioner's credential.
 * "Frederick G. Weniger, MD, FACS — board-certified plastic surgeon" is the most valuable
 * line on the page and the safest thing we can print, so it gets the visual weight a hero
 * image would normally take.
 *
 * The unstated case is styled DIFFERENTLY on purpose — dashed, muted, unmistakably a
 * different kind of statement. A visitor should be able to tell at a glance which clinics
 * publish who does the work, without reading a word. */

#lc-gm { max-width: 1200px; margin: 0 auto; padding: 0 15px 60px; }

/* ------------------------------------------------------------------ scope lede */

/* The section is called Health, so the first thing on it has to say what that means here.
   Given full lede weight on purpose: at body size it reads as boilerplate and gets skipped,
   which is the one outcome that makes the honest URL dishonest. */
.lch-lede { margin: 0 0 30px; max-width: 720px; }
.lch-lede-h { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.2; font-weight: 600; }
.lch-lede-p { margin: 0; font-size: 1.03rem; line-height: 1.62; opacity: .82; }
@media (max-width: 640px) {
  .lch-lede-h { font-size: 1.3rem; }
  .lch-lede-p { font-size: .96rem; }
}

/* ------------------------------------------------------------------ filters */

.lch-filterwrap { margin: 0 0 26px; }
.lch-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lch-filters-sub { margin-top: 10px; }
.lch-chip { border: 1px solid rgba(0,0,0,.16); background: transparent; border-radius: 999px;
  padding: 8px 16px; font-size: .88rem; line-height: 1.2; cursor: pointer; color: inherit; }
.lch-chip span { opacity: .45; margin-left: 4px; font-variant-numeric: tabular-nums; }
.lch-chip:hover { border-color: rgba(0,0,0,.4); }
.lch-chip.is-on { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.lch-chip.is-on span { opacity: .65; }
.lch-chip-sm { padding: 6px 13px; font-size: .81rem; }
.lch-q { flex: 1 1 220px; min-width: 180px; border: 1px solid rgba(0,0,0,.16);
  border-radius: 999px; padding: 7px 16px; font-size: .85rem; background: transparent;
  color: inherit; }
.lch-q:focus { outline: none; border-color: rgba(0,0,0,.45); }

.lch-count { margin: 0 0 30px; font-size: .84rem; letter-spacing: .05em;
  text-transform: uppercase; opacity: .55; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ sections */

.lch-section { margin: 0 0 46px; }
.lch-section-h { margin: 0 0 4px; font-size: 1.7rem; line-height: 1.15;
  border-top: 2px solid currentColor; padding-top: 14px; }
.lch-group { margin: 26px 0 0; }
.lch-group-h { margin: 0 0 14px; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; opacity: .6; font-weight: 600; }
.lch-group-h span { opacity: .55; letter-spacing: 0; }

.lch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }

/* ------------------------------------------------------------------ card */

.lch-card { position: relative; border: 1px solid rgba(0,0,0,.1); border-radius: 12px;
  overflow: hidden; background: #fff; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; }
.lch-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.11); transform: translateY(-2px); }

.lch-imgwrap { position: relative; display: block; aspect-ratio: 16 / 10; background: #ece9e4; }
.lch-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lch-flag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: .66rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 5px; background: #1a1a1a; color: #fff; }
/* No image to sit on: the flag joins the meta line, so a paid card's TITLE still sits on the
   same baseline as every other card in its row. */
.lch-flag-inline { position: static; display: inline-block; vertical-align: baseline;
  margin-right: 8px; padding: 3px 8px; font-size: .61rem; }

.lch-heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: rgba(0,0,0,.3);
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.13); transition: transform .12s, color .12s; }
.lch-heart svg { display: block; }
.lch-heart:hover { transform: scale(1.12); }
.lch-heart.is-on { color: #c0392b; }

.lch-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lch-body h3 { margin: 0; font-size: 1.14rem; line-height: 1.28; padding-right: 34px; }
.lch-body h3 a { color: inherit; text-decoration: none; }
.lch-body h3 a:hover { text-decoration: underline; }
.lch-meta { margin: 0; font-size: .79rem; letter-spacing: .05em; text-transform: uppercase;
  opacity: .55; }

/* The credential — this vertical's hero element. */
.lch-cred { margin: 0; font-size: .93rem; line-height: 1.45;
  border-left: 3px solid currentColor; padding: 2px 0 2px 11px; }
.lch-cred-tag { display: block; font-size: .63rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; opacity: .5; margin-bottom: 2px; }
/* Not stated reads as a different KIND of fact, not as a lesser version of the same one. */
.lch-cred-unknown { border-left-style: dashed; border-left-color: rgba(0,0,0,.25);
  font-size: .85rem; font-style: italic; opacity: .68; }

.lch-blurb { margin: 0; font-size: .92rem; line-height: 1.5; }
.lch-price { margin: 0; font-size: .88rem; line-height: 1.45;
  background: rgba(0,0,0,.04); border-radius: 7px; padding: 8px 11px; }
.lch-ins { margin: 0; font-size: .81rem; opacity: .7; }

.lch-actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.lch-btn { display: inline-block; padding: 9px 18px; border-radius: 999px; background: #1a1a1a;
  color: #fff !important; text-decoration: none !important; font-size: .85rem; }
.lch-btn:hover { opacity: .85; }
.lch-btn-ghost { background: transparent; color: inherit !important;
  border: 1px solid rgba(0,0,0,.22); }

/* Provenance. Small, but never hidden — a fact with no visible source is a fact we invented. */
.lch-src { margin: 8px 0 0; padding-top: 9px; border-top: 1px solid rgba(0,0,0,.08);
  font-size: .74rem; line-height: 1.4; opacity: .58; }
.lch-src a { color: inherit; }
.lch-src-missing { color: #b03a2e; opacity: 1; }

.lch-empty { margin: 30px 0; font-size: 1rem; opacity: .7; }

/* ------------------------------------------------------------------ disclosure */

.lch-disclosure { margin: 34px 0 0; border: 1px solid rgba(0,0,0,.13); border-radius: 12px;
  padding: 18px 22px; background: rgba(0,0,0,.02); max-width: 760px; }
.lch-disclosure p { margin: 0; font-size: .87rem; line-height: 1.6; }

/* ------------------------------------------------------------------ single clinic */

.lch-facts { margin: 30px 0 0; }
.lch-facts h2 { margin: 0 0 16px; font-size: 1.35rem; border-top: 2px solid currentColor;
  padding-top: 14px; }
.lch-facts dl { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 0;
  margin: 0 0 18px; }
.lch-facts dt { padding: 11px 0; font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; opacity: .5; border-top: 1px solid rgba(0,0,0,.09); }
.lch-facts dd { padding: 11px 0; margin: 0; font-size: .96rem; line-height: 1.5;
  border-top: 1px solid rgba(0,0,0,.09); }
@media (max-width: 560px) {
  .lch-facts dl { grid-template-columns: 1fr; }
  .lch-facts dt { padding-bottom: 0; border-top: 1px solid rgba(0,0,0,.09); }
  .lch-facts dd { padding-top: 3px; border-top: 0; }
}

/* ------------------------------------------------------------------ mobile */

/* When LCBottomBar moves the filter panel into its docked sheet, the chips get room to
   breathe and the search box stops competing with them for a single row. */
.lc-bottombar__panel .lch-filterwrap { margin: 0; }
.lc-bottombar__panel .lch-q { flex-basis: 100%; }
@media (max-width: 640px) {
  .lch-grid { grid-template-columns: 1fr; gap: 16px; }
  .lch-section-h { font-size: 1.4rem; }
}

/* ==========================================================================
   REDESIGN 2026-08-02 — "the shortlist, not the list"
   ==========================================================================
   The first build was a taxonomy dump: 36 identical bordered boxes under our own
   category headings, no photograph anywhere, every entry weighted the same. That is
   the standard failure of a directory build: the plumbing works and the surface is
   programmer-art. The test it fails is the frozen frame — pause anywhere, does the
   still belong in a magazine?

   Direction: EDITORIAL, inheriting the site rather than fighting it. The theme is
   Georgia on white, so this leans warm off-white + ink + ONE muted rose accent
   (Marsh & Rose), never a second hue. Photography carries it; type does the rest.
   Restrained on purpose: this is a conversion surface, so it aims at the Stripe
   ceiling — one confident opening, then get out of the way. Not scroll theatre.
   ========================================================================== */

#lc-gm {
  --ink:    #1c1815;   /* off-black. never #000 — pure black reads as unset */
  --muted:  #7c736a;
  --rule:   #e6e0d7;
  --paper:  #faf8f5;   /* warm, so photographs sit ON something */
  --accent: #9c5a56;   /* the site's rose, darkened to survive on paper */
}

/* --- shared section headings ------------------------------------------- */
#lc-gm .lch-h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1; letter-spacing: -.015em;
  margin: 3.2rem 0 .2rem; color: var(--ink);
}
#lc-gm .lch-sub { margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; font-style: italic; }
#lc-gm .lch-h2-all { padding-top: 2.4rem; border-top: 1px solid var(--rule); }

/* --- most sought: the shortlist ---------------------------------------- */
#lc-gm .lch-sought-grid {
  display: grid; gap: clamp(14px, 2.2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
#lc-gm .lch-hero-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--rule);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
#lc-gm .lch-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(28,24,21,.45);
}
#lc-gm .lch-hero-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: #efe9e0; }
#lc-gm .lch-hero-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
#lc-gm .lch-hero-card:hover .lch-hero-img img { transform: scale(1.04); }
#lc-gm .lch-hero-body { display: block; padding: 1.1rem 1.15rem 1.35rem; }
#lc-gm .lch-hero-cat {
  display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .45rem;
}
#lc-gm .lch-hero-t {
  display: block; font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.2;
  letter-spacing: -.01em; color: var(--ink);
}
#lc-gm .lch-hero-town {
  display: block; margin-top: .3rem; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}

/* --- the demand line: the proof, so it gets to look like a number ------- */
#lc-gm .lch-demand {
  margin: .55rem 0 0; font-size: .85rem; color: var(--muted);
  display: flex; align-items: baseline; gap: .4rem;
}
#lc-gm .lch-demand b { font-size: 1.02rem; color: var(--ink); font-weight: 700; }
#lc-gm .lch-imgwrap { position: relative; display: block; }
#lc-gm .lch-imgwrap .lch-demand {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.6rem .8rem .55rem; color: #fff;
  background: linear-gradient(to top, rgba(20,17,15,.82), rgba(20,17,15,0));
}
#lc-gm .lch-imgwrap .lch-demand b { color: #fff; }

/* --- by treatment: the navigation people actually use ------------------ */
/* Borders on the CELLS, not a 1px gap over a coloured container. The gap trick paints the
   container colour through any empty cell in the last row — nine items across a 5-up grid
   leaves one, and it read as a broken tile. Cell borders simply stop where the cells stop. */
#lc-gm .lch-treat-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; background: var(--paper);
  border: 1px solid var(--rule); border-width: 1px 0 0 1px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
#lc-gm .lch-treat-list li { display: flex; }
#lc-gm .lch-treat {
  width: 100%; display: flex; align-items: flex-start; gap: .7rem;
  padding: 1rem; background: var(--paper); cursor: pointer;
  border: 0 solid var(--rule); border-width: 0 1px 1px 0;
  font: inherit; text-align: left; color: var(--ink);
  transition: background .2s, color .2s;
}
#lc-gm .lch-treat:hover { background: var(--ink); color: #fff; }
#lc-gm .lch-treat-n {
  font-size: .78rem; color: var(--accent); min-width: 1.6em;
  font-variant-numeric: tabular-nums;
}
#lc-gm .lch-treat:hover .lch-treat-n { color: #d9a3a0; }
#lc-gm .lch-treat-t { font-size: .97rem; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  #lc-gm .lch-hero-card, #lc-gm .lch-hero-img img { transition: none; }
  #lc-gm .lch-hero-card:hover { transform: none; }
  #lc-gm .lch-hero-card:hover .lch-hero-img img { transform: none; }
}

/* --- what Google actually hands back ------------------------------------
   Measured, not guessed: the source photos come in at natural ratios of 0.75,
   1.18, 1.37, 1.50. A 0.75 is PORTRAIT — a practitioner headshot or a logo —
   and centre-cropping that into a 16:10 landscape frame cuts the head off.
   Biasing the crop upward keeps faces and signage in frame and costs nothing
   on the landscape shots, where the subject is central anyway. */
#lc-gm .lch-imgwrap img { object-position: 50% 32%; }

/* --- the four we could not match ----------------------------------------
   Four practices had no confident Places match, so they carry no photograph.
   In a photo-led grid a blank tile reads as broken. Rather than drop them —
   they are real practices and dropping them would quietly shrink the roster —
   they get a deliberate typographic tile: paper, a hairline, and the category
   set in the accent. It looks chosen instead of missing. */
#lc-gm .lch-card:not(:has(.lch-imgwrap)) { background: var(--paper); }
#lc-gm .lch-card:not(:has(.lch-imgwrap))::before {
  content: attr(data-cat);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; padding: 1rem; text-align: center;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); background:
    repeating-linear-gradient(45deg, #f3ede4 0 10px, #f7f2ea 10px 20px);
  border-bottom: 1px solid var(--rule);
}
