/*
 * AIM inner public pages: directory, pharmacies, basket, orders, assistant,
 * error pages. Loaded after home.css and aim.css, so it only refines them.
 *
 * Colour roles
 *   lagoon-deep  the action that moves you forward, and "available now"
 *   cobalt       links and navigation
 *   navy         titles and the selected filter
 *   coral        emergencies only
 */

:root {
    --pg-primary: #0b7f77;
    --pg-primary-hover: #096a63;
    --pg-primary-soft: #e8f6f4;
    --pg-primary-line: #bfe6e1;
    --pg-amber: #8a5a00;
    --pg-amber-soft: #fff4dc;
    --pg-amber-line: #f3dfae;
    --pg-radius: 18px;
    --pg-radius-sm: 12px;
    --pg-shadow: 0 1px 2px rgba(11, 42, 91, .05), 0 10px 28px -18px rgba(11, 42, 91, .22);
    --pg-shadow-lift: 0 1px 2px rgba(11, 42, 91, .06), 0 20px 36px -20px rgba(11, 42, 91, .32);
}

/* ---------- Buttons inside the page (the header keeps its own) ---------- */

main .btn-primary {
    background: var(--pg-primary);
    border-color: var(--pg-primary);
    color: #fff;
}
main .btn-primary:hover { background: var(--pg-primary-hover); border-color: var(--pg-primary-hover); }
main .btn-primary:focus-visible { outline-color: var(--pg-primary); }

main .btn-outline { background: #fff; border-color: var(--hairline); color: var(--navy); }
main .btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }

