/* Everyday journeys: a calmer community front door. */
:root {
  --bg: #f6f7f2;
  --text: #1b332b;
  --muted: #607068;
  --line: #dce4da;
  --primary: #145c46;
  --primary-dark: #104b39;
  --primary-soft: #eaf3e7;
  --sender: #147355;
  --courier: #276d9b;
  --shadow: 0 8px 28px rgba(25, 56, 38, .045);
  --content-width: 1320px;
}
body { background: var(--bg); }
a { color: var(--primary); }
.site-header { background: #fafbf6; padding-bottom: 34px; }
.site-header::after { display: none; }
.top-nav { min-height: 86px; border-color: var(--line); }
.brand, .brand > span { color: var(--text); }
.button.primary, button.primary { background: var(--primary); border-color: var(--primary); box-shadow: none; }
.button.primary:hover, button.primary:hover { background: var(--primary-dark); }
.button.secondary, button.secondary { color: var(--primary-dark); border-color: #cbd8ca; background: #fff; }
.site-header-inner { padding-top: 55px; }
.commute-hero { display: grid; grid-template-columns: 1.3fr .85fr; gap: 65px; align-items: center; }
.site-header h1 { font-size: clamp(2.7rem, 4.65vw, 4.25rem); line-height: 1.07; letter-spacing: -.055em; margin-bottom: 23px; }
.site-header h1 em { font-style: normal; color: var(--primary); }
.site-header .intro { font-size: 1.04rem; line-height: 1.7; color: #58695f; max-width: 570px; }
.commute-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.commute-actions .button { min-height: 52px; padding: 14px 22px; gap: 20px; font-size: .93rem; }
.commute-promise { margin: 17px 0 0; font-size: .79rem; color: var(--muted); }
.commute-story { border: 1px solid #d2dec8; border-radius: 26px; background: #edf2e2; padding: 25px 29px 0; transform: rotate(1deg); }
.story-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.story-kicker { font-size: .64rem; font-weight: 850; letter-spacing: .15em; }
.story-icon { display: grid; place-items: center; background: var(--primary); color: white; border-radius: 50%; width: 34px; height: 34px; font-size: 1.35rem; }
.commute-story h2 { font-size: 1.75rem; letter-spacing: -.04em; line-height: 1.15; margin: 0 0 25px; }
.commute-timeline { list-style: none; margin: 0; padding: 0 0 7px; }
.commute-timeline li { position: relative; display: flex; align-items: flex-start; gap: 17px; padding-bottom: 24px; }
.commute-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 20px; bottom: -5px; border-left: 2px dashed #9bb48c; }
.timeline-dot { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #97ac8c; border-radius: 50%; background: #edf2e2; z-index: 1; }
.timeline-dot:empty::after { content: ''; width: 8px; height: 8px; background: #36634d; border-radius: 50%; }
.timeline-pickup .timeline-dot { background: #d8ed86; font-weight: 700; }
.commute-timeline strong, .commute-timeline div > span { display: block; }
.commute-timeline strong { font-size: .89rem; padding-top: 3px; }
.commute-timeline div > span { color: #5f6e57; font-size: .78rem; line-height: 1.5; margin-top: 3px; }
.story-footer { border-top: 1px solid #d0ddc2; display: flex; gap: 12px; align-items: center; padding: 14px 0; }
.story-footer p { margin: 0; font-size: .76rem; color: #526445; }
.commute-benefits { display: flex; flex-wrap: wrap; gap: 12px 33px; margin: 30px 0 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.commute-benefits span { display: flex; gap: 8px; font-size: .78rem; color: #425e4e; }
.commute-benefits span::before { content: '✓'; font-weight: 800; color: var(--primary); }
.journey-search-card { margin-top: 22px; border-color: var(--line); border-radius: 19px; box-shadow: none; padding: 24px; }
.journey-search-card h2 { font-size: 1.14rem; }
.journey-search-fields { grid-template-columns: 1fr 1fr 1fr 1.35fr auto; }
.search-fine-print { font-size: .76rem; }
.search-alert-row { padding-top: 14px; }
.marketplace { padding-top: 42px; }
.marketplace-heading { align-items: end; }
.marketplace-heading h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.marketplace-heading > p { max-width: 480px; }
.layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'routes map' 'form form'; align-items: start; gap: 22px; }
.panel, .map-section { border-color: var(--line); border-radius: 20px; }
.routes-panel { max-height: 850px; padding: 22px; scrollbar-gutter: auto; }
.routes-list { display: grid; grid-template-columns: 1fr; max-height: none; }
.routes-heading-row h2 { font-size: 1.28rem; }
.marketplace-switch { display: flex; background: #f0f3ed; border-radius: 11px; padding: 4px; gap: 4px; margin: 18px 0 12px; }
.marketplace-switch button { flex: 1; border: 0; border-radius: 8px; background: transparent; padding: 11px 8px; color: #596c5f; font-size: .79rem; font-weight: 750; box-shadow: none; }
.marketplace-switch button.selected { color: var(--primary-dark); background: white; box-shadow: 0 1px 4px #223b2314; }
.board-intro { font-size: .76rem; line-height: 1.55; }
.board-invitation { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #eef4e6; border: 1px solid #d4e3c9; border-radius: 12px; padding: 15px; margin-bottom: 16px; }
.board-invitation strong, .board-invitation span:not([aria-hidden]) { display: block; }
.board-invitation strong { font-size: .84rem; margin-bottom: 5px; }
.board-invitation div > span { font-size: .76rem; color: var(--muted); line-height: 1.5; }
.board-invitation .button { flex: 0 0 auto; white-space: nowrap; font-size: .74rem; padding: 10px 12px; }
.contact-login-banner { padding: 10px 0; border: 0; background: transparent; margin-bottom: 10px; gap: 12px; }
.contact-login-banner p > span { font-size: .74rem; }
.contact-login-banner .primary { font-size: .73rem; padding: 9px; }
.filter-row { gap: 6px; }
.filter-button { font-size: .73rem; padding: 8px 10px; }
.filter-button.selected { color: var(--primary-dark); background: #e8f1e1; border-color: #aac7a1; }
.item-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.item-filter label { margin: 0; font-size: .74rem; color: var(--muted); }
.item-filter select { width: auto; max-width: 210px; min-height: 34px; padding: 7px 30px 7px 10px; font-size: .75rem; }
.route-card { border-color: var(--line); border-radius: 12px; box-shadow: none; }
.route-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px #dfead9; }
.route-card-title { font-size: 1rem; }
.route-card-meta { color: #6d776f; }
.route-card.dimmed { opacity: .58; }
.route-count { color: var(--primary-dark); background: #edf3e8; }
.empty-state { padding: 22px 15px; text-align: left; background: #fafbf7; border: 1px dashed #c8d8bf; border-radius: 12px; color: var(--muted); line-height: 1.55; }
.empty-state > strong { display: block; color: var(--text); font-size: 1.07rem; margin-bottom: 9px; }
.empty-state p { margin: 0 0 16px; font-size: .83rem; }
.empty-state .button { font-size: .8rem; }
.empty-state .inline-action { display: inline-block; margin: 10px; }
.map-section { position: sticky; top: 20px; }
.map-toolbar { min-height: 98px; padding: 21px 22px 16px; }
.map-toolbar h2 { font-size: 1.28rem; }
.map-toolbar p:last-child { font-size: .78rem; }
.map-canvas { position: relative; }
#map { height: 460px; min-height: 0; background: #e9eee3; }
.map-empty { position: absolute; z-index: 450; left: 24px; right: 24px; bottom: 25px; border: 1px solid #d0dec7; background: #fffffff2; padding: 20px; border-radius: 14px; box-shadow: var(--shadow); }
.map-empty strong { font-size: 1.05rem; }
.map-empty p { margin: 8px 0 14px; font-size: .83rem; color: var(--muted); }
.map-empty .button { padding: 10px 15px; font-size: .8rem; }
.map-density { padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-density p { font-size: .72rem; margin: 0; color: var(--muted); }
.map-density button { font-size: .72rem; padding: 4px 0; flex-shrink: 0; }
.map-density:has(p:empty) { display: none; }
.map-legend { padding: 12px 18px; font-size: .71rem; border-color: var(--line); }
.legend-note { display: none; }
.form-panel { margin-top: 4px; }
.choice-card:has(input:checked) { background: #edf4e7; border-color: #94b883; }
.publish-box { background: #edf3e8; border-color: #d4e0cc; }
.account-section { margin-top: 26px; }
.mobile-action-bar .primary { background: var(--primary); }
.process-grid > li { background: white; border-color: var(--line); }
.step-number { background: #e8f0df; color: var(--primary); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .commute-hero { gap: 30px; grid-template-columns: 1.15fr .85fr; }
  .commute-story { padding: 22px 22px 0; }
  .journey-search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey-search-fields .search-submit { grid-column: 1 / -1; }
  .board-invitation { flex-wrap: wrap; }
  .contact-login-banner { flex-direction: column; align-items: start; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'routes' 'map' 'form'; }
  .map-section { position: relative; top: auto; }
  .routes-panel { max-height: none; }
  .routes-list { max-height: 560px; overflow-y: auto; }
  .commute-hero { gap: 30px; }
  .commute-story h2 { font-size: 1.5rem; }
  .nav-links { gap: 15px; }
}
@media (max-width: 680px) {
  .site-header-inner { padding-top: 31px; }
  .commute-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-header h1 { font-size: clamp(2.3rem, 8vw, 3.7rem); }
  .site-header .intro { font-size: .96rem; }
  .commute-actions { gap: 9px; margin-top: 21px; }
  .commute-actions .button { font-size: .82rem; padding: 12px 16px; min-height: 47px; }
  .commute-story { transform: none; border-radius: 17px; padding: 20px 22px 0; }
  .commute-story h2 br { display: none; }
  .commute-story h2 { font-size: 1.5rem; margin-bottom: 22px; }
  .story-top { margin-bottom: 14px; }
  .story-icon { width: 27px; height: 27px; }
  .commute-timeline li { padding-bottom: 18px; }
  .commute-benefits { gap: 12px 18px; margin-top: 22px; }
  .commute-benefits span { font-size: .72rem; }
  .journey-search-card { padding: 18px; }
  .journey-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-search-fields select { font-size: .78rem; }
  .marketplace-heading > p { font-size: .87rem; }
  .routes-panel { padding: 18px; }
  .routes-list { max-height: 600px; }
  .map-toolbar { padding: 18px; }
  #map { height: 350px; }
  .map-empty { left: 18px; right: 18px; bottom: 20px; }
  .board-invitation .button { min-height: 38px; }
  .map-density { flex-wrap: wrap; }
}

/* Four useful destinations stay within reach on small screens. */
@media (max-width: 780px) { .mobile-action-bar { grid-template-columns: .8fr 1.5fr 1fr .8fr; } .mobile-action-bar a { font-size: .69rem; padding-inline: 3px; } }
