/* Lanterne civique — vanilla port of the production design system. */
:root {
    --green: #087d63;
    --ink: #123d34;
    --night: #295c74;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: #f7fbf9;
    color: var(--ink);
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    text-rendering: optimizeLegibility
}

button,
input {
    font: inherit
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent
}

button {
    border: 0;
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(8, 125, 99, .36);
    outline-offset: 3px
}

.icon-sprite {
    display: none
}

.icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle
}

.icon-small {
    width: .95rem;
    height: .95rem
}

.icon-tiny {
    width: .8rem;
    height: .8rem
}

.container {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto
}

h1,
h2,
h3 {
    font-family: Manrope, ui-sans-serif, system-ui, sans-serif
}

.app-shell {
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 16% 12%, rgba(174, 229, 209, .48), transparent 31rem), radial-gradient(circle at 87% 4%, rgba(196, 222, 235, .55), transparent 28rem), #f7fbf9
}

.app-shell.night {
    background: radial-gradient(circle at 12% 13%, rgba(109, 180, 214, .32), transparent 28rem), radial-gradient(circle at 86% 7%, rgba(194, 220, 244, .64), transparent 30rem), linear-gradient(180deg, #eef7fb 0%, #f6fbfc 48%, #edf7f8 100%)
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    background: rgba(247, 251, 249, .86);
    backdrop-filter: blur(24px)
}

.night .site-header {
    border-color: rgba(124, 172, 200, .32);
    background: rgba(239, 248, 252, .88)
}

.header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem
}

.brand-logo {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(115, 39, 34, .14))
}

.brand-copy {
    display: grid;
    min-width: 0;
    gap: 2px
}

.brand-copy strong {
    overflow: hidden;
    color: #020617;
    font-family: Manrope;
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-overflow: ellipsis;
    white-space: nowrap
}

.brand-copy small {
    font-size: .75rem;
    font-weight: 600;
    color: #047857
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .35rem
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    padding: 2px
}

.language-toggle>.icon {
    margin-inline: 4px;
    color: #047857
}

.language-toggle button {
    border-radius: 8px;
    background: transparent;
    padding: .25rem .5rem;
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    transition: all .16s var(--ease-out)
}

.language-toggle button:hover {
    background: #f1f5f9
}

.language-toggle button.is-active {
    background: #047857;
    color: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .16)
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 16px;
    background: transparent;
    color: #475569;
    transition: all .16s var(--ease-out)
}

.icon-button:hover {
    background: #fff;
    color: #065f46
}

.icon-button:active,
.shift-button:active,
.date-pill:active,
.today-button:active {
    transform: scale(.95)
}

/* Hero and finder */
.hero-section {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid rgba(6, 55, 42, .06);
    padding: 3rem 0;
    background-image: linear-gradient(112deg, rgba(247, 251, 249, .98) 2%, rgba(247, 251, 249, .89) 50%, rgba(247, 251, 249, .47)), url("assets/hero.png");
    background-position: center;
    background-size: cover
}

.hero-section::before {
    position: absolute;
    z-index: -1;
    bottom: 1.5rem;
    left: -3.5rem;
    width: 15rem;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(51, 172, 135, .18);
    content: "";
    filter: blur(16px)
}

.night .hero-section {
    background-image: radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .72) 0 .14rem, transparent .16rem), radial-gradient(circle at 88% 42%, rgba(129, 197, 222, .34) 0 .1rem, transparent .13rem), radial-gradient(circle at 61% 11%, rgba(255, 255, 255, .68) 0 .1rem, transparent .13rem), linear-gradient(112deg, rgba(238, 248, 252, .99) 3%, rgba(239, 248, 252, .92) 51%, rgba(225, 242, 249, .68) 100%), url("assets/hero.png")
}

.night .hero-section::before {
    background: rgba(74, 144, 186, .22)
}

.hero-layout {
    display: grid;
    align-items: start;
    gap: 1.5rem
}

.hero-copy {
    padding-top: .25rem
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: .42rem;
    margin: 0;
    color: #087d63;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase
}

.night .eyebrow {
    color: #245f7b
}

