/*
Theme Name: Horizon Moto Guides
Theme URI: https://github.com/runmorganrun/HorizonMotoGuides-Website
Description: Custom theme for Horizon Moto Guides: guided motorcycle tours in the Colorado Rockies. Tours, routes, guides, mountain passes and page sections are editable in WordPress admin.
Version: 1.2.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: horizon-moto
*/

:root {
  color-scheme: dark;
  --bg: #101114;
  --surface: #191c21;
  --surface-2: #20242a;
  --line: #2b3038;
  --text: #f3f4f6;
  --muted: #9aa4b2;
  --orange: #ff8617;
  --orange-2: #ff9a36;
  --green: #39c98a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; width: 100%; }
.shell { width: min(1190px, calc(100% - 48px)); margin-inline: auto; }
.topbar { position: sticky; z-index: 20; top: 0; height: 74px; border-bottom: 1px solid var(--line); background: rgba(16,17,20,.94); backdrop-filter: blur(14px); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { flex: 0 0 auto; color: #eceef2; font-size: 19px; font-style: italic; font-weight: 700; letter-spacing: -.8px; }
.brand span { color: var(--orange); }
.topbar .brand { font-size: 24.7px; }
.navlinks { display: flex; align-items: center; justify-content: flex-end; gap: clamp(13px, 2.4vw, 32px); }
.navlinks a { color: #d7d9de; font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; transition: color .2s; white-space: nowrap; }
.navlinks a:hover, .navlinks a.active { color: var(--orange); }
.navlinks a.admin-link { color: #a4acb9; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 8px 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; background: var(--orange); color: #111; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s, background .18s; }
.button:hover { background: var(--orange-2); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button.secondary:hover { border-color: #505763; background: var(--surface-2); }
.button.small { min-height: 34px; padding-inline: 13px; font-size: 11px; }
.section { padding: 86px 0; }
.section.compact { padding: 62px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 10px; border: 1px solid #39332e; border-radius: 4px; background: #1a1b1d; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.section-head { max-width: 650px; margin: 0 auto 34px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2, .page-title { margin: 13px 0 10px; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.8px; }
.section-head p, .subhead { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.orange { color: var(--orange); }
.hero { position: relative; display: grid; min-height: 610px; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(10,12,14,.80), rgba(10,12,14,.35) 58%, rgba(10,12,14,.22)), linear-gradient(0deg, var(--bg), transparent 40%), var(--hero-image, url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=2200&q=85")) center 48% / cover; }
.hero:after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(16,17,20,.25), transparent 58%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: min(650px, 100%); padding: 80px 0 92px; }
.hero h1 { margin: 20px 0 14px; font-family: var(--serif); font-size: clamp(45px, 7vw, 78px); line-height: .99; letter-spacing: -2px; }
.hero p { max-width: 535px; color: #c1c8d1; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 27px; flex-wrap: wrap; }
.mini-stats { display: flex; gap: 28px; margin-top: 44px; color: #c5cad1; font-size: 11px; }
.mini-stats strong { display: block; color: white; font-size: 19px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.card-image { position: relative; height: 210px; overflow: hidden; background: var(--surface-2); }
.card-image img { height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-image img { transform: scale(1.035); }
.tag { display: inline-flex; position: absolute; top: 14px; left: 14px; padding: 6px 9px; border-radius: 4px; background: rgba(14,16,19,.86); color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.card-body { padding: 20px; }
.meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.meta span:first-child { color: var(--orange); }
.card h3 { margin: 10px 0 9px; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.price { font-size: 20px; font-weight: 700; }
.price small { color: var(--muted); font-size: 10px; font-weight: 400; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.feature-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(ellipse at 75% 0%, rgba(255,134,23,.09), transparent 45%), var(--surface); }
.feature-row { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.iconbox { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 6px; background: #2c2620; color: var(--orange); font-size: 16px; }
.feature-row strong { display: block; margin: 1px 0 5px; font-size: 13px; }
.feature-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.pricing-card { padding: 23px; }
.pricing-card.featured { border-color: var(--orange); box-shadow: 0 0 0 1px rgba(255,134,23,.14); }
.pricing-card h3 { margin: 5px 0; font-size: 16px; }
.pricing-card .price { margin: 18px 0; font-size: 28px; }
.pricing-card ul { min-height: 120px; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 2; }
.banner-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 26px; padding: 23px 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.banner-cta h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 18px; }
.banner-cta p { margin: 0; color: var(--muted); font-size: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.quote { padding: 23px; }
.quote blockquote { margin: 14px 0; color: #d6dae0; font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.stars { color: var(--orange); letter-spacing: 2px; }
.page-hero { padding: 82px 0 48px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(255,134,23,.11), transparent 44%); }
.page-hero .page-title { margin-top: 16px; }
.page-hero .subhead { max-width: 650px; margin: 0 auto; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.filter { border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; background: var(--surface); color: var(--muted); font-size: 11px; cursor: pointer; }
.filter.active, .filter:hover { border-color: var(--orange); background: rgba(255,134,23,.12); color: var(--orange); }
.tour-card .card-image { height: 190px; }
.tour-card .card-body { padding: 17px; }
.tour-card { overflow: visible; }
.tour-card .card-image { border-radius: 8px 8px 0 0; }
.tour-title { justify-content: space-between; gap: 10px; }
.tour-title .tip { flex: 0 0 auto; margin-top: 4px; }
.tip-box.tip-wide { left: 0; right: 0; width: auto; }
.guide-card .card-image { height: 230px; }
.guide-card .card-body { min-height: 255px; }
.guide-card .guide-role { color: var(--orange); font-size: 10px; }
.booking-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.panel h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; }
.panel > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #d9dce1; font-size: 10px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; outline: none; background: #15171b; color: var(--text); font-size: 12px; }
.field textarea { min-height: 105px; resize: vertical; }
.label-row { position: relative; display: flex; align-items: center; gap: 7px; }
.tip { display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; color: var(--muted); font: italic 700 10px/1 Georgia, serif; cursor: help; }
.tip:hover, .tip:focus-visible { border-color: var(--orange); color: var(--orange); outline: none; }
.tip-box { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); box-shadow: 0 10px 30px rgba(0,0,0,.45); color: var(--muted); font-size: 12px; line-height: 1.5; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.tip-box.align-left { left: 0; right: auto; }
.tip-box p + p { margin-top: 8px; }
.tip-box strong { color: var(--text); }
.tip:hover + .tip-box, .tip:focus + .tip-box { opacity: 1; visibility: visible; transform: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; font-size: 12px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.calendar span, .calendar button { display: grid; min-height: 32px; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; }
.calendar button { cursor: pointer; color: #e7e9ed; }
.calendar button:hover, .calendar button.selected { background: var(--orange); color: #111; }
.calendar .weekday { color: #707987; font-size: 9px; }
.form-note { margin-top: 13px; color: var(--muted); font-size: 10px; }
.blog-card .card-image { height: 260px; }
.blog-card h3 { font-size: 22px; }
.blog-card .card-body { min-height: 244px; display: flex; flex-direction: column; }
.blog-card .card-bottom { margin-top: auto; }
.suggest-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: start; padding: 70px 0 92px; }
.suggest-intro h1 { max-width: 590px; margin: 18px 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -1.5px; }
.suggest-intro h1 em { color: var(--orange); font-family: var(--serif); font-weight: 500; }
.suggest-intro > p { max-width: 540px; color: var(--muted); line-height: 1.75; }
.suggest-form { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.form-heading { padding: 24px 27px; border-bottom: 1px solid var(--line); }
.form-heading h2 { margin: 0 0 5px; font-size: 23px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.suggest-form form { padding: 25px 27px 28px; }
.suggest-form .field-grid { gap: 16px; }
.suggest-form .button { width: 100%; margin-top: 18px; min-height: 48px; }
.stats-box { display: flex; justify-content: space-around; gap: 10px; margin-top: 26px; padding: 23px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; }
.stats-box strong { display: block; color: var(--orange); font-size: 24px; }
.stats-box span { color: var(--muted); font-size: 10px; }
.route-stats { max-width: 620px; margin: 30px auto 0; }
.route-split { align-items: stretch; }
.route-image { height: 100%; min-height: 340px; border-radius: 8px; object-fit: cover; }
.route-split .feature-panel h3, .route-tips h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.route-tips > p { max-width: 760px; font-size: 13px; line-height: 1.7; }
.upload { display: grid; min-height: 90px; place-items: center; border: 1px dashed #414752; border-radius: 6px; color: var(--muted); text-align: center; cursor: pointer; font-size: 11px; }
.upload input { display: none; }
.dashboard { color-scheme: light; background: #f3f4f4; color: #20252b; }
.dashboard .topbar { background: #111317; color: white; }
.dashboard .panel { border-color: #dce0e4; background: #fff; }
.dashboard .field input, .dashboard .field select { border-color: #d9dde1; background: #fff; color: #222; }
.dashboard .eyebrow { color: #d76900; border-color: #f2d5b8; background: #fff8f1; }
.dashboard .section { border-bottom: 1px solid #e1e4e6; }
.dashboard-live { padding: 48px 0 54px; background-color: #f7f8f7; background-image: radial-gradient(ellipse at 20% 20%, transparent 35%, rgba(25,41,54,.035) 36%, transparent 37%), radial-gradient(ellipse at 80% 10%, transparent 30%, rgba(25,41,54,.035) 31%, transparent 32%); }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.dashboard h1 { margin: 12px 0 8px; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); }
.dashboard .muted { color: #74808a; }
.dashboard .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.dashboard .stat-tile { padding: 14px; border: 1px solid #dfe3e6; border-radius: 6px; background: white; }
.dashboard .stat-tile span { display: block; color: #77818b; font-size: 10px; }
.dashboard .stat-tile strong { display: block; margin: 4px 0; font-size: 23px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8ebed; font-size: 12px; }
.status-row:last-child { border-bottom: 0; }
.status { padding: 4px 7px; border-radius: 4px; background: #e9f7ef; color: #16864c; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.status.warn { background: #fff4d8; color: #a77700; }
.status.closed { background: #fde8e8; color: #b42318; }
.status-list { max-height: 420px; overflow-y: auto; padding-right: 6px; }
.dashboard .button { min-height: 32px; font-size: 10px; }
.dashboard .button.secondary { color: #222; }
.dashboard .section-head h2 { color: #16191d; }
.dashboard .section-head p, .dashboard .card p { color: #68737f; }
.dashboard .card { border-color: #e0e3e5; background: #fff; }
.dashboard .card h3 { color: #1e2429; }
.dashboard .tag { background: #fff5ea; color: #d96900; }
.dashboard .package-list { max-width: 770px; margin: auto; }
.dashboard .package-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid #e0e3e5; border-radius: 7px; background: #fff; }
.package-item + .package-item { margin-top: 12px; }
.package-item img { width: 90px; height: 70px; border-radius: 5px; object-fit: cover; }
.package-item .package-copy { flex: 1; }
.package-item h3 { margin: 0 0 5px; font-size: 14px; }
.package-item p { margin: 0; color: #68737f; font-size: 11px; }
.faq details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer { padding: 54px 0 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr 1.1fr; gap: 30px; }
.footer h4 { margin: 0 0 15px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.footer p, .footer a { color: var(--muted); font-size: 11px; line-height: 1.9; }
.footer a:hover { color: var(--orange); }
.footer .button, .footer .button:hover { color: #111; }
.footer-links { display: grid; gap: 3px; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); color: #76808c; font-size: 10px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 14px 18px; transform: translateY(20px); border: 1px solid #41464e; border-radius: 7px; background: #20242a; box-shadow: 0 10px 30px #0005; color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.visible { transform: translateY(0); opacity: 1; }
.empty-state { padding: 35px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .brand { font-size: 16px; }
  .topbar .brand { font-size: 20.8px; }
  .nav { gap: 14px; }
  .navlinks { gap: 12px; }
  .navlinks a { font-size: 9px; letter-spacing: .6px; }
  .navlinks .button { padding-inline: 11px; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .suggest-layout { gap: 28px; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 540px); }
  .topbar { height: 64px; }
  .nav-toggle { display: block; }
  .navlinks { display: none; position: absolute; top: 63px; left: 0; right: 0; padding: 16px; border-bottom: 1px solid var(--line); background: #14161a; align-items: stretch; flex-direction: column; gap: 0; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 13px 7px; font-size: 11px; }
  .navlinks .button { margin-top: 8px; }
  .hero { min-height: 560px; background-position: 58% center; }
  .hero-content { padding: 65px 0; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .mini-stats { gap: 16px; }
  .section { padding: 62px 0; }
  .section.compact { padding: 48px 0; }
  .grid.two, .grid.three, .grid.four, .split, .booking-layout, .suggest-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .card-image, .tour-card .card-image { height: 220px; }
  .guide-card .card-image { height: 250px; }
  .guide-card .card-body { min-height: initial; }
  .banner-cta { align-items: flex-start; flex-direction: column; }
  .suggest-layout { padding: 48px 0 60px; }
  .suggest-intro h1 { font-size: 45px; }
  .suggest-form form { padding: 21px 18px; }
  .form-heading { padding: 20px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .copyright { flex-direction: column; }
  .dashboard .stat-grid { grid-template-columns: 1fr; }
  .package-item { align-items: flex-start; }
  .package-item img { width: 68px; height: 60px; }
}

/* ---------- WordPress additions ---------- */
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hm-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.calendar button:disabled { color: #4a515c; cursor: default; background: transparent; }
.prose { max-width: 760px; margin: 0 auto; color: #d6dae0; font-size: 15px; line-height: 1.8; }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; color: var(--text); font-family: var(--serif); line-height: 1.25; }
.prose a { color: var(--orange); text-decoration: underline; }
.prose img { height: auto; border-radius: 8px; }
.post-hero-image { max-width: 960px; max-height: 480px; margin: 0 auto 40px; border-radius: 8px; object-fit: cover; }
.form-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.form-alert.success { border-color: #1f6b47; background: rgba(57,201,138,.1); color: #8ee6bd; }
.form-alert.error { border-color: #7a2a24; background: rgba(180,35,24,.12); color: #f5a59e; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; }
.pagination .current { border-color: var(--orange); color: var(--orange); }
.dashboard-action + .dashboard-action { margin-top: 12px; }
a.card-image { display: block; }
.card h3 a:hover { color: var(--orange); }

/* Maintenance page (maintenance.php) */
.maint { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: linear-gradient(90deg, rgba(10,12,14,.86), rgba(10,12,14,.5) 60%, rgba(10,12,14,.32)), linear-gradient(0deg, var(--bg), transparent 45%), var(--hero-image) center 48% / cover; }
.maint-top { padding: 28px 0; }
.maint-top .brand { font-size: 24.7px; }
.maint-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 60px; }
.maint-main > * { max-width: 640px; }
.maint h1 { margin: 20px 0 14px; font-family: var(--serif); font-size: clamp(40px, 6.5vw, 72px); line-height: 1; letter-spacing: -2px; }
.maint-message p { margin: 0 0 10px; color: #c1c8d1; font-size: 16px; line-height: 1.7; }
.maint-countdown { margin-top: 30px; }
.maint-units { display: grid; grid-template-columns: repeat(4, minmax(0, 104px)); gap: 12px; }
.maint-unit { padding: 18px 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(25,28,33,.82); backdrop-filter: blur(8px); text-align: center; }
.maint-unit strong { display: block; color: var(--orange); font-family: var(--serif); font-size: clamp(30px, 4.5vw, 44px); font-variant-numeric: tabular-nums; line-height: 1; }
.maint-unit span { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.maint-when, .maint-done { margin: 14px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .3px; }
.maint-done { color: var(--text); font-size: 14px; }
.maint-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.maint-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.maint-foot a { margin-left: 16px; }
.maint-foot a:hover { color: var(--orange); }
@media (max-width: 680px) {
  .maint-top .brand { font-size: 20px; }
  .maint-units { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .maint-unit { padding: 14px 4px 11px; }
  .maint-unit span { font-size: 8.5px; letter-spacing: .6px; }
}

/* Mountain Passes: list (/passes/) and pass pages */
.muted { color: var(--muted); }
.pass-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(57,201,138,.35); border-radius: 4px; background: rgba(57,201,138,.12); color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.pass-status:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pass-status.warn { border-color: rgba(255,193,7,.35); background: rgba(255,193,7,.12); color: #ffc53d; }
.pass-status.closed { border-color: rgba(240,82,82,.35); background: rgba(240,82,82,.12); color: #ff6b6b; }
.pass-card { display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.pass-card:hover { border-color: #505763; transform: translateY(-2px); }
.pass-card .card-image .pass-status { position: absolute; top: 14px; left: 14px; background-color: rgba(14,16,19,.88); }
.pass-card .card-body { display: flex; flex: 1; flex-direction: column; }
.pass-card .pass-more { margin-top: auto; padding-top: 14px; font-size: 11px; font-weight: 700; }
.pass-disclaimer { margin: 34px 0 0; font-size: 12px; text-align: center; }
.pass-status-line { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; font-size: 12px; }
.pass-stats strong { font-size: 18px; }
.pass-stats > div { flex: 1; min-width: 0; }
.pass-figure { position: relative; margin: 0; }
.pass-figure .route-image { height: 100%; }
.pass-figure figcaption { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 8px; border-radius: 4px; background: rgba(14,16,19,.78); color: #c5cad1; font-size: 10px; }
.pass-figure figcaption a:hover { color: var(--orange); }
.pass-history p { margin: 12px 0 0; color: #c1c8d1; font-size: 13px; line-height: 1.75; }
.pass-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.pass-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 11px; }
.pass-nav a strong { font-family: var(--serif); font-size: 16px; }
.pass-nav a.next { text-align: right; }
.pass-nav a:hover { border-color: var(--orange); }
.dashboard .status-row a:hover { color: var(--orange); }
@media (max-width: 680px) {
  .pass-stats { flex-direction: column; gap: 16px; }
  .pass-nav a strong { font-size: 14px; }
}
