/* Legal-help formats A / B / C (ASK_LEGAL_HELP_AD_FORMATS_SPEC_2026_09_22 §2,
   formats mock PsEi5SxMDvBb6cE2Se3BNP). Drawn inside Ella's answer on both
   Ask roots (.sch desktop, .jaim mobile), which define the pane tokens; the
   C pop-up and phone sheet are portalled into the same root so they keep
   them. Local tokens are redefined for both dark themes below.
   Class names avoid "ad", "sponsor" and "promo" as tokens (ad-block filter
   lists). Buttons are rounded squares (10px), not pills. */

.sch__lhf,
.sch__lhf-pop,
.sch__lhf-layer {
  --lhf-ink: var(--pane-ink);
  --lhf-ink-2: var(--pane-ink-2);
  --lhf-muted: var(--pane-muted, var(--pane-ink-2));
  --lhf-line: var(--pane-border);
  --lhf-line-2: var(--pane-border-strong, color-mix(in oklch, var(--pane-ink), transparent 78%));
  --lhf-card: var(--pane-surface);
  --lhf-chip: color-mix(in oklch, var(--pane-ink), transparent 94%);
  --lhf-btn: var(--pane-ink);
  --lhf-btn-ink: var(--pane-surface);
  --lhf-overlay: color-mix(in oklch, var(--pane-surface), transparent 8%);
  --lhf-shadow: 0 1px 2px rgb(40 30 20 / 0.05), 0 8px 24px -12px rgb(40 30 20 / 0.16);
  --lhf-float-shadow: 0 18px 40px -14px rgb(40 30 20 / 0.35);
  --lhf-open: oklch(0.52 0.12 150);
  --lhf-initials-bg: color-mix(in oklch, var(--pane-ink), transparent 90%);
  --lhf-focus: var(--ochre-ink);
  font-family: var(--font-sans);
  color: var(--lhf-ink);
}
.sch[data-theme="dark"] .sch__lhf,
.sch[data-theme="dark"] .sch__lhf-pop,
.sch[data-theme="dark"] .sch__lhf-layer,
.jaim[data-theme="dark"] .sch__lhf,
.jaim[data-theme="dark"] .sch__lhf-pop,
.jaim[data-theme="dark"] .sch__lhf-layer {
  --lhf-chip: color-mix(in oklch, var(--pane-ink), transparent 88%);
  --lhf-line-2: color-mix(in oklch, var(--pane-ink), transparent 70%);
  --lhf-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  --lhf-float-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.7);
  --lhf-open: oklch(0.80 0.12 150);
  --lhf-initials-bg: color-mix(in oklch, var(--pane-ink), transparent 84%);
  --lhf-focus: oklch(0.86 0.09 68);
}

.sch__lhf {
  box-sizing: border-box;
  margin: 4px 0 16px;
  font-size: 14px;
  line-height: 1.5;
}
.sch__lhf *,
.sch__lhf-pop *,
.sch__lhf-layer * { box-sizing: border-box; }
.sch__lhf a:focus-visible,
.sch__lhf button:focus-visible,
.sch__lhf [role="button"]:focus-visible,
.sch__lhf-pop a:focus-visible,
.sch__lhf-pop button:focus-visible,
.sch__lhf-sheet a:focus-visible,
.sch__lhf-sheet button:focus-visible {
  outline: 2px solid var(--lhf-focus);
  outline-offset: 2px;
}
.sch__lhf-pop:focus { outline: none; }

