/* Alder: provider profile. Loaded after alder-pages.css (which keeps the
   rules shared with the providers list) and overrides its profile block.
   No horizontal rule anywhere on the page: blocks separate by space, by a
   sand or paper panel, or by a Lora italic label. Mobile first; 921px is
   the Alder breakpoint, 1024px opens the two-column grid. */

/* ---------- Hero: photo beside the name block, one row of marks ---------- */
.al-phero { padding: 0 0 20px; }
.al-crumbs { margin-bottom: 2px; }
.al-phero .al-callout { margin: 8px 0 12px; }
.al-ph { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; align-items: center; margin-top: 2px; }
.al-ph__photo {
  position: relative; width: 88px; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: var(--al-sand);
  box-shadow: 0 0 0 1px var(--al-line);
}
.al-ph__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* No aspect-ratio (Safari 14.0): a padding strut holds the circle under the
   absolutely positioned photo (see css/alder.css .al-phone). */
@supports not (aspect-ratio: 1) {
  .al-ph__photo::before { content: ""; display: block; padding-top: 100%; }
}
.al-ph__ini { position: absolute; inset: 0; display: grid; place-items: center; font: 800 28px/1 var(--al-display); color: var(--al-ink); }
.al-ph__photo.has-play { overflow: visible; }
.al-ph__photo.has-play img { border-radius: 50%; }
.al-ph__play {
  position: absolute; right: -8px; bottom: -6px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff;
}
.al-ph__play::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--al-pill); box-shadow: 0 0 0 3px var(--al-paper), var(--al-raise);
  transition: background-color .18s;
}
.al-ph__play svg { position: relative; width: 16px; height: 16px; margin-left: 2px; }
@media (hover: hover) { .al-ph__play:hover::before { background: var(--al-moss); } }
.al-ph__name { font: 800 32px/1.08 var(--al-display); letter-spacing: -.03em; color: var(--al-ink); overflow-wrap: anywhere; }
.al-ph__name em { font-style: normal; }
.al-ph__name .al-vdot { min-width: 10px; min-height: 10px; margin-left: .18em; vertical-align: .12em; }
.al-ph__creds { margin-top: 4px; font: 600 14.5px/1.35 var(--al-sans); color: var(--al-ink); }
.al-ph__creds span { font-weight: 400; color: var(--al-muted); }
.al-ph__meta { margin-top: 3px; font: 500 13.5px/1.45 var(--al-sans); color: var(--al-muted); }
.al-ph__meta span + span::before { content: "\00B7"; margin: 0 6px; }

