/* Local functional sample: small additions on top of ref.css (a verbatim copy of the reviewed design reference).
   Same tokens, no new visual direction. */
.dtool-r{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.sortl{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.sortl .select{min-height:44px;width:auto;min-width:0;padding-right:40px;font-size:14px}
.pend{color:#7A4B00!important;font-weight:500}
.pendtag{background:#FFF1D6;color:#7A4B00}
.hcard .kname{margin-top:-4px;margin-bottom:2px}
.caveats p{margin:0}
.cav{list-style:disc;padding-left:20px;margin-top:6px;font-size:14px;line-height:1.5;color:var(--ink)}
.cav li+li{margin-top:4px}
.cav1{font-size:13px;color:var(--muted);margin-top:4px;max-width:62ch}
.msgprev{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.career summary{font-weight:600}
.loading-shell{display:flex;align-items:center;gap:10px;padding:56px 0;color:var(--muted)}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--soft);border-radius:6px;padding:1px 6px;overflow-wrap:anywhere}
.reading.policy h2{font-size:28px;line-height:1.2;margin:40px 0 12px}
.reading.policy p+p{margin-top:12px}
.reading.policy h2[id]{scroll-margin-top:96px}
.pg.gap{pointer-events:none}
@media (max-width:640px){
  .dtool-r{width:100%;justify-content:space-between}
  .fsubmit .btn{max-width:100%;white-space:normal;padding-top:12px;padding-bottom:12px}
}

/* Local search and editorial preview. */
.search-heading h1{font-size:clamp(32px,4.5vw,52px);letter-spacing:-.045em;overflow-wrap:anywhere}
.search-heading .dsearch{background:var(--soft);border-color:transparent}
.search-page .sgroup{margin-top:36px}
.search-card.rc{padding:0;overflow:hidden;background:#fff;border:1px solid #e5e5ea;border-radius:24px;display:flex;flex-direction:column}
.search-image-link{display:block;color:inherit}
.search-image{height:210px;background:#f2f3f5;overflow:hidden;display:flex;align-items:center;justify-content:center}
.search-image img{width:100%;height:100%;display:block;object-position:center}
.search-image.doctor{background:#dedede}
.search-image.agency img{padding:28px;background:white}
.search-card-body{padding:22px;display:flex;flex-direction:column;gap:12px;flex:1}
.search-card-body .top{margin:0;align-items:center}
.search-card-body h3,.search-card-body p{margin:0}
.search-card-body .lnk{margin-top:auto;padding-top:6px}
.search-card-body h3{font-size:22px;line-height:1.2;overflow-wrap:anywhere}
.search-card-body p{font-size:14px;line-height:1.6;color:var(--muted)}
.search-cards{align-items:stretch}
.image-fallback{padding:24px;text-align:center;color:#6e6e73;font-size:14px}
.guide-toc{background:var(--soft);padding:28px;border-radius:24px;margin:32px 0}
.guide-toc h2{margin-top:0}
.guide-toc a{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid #ddd;color:#1d1d1f;text-decoration:none}
.guide-toc a:last-child{border:0}
.guide-toc a span,.guide-number{color:#006ce4;font-weight:600}
.guide-section{padding:36px 0;border-bottom:1px solid #e5e5ea;scroll-margin-top:90px}
.guide-section h2{margin-top:12px}
.article-section{margin:32px 0}
.reading .search-image{margin:28px 0;border-radius:24px;height:320px}
@media(max-width:640px){.search-image{height:220px}.search-card-body{padding:20px}.search-page .sech{gap:12px}.search-page .sech h2{font-size:24px}.guide-toc{padding:20px}.reading .search-image{height:220px}}
.search-page .search-cards{grid-template-columns:1fr}
.search-page .search-card{display:grid;grid-template-columns:260px minmax(0,1fr)}
.search-page .search-image-link,.search-page .search-image{height:100%;min-height:220px}
.search-page .search-card-body{padding:24px 28px}
.search-page .search-card-body>.tag{align-self:flex-start}
@media(max-width:640px){.search-page .search-card{grid-template-columns:1fr}.search-page .search-image{height:210px;min-height:0}.search-page .search-card-body{padding:20px}}
.wp-login-panel{max-width:460px;background:var(--soft);padding:28px;border-radius:24px}.wp-login-panel label{display:block;margin-bottom:8px}.wp-login-panel input[type=text],.wp-login-panel input[type=password],.panel textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c7c7cc;border-radius:12px;background:white;font:inherit}.wp-login-panel input[type=submit]{background:#006ce4;color:white;border:0;padding:12px 24px;border-radius:24px;cursor:pointer}.wp-login-panel .login-remember label{display:flex;gap:8px}.panel .check{display:flex;gap:10px;margin-top:16px}.wp-guide h2,.wp-article h2{margin-top:36px}.provider-photo{display:block;width:100%;height:100%;object-fit:cover}.wp-guide section{scroll-margin-top:90px}
.search-image{position:relative}.source-image-note{position:absolute;bottom:0;left:0;right:0;padding:6px 10px;background:rgba(255,255,255,.93);color:#515154;font-size:12px;text-align:center}
.provider-hero{max-width:980px;height:340px;border-radius:24px;overflow:hidden;background:#f5f5f7;margin:0 auto 28px;display:flex;align-items:center;justify-content:center}.provider-hero.agency{height:200px;max-width:500px;margin:24px 0}.provider-hero.agency .provider-photo{object-position:center 25%}.agency-logo{height:120px;margin-bottom:20px;display:flex;align-items:center;justify-content:center;background:#f5f5f7;border-radius:16px;padding:12px}.agency-logo img{max-width:100%;max-height:100%;object-fit:contain}@media(max-width:640px){.provider-hero{height:220px;margin:0 22px 22px}.provider-hero.agency{margin:20px 0}}

/* Existing procedure cards, arranged into category families and nested branches. */
.procedure-groups{display:grid;gap:48px}
.procedure-group-heading{margin-bottom:20px}
.procedure-group-heading h2{margin-top:6px}
.procedure-group>.pgrid2,.procedure-group>.cards{margin-top:0}
.procedure-branch{margin-top:20px}
.procedure-children{margin:24px 0 0 12px;padding-left:24px;border-left:2px solid var(--line,#ddd)}
.procedure-branch-label{font-weight:600;margin:0 0 16px}
.procedure-children .cards{margin-top:0}
@media(max-width:520px){.procedure-children{margin-left:4px;padding-left:14px}.procedure-groups{gap:32px}}
/* Brand v1: horizontal colour logo in the shared header (README minimum displayed width 190px). */
.brand-logo{display:block;width:190px;height:auto;max-width:none}

/* Fill portrait frames even when their height comes from a stretched flex row. */
.hdmedia>.provider-photo,.dh-photo>.provider-photo{position:absolute;inset:0;object-fit:cover}

/* Approved article navigation (UX brief section 15). .guide, .toc and .jumpm are the reference styles in ref.css:
   200px contents column, 56px gap, thin rail, muted 44px links, sticky at 120px (clears the 48px site header; procedures no longer have a separate section bar), native "On this page" <details> at 960px and below. Only article-specific additions live here. */
.article-layout{padding-bottom:56px}
.article-layout>.article{min-width:0;max-width:692px}
.toc a{overflow-wrap:anywhere}
.toc a.sub{padding-left:26px;font-size:13px}
.article-layout .wp-article h2{font-size:28px;line-height:1.15;font-weight:700;margin-top:48px;text-wrap:balance}
.article-layout .wp-article>:first-child,.article-layout .wp-article>section:first-child>h2:first-child,.article-layout .wp-article>.wp-article-img+h2{margin-top:0}
.article-layout .wp-article h3{font-size:21px;font-weight:600;margin-top:28px}
.article-layout .wp-article p{font-size:19px;line-height:1.58;margin-top:16px}
.article-layout .wp-article section{margin-top:48px}
.article-layout .wp-article section>h2:first-child{margin-top:0}
.article-layout .wp-article a{overflow-wrap:anywhere}
.wp-article-img{display:block;width:100%;max-height:380px;object-fit:cover;border-radius:24px;margin:0 0 28px}
@media(max-width:960px){.article-layout{padding-bottom:40px}}
@media(max-width:640px){.article-layout .wp-article h2{font-size:24px;margin-top:40px}.article-layout .wp-article p{font-size:17px}.wp-article-img{max-height:260px;border-radius:16px}}

/* Long unbroken text (for example a source URL inside a research note) must wrap inside its panel on narrow screens:
   the text column of a flex .note may shrink below its content width. Nothing is clipped or hidden. */
.note>div,.note>p,.note .cav{min-width:0}
.cav,.cav li,.note p{overflow-wrap:anywhere}

/* Inline links inside empty-state text differ from the surrounding muted text only by colour: underline them (non-colour marker). */
.empty p a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* Dedicated guide illustration; original featured/card media stays separate. */
.procedure-guide-figure{margin:24px 0;max-width:100%}
.procedure-guide-figure img{display:block;width:100%;height:auto;border-radius:12px}
.procedure-guide-figure figcaption{font-size:13px;line-height:1.5;color:var(--muted);margin-top:8px}
.procedure-guide h2{margin-top:36px;scroll-margin-top:100px}
.procedure-guide a,.clinical-sources a{text-decoration:underline;text-underline-offset:3px}
.clinical-sources{padding-left:24px;overflow-wrap:anywhere}
.clinical-sources li{margin:12px 0;scroll-margin-top:100px}

/* v0.7.0 mobile action bar: Browse clinics + Search, same blue pills, >=44px targets, safe-area aware. Hidden above 700px,
   while a text field has focus (on-screen keyboard) and while the mobile menu is open. */
.mcta{display:none}
@media (max-width:700px){
  body.draft-page{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  .mcta{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px max(12px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:rgba(250,250,252,.9);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:1px solid rgba(0,0,0,.08)}
  .mcta .btn{flex:1 1 0;min-width:0;min-height:48px;padding:0 12px;font-size:16px}
  .mcta .btn:hover{color:#fff}
  body:has(#mobile-menu:not([hidden])) .mcta,
  body:has(input:not([type=checkbox],[type=radio],[type=button],[type=submit],[type=reset],[type=range],[type=file],[type=color],[type=image]):focus,textarea:focus,select:focus,[contenteditable=true]:focus) .mcta{display:none}
}
/* v0.7.0 pending data: the server-rendered page stays visible and usable; this pill only reports progress. */
.loading.page-loading{position:fixed;top:60px;left:50%;transform:translateX(-50%);margin:0;z-index:25;max-width:calc(100vw - 24px)}