.hero-copy h1 {
    max-width: 42rem;
    margin: .75rem 0 0;
    color: #020617;
    font-family: Manrope;
    font-size: clamp(2.05rem, 5vw, 4.15rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.06em;
    text-wrap: balance
}

.hero-description {
    max-width: 36rem;
    margin: .95rem 0 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid #d1fae5;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    padding: .45rem .7rem;
    color: #064e3b;
    font-size: .84rem;
    font-weight: 600;
    transition: all .16s var(--ease-out)
}

.source-badge:hover {
    border-color: #6ee7b7;
    background: #ecfdf5
}

.muted-badge {
    border-color: #e2e8f0;
    background: rgba(255, 255, 255, .65);
    color: #475569
}

.finder-panel {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 32px;
    background: rgba(255, 255, 255, .77);
    padding: 1.25rem;
    box-shadow: 0 28px 72px rgba(26, 71, 59, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(24px)
}

.night .finder-panel {
    border-color: rgba(255, 255, 255, .96);
    background: rgba(248, 252, 254, .82);
    box-shadow: 0 28px 72px rgba(39, 90, 117, .16), inset 0 1px 0 rgba(255, 255, 255, .94)
}

.night .finder-panel::after {
    position: absolute;
    z-index: -1;
    right: -5rem;
    bottom: -6rem;
    width: 16rem;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(118, 196, 224, .26), rgba(118, 196, 224, 0) 68%);
    content: "";
    pointer-events: none
}

.finder-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem
}

.finder-title-row h2 {
    margin: .25rem 0 0;
    color: #020617;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.035em
}

.finder-orb {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    object-fit: contain
}

.shift-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    margin-top: 1rem;
    border: 1px solid rgba(203, 223, 216, .8);
    border-radius: 18px;
    background: rgba(242, 249, 246, .72);
    padding: .32rem
}

.shift-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 14px;
    background: transparent;
    color: #5b766e;
    font-size: .8rem;
    font-weight: 800;
    transition: all .16s var(--ease-out)
}

.shift-button.is-active {
    background: #087d63;
    color: #fff;
    box-shadow: 0 7px 16px rgba(8, 125, 99, .18)
}

.night .shift-button.is-active {
    background: #295c74;
    box-shadow: 0 7px 16px rgba(41, 92, 116, .2)
}

/* Commune and date controls */
.commune-picker {
    position: relative;
    margin-top: 1rem
}

.commune-trigger {
    display: flex;
    width: 100%;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(203, 213, 225, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .85);
    padding: .75rem .85rem;
    color: #123d34;
    transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .16s var(--ease-out)
}

.commune-trigger:hover {
    border-color: rgba(52, 151, 118, .55);
    box-shadow: 0 12px 28px rgba(30, 80, 65, .1)
}

.commune-trigger:active {
    transform: scale(.985)
}

.select-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b
}

.commune-current {
    display: grid;
    gap: 2px;
    text-align: right
}

.commune-current small {
    color: #778b86;
    font-size: .7rem;
    font-weight: 700
}

.commune-current strong {
    color: #123d34;
    font-size: 1rem
}

.search-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #ecfdf5;
    color: #087d63
}

.commune-popover {
    position: absolute;
    z-index: 20;
    inset-inline: 0;
    top: calc(100% + .5rem);
    border: 1px solid #dbe7e3;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    padding: .75rem;
    box-shadow: 0 20px 46px rgba(24, 61, 52, .17);
    animation: pop-in .18s var(--ease-out) both;
    transform-origin: top center
}

.commune-popover input {
    width: 100%;
    border: 1px solid #dae5e2;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    padding: .75rem .85rem;
    color: #1f4940;
    outline: 0
}

.commune-popover input:focus {
    border-color: #54ad90;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(73, 171, 140, .12)
}

.commune-popover-actions {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin: .55rem 0
}

.commune-popover-actions button {
    background: transparent;
    padding: .25rem 0;
    color: #087d63;
    font-size: .78rem;
    font-weight: 800
}

.commune-list {
    display: grid;
    max-height: 210px;
    gap: 3px;
    overflow: auto
}