.al-ph__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.al-mark {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 0 11px;
  border: 1px solid var(--al-line); border-radius: 999px; background: #fff;
  font: 600 12.5px/1 var(--al-sans); color: var(--al-ink); white-space: nowrap;
}
.al-mark .al-ico { width: 14px; height: 14px; stroke-width: 2.6; }
.al-mark--ok { background: var(--al-pill); border-color: var(--al-pill); color: #fff; }
.al-mark--ok .al-ico { color: var(--al-sage); }
.al-mark--acc { color: var(--al-moss); border-color: rgba(28, 107, 60, .4); }
.al-mark--acc.is-off { color: var(--al-muted); border-color: var(--al-line); }
a.al-mark { min-height: 44px; margin-block: -8px; text-decoration: underline; text-decoration-color: var(--al-line); text-underline-offset: 3px; }
.al-ph__rep { font: 400 12px/1.3 var(--al-sans); color: var(--al-muted); }
.al-ph__badge { display: inline-flex; align-items: center; font-size: 12px; }
/* Tap-to-reveal trust pills (alder_tip_mark). The pill keeps its 28px look;
   ::after stretches the hit area to 44px. The note is a full-width row
   after the last pill (order), so opening it never reflows the pills. */
.al-tipbtn { position: relative; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.al-tipbtn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; min-width: 44px; transform: translateY(-50%); }
.al-tipbtn__i { width: 13px; height: 13px; margin-left: -1px; opacity: .6; flex: none; }
.al-tipbtn[aria-expanded="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--al-moss); }
.al-tipbtn[aria-expanded="true"] .al-tipbtn__i { opacity: 1; }
.al-tipbtn:focus-visible { outline: 2px solid var(--al-moss); outline-offset: 2px; }
.al-tipnote {
  order: 99; flex: 0 0 100%; max-width: 34rem; margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--al-line); border-radius: 10px; background: #fff;
  font: 400 13.5px/1.5 var(--al-sans); color: var(--al-ink); white-space: normal;
}
.al-tipnote[hidden] { display: none; }
.al-tipnote a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.al-phero .al-phero__scope { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }

/* Actions: one solid Book pill with its "via" note on one line under it,
   then a row of ghost pills (inquiry, Refer, website, social, owner Edit). */
.al-ph__act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin-top: 14px; }
.al-ph__act .al-book--hero { flex: 1 1 100%; }
.al-book--hero .al-book__via { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; white-space: normal; }
.al-book--hero .al-book__chk::before { content: "\00B7"; margin-right: 6px; color: var(--al-muted); }
.al-ph__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.al-ph__row .al-pill { flex: 1 1 auto; padding-inline: 16px; font-size: 14px; }
.al-ph__row .al-round { flex: none; }
.al-ph__row .al-round svg { width: 18px; height: 18px; }
.al-ph__row .al-heart.al-heart {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--al-line); border-radius: 999px;
  background: transparent; color: var(--al-ink); font: 600 14px/1.2 var(--al-sans);
  transition: border-color .18s, background-color .18s, color .18s;
}
.al-ph__row .al-heart.al-heart svg { width: 16px; height: 16px; }
.al-ph__row .al-heart.al-heart[data-heart-active="1"] { color: #B4475A; border-color: rgba(180, 71, 90, .4); }
.al-ph__row .own-edit {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--al-line); border-radius: 999px;
  color: var(--al-muted); font: 600 14px/1 var(--al-sans);
}
@media (hover: hover) {
  .al-ph__row .al-heart.al-heart:hover, .al-ph__row .own-edit:hover { border-color: var(--al-ink); background: rgba(14, 42, 27, .04); color: var(--al-ink); }
}

@media (min-width: 921px) {
  .al-phero { padding: 4px 0 40px; }
  .al-ph { grid-template-columns: 112px minmax(0, 1fr); column-gap: 24px; margin-top: 6px; }
  .al-ph__photo { width: 112px; }
  .al-ph__ini { font-size: 34px; }
  .al-ph__play { right: -6px; bottom: -4px; }
  .al-ph__play::before { inset: 2px; }
  .al-ph__name { font-size: 40px; }
  .al-ph__creds { margin-top: 5px; font-size: 15.5px; }
  .al-ph__meta { font-size: 14px; }
  .al-ph__marks { margin-top: 18px; }
  .al-phero .al-phero__scope { font-size: 14px; }
  .al-ph__act { margin-top: 22px; }
  .al-ph__act .al-book--hero { flex: none; width: 232px; }
  .al-book--hero .al-book__via { flex-wrap: nowrap; white-space: nowrap; width: max-content; min-width: 100%; justify-content: flex-start; padding-left: 4px; }
  .al-ph__row { width: auto; flex: 1 1 auto; min-height: 44px; }
  .al-ph__row .al-pill { flex: none; }
}