/* ── shared ── */
.sch__lhf-pill {
  display: inline-block;
  flex: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lhf-chip);
  color: var(--lhf-muted);
  white-space: nowrap;
}
.sch__lhf-icon {
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--lhf-initials-bg);
  color: var(--lhf-ink);
}
.sch__lhf-icon--tinted { color: #fff; }
.sch__lhf-icon img { width: 100%; height: 100%; object-fit: contain; }

/* A picture box: the image covers it; initials sit centred when there is none. */
.sch__lhf-a-photo,
.sch__lhf-c-pic,
.sch__lhf-b-thumb,
.sch__lhf-pop-thumb {
  position: relative;
  overflow: hidden;
  background: var(--lhf-chip);
}
.sch__lhf-a-photo > img,
.sch__lhf-c-pic > img,
.sch__lhf-b-thumb > img,
.sch__lhf-pop-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A free listing's logo is shown whole on its brand colour, not cropped. */
.sch__lhf-pic--logo > img {
  inset: 18%;
  width: 64%;
  height: 64%;
  object-fit: contain;
}
.sch__lhf-pic--initials { background: var(--lhf-initials-bg); }
.sch__lhf-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--lhf-ink-2);
}
.sch__lhf-initials--tinted { color: #fff; }

.sch__lhf-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font: 500 13.5px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.sch__lhf-btn svg { width: 15px; height: 15px; flex: none; }
.sch__lhf .sch__lhf-btn--main,
.sch__lhf-pop .sch__lhf-btn--main {
  background: var(--lhf-btn);
  color: var(--lhf-btn-ink);
}
.sch__lhf .sch__lhf-btn--main:hover,
.sch__lhf-pop .sch__lhf-btn--main:hover { background: color-mix(in oklch, var(--lhf-btn), transparent 12%); }
.sch__lhf .sch__lhf-btn--web,
.sch__lhf-pop .sch__lhf-btn--web {
  border: 1px solid var(--lhf-line-2);
  background: transparent;
  color: var(--lhf-ink);
}
.sch__lhf .sch__lhf-btn--web:hover,
.sch__lhf-pop .sch__lhf-btn--web:hover { background: var(--lhf-chip); }
.sch__lhf-btn--square { width: 34px; padding: 0; }

.sch__lhf-open { font-weight: 500; color: var(--lhf-muted); }
.sch__lhf-open--on { color: var(--lhf-open); }

.sch__lhf-why { position: relative; margin-left: auto; flex: none; line-height: 0; }
.sch__lhf-dots {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 6px;
  color: var(--lhf-muted);
  cursor: pointer;
  line-height: 0;
}
.sch__lhf-dots:hover { background: var(--lhf-chip); }
.sch__lhf-dots svg { width: 18px; height: 18px; }
.sch__lhf-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  width: min(290px, 78vw);
  padding: 6px;
  border: 1px solid var(--lhf-line-2);
  border-radius: 12px;
  background: var(--lhf-card);
  box-shadow: var(--lhf-float-shadow);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.sch__lhf-menu-item {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--lhf-ink);
}
.sch__lhf-menu-item b { font-weight: 600; }
.sch__lhf-menu-item small { display: block; margin-top: 2px; font-size: 12px; color: var(--lhf-muted); }
.sch__lhf-menu-act {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sch__lhf-menu-act:hover:not(:disabled) { background: var(--lhf-chip); }

/* Previews in the studio: every tappable part shows where it leads. */
.sch__lhf--preview [data-edit] { cursor: pointer; }
.sch__lhf--preview [data-edit]:hover {
  outline: 2px solid color-mix(in oklch, var(--lhf-focus), transparent 40%);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── A · Featured photo card ── */
.sch__lhf-a {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  border: 1px solid var(--lhf-line);
  border-radius: 18px;
  background: var(--lhf-card);
  box-shadow: var(--lhf-shadow);
}
/* The card itself does not clip, so the ⋯ panel can overhang it; the photo
   rounds its own outer corners instead. */
.sch__lhf-a-photo { min-height: 150px; border-radius: 17px 0 0 17px; }
.sch__lhf-a-body {
  min-width: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sch__lhf-a-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sch__lhf-a-name {
  min-width: 0;
  font-size: 14px;
  color: var(--lhf-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch__lhf-a-head {
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.sch__lhf-a-sub { font-size: 14.5px; line-height: 1.45; color: var(--lhf-muted); overflow-wrap: anywhere; }
.sch__lhf-a-meta { margin-top: 3px; font-size: 12.5px; color: var(--lhf-muted); }
.sch__lhf-a-meta:empty { display: none; }
.sch__lhf-a-acts { display: flex; gap: 8px; margin-top: 10px; }
.sch__lhf--phone.sch__lhf-a { grid-template-columns: 38% minmax(0, 1fr); border-radius: 16px; }
.sch__lhf--phone .sch__lhf-a-photo { min-height: 170px; border-radius: 15px 0 0 15px; }
.sch__lhf--phone .sch__lhf-a-body { padding: 11px 12px 12px; }
.sch__lhf--phone .sch__lhf-a-name { font-size: 13px; }
.sch__lhf--phone .sch__lhf-a-head { margin-top: 2px; font-size: 15px; }
.sch__lhf--phone .sch__lhf-a-sub { font-size: 13.5px; }
.sch__lhf--phone .sch__lhf-a-acts { gap: 6px; margin-top: 8px; }
.sch__lhf--phone .sch__lhf-a-acts .sch__lhf-btn--main { flex: 1; padding: 0 10px; }

/* ── B · Spotlight block ── */
.sch__lhf-b { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.sch__lhf-rule { height: 1px; background: var(--lhf-line); margin: 4px 0 6px; }
.sch__lhf-b-top { display: flex; align-items: center; gap: 10px; }
.sch__lhf-b-who { min-width: 0; }
.sch__lhf-b-who b { display: block; font-size: 15px; font-weight: 600; color: var(--lhf-ink); }
.sch__lhf-b-who span { font-size: 13.5px; color: var(--lhf-muted); }
.sch__lhf-b-intro { margin: 0; color: var(--lhf-ink-2); overflow-wrap: anywhere; }
.sch__lhf-b-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.sch__lhf-b-rail::-webkit-scrollbar { display: none; }
.sch__lhf-b-rail > li { flex: none; scroll-snap-align: start; }
.sch__lhf-b-railwrap { position: relative; }
/* The rail clips overflow, so a tile's focus ring sits inside its edge. */
.sch__lhf .sch__lhf-b-tile:focus-visible { outline-offset: -2px; }
.sch__lhf-b-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--lhf-line-2);
  border-radius: 50%;
  background: var(--lhf-card);
  color: var(--lhf-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -8px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.sch__lhf-b-arrow:hover { background: var(--lhf-chip); }
.sch__lhf-b-arrow--left { left: -12px; }
.sch__lhf-b-arrow--right { right: -12px; }
@media (hover: none) { .sch__lhf-b-arrow { display: none; } }
.sch__lhf-b-tile {
  width: 280px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: var(--lhf-chip);
  color: inherit;
  text-decoration: none;
}
.sch__lhf-b-words { min-width: 0; }
.sch__lhf-b-words b { display: block; font-size: 15px; font-weight: 600; color: var(--lhf-ink); overflow-wrap: anywhere; }
.sch__lhf-b-words span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--lhf-muted); overflow-wrap: anywhere; }
.sch__lhf-b-thumb { width: 72px; height: 72px; border-radius: 12px; }
.sch__lhf-b-thumb .sch__lhf-initials { font-size: 18px; }
.sch__lhf-b-ctas { display: flex; justify-content: center; align-items: center; gap: 6px; }
.sch__lhf-b-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--lhf-ink-2);
  text-decoration: none;
}
.sch__lhf-b-cta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch__lhf-b-cta:hover { background: var(--lhf-chip); }
.sch__lhf-b-cta svg { width: 17px; height: 17px; flex: none; }
.sch__lhf-b-sep { flex: none; width: 1px; height: 18px; background: var(--lhf-line-2); }
.sch__lhf--phone .sch__lhf-b-rail { margin-right: -16px; padding-right: 16px; }
.sch__lhf--phone .sch__lhf-b-tile { width: 250px; }
.sch__lhf--phone .sch__lhf-b-cta { font-size: 14px; padding: 6px 8px; }

/* ── C · Basic option row ── */
.sch__lhf-c-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}
.sch__lhf-c-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lhf-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--lhf-card);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms, box-shadow 120ms;
}
.sch__lhf-c-card:hover,
.sch__lhf-c-card--on { border-color: var(--lhf-line-2); box-shadow: var(--lhf-shadow); }
.sch__lhf-c-pic { aspect-ratio: 4 / 3; }
.sch__lhf-c-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--lhf-overlay);
  color: var(--lhf-ink);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}