.commune-option {
    width: 100%;
    border-radius: 12px;
    background: transparent;
    padding: .7rem .75rem;
    color: #244b42;
    text-align: right;
    font-weight: 600
}

.commune-option:hover,
.commune-option.is-selected {
    background: #eaf8f2;
    color: #075c4a
}

.date-section {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .8)
}

.date-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem
}

.date-heading>div>p:last-child {
    margin: .25rem 0 0;
    color: #64748b;
    font-size: .9rem
}

.calendar-control {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce6e2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    color: #087d63;
    transition: all .16s var(--ease-out)
}

.calendar-control:hover {
    border-color: #8cc9b7;
    background: #f6fffb
}

.calendar-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0
}

.night .commune-trigger,
.night .date-pill,
.night .calendar-control {
    border-color: rgba(161, 200, 216, .64);
    background: rgba(255, 255, 255, .8)
}

.date-rail {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: .5rem;
    margin-top: .75rem;
    padding-bottom: .25rem;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth
}

.date-rail::-webkit-scrollbar {
    display: none
}

.date-pill {
    display: grid;
    min-width: 86px;
    flex: 0 0 auto;
    gap: 1px;
    border: 1px solid #dce6e2;
    border-radius: 18px;
    background: rgba(255, 255, 255, .8);
    padding: .7rem .75rem;
    color: #59716b;
    text-align: right;
    transition: all .18s var(--ease-out)
}

.date-pill:hover {
    border-color: #8cc9b7;
    background: #f8fffc;
    transform: translateY(-2px)
}

.date-pill span {
    font-size: .68rem;
    font-weight: 700;
    text-transform: capitalize
}

.date-pill strong {
    color: #244b42;
    font-size: .86rem
}

.date-pill.is-active {
    border-color: #087d63;
    background: #087d63;
    box-shadow: 0 10px 22px rgba(8, 125, 99, .22)
}

.date-pill.is-active span,
.date-pill.is-active strong {
    color: #fff
}

.night .date-pill.is-active {
    border-color: #295c74;
    background: #295c74;
    box-shadow: 0 10px 22px rgba(41, 92, 116, .24)
}

.holiday-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem
}

.holiday-label {
    color: #6d817c;
    font-size: .78rem;
    font-weight: 800
}

.holiday-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem
}

.holiday-pill {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    gap: .3rem;
    border: 1px solid #d9e5e2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    padding: .35rem .68rem;
    color: #46665e;
    font-size: .78rem;
    font-weight: 600;
    transition: all .16s var(--ease-out)
}

.holiday-pill:hover,
.holiday-pill.is-active {
    border-color: #bdded4;
    background: #e9f7f1;
    color: #075c4a
}

.night .holiday-pill {
    border-color: rgba(161, 200, 216, .65);
    background: rgba(245, 251, 254, .86);
    color: #416b7d
}

/* Results and duty cards */
.results-section {
    position: relative;
    isolation: isolate;
    padding: 2.25rem 0
}

.results-section::before,
.results-section::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none
}

.results-section::before {
    top: 15rem;
    left: -9rem;
    width: 28rem;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(149, 225, 198, .32), rgba(149, 225, 198, 0) 68%);
    filter: blur(8px)
}

.results-section::after {
    top: 34rem;
    right: -7rem;
    width: 25rem;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(185, 218, 232, .38), rgba(185, 218, 232, 0) 68%);
    filter: blur(10px)
}

.night .results-section::before {
    background: radial-gradient(circle, rgba(116, 193, 221, .33), rgba(116, 193, 221, 0) 68%)
}

.night .results-section::after {
    background: radial-gradient(circle, rgba(166, 204, 236, .46), rgba(166, 204, 236, 0) 68%)
}

.results-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem
}

.results-heading h2,
.how-layout h2 {
    margin: .25rem 0 0;
    color: #020617;
    font-size: clamp(1.75rem, 3.4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.05em
}

.selected-label {
    margin: .25rem 0 0;
    color: #475569;
    font-size: .9rem;
    font-weight: 500
}

.results-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem
}