/* ---------- Jump row: Alder chips, phone and tablet only, not sticky ---------- */
.al-jump { padding-top: 16px; }
.al-jump ul {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-inline: calc(-1 * var(--al-gutter)); padding: 2px var(--al-gutter);
}
.al-jump ul::-webkit-scrollbar { display: none; }
.al-jump li { flex: none; }
.al-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--al-sand); font: 500 14px/1 var(--al-sans); color: var(--al-ink); white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.al-jump a.is-on { background: var(--al-pill); color: #fff; }
html:has(.al-jump) { scroll-padding-top: calc(var(--al-hdr-h) + 16px); }
@media (min-width: 1024px) { .al-jump { display: none; } }

/* ---------- Body: lead column (About), the rail, the rest ---------- */
.al-pbody { padding-block: 8px var(--al-rhythm); }
.al-pgrid { display: grid; row-gap: 40px; margin-top: 24px; }
.al-pcol { min-width: 0; display: grid; row-gap: 44px; align-content: start; }
.al-pcol:empty { display: none; }
.al-psec, .al-carry > .al-psec, .al-pmain > .al-psec { margin-top: 0; padding-top: 0; border-top: 0; }
.al-psec__h { font-size: 24px; margin-bottom: 14px; }
.al-carry { display: grid; row-gap: 44px; }
.al-carry:empty { display: none; }
.al-about { font-size: 17.5px; }

/* Rail: sand panels, Lora italic labels, no rules */
.al-rail { display: grid; gap: 12px; align-content: start; position: static; grid-column: auto; grid-row: auto; max-height: none; overflow: visible; }
.al-panel { padding: 24px 20px 22px; border-radius: var(--al-r); background: var(--al-sand); }
.al-panel--act { background: var(--al-paper); }
.al-rail__act { display: none; gap: 10px; margin-top: 0; padding-top: 24px; border-top: 0; }
/* Rail section panels: the desktop .al-psec reset (padding-top 0) must not
   strip the panel's own top space; the italic label sits 24px in. */
.al-rail .al-panel.al-psec--rail { padding-top: 24px; }
.al-rail__act .al-book, .al-rail__act .al-pill { width: 100%; }
.al-rail .al-psec__h, .al-panel--claim .al-card__h {
  margin-bottom: 12px; font: italic 400 17px/1.35 var(--al-serif); letter-spacing: 0; color: var(--al-moss);
}
.al-rail .al-tgroup { margin-top: 16px; }
.al-rail .al-psec__h + .al-tgroup { margin-top: 0; }
.al-rail .al-tgroup__h { margin-bottom: 8px; font: 500 13px/1.4 var(--al-sans); color: var(--al-muted); }
.al-rail .al-chip { background: #fff; }
@media (hover: hover) { .al-rail .al-chip:hover { background: var(--al-page); } }
.al-rail .al-fee { padding: 0; background: none; }
.al-rail .al-fee__n strong { font-size: 26px; }
.al-rail .al-fee__note { font-size: 12.5px; }
.al-rail .al-psec__sub { margin: 0 0 12px; font-size: 14px; }
.al-rail .al-where { gap: 14px; }
.al-rail .al-where.has-map { grid-template-columns: none; }
.al-rail .al-where__fmt { font-size: 15px; }
.al-rail .al-where__addr { margin-top: 10px; font-size: 14.5px; }
.al-rail .al-where__lang { margin-top: 8px; font-size: 14.5px; }
.al-rail .al-map2 { box-shadow: none; }
.al-rail .al-cards { grid-template-columns: none; gap: 8px; }
.al-rail .al-pcard { background: #fff; border: 0; }
@media (hover: hover) { .al-rail .al-pcard:hover { background: var(--al-page); } }
.al-glance dl { display: grid; gap: 10px; }
.al-glance dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.al-glance dt { font: 500 13px/1.45 var(--al-sans); color: var(--al-muted); }
.al-glance dd { font: 400 14.5px/1.5 var(--al-sans); color: var(--al-ink); min-width: 0; overflow-wrap: anywhere; }
.al-panel--trust .al-trust { margin: 0; width: auto; padding: 0; border: 0; background: none; }
.al-panel--claim .al-rail__claimt { font: 700 19px/1.25 var(--al-display); color: var(--al-ink); }
.al-panel--claim .al-fee__note { margin-top: 8px; }
.al-panel--claim .al-card__go { width: 100%; min-height: 48px; margin-top: 14px; font-size: 15px; }

/* Chips in every profile block are thumb-sized on a phone (36px from 921) */
.al-psec .al-chip--static { min-height: 44px; }
/* Inline links keep a 44px tap height without moving the lines around them */
.al-where__lang a, .al-phero__scope a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.al-crumbs a { padding-inline: 4px; margin-inline: -4px; }
.al-about a, .al-prose a { border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Main sections: sand panels instead of hairline lists and bordered cards */
.al-pcol .al-tgroup { margin-top: 22px; }
.al-pages { gap: 8px; border-top: 0; }
.al-pagelink { padding: 12px 14px; border-bottom: 0; border-radius: var(--al-r); background: var(--al-sand); transition: background-color .18s; }
.al-pcol .al-pcard { border: 0; background: var(--al-sand); }
.al-rcard { border: 0; background: var(--al-sand); }
@media (hover: hover) {
  .al-pagelink:hover, .al-pcol .al-pcard:hover, .al-rcard:hover { background: var(--al-sand-2); }
}
.al-similar { margin-top: 56px; padding-block: 0 var(--al-rhythm); }
.al-similar .al-psec__h { padding-top: 0; border-top: 0; }
.al-contact { gap: 8px; }

/* Phone bar: frosted sand, no top line */
.al-pbar { border-top: 0; background: rgba(245, 239, 230, .96); }

@media (min-width: 921px) {
  .al-psec .al-chip--static { min-height: 36px; }
  .al-psec, .al-carry > .al-psec, .al-pmain > .al-psec { margin-top: 0; padding-top: 0; }
  .al-psec__h { font-size: 28px; margin-bottom: 18px; }
  .al-pcol { row-gap: 56px; }
  .al-carry { row-gap: 56px; }
  .al-similar { margin-top: 72px; }
}

/* Two columns from 1024: main 1fr, rail 360px sticky under the header. The
   rail spans both main rows so it can never run past the grid (no footer
   overlap). */
@media (min-width: 1024px) {
  .al-pgrid {
    grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 56px; align-items: start; margin-top: 8px;
  }
  .al-pcol--lead { grid-column: 1; grid-row: 1; }
  .al-pcol--rest { grid-column: 1; grid-row: 2; }
  .al-rail {
    grid-column: 2; grid-row: 1 / span 2;
    position: sticky; top: calc(var(--al-hdr-h) + 20px);
  }
  /* Taller than the viewport (set by the template's script): the rail
     scrolls with the page until it is fully in view, then pins by its
     bottom edge. Nothing ever scrolls inside the rail. */
  .al-rail.is-tall { top: auto; bottom: 24px; }
  .al-rail__act { display: grid; }
}

/* Bottom spacing: one measure, not three stacked paddings before the footer */
.al-similar { padding-block: 8px 0; }
.al-pbody { padding-bottom: 56px; }

/* Profile rails: Articles and Apps are one row that scrolls sideways
   (Eric, 10-15). The scroller itself (flex row, snap, drag, gutter bleed
   via .al-rail--bleed) is shared: alder-rail.css + alder.js [data-al-rail].
   Only the profile's card widths live here. */
/* Grid items default to min-width:auto, which lets the rail stretch its
   section to the content width instead of scrolling. */
.al-carry, .al-carry > .al-psec, .al-pmain > .al-psec, .al-psec:has(> .al-rail) { min-width: 0; }
.al-psec .al-rail { gap: 16px; }
.al-psec .al-rail--posts > .al-post { width: min(78vw, 300px); }
.al-psec .al-rail--apps > .al-pagelink { width: 240px; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; min-height: 0; }
.al-psec .al-rail--apps > .al-pagelink img { width: 72px; height: 72px; }
@media (min-width: 921px) {
  .al-psec .al-rail { gap: 20px; }
  .al-psec .al-rail--posts > .al-post { width: 300px; }
  .al-psec .al-rail--apps > .al-pagelink { width: 250px; }
}
