/* Doctor, hospital and state pages (rendered by web/worker). Plain and editorial: white page, one narrow column, black
   headings with a heavy rule under them, hairline-separated rows, one pink accent. Self-contained: it does not load
   styles.css, which is written for the homepage. */
:root{--pad:clamp(24px,4vw,96px);--bg:#f7f8fa;--ink:#0d0f14;--muted:#5b616e;--faint:#666c79;--line:#e6e8ec;--accent:#b0154f;--soft:#f0f1f3;--ring:0 0 0 3px rgba(176,21,79,.14)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body.listpage{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,ui-sans-serif,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;min-height:100svh;display:flex;flex-direction:column}
.listpage main{flex:1}
:where(.listpage) a{color:inherit}
:where(.listpage) button{font:inherit;color:inherit;cursor:pointer}
.pagew :focus-visible,.lp-top :focus-visible,.lp-foot :focus-visible,.col :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:8px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-size:14px}
.skip:focus{top:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- top bar: the same header and notice as the homepage ---------- */
.lp-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 var(--pad);background:#fff;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.lp-brand{display:flex;align-items:center;gap:11px;min-width:0;text-decoration:none;color:var(--ink)}
.lp-brand img{width:38px;height:38px;flex:none;display:block}
.lp-brand b{display:block;font-size:17px;letter-spacing:-.02em;line-height:1.1}
.lp-brand small{display:block;margin-top:2px;font-size:11px;color:var(--muted)}
.lp-top nav{display:flex;align-items:center;gap:16px}
.lp-top nav a{text-decoration:none;color:var(--muted)}
.lp-top nav a:hover{color:var(--ink)}
.lp-top nav .add{padding:10px 16px;border-radius:999px;background:var(--accent);color:#fff;font-weight:600;white-space:nowrap}
.lp-top nav .add:hover{background:#8f1040;color:#fff}
.lp-notice{padding:7px var(--pad);background:#fdf1f5;border-bottom:1px solid #f6d3df;color:#6b0f33;font-size:12px;line-height:1.4}

/* ---------- the column ---------- */
.col{width:100%;max-width:600px;margin:0 auto;padding:0 20px}

.lp h1{margin:0;font-size:clamp(28px,6vw,34px);line-height:1.06;letter-spacing:-.045em;font-weight:700;text-wrap:balance;overflow-wrap:anywhere}
.lede{margin:8px 0 0;font-size:14px;line-height:1.55;color:var(--muted)}
.lede a{color:var(--ink);font-weight:650;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.strong{font-weight:700;color:var(--ink)}
.accent{color:var(--accent)!important}
.muted{color:var(--muted)}
.note{margin:18px 0 0;font-size:12px;color:var(--muted)}

/* ---------- buttons and links ---------- */
.acts{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0}
.pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.pill:hover{border-color:#c9cbd1;background:#fafafb}
.pill.solid{background:var(--accent);border-color:var(--accent);color:#fff}
.pill.solid:hover{background:#8f1040;border-color:#8f1040}
.pill.line{border-color:var(--accent);color:var(--accent)}
.pill.line:hover{background:#fdf2f6}
.tlink{padding:0;border:0;background:none;color:var(--accent);font-weight:600;text-decoration:none}
.tlink:hover{text-decoration:underline;text-underline-offset:3px}


/* ---------- sections ---------- */
.blk{margin-top:56px}
.sh{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-bottom:11px;border-bottom:2px solid var(--ink)}
.sh h2{margin:0;font-size:16px;line-height:1.25;letter-spacing:-.02em;font-weight:700}
.sh-r{font-size:12px;color:var(--muted);text-align:right}
.sh-r .tlink{font-size:12px}
.after{margin:16px 0 0;font-size:13px;color:var(--muted)}
.lp-fine{margin:56px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.lp-fine .tlink,.lp-fine a{font-weight:600}

/* label / value tables */
.tbl{margin:0}
.tbl>div{display:flex;gap:16px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}
.tbl dt{flex:0 0 clamp(96px,30%,180px);color:var(--muted);font-size:12.5px}
.tbl dd{margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.tbl a{text-underline-offset:3px}
.where{margin-top:22px}
.where+.where{margin-top:32px}
.where h3{margin:0;font-size:14.5px;line-height:1.3;font-weight:700;letter-spacing:-.01em}
.where h3 a{text-decoration:none}
.where h3 a:hover{text-decoration:underline}
.where .sub{margin:2px 0 6px;font-size:12px;color:var(--muted)}

/* lists of people and places */
.rows{margin:0;padding:0;list-style:none}
.rows>li{border-bottom:1px solid var(--line)}
.row{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 0;text-decoration:none}
a.row:hover strong{text-decoration:underline;text-underline-offset:3px}
.r-main{display:flex;flex-direction:column;gap:1px;min-width:0}
.r-main strong{font-size:14px;line-height:1.35;font-weight:650;letter-spacing:-.01em;overflow-wrap:anywhere}
.r-main small{font-size:12px;line-height:1.4;color:var(--muted)}
.r-side{flex:none;padding-top:2px;font-size:12px;color:var(--muted);text-align:right}
.rv{color:var(--accent);font-weight:600}
.none{color:var(--muted)}

/* reviews */
.invite{padding-top:18px}
.invite h3{margin:0;font-size:14px;font-weight:700}
.invite p{margin:6px 0 16px;font-size:13px;line-height:1.55;color:var(--muted)}
.quotes{margin:0;padding:0;list-style:none}
.quotes li{padding:18px 0;border-bottom:1px solid var(--line)}
.rv-body{margin:0;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.rv-meta{margin:8px 0 0;font-size:12px;color:var(--muted)}
.stars{color:#b7791f;letter-spacing:1px;margin-right:6px}
.sh-r .avg{font-weight:700;color:var(--ink)}

/* ---------- state page ---------- */
.seg{display:inline-flex;gap:2px;padding:3px;background:#e9ebee;border-radius:10px}
.seg button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 16px;border:0;border-radius:8px;background:none;font-size:13px;font-weight:500;color:var(--muted)}
.seg button i{font-style:normal;color:var(--muted);font-weight:400}
.seg button.on{background:#fff;color:var(--ink);font-weight:650;box-shadow:0 1px 2px rgba(20,22,27,.12),0 0 0 1px rgba(20,22,27,.04)}
.seg.small button{min-height:28px;padding:0 11px;font-size:12px;border-radius:7px}
.tabs{margin-top:24px}
.find{margin-top:22px}
.find label{display:block;margin:0 0 8px;font-size:12px;font-weight:650}
.field{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border:2px solid var(--ink);border-radius:14px;background:#fff}
.field:focus-within{box-shadow:var(--ring)}
.field svg{width:17px;height:17px;flex:none;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round}
.field input:focus-visible{outline:0}
.field input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font:inherit;font-size:15px;color:var(--ink)}
.field input::placeholder{color:#8a8f99}
.lp-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:16px 0 0;padding:0;list-style:none}
.lp-chips{margin-top:16px}
.chip{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:#f2f3f5;font-size:12px;font-weight:500;color:var(--ink);text-decoration:none;white-space:nowrap}
.chip:hover{background:#e8eaee}
.chip i{font-style:normal;margin-left:4px;color:var(--faint);font-weight:400}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}
.chip.on i{color:#c9ccd3}
.chip-more{border:0;background:none;padding:0 4px;min-height:32px;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.js .lp-chips.fold .extra{display:none}
.panel{margin-top:38px}
.panel .sh{align-items:center}
.js .panel .rows.fold>li.later{display:none}
.more{display:block;width:100%;margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;font-weight:650;color:var(--ink)}
.more:hover{border-color:#c9cbd1;background:#fafafb}
.none-found{margin:20px 0 0;font-size:13px;color:var(--muted)}

/* a hospital's row: the name stretches a link over the row; the doctors' names and "Add it" sit above it */
.hrow .row{padding:16px 0}
.cover{text-decoration:none}
.cover::after{content:"";position:absolute;inset:0}
.hrow:hover .cover{text-decoration:underline;text-underline-offset:3px}
.addr{display:flex;align-items:flex-start;gap:6px;margin-top:5px;font-size:12px;line-height:1.4;color:var(--muted)}
.addr svg{width:13px;height:13px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.who{display:flex;flex-wrap:wrap;gap:3px 14px;margin-top:6px;font-size:12px}
.who a,.addr .tlink{position:relative;z-index:1}
.who a{text-decoration:underline dotted;text-underline-offset:3px;text-decoration-color:#9a9ea8}
.who a:hover{text-decoration-style:solid}
.addr .tlink{font-size:12px}

/* ---------- footer: the homepage's, pinned to the bottom of the window ---------- */
.lp-foot{position:sticky;bottom:0;z-index:20;margin-top:40px;padding:10px var(--pad) 14px;background:var(--bg);border-top:1px solid var(--line);font-size:11.5px;line-height:1.55;color:var(--muted)}
.lp-foot .col{max-width:none;margin:0;padding:0}
.lp-foot p{margin:0 0 2px}
.lp-foot a{color:var(--accent)}
/* the notice strip is in the footer too, as on the homepage's tall desktop layout */
@media (min-width:1200px) and (min-height:700px){ .lp-notice{display:none} }

/* ---------- 404, 410, 503 ---------- */
.lp-solo h1{margin-top:48px}
.lp-solo .find{margin-top:28px}

@media (max-width:640px){
  .lp-top{height:56px}
  .lp-top nav{gap:10px}
  .lp-top nav .add{padding:9px 13px;font-size:12.5px}
  .lp-notice{display:none}
  :root{--pad:16px}
  .col{padding:0 16px}
  .blk{margin-top:44px}
  .acts .pill{flex:1 1 auto}
  .tbl>div{flex-direction:column;gap:2px}
  .tbl dt{flex:none}
}

/* ---------- state page: the list on the left, filters on the right ---------- */
.pagew{width:100%;max-width:1180px;margin:0 auto;padding:0 40px}
.lp-state .head{max-width:640px}
.lp-state .lede{margin-bottom:0}
.split{display:grid;grid-template-columns:minmax(0,1fr) 260px;column-gap:56px;align-items:start;margin-top:26px}
.left{min-width:0}
.side{position:sticky;top:16px;display:flex;flex-direction:column;gap:22px}
.side h3{margin:0 0 8px;font-size:12px;font-weight:700}
.side .seg{display:flex;width:100%}
.side .seg button{flex:1;justify-content:center;min-height:38px}
.side .tabs button{font-size:13.5px}
.lp-state .find{margin:0}
.lp-state .field{height:52px;border-width:2px}
.panel{margin-top:26px}
.panel .sh{align-items:baseline}
.panel .sh h2{font-size:13px}
.areas{display:flex;flex-direction:column;gap:1px;margin:0 -9px}
.area{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border-radius:8px;font-size:13px;color:var(--ink);text-decoration:none}
.area:hover{background:#eef0f3}
.area i{font-style:normal;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
.area.on{background:#fbe3ea;color:var(--accent);font-weight:650}
.area.on i{color:var(--accent);font-weight:700}
.areas .chip-more{display:none!important}
.lp-solo h1{margin-top:28px}

/* under 900px: one column, in the order tabs, search, areas (as chips), sort, list */
@media (max-width:899px){
  .pagew{padding:0 20px}
  .split{display:flex;flex-direction:column;gap:14px}
  .left,.side{display:contents}
  .tabs{order:1}
  .find{order:2}
  .areabox{order:3}
  .sortbox{order:4;display:flex;align-items:center;gap:10px}
  .sortbox h3{margin:0}
  .sortbox .seg{width:auto}
  .side .sortbox .seg button{flex:none}
  .panel,.left>.lp-fine{order:5}
  .left>.lp-fine{order:6}
  .side .tabs{align-self:flex-start;width:auto}
  .areabox h3{display:none}
  .areas{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
  .area{padding:0 12px;min-height:32px;border-radius:999px;background:#f2f3f5;font-size:12px}
  .area i{margin-left:4px}
  .area.on{background:var(--ink);color:#fff}
  .area.on i{color:#c9ccd3}
  .areas.fold .extra{display:none}
  .areas .chip-more{display:inline-flex!important}
  .panel{margin-top:6px}
}
@media (max-width:640px){ .pagew{padding:0 16px} }
.side .tabs{margin:0}
@media (max-width:899px){ .lp-state .find{align-self:stretch;width:100%;margin:0} }
@media (max-width:430px){ .lp-brand small{display:none} .lp-top nav a:not(.add){display:none} }
/* no "10 hospitals / All of Lagos" row: the count stays for screen readers, the rule stays above the list */
.panel{border-top:2px solid var(--ink);margin-top:20px}
.panel .sh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0;border:0}
/* no rule between the search box and the list */
.panel{border-top:0;margin-top:14px}
.addr{flex-wrap:wrap;align-items:center;gap:4px 8px}
.dirlink{position:relative;z-index:1;color:var(--accent);font-weight:600;text-decoration:none}
.dirlink:hover{text-decoration:underline;text-underline-offset:3px}
/* Directions: grey until hovered, focused or pressed */
.dirlink{color:var(--muted);font-weight:500}
.dirlink:hover,.dirlink:focus-visible,.dirlink:active{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.dirlink{display:inline-flex;align-items:center;gap:6px}
.dirlink .ext{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.55}
/* Directions must read as a link at a glance: dark and semibold next to the grey address, underlined; pink on hover */
.dirlink{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:#b9bcc4;text-underline-offset:3px}
.dirlink .ext{opacity:.8}
.dirlink:hover,.dirlink:focus-visible,.dirlink:active{color:var(--accent);text-decoration-color:var(--accent)}

/* ---------- doctor and hospital pages: as wide as the state page, text on the left, facts on the right ---------- */
.lp:not(.lp-state) .head{max-width:640px}
.split.two{display:grid;grid-template-columns:minmax(0,1fr) 380px;column-gap:56px;align-items:start;margin-top:8px}
.split.two .side>.blk:first-child,.split.two .main>.blk:first-child{margin-top:34px}
.split.two .main{grid-column:1;grid-row:1;min-width:0}
.split.two .side{grid-column:2;grid-row:1;min-width:0}
.lp:not(.lp-state) .lp-fine{max-width:640px}
@media (max-width:899px){
  .split.two{display:block}
  .split.two .side>.blk:first-child,.split.two .main>.blk:first-child{margin-top:44px}
  .pagew{padding:0 20px}
}
@media (max-width:640px){ .pagew{padding:0 16px} }
/* the state page has no breadcrumb row, so the title sits closer to the header */
.lp-state .head{padding-top:34px}
.lp:not(.lp-state) .head{padding-top:34px}

/* "Back to" list under the facts */
.rows.back .r-side svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--faint)}
.rows.back a.row:hover .r-side svg{color:var(--accent);transform:translateX(-2px)}
.rows.back .r-side svg{transition:transform .15s,color .15s}
.rows.back .r-main small{font-size:12px}

/* "Back to" list under the facts */
.rows.back .r-side svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--faint);transition:transform .15s,color .15s}
.rows.back a.row:hover .r-side svg{color:var(--accent);transform:translateX(-2px)}
.side .backbox .blk{margin-top:14px}
@media (max-width:899px){ .backbox{order:7} .side .backbox .blk{margin-top:36px} }
/* on the state page "Back to" is just the one row, with a hairline above it, to keep the sticky filters short */
.side .backbox .sh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0;border:0}
.side .backbox .blk{margin-top:0;padding-top:4px;border-top:1px solid var(--line)}
.side .backbox .row{padding:12px 0}
@media (max-width:899px){ .side .backbox .blk{margin-top:24px} }

/* ---------- state page on a desktop window: the page fits the window and only the list scrolls ---------- */
@media (min-width:900px) and (min-height:600px){
  body.listpage:has(main.lp-state .split){height:100vh;overflow:hidden}
  body.listpage:has(main.lp-state .split) .lp-foot{margin-top:0}
  .lp-state{min-height:0;overflow:hidden;display:flex;flex-direction:column}
  .lp-state .pagew{flex:1;min-height:0;display:flex;flex-direction:column}
  .lp-state .head{flex:none;padding-top:24px}
  .lp-state .split{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch;margin-top:18px}
  .lp-state .left{display:flex;flex-direction:column;min-height:0}
  .lp-state .find{flex:none}
  .lp-state .panel{flex:1 1 auto;min-height:0;overflow-y:auto;margin-top:10px;padding-right:6px;overscroll-behavior:contain}
  .lp-state .panel[hidden]{display:none}
  .lp-state .left>.lp-fine{flex:none;margin:0;padding:12px 0 14px}
  .lp-state .side{position:static;min-height:0;max-height:100%;overflow-y:auto;padding-bottom:12px}
}
@media (min-width:900px) and (min-height:600px){
  .lp-state .head{max-width:900px}
  .lp-state .head h1{font-size:30px}
  .lp-state .side{gap:14px}
  .lp-state .area{padding-top:5px;padding-bottom:5px}
  .lp-state .side .seg button{min-height:34px}
}

/* no sideways scroll anywhere: the highlight of the selected area pokes 9px out of its column, which is kept inside a padded, clipped box */
@media (min-width:900px) and (min-height:600px){
  html:has(main.lp-state .split){overflow:hidden}
  .lp-state .side{padding-left:9px;padding-right:9px;margin-left:-9px;margin-right:-9px;overflow-x:hidden}
}
/* the list and filters scroll with wheel, trackpad or keyboard, but draw no scrollbar (macOS shows classic bars whenever a mouse is plugged in) */
.lp-state .panel,.lp-state .side{scrollbar-width:none;-ms-overflow-style:none}
.lp-state .panel::-webkit-scrollbar,.lp-state .side::-webkit-scrollbar{display:none}

/* ---------- state page on phones and small tablets: controls compact, the list near the top, footer in the flow ---------- */
@media (max-width:899px){
  .lp-foot{position:static;margin-top:28px;padding:16px var(--pad) 22px;border-top:1px solid var(--line)}
  .lp-state .head{padding-top:20px}
  .lp-state .head h1{font-size:26px;line-height:1.1}
  .lp-state .lede{margin-top:6px;font-size:13px;line-height:1.5}
  .lp-state .split{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
  .lp-state .tabs{order:1;margin:0}
  .lp-state .sortbox{order:2;margin-left:auto}
  .lp-state .sortbox h3{display:none}
  .lp-state .find{order:3;flex:1 0 100%}
  .lp-state .areabox{order:4;flex:1 0 100%}
  .lp-state .panel{order:5;flex:1 0 100%;margin-top:0}
  .lp-state .left>.lp-fine{order:6;flex:1 0 100%;margin-top:14px}
  .lp-state .backbox{order:7;flex:1 0 100%}
  .lp-state .seg button{min-height:34px;padding:0 12px;font-size:12.5px}
  .lp-state .field{height:46px;border-width:1.5px}
  .lp-state .field input{font-size:16px} /* 16px stops iOS zooming the page when the box is focused */
  .lp-state .area{min-height:30px;padding:0 11px}
}
@media (max-width:420px){
  .lp-state .seg button{padding:0 10px;font-size:12px}
}

/* short windows (phones in landscape, small laptops): the footer scrolls with the page instead of covering it, and phones drop the intro line */
@media (max-height:599px){ .lp-foot{position:static;margin-top:28px} }
@media (max-width:899px) and (max-height:700px){
  .lp-state .lede{display:none}
  .lp-state .head{padding-top:14px}
  .lp-state .split{margin-top:10px}
}

/* phones: the facts come where they help most, "Back to" comes last */
@media (max-width:899px){
  .split.two{display:flex;flex-direction:column}
  .split.two .side{display:contents}
  .split.doctor .side>.blk{order:1}
  .split.doctor .main{order:2}
  .split.hospital .main{order:1}
  .split.hospital .side>.blk{order:2}
  .split.two .backbox{order:3}
  .split.two .backbox .blk{margin-top:44px}
}
@media (max-width:899px){ .split.two{align-items:stretch} .split.two>*,.split.two .side>*{min-width:0} }

/* phones: the action buttons are compact and stay on one row */
@media (max-width:640px){
  .acts{gap:6px;margin-top:16px}
  .acts .pill{flex:0 0 auto;min-height:34px;padding:0 13px;font-size:12.5px}
  .note{margin-top:12px}
}
@media (max-width:420px){ .acts .pill .long{display:none} .acts .pill{padding:0 12px} }
@media (max-width:350px){ .acts{gap:5px} .acts .pill{padding:0 9px;font-size:12px} }

/* a button waiting for the forms to load */
[data-act].loading{opacity:.6;cursor:progress}