.results-meta {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: .38rem;
    border: 1px solid rgba(198, 222, 214, .8);
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    padding: .38rem .62rem;
    color: #417166;
    font-size: .75rem;
    font-weight: 700
}

.results-meta>.icon {
    color: #087d63
}

.results-meta-separator {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #9ebbb3
}

.night .results-meta {
    border-color: rgba(155, 199, 217, .72);
    background: rgba(246, 252, 255, .76);
    color: #3b687c
}

.night .results-meta>.icon {
    color: #295c74
}

.today-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    padding: 0 .75rem;
    color: #475569;
    font-size: .75rem;
    font-weight: 700;
    transition: all .16s var(--ease-out)
}

.today-button:hover {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46
}

.empty-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    border-radius: 12px;
    background: rgba(231, 247, 240, .65);
    padding: .55rem .7rem;
    color: #3f6b60;
    font-size: .8rem;
    line-height: 1.4
}

.night .empty-note {
    background: rgba(225, 240, 247, .74);
    color: #3a6376
}

.result-count {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 1rem 0 0;
    color: #94a3b8;
    font-size: .75rem;
    font-weight: 700
}

.results-grid {
    display: grid;
    max-width: 68rem;
    gap: 1.25rem;
    margin: 1.25rem auto 0
}

.pharmacy-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(213, 225, 221, .82);
    border-radius: 28px;
    background: rgba(255, 255, 255, .72);
    padding: 1.4rem;
    box-shadow: 0 13px 30px rgba(24, 61, 52, .055), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
    transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out)
}

.pharmacy-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    content: ""
}

.pharmacy-card-duty {
    border-color: rgba(62, 159, 127, .58);
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(235, 250, 244, .88));
    box-shadow: 0 22px 50px rgba(22, 111, 83, .16), inset 0 1px 0 #fff
}

.pharmacy-card-duty::before {
    background: linear-gradient(90deg, #087d63, #67c4a5)
}

.pharmacy-card-duty::after {
    position: absolute;
    z-index: -1;
    top: -53px;
    right: -48px;
    width: 150px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(89, 200, 159, .35), rgba(112, 219, 180, 0) 69%);
    content: "";
    filter: blur(4px)
}

.pharmacy-card:hover {
    box-shadow: 0 21px 44px rgba(24, 61, 52, .12);
    transform: translateY(-3px)
}

.pharmacy-card-duty:hover {
    box-shadow: 0 25px 50px rgba(22, 111, 83, .19)
}

.pharmacy-card-night {
    border-color: rgba(67, 122, 150, .46);
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(231, 243, 248, .9));
    box-shadow: 0 22px 50px rgba(37, 92, 116, .14), inset 0 1px 0 #fff
}

.pharmacy-card-night::before {
    background: linear-gradient(90deg, #295c74, #73bad1)
}

.pharmacy-card-night::after {
    background: radial-gradient(circle, rgba(110, 190, 214, .34), rgba(110, 190, 214, 0) 69%)
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem
}

.card-main {
    min-width: 0
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .36rem;
    border-radius: 999px;
    padding: .34rem .6rem;
    font-size: .72rem;
    font-weight: 800
}

.status-duty {
    background: #dff6eb;
    color: #05664f
}

.status-night {
    background: #e1f0f6;
    color: #275c74
}

.pharmacy-card h3 {
    margin: .5rem 0 0;
    color: #020617;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.025em
}

.share-button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #475569;
    transition: all .16s var(--ease-out)
}

.share-button:hover {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #065f46
}

.share-button:active {
    transform: scale(.95)
}

.detail-list {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: .62rem;
    color: #087d63
}

.detail-icon {
    width: 17px;
    height: 17px;
    margin-top: .15rem
}

.detail-row>div {
    min-width: 0
}

.detail-label {
    margin: 0;
    color: #729087;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase
}

.detail-value {
    margin: .1rem 0 0;
    color: #35564d;
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.55
}

.detail-unavailable {
    color: #8a9e99;
    font-size: .82rem
}

.date-label {
    display: flex;
    gap: .4rem;
    margin-top: 1rem;
    border-radius: 16px;
    background: rgba(236, 253, 245, .9);
    padding: .55rem .75rem;
    color: #065f46;
    font-size: .75rem;
    font-weight: 700
}

