/* 2026-07-09 REL_95 · 2026-07-10 REL_95b -- /org Hospital profile page glue (.di-org*). Global di-system tokens only, zero raw hex (light-only; di dark==light).
   The inline slot picker (.di-slots) + inline OTP login (.di-ga) are the SHARED di-slotpicker / di-guestauth stylesheets -- this file only styles the
   hero, the quick strip, the section blocks, the doctor cards, the map/hours, the nearby cards and the FAQ. */

/* ---- hero ---- */
.di-org__hero { position:relative; color:var(--white); overflow:hidden; }
.di-org__herobg { position:absolute; inset:0; background:url("/assets/img/background/hospital.jpg") center/cover no-repeat; transform:scale(1.05); }
.di-org__heroovl { position:absolute; inset:0; background:linear-gradient(150deg, color-mix(in srgb, var(--blue) 78%, transparent), color-mix(in srgb, var(--ink) 92%, transparent) 78%); }
.di-org__herowrap { position:relative; padding-top:30px; padding-bottom:34px; }
.di-org__tagrow { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 12px; }
.di-org__kind { display:inline-flex; align-items:center; font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; background:color-mix(in srgb, var(--white) 14%, transparent); border:1px solid color-mix(in srgb, var(--white) 22%, transparent); padding:5px 11px; border-radius:var(--pill); }
.di-org__vrf { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:color-mix(in srgb, var(--green-bright) 82%, var(--white)); }
.di-org__vrf svg { width:15px; height:15px; }
/* explicit colour: the di-system base sets h1{color:var(--navy)}, which beats inheriting the hero's white */
.di-org__hero .di-org__title { font-size:40px; font-weight:800; line-height:1.14; letter-spacing:-.022em; margin:0 0 12px; color:var(--white); }
/* hero text sits on a photo -> keep alphas high enough to clear AA even over the lightest overlay stop (REL_95b css-review M2) */
.di-org__addr { display:flex; align-items:flex-start; gap:9px; font-size:14.5px; color:color-mix(in srgb, var(--white) 92%, transparent); max-width:660px; margin:0 0 6px; }
.di-org__addr svg { width:17px; height:17px; flex:0 0 17px; margin-top:3px; opacity:.9; }
.di-org__landmark { font-size:13px; color:color-mix(in srgb, var(--white) 80%, transparent); margin:0 0 20px 26px; }
.di-org__stats { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.di-org__stat { background:color-mix(in srgb, var(--white) 10%, transparent); border:1px solid color-mix(in srgb, var(--white) 18%, transparent); border-radius:14px; padding:11px 15px; min-width:140px; }
.di-org__stat b { display:block; font-size:19px; font-weight:800; line-height:1.1; }
.di-org__stat span { font-size:11px; color:color-mix(in srgb, var(--white) 85%, transparent); letter-spacing:.04em; }
.di-org__herocta { display:flex; gap:12px; flex-wrap:wrap; }
.di-org__heroghost { background:transparent; color:var(--white); border:1.5px solid color-mix(in srgb, var(--white) 40%, transparent); }
.di-org__heroghost:hover { background:color-mix(in srgb, var(--white) 12%, transparent); color:var(--white); }

/* ---- quick strip ---- */
.di-org__strip { background:var(--white); border-bottom:1px solid var(--line); }
.di-org__stripwrap { display:flex; flex-wrap:wrap; align-items:center; gap:10px 26px; padding-top:14px; padding-bottom:14px; font-size:13.5px; color:var(--ink2); }
.di-org__stripwrap b { color:var(--ink); }
.di-org__stripwrap a { color:var(--blue); font-weight:700; text-decoration:none; }
.di-org__stripwrap a:hover { text-decoration:underline; }
.di-org__open { display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.di-org__open i { width:7px; height:7px; border-radius:50%; }
.di-org__open.is-open { color:var(--green-ink); }
.di-org__open.is-open i { background:var(--green-ink); }
.di-org__open.is-shut { color:var(--muted); }
.di-org__open.is-shut i { background:var(--muted); }
.di-org__sep { width:1px; height:16px; background:var(--line); }

/* ---- sections ---- */
.di-org { max-width:1000px; }
.di-org__block { padding:38px 0 0; }
.di-org__block:first-child { padding-top:8px; }
.di-org__h2 { font-size:24px; font-weight:800; color:var(--ink); margin:0 0 8px; }
.di-org__sub { color:var(--ink2); font-size:14.5px; margin:0 0 20px; max-width:820px; }
.di-org__about { background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px 28px; margin-top:14px; }

/* ---- speciality chips ---- */
.di-org__chips { display:flex; flex-wrap:wrap; gap:10px; }
.di-org__chip { display:inline-flex; align-items:center; gap:9px; background:var(--white); border:1.5px solid var(--line); border-radius:var(--pill); padding:10px 16px; font-size:14px; font-weight:600; color:var(--ink); min-height:44px; text-decoration:none; box-shadow:0 1px 3px color-mix(in srgb, var(--ink) 6%, transparent); transition:.15s; }
a.di-org__chip:hover { border-color:var(--blue); color:var(--blue); }
.di-org__chip em { font-style:normal; font-size:12px; color:var(--muted); font-weight:600; }

/* ---- doctor filters ---- */
.di-org__filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.di-org__f { border:1.5px solid var(--line); background:var(--white); border-radius:var(--pill); padding:9px 16px; font-family:inherit; font-weight:600; font-size:13.5px; color:var(--ink2); cursor:pointer; min-height:44px; transition:.15s; }
.di-org__f:hover { border-color:var(--blue); color:var(--blue); }
.di-org__f.is-on { background:var(--blue); border-color:var(--blue); color:var(--white); }
.di-org__f:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.di-org__filterempty { font-size:14px; color:var(--ink2); padding:18px 2px; }

/* ---- doctor cards ---- */
.di-org__docs { display:flex; flex-direction:column; gap:16px; }
.di-org__doc { background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px 22px; box-shadow:0 1px 3px color-mix(in srgb, var(--ink) 6%, transparent); }
.di-org__doc[hidden] { display:none; }
.di-org__docmain { display:flex; gap:16px; align-items:flex-start; }
.di-org__avatar { position:relative; flex:0 0 auto; width:72px; height:72px; border-radius:50%; overflow:hidden; background:color-mix(in srgb, var(--blue) 12%, var(--white)); display:flex; align-items:center; justify-content:center; }
.di-org__avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }   /* REL_94 lesson: img above the initials so a real photo covers the fallback */
.di-org__ini { font-size:22px; font-weight:800; color:var(--blue); text-transform:uppercase; }
.di-org__docmeta { flex:1 1 auto; min-width:0; }
.di-org__docname { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.di-org__docname a, .di-org__docname > span:first-child { font-size:17.5px; font-weight:800; color:var(--ink); text-decoration:none; }
.di-org__docname a:hover { color:var(--blue); text-decoration:underline; }
.di-org__verified { display:inline-flex; color:var(--green-ink); }
.di-org__verified svg { width:16px; height:16px; }
.di-org__docdesig { font-size:13.5px; color:var(--ink2); margin:4px 0 0; line-height:1.45; }
.di-org__tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
/* 2026-08-04 -- per-doctor speciality tags were plain blue uppercase text separated only by a 6px gap (~= the inter-word space inside a
   multi-word speciality), so a doctor with several specialities read as one run ("mixed up"), worst on mobile where they wrap. Give each
   its own bounded chip -- scoped to the doctor card so the shared .di-tag stays plain elsewhere (doctor profile etc.). */
.di-org__tags .di-tag { margin-bottom:0; padding:4px 10px; background:var(--tint); border:1px solid var(--line); border-radius:var(--pill); letter-spacing:.04em; }
.di-org__rating { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:10px 0 0; font-size:13px; color:var(--ink2); }
.di-org__rating b { color:var(--ink); font-weight:700; }
.di-org__stars { color:var(--amber); font-size:14px; }
.di-org__rating small { color:var(--muted); font-size:11.5px; }
.di-org__norating { margin:10px 0 0; font-size:12.5px; color:var(--muted); }
.di-org__docaside { flex:0 0 auto; display:flex; flex-direction:column; align-items:flex-end; gap:9px; text-align:right; }
.di-org__fee { margin:0; font-size:12px; color:var(--muted); display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; }
.di-org__feelbl { font-weight:600; letter-spacing:.04em; font-size:10.5px; }
.di-org__fee b { font-size:20px; font-weight:800; color:var(--ink); margin-top:2px; }
.di-org__fee em { font-style:normal; font-size:11px; color:var(--muted); }
.di-org__modes { display:flex; gap:6px; }
.di-org__mode { font-size:11.5px; font-weight:700; padding:4px 9px; border-radius:6px; background:var(--tint); color:var(--blue); }
.di-org__view { white-space:nowrap; }
/* text darkened off --green-ink towards --ink: the plain token on its own 10% tint is ~3.6:1, below AA for 12.5px functional text (REL_95b css-review M3) */
.di-org__next { display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:color-mix(in srgb, var(--green-ink) 62%, var(--ink)); background:color-mix(in srgb, var(--green-ink) 10%, var(--white)); border:1px solid color-mix(in srgb, var(--green-ink) 28%, var(--white)); padding:6px 12px; border-radius:var(--pill); margin:14px 0 0; }
.di-org__next i { width:6px; height:6px; border-radius:50%; background:var(--green-ink); flex:0 0 6px; }
/* the doctor's OWN consulting hours at this hospital (hospitaldoctorschedule) -- distinct from the hospital's opening hours */
.di-org__doctimes { margin:14px 0 0; padding-top:13px; border-top:1px dashed var(--line); }
.di-org__doctimesh { display:block; font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.di-org__doctimeslist { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:5px 22px; }
.di-org__doctimeslist li { display:flex; justify-content:space-between; gap:14px; font-size:13px; }
.di-org__hoursnote { margin:-6px 0 12px; font-size:12px; color:var(--muted); line-height:1.5; }
.di-org__noslots { margin:14px 0 0; padding-top:13px; border-top:1px dashed var(--line); font-size:13px; color:var(--ink2); }
.di-org__noslots a { color:var(--blue); font-weight:700; text-decoration:none; margin-left:4px; }
.di-org__noslots a:hover { text-decoration:underline; }
.di-org__attrib { margin:16px 0 0; font-size:11.5px; color:var(--muted); }
.di-org__empty { margin-top:10px; }

/* ---- location + hours ---- */
.di-org__loc { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; }
.di-org__mapcard { position:relative; background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:0 1px 3px color-mix(in srgb, var(--ink) 6%, transparent); display:flex; flex-direction:column; }
.di-org__map { width:100%; height:280px; border:0; display:block; }
.di-org__mapfoot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-top:1px solid var(--line); }
.di-org__mapfoot > div { min-width:0; }
.di-org__mapfoot b { display:block; font-size:14px; color:var(--ink); }
.di-org__mapfoot span { display:block; font-size:12.5px; color:var(--ink2); }
.di-org__dir { flex:0 0 auto; }
.di-org__hours { background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px 24px; box-shadow:0 1px 3px color-mix(in srgb, var(--ink) 6%, transparent); }
.di-org__hoursh { font-size:15px; font-weight:800; color:var(--ink); margin:0 0 14px; }
.di-org__hourslist { list-style:none; margin:0; padding:0; }
.di-org__hourslist li { display:flex; justify-content:space-between; gap:14px; font-size:13.5px; padding:9px 0; border-bottom:1px dashed var(--line); }
.di-org__hourslist li:last-child { border-bottom:0; }
.di-org__hdays { color:var(--ink); font-weight:600; }
.di-org__htime { color:var(--ink2); white-space:nowrap; }

/* ---- nearby ---- */
.di-org__near { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.di-org__nearc { display:flex; flex-direction:column; gap:5px; background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px 20px; text-decoration:none; box-shadow:0 1px 3px color-mix(in srgb, var(--ink) 6%, transparent); transition:.15s; }
.di-org__nearc:hover { border-color:var(--blue); box-shadow:0 10px 26px -14px color-mix(in srgb, var(--ink) 40%, transparent); }
.di-org__nearc b { font-size:15.5px; font-weight:800; color:var(--ink); }
.di-org__nearc span { font-size:12.5px; color:var(--ink2); }
.di-org__go { color:var(--blue); font-size:13px; font-weight:700; margin-top:5px; }

/* ---- faq ---- */
.di-org__faq { display:flex; flex-direction:column; gap:10px; }
.di-org__q { background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:16px 20px; }
.di-org__q summary { font-size:14.5px; font-weight:800; color:var(--ink); cursor:pointer; list-style:none; }
.di-org__q summary::-webkit-details-marker { display:none; }
.di-org__q summary::after { content:"+"; float:right; color:var(--blue); font-weight:800; }
.di-org__q[open] summary::after { content:"–"; }
.di-org__q summary:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.di-org__q p { margin:11px 0 0; color:var(--ink2); font-size:14px; line-height:1.65; }

/* brand focus ring on the remaining interactive surfaces (di-btn/.di-org__f already have one) */
.di-org__chip:focus-visible, .di-org__nearc:focus-visible, .di-org__stripwrap a:focus-visible,
.di-org__noslots a:focus-visible, .di-org__q summary:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

@media (max-width:880px) {
    .di-org__loc { grid-template-columns:1fr; }
    .di-org__near { grid-template-columns:1fr; }
}
@media (max-width:560px) {
    /* must match the .di-org__hero .di-org__title specificity (0,2,0) or the 40px desktop size wins (REL_95b css-review M1) */
    .di-org__hero .di-org__title { font-size:27px; }
    .di-org__herowrap { padding-bottom:26px; }
    .di-org__stat { flex:1 1 44%; min-width:0; }
    .di-org__doc { padding:16px 15px; }
    .di-org__docmain { flex-wrap:wrap; }
    .di-org__docmeta { min-width:0; }
    /* REL_95b QA BUG-1: the aside was a non-wrapping row, so the nowrap "View profile" CTA pushed the card (and the page) into horizontal scroll
       at 360/390. Let it wrap and give the CTA its own full-width line. */
    .di-org__docaside { flex-direction:row; flex-wrap:wrap; align-items:center; width:100%; justify-content:space-between; gap:10px; margin-top:6px; text-align:left; }
    .di-org__fee { flex-direction:row; align-items:baseline; gap:6px; }
    .di-org__fee b { margin-top:0; }
    .di-org__view { flex:1 1 100%; }
    .di-org__map { height:220px; }
}
