:root {
    --brand-050: #eaf8ef;
    --brand-100: #d2f1dd;
    --brand-600: #008f3b;
    --brand-700: #007a33;
    --brand-900: #064521;
    --ink-900: #16221b;
    --ink-700: #415148;
    --ink-500: #69776f;
    --surface: #f7faf8;
    --white: #fff;
    --line: #dce7df;
    --shadow: 0 18px 45px rgba(18, 48, 31, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink-900); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, select { font: inherit; }
.site-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -5rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: var(--brand-900); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 4; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: auto; }
nav { display: flex; gap: 1.6rem; }
nav a { color: var(--ink-700); font-size: .925rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--brand-700); }
.menu-toggle { display: none; }
.hero, .location-hero { background: linear-gradient(135deg, #f7fcf8, #edf9f1); border-bottom: 1px solid var(--brand-100); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); gap: 4rem; align-items: center; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.eyebrow { display: flex; gap: .45rem; margin: 0 0 .75rem; color: var(--brand-700); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 1.25rem; font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.075em; }
h1 em { color: var(--brand-600); font-style: normal; }
h2 { max-width: 700px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.06em; }
.hero-description { max-width: 630px; color: var(--ink-700); font-size: 1.14rem; }
.location-search { max-width: 640px; margin-top: 2.2rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 1.15rem; box-shadow: var(--shadow); }
.location-search label { display: block; margin-bottom: .55rem; font-size: .88rem; font-weight: 750; }
.location-input-row { display: flex; align-items: center; gap: .75rem; }
.location-pin { color: var(--brand-600); font-size: 1.45rem; }
.location-input-row select { min-width: 0; flex: 1; padding: .85rem 0; border: 0; color: var(--ink-900); background: #fff; outline: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: .7rem; background: var(--brand-700); color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--brand-900); }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #77d69d; outline-offset: 3px; }
.input-hint { margin: .7rem 0 0; color: var(--ink-500); font-size: .78rem; }
.hero-panel { position: relative; padding: 2rem; overflow: hidden; color: #fff; background: var(--brand-900); border-radius: 1.5rem; box-shadow: 0 25px 55px rgba(6, 69, 33, .22); }
.hero-panel-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 2.6rem; background: #fff; border-radius: 1.25rem; }
.panel-overline { margin-bottom: .5rem; color: #a9dfbd; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel-title { margin-bottom: 3rem; font-size: 1.55rem; font-weight: 750; line-height: 1.15; letter-spacing: -.035em; }
.panel-stat { display: grid; gap: .1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .24); }
.panel-stat span { color: #d4f1dd; font-size: .85rem; }
.duty-section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 650; }
.status-pill span, .status-dot { width: .55rem; height: .55rem; border-radius: 50%; }
.status-pill span, .status-open { background: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-050); }
.status-closed { background: #9ba79f; }
.empty-board { display: grid; justify-items: center; max-width: 720px; margin: auto; padding: 3.2rem 2rem; text-align: center; background: #fff; border: 1px dashed #b9ccbf; border-radius: 1.25rem; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; color: var(--brand-700); background: var(--brand-050); border-radius: 50%; font-size: 1.5rem; }
.button-secondary { color: var(--brand-900); background: var(--brand-050); }
.how-it-works { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--ink-900); color: #fff; }
.how-it-works .eyebrow { color: #90d8a9; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.75rem; overflow: hidden; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); border-radius: 1rem; }
.steps-grid article { padding: 1.7rem; background: var(--ink-900); }
.steps-grid span { display: block; margin-bottom: 2.7rem; color: #91dbaa; font-size: .8rem; font-weight: 800; letter-spacing: .09em; }
.steps-grid h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.steps-grid p { margin-bottom: 0; color: #c3d0c7; font-size: .92rem; }
.site-footer { color: var(--ink-700); background: #fff; border-top: 1px solid var(--line); }
.footer-content { min-height: 100px; font-size: .82rem; }
.footer-content p { margin: 0; }
.location-hero-content { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: var(--brand-700); font-size: .9rem; font-weight: 750; }
.pharmacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pharmacy-card { display: flex; flex-direction: column; min-height: 290px; padding: 1.45rem; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: 0 6px 18px rgba(18, 48, 31, .04); }
.pharmacy-card-duty { border-color: #8bd6a6; box-shadow: 0 15px 35px rgba(0,143,59,.1); }
.pharmacy-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.pharmacy-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-flex; padding: .32rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge-duty { color: #fff; background: var(--brand-700); }
.badge-open { color: var(--brand-900); background: var(--brand-050); }
.pharmacy-card h3 { margin: 1.45rem 0 .35rem; font-size: 1.35rem; letter-spacing: -.04em; }
.pharmacy-address { color: var(--ink-700); }
.pharmacy-hours { color: var(--brand-900); font-size: .9rem; }
.pharmacy-notice { padding: .65rem .75rem; color: #754b07; background: #fff5df; border-radius: .65rem; font-size: .82rem; }
.location-hero-mobile, .duty-section-mobile, .mobile-actions, .mobile-location-selector, .mobile-feedback { }

@media (max-width: 760px) {
    .site-shell { width: min(100% - 28px, 1120px); }
    .header-content { min-height: 64px; }
    .brand img { width: 128px; height: auto; }
    .menu-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .4rem .55rem; color: var(--ink-700); background: transparent; }
    .menu-toggle:hover { color: var(--brand-700); background: var(--brand-050); }
    .menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; }
    .menu-toggle-icon { position: relative; }
    .menu-toggle-icon::before { position: absolute; top: -6px; }
    .menu-toggle-icon::after { position: absolute; top: 6px; }
    .menu-toggle-label { font-size: .78rem; font-weight: 800; }
    nav { position: absolute; top: 100%; right: 14px; left: 14px; display: none; flex-direction: column; gap: .2rem; padding: .65rem; background: #fff; border: 1px solid var(--line); border-radius: .85rem; box-shadow: var(--shadow); }
    nav.is-open { display: flex; }
    nav a { padding: .7rem; border-radius: .55rem; }
    nav a:hover { background: var(--brand-050); }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
    .hero-panel { padding: 1.5rem; }
    .hero-panel-icon { margin-bottom: 1.5rem; }
    .panel-title { margin-bottom: 1.8rem; }
    .location-input-row { flex-wrap: wrap; }
    .location-input-row select { min-width: calc(100% - 2.5rem); }
    .location-input-row button { width: 100%; }
    .steps-grid, .pharmacy-grid { grid-template-columns: 1fr; }
    .steps-grid article { padding: 1.5rem; }
    .steps-grid span { margin-bottom: 1.5rem; }
    .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; gap: .55rem; padding: 1.4rem 0; }

    .location-hero-mobile { background: #fff; border-bottom: 0; }
    .location-hero-content { padding: 1rem 0 1.15rem; }
    .mobile-location-selector { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; margin-bottom: 1.35rem; }
    .mobile-location-selector label { color: var(--ink-500); font-size: .8rem; font-weight: 750; }
    .mobile-location-selector select { width: 100%; min-height: 42px; padding: .5rem .65rem; color: var(--ink-900); background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; font-weight: 750; }
    .location-hero-content h1 { margin-bottom: .5rem; font-size: 2rem; line-height: 1; letter-spacing: -.06em; }
    .location-hero-content .hero-description { margin-bottom: 0; font-size: .9rem; }
    .location-hero-content .eyebrow { margin-bottom: .5rem; font-size: .65rem; }
    .duty-section-mobile { padding: 1rem 0 2rem; }
    .mobile-list-header { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
    .mobile-list-header .eyebrow { margin-bottom: .2rem; font-size: .63rem; }
    .mobile-list-header h2 { font-size: 1.2rem; letter-spacing: -.035em; }
    .mobile-list-header > p { margin: 0 0 .1rem; color: var(--ink-500); font-size: .7rem; text-align: right; }
    .mobile-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: .65rem; }
    .mobile-action { min-width: 0; min-height: 42px; padding: .45rem .2rem; color: var(--brand-900); background: #fff; border: 1px solid var(--line); border-radius: .65rem; font-size: .72rem; font-weight: 800; text-decoration: none; }
    .mobile-action:hover { color: #fff; background: var(--brand-700); }
    .mobile-feedback { min-height: 1.1rem; margin: 0 0 .55rem; color: var(--ink-500); font-size: .75rem; }
    .pharmacy-list { gap: .55rem; }
    .pharmacy-list-item { position: relative; min-height: 0; padding: 0; overflow: hidden; border-radius: .85rem; }
    .pharmacy-card-link { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .9rem .85rem .35rem; color: inherit; text-decoration: none; }
    .pharmacy-status { padding-top: .25rem; }
    .pharmacy-card h3 { margin: .55rem 0 .1rem; font-size: 1rem; letter-spacing: -.025em; }
    .pharmacy-address { margin-bottom: .4rem; font-size: .82rem; line-height: 1.35; }
    .pharmacy-hours { margin-bottom: .2rem; font-size: .78rem; }
    .pharmacy-notice { margin: .4rem 0; font-size: .75rem; }
    .pharmacy-navigation { color: var(--brand-700); font-size: 1.25rem; }
    .pharmacy-distance { color: var(--ink-500); font-size: .7rem; font-weight: 700; white-space: nowrap; }
    .pharmacy-call { display: block; margin: 0 .85rem .75rem 2.45rem; padding-top: .55rem; color: var(--brand-700); border-top: 1px solid var(--brand-050); font-size: .8rem; font-weight: 800; text-decoration: none; }
    .pharmacy-card-duty { border-width: 1px; }
}