.sch__lhf-c-words { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sch__lhf-c-words b { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--lhf-ink); overflow-wrap: anywhere; }
.sch__lhf-c-words > span { font-size: 12.5px; color: var(--lhf-muted); overflow-wrap: anywhere; }
.sch__lhf-c-words > span:empty { display: none; }
.sch__lhf-c-offer { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--lhf-ink); }
.sch__lhf-fine { margin: 8px 0 0; font-size: 12.5px; color: var(--lhf-muted); }
.sch__lhf-fine a { color: inherit; text-decoration: none; }
.sch__lhf-fine a:hover { text-decoration: underline; }
.sch__lhf--phone .sch__lhf-c-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin-right: -16px;
  padding-right: 16px;
}
.sch__lhf--phone .sch__lhf-c-row::-webkit-scrollbar { display: none; }
.sch__lhf--phone .sch__lhf-c-card { flex: none; width: 150px; scroll-snap-align: start; }
.sch__lhf--phone .sch__lhf-c-words b { font-size: 13.5px; }

/* C pop-up (desktop): fixed, portalled, anchored under its card. */
.sch__lhf-pop {
  position: fixed;
  z-index: 60;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--lhf-line-2);
  border-radius: 14px;
  background: var(--lhf-card);
  box-shadow: var(--lhf-float-shadow);
  font-size: 14px;
  line-height: 1.45;
}
.sch__lhf-pop::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--lhf-arrow, 60px);
  width: 12px;
  height: 12px;
  background: var(--lhf-card);
  border-left: 1px solid var(--lhf-line-2);
  border-top: 1px solid var(--lhf-line-2);
  transform: rotate(45deg);
}
.sch__lhf-pop--above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.sch__lhf-pop-top { display: flex; gap: 10px; align-items: center; }
.sch__lhf-pop-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.sch__lhf-pop-thumb .sch__lhf-initials { font-size: 15px; }
.sch__lhf-pop-who { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; line-height: 1.3; }
.sch__lhf-pop-who b { font-size: 14.5px; font-weight: 600; color: var(--lhf-ink); }
.sch__lhf-pop-who > span { font-size: 12.5px; color: var(--lhf-muted); }
.sch__lhf-pop-who .sch__lhf-pill { font-size: 11px; }
.sch__lhf-x {
  appearance: none;
  flex: none;
  align-self: flex-start;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lhf-muted);
  font-size: 12px;
  cursor: pointer;
}
.sch__lhf-x:hover { background: var(--lhf-chip); }
.sch__lhf-pop-acts { display: flex; gap: 8px; }
.sch__lhf-pop-acts .sch__lhf-btn--main { flex: 1; }
.sch__lhf-pop-meta { margin: 0; font-size: 12px; color: var(--lhf-muted); }
.sch__lhf-pop-meta:empty { display: none; }

