/* Patient site — unified public pages (home, booking, lookup, portal, guide) */
:root {
    --ps-bg: #f3eee6;
    --ps-ink: #1b2430;
    --ps-muted: #5b6573;
    --ps-primary: #0c5850;
    --ps-primary-2: #14786c;
    --ps-accent: #b45309;
    --ps-card: #fffdf8;
    --ps-line: #e5ddd1;
    --ps-ok: #047857;
    --ps-off: #64748b;
    --ps-radius: 18px;
    --ps-shadow: 0 10px 28px rgba(27, 36, 48, 0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ps-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--ps-ink);
    background:
        radial-gradient(1200px 420px at 100% -10%, rgba(20, 120, 108, 0.09), transparent 55%),
        radial-gradient(900px 380px at -10% 0%, rgba(180, 83, 9, 0.07), transparent 50%),
        var(--ps-bg);
    line-height: 1.7;
}
a { color: var(--ps-primary); }
.ps-skip {
    position: absolute; right: -999px;
}
.ps-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ps-line);
}
.ps-header-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ps-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.ps-brand img, .ps-brand .mc-brand-logo {
    width: 46px;
    height: auto;
    max-height: 50px;
    display: block;
}
.ps-brand strong { display: block; font-size: 16px; color: var(--ps-primary); }
.ps-brand small { display: block; color: var(--ps-muted); font-size: 14px; font-weight: 600; }
.ps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ps-nav a {
    text-decoration: none;
    color: var(--ps-ink);
    font-weight: 700;
    font-size: 16px;
    padding: 9px 14px;
    border-radius: 999px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ps-nav a:hover { background: #efe8dc; }
.ps-nav a.is-on {
    background: var(--ps-primary);
    color: #fff;
}
.ps-nav a.ps-nav-book {
    background: var(--ps-accent);
    color: #fff;
}
.ps-nav a.ps-nav-book.is-on,
.ps-nav a.ps-nav-book:hover { filter: brightness(1.05); color: #fff; }
.ps-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px 20px 48px;
}
.ps-hero {
    background: linear-gradient(135deg, #0c5850 0%, #14786c 58%, #1a8a7a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: var(--ps-shadow);
}
.ps-hero h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; }
.ps-hero p { margin: 0; max-width: none; opacity: 0.95; font-size: 16px; }
.ps-hero-kicker {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.82;
}
.ps-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ps-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(12, 88, 80, 0.18);
}
.ps-btn:hover { filter: brightness(1.05); }
.ps-btn--accent { background: var(--ps-accent); box-shadow: 0 8px 18px rgba(180, 83, 9, 0.22); }
.ps-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: none;
}
.ps-btn--outline {
    background: #fff;
    color: var(--ps-primary);
    border: 2px solid var(--ps-primary);
    box-shadow: none;
}
.ps-btn--muted { background: #475569; box-shadow: none; }
.ps-btn[disabled], .ps-btn.is-off {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    background: #94a3b8;
    box-shadow: none;
}
.ps-card {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--ps-shadow);
}
.ps-card h2 { margin: 0 0 8px; font-size: 20px; color: var(--ps-primary); }
.ps-card h3 { margin: 0 0 8px; font-size: 16px; }
.ps-muted { color: var(--ps-muted); }
.ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.ps-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ps-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    min-height: 128px;
    box-shadow: var(--ps-shadow);
}
.ps-tile:hover { border-color: #c8bfb0; transform: translateY(-1px); }
.ps-tile.is-off {
    opacity: 0.72;
    pointer-events: none;
    background: #f8f5f0;
}
.ps-tile strong { color: var(--ps-primary); font-size: 16px; }
.ps-tile span { color: var(--ps-muted); font-size: 16px; line-height: 1.6; }
.ps-tile .ps-icon { font-size: 26px; line-height: 1; }
.ps-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 14px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}
.ps-badge--off { background: #f1f5f9; color: #64748b; }
.ps-badge--warn { background: #fff7ed; color: #c2410c; }
.ps-form label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 14px; }
.ps-form input, .ps-form select, .ps-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d6cec3;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    margin-bottom: 4px;
}
.ps-form input:focus, .ps-form select:focus, .ps-form textarea:focus {
    outline: none;
    border-color: var(--ps-primary-2);
    box-shadow: 0 0 0 3px rgba(20, 120, 108, 0.14);
}
.ps-form textarea { min-height: 88px; resize: vertical; }
.ps-field { min-width: 0; }
.ps-field.full { grid-column: 1 / -1; }
.ps-help { font-size: 13px; color: var(--ps-muted); margin: 0 0 12px; }
.ps-error, .ps-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.ps-error, .ps-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ps-alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ps-alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.ps-alert.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ps-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.ps-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: #efe8dc;
    font-size: 13px;
    font-weight: 800;
    color: var(--ps-muted);
}
.ps-step.is-on { background: var(--ps-primary); color: #fff; }
.ps-step.is-done { background: #d1fae5; color: #065f46; }
.ps-panel { display: none; }
.ps-panel.is-on { display: block; }
.ps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.ps-pay {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ps-pay-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 2px solid var(--ps-line);
    border-radius: 14px;
    background: #fff;
}
.ps-pay-option.is-on { border-color: var(--ps-primary); background: #f0fdfa; }
.ps-pay-option.is-off {
    opacity: 0.7;
    background: #f8fafc;
    cursor: not-allowed;
}
.ps-pay-option strong { display: block; margin-bottom: 4px; }
.ps-pay-option small { color: var(--ps-muted); }
.ps-price {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 800;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.ps-code {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #6ee7b7;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #065f46;
    letter-spacing: 2px;
    margin: 14px 0 0;
}
.ps-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
    font-size: 14px;
    margin: 0;
}
.ps-dl dt { font-weight: 800; color: var(--ps-muted); }
.ps-dl dd { margin: 0; }
.ps-money {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.ps-money div {
    text-align: center;
    padding: 12px;
    background: #f8f5f0;
    border-radius: 12px;
}
.ps-money strong { display: block; font-size: 20px; color: var(--ps-primary); }
.ps-money span { font-size: 14px; color: var(--ps-muted); }
.ps-note {
    margin: 14px 0 0;
    font-size: 16px;
    color: var(--ps-muted);
}
.ps-schedule {
    width: 100%;
    margin: 0 0 16px;
}
.ps-schedule .pp-dir-toolbar {
    margin-bottom: 12px;
}
.ps-schedule .pp-dir-toolbar h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--ps-primary);
}
.ps-schedule .pp-dir-toolbar p {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--ps-muted);
}
.ps-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ps-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--ps-muted);
    font-size: 16px;
}
.ps-footer a { color: var(--ps-primary); font-weight: 700; text-decoration: none; }
.ps-dock {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    background: #fffdf8;
    border-top: 1px solid var(--ps-line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.ps-dock a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--ps-muted);
    font-size: 14px;
    font-weight: 800;
    padding: 8px 4px;
    border-radius: 12px;
}
.ps-dock a.is-on { color: var(--ps-primary); background: #ecfdf5; }
.ps-scenario { border-right: 4px solid var(--ps-primary); padding-right: 14px; margin-bottom: 18px; }
.ps-scenario ol { margin: 8px 0 0; padding-right: 18px; color: var(--ps-muted); }
.ps-pick-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ps-pick {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; border: 2px solid var(--ps-line); border-radius: 14px; background: #fff;
    cursor: pointer;
}
.ps-pick:has(input:checked) { border-color: var(--ps-primary); background: #f0fdfa; }
.ps-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    background: #fef3c7;
    color: #92400e;
}
.ps-status.done { background: #d1fae5; color: #065f46; }
.ps-status.cancel { background: #fee2e2; color: #991b1b; }
.ps-timeline { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-timeline div {
    flex: 1; min-width: 90px; text-align: center; padding: 12px 8px;
    border-radius: 12px; background: #f8f5f0; font-size: 12px; font-weight: 700;
}
.ps-timeline div.is-done { background: #ecfdf5; color: #065f46; }
.ps-option {
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}
.ps-option.is-off { opacity: 0.62; background: #f8fafc; }
.ps-daymap {
    background: #f8f5f0;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 14px 16px;
}
.ps-daymap strong { display: block; color: var(--ps-primary); margin-bottom: 8px; }
.ps-daymap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ps-daymap li { font-size: 13px; }
.ps-daymap li b { display: block; margin-bottom: 2px; }
.ps-daymap li span { display: block; color: var(--ps-muted); padding-right: 8px; }
.ps-daymap .is-off { color: #b45309; }
@media (max-width: 860px) {
    .ps-grid, .ps-grid--4 { grid-template-columns: 1fr 1fr; }
    .ps-nav a span { display: none; }
}
@media (max-width: 720px) {
    .ps-header-inner { padding: 10px 12px; }
    .ps-nav { display: none; }
    .ps-dock { display: flex; }
    .ps-wrap { padding: 16px 14px 108px; }
    .ps-hero { padding: 22px 18px; border-radius: 18px; }
    .ps-hero h1 { font-size: 24px; }
    .ps-grid, .ps-grid--4, .ps-money { grid-template-columns: 1fr; }
    .ps-dl { grid-template-columns: 1fr; }
    .ps-actions .ps-btn { width: 100%; }
}
.ps-posters {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: transparent;
}
.ps-posters:has(img:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}
.ps-posters img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f7f4ee;
}
@media (max-width: 720px) {
    .ps-posters,
    .ps-posters:has(img:nth-child(2)) { grid-template-columns: 1fr; }
    .ps-posters { padding: 0 14px 20px; }
    .ps-posters img { height: auto; max-height: none; object-fit: contain; background: #f7f4ee; }
}

/* One size for the whole patient site */
body.ps-body { font-size: 16px; }
.ps-body .ps-hero,
.ps-body .ps-card,
.ps-body .ps-schedule,
.ps-body .ps-grid,
.ps-body .ps-posters {
    width: 100%;
    max-width: none;
}
.ps-body .ps-schedule {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--ps-shadow);
}
.ps-body .ps-schedule .pp-dir-toolbar,
.ps-body .ps-schedule .pp-dir-table-panel,
.ps-body .ps-schedule .pp-dir-table-panel--weekly {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 12px;
    width: 100%;
    max-width: none;
}
.ps-body .ps-schedule .pp-dir-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.ps-body .ps-schedule .pp-dir-day {
    justify-content: center;
    width: 100%;
    font-size: 16px;
    min-height: 44px;
}
.ps-body .pp-dir-pill,
.ps-body .pp-dir-legend,
.ps-body .ps-help,
.ps-body .ps-step,
.ps-body .ps-daymap li,
.ps-body .ps-timeline div {
    font-size: 16px;
}
.ps-body .pp-dir-table--weekly,
.ps-body .pp-dir-table--weekly th,
.ps-body .pp-dir-table--weekly td,
.ps-body .pp-dir-table--weekly .pp-dir-col-clinic,
.ps-body .pp-dir-table--weekly .pp-dir-matrix-doc,
.ps-body .pp-dir-table--weekly .pp-dir-matrix-time,
.ps-body .pp-dir-table--weekly .pp-dir-day-link {
    font-size: 16px;
    line-height: 1.45;
}
.ps-body .pp-dir-table--weekly .pp-dir-col-clinic {
    width: 9.5rem;
    max-width: 11rem;
}
.ps-body .ps-card h2,
.ps-body .ps-schedule h2 { font-size: 20px; }
.ps-body .ps-btn { font-size: 16px; min-height: 44px; }
.ps-body .ps-form label,
.ps-body .ps-dl,
.ps-body .ps-dl dt,
.ps-body .ps-error,
.ps-body .ps-alert { font-size: 16px; }
@media (max-width: 720px) {
    .ps-body .ps-schedule .pp-dir-weekdays { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ps-body .ps-hero,
    .ps-body .ps-card,
    .ps-body .ps-schedule { border-radius: 16px; }
}