.date-label>span:first-child {
    color: #059669
}

.pharmacy-card-night .date-label {
    background: #e7f3f8;
    color: #275c74
}

.pharmacy-card-night .date-label>span:first-child {
    color: #295c74
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-top: 1.25rem
}

.card-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    border-radius: 16px;
    font-size: .84rem;
    font-weight: 800;
    transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s var(--ease-out)
}

.call-action {
    background: #087d63;
    color: #fff;
    box-shadow: 0 8px 18px rgba(8, 125, 99, .2)
}

.call-action:hover {
    background: #066b54;
    box-shadow: 0 11px 22px rgba(8, 125, 99, .28)
}

.pharmacy-card-night .call-action {
    background: #295c74
}

.disabled-action {
    border: 1px solid #dfe7e5;
    background: #f2f5f4;
    color: #83918e
}

.map-action {
    border: 1px solid #d6e3df;
    background: #fff;
    color: #1e5548
}

.route-action {
    grid-column: span 2;
    border: 1px solid #d6e3df;
    background: #f8fdfb;
    color: #1e5548
}

.map-action:hover,
.route-action:hover {
    border-color: #addbc9;
    background: #effaf6
}

.card-action:active {
    transform: scale(.97)
}

/* Informational and footer areas */
.how-section {
    border-block: 1px solid rgba(8, 125, 99, .06);
    background: rgba(255, 255, 255, .45);
    padding: 3.5rem 0
}

.how-layout {
    display: grid;
    gap: 1.75rem
}

.how-layout>div>p:last-child {
    max-width: 32rem;
    margin: 1rem 0 0;
    color: #475569;
    line-height: 1.75
}

.steps {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none
}

.steps li {
    border: 1px solid #fff;
    border-radius: 24px;
    background: rgba(255, 255, 255, .75);
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(20, 61, 51, .06)
}

.steps span {
    color: #087d63;
    font-family: Manrope;
    font-size: .875rem;
    font-weight: 800
}

.steps h3 {
    margin: 1rem 0 0;
    color: #020617;
    font-size: 1.1rem
}

.steps p {
    margin: .5rem 0 0;
    color: #475569;
    font-size: .9rem;
    line-height: 1.5
}

.regulation-note {
    border-block: 1px solid rgba(8, 125, 99, .13);
    background: linear-gradient(105deg, rgba(224, 246, 237, .72), rgba(255, 255, 255, .7));
    padding: 2.5rem 0
}

.night .regulation-note {
    border-color: rgba(75, 139, 171, .16);
    background: linear-gradient(105deg, rgba(224, 242, 249, .8), rgba(250, 253, 255, .76))
}

.regulation-grid {
    display: grid;
    max-width: 1120px;
    gap: 1rem;
    margin-inline: auto
}

.regulation-card {
    border: 1px solid rgba(170, 220, 202, .74);
    border-radius: 26px;
    background: rgba(255, 255, 255, .68);
    padding: 1.25rem 1.35rem;
    color: #255d4d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    font-size: .95rem;
    line-height: 1.9;
    text-align: right
}

.regulation-card h3 {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: #295c74;
    font-size: 1rem;
    font-weight: 800
}

.regulation-card p {
    margin: .85rem 0 0
}

.signature {
    border-top: 1px solid rgba(104, 172, 147, .3);
    padding-top: .85rem;
    color: #087d63;
    font-weight: 700
}

.night-note {
    border-color: rgba(123, 182, 208, .62);
    background: linear-gradient(145deg, rgba(247, 252, 254, .86), rgba(226, 243, 249, .76));
    color: #28566b
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-top: 1px solid rgba(226, 232, 240, .8);
    padding: 1.25rem 0 1.75rem;
    color: #64748b;
    font-size: .875rem
}

.site-footer p {
    margin: 0
}