/* C sheet (phone): a modal layer over the whole root. */
.sch__lhf-layer { position: fixed; inset: 0; z-index: 80; }
.sch__lhf-dim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.28); touch-action: none; }
.sch__lhf-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 22px 22px 0 0;
  background: var(--lhf-card);
  box-shadow: 0 -10px 40px -10px rgb(0 0 0 / 0.35);
  font-size: 14px;
  line-height: 1.45;
}
.sch__lhf-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--lhf-line-2); align-self: center; }
.sch__lhf-sheet .sch__lhf-pop-thumb { width: 56px; height: 56px; border-radius: 12px; }
.sch__lhf-sheet .sch__lhf-pop-who b { font-size: 16px; }
.sch__lhf-sheet .sch__lhf-pop-who > span { font-size: 13px; }
.sch__lhf-opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
}
.sch__lhf-opt b { font-size: 14px; font-weight: 500; color: var(--lhf-ink); overflow-wrap: anywhere; }
.sch__lhf-opt > span { grid-column: 1; font-size: 12.5px; color: var(--lhf-muted); }
.sch__lhf-opt-go {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--lhf-line-2);
  border-radius: 10px;
  color: var(--lhf-ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.sch__lhf-opt-go svg { width: 15px; height: 15px; }
.sch__lhf-opt-go:hover { background: var(--lhf-chip); }

/* ---------- Production wiring (ASK_AD_STUDIO_PLAN_2026_09_22 PR 5) ---------- */

/* Inside Ella's answer the card section drops its own box around a format,
   which draws its own (disclosure, rules, card). The DV note stays above it. */
.sch__legal-help.sch__legal-help--format {
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: none;
}
.sch__legal-help.sch__legal-help--format:focus { outline: none; }
/* Basic (format C) sits under the answer, where the old card was
   (placement comes with the tier, 2026-09-23): the old card's spacing. */
.sch__legal-help.sch__legal-help--format.sch__legal-help--under { margin: 14px 0 4px; }
/* The in-answer slot: the host pays its height changes back as scroll (R1),
   so the browser must never pick it as its own scroll anchor. */
.sch__legal-help-slot { overflow-anchor: none; }
.sch__legal-help-slot > .sch__legal-help:not(.sch__legal-help--format) { margin: 6px 0 16px; }

/* Format B's follow-along bar, docked in the composer banner's slot. */
.sch__lhf.sch__lhf-follow {
  max-width: 760px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--lhf-line);
  border-radius: 16px;
  background: var(--lhf-card);
  box-shadow: var(--lhf-shadow);
  line-height: 1.25;
  animation: sch-lhf-follow-in 180ms cubic-bezier(.2, .7, .3, 1);
}
.sch__lhf-follow-who {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sch__lhf-follow-who b,
.sch__lhf-follow-who span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sch__lhf-follow-who b { font-size: 14px; font-weight: 600; color: var(--lhf-ink); }
.sch__lhf-follow-who span { font-size: 12px; color: var(--lhf-muted); }
.sch__lhf-follow .sch__lhf-follow-x { align-self: center; width: 26px; height: 26px; }
.sch__lhf.sch__lhf-follow--phone { gap: 8px; padding: 7px 7px 7px 9px; border-radius: 14px; }
.sch__lhf-follow--phone .sch__lhf-btn--main { padding: 0 11px; }
@keyframes sch-lhf-follow-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sch__lhf-btn,
  .sch__lhf-c-card { transition: none; }
  .sch__lhf.sch__lhf-follow { animation: none; }
}

