:root {
    --color-bg: #f5f6f3;
    --color-text: #333;
    --color-text-muted: #555;
    --color-brand: #2d401a;
    --color-brand-soft: #3f5c2c;
    --color-accent: #7a9a60;
    --color-accent-soft: #e2ecc8;
    --color-border: #d5ddc8;
    --color-danger: #8b2e2e;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --bp-nav: 800px;
    --bp-dashboard: 800px;
    --focus-ring: 0 0 0 3px rgba(122, 154, 96, 0.55);
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

.nav-toggle:focus-visible,
.nav-dropdown-toggle:focus-visible,
.sidebar-item:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #cfe3b8;
    outline-offset: 3px;
}

.maintenance-banner {
    background: #fff4d6;
    color: #5c4b12;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #e6d59a;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    background: #f5f6f3;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #2d401a;
    color: white;
    position: relative;
    z-index: 2000;
}

.site-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand {
    color: white;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 6px;
    display: block;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.12);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 4px;
}

.site-nav a:hover {
    background: rgba(255,255,255,.12);
}

.site-nav a.active {
    background: #7a9a60;
}

.nav-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: rgba(255,255,255,.35);
    flex-shrink: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: white;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
    background: rgba(255,255,255,.12);
}

.nav-dropdown.is-active .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
    background: #7a9a60;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid #d5ddc8;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    padding: 6px;
    z-index: 2100;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    color: #2d401a;
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #e8efdc;
    color: #2d401a;
}

.landing {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0 40px;
}

.landing-inner {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 36px 40px;
    text-align: left;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.landing-gallery {
    position: relative;
    margin: 0 0 26px;
    overflow: hidden;
}

.landing-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow:
        inset 0 0 16px 8px #fff,
        inset 0 0 32px 16px rgba(255, 255, 255, .35);
}

.landing-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.landing-gallery-item {
    position: relative;
    display: block;
    margin: 0;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #e8efe0;
}

.landing-gallery-item img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    border: 0;
}

.landing-gallery-credit {
    margin: 6px 2px 0;
    text-align: right;
    font-size: 12px;
    color: #8a9580;
}

.landing-kicker {
    margin: 0 0 10px;
    color: #7a9a60;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.landing h1 {
    margin: 0 0 18px;
    color: #2d401a;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.25;
}

.landing h2 {
    margin: 22px 0 10px;
    color: #2d401a;
    font-size: 1.15rem;
}

.landing p {
    margin: 0 0 14px;
    color: #3d4d32;
    font-size: 1.05rem;
    line-height: 1.55;
}

.landing-list {
    margin: 0 0 18px;
    padding-left: 1.2rem;
    color: #3d4d32;
    font-size: 1.05rem;
    line-height: 1.55;
}