.site-footer p:last-child {
    font-weight: 700
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.reveal {
    animation: rise-in .5s var(--ease-out) both
}

.reveal:nth-child(2) {
    animation-delay: 70ms
}

@media(min-width:640px) {
    .container {
        width: min(100% - 3rem, 1180px)
    }

    .pharmacy-card {
        padding: 1.65rem
    }
}

@media(min-width:1024px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1.07fr) minmax(360px, .93fr);
        gap: 3rem
    }

    .hero-copy {
        padding-top: 2rem
    }

    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .how-layout {
        grid-template-columns: .85fr 1.15fr;
        align-items: center
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .regulation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .site-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between
    }
}

@media(max-width:639px) {
    .container {
        width: calc(100% - 1.5rem)
    }

    .header-inner {
        min-height: 60px
    }

    .brand-logo {
        width: 40px;
        height: 40px
    }

    .brand-copy strong {
        font-size: .78rem
    }

    .brand-copy small {
        font-size: .64rem
    }

    .language-toggle>.icon {
        display: none
    }

    .language-toggle button {
        padding: .25rem .4rem
    }

    .icon-button {
        width: 34px;
        height: 34px
    }

    .hero-section {
        padding: 1.5rem 0 1rem;
        background-position: 57% center
    }

    .hero-section::before {
        bottom: 0;
        left: -5rem;
        width: 12rem
    }

    .hero-copy h1 {
        margin-top: .65rem;
        font-size: 1.95rem;
        line-height: 1.1
    }

    .hero-description {
        margin-top: .75rem;
        font-size: .96rem;
        line-height: 1.6
    }

    .hero-badges {
        margin-top: 1rem
    }

    .source-badge {
        font-size: .72rem
    }

    .finder-panel {
        overflow: hidden;
        border-radius: 28px;
        padding: 1rem;
        box-shadow: 0 18px 42px rgba(26, 71, 59, .1), inset 0 1px 0 rgba(255, 255, 255, .9)
    }

    .finder-orb {
        width: 44px;
        height: 44px
    }

    .shift-button {
        font-size: .71rem
    }

    .commune-trigger {
        min-height: 68px;
        border-radius: 19px;
        padding: .65rem .75rem
    }

    .date-section {
        margin-top: 1rem
    }

    .date-heading>div>p:last-child {
        font-size: .8rem
    }

    .calendar-control {
        width: 44px;
        height: 44px
    }

    .date-rail {
        padding-inline: .1rem;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity
    }

    .date-pill {
        min-width: 74px;
        border-radius: 16px;
        padding: .58rem .55rem;
        scroll-snap-align: start
    }

    .date-pill span {
        font-size: .62rem
    }

    .date-pill strong {
        font-size: .76rem
    }

    .holiday-wrap {
        align-items: flex-start
    }

    .holiday-pill {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        padding: .45rem .65rem
    }

    .results-section {
        padding: 1.75rem 0
    }

    .results-heading {
        align-items: flex-start;
        gap: .8rem
    }

    .results-meta {
        min-height: 40px;
        font-size: .72rem
    }

    .results-grid {
        gap: .9rem
    }

    .pharmacy-card {
        border-radius: 24px;
        padding: 1.1rem
    }

    .pharmacy-card h3 {
        font-size: 1.32rem
    }

    .detail-row {
        gap: .52rem
    }

    .detail-label {
        font-size: .68rem
    }

    .detail-value {
        font-size: .87rem
    }

    .card-action {
        min-height: 46px;
        border-radius: 14px;
        font-size: .82rem
    }

    .how-section {
        padding: 2.5rem 0
    }

    .regulation-note {
        padding: 1.5rem 0
    }

    .regulation-card {
        border-radius: 20px;
        padding: 1rem;
        font-size: .88rem;
        line-height: 1.8
    }

    .regulation-grid {
        grid-template-columns: 1fr;
        gap: .75rem
    }

    .no-print {
        display: none !important
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

@media print {
    body {
        background: #fff;
        color: #000
    }

    .site-header,
    .hero-section,
    .how-section,
    .regulation-note,
    .no-print {
        display: none !important
    }

    .app-shell {
        background: #fff
    }

    .pharmacy-card {
        border: 1px solid #bbb;
        box-shadow: none;
        break-inside: avoid
    }
   
}