/* ---------- Free card (Win's locked design, 2026-09-26) ----------
   Mocks "MainBar" (phone) + "Desktop": ONE listing as one white card — text
   on the left, the picture panel on the right — and one quiet line under it.
   Always under the answer. The section drops the old card box around it. */
.sch__legal-help.sch__legal-help--free {
  margin: 14px 0 4px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.sch__legal-help.sch__legal-help--free:focus { outline: none; }
.sch__legal-help-slot > .sch__legal-help.sch__legal-help--free { margin: 6px 0 16px; }

.sch__lhf.sch__lhf-free {
  --lhf-free-wash: color-mix(in oklch, var(--ochre-ink), transparent 86%);
  --lhf-free-ink: var(--ochre-ink);
  --lhf-danger: var(--danger, oklch(0.55 0.17 28));
  --lhf-danger-wash: color-mix(in oklch, var(--danger, oklch(0.55 0.17 28)), transparent 88%);
  /* The picture panel's tan (mock #f4ede1), mixed from the app's tokens. */
  --lhf-free-pic: color-mix(in oklch, var(--ochre-tint) 20%, var(--bg-warm));
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sch[data-theme="dark"] .sch__lhf.sch__lhf-free,
.jaim[data-theme="dark"] .sch__lhf.sch__lhf-free {
  --lhf-free-wash: color-mix(in oklch, oklch(0.86 0.09 68), transparent 84%);
  --lhf-free-ink: oklch(0.86 0.09 68);
  --lhf-danger: oklch(0.80 0.12 30);
  --lhf-danger-wash: color-mix(in oklch, oklch(0.72 0.14 30), transparent 82%);
  /* Logos are dark marks: keep them on a light (slightly dimmed) tan tile. */
  --lhf-free-pic: color-mix(in oklch, var(--bg-warm) 88%, var(--pane-surface));
}
/* The heading is for screen readers only; the card says what it is. */
.sch__lhf-free-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sch__lhf-free-link,
.sch__lhf-free a:not(.sch__lhf-btn) {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--lhf-free-ink);
  text-decoration: none;
  cursor: pointer;
}
.sch__lhf-free-link:hover,
.sch__lhf-free a:not(.sch__lhf-btn):hover { text-decoration: underline; }

.sch__lhf-free-danger {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lhf-danger-wash);
  color: var(--lhf-danger);
  font-size: 14px;
  font-weight: 500;
}
.sch__lhf-free-danger svg { flex: none; width: 18px; height: 18px; }
.sch__lhf-free .sch__lhf-free-danger a { color: inherit; font-weight: 600; text-decoration: underline; }
/* On the free card the DV note is one small line above the card. */
.sch__lhf-free-danger--line {
  padding: 0 4px;
  gap: 6px;
  background: none;
  font-size: 13px;
  line-height: 1.4;
}
.sch__lhf-free-danger--line svg { width: 15px; height: 15px; }
/* National DV Hotline: same one-line shape as the 911 note, in body ink. */
.sch__lhf-free-hotline { color: var(--lhf-ink); }
.sch__lhf-free-hotline a { color: inherit; font-weight: 600; text-decoration: underline; }
/* Keep "Call (800) 799-7233" and "Text START to 88788" whole when the line wraps on a phone. */
.sch__lhf-free-hotline a { white-space: nowrap; }
.sch__lhf-free-hotline--format { margin: 8px 0 12px; }