.landing-list li {
    margin-bottom: 8px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.landing-inner a:not(.primary-button):not(.secondary-button) {
    color: #3f5c2c;
    font-weight: 700;
}

.landing-inner a:not(.primary-button):not(.secondary-button):hover {
    color: #2d401a;
}

.landing-about {
    padding: 28px 0 40px;
}

.landing-about-inner {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 44px;
    text-align: left;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.landing-about-inner a:not(.primary-button):not(.secondary-button) {
    color: #3f5c2c;
    font-weight: 700;
}

.landing-about-inner a:not(.primary-button):not(.secondary-button):hover {
    color: #2d401a;
}

.landing-about-inner .primary-button {
    color: #fff;
}

.landing-about-inner .primary-button:hover {
    color: #fff;
}

.landing-list-nested {
    margin-top: 10px;
    margin-bottom: 4px;
}

.site-main {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-main:has(.dashboard) {
    height: calc(100dvh - 64px - 48px);
    max-height: calc(100dvh - 64px - 48px);
    box-sizing: border-box;
}

.site-footer {
    flex-shrink: 0;
    background: #e8ebe3;
    border-top: 1px solid #d5dcc8;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-footer a {
    color: #3f5c2c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer a:hover {
    color: #2d401a;
}

.dashboard {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.sidebar {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sidebar-heading {
    background: #dce7be;
    padding: 17px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-heading strong {
    display: block;
    color: #2d401a;
    font-size: 17px;
}

.sidebar-heading span {
    display: block;
    margin-top: 3px;
    color: #536342;
    font-size: 13px;
}

.search-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: #2d401a;
    font-size: 24px;
    cursor: pointer;
}

.search-box {
    display: none;
    padding: 10px 12px;
    background: #f7f8f5;
    border-bottom: 1px solid #e2e2e2;
}

.search-box.open { display: block; }

.search-box input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 10px;
    font: inherit;
}

.sidebar-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
}

.sidebar-tab {
    border: 0;
    background: #fafafa;
    padding: 13px 10px;
    cursor: pointer;
    color: #555;
    font-weight: 700;
}

.sidebar-tab.active {
    background: #7a9a60;
    color: white;
}

.calendar-page {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 28px 24px 32px;
}

.calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 22px;
    align-items: flex-end;
}

.calendar-page h1 {
    margin: 0 0 6px;
    color: #2d401a;
}

.calendar-lead {
    margin: 0;
    color: #536342;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #c5d4b0;
    background: #f5f8ef;
    color: #2d401a;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
}

.calendar-nav-btn:hover {
    background: #e4efd4;
}

.calendar-month-title {
    margin: 0;
    min-width: 11rem;
    text-align: center;
    color: #2d401a;
    font-size: 1.25rem;
    text-transform: capitalize;
}

.calendar-today-link {
    margin-left: 4px;
    color: #4f6f38;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.calendar-today-link:hover {
    text-decoration: underline;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
    padding: 8px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #536342;
    border-bottom: 1px solid #dce7be;
}

.calendar-day {
    min-height: 110px;
    border: 1px solid #ececec;
    padding: 8px;
    background: #fcfdfb;
}

.calendar-day.is-outside {
    background: #f3f3f3;
    min-height: 80px;
}

.calendar-day.is-past-day {
    background: #f0f0f0;
}

.calendar-day.is-past-day .calendar-day-num {
    color: #9a9a9a;
}

.calendar-day.is-today {
    background: #eef5e3;
    box-shadow: inset 0 0 0 2px #7a9a60;
}

.calendar-day.is-today .calendar-day-num {
    color: #2d401a;
    font-weight: 800;
}

.calendar-day-num {
    font-size: 13px;
    font-weight: 700;
    color: #2d401a;
    margin-bottom: 6px;
}

.calendar-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-event {
    display: block;
    padding: 4px 6px;
    border-radius: 4px;
    background: #7a9a60;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.3;
}

.calendar-event:hover {
    background: #66834f;
}

.calendar-event.is-past {
    background: #c4c4c4;
    color: #555;
}

.calendar-event.is-past:hover {
    background: #b0b0b0;
}

.calendar-event-time {
    display: block;
    font-weight: 700;
    opacity: .95;
}

.calendar-event-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-undated {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e2e2e2;
}

.calendar-undated h3 {
    margin: 0 0 10px;
    color: #2d401a;
}

.calendar-undated ul {
    margin: 0;
    padding-left: 1.2rem;
}

.calendar-undated a {
    color: #4f6f38;
}

.calendar-agenda {
    display: none;
}

.calendar-agenda-empty {
    margin: 0;
    color: #66755a;
}

.calendar-agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.calendar-agenda-day ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.calendar-agenda-date {
    margin: 0;
    color: #2d401a;
    font-size: 1rem;
}

.calendar-agenda-day.is-past .calendar-agenda-date {
    color: #8a9580;
}

.calendar-agenda-link {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    padding: 12px 14px;
    border: 1px solid #d5ddc8;
    border-radius: 8px;
    background: #f7faf2;
    text-decoration: none;
    color: #2d401a;
    font-weight: 700;
}

.calendar-agenda-link:hover {
    background: #eef3e6;
}

.calendar-agenda-link.is-past {
    background: #f3f3f3;
    border-color: #e0e0e0;
    color: var(--color-text-muted);
}

.calendar-agenda-time {
    color: #4f6f38;
    font-variant-numeric: tabular-nums;
}

.calendar-agenda-link.is-past .calendar-agenda-time {
    color: #999;
}

.calendar-agenda-place {
    flex: 1 1 auto;
}

.calendar-agenda-name {
    width: 100%;
    font-weight: 600;
    color: #66755a;
    font-size: 14px;
}

.sidebar-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-item {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eee;
    background: white;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    font: inherit;
}

.sidebar-item:hover,
.sidebar-item:focus-visible {
    background: #f0f4ec;
}

.sidebar-item.active {
    background: #e2ecc8;
}

.sidebar-item span {
    display: block;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
}

.sidebar-item small {
    display: block;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-size: 14px;
}

.content-area {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.welcome-panel,
.location-panel {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.welcome-panel {
    display: block;
}

.location-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
    align-items: stretch;
}

.location-panel.no-docs {
    grid-template-columns: 1fr;
}

.location-copy {
    padding: 24px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
}

.location-docs {
    margin-top: 0;
    border: 0;
    border-left: 1px solid #ddd;
    border-radius: 0;
    background: #f7f9f3;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.docs-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.docs-panel-head h3 {
    margin: 0;
    color: #2d401a;
    font-size: 16px;
}

.location-copy h1 {
    margin: 0 0 10px;
    color: #2d401a;
}

.welcome-map,
#spot-map {
    min-height: 0;
    width: 100%;
    height: 100%;
}

.docs-open-button {
    display: inline-block;
    align-self: flex-start;
    background: #7a9a60;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 14px;
}

.docs-open-button:hover {
    background: #66834f;
}

.docs-open-button.is-disabled {
    pointer-events: none;
    opacity: .45;
}

.docs-embed-wrap {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    min-height: 0;
}

.docs-embed-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

.docs-empty {
    color: #66755a;
    margin: 0;
    line-height: 1.5;
}

.panel-kicker {
    color: #7a9a60;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.panel-title-row {
    margin-bottom: 0;
}

.panel-title-row h1 {
    margin: 0;
}

.inventory-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.description-block {
    margin-top: 26px;
}

.description-block h3 {
    margin: 0 0 8px;
    color: #2d401a;
    font-size: 16px;
}

.description-block p {
    line-height: 1.65;
    white-space: pre-line;
}

.spot-map-wrap {
    position: relative;
    margin-top: 28px;
    min-height: 360px;
    height: 360px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.spot-map-wrap #spot-map {
    min-height: 360px;
    height: 100%;
}

.spot-map-wrap:fullscreen,
.spot-map-wrap.is-fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
}

.spot-map-wrap:fullscreen #spot-map,
.spot-map-wrap.is-fullscreen #spot-map {
    min-height: 100%;
    height: 100%;
}

