/* Hisha Pharma — doctor booking screens (loaded after app.css). */

:lang(ml) { line-height: 1.6; }
:lang(ml) .display, :lang(ml) .section__title, :lang(ml) .appbar__title { line-height: 1.35; letter-spacing: 0; }
:lang(ml) .display { font-size: clamp(25px, 0.95rem + 1.5vw, 36px); }
:lang(ml) .eyebrow, :lang(ml) .tk__kind, :lang(ml) .tk__status, :lang(ml) .tk__grid dt { text-transform: none; letter-spacing: 0; }

.eyebrow { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #93201a; }
.avatar--photo { object-fit: cover; padding: 0; }

/* ------------------------------------------------------------- App bar (inner screens) */

.appbar { display: flex; align-items: center; gap: 8px; margin: 0 0 20px -8px; }
.appbar__title { flex: 1; min-width: 0; font-size: clamp(22px, 1rem + 1vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.appbar__back .icon { width: 24px; height: 24px; }
.appbar__action { display: flex; gap: 4px; }
.appbar__action .icon { width: 22px; height: 22px; }

.bk-page { max-width: calc(780px + 2 * var(--gutter)); margin-inline: auto; padding: clamp(16px, 2.6vw, 32px) var(--gutter) 0; }
.bk-page--wide { max-width: calc(1180px + 2 * var(--gutter)); }
.bk-h { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 12px; padding: 0; }
.bk-h--sm { font-size: 17px; margin: 18px 0 10px; }
.bk-count { color: var(--muted); margin: 14px 0 16px; }
.bk-mt { margin-top: 10px; }
.chips--wrap { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }

/* ------------------------------------------------------------- Bottom action bar */

.ctabar { position: sticky; bottom: 16px; z-index: 30; margin-top: 28px; }
.ctabar__inner { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.ctabar__inner > .btn, .ctabar__full { flex: 1; }
.ctabar__full .btn { width: 100%; }
.ctabar__split { display: flex; align-items: center; gap: 16px; width: 100%; }
.ctabar__split .btn { flex: 1; }
.ctabar__price { display: grid; line-height: 1.2; flex: none; }
.ctabar__price b { font-size: 24px; letter-spacing: -0.02em; }
.ctabar__price small { color: var(--muted); font-size: 13.5px; }
.ctabar .btn--lg { --h: 56px; }
.ctabar .btn { white-space: normal; text-align: center; line-height: 1.25; }

/* ------------------------------------------------------------- Booking home */

.bk-head { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.bk-head__row { display: flex; align-items: center; gap: 12px; }
.bk-head__row--sub { justify-content: space-between; margin-top: 10px; }
.bk-head__logo { display: none; }
.bk-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--pill); background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.bk-pill:lang(ml) { letter-spacing: 0; text-transform: none; }
.bk-head__spacer { flex: 1; }
.bk-icon { width: 46px; height: 46px; position: relative; }
.bk-icon .icon { width: 25px; height: 25px; }
.bk-icon .badge { top: 2px; right: 0; }
.bk-loc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 16px; color: var(--muted); }
.bk-loc b { color: var(--ink); }
.bk-loc > .icon:first-child { width: 20px; height: 20px; color: var(--brand); }
.bk-loc > .icon:last-child { width: 16px; height: 16px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px; border-radius: var(--pill); color: var(--muted); font-weight: 600; font-size: 15.5px; border: 1px solid transparent; }
.lang-toggle:hover { border-color: var(--line); }
.lang-toggle b { color: var(--ink); }
.lang-toggle .icon { width: 20px; height: 20px; }
.bk-search { margin-top: 14px; }
.search--bk { height: 58px; padding-right: 20px; }

.bk-body { padding-top: clamp(16px, 2.4vw, 28px); padding-bottom: 8px; }
.bk-note { margin-bottom: 14px; }
.bk-top { display: grid; gap: 16px; }
.next-appt { display: flex; align-items: center; gap: 18px; padding: 20px 20px 20px 22px; border-radius: 26px; transition: border-color 0.15s, box-shadow 0.15s; }
.next-appt:hover { border-color: #dccfc2; box-shadow: var(--shadow); }
.next-appt__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.next-appt__icon .icon { width: 28px; height: 28px; }
.next-appt__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.next-appt__text b { font-size: 19px; line-height: 1.3; }
.next-appt__text > span { color: var(--muted); font-size: 15px; }
.next-appt__chev { width: 22px; height: 22px; color: var(--muted); }
.bk-hero { display: grid; gap: 18px; align-content: center; padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--brand-tint); }
.bk-hero .display { font-size: clamp(28px, 1.1rem + 1.6vw, 40px); }
.bk-hero__cta { justify-self: start; }

.bk-depts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.bk-depts .spec { min-height: 0; padding: 18px 8px 16px; }
.bk-depts .spec__icon { width: 64px; height: 64px; border-radius: 50%; }
.bk-depts .spec__icon .icon { width: 26px; height: 26px; }
.bk-depts--sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-depts--sheet .spec__icon { width: 48px; height: 48px; }
.bk-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bk-online { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.bk-online:hover { border-color: #dccfc2; }
.bk-online__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--dark); color: #e9c99a; display: grid; place-items: center; flex: none; }
.bk-online__icon .icon { width: 24px; height: 24px; }
.bk-online__text { flex: 1; display: grid; }
.bk-online__text span { color: var(--muted); font-size: 14.5px; }
.bk-fab { display: none; }

/* ------------------------------------------------------------- Doctor card */

.dphoto { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; background: var(--surface-2); }
.dphoto--initials { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 22px; }
.dphoto--sm { width: 52px; height: 52px; border-radius: 14px; font-size: 17px; }
.dphoto--md { width: 56px; height: 56px; border-radius: 15px; font-size: 18px; }
.dphoto--lg { width: 116px; height: 116px; border-radius: 24px; font-size: 32px; }

.bk-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-docs--single { grid-template-columns: 1fr; }
.bdoc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.bdoc__top { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex: 1; }
.bdoc__top:hover .bdoc__name { color: var(--brand-dark); }
.bdoc__info { display: grid; gap: 4px; min-width: 0; }
.bdoc__name { font-size: 19px; letter-spacing: -0.01em; }
.bdoc__line { color: var(--muted); font-size: 15px; line-height: 1.4; }
.bdoc__where { display: flex; gap: 6px; align-items: flex-start; }
.bdoc__where .icon { width: 16px; height: 16px; margin-top: 3px; }
.bdoc__foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; flex-wrap: wrap; }
.bdoc__fee { display: grid; line-height: 1.2; margin-right: auto; }
.bdoc__fee b { font-size: 22px; letter-spacing: -0.02em; }
.bdoc__fee small { color: var(--muted); font-size: 13.5px; }
.bdoc__next { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 15px; }
.bdoc__next .icon { width: 18px; height: 18px; }
.bdoc__next.is-none { color: var(--muted); font-weight: 500; }
.bdoc__book { --h: 50px; }

/* ------------------------------------------------------------- Place card */

.bplace { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.bplace:hover { border-color: #dccfc2; box-shadow: var(--shadow); }
.bplace__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.pmedia { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmedia--art { display: grid; place-items: center; color: var(--brand); background: linear-gradient(135deg, #f8ece7, #f1e7dc); }
.pmedia--art .icon { width: 48px; height: 48px; stroke-width: 1.4; }
.pmedia--ayurveda { background: linear-gradient(135deg, #e7f1e4, #f3ecdc); color: #4f7d3a; }
.pmedia--govt { background: linear-gradient(135deg, #e6edf3, #f1ece4); color: #3f5d7a; }
.pmedia--multispeciality { background: linear-gradient(135deg, #f8ece7, #efe6f1); }
.bplace__body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.bplace__name { font-size: 19px; letter-spacing: -0.01em; }
.bplace__meta { color: var(--muted); font-size: 15px; }
.bplace__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.ptag--green { background: var(--green-tint); color: var(--green); }
.ptag--more { background: transparent; border: 1px solid var(--line); }
.bplace__op { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.bplace__op .icon { width: 16px; height: 16px; margin-top: 3px; }

/* ------------------------------------------------------------- Doctor profile and hospital */

.dprof { display: flex; gap: 20px; align-items: flex-start; padding: 22px; border-radius: 26px; }
.dprof__info { display: grid; gap: 6px; min-width: 0; color: var(--muted); }
.dprof__name { font-size: 24px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.dprof .badges { margin-top: 6px; }
.bk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bk-tile { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: var(--surface-2); }
.bk-tile > .icon { width: 24px; height: 24px; color: var(--brand); margin-top: 2px; }
.bk-tile span { display: grid; gap: 2px; min-width: 0; }
.bk-tile b { font-size: 17px; line-height: 1.3; }
.bk-tile small { font-size: 14.5px; color: var(--ink-2); }
.bk-tile.is-off b { color: var(--muted); font-weight: 600; }
.bk-where { padding: 20px 22px; display: grid; gap: 14px; border-radius: 24px; }
.bk-where__main { display: flex; gap: 16px; align-items: flex-start; }
.bk-where__main > span:last-child { display: grid; gap: 4px; color: var(--muted); font-size: 15px; }
.bk-where__main b { color: var(--ink); font-size: 18px; }
.bk-where__main:hover b { color: var(--brand-dark); }
.bk-where__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.bk-where__icon .icon { width: 26px; height: 26px; }
.bk-where__dir { justify-self: start; font-size: 16px; }
.bk-about { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }

.pdetail__media { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.pdetail__name { font-size: clamp(22px, 1rem + 1vw, 28px); letter-spacing: -0.02em; margin-top: 18px; }
.pdetail__meta { color: var(--muted); font-size: 16px; margin-top: 6px; }
.pdetail__tags { margin-top: 14px; }
.pdetail__dir { margin-top: 20px; }
.bk-sechead { margin: 26px 0 12px; }
.bk-sechead .bk-h { margin: 0; }

/* ------------------------------------------------------------- Choose a time */

.bk-form { display: grid; gap: 4px; }
.bk-form fieldset { margin: 0; }
.bk-docsum { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 24px; }
.bk-docsum > span { display: grid; gap: 2px; min-width: 0; }
.bk-docsum b { font-size: 19px; }
.bk-docsum small { color: var(--muted); font-size: 15px; }
.vtypes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vtype { position: relative; }
.vtype input { position: absolute; opacity: 0; }
.vtype > span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; }
.vtype b { font-size: 16.5px; }
.vtype small { color: var(--ink-2); font-size: 14.5px; }
.vtype input:checked + span { border: 2px solid var(--brand); background: var(--brand-tint); padding: 13px 15px; }
.vtype input:focus-visible + span { box-shadow: var(--focus); }
.vtype.is-off > span { opacity: 0.55; cursor: not-allowed; }
.bk-days { grid-auto-columns: minmax(72px, 1fr); }
.bk-days .day span { padding: 12px 4px; border-radius: 18px; background: #fff; }
.bk-days .day b { font-size: 24px; }
.bk-days .day small { font-size: 13.5px; }
.bk-days .day.is-closed span { opacity: 0.5; }
.bk-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-slots .slot span { min-height: 50px; border-radius: var(--pill); font-size: 15.5px; background: #fff; }
.slot.is-taken span { background: var(--surface-2); border-style: dashed; color: #9d938a; cursor: not-allowed; }
.slot.is-taken s { text-decoration-thickness: 1.5px; }
.bk-patient { display: grid; grid-template-columns: 1fr 110px; gap: 12px; margin: 14px 0; }

/* ------------------------------------------------------------- Visit ticket */

.ticket { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.ticket + .ticket { margin-top: 16px; }
.ticket.is-cancelled { opacity: 0.75; }
.tk__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; background: var(--brand-tint); }
.tk__kind { font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-dark); }
.tk__status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tk__status .icon { width: 15px; height: 15px; }
.tk__status--draft { color: var(--brand-dark); }
.tk__status--ok { color: var(--green); background: var(--green-tint); padding: 4px 12px; border-radius: var(--pill); }
.tk__status--muted { color: var(--muted); background: #fff; padding: 4px 12px; border-radius: var(--pill); }
.tk__body { padding: 20px 22px 18px; display: grid; gap: 16px; }
.tk__doc { display: flex; gap: 14px; align-items: center; }
.tk__doc > span { display: grid; gap: 2px; min-width: 0; }
.tk__doc b { font-size: 18px; }
.tk__doc small { color: var(--muted); font-size: 14.5px; }
.tk__link:hover b { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.tk__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.tk__grid dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tk__grid dd { font-size: 17px; font-weight: 700; }
.tk__perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 22px; }
.tk__perf::before, .tk__perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.tk__perf::before { left: -34px; }
.tk__perf::after { right: -34px; }
.tk__foot { padding: 16px 22px 20px; }
.tk__where { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tk__where b { color: var(--ink); }
.tk__where .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.tk__token { display: flex; align-items: center; gap: 16px; }
.tk__num { font-family: var(--serif); font-size: 50px; line-height: 1; color: var(--brand); min-width: 56px; text-align: center; }
.tk__tokentext { flex: 1; display: grid; gap: 2px; color: var(--muted); font-size: 14.5px; }
.tk__tokentext b { color: var(--ink); font-size: 17px; }
.tk__qr { width: 92px; height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; flex: none; background: #fff; }
.qr { width: 100%; height: 100%; display: block; }
.tk__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 20px; }

.bk-fees { padding: 18px 22px; margin-top: 16px; border-radius: 24px; }
.sum-total--dashed { border-top-style: dashed; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; cursor: pointer; font-size: 15.5px; line-height: 1.45; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #b8aca1; display: grid; place-items: center; flex: none; color: transparent; transition: background-color 0.15s, border-color 0.15s; }
.consent__box .icon { width: 18px; height: 18px; stroke-width: 3; }
.consent input:checked + .consent__box { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.consent input:focus-visible + .consent__box { box-shadow: var(--focus); }
[data-consent-error] { margin-top: 6px; }

.bk-done { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.bk-done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.bk-done__icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.bk-done h2 { font-size: 22px; letter-spacing: -0.01em; }
.bk-done p { color: var(--muted); }
.bk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.bk-actions .btn { --h: 52px; }
.bk-tips { padding: 20px 22px; margin-top: 16px; }
.bk-bullets { display: grid; gap: 8px; color: var(--ink-2); }
.bk-bullets li { position: relative; padding-left: 22px; }
.bk-bullets li::before { content: ''; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.bk-manage { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.bk-appts { display: grid; gap: 16px; }

.notif-list { display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.notif:hover { background: var(--brand-tint); }
.notif > span:last-child { display: grid; gap: 2px; }
.notif small { color: var(--muted); }
.notif__icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; }
.bk-sheet-btns { margin-top: 8px; }
.bk-sheet-btns .btn { flex: 1; }

/* ------------------------------------------------------------- Desktop and tablet */

@media (min-width: 769px) {
  .bk-head { background: transparent; border: 0; padding-top: clamp(16px, 2.4vw, 28px); padding-bottom: 0; }
  .bk-head__row--sub { margin-top: 0; }
  .bk-head > .bk-head__row:first-child { margin-bottom: 4px; }
  .bk-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
  .bk-top .bk-hero { order: -1; }
  .bk-top--solo { grid-template-columns: 1fr; }
  .search--bk { background: #fff; }
}

@media (max-width: 1180px) {
  .bk-depts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .bk-docs { grid-template-columns: 1fr; }
  .bk-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- Phones and tablets: app-style screens */

@media (max-width: 1024px) {
  /* Booking home keeps the tab bar but uses its own header */
  .chrome-booking .topbar, .chrome-booking .header, .chrome-booking .catnav { display: none; }
  .bk-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .bk-head__logo { display: inline-flex; }
  .bk-head__logo .logo__mark { width: 40px; height: 40px; }
  .bk-head__logo .logo__word { font-size: 24px; }
  .bk-head__row { gap: 8px; }
  .bk-pill { height: 28px; padding: 0 11px; font-size: 12.5px; }
  .search--bk { height: 54px; }
  .bk-hero__cta { display: none; }
  .bk-depts, .grid--spec8.bk-depts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .bk-depts .spec { padding: 14px 4px 12px; border-radius: 20px; }
  .bk-depts .spec__icon { width: 52px; height: 52px; }
  .bk-depts .spec__icon .icon { width: 22px; height: 22px; }
  .bk-depts .spec__name { font-size: 13px; }
  .grid.bk-places.rail-sm { grid-auto-columns: min(84%, 340px); }
  .bk-places--list { grid-template-columns: 1fr; }
  .bk-online { flex-wrap: wrap; }
  .bk-online .btn { width: 100%; }
  .chrome-booking .main { padding-bottom: 96px; }
  .chrome-booking .footer { padding-bottom: 104px; }
  .ctabar .btn { padding: 0 16px; font-size: 15.5px; }
  .bk-fab { display: block; position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 44; padding: 28px var(--gutter) 12px; background: linear-gradient(to bottom, rgba(250, 247, 242, 0), var(--bg) 45%); pointer-events: none; }
  .bk-fab .btn { width: 100%; pointer-events: auto; box-shadow: 0 10px 24px -10px rgba(158, 69, 44, 0.6); }

  /* Inner booking screens are full-screen: app bar on top, action bar at the bottom */
  body.chrome-app { --tabbar-h: 0px; padding-bottom: 0; }
  .chrome-app .topbar, .chrome-app .header, .chrome-app .catnav, .chrome-app .tabbar, .chrome-app .footer { display: none; }
  .chrome-app .main { padding-bottom: 24px; }
  .chrome-app .bk-page { padding-top: 0; }
  .appbar { position: sticky; top: 0; z-index: 35; margin: 0 calc(-1 * var(--gutter)) 16px; padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px calc(var(--gutter) - 8px); background: #fff; border-bottom: 1px solid var(--line); }
  .appbar__title { font-size: 21px; }
  .has-ctabar .main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .has-ctabar .toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .ctabar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 40; }
  .ctabar__inner { border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -8px 20px -14px rgba(28, 24, 22, 0.3); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .ctabar .btn--lg { --h: 56px; font-size: 15.5px; }
  .ctabar__price b { font-size: 22px; }

  .bk-docs, .bk-docs--single { grid-template-columns: 1fr; }
  .bdoc { padding: 16px; border-radius: 22px; }
  .bdoc__top { gap: 14px; }
  .bdoc__foot { gap: 10px; }
  .bdoc__next { font-size: 14px; }
  .bdoc__book { --h: 46px; padding: 0 18px; }
  .dprof { gap: 16px; padding: 18px; }
  .dphoto--lg { width: 96px; height: 96px; border-radius: 22px; }
  .dprof__name { font-size: 21px; }
  .bk-tile { padding: 14px; gap: 10px; }
  .bk-tile b { font-size: 16px; }
  .bk-tile small { font-size: 13.5px; }
  .tk__head { padding: 12px 18px; }
  .tk__body { padding: 18px; }
  .tk__perf { margin: 0 18px; }
  .tk__perf::before { left: -30px; }
  .tk__perf::after { right: -30px; }
  .tk__foot { padding: 14px 18px 18px; }
  .tk__actions { padding: 0 18px 18px; }
  .tk__grid dd { font-size: 16px; }
  .tk__num { font-size: 44px; min-width: 44px; }
  .tk__qr { width: 84px; height: 84px; }
  .bk-actions { grid-template-columns: 1fr 1fr; }
  .bk-actions .btn:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: start; min-width: calc(50% - 5px); }
}

@media (max-width: 400px) {
  .bk-head__logo .logo__word { font-size: 21px; }
  .bk-head__logo .logo__mark { width: 34px; height: 34px; }
  .bk-pill { padding: 0 9px; letter-spacing: 0.06em; }
  .bk-icon { width: 40px; height: 40px; }
  .bdoc__foot { display: grid; grid-template-columns: 1fr auto; }
  .bdoc__next { grid-column: 1 / -1; order: -1; }
  .bdoc__fee { margin: 0; }
  .vtypes { grid-template-columns: 1fr; }
  .tk__token { flex-wrap: wrap; }
}

/* Booking screens use rust for the active filter, as in the designs */
.bk-page .chip.is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.tk__actions .btn { padding: 0 13px; }
.tabbar:lang(ml) .tab { font-size: 10px; letter-spacing: -0.01em; }
.tabbar:lang(ml) .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }

/* Long Malayalam words and small phones */
.dprof .pill-tag, .empty-card .btn { white-space: normal; }
.bk-tile span, .empty-card p, .dprof__info, .bdoc__info, .tk__doc > span { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .bk-head__row { gap: 6px; }
  .bk-head__logo { min-width: 0; }
  .bk-head__logo .logo__word { font-size: 19px; }
  .bk-head__logo .logo__mark { width: 30px; height: 30px; }
  .bk-pill { height: 26px; padding: 0 8px; font-size: 11.5px; letter-spacing: 0.04em; }
  .bk-icon { width: 38px; height: 38px; }
  .bk-icon .icon { width: 22px; height: 22px; }
}
.bk-depts .spec__name { overflow-wrap: break-word; max-width: 100%; }
@media (max-width: 768px) {
  .bk-depts .spec__name:lang(ml), .bk-depts:lang(ml) .spec__name { font-size: 11.5px; letter-spacing: -0.015em; line-height: 1.45; }
  .bk-depts:lang(ml) .spec, :lang(ml) .bk-depts .spec { padding-inline: 2px; }
}
.bk-depts .spec { min-width: 0; }

/* ------------------------------------------------------------- Revised booking designs */
.bk-docs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-treats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bk-treats .ptag { font-size: 14px; padding: 5px 12px; }
.bk-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-quick__slot { display: grid; place-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; font-weight: 600; font-size: 16px; transition: border-color 0.15s, background-color 0.15s; }
.bk-quick__slot:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.bk-mt-lg { margin-top: 24px; }
.bk-reason { margin-top: 20px; }
.bk-add { margin-top: 14px; font-size: 16px; }
.bk-add-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 64px; border: 1.5px dashed #d6c8bb; border-radius: 18px; background: #fff; color: var(--brand-dark); font-weight: 600; font-size: 16px; }
.bk-add-card:hover { border-color: var(--brand); background: #fffdfb; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rel { position: relative; }
.rel input { position: absolute; opacity: 0; }
.rel span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.rel input:checked + span { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.rel input:focus-visible + span { box-shadow: var(--focus); }
.fm-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.fm-row fieldset.field { padding: 0; border: 0; }
.fm-row legend.field__label { padding: 0; margin-bottom: 6px; }
.seg--full { max-width: none; }
.bk-privacy { margin-top: 12px; }
.bk-reminder { padding: 20px 22px; margin-top: 16px; display: grid; gap: 14px; }
.bk-reminder__top { display: flex; gap: 14px; align-items: flex-start; }
.bk-reminder__top > .icon { width: 24px; height: 24px; color: var(--brand); margin-top: 4px; }
.bk-reminder h2 { font-size: 18px; }
.bk-reminder p { color: var(--muted); }
.bk-reminder__links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-left: 38px; font-size: 16px; }
.pvisit { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; display: grid; gap: 14px; }
.pvisit.is-cancelled { opacity: 0.8; }
.pvisit__top { display: flex; gap: 14px; align-items: center; }
.pvisit__top > span { display: grid; gap: 2px; min-width: 0; }
.pvisit__top b { font-size: 17.5px; }
.pvisit__top small { color: var(--muted); font-size: 14.5px; }
.pvisit__top:hover b { color: var(--brand-dark); }
.pvisit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pvisit__actions .link-btn .icon { width: 17px; height: 17px; }
.bk-contact { padding: 18px 20px 8px; margin-top: 24px; }
.bk-contact ul { display: grid; }
.bk-contact li + li { border-top: 1px solid var(--line-2); }
.bk-contact__row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; text-align: left; }
.bk-contact__row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.bk-contact__row b { font-size: 16.5px; }
.bk-contact__row small { color: var(--muted); font-size: 14.5px; }
.bk-contact__row > .icon:last-child { width: 20px; height: 20px; color: var(--muted); }
.bk-contact__row:hover b { color: var(--brand-dark); }
.bk-contact__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.bk-contact__icon .icon { width: 21px; height: 21px; }
.bk-docsum--plain { padding: 0; border: 0; background: transparent; }
@media (max-width: 1180px) { .bk-docs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .bk-docs--3 { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .bk-quick__slot { min-height: 48px; font-size: 15px; }
  .bk-reminder__links { padding-left: 0; }
}
.bk-form > fieldset, .bk-form > [data-slots] { margin-top: 8px; }
.bk-form > fieldset > legend.bk-h { margin-top: 22px; }
/* Malayalam specialty names are long single words: give them wider tiles on phones */
@media (max-width: 768px) {
  .bk-depts--all:lang(ml), :lang(ml) .bk-depts--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  :lang(ml) .bk-depts, .bk-depts:lang(ml) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =============================================================  Booking site chrome and desktop layouts */

/* Shop vs booking header, menu, top bar and footer */
body:not(.mode-booking) .bk-only { display: none !important; }
body.mode-booking .shop-only { display: none !important; }
.header__brand { grid-area: logo; display: flex; align-items: center; gap: 12px; min-width: 0; }
.header__brand .bk-pill { text-decoration: none; }
.mode-booking .loc b[data-bind="pincode"] { font-weight: 400; color: var(--ink-2); }
.loc__sep { color: var(--muted); }
.hact--lang { font-size: 15.5px; color: var(--ink-2); }
.hact--lang b { color: var(--ink); }
.hact--lang .icon, .hact--bookings .icon { width: 21px; height: 21px; }
.footer__grid--bk { grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .footer__grid--bk { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .footer__grid--bk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Which parts show where: phones and tablets use the app layout (app header, back bar, tab bar);
   desktops use the site header with breadcrumbs. */
@media (min-width: 769px) {
  .no-tabletup { display: none !important; }
  .bk .wrap, .bk-body.wrap { max-width: calc(1180px + 2 * var(--gutter)); }
}
@media (min-width: 1025px) { .appbar, .bk-head { display: none !important; } }
@media (max-width: 1024px) { .deskhead { display: none !important; } }
@media (min-width: 1025px) {
  .no-desk, .ctabar, .bk-chips { display: none !important; }
}
@media (max-width: 1024px) {
  .only-desk, .bk-filters { display: none !important; }
}

/* Breadcrumbs + serif page title (tablet and desktop) */
.deskhead { margin: 4px 0 26px; }
.bk-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--muted); }
.bk-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--muted); }
.bk-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bk-crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }
.deskhead__title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 1.1rem + 1.4vw, 40px); letter-spacing: -0.01em; line-height: 1.15; margin-top: 6px; }
.deskhead__sub { font-size: 17px; color: var(--ink-2); margin-top: 6px; }

/* Booking home: desktop hero with photo */
.bk-hero__copy { display: grid; gap: 18px; align-content: center; }
.bk-hero__text { font-size: clamp(16px, 0.9rem + 0.35vw, 19px); color: var(--ink-2); line-height: 1.55; max-width: 560px; }
.bk-hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.bk-hero__points li { display: inline-flex; align-items: center; gap: 7px; }
.bk-hero__points .icon { width: 18px; height: 18px; color: var(--brand); }
.bk-hero__img { display: none; width: 100%; height: 100%; max-height: 360px; object-fit: cover; border-radius: 22px; }
@media (max-width: 768px) { .bk-hero__text, .bk-hero__points { display: none; } }
@media (min-width: 769px) {
  .bk-top { grid-template-columns: 1fr !important; }
  .bk-top .bk-hero { order: 0 !important; }
  .next-appt { padding: 16px 22px; border-radius: 22px; }
  .next-appt__icon { width: 52px; height: 52px; }
  .next-appt__icon .icon { width: 24px; height: 24px; }
  .bk-hero { padding: clamp(28px, 3.4vw, 48px) clamp(24px, 4vw, 56px); }
  .bk-hero__cta { margin-top: 4px; }
}
@media (min-width: 769px) {
  .bk-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: center; }
  .bk-hero__img { display: block; }
}

/* Doctor list: sidebar filters + horizontal doctor rows */
.bk-listlayout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; }
.bk-listmain > .bk-count { margin-top: 0; }
@media (max-width: 1024px) { .bk-listlayout { display: block; } }
.bk-filters { padding: 22px 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.bk-filters fieldset { margin: 0; padding: 0; border: 0; }
.bk-filters fieldset + fieldset { margin-top: 14px; }
.bk-filters legend { font-weight: 700; font-size: 17px; margin-bottom: 6px; padding: 0; }
.fcheck { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 16.5px; }
.fcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fcheck__box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--brand); display: grid; place-items: center; color: transparent; flex: none; transition: background-color 0.15s; }
.fcheck__box .icon { width: 15px; height: 15px; stroke-width: 3; }
.fcheck input:checked + .fcheck__box { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.fcheck input:focus-visible + .fcheck__box { box-shadow: var(--focus); }
.fcheck:hover .fcheck__box { background: var(--brand-tint); }
.fcheck:hover input:checked + .fcheck__box { background: var(--brand-dark); }
.bk-docs--rows { grid-template-columns: 1fr; }
@media (min-width: 1025px) {
  .bk-docs--rows .bdoc { flex-direction: row; align-items: stretch; padding: 24px; }
  .bk-docs--rows .bdoc__top { border-bottom: 0; border-right: 1px solid var(--line); padding: 0 24px 0 0; align-items: center; gap: 20px; }
  .bk-docs--rows .dphoto { width: 136px; height: 136px; border-radius: 22px; font-size: 34px; }
  .bk-docs--rows .bdoc__name { font-size: 21px; }
  .bk-docs--rows .bdoc__line { font-size: 16px; }
  .bk-docs--rows .bdoc__foot { flex-direction: column; align-items: stretch; justify-content: center; width: 260px; flex: none; padding: 0 0 0 24px; gap: 8px; }
  .bk-docs--rows .bdoc__fee { margin: 0; }
  .bk-docs--rows .bdoc__book { width: 100%; --h: 56px; }
}

/* Two-column pages: main + right column */
.bk-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: 'main aside'; gap: 36px; align-items: start; }
.bk-split__main { grid-area: main; min-width: 0; }
.bk-split__aside { grid-area: aside; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.bk-split__aside:empty { display: none; }
.bk-split--place { grid-template-columns: minmax(0, 1fr) 420px; margin-top: 24px; }
.bk-aside-cta { margin-top: 2px; }
@media (max-width: 1024px) {
  .bk-split, .bk-split--place { display: block; }
  .bk-split__aside { position: static; margin-top: 16px; }
}
@media (min-width: 900px) { .bk-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Doctor profile: "Book a visit" panel */
.bk-widget { padding: 24px; display: grid; gap: 16px; border-radius: 24px; }
.bk-widget__title { font-size: 24px; letter-spacing: -0.01em; }
.vtypes--sm .vtype > span { padding: 12px 16px; }
.bk-widget .bk-days { grid-auto-columns: minmax(64px, 1fr); }
.bk-widget__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-widget__more { justify-self: start; margin-top: -6px; }
.btn.is-disabled { opacity: 0.6; }

/* Choose a time on desktop: pill rows of times, compact days */
@media (min-width: 1025px) {
  .bk-split__main .bk-days { grid-auto-columns: 82px; justify-content: start; }
  .bk-split__main .bk-slots { display: flex; flex-wrap: wrap; gap: 12px; }
  .bk-split__main .bk-slots .slot span { min-width: 124px; padding: 6px 22px; }
}

/* Tickets: four details across when there is room */
.ticket { container-type: inline-size; }
@container (min-width: 620px) {
  .tk__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* My appointments, past visits and records: two per row on desktop */
@media (min-width: 1025px) {
  .bk-appts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .bk-appts .ticket + .ticket { margin-top: 0; }
  .bk-places--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1181px) { .bk-depts--inset { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 1180px) and (min-width: 769px) { .bk-depts--inset { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk-inline-cta { margin-top: 28px; }
.bk-done { align-items: center; }
@media (min-width: 769px) { .bk-done { margin: 8px 0 28px; } .bk-done h2 { font-size: 26px; } }

/* Health records */
.records-list { padding: 4px 20px; }
.records-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.records-row + .records-row { border-top: 1px solid var(--line-2); }
.records-row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.records-row b { overflow-wrap: anywhere; }
.records-row small { color: var(--muted); font-size: 14px; }
.records-row__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.records-row__icon .icon { width: 20px; height: 20px; }

/* Desktop review fixes: card footers in narrow columns, hospital page, header spacing */
@media (min-width: 1025px) {
  .bk-docs--3 .bdoc__foot, .bk-docs--place .bdoc__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'next next' 'fee book'; column-gap: 12px; row-gap: 12px; }
  .bk-docs--3 .bdoc__next, .bk-docs--place .bdoc__next { grid-area: next; }
  .bk-docs--3 .bdoc__fee, .bk-docs--place .bdoc__fee { grid-area: fee; margin: 0; }
  .bk-docs--3 .bdoc__book, .bk-docs--place .bdoc__book { grid-area: book; }
  .bk-split--place .bk-depts--inset { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.mode-booking .header__row { column-gap: clamp(16px, 1.7vw, 28px); }
}

/* Tablet booking header: icon-only "My bookings" and account links (names stay for screen readers) */
@media (min-width: 769px) and (max-width: 980px) {
  body.mode-booking .hact--bookings span, body.mode-booking .hact--user span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.mode-booking .hact--bookings, body.mode-booking .hact--user { min-width: 44px; justify-content: center; }
}
/* Hospital page between laptop and desktop widths: fewer columns in the narrower main column */
@media (min-width: 1025px) and (max-width: 1280px) {
  .bk-split .bk-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-split--place .bk-docs--place { grid-template-columns: 1fr; }
}
/* Booking header below 1181px: city only; on small tablets the city sits beside the search box */
@media (min-width: 769px) and (max-width: 1180px) {
  body.mode-booking .loc b[data-bind="pincode"], body.mode-booking .loc .loc__sep { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
  body.mode-booking .header__row { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'logo logo . actions' 'loc search search search'; }
}
/* Malayalam labels are longer: icon-only bookings and account links a little further up */
@media (min-width: 981px) and (max-width: 1080px) {
  body.mode-booking .header:lang(ml) .hact--bookings span, body.mode-booking .header:lang(ml) .hact--user span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.mode-booking .header:lang(ml) .hact--bookings, body.mode-booking .header:lang(ml) .hact--user { min-width: 44px; justify-content: center; }
}
/* Keep the search box on its own row until there is room for it beside the booking actions
   (Malayalam labels are longer, so its single-row header starts wider) */
@media (min-width: 1181px) and (max-width: 1366px) {
  :root:has(body.mode-booking) { --header-h: 128px; }
  body.mode-booking .header__row { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'logo loc . actions' 'search search search search'; row-gap: 10px; padding-block: 12px; min-height: 0; }
  body.mode-booking .search { height: 52px; }
}
@media (min-width: 1367px) and (max-width: 1499px) {
  :root:has(body.mode-booking[data-chrome-lang="ml"]) { --header-h: 128px; }
  body.mode-booking[data-chrome-lang="ml"] .header__row { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'logo loc . actions' 'search search search search'; row-gap: 10px; padding-block: 12px; min-height: 0; }
  body.mode-booking[data-chrome-lang="ml"] .search { height: 52px; }
}

/* ------------------------------------------------------------- Tablets (iPad): app layout with wider grids */
@media (min-width: 769px) and (max-width: 1024px) {
  body.chrome-booking { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); padding-bottom: var(--tabbar-h); }
  .chrome-booking .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
  .chrome-booking .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 12px; }
  .chrome-booking .tab .icon { width: 24px; height: 24px; }
  .chrome-booking .tab.is-active { color: var(--brand-dark); }
  .chrome-booking .tab.is-active .icon { stroke-width: 2.2; }
  .bk-depts, .grid--spec8.bk-depts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .bk-depts .spec__name { font-size: 14px; }
  :lang(ml) .bk-depts, .bk-depts:lang(ml) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-docs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-hero__img { max-height: 300px; }
  .bk-hero .display { font-size: clamp(28px, 1rem + 1.6vw, 36px); }
}

/* ------------------------------------------------------------- Screen states: offline and error bars, empty states, loading */
.alertband { display: grid; justify-items: start; gap: 12px; margin: 0 0 18px; padding: 14px 20px 20px; border-radius: 20px; }
.alertband p { font-size: 16px; line-height: 1.45; max-width: 70ch; }
.alertband__close { width: 36px; height: 36px; display: grid; place-items: center; margin: -4px 0 -6px -8px; border-radius: 10px; color: inherit; }
.alertband__close .icon { width: 22px; height: 22px; }
.alertband__close:focus-visible { box-shadow: var(--focus); }
.alertband--error { background: #fbe4e1; color: var(--danger); }
.alertband--error .btn { background: #fff; border-color: var(--brand-dark); color: var(--brand-dark); }
.alertband--dark { background: var(--dark); color: #fff; }
@media (max-width: 1024px) {
  .alertband { border-radius: 0; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 12px var(--gutter) 20px; }
  .appbar + .alertband { margin-top: -16px; }
  .bk-head + .alertband { margin: 0; }
}
@media (min-width: 1025px) {
  .bk-head + .alertband { width: min(1180px, calc(100% - 2 * var(--gutter))); margin: 20px auto 0; }
}

.sblock { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(36px, 8vw, 72px) 12px 32px; }
.sblock__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.sblock__icon .icon { width: 30px; height: 30px; }
.sblock__title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 1rem + 1vw, 30px); letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.sblock__text { color: var(--ink-2); max-width: 34ch; font-size: 16.5px; line-height: 1.5; }
.sblock .btn, .sblock .link-btn { margin-top: 8px; }

.skel { display: block; border-radius: 24px; background: linear-gradient(100deg, #eee6dc 30%, #f7f2eb 50%, #eee6dc 70%); background-size: 300% 100%; animation: skel 1.6s ease-in-out infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.skel--doc { height: 250px; }
.skel--card { min-height: 136px; }
.skel--rx { height: 96px; }
.skel--tile { height: 112px; border-radius: 20px; }
.skel--test { height: 200px; }
.skel--pkg { height: 320px; }
.skel--lab { height: 150px; }

/* Hospital page (desktop board B09): eight compact department tiles and compact doctor rows in the main column */
@media (min-width: 1025px) {
  .bk-docs--compact .bdoc { padding: 16px 18px; }
  .bk-docs--compact .bdoc__top { padding-right: 18px; gap: 14px; }
  .bk-docs--compact .dphoto { width: 84px; height: 84px; border-radius: 16px; font-size: 24px; }
  .bk-docs--compact .bdoc__name { font-size: 17px; }
  .bk-docs--compact .bdoc__line { font-size: 14px; }
  .bk-docs--compact .bdoc__foot { width: 180px; padding-left: 18px; gap: 6px; }
  .bk-docs--compact .bdoc__fee b { font-size: 19px; }
  .bk-docs--compact .bdoc__next { font-size: 13.5px; }
  .bk-docs--compact .bdoc__book { --h: 44px; }
}
@media (min-width: 1281px) {
  .bk-split--place .bk-depts--inset { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .bk-split--place .bk-depts--inset .spec { padding: 12px 4px; min-height: 0; gap: 8px; border-radius: 16px; }
  .bk-split--place .bk-depts--inset .spec__icon { width: 42px; height: 42px; }
  .bk-split--place .bk-depts--inset .spec__icon .icon { width: 19px; height: 19px; }
  .bk-split--place .bk-depts--inset .spec__name { font-size: 12.5px; line-height: 1.3; }
}
@media (min-width: 1281px) {
  .bk-split--place .bk-tiles--4 .bk-tile { padding: 12px 14px; gap: 10px; }
  .bk-split--place .bk-tiles--4 .bk-tile > .icon { width: 20px; height: 20px; }
  .bk-split--place .bk-tiles--4 .bk-tile b { font-size: 15px; }
  .bk-split--place .bk-tiles--4 .bk-tile small { font-size: 13px; }
}