.sch__lhf-free-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--lhf-line);
  border-radius: 18px;
  background: var(--lhf-card);
  box-shadow: var(--lhf-shadow);
}
.sch__lhf-free-card--link:hover { border-color: var(--lhf-line-2); }
.sch__lhf-free-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
}
.sch__lhf-free-name,
.sch__lhf-free a.sch__lhf-free-name {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--lhf-ink);
  overflow-wrap: anywhere;
}
.sch__lhf-free a.sch__lhf-free-name:hover { text-decoration: none; }
/* The stretched link: the name's box covers the whole card. */
.sch__lhf-free-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
}
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-stretch::after { border-radius: 20px; }
.sch__lhf-free a.sch__lhf-free-stretch:focus-visible { outline: none; }
.sch__lhf-free a.sch__lhf-free-stretch:focus-visible::after { outline: 2px solid var(--lhf-focus); outline-offset: 2px; }
/* Links that sit above the stretched one. */
.sch__lhf-free-over { position: relative; z-index: 2; }

.sch__lhf-free-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--lhf-muted);
}
.sch__lhf-free-hours i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--lhf-line-2); }
.sch__lhf-free-hours b { font-weight: 500; color: var(--lhf-ink-2); }
.sch__lhf-free-hours--open i { background: var(--lhf-open); }
.sch__lhf-free-hours--open b { color: var(--lhf-open); }
.sch__lhf-free-hours--raw { display: block; overflow-wrap: anywhere; }

.sch__lhf-free-tel,
.sch__lhf-free a.sch__lhf-free-tel {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--lhf-free-ink);
  white-space: nowrap;
}
.sch__lhf-free-tel svg { flex: none; width: 12px; height: 12px; }

.sch__lhf-free-pic {
  position: relative;
  flex: none;
  align-self: stretch;
  width: 96px;
  min-height: 72px;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--lhf-free-pic);
  /* The panel's margin around the logo; the foot is its bottom margin. */
  --lhf-free-pic-inset: 8px;
  --lhf-free-pic-foot: 8px;
  --lhf-free-pic-max: 60px;
}
/* Logos are pre-framed assets (trimmed, centred, optically sized, padded in
   the file), so the panel only fits them: no crop, no zoom. */