.map-actions {
    position: absolute;
    z-index: 1000;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-action {
    border: 0;
    border-radius: 5px;
    background: white;
    color: #333;
    padding: 11px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.map-action:hover {
    color: #7a9a60;
}

a.map-action[hidden] {
    display: none !important;
}

.geotiff-download-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 14px;
}

.geotiff-download-button {
    display: inline-block;
    background: #536342;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 14px;
}

.geotiff-download-button:hover {
    background: #435334;
}

.geotiff-download-button.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.geotiff-download-meta {
    color: #66755a;
    font-size: 14px;
}

.parking-marker-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.parking-marker-icon {
    background: transparent;
    border: 0;
}

.parking-popup-detail {
    font-size: 13px;
    color: #536342;
}

.map-popup-link {
    display: block;
    color: inherit;
    text-decoration: none;
    min-width: 140px;
}

.map-popup-link:hover .map-popup-cta {
    text-decoration: underline;
}

.map-popup-cta {
    display: block;
    margin-top: 8px;
    color: #4f6d3a;
    font-weight: 700;
    font-size: 13px;
}

.inventory-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-card {
    background: #e2ecc8;
    padding: 13px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.inventory-card.selected {
    outline: 2px solid #7a9a60;
}

.inventory-card > div strong,
.inventory-card > div span {
    display: block;
}

.inventory-card > div span {
    margin-top: 3px;
    color: #536342;
    font-size: 14px;
}

.inventory-card .inventory-signup-count {
    color: #3f5c2c;
    font-weight: 600;
}

.inventory-card .inventory-notes {
    margin: 8px 0 0;
    color: #3f4a35;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.primary-small,
.primary-button {
    display: inline-block;
    background: #7a9a60;
    color: white;
    border: 0;
    border-radius: 4px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.primary-small:hover,
.primary-button:hover {
    background: #66834f;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: #2d401a;
    border: 1px solid #7a9a60;
    border-radius: 4px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.secondary-button:hover {
    background: rgba(122, 154, 96, .12);
}

.account-summary {
    background: #f3f6ee;
    border: 1px solid #d7e2c8;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 8px 0 4px;
}

.account-summary p {
    margin: 0;
}

.account-summary-meta {
    margin-top: 4px !important;
    color: #536342;
    font-size: 14px;
}

.label-optional {
    font-weight: 400;
    color: #666;
}

.form-footer-link {
    margin: 22px 0 0;
    color: #536342;
}

.form-inline-link {
    margin: 10px 0 18px;
    color: #536342;
}

.form-inline-link a {
    font-weight: 600;
    color: #2d401a;
}

.manage-back-link {
    margin: 0 0 18px;
    color: #536342;
}

.manage-back-link a {
    font-weight: 700;
    color: #2d401a;
    text-decoration: none;
}

.manage-back-link a:hover {
    text-decoration: underline;
}

.profile-danger-zone {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5c4c4;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.profile-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #d5deca;
    border-radius: 6px;
    text-decoration: none;
    color: #536342;
    font-weight: 700;
    background: #f7f9f3;
}

.profile-tabs a:hover {
    border-color: #7a9a60;
    color: #2d401a;
}

.profile-tabs a.active {
    background: #e2ecc8;
    border-color: #7a9a60;
    color: #2d401a;
}

.profile-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 5px;
    border-radius: 999px;
    background: #2d401a;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.profile-signup-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.profile-signup-item {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d7e0c8;
    border-radius: 8px;
    background: #f7f9f3;
}

.profile-signup-item.is-past {
    opacity: 0.72;
    background: #f3f3f1;
    border-color: #ddd;
}

.profile-signup-item h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #2d401a;
}

.profile-signup-meta,
.profile-signup-car {
    margin: 0 0 6px;
    color: #536342;
    line-height: 1.45;
}

.profile-signup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.profile-signup-actions .primary-button {
    margin: 0;
}

.text-button {
    color: #2d401a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 720px) {
    .profile-signup-item {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .profile-signup-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.profile-notifications {
    margin-top: 8px;
}

.fieldset-hint {
    margin: 0 0 12px;
    color: #536342;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 400;
}

.profile-danger-zone h2 {
    margin: 0 0 10px;
    color: #8b3a3a;
    font-size: 1.15rem;
}

.profile-danger-zone p {
    margin: 0 0 14px;
    color: #5c4545;
    line-height: 1.5;
}

.profile-delete-form {
    display: grid;
    gap: 12px;
    max-width: 420px;
}

.profile-delete-form .danger-button {
    justify-self: start;
}

.form-page {
    display: flex;
    justify-content: center;
    padding: 35px 0;
}

.form-card {
    width: 100%;
    max-width: 650px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.form-card-wide {
    max-width: 760px;
}

.register-intro p {
    margin: 0 0 12px;
    color: #3d4d32;
    line-height: 1.55;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.admin-interests {
    max-width: 280px;
    font-size: 13px;
}

.form-card h1 {
    color: #2d401a;
    margin-top: 0;
}

.form-card h2 {
    margin-bottom: 4px;
}

.form-date {
    color: #666;
}

.form-card label:not(.radio-row):not(.checkbox-row),
.form-card legend {
    display: block;
    font-weight: 700;
    margin: 18px 0 7px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card select,
.form-card textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font: inherit;
}

.form-card .primary-button,
.form-card .secondary-button {
    margin-top: 22px;
}

.form-card textarea {
    min-height: 110px;
    resize: vertical;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px 16px;
    margin-top: 22px;
}

.radio-row,
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 12px 0;
    font-weight: 400 !important;
}

.conditional-field {
    margin-left: 25px;
    display: none;
}

.conditional-field label {
    margin-top: 5px !important;
}

.carpool-claim-box {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d7e0c8;
    border-radius: 6px;
    background: #f6f9f1;
}

.driver-contact-box {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #c5d6b0;
    border-radius: 6px;
    background: #eef5e4;
}

.driver-contact-box p {
    margin: 0 0 6px;
    color: #2d401a;
}

.driver-contact-box p:last-child {
    margin-bottom: 0;
}

.driver-contact-box a {
    color: #2d401a;
    font-weight: 700;
}

.trip-contact-box {
    margin: 12px 0 8px;
    padding: 12px 14px;
    background: #f7f9f4;
    border: 1px solid #d5ddc8;
}

.trip-contact-box > p {
    margin: 0 0 8px;
}

.trip-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.trip-contact-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    align-items: baseline;
    font-size: 15px;
}

.trip-contact-list a {
    color: #2d401a;
    font-weight: 700;
    text-decoration: none;
}

.trip-contact-list a:hover {
    text-decoration: underline;
}

.trip-contact-muted {
    color: #666;
    font-size: 14px;
}

.profile-section-title {
    margin: 28px 0 8px;
    font-size: 22px;
    color: #2d401a;
}

.mail-log-tail {
    margin-top: 12px;
    padding: 12px;
    background: #f4f6f0;
    border: 1px solid #dde5d0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    overflow-x: auto;
    white-space: pre-wrap;
}

.carpool-claim-intro {
    margin: 0 0 10px;
    color: #2d401a;
    font-weight: 600;
    font-size: 14px;
}

.carpool-claim-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #66755a;
}

.carpool-driver-option span strong {
    color: #2d401a;
}

.carpool-driver-depart {
    color: #536342;
    font-weight: 500;
}

.carpool-riders {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #536342;
    font-size: 13px;
}

.carpool-booked {
    color: #2d401a !important;
    font-weight: 600;
}

.carpool-waitlist {
    color: #8a6d1d !important;
}

.carpool-stale {
    color: #8b2e2e;
    font-weight: 600;
}

.carpool-availability {
    color: #2d401a;
    font-weight: 600;
}

.checkbox-row {
    margin-top: 22px;
}

.error-message,
.success-message {
    padding: 10px 12px;
    border-radius: 4px;
    margin: 8px 0;
}

.error-message {
    background: #f8e3e3;
    color: #8b2e2e;
}

.success-message {
    background: #e2ecc8;
    color: #2d401a;
}

.info-message {
    padding: 10px 12px;
    border-radius: 4px;
    margin: 8px 0;
    background: #eef4fb;
    color: #2f4a66;
}

.danger-button,
.danger-small {
    border: 0;
    background: #a64545;
    color: white;
    border-radius: 4px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.form-card hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 28px 0;
}

.admin-dashboard {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 28px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.admin-top h1 { margin: 0; color: #2d401a; }

.admin-top a { color: #7a9a60; font-weight: 700; }

.admin-back-button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #c5d4b0;
    background: white;
    color: #2d401a !important;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
}

.admin-back-button:hover {
    background: #e2ecc8;
    border-color: #7a9a60;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.stat-card {
    background: #e2ecc8;
    padding: 18px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background .15s ease;
}

a.stat-card:hover {
    background: #d3e0b0;
}

.stat-card strong {
    display: block;
    color: #2d401a;
    font-size: 27px;
}

.stat-card span { color: #536342; }

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.admin-section {
    margin-top: 30px;
}

.admin-subnav {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-subnav a {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #536342;
    border: 1px solid #ddd;
    font-weight: 700;
}

.admin-subnav a.active {
    background: #e2ecc8;
    border-color: #7a9a60;
    color: #2d401a;
}

.admin-section h2 {
    color: #2d401a;
}

.admin-edit {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 8px;
}

.admin-edit summary {
    padding: 13px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-edit form {
    border-top: 1px solid #eee;
    padding: 16px;
}

.admin-edit label {
    display: block;
    font-weight: 700;
    margin: 10px 0;
}

.admin-edit input,
.admin-edit textarea,
.admin-edit select,
.filter-form select {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    font: inherit;
}

.admin-edit textarea { min-height: 90px; }

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid #eee;
}

.admin-row-actions form {
    border: 0;
    padding: 0;
}

.admin-inline-danger {
    border-top: 1px solid #eee;
    margin-top: 12px;
}

.admin-locations-page {
    padding-bottom: 12px;
}

.admin-locations-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    min-height: 70vh;
}

.admin-location-list {
    background: #f8faf5;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.admin-location-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #ddd;
    background: white;
}

.admin-location-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.admin-location-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #e8ebe3;
    text-decoration: none;
    color: inherit;
}

.admin-location-item:hover {
    background: #eef3e4;
}

.admin-location-item.active {
    background: #e2ecc8;
}

.admin-location-item span {
    display: block;
    font-weight: 700;
    color: #2d401a;
}

.admin-location-item small {
    display: block;
    color: #66755a;
    margin-top: 3px;
}

.admin-location-item .status-pill {
    margin-top: 6px;
}

.admin-location-editor {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 22px;
    min-width: 0;
}

.admin-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-editor-header h2 {
    margin: 0;
    color: #2d401a;
}

.admin-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 20px;
}

.admin-editor-fields label {
    display: block;
    font-weight: 700;
    margin: 10px 0;
}

.admin-editor-fields input,
.admin-editor-fields textarea,
.admin-editor-fields select,
.admin-inventory-card input,
.admin-inventory-card textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    font: inherit;
}

.admin-editor-fields textarea,
.admin-inventory-card textarea {
    min-height: 90px;
}

.admin-coord-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-editor-actions {
    margin-top: 16px;
}

.admin-notice,
.admin-error {
    padding: 10px 12px;
    border-radius: 4px;
    margin: 0 0 12px;
}

.admin-notice {
    background: #e2ecc8;
    color: #2d401a;
}

.admin-error {
    background: #f8e3e3;
    color: #8b2e2e;
}

.admin-geotiff-panel {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.admin-geotiff-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.admin-geotiff-head h3 {
    margin: 0;
    color: #2d401a;
}

.admin-geotiff-head span {
    color: #66755a;
    font-size: 13px;
}

.admin-geotiff-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #d7e2c8;
    border-radius: 6px;
    background: #f7f9f3;
}

.admin-geotiff-current a {
    color: #536342;
    font-weight: 700;
}

.admin-geotiff-empty {
    margin: 0 0 12px;
    color: #66755a;
}

.admin-geotiff-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-geotiff-file-label {
    flex: 1 1 240px;
    font-weight: 700;
}

.admin-geotiff-file-label input {
    display: block;
    width: 100%;
    margin-top: 5px;
}

.admin-map-picker-wrap {
    position: sticky;
    top: 16px;
    align-self: start;
}

.admin-map-hint {
    font-size: 13px;
    color: #66755a;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-map-picker {
    width: 100%;
    height: 420px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #eee;
}

.admin-inventories {
    margin-top: 28px;
    padding: 18px;
    background: #f4f7f0;
    border: 1px solid #c9d6bc;
    border-radius: 10px;
}

.admin-inventories-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d5ddc8;
}

.admin-inventories-head h3 {
    margin: 0;
    color: #2d401a;
    font-size: 1.15rem;
}

.admin-inventories-head span {
    color: #66755a;
    font-size: 14px;
    font-weight: 600;
}

.admin-inventory-card {
    border: 1px solid #cfd9c4;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    overflow: hidden;
}

.admin-inventory-card summary {
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
    color: #2d401a;
    list-style: none;
    transition: background-color .15s ease;
}

.admin-inventory-card summary::-webkit-details-marker {
    display: none;
}

.admin-inventory-card summary::before {
    content: "▸";
    display: inline-block;
    width: 1.1em;
    color: #7a9a60;
    transition: transform .15s ease;
}

.admin-inventory-card[open] summary::before {
    transform: rotate(90deg);
}

.admin-inventory-card summary:hover {
    background: #eef3e6;
}

.admin-inventory-card form {
    border-top: 1px solid #e5ebd9;
    padding: 14px;
}

.admin-inventory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-inventory-card label {
    display: block;
    font-weight: 700;
    margin: 10px 0;
}

.admin-inventory-new {
    border-style: dashed;
    border-color: #7a9a60;
    background: #fbfdf8;
}

.admin-inventory-new summary {
    color: #3f5c2c;
    font-weight: 800;
}

.admin-inventory-new summary:hover {
    background: #e8f0de;
}

.admin-inventory-new summary::before {
    content: "+";
    font-weight: 800;
    color: #4f6d3a;
}

.admin-inventory-new[open] summary::before {
    transform: none;
    content: "−";
}

.admin-trash-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.admin-trash-row strong {
    display: block;
    color: #2d401a;
}

.admin-trash-row span {
    color: #66755a;
    font-size: 14px;
}

.admin-trash-row .admin-row-actions {
    padding: 0;
    border: 0;
}

.admin-empty-editor {
    text-align: center;
    padding: 60px 20px;
}

.admin-empty-editor h2 {
    color: #2d401a;
}

.status-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.status-pill.published {
    background: #e2ecc8;
    color: #2d401a;
}

.status-pill.draft {
    background: #f3e4b8;
    color: #6a5314;
}

.status-pill.muted {
    background: #eee;
    color: #666;
}

.danger-button {
    background: #8b3a3a;
    color: white;
    border: 0;
    border-radius: 4px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.danger-button:hover {
    background: #6f2d2d;
}

.admin-table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.admin-table th {
    background: #e2ecc8;
    color: #2d401a;
}

.admin-members-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-export-button {
    white-space: nowrap;
}

.admin-members-search {
    display: block;
    max-width: 420px;
}

.admin-members-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d4b4;
    border-radius: 4px;
    font: inherit;
}

.admin-members-filtered {
    color: #536342;
}

.admin-members-table-wrap {
    margin-bottom: 24px;
}

.admin-members-status {
    margin: 12px 0 0;
    font-size: 14px;
    color: #66755a;
}

.admin-member-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 9.5rem;
}

.admin-member-action-form {
    margin: 0;
}

.admin-member-action {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.admin-members-page .admin-notice,
.admin-members-page .admin-error {
    margin-bottom: 14px;
}

.admin-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.admin-sort::after {
    content: '↕';
    font-size: 11px;
    opacity: 0.35;
}

.admin-sort.is-active::after {
    opacity: 1;
}

.admin-sort.is-active[aria-sort='ascending']::after {
    content: '↑';
}

.admin-sort.is-active[aria-sort='descending']::after {
    content: '↓';
}

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

.danger-small {
    padding: 6px 9px;
    font-size: 12px;
}

.filter-form {
    max-width: 500px;
    margin-bottom: 20px;
}

.filter-form label {
    font-weight: 700;
}

.carpool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.person-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 8px;
}

.person-card strong,
.person-card span,
.person-card small {
    display: block;
}

.person-card span { margin-top: 4px; }
.person-card small { color: var(--color-text-muted); margin-top: 5px; }

.person-card-ondemand {
    border-style: dashed;
}

.carpool-ondemand {
    color: var(--color-text-muted);
    font-style: italic;
}

.carpool-missing-depart {
    color: #a15c00;
}

.carpool-alert,
.carpool-hint {
    margin-bottom: 20px;
}

.carpool-alert ul,
.carpool-hint .carpool-riders {
    margin: 8px 0 0;
}

.field-hint {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.carpool-assign-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.carpool-assign-form select {
    flex: 1 1 180px;
    min-width: 0;
}

.hidden { display: none !important; }

@media (max-width: 800px) {
    .dashboard,
    .location-panel,
    .welcome-panel,
    .admin-locations-layout,
    .admin-editor-grid,
    .admin-inventory-grid,
    .admin-coord-row {
        grid-template-columns: 1fr;
    }

    .admin-location-items {
        max-height: 260px;
    }

    .admin-map-picker-wrap {
        position: static;
    }

    .admin-map-picker {
        height: 300px;
    }

    .admin-trash-row {
        flex-wrap: wrap;
    }

    .admin-subnav {
        flex-wrap: wrap;
    }

    .site-main:has(.dashboard) {
        height: auto;
        max-height: none;
    }

    .dashboard {
        height: auto;
        flex: none;
    }

    .sidebar {
        min-height: auto;
        max-height: none;
    }

    .sidebar-list {
        max-height: 330px;
        overflow-y: auto;
        flex: none;
    }

    .calendar-page {
        padding: 18px 12px 24px;
    }

    .calendar-day {
        min-height: 88px;
        padding: 5px;
    }

    .calendar-event-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .welcome-panel,
    .location-panel {
        flex: none;
        height: auto;
        min-height: auto;
    }

    .welcome-map {
        min-height: 320px;
        height: 320px;
    }

    .location-docs {
        border-left: 0;
        border-top: 1px solid #ddd;
        min-height: 320px;
        height: auto;
    }

    .docs-embed-wrap,
    .docs-embed-wrap iframe {
        min-height: 320px;
    }

    .spot-map-wrap,
    .spot-map-wrap #spot-map {
        min-height: 280px;
        height: 280px;
    }

    .map-actions {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .map-action {
        padding: 10px 12px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carpool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .site-header-inner {
        flex-wrap: nowrap;
        padding: 10px 14px;
        gap: 10px;
    }

    .brand {
        font-size: 17px;
        line-height: 1.2;
        flex: 1 1 auto;
    }

    .brand-mark {
        width: 24px;
        height: 24px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 0 6px;
        border-top: 1px solid rgba(255,255,255,.15);
    }

    .site-header.is-nav-open .site-header-inner {
        flex-wrap: wrap;
    }

    .site-header.is-nav-open .site-nav {
        display: flex;
    }

    .site-nav a,
    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 6px 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        background: rgba(0,0,0,.15);
        margin-top: 4px;
        padding: 4px;
        min-width: 0;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        color: #fff;
        padding: 11px 14px;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a.active {
        background: rgba(255,255,255,.14);
        color: #fff;
    }

    .calendar-grid {
        display: none;
    }

    .calendar-agenda {
        display: block;
    }

    .calendar-nav {
        flex-wrap: wrap;
        width: 100%;
    }

    .calendar-month-title {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: clip;
    }

    .site-main {
        padding: 12px;
        width: 100%;
    }

    .landing {
        padding: 16px 0 28px;
    }

    .landing-inner,
    .landing-about-inner {
        width: 100%;
        padding: 20px 16px 28px;
    }

    .landing-gallery-grid {
        gap: 6px;
    }

    .landing-about {
        padding: 12px 0 24px;
    }

    .landing-actions {
        flex-direction: column;
    }

    .landing-actions .primary-button,
    .landing-actions .secondary-button {
        width: 100%;
        text-align: center;
    }

    .location-copy { padding: 16px; }

    .inventory-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard,
    .form-card,
    .form-page {
        padding: 16px 12px;
    }

    .form-card {
        width: 100%;
        max-width: 100%;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-editor-actions,
    .landing-actions {
        gap: 10px;
    }

    .spot-map-wrap:fullscreen,
    .spot-map-wrap.is-fullscreen {
        width: 100%;
        max-width: 100%;
    }
}


.admin-field-block {
    margin: 12px 0 16px;
}

.admin-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d401a;
}

.coord-picker {
    position: relative;
}

.coord-picker-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin-bottom: 8px;
}

.coord-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 10px;
    background: #eef5e4;
    border: 1px solid #c5d6b0;
    border-radius: 6px;
    font-size: 14px;
}

.coord-chip-remove {
    border: 0;
    background: transparent;
    color: #2d401a;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

.coord-picker-search {
    width: 100%;
    box-sizing: border-box;
}

.coord-picker-results {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c5d6b0;
    border-radius: 6px;
    max-height: 220px;
    overflow: auto;
    box-shadow: 0 8px 20px rgba(45, 64, 26, 0.12);
}

.coord-picker-results li {
    margin: 0;
    border-bottom: 1px solid #e7eedc;
}

.coord-picker-results li:last-child {
    border-bottom: 0;
}

.coord-picker-option {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    cursor: pointer;
    display: grid;
    gap: 2px;
}

.coord-picker-option:hover,
.coord-picker-option:focus-visible {
    background: #f0f4ec;
}

.coord-picker-option strong {
    color: #2d401a;
}

.coord-picker-option span {
    color: #555;
    font-size: 13px;
}

.coord-picker-empty {
    padding: 10px 12px;
    color: #666;
    font-size: 14px;
}
