:root {
    color-scheme: light;
    --ink: #192621;
    --muted: #53625b;
    --paper: #f4f5f1;
    --white: #fff;
    --line: #e0e5dd;
    --green: #174b3b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.4 "Segoe UI", system-ui, sans-serif;
}

.masthead {
    min-height: 76px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.masthead img {
    display: block;
    width: 120px;
    height: 46px;
    object-fit: contain;
}

main {
    flex: 1;
    width: min(728px, calc(100% - 48px));
    margin-inline: auto;
    padding: 56px 0 48px;
}

.directory {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #dce3d9;
    border-radius: 19px;
    background: var(--white);
    box-shadow: 0 12px 32px #223b2a0d, 0 2px 6px #223b2a06;
}

.directory li:first-child .service { border-radius: 18px 18px 0 0; }
.directory li:last-child .service { border-radius: 0 0 18px 18px; }
.directory li:only-child .service { border-radius: 18px; }
.directory li + li { border-top: 1px solid var(--line); }

.service {
    min-height: 87px;
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr) 35px;
    align-items: center;
    gap: 16px;
    padding: 12px 23px;
    color: inherit;
    text-decoration: none;
}

.service.featured {
    background: #e8f1e8;
    box-shadow: inset 4px 0 var(--green);
}

.service[href]:hover { background: #f3f6f1; }
.service.featured[href]:hover { background: #dfece0; }
.service[href]:focus-visible, .masthead a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -3px;
}

.service-icon, .service-arrow {
    display: grid;
    place-items: center;
    border: 1px solid #e7ebe4;
    color: #485c51;
}

.service-icon {
    width: 47px;
    height: 47px;
    border-radius: 11px;
    background: #f0f3ee;
}

.service-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.service-icon svg, .service-arrow svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-arrow svg { width: 18px; height: 18px; }
.featured .service-icon { color: var(--white); background: var(--green); border-color: var(--green); }
.featured .service-arrow { color: var(--green); background: #f6faf5; border-color: #cbdccd; }
.service-label { display: grid; gap: 3px; overflow-wrap: anywhere; }
.service-label strong { font-size: 18px; font-weight: 650; line-height: 1.25; }
.featured strong { color: var(--green); }
.service-label small { font-size: 13px; color: var(--muted); }
.unavailable { color: var(--muted); }
.directory-empty { color: var(--muted); text-align: center; }

footer {
    display: grid;
    min-height: 65px;
    place-items: center;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 540px) {
    .masthead { min-height: 65px; }
    main { width: calc(100% - 36px); padding: 36px 0; }
    .service {
        min-height: 79px;
        grid-template-columns: 42px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 11px 14px;
    }
    .service-icon { width: 42px; height: 42px; }
    .service-arrow { width: 30px; height: 30px; }
    .service-label strong { font-size: 16px; }
    .service-label small { font-size: 12px; }
    footer { min-height: 57px; }
}