.sch__lhf-free-pic img {
  position: absolute;
  top: var(--lhf-free-pic-inset);
  bottom: var(--lhf-free-pic-foot);
  left: var(--lhf-free-pic-inset);
  width: calc(100% - 2 * var(--lhf-free-pic-inset));
  height: calc(100% - var(--lhf-free-pic-inset) - var(--lhf-free-pic-foot));
  /* One mark size on every card: a long name makes the panel taller, not the
     logo bigger. Auto margins centre the capped box in the space. */
  max-height: var(--lhf-free-pic-max);
  margin: auto 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
/* Phone with the Website chip: the chip covers the panel's bottom 36px, so the
   mark sits in the space above it, and the panel is tall enough to give the
   mark room even when the name is one line. */
.sch__lhf-free-card--chip .sch__lhf-free-pic {
  min-height: 100px;
  --lhf-free-pic-inset: 7px;
  --lhf-free-pic-foot: 40px;
}
.sch__lhf-free-pic--brand img { mix-blend-mode: normal; }
.sch[data-theme="dark"] .sch__lhf-free-pic img,
.jaim[data-theme="dark"] .sch__lhf-free-pic img { mix-blend-mode: normal; }
.sch__lhf-free-pic--initials {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lhf-free-ink);
}
.sch[data-theme="dark"] .sch__lhf-free-pic--initials,
.jaim[data-theme="dark"] .sch__lhf-free-pic--initials { color: var(--ochre-ink); }
.sch__lhf-free-pic--brand.sch__lhf-free-pic--initials { color: #fff; }
/* Keep the initials clear of the Website chip over the panel's foot. */
.sch__lhf-free-card--chip .sch__lhf-free-pic--initials { padding-bottom: 36px; }

/* Phone: the "Website" chip over the picture's bottom-right corner. */
.sch__lhf-free a.sch__lhf-free-site {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--lhf-line-2);
  border-radius: 9px;
  background: color-mix(in oklch, var(--lhf-card), transparent 6%);
  box-shadow: 0 2px 6px rgb(40 30 20 / 0.16);
  color: var(--lhf-ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.sch__lhf-free a.sch__lhf-free-site:hover { text-decoration: none; background: var(--lhf-card); }
.sch__lhf-free-site svg { flex: none; width: 11px; height: 11px; }

/* Desktop (mock "Desktop"): a wider card that opens the website, with its
   own phone and domain lines. */
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-card {
  max-width: 460px;
  gap: 16px;
  padding: 6px 6px 6px 18px;
  border-radius: 20px;
}
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-text { gap: 2px; padding: 6px 0; }
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-name { font-size: 17px; letter-spacing: -0.012em; }
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-hours { font-size: 13.5px; }
.sch__lhf-free:not(.sch__lhf-free--phone) a.sch__lhf-free-tel { align-self: flex-start; gap: 6px; font-size: 14px; }
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-tel svg { width: 13px; height: 13px; }
.sch__lhf-free a.sch__lhf-free-site-line {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--lhf-muted);
  overflow-wrap: anywhere;
}
.sch__lhf-free-site-line svg { flex: none; width: 13px; height: 13px; }
/* WCAG 2.2 target size: the phone and website links are at least 24px tall. */
.sch__lhf-free a.sch__lhf-free-tel,
.sch__lhf-free a.sch__lhf-free-site-line { min-height: 24px; }
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-pic {
  width: 104px;
  border-radius: 14px;
  --lhf-free-pic-inset: 10px;
  --lhf-free-pic-foot: 10px;
  --lhf-free-pic-max: 80px;
}

.sch__lhf-free-ask { margin: 0; font-size: 13.5px; color: var(--lhf-muted); }
.sch__lhf-free-note {
  margin: 0;
  padding: 0 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lhf-ink-2);
}
.sch__lhf-free-foot {
  margin: 0;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--lhf-muted);
}
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-foot,
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-note { padding: 0 8px; font-size: 12.5px; }
.sch__lhf-free .sch__lhf-free-foot .sch__lhf-free-link { font-weight: 400; }
.sch__lhf-free .sch__lhf-free-foot a { color: inherit; text-decoration: underline; font-weight: 400; }

/* The county question, restyled: one line of input + Show help. */
.sch__lhf-free .sch__legal-help-form { gap: 8px; }
.sch__lhf-free .sch__legal-help-field label { font-size: 13.5px; font-weight: 400; color: var(--lhf-muted); }
.sch__lhf-free .sch__legal-help-field input {
  height: 38px;
  border: 1px solid var(--lhf-line-2);
  border-radius: 10px;
  background: var(--lhf-card);
  font-size: 14.5px;
}
.sch__lhf-free .sch__legal-help-field input:focus-visible { outline: 2px solid var(--lhf-focus); outline-offset: 1px; }
.sch__lhf-free .sch__legal-help-submit { height: 38px; border-radius: 10px; background: var(--lhf-btn); color: var(--lhf-btn-ink); font-size: 14px; }
.sch__lhf-free .sch__legal-help-form .sch__legal-help-link { height: 38px; color: var(--lhf-free-ink); }
.sch__lhf-free--phone .sch__legal-help-field input,
.sch__lhf-free--phone .sch__legal-help-submit { height: 44px; }