.btn-soft {
    background: #fff;
    border-color: var(--pg-primary-line);
    color: var(--pg-primary);
}
.btn-soft:hover { background: var(--pg-primary); border-color: var(--pg-primary); color: #fff; }

main .btn-leaf { background: var(--lagoon); color: #06302d; }
main .btn-leaf:hover { background: #fff; color: var(--navy); }

main .text-link { color: var(--cobalt); }

/* ---------- Page head: crumbs, title, lead, search card ---------- */

.page-head {
    background:
        radial-gradient(34rem 16rem at 92% 0%, rgba(18, 181, 170, .10), transparent 70%),
        linear-gradient(180deg, #f3f7fc 0%, #f8fafd 100%);
}
.page-head h1 {
    margin-top: .75rem;
    font-size: clamp(1.95rem, 3.6vw, 2.75rem);
    line-height: 1.08;
}
.page-head > .wrap > p,
.guest-head p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; max-width: 38rem; }

.crumbs { gap: .4rem; align-items: center; font-size: .875rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; border-radius: 6px; }
.crumbs a:hover { color: var(--cobalt); text-decoration: underline; }
.crumbs > span[aria-hidden] { color: #a5b1c4; }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* Search card */

.filters {
    gap: .85rem;
    padding: .85rem;
    border-color: var(--hairline);
    border-radius: 20px;
    box-shadow: var(--pg-shadow-lift);
}
.filters .search-field {
    background: var(--mist);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color .18s ease, background-color .18s ease;
}
.filters .search-field:focus-within { background: #fff; border-color: var(--cobalt); }
.filters .search-field svg { color: var(--ink-mute); }
.field-label { color: var(--ink-soft); font-size: .78rem; }
.field select,
.field-input {
    border-color: var(--hairline);
    border-radius: 14px;
    color: var(--ink);
    transition: border-color .18s ease;
}
.field select:hover,
.field-input:hover { border-color: #b9c8de; }
.field select:focus-visible,
.field-input:focus { outline: 3px solid rgba(11, 79, 179, .25); outline-offset: 1px; border-color: var(--cobalt); }
.filters-main .btn { border-radius: 14px; }
.filters-more,
.locate-row { border-top-color: var(--hairline); }

.pill span { border-color: var(--hairline); color: var(--ink-soft); }
.pill:hover span { border-color: var(--navy); color: var(--navy); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline-color: var(--cobalt); }
.filters-toggle > summary { color: var(--navy); }

.locate-btn { color: var(--navy); }
.locate-btn svg { color: var(--pg-primary); }

/* ---------- Results header, empty state, pagination ---------- */

.list-head { align-items: center; }
.list-head .list-count {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--navy);
    font-size: 1.05rem;
}
.list-head .list-count::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lagoon);
}

.empty-state {
    background: var(--mist);
    border: 1px dashed #c9d6ea;
    border-radius: 20px;
}
.empty-state h2 { color: var(--navy); font-size: 1.25rem; }

.pager { gap: .6rem; margin-top: 2.25rem; }
.pager-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem 1.15rem;
    background: #fff;
    border-color: var(--hairline);
    color: var(--navy);
    font-size: .92rem;
}
a.pager-link:hover { border-color: var(--cobalt); color: var(--cobalt); }
.pager-link.is-disabled { background: var(--mist); color: #9aa7ba; border-color: transparent; }
.pager-status {
    padding: .45rem .9rem;
    border-radius: 999px;
    background: var(--mist);
    color: var(--ink-soft);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---------- Doctor cards ---------- */

.doctor-grid { gap: 1.1rem; }
.doctor-tile {
    gap: .85rem;
    padding: 1.2rem;
    border-color: var(--hairline);
    border-radius: var(--pg-radius);
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.doctor-tile:hover { border-color: #c9d6ea; box-shadow: var(--pg-shadow-lift); }
.doctor-tile:focus-within { border-color: var(--cobalt); }
.doctor-tile h3 { color: var(--navy); }
.doctor-tile h3 a:hover { color: var(--cobalt); }

.doctor-avatar { background: var(--mist-strong); color: var(--navy); }
.doctor-avatar--tone-1 { background: var(--sea); color: var(--pg-primary); }
.doctor-avatar--tone-2 { background: #fdeee9; color: #b5412f; }
.doctor-avatar--lg { box-shadow: 0 0 0 5px #fff, var(--pg-shadow); }

.doctor-speciality,
.doctor-tile .doctor-speciality {
    display: inline-flex;
    margin-top: .35rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: #e9f0fb;
    color: var(--cobalt);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.5;
}

.doctor-tile-meta { gap: .35rem; }
.doctor-tile-meta em { color: var(--cobalt); }

/* The next free slot: the one thing each card should say first */
.doctor-tile-slot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .75rem .8rem;
    background: var(--pg-primary-soft);
    border: 1px solid var(--pg-primary-line);
    border-radius: 14px;
}
.doctor-slot-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--pg-primary);
    flex-shrink: 0;
}
.doctor-slot-body { display: grid; gap: .2rem; min-width: 0; }
.doctor-tile-slot .doctor-slot-label { color: #2f6f69; font-size: .78rem; font-weight: 600; }
.doctor-tile-slot strong { color: #07504b; font-size: 1rem; font-variant-numeric: tabular-nums; }
.doctor-tile-slot .slot-chips li {
    padding: .2rem .55rem;
    background: #fff;
    border-color: var(--pg-primary-line);
    color: #07504b;
    font-size: .82rem;
}
.doctor-tile-slot.is-empty { background: var(--mist); border-color: transparent; }
.doctor-tile-slot.is-empty .doctor-slot-icon { color: var(--ink-mute); }
.doctor-slot-none { color: var(--ink-soft); font-size: .88rem; }

.doctor-tile-cta { min-height: 42px; }

/* ---------- Clinic and pharmacy cards ---------- */

.clinic-cards { gap: 1.1rem; }
.clinic-card {
    border-color: var(--hairline);
    border-radius: var(--pg-radius);
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.clinic-card:hover { border-color: #c9d6ea; box-shadow: var(--pg-shadow-lift); }
.clinic-card strong { color: var(--navy); }
.clinic-card-icon { background: #e9f0fb; color: var(--cobalt); border-radius: 12px; }
.clinic-card-top .clinic-card-type { background: var(--pg-primary-soft); color: var(--pg-primary); font-size: .8rem; }
.clinic-card-tags span { border-color: var(--hairline); background: #fff; }
.clinic-card-tags .is-more { color: var(--cobalt); border-color: #cddcf3; background: #f3f7fd; }
.clinic-card-tags .is-match { background: var(--pg-primary-soft); border-color: var(--pg-primary-line); color: #07504b; }
.clinic-card-foot { border-top: 1px solid var(--hairline); padding-top: .85rem; color: var(--navy); font-weight: 700; }
.clinic-card-go { background: var(--mist); color: var(--cobalt); }
.clinic-card:hover .clinic-card-go { background: var(--pg-primary); color: #fff; }

.clinic-card--pharmacy .clinic-card-icon { background: var(--pg-primary-soft); color: var(--pg-primary); }
.clinic-card--pharmacy .clinic-card-type { background: #f3f7fd; color: var(--cobalt); }
.pharmacy-photo--card { border-radius: 17px 17px 0 0; }

.distance-chip {
    background: var(--navy);
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ---------- Detail pages: hero, two columns, sticky side card ---------- */

.clinic-hero,
.doctor-hero { align-items: center; }
.clinic-hero-icon {
    border-radius: 20px;
    background: linear-gradient(140deg, var(--cobalt), #1a66cf);
    box-shadow: var(--pg-shadow);
}
.clinic-hero-icon--pharmacy { background: linear-gradient(140deg, var(--pg-primary), var(--lagoon)); }
.clinic-hero-type {
    display: inline-flex;
    padding: .15rem .65rem;
    border-radius: 999px;
    background: var(--pg-primary-soft);
    color: var(--pg-primary);
    font-size: .85rem;
}
.doctor-hero .doctor-speciality { font-size: .9rem; padding: .2rem .75rem; }

.facts li { border-color: var(--hairline); color: var(--ink-soft); }
.facts a { color: var(--cobalt); }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
.detail-layout .doctor-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }

.doctor-layout > div > h2 { color: var(--navy); font-size: 1.3rem; scroll-margin-top: 6rem; }

@media (min-width: 901px) {
    .doctor-aside--sticky { position: sticky; top: 6.5rem; }
}

/* On one column the booking card leads, then the slots, then practice details. */
@media (max-width: 900px) {
    .doctor-layout { grid-template-columns: minmax(0, 1fr); }
    .data-table th,
    .data-table td { padding: .7rem .75rem; }
    .doctor-layout--booking { display: flex; flex-direction: column; gap: 1rem; }
    .doctor-layout--booking > .doctor-aside { display: contents; }
    .doctor-layout--booking .next-card { order: -1; }
    .doctor-layout--booking .aside-card { width: 100%; }
    .doctor-layout--booking .doctor-main { margin-bottom: .5rem; }
}

.aside-card {
    border-color: var(--hairline);
    border-radius: var(--pg-radius);
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
}
.aside-card h2 { color: var(--navy); }
.aside-list a { color: var(--cobalt); }
.aside-list li { padding-bottom: .8rem; border-bottom: 1px solid var(--hairline); }
.aside-list li:last-child { padding-bottom: 0; border-bottom: 0; }

.map-link {
    display: inline-flex;
    margin-top: .3rem;
    color: var(--pg-primary) !important;
    font-size: .85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Next free slot */
.next-card {
    display: grid;
    gap: .2rem;
    background: linear-gradient(180deg, #fff 0%, #f6fbfa 100%);
    border-color: var(--pg-primary-line);
    box-shadow: var(--pg-shadow);
}
.next-card-slot {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: .75rem !important;
    padding: .8rem .9rem;
    border-radius: 14px;
    background: var(--pg-primary-soft);
}
.next-card-slot .doctor-slot-icon { width: 44px; height: 44px; }
.next-card-slot time { display: grid; line-height: 1.25; }
.next-card-slot time span { color: #2f6f69; font-size: .88rem; font-weight: 600; }
.next-card-slot time strong { color: #07504b; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.next-card-cta { width: 100%; margin-top: .9rem !important; }
.next-card-link { justify-self: center; margin-top: .6rem; font-size: .9rem; }

/* Contact card on a facility page */
.contact-card { display: grid; gap: .25rem; }
.contact-list { display: grid; gap: .7rem; margin: .8rem 0 .4rem; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); font-size: .93rem; }
.contact-list a { color: var(--cobalt); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--mist);
    color: var(--cobalt);
    flex-shrink: 0;
}
.contact-list li > span:last-child,
.contact-list li > a { padding-top: .3rem; }
.aside-card .contact-cta { width: 100%; margin-top: .55rem; }

/* Slots on the doctor page */
.slot-day {
    border-color: var(--hairline);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
}
.slot-day h3 { color: var(--navy); }
.slot-grid li,
.slot-chips li {
    background: #fff;
    border-color: var(--pg-primary-line);
    color: #07504b;
}
.slot-grid li { min-width: 4.2rem; text-align: center; padding: .35rem .7rem; }
.slot-days > .slot-day:first-child { border-color: var(--pg-primary-line); background: linear-gradient(180deg, #f6fbfa 0%, #fff 70%); }
.slot-grid li { background: var(--mist); border-color: transparent; cursor: default; }

.booking-note {
    align-items: flex-start;
    background: var(--pg-amber-soft);
    border: 1px solid var(--pg-amber-line);
    border-radius: 14px;
    color: #6b4300;
}

.tag-filter a { border-color: var(--hairline); background: #fff; }
.tag-filter a span { background: var(--mist); color: var(--navy); }
.tag-filter a:hover { border-color: var(--navy); color: var(--navy); }
.tag-filter a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.assistant-nudge {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(24rem 12rem at 100% 0%, rgba(18, 181, 170, .35), transparent 70%),
        var(--navy);
    border-radius: 22px;
}
.assistant-nudge p { color: #c9d6ea; }

/* ---------- Pharmacy page: catalogue as a product grid ---------- */

.pharmacy-hero { gap: 1.5rem 2.5rem; }
.pharmacy-photo--hero { border: 6px solid #fff; border-radius: 22px; }

.filters--compact { box-shadow: 0 1px 2px rgba(11, 42, 91, .04); }

.med-grid { gap: 1rem; }
.med-card {
    gap: .3rem;
    padding: 1.1rem 1.1rem 1rem;
    border-color: var(--hairline);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.med-card:hover { border-color: #c9d6ea; box-shadow: var(--pg-shadow); }
.med-card h3 { color: var(--navy); }
.med-category { color: var(--ink-mute); }
.med-card-foot { border-top: 1px solid var(--hairline); margin-top: auto; padding-top: .8rem; }
.med-price { color: var(--navy); font-size: 1.08rem; font-variant-numeric: tabular-nums; }

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--pg-primary-soft);
    color: #07504b;
}
.stock-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lagoon); }
.stock-badge.is-low { background: var(--pg-amber-soft); color: var(--pg-amber); }
.stock-badge.is-low::before { background: #d99a1b; }
.rx-badge { border-color: #cddcf3; background: #f1f6fd; color: var(--cobalt); }

.add-form input,
.basket-qty input { border-color: var(--hairline); border-radius: 10px; color: var(--navy); }
.add-form input:focus,
.basket-qty input:focus { outline: 3px solid rgba(11, 79, 179, .25); outline-offset: 1px; border-color: var(--cobalt); }

.map-frame { border-color: var(--hairline); border-radius: 14px; }
.map-address { color: var(--ink-soft); }
.pickup-card { background: var(--mist); border-color: transparent; box-shadow: none; }
.fill-card { background: var(--pg-primary-soft); border-color: var(--pg-primary-line); }
.basket-card .basket-total strong,
.basket-total strong { color: var(--navy); }
.guest-card { box-shadow: var(--pg-shadow); }

/* ---------- Basket and order: stepper, lines, summary ---------- */

.order-steps {
    max-width: 44rem;
    margin-top: 1.5rem;
    padding: 1rem 1rem .9rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
}
.order-steps--basket { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 36rem; }
.order-steps li { color: var(--ink-mute); }
.order-steps li::before { top: 11px; height: 2px; background: var(--hairline); }
.order-step-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #c9d6ea;
    background: #fff;
}
.order-steps li.is-done,
.order-steps li.is-current { color: var(--navy); }
.order-steps li.is-done .order-step-dot { background: var(--pg-primary); border-color: var(--pg-primary); }
.order-steps li.is-done .order-step-dot::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.order-steps li.is-done::before,
.order-steps li.is-current::before { background: var(--pg-primary); }
.order-steps li.is-current .order-step-dot {
    border-color: var(--pg-primary);
    box-shadow: 0 0 0 5px rgba(11, 127, 119, .16);
}
.order-steps li.is-current .order-step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pg-primary); }
.order-steps li.is-current > span:last-child { font-weight: 800; }

.basket-line {
    border-color: var(--hairline);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 42, 91, .04);
}
.basket-line-main strong { color: var(--navy); }
.basket-price { color: var(--navy); font-variant-numeric: tabular-nums; }
.icon-btn { border-color: var(--hairline); }
.icon-btn:hover { border-color: var(--coral); color: var(--coral-deep); background: #fff6f4; }
.tag-soft { background: var(--pg-primary-soft); color: #07504b; }
.tag-warn { background: var(--pg-amber-soft); color: var(--pg-amber); }
.fill-result { background: var(--pg-primary-soft); border: 1px solid var(--pg-primary-line); color: #07504b; }
.fill-result .is-missing { color: var(--pg-amber); }

.summary-card { box-shadow: var(--pg-shadow-lift); border-color: var(--hairline); }
.summary-total { border-block-color: var(--hairline); }
.summary-total strong { color: var(--navy); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.paper-note { background: #f1f6fd; color: #1f4a8c; border: 1px solid #dbe6f6; }
.check-confirm input { accent-color: var(--pg-primary); }

.notice--ready { background: var(--pg-primary); }
.notice--refused { background: #fdeee9; color: #a3321f; border: 1px solid #f6cfc6; }

.status-pill--received { background: #e9f0fb; color: var(--cobalt); }
.status-pill--preparing { background: var(--pg-amber-soft); color: var(--pg-amber); }
.status-pill--ready { background: var(--pg-primary); color: #fff; }
.status-pill--collected { background: var(--pg-primary-soft); color: #07504b; }
.status-pill--refused { background: #fdeee9; color: #a3321f; }
.status-pill--cancelled { background: var(--mist); color: var(--ink-mute); }
.status-pill { align-items: center; gap: .35rem; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }

/* Tables (orders, prescriptions) */
.table-wrap { border-color: var(--hairline); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 42, 91, .04); }
.data-table th,
.data-table td { border-bottom-color: var(--hairline); }
.data-table thead th { background: var(--mist); color: var(--ink-soft); font-size: .8rem; }
.data-table td strong { color: var(--navy); }
.data-table tfoot th,
.data-table tfoot td { background: var(--mist); border-top-color: var(--hairline); color: var(--navy); }
.data-table--rows tbody tr { transition: background-color .15s ease; }
.data-table--rows tbody tr:hover { background: #f7faff; }
.is-short { color: var(--coral-deep); }
.coverage-bar { background: var(--mist-strong); }
.coverage-bar::after { background: var(--pg-primary); }
.pharmacy-picks li { padding-bottom: .9rem; border-bottom: 1px solid var(--hairline); }
.pharmacy-picks li:last-child { padding-bottom: 0; border-bottom: 0; }
.refuse-box { border-top-color: var(--hairline); }
.refuse-box summary { color: var(--coral-deep); }

/* ---------- Guest assistant ---------- */

.guest-terms li::before { background: var(--lagoon); }
.guest-terms {
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    color: var(--navy);
}

.chat--live {
    border-color: var(--hairline);
    border-radius: 22px;
    box-shadow: var(--pg-shadow-lift);
}
.chat-head { gap: .8rem; padding: .95rem 1.25rem; border-bottom-color: var(--hairline); }
.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--pg-primary-soft);
    object-fit: contain;
}
.chat-head strong { color: var(--navy); }
.chat-status { color: var(--pg-primary); }
.chat-status::before { background: var(--lagoon); box-shadow: 0 0 0 3px rgba(18, 181, 170, .2); }
.chat--live .chat-body {
    gap: .8rem;
    padding: 1.4rem 1.25rem;
    background: linear-gradient(180deg, var(--mist) 0%, #f8fafd 100%);
}
.bubble { font-size: .97rem; line-height: 1.55; box-shadow: 0 1px 2px rgba(11, 42, 91, .05); }
.bubble--bot { border-color: var(--hairline); border-bottom-left-radius: 6px; max-width: 80%; }
.bubble--user { background: var(--cobalt); border-bottom-right-radius: 6px; max-width: 80%; }
.chat-form { border-top-color: var(--hairline); background: #fff; }
.chat-form textarea { border-color: var(--hairline); border-radius: 14px; }
.chat-form textarea:hover { border-color: #b9c8de; }
.chat-form textarea:focus { outline: 3px solid rgba(11, 79, 179, .25); border-color: var(--cobalt); }
.chat-limit { background: var(--mist); border-color: var(--hairline); }
.chat-alert { background: var(--pg-amber-soft); color: #6b4300; }
.chat-urgent { background: #b42318; }

.aside-card--warn { background: #fff5f2; border-color: #f6d2c9; }
.aside-card--warn h2 { color: #b42318; }

/* ---------- Flash messages ---------- */

.flash { border-radius: 14px; }
.flash--success { background: var(--pg-primary-soft); border-color: var(--pg-primary-line); color: #07504b; }

/* ---------- Error pages (errors/aim) ---------- */

.aim-error-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 30rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px solid var(--hairline, #e3e9f1);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(11, 42, 91, .05), 0 24px 48px -28px rgba(11, 42, 91, .35);
}
.aim-error-card .aim-error-code {
    display: inline-flex;
    margin-bottom: .9rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: #fdeee9;
    color: #b5412f;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}
.aim-error-card .aim-error-btn { background: #0b7f77; border-radius: 14px; }
.aim-error-card .aim-error-btn:hover { background: #096a63; }
.aim-error-card .aim-error-btn:focus-visible { outline: 3px solid #0b7f77; outline-offset: 3px; }
.aim-error-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}
.aim-error-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .35rem .9rem;
    border: 1px solid #e3e9f1;
    border-radius: 999px;
    color: #0b2a5b;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.aim-error-shortcuts a:hover { border-color: #0b4fb3; color: #0b4fb3; }
.aim-error-card .aim-error-sos { margin-top: 1.75rem; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .page-head h1 { font-size: 1.85rem; }
    .order-steps { padding: .85rem .5rem .75rem; }
    .order-steps li { font-size: .74rem; }
    .doctor-hero,
    .clinic-hero { align-items: flex-start; gap: .9rem; }
    .doctor-avatar--lg { width: 64px; height: 64px; font-size: 1.2rem; }
    .clinic-hero-icon { width: 56px; height: 56px; border-radius: 16px; }
    .clinic-hero-icon svg { width: 28px; height: 28px; }
    .bubble--bot,
    .bubble--user { max-width: 92%; }
    .guest-terms { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .doctor-tile,
    .clinic-card,
    .med-card,
    .filters .search-field,
    .data-table--rows tbody tr { transition: none; }
    .doctor-tile:hover,
    .clinic-card:hover { transform: none; }
}

/* ---------- Patient: who viewed my record ---------- */

.pa-days { display: grid; gap: 1.4rem; }
.pa-day h2 { margin: 0 0 .6rem; color: var(--navy); font-size: 1rem; font-weight: 800; }
.pa-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    overflow: hidden;
}
.pa-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1.1rem;
    border-top: 1px solid var(--hairline);
}
.pa-item:first-child { border-top: 0; }
.pa-item--write { box-shadow: inset 3px 0 0 #e0a43a; }
.pa-item--delete { box-shadow: inset 3px 0 0 var(--coral); }
.pa-avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mist);
    color: var(--navy);
    font-size: .8rem;
    font-weight: 800;
}
.pa-avatar--doctor { background: var(--pg-primary-soft); color: var(--pg-primary); }
.pa-avatar--platform { background: #eaf1fc; color: var(--cobalt); }
.pa-avatar--receptionist, .pa-avatar--facility_admin { background: var(--pg-amber-soft); color: var(--pg-amber); }
.pa-body { min-width: 0; }
.pa-line { display: block; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.pa-line strong { color: var(--ink); }
.pa-body small { display: block; margin-top: .1rem; color: var(--ink-mute); font-size: .8rem; }
.pa-time { color: var(--ink-soft); font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.pa-help { text-align: left; }
.pa-help-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: .2rem;
    border-radius: 12px;
    background: var(--pg-primary-soft);
    color: var(--pg-primary);
}
.pa-help p { color: var(--ink-soft); font-size: .9rem; }
.pa-help .btn { justify-self: start; }

/* Link card on the patient's medical history page */
.mh-privacy {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mh-privacy:hover { border-color: var(--pg-primary-line); box-shadow: var(--pg-shadow-lift); color: inherit; }
.mh-privacy-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pg-primary-soft);
    color: var(--pg-primary);
}
.mh-privacy strong { display: block; color: var(--navy); font-size: .98rem; }
.mh-privacy small { display: block; color: var(--ink-mute); font-size: .84rem; }
.mh-privacy-arrow { margin-left: auto; color: var(--pg-primary); font-size: 1.2rem; font-weight: 700; }

@media (max-width: 560px) {
    .pa-item { grid-template-columns: auto minmax(0, 1fr); padding: .8rem .9rem; }
    .pa-time { grid-column: 2; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mh-privacy { transition: none; }
}

/* Patient home: discreet entry to the access history */
.board-privacy {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.board-privacy svg { color: var(--cobalt); }
.board-privacy:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages: privacy policy, terms of use ---------- */

.legal-updated { margin-top: .5rem; color: var(--ink-mute) !important; font-size: .9rem !important; }

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 46rem);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 6.5rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--pg-radius);
    background: #fff;
}
.legal-toc h2 { margin: 0 0 .6rem; color: var(--navy); font-size: .95rem; }
.legal-toc ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.2rem; color: var(--ink-mute); font-size: .9rem; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

.legal-article { color: var(--ink); font-size: 1rem; line-height: 1.7; }
.legal-section + .legal-section { margin-top: 2rem; }
.legal-section { scroll-margin-top: 6.5rem; }
.legal-section h2 { margin: 0 0 .6rem; color: var(--navy); font-size: 1.2rem; }
.legal-section p { margin: 0 0 .75rem; }
.legal-section ul { display: grid; gap: .4rem; margin: 0 0 .75rem; padding-left: 1.25rem; }

.legal-contact {
    margin-top: 2.5rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--pg-primary-line);
    border-radius: var(--pg-radius);
    background: var(--pg-primary-soft);
}
.legal-contact h2 { margin: 0 0 .35rem; color: var(--navy); font-size: 1.05rem; }
.legal-contact p { margin: 0 0 .35rem; color: var(--ink-soft); }
.legal-contact a { color: var(--pg-primary); font-weight: 700; overflow-wrap: anywhere; }

.legal-see-also { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.legal-see-also a { color: var(--cobalt); font-weight: 600; }

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-toc { position: static; }
}

/* ---------- First-visit privacy notice ---------- */

.privacy-notice {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(46rem, calc(100% - 2rem));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--hairline);
    border-radius: var(--pg-radius);
    background: #fff;
    box-shadow: var(--pg-shadow-lift);
}
.privacy-notice[hidden] { display: none; }
.privacy-notice-icon {
    width: 2.4rem;
    height: 2.4rem;
    padding: .5rem;
    border-radius: 12px;
    background: var(--pg-primary-soft);
    color: var(--pg-primary);
}
.privacy-notice-text { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.privacy-notice-text strong { display: block; color: var(--navy); font-size: .95rem; }
.privacy-notice-text a { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }
.privacy-notice-ok {
    min-height: 44px;
    padding: .55rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--pg-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.privacy-notice-ok:hover { background: var(--pg-primary-hover); }
.privacy-notice-ok:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }

@media (max-width: 600px) {
    .privacy-notice { grid-template-columns: auto minmax(0, 1fr); bottom: .75rem; }
    .privacy-notice-ok { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Pharmacy stock: lots, expiry, alerts ---------- */

.stock-search { max-width: 34rem; margin-bottom: 1rem; }
.stock-search .search-field { width: 100%; }
.stock-section-title { margin: 0 0 .8rem; color: var(--navy); font-size: 1.15rem; }
.stock-section-title:not(:first-child) { margin-top: 2rem; }

.stock-flag,
.stock-level {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.stock-level { margin-left: 0; }
.stock-flag--ok,
.stock-level--ok { background: var(--pg-primary-soft); color: #07504b; }
.stock-flag--warn,
.stock-level--low { background: var(--pg-amber-soft); color: var(--pg-amber); }
.stock-flag--danger,
.stock-level--out { background: #fdeee9; color: #a3321f; }

.stock-form { display: grid; gap: .8rem; margin-top: .9rem; }
.stock-form .field { display: grid; gap: .3rem; }
.stock-form .field-input { width: 100%; }
.stock-form .field-input.is-invalid { border-color: var(--coral-deep); }
.stock-form .btn { justify-self: start; }
.doctor-aside .aside-card + .aside-card { margin-top: 1rem; }

.btn-text {
    min-height: 44px;
    padding: 0 .25rem;
    border: 0;
    background: none;
    color: var(--cobalt);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.btn-text--danger { color: #a3321f; }
.btn-text:hover { text-decoration: underline; text-underline-offset: 3px; }

.board-card-lead { margin: -.25rem 0 .9rem; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Consultation report (patient space) ---------- */

.consultation-report > .muted { margin: 0 0 1rem; font-size: .9rem; }
.consultation-report dl { margin: 0; }
.consultation-report dt { color: var(--ink-mute); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.consultation-report dd { margin: .25rem 0 1.1rem; color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.consultation-report dd:last-child { margin-bottom: 0; }

/* ---------- Notifications (patient space) ---------- */

.notif-bell {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: var(--navy);
}
.notif-bell:hover, .notif-bell[aria-current="page"] { background: var(--mist); }
.notif-bell:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.notif-bell-count {
    position: absolute;
    top: .1rem;
    right: .05rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--coral-deep);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
}

.notif-wrap { max-width: 46rem; }
.notif-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.notif-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .25rem .85rem;
    align-items: center;
    padding: .9rem 1rem;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: #fff;
}
.notif-item--new { border-color: #c9d6ea; box-shadow: var(--shadow-soft); }
.notif-dot { width: .6rem; height: .6rem; border-radius: 999px; background: var(--cobalt); align-self: start; margin-top: .45rem; }
.notif-item--action .notif-dot { background: var(--pg-amber); }
.notif-item--cancel .notif-dot { background: var(--coral-deep); }
.notif-main { min-width: 0; }
.notif-title { margin: 0; color: var(--ink); font-weight: 700; }
.notif-new { margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; background: var(--mist); color: var(--cobalt); font-size: .72rem; font-weight: 700; vertical-align: middle; }
.notif-body { margin: .2rem 0 0; color: var(--ink-soft); font-size: .92rem; overflow-wrap: anywhere; }
.notif-meta { margin: .25rem 0 0; color: var(--ink-mute); font-size: .8rem; }

@media (max-width: 600px) {
    .notif-item { grid-template-columns: auto minmax(0, 1fr); }
    .notif-item > .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Reviews (module 18) ---------- */

.review-form { display: grid; gap: .55rem; }
.review-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; margin: 0; padding: 0; border: 0; }
.review-stars legend { float: left; width: 100%; margin-bottom: .35rem; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.review-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-stars label { cursor: pointer; color: #c9d3df; font-size: 1.9rem; line-height: 1; transition: color .12s ease; }
.review-stars label:hover,
.review-stars label:hover ~ label,
.review-stars input:checked ~ label { color: #e0a100; }
.review-stars input:focus-visible + label { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.review-label { margin-top: .25rem; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.review-form textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--hairline); border-radius: 10px; font: inherit; }
.review-done { margin: 0 0 .25rem; color: var(--ink); font-weight: 700; }
.field-error { margin: 0; color: var(--coral-deep); font-size: .85rem; }
.trust-score { color: var(--ink); font-weight: 700; }
.trust-score span { color: #e0a100; }

@media (prefers-reduced-motion: reduce) {
    .review-stars label { transition: none; }
}

/* ==========================================================================
   Inner pages, warm and compact
   The same rhythm as the home page: a lighter page head on a warm cream wash,
   with the hero's quiet accents (a teal ring, a coral cross) in its margins;
   closer blocks; softer, rounder cards; long lists open on demand.
   ========================================================================== */

.page-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 3vw, 2.1rem);
    background:
        radial-gradient(30rem 14rem at 96% 0%, rgba(18, 181, 170, .12), transparent 70%),
        radial-gradient(26rem 14rem at 0% 100%, rgba(255, 183, 120, .12), transparent 70%),
        linear-gradient(180deg, #fbf7f1 0%, #f5f8fb 100%);
    border-bottom: 1px solid #eee7dc;
}
.page-head::before,
.page-head::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
/* A teal ring in the right margin and a coral cross in the left one, as in the hero */
.page-head::before {
    top: 1.4rem;
    right: max(1rem, calc((100vw - 78rem) / 2 - 3.5rem));
    width: 46px;
    height: 46px;
    border: 2px solid rgba(18, 181, 170, .35);
    border-radius: 50%;
}
.page-head::after {
    left: max(1rem, calc((100vw - 78rem) / 2 - 2.75rem));
    bottom: 1.6rem;
    width: 18px;
    height: 18px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 6px no-repeat,
        linear-gradient(currentColor, currentColor) center / 6px 100% no-repeat;
    color: rgba(242, 89, 75, .35);
}
.js .page-head::before { animation: decor-float 8s ease-in-out infinite; }
@media (max-width: 1240px) {
    .page-head::before, .page-head::after { display: none; }
}

.page-head h1 { margin-top: .55rem; font-size: clamp(1.8rem, 3.2vw, 2.45rem); }
.page-head > .wrap > p,
.guest-head p { margin-top: .5rem; font-size: 1rem; }
.page-head .search-bar,
.page-head .filters { margin-top: 1.25rem; }

.page-body { padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(2.5rem, 5vw, 3.75rem); }

/* Cards: rounder, a warm hairline, a gentle lift on hover */
.doctor-tile,
.clinic-card,
.med-card,
.aside-card,
.slot-day { border-radius: 20px; }
.doctor-tile,
.clinic-card,
.med-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.doctor-tile:hover,
.clinic-card:hover,
.med-card:hover { transform: translateY(-2px); }

/* Doctor cards: the same information in less height */
.doctor-tile { gap: .65rem; padding: 1rem; }
.doctor-tile-slot { padding: .55rem .7rem; gap: .6rem; border-radius: 12px; }
.doctor-slot-icon { width: 34px; height: 34px; border-radius: 10px; }
.doctor-tile-slot strong { font-size: .95rem; }
.doctor-tile-cta { min-height: 38px; }

/* Doctor page: closer day blocks and slot chips */
.slot-days { gap: .7rem; }
.slot-day { padding: .9rem 1.1rem; }
.slot-grid { gap: .4rem; margin-top: .55rem; }
.slot-grid li { min-width: 3.9rem; padding: .28rem .6rem; font-size: .9rem; }

/* Lists that open on demand (public/js/aim-ui.js, data-reveal) */
[data-reveal] > [hidden] { display: none !important; }
.reveal-more {
    display: flex;
    width: max-content;
    min-height: 44px;
    margin: 1rem auto 0;
    padding: 0 1.4rem;
    border-radius: 999px;
    font-weight: 700;
}
@media (max-width: 560px) {
    .reveal-more { width: 100%; justify-content: center; }
}

/* Footer: a little less tall */
.site-footer { padding-top: clamp(2.25rem, 4vw, 3.25rem); }

@media (prefers-reduced-motion: reduce) {
    .js .page-head::before { animation: none; }
    .doctor-tile:hover, .clinic-card:hover, .med-card:hover { transform: none; }
}

/* Short pages: the footer stays at the bottom of the window */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }

/* Empty states: warm wash, a small teal ring with a cross */
.empty-state { background: linear-gradient(180deg, #fbf8f3, #f6f9fc); border-color: #d8e2ef; }
.empty-state--left { display: flex; align-items: center; gap: .85rem; }
.empty-state--left::before {
    content: "";
    flex: none;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(18, 181, 170, .35);
    border-radius: 50%;
    background:
        linear-gradient(rgba(18, 181, 170, .55), rgba(18, 181, 170, .55)) center / 12px 3px no-repeat,
        linear-gradient(rgba(18, 181, 170, .55), rgba(18, 181, 170, .55)) center / 3px 12px no-repeat,
        #fff;
}
.empty-state--left > p { margin: 0; }

/* Phones: a doctor card in three short rows; the next slot and the button share the last one */
@media (max-width: 560px) {
    .doctor-tile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .55rem .6rem;
        padding: .9rem;
    }
    .doctor-tile-head,
    .doctor-tile-meta { grid-column: 1 / -1; }
    .doctor-tile-meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
    .doctor-tile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 7.5rem;
        padding-inline: .75rem;
        border-radius: 14px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
}

/* ---------- Online booking (patient.booking.create) ---------- */

.bk-wrap { max-width: 44rem; }
.bk-summary { display: grid; gap: .8rem; margin: 0 0 1.4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--hairline); border-radius: 18px; background: #fff; }
.bk-summary > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .3rem 1rem; }
.bk-summary dt { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.bk-summary dd { margin: 0; color: var(--ink); }
.bk-summary dd small { display: block; color: var(--ink-mute); font-size: .82rem; }
.bk-form { display: grid; gap: 1.1rem; }
.bk-types { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.bk-types legend { width: 100%; margin-bottom: .4rem; }
.bk-types .pill { position: relative; }
.bk-types .pill input { position: absolute; opacity: 0; pointer-events: none; }
.bk-types .pill span { display: inline-block; padding: .55rem 1.05rem; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.bk-types .pill input:focus-visible + span { outline: 3px solid rgba(11, 79, 179, .3); outline-offset: 2px; }
.bk-form .field { display: grid; gap: .35rem; }
.bk-form textarea.field-input { width: 100%; padding: .7rem .85rem; border: 1px solid var(--hairline); font: inherit; resize: vertical; }
.bk-hint { color: var(--ink-mute); font-size: .8rem; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.slot-grid li:has(a) { padding: 0; }
.slot-grid a { display: flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: .28rem .6rem; color: inherit; text-decoration: none; }
.slot-grid li:has(a) { cursor: pointer; }
.slot-grid li:has(a):hover { background: var(--cobalt); color: #fff; }
.slot-grid li:has(a:focus-visible) { outline: 3px solid rgba(11, 79, 179, .35); outline-offset: 2px; }
@media (max-width: 575px) {
    .bk-summary > div { grid-template-columns: minmax(0, 1fr); }
    .bk-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Patient prescription: what each medicine is ---------- */

.rx-what { display: block; margin-top: .25rem; font-size: .85rem; color: var(--ink-soft); }
.rx-ask { margin: .75rem 0 0; font-size: .875rem; color: var(--ink-mute); }