/* Outside Florida: one white card that hands the reader's ZIP to the LSC
   legal aid finder, with the small print under the card. */
.sch__lhf.sch__lhf-lsc { gap: 8px; }
.sch__lhf-lsc-card {
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--lhf-line);
  border-radius: 18px;
  background: var(--lhf-card);
  box-shadow: var(--lhf-shadow);
}
.sch__lhf-lsc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sch__lhf-lsc-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lhf-ink);
  overflow-wrap: anywhere;
}
.sch__lhf-lsc-head .sch__lhf-free-link { flex: none; font-size: 13px; }
.sch__lhf-lsc-label { font-size: 12.5px; line-height: 1.45; color: var(--lhf-muted); }
.sch__lhf-lsc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border-radius: 12px;
  background: var(--lhf-chip);
}
.sch__lhf-lsc-row:focus-within { outline: 2px solid var(--lhf-focus); outline-offset: 1px; }
.sch__lhf .sch__lhf-lsc-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lhf-ink);
  font: inherit;
  /* 16px keeps iOS Safari from zooming the page on focus. */
  font-size: 16px;
  letter-spacing: 0.04em;
}
.sch__lhf .sch__lhf-lsc-input::placeholder { color: var(--lhf-muted); letter-spacing: 0; }
.sch__lhf .sch__lhf-lsc-input:focus,
.sch__lhf .sch__lhf-lsc-input:focus-visible { outline: none; }
.sch__lhf-lsc-find {
  flex: none;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: var(--lhf-btn);
  color: var(--lhf-btn-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sch__lhf-lsc-find:hover { background: color-mix(in oklch, var(--lhf-btn), transparent 12%); }
.sch__lhf-lsc-find svg { flex: none; }
.sch__lhf-lsc-error { margin: 0; }
.sch__lhf-lsc-fine { margin: 0 4px; font-size: 12px; line-height: 1.45; color: var(--lhf-muted); }
.sch__lhf-free .sch__lhf-lsc-fine a { color: inherit; font-weight: 400; text-decoration: underline; }
/* That state's own statewide links, quiet, under the finder. */
.sch__lhf-lsc-more { margin: 8px 4px 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.sch__lhf-lsc-more-title { margin: 0 0 2px; font-weight: 600; }
.sch__lhf-lsc-more-list { margin: 0; padding: 0; list-style: none; }
.sch__lhf-lsc-more-list li { margin: 2px 0; }
.sch__lhf-lsc-more-meta { color: var(--lhf-muted); }

/* Loading: the card's silhouette — two text bars and the picture panel. */
.sch__lhf-free-skel {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--lhf-line);
  border-radius: 18px;
  background: var(--lhf-card);
}
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-skel { max-width: 460px; gap: 16px; padding-left: 18px; border-radius: 20px; }
.sch__lhf-free-skel-tile,
.sch__lhf-free-skel-lines > span {
  display: block;
  background: linear-gradient(90deg, var(--lhf-chip), var(--lhf-line), var(--lhf-chip));
  background-size: 200% 100%;
  animation: sch-lhf-free-skel 1.6s linear infinite;
}
.sch__lhf-free-skel-tile { flex: none; width: 96px; height: 80px; border-radius: 13px; }
.sch__lhf-free:not(.sch__lhf-free--phone) .sch__lhf-free-skel-tile { width: 104px; border-radius: 14px; }
.sch__lhf-free-skel-lines { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sch__lhf-free-skel-lines > span { width: 75%; height: 14px; border-radius: 6px; }
.sch__lhf-free-skel-lines > span + span { width: 50%; height: 12px; }
@keyframes sch-lhf-free-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .sch__lhf-free-skel-tile,
  .sch__lhf-free-skel-lines > span { animation: none; }
}
