/*
 * Hike features: outings, transit plan, safety, group, conditions, weekend.
 * Mobile first; the site Tailwind build is not rebuilt for these pages, so
 * every class here is self-contained and themed through the tokens below.
 */
:root {
    --oz-bg: #f6f7f9;
    --oz-surface: #ffffff;
    --oz-surface-2: #f7f8fa;
    --oz-border: #e8eaee;
    --oz-text: #111827;
    --oz-muted: #5f6673;
    --oz-faint: #9aa1ad;
    --oz-accent: #ff5d2a;
    --oz-accent-strong: #e8491a;
    --oz-accent-soft: #fff1ea;
    --oz-dark: #111827;
    --oz-good: #0f7a55;
    --oz-good-soft: #e5f6ee;
    --oz-warn: #9a5b0b;
    --oz-warn-soft: #fdf2dc;
    --oz-bad: #b8341c;
    --oz-bad-soft: #fde8e2;
    --oz-info: #1f5bc6;
    --oz-info-soft: #e8effc;
    --oz-radius: 22px;
    --oz-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 28px rgba(17, 24, 39, 0.05);
}

html[data-theme="dark"] {
    --oz-bg: #0b0f17;
    --oz-surface: #121826;
    --oz-surface-2: #182032;
    --oz-border: #222b3c;
    --oz-text: #f3f5f8;
    --oz-muted: #a3acbb;
    --oz-faint: #6f7889;
    --oz-accent: #ff7547;
    --oz-accent-strong: #ff8a62;
    --oz-accent-soft: #2c1a12;
    --oz-dark: #2b3446;
    --oz-good: #4cc596;
    --oz-good-soft: #10291f;
    --oz-warn: #f2ab52;
    --oz-warn-soft: #2d230f;
    --oz-bad: #f47a62;
    --oz-bad-soft: #321711;
    --oz-info: #7aa7ff;
    --oz-info-soft: #14203a;
    --oz-shadow: none;
}

.oz-page { max-width: 1120px; margin: 0 auto; padding: 18px 16px 120px; color: var(--oz-text); }
@media (min-width: 768px) { .oz-page { padding: 32px 28px 80px; } }
.oz-page *, .oz-sheet * { box-sizing: border-box; }
.oz-stack { display: flex; flex-direction: column; gap: 14px; }
.oz-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oz-row > * { min-width: 0; }
.oz-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.oz-muted { color: var(--oz-muted); }
.oz-small { font-size: 0.82rem; line-height: 1.45; }
.oz-mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.oz-back { display: inline-flex; align-items: center; gap: 6px; color: var(--oz-muted); font-size: 0.78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.oz-back:hover { color: var(--oz-accent); }

.oz-eyebrow { margin: 0; color: var(--oz-accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.oz-h1 { margin: 4px 0 0; color: var(--oz-text); font-size: clamp(1.55rem, 5vw, 2.4rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
.oz-h2 { margin: 0; color: var(--oz-text); font-size: 1.15rem; font-weight: 900; line-height: 1.25; }
.oz-h3 { margin: 0; color: var(--oz-text); font-size: 0.98rem; font-weight: 800; line-height: 1.3; }
.oz-lead { margin: 6px 0 0; color: var(--oz-muted); font-size: 0.95rem; line-height: 1.55; max-width: 62ch; }

.oz-card { background: var(--oz-surface); border: 1px solid var(--oz-border); border-radius: var(--oz-radius); padding: 18px; box-shadow: var(--oz-shadow); min-width: 0; }
@media (min-width: 768px) { .oz-card { padding: 22px; } }
.oz-card--flat { box-shadow: none; background: var(--oz-surface-2); }
.oz-card--accent { background: var(--oz-accent-soft); border-color: transparent; box-shadow: none; }

.oz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--oz-border); border-radius: 14px; background: var(--oz-surface); color: var(--oz-text); padding: 0 16px; font: inherit; font-size: 0.88rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.oz-btn:hover { border-color: var(--oz-accent); color: var(--oz-text); }
.oz-btn:focus-visible { outline: 3px solid rgba(255, 93, 42, 0.35); outline-offset: 2px; }
.oz-btn[disabled] { opacity: .55; cursor: not-allowed; }
.oz-btn--primary { background: var(--oz-accent); border-color: var(--oz-accent); color: #fff; box-shadow: 0 10px 22px rgba(255, 93, 42, 0.25); }
.oz-btn--primary:hover { background: var(--oz-accent-strong); border-color: var(--oz-accent-strong); color: #fff; }
.oz-btn--dark { background: var(--oz-dark); border-color: var(--oz-dark); color: #fff; }
.oz-btn--dark:hover { color: #fff; border-color: var(--oz-accent); }
.oz-btn--ghost { background: transparent; }
.oz-btn--quiet { background: transparent; border-color: transparent; color: var(--oz-muted); }
.oz-btn--block { width: 100%; }
.oz-btn--lg { min-height: 54px; border-radius: 16px; font-size: 0.98rem; }
.oz-btn--sm { min-height: 36px; padding: 0 12px; border-radius: 12px; font-size: 0.8rem; }
.oz-link { color: var(--oz-accent); font-weight: 800; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; cursor: pointer; }
.oz-link:hover { text-decoration: underline; }

.oz-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; border: 1px solid var(--oz-border); border-radius: 999px; background: var(--oz-surface); color: var(--oz-text); padding: 0 12px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.oz-chip[aria-pressed="true"], .oz-chip.is-on { background: var(--oz-dark); border-color: var(--oz-dark); color: #fff; }
.oz-chip--static { cursor: default; }
.oz-chip--good { background: var(--oz-good-soft); border-color: transparent; color: var(--oz-good); }
.oz-chip--warn { background: var(--oz-warn-soft); border-color: transparent; color: var(--oz-warn); }
.oz-chip--bad { background: var(--oz-bad-soft); border-color: transparent; color: var(--oz-bad); }
.oz-chip--info { background: var(--oz-info-soft); border-color: transparent; color: var(--oz-info); }
.oz-chip--plus { background: var(--oz-accent-soft); border-color: transparent; color: var(--oz-accent); font-size: 0.7rem; min-height: 22px; padding: 0 8px; letter-spacing: 0.06em; }
.oz-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.oz-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oz-label { color: var(--oz-text); font-size: 0.82rem; font-weight: 800; }
.oz-hint { color: var(--oz-muted); font-size: 0.76rem; line-height: 1.4; }
.oz-input, .oz-select { width: 100%; min-height: 46px; border: 1px solid var(--oz-border); border-radius: 13px; background: var(--oz-surface); color: var(--oz-text); padding: 0 14px; font: inherit; font-size: 16px; }
.oz-input:focus, .oz-select:focus { outline: 3px solid rgba(255, 93, 42, 0.22); border-color: var(--oz-accent); }
.oz-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .oz-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oz-segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; border: 1px solid var(--oz-border); border-radius: 14px; background: var(--oz-surface-2); padding: 4px; }
.oz-segment button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--oz-muted); font: inherit; font-size: 0.84rem; font-weight: 800; cursor: pointer; }
.oz-segment button[aria-pressed="true"] { background: var(--oz-surface); color: var(--oz-text); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12); }

.oz-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 2000; transform: translateX(-50%); max-width: calc(100% - 32px); border-radius: 16px; background: var(--oz-dark); color: #fff; padding: 12px 16px; font-size: 0.88rem; font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
@media (min-width: 768px) { .oz-toast { bottom: 32px; } }

/* --------------------------------------------------------- outing header */
.oz-head { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
@media (min-width: 900px) { .oz-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.oz-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oz-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.oz-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
@media (min-width: 980px) { .oz-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.oz-aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 980px) { .oz-aside { position: sticky; top: 100px; } }

/* ------------------------------------------------------ readiness checklist */
.oz-ready__bar { height: 8px; border-radius: 6px; background: var(--oz-border); overflow: hidden; margin: 10px 0 14px; }
.oz-ready__bar span { display: block; height: 100%; border-radius: 6px; background: var(--oz-good); transition: width .3s ease; }
.oz-ready__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.oz-ready__item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 14px; color: inherit; text-decoration: none; }
.oz-ready__item:hover { background: var(--oz-surface-2); }
.oz-ready__check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--oz-border); display: grid; place-items: center; font-size: 0.75rem; font-weight: 900; color: #fff; }
.oz-ready__item.is-done .oz-ready__check { background: var(--oz-good); border-color: var(--oz-good); }
.oz-ready__title { display: block; font-size: 0.88rem; font-weight: 800; }
.oz-ready__item.is-done .oz-ready__title { color: var(--oz-muted); }
.oz-ready__detail { display: block; color: var(--oz-muted); font-size: 0.76rem; line-height: 1.35; }
.oz-ready__action { color: var(--oz-accent); font-size: 0.78rem; font-weight: 800; white-space: nowrap; }

/* ------------------------------------------------------------------- tabs */
.oz-tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; gap: 4px; margin: 0 -16px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--oz-bg) 88%, transparent); backdrop-filter: blur(10px); }
.oz-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .oz-tabs { margin: 0; padding: 6px; border: 1px solid var(--oz-border); border-radius: 18px; background: var(--oz-surface); position: static; } }
.oz-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border-radius: 12px; padding: 0 14px; color: var(--oz-muted); font-size: 0.86rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.oz-tab:hover { color: var(--oz-text); }
.oz-tab[aria-current="page"] { background: var(--oz-dark); color: #fff; }
.oz-tab__badge { min-width: 18px; height: 18px; border-radius: 999px; background: var(--oz-accent); color: #fff; font-size: 0.68rem; display: inline-grid; place-items: center; padding: 0 5px; }

/* -------------------------------------------------------------- list page */
.oz-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .oz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oz-list-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.oz-list-card:hover { border-color: var(--oz-accent); }
.oz-countdown { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 10px; background: var(--oz-info-soft); color: var(--oz-info); font-size: 0.74rem; font-weight: 800; }
.oz-countdown--today { background: var(--oz-accent); color: #fff; }
.oz-avatars { display: flex; }
.oz-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--oz-surface); background: var(--oz-surface-2); object-fit: cover; display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 900; color: var(--oz-muted); overflow: hidden; }
.oz-avatars .oz-avatar + .oz-avatar { margin-left: -8px; }
.oz-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 36px 18px; }
.oz-empty__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--oz-accent-soft); color: var(--oz-accent); font-size: 1.8rem; }

/* ---------------------------------------------------------- route picker */
.oz-route-option { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--oz-border); border-radius: 16px; background: var(--oz-surface); color: inherit; text-decoration: none; }
.oz-route-option:hover { border-color: var(--oz-accent); }
.oz-route-option img, .oz-route-option .oz-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: linear-gradient(150deg, #6f8f6a, #2f4a3a); }

/* ----------------------------------------------------------- bottom sheet */
.oz-sheet[hidden] { display: none !important; }
.oz-sheet { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; background: rgba(9, 12, 18, 0.5); }
@media (min-width: 640px) { .oz-sheet { align-items: center; padding: 24px; } }
.oz-sheet__panel { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; background: var(--oz-surface); color: var(--oz-text); padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); }
@media (min-width: 640px) { .oz-sheet__panel { border-radius: 26px; padding: 22px; } }
.oz-sheet__grip { width: 44px; height: 5px; border-radius: 9px; background: var(--oz-border); margin: 0 auto 12px; }
@media (min-width: 640px) { .oz-sheet__grip { display: none; } }
.oz-sheet__close { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--oz-surface-2); color: var(--oz-text); font-size: 1.4rem; cursor: pointer; }
body.oz-sheet-open { overflow: hidden; }

/* ---------------------------------------------------------- transit card */
.tr { display: flex; flex-direction: column; gap: 14px; }
.tr__controls { display: flex; flex-direction: column; gap: 10px; }
.tr__dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tr__dates::-webkit-scrollbar { display: none; }
.tr__date-input { min-height: 34px; border: 1px solid var(--oz-border); border-radius: 999px; background: var(--oz-surface); color: var(--oz-text); padding: 0 10px; font: inherit; font-size: 0.8rem; font-weight: 700; }
.tr__deadline { display: flex; align-items: center; gap: 14px; border-radius: 18px; background: var(--oz-accent-soft); padding: 14px 16px; }
.tr__deadline--bad { background: var(--oz-bad-soft); }
.tr__big { color: var(--oz-accent); font-size: 1.9rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.tr__deadline--bad .tr__big { color: var(--oz-bad); }
.tr__deadline p { margin: 0; font-size: 0.86rem; line-height: 1.45; }
.tr__timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tr__step { display: grid; grid-template-columns: 50px 18px minmax(0, 1fr); gap: 8px; padding-bottom: 14px; position: relative; }
.tr__time { font-size: 0.84rem; font-weight: 900; font-variant-numeric: tabular-nums; padding-top: 1px; }
.tr__node { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--oz-info); background: var(--oz-surface); margin-top: 4px; position: relative; }
.tr__step:not(:last-child) .tr__node::after { content: ""; position: absolute; left: 50%; top: 11px; width: 2px; height: 46px; transform: translateX(-50%); background: var(--oz-border); }
.tr__node--walk { border-color: var(--oz-faint); }
.tr__node--trail { border-color: var(--oz-good); }
.tr__node--last { border-color: var(--oz-accent); }
.tr__step b { display: block; font-size: 0.88rem; }
.tr__step small { display: block; color: var(--oz-muted); font-size: 0.76rem; line-height: 1.4; }
.tr__options { display: flex; flex-direction: column; gap: 6px; }
.tr__options summary { cursor: pointer; color: var(--oz-text); font-size: 0.86rem; font-weight: 800; }
.tr__option { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--oz-border); border-radius: 12px; padding: 8px 10px; font-size: 0.8rem; background: var(--oz-surface); }
.tr__option.is-chosen { border-color: var(--oz-accent); background: var(--oz-accent-soft); }
.tr__option b { font-variant-numeric: tabular-nums; }
.tr__attr { color: var(--oz-faint); font-size: 0.72rem; }
.tr__attr a { color: inherit; }
.tr__line { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; border: 1px solid var(--oz-border); border-radius: 14px; background: var(--oz-surface); padding: 10px 12px; color: var(--oz-text); font-size: 0.84rem; text-decoration: none; }
.tr__line b { font-variant-numeric: tabular-nums; }
.tr__line > .tr__line-icon { flex: none; font-size: 1.1rem; line-height: 1; }
.tr__line > .tr__line-text { flex: 1 1 auto; min-width: 0; display: block; }
.tr__line > .tr__line-meta { flex: none; display: block; }
.tr__line:hover { border-color: var(--oz-accent); }
.tr__skeleton { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--oz-surface-2), var(--oz-border), var(--oz-surface-2)); background-size: 200% 100%; animation: oz-shimmer 1.2s linear infinite; }
@keyframes oz-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .tr__skeleton { animation: none; } }

/* -------------------------------------------- route page entry points */
.oz-route-plan-cta { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.oz-route-plan-cta .oz-btn--primary { width: 100%; }
@media (min-width: 768px) { .oz-route-plan-cta { flex-direction: row; align-items: center; } .oz-route-plan-cta .oz-btn--primary { width: auto; } }
.oz-route-transit-card { margin-top: 14px; }

/* --------------------------------------------------------- site banner */
.oz-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 auto; max-width: 1240px; border-radius: 0 0 18px 18px; background: var(--oz-dark); color: #fff; padding: 10px 16px; font-size: 0.86rem; }
.oz-banner b { color: #ffb08f; }
.oz-banner--late { background: var(--oz-bad); }
.oz-banner--late b { color: #fff; }
.oz-banner .oz-btn { min-height: 38px; }

/* --------------------------------------------------- home: next outing */
.oz-next { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.oz-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }


/* site-redesign.css paints every field white with !important; keep ours readable in dark mode. */
html[data-theme="dark"] body .oz-input.oz-input,
html[data-theme="dark"] body .oz-select.oz-select,
html[data-theme="dark"] body .tr__date-input.tr__date-input { background-color: var(--oz-surface-2) !important; color: var(--oz-text) !important; border-color: var(--oz-border) !important; color-scheme: dark; }
html[data-theme="dark"] body:not(.page-map) main.site-main-offset:has(.oz-page) { background-color: var(--oz-bg) !important; }

/* Segment made of radio labels (forms that post with FormData). */
.oz-segment label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; color: var(--oz-muted); font-size: 0.84rem; font-weight: 800; cursor: pointer; text-align: center; padding: 0 6px; }
.oz-segment label input { position: absolute; opacity: 0; pointer-events: none; }
.oz-segment label:has(input:checked) { background: var(--oz-surface); color: var(--oz-text); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12); }
.oz-segment label:has(input:focus-visible) { outline: 2px solid var(--oz-accent); }

/* Day-of check-in card */
.oz-dayof { display: grid; gap: 14px; margin-top: 16px; border-radius: 24px; background: var(--oz-dark); color: #fff; padding: 20px; box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18); }
html[data-theme="dark"] .oz-dayof { background: #1d2a3d; }
.oz-dayof--today { background: var(--oz-accent-soft); color: var(--oz-text); box-shadow: none; }
html[data-theme="dark"] .oz-dayof--today { background: var(--oz-accent-soft); }
.oz-dayof--late { background: var(--oz-bad); }
.oz-dayof__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.oz-dayof:not(.oz-dayof--today) .oz-dot { background: #4ade80; animation: oz-pulse 1.6s ease-in-out infinite; }
.oz-dayof--late .oz-dot { background: #fff; }
@keyframes oz-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .oz-dayof .oz-dot { animation: none; } }
.oz-dayof__time { margin: 6px 0 0; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.oz-dayof__title { margin: 6px 0 0; font-size: 1.3rem; font-weight: 900; }
.oz-dayof__note { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.45; opacity: 0.9; }
.oz-dayof__note a { color: inherit; font-weight: 800; text-decoration: underline; }
.oz-dayof__return { background: #fff; color: #0b1220; border-color: #fff; font-size: 1.05rem; }
.oz-dayof__return:hover { background: #f1f5f9; }
.oz-dayof__extend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.84rem; opacity: 0.95; }
.oz-dayof__extend .oz-chip { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }

/* Escalation ladder */
.oz-ladder { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: ladder; }
.oz-ladder li { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: baseline; font-size: 0.88rem; }
.oz-ladder b { font-variant-numeric: tabular-nums; color: var(--oz-accent); }
.oz-ladder span { color: var(--oz-muted); }

/* People (safety contacts) */
.oz-people { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.oz-person { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--oz-border); border-radius: 16px; padding: 10px 12px; }
.oz-person__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--oz-accent-soft); color: var(--oz-accent); font-weight: 900; }
.oz-person__body { display: grid; gap: 3px; min-width: 0; }
.oz-person__body .oz-small { overflow-wrap: anywhere; }
.oz-person__body .oz-chip { justify-self: start; min-height: 22px; font-size: 0.72rem; }
.oz-person__actions { display: flex; gap: 6px; align-items: center; }

/* Public page for relatives */
.oz-status { display: grid; gap: 6px; border-radius: 20px; padding: 16px 18px; background: var(--oz-info-soft); color: var(--oz-info); }
.oz-status--good { background: var(--oz-good-soft); color: var(--oz-good); }
.oz-status--bad { background: var(--oz-bad-soft); color: var(--oz-bad); }
.oz-status b { font-size: 1.1rem; }
.oz-steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 0.9rem; }

/* MChS card */
.oz-copyfield { display: grid; gap: 6px; }
.oz-copyfield__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.oz-copyfield textarea.oz-input { min-height: 84px; padding-top: 10px; resize: vertical; line-height: 1.4; }
@media print {
    body * { visibility: hidden !important; }
    .oz-print, .oz-print * { visibility: visible !important; }
    .oz-print { position: absolute; inset: 0 auto auto 0; width: 100%; }
    .oz-no-print { display: none !important; }
    .oz-print .oz-input { border: 0 !important; background: none !important; padding: 0 !important; min-height: 0 !important; font-weight: 600; }
}

/* Site-wide strip on the hike day */
.oz-site-banner { position: fixed; z-index: 240; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; max-width: 520px; border-radius: 18px; background: #0b1220; color: #fff; padding: 8px 8px 8px 14px; font-size: 0.84rem; line-height: 1.3; box-shadow: 0 14px 34px rgba(11, 18, 32, 0.28); }
@media (min-width: 1024px) { .oz-site-banner { left: 24px; right: auto; bottom: 24px; max-width: 460px; } }
.oz-site-banner--today { background: #fff1ea; color: #7a2a0c; }
.oz-site-banner--late { background: #b8341c; }
.oz-site-banner__text { display: block; min-width: 0; }
.oz-site-banner__text .oz-dot { display: inline-block; margin-right: 6px; vertical-align: middle; }
.oz-site-banner .oz-dot { background: #4ade80; }
.oz-site-banner__action { flex: none; display: inline-flex; align-items: center; min-height: 38px; border-radius: 12px; background: #fff; color: #0b1220; padding: 0 14px; font-weight: 900; text-decoration: none; }
.oz-site-banner--today .oz-site-banner__action { background: #ff5d2a; color: #fff; }

/* Global heading colours win over the card; the day-of card sets its own. */
body .oz-dayof h2.oz-dayof__time, body .oz-dayof h2.oz-dayof__title { color: inherit; }

/* Conditions */
.oz-cond { --oz-cond: var(--oz-good); display: grid; gap: 10px; }
.oz-cond--info { --oz-cond: var(--oz-info); }
.oz-cond--warning { --oz-cond: var(--oz-warn); }
.oz-cond--danger { --oz-cond: var(--oz-bad); }
.oz-cond__dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--oz-cond, var(--oz-good)); vertical-align: middle; flex: none; }
.oz-cond__headline { margin: 0; font-weight: 900; color: var(--oz-text); }
.oz-cond__item { display: grid; gap: 3px; border-left: 3px solid var(--oz-cond); padding: 2px 0 2px 12px; font-size: 0.88rem; color: var(--oz-text); }
.oz-weather { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oz-weather > div { display: grid; gap: 2px; border-radius: 14px; background: var(--oz-surface-2); padding: 10px 12px; }
.oz-weather__big { font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--oz-text); }
.oz-route-cond { --oz-cond: var(--oz-good); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; border: 1px solid var(--oz-border); border-radius: 16px; background: var(--oz-surface); padding: 12px 14px; color: var(--oz-text); }
.oz-route-cond.oz-cond--info { --oz-cond: var(--oz-info); }
.oz-route-cond.oz-cond--warning { --oz-cond: var(--oz-warn); background: var(--oz-warn-soft); border-color: transparent; }
.oz-route-cond.oz-cond--danger { --oz-cond: var(--oz-bad); background: var(--oz-bad-soft); border-color: transparent; }
.oz-route-cond__text { display: grid; gap: 6px; min-width: 0; }
.oz-route-cond__headline { margin: 0; font-size: 0.92rem; font-weight: 900; }
.oz-route-cond__body { display: grid; gap: 8px; }
.oz-route-cond .oz-btn { flex: none; }
@media (max-width: 640px) { .oz-route-cond { flex-direction: column; align-items: stretch; } }
[data-oz-watch][aria-pressed="true"] { background: var(--oz-good-soft); border-color: transparent; color: var(--oz-good); }

/* Gear checklist and costs */
.oz-checklist { display: grid; margin: 0; padding: 0; list-style: none; }
.oz-checklist li { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--oz-border); padding: 6px 0; }
.oz-checklist li:last-child { border-bottom: 0; }
.oz-check { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; cursor: pointer; font-size: 0.92rem; color: var(--oz-text); }
.oz-check--static { cursor: default; }
.oz-check input { width: 22px; height: 22px; flex: none; accent-color: var(--oz-good); }
.oz-check input:checked + span { color: var(--oz-muted); text-decoration: line-through; }
.oz-check__box { width: 20px; height: 20px; flex: none; border: 2px solid var(--oz-border); border-radius: 6px; }
.oz-check__box.is-on { border-color: var(--oz-good); background: var(--oz-good); }
.oz-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--oz-faint); cursor: pointer; }
.oz-icon-btn:hover { background: var(--oz-surface-2); color: var(--oz-bad); }
.oz-inline-add { display: grid; grid-template-columns: 1fr 76px auto; gap: 8px; }
.oz-inline-add:has(select) { grid-template-columns: 1fr auto; }
.oz-input--grams { padding: 0 10px; text-align: center; }
.oz-select--sm { width: auto; max-width: 130px; min-height: 36px; padding: 0 8px; font-size: 0.82rem; }
.oz-loads { display: grid; gap: 6px; }
.oz-load { display: grid; grid-template-columns: minmax(70px, 120px) 1fr 56px; align-items: center; gap: 10px; }
.oz-load .oz-small:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oz-load__bar { height: 8px; border-radius: 99px; background: var(--oz-surface-2); overflow: hidden; }
.oz-load__bar span { display: block; height: 100%; border-radius: inherit; background: var(--oz-accent); }
.oz-checklist .oz-mono { flex: none; }
@media (max-width: 420px) {
    .oz-checklist li:has(select) { flex-wrap: wrap; }
    .oz-checklist li:has(select) .oz-check { flex-basis: 100%; }
    .oz-checklist li:has(select) .oz-select--sm { margin-left: 34px; }
}

/* Weekend picks */
.oz-weekend-city { flex-wrap: nowrap; }
.oz-weekend-city .oz-select { flex: 1; }
.oz-weekend-filters .oz-segment { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.oz-picks { display: grid; gap: 14px; margin-top: 16px; }
.oz-pick { display: grid; gap: 14px; padding: 12px; }
@media (min-width: 760px) { .oz-pick { grid-template-columns: 280px 1fr; padding: 14px; } }
.oz-pick__cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--oz-surface-2); font-size: 2.4rem; text-decoration: none; }
.oz-pick__cover--empty { aspect-ratio: auto; min-height: 72px; font-size: 1.6rem; }
@media (min-width: 760px) { .oz-pick__cover--empty { min-height: 100%; } }
.oz-pick__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oz-pick__rank { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #111827; font-size: 0.9rem; font-weight: 900; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.oz-pick__days { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.oz-pick__day { display: grid; gap: 2px; border: 1px solid var(--oz-border); border-radius: 14px; padding: 8px 12px; font-size: 0.86rem; color: var(--oz-text); }
.oz-pick__day.is-best { border-color: var(--oz-good); background: var(--oz-good-soft); }
.oz-pick__day b { text-transform: capitalize; }
.oz-pick__day small { color: var(--oz-muted); }
.oz-site-banner[hidden] { display: none; }
.oz-site-banner__close { flex: none; width: 30px; height: 30px; margin-left: -6px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; opacity: 0.7; cursor: pointer; }
.oz-site-banner__close:hover { opacity: 1; }
.tr__station { grid-template-columns: 74px minmax(0, 1fr) auto; }
.tr__station-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 420px) {
    .tr__station { grid-template-columns: 64px minmax(0, 1fr); }
    .tr__station-links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Route hero: a calendar icon beside «Сохранить» on phones, a corner pill on desktop. */
.oz-hero-plan svg { width: 22px; height: 22px; flex: none; }
.oz-hero-corner { display: none; }
@media (max-width: 767px) {
    html body.page-site-redesign.page-route-detail .route-detail-hero-actions.route-detail-hero-actions:has(.oz-hero-plan--icon) {
        grid-template-columns: minmax(0, 1fr) 56px 56px !important;
    }
    html body.page-site-redesign.page-route-detail .route-detail-hero-actions.route-detail-hero-actions > .oz-hero-plan--icon {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 56px !important;
        min-width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }
    html body.page-site-redesign.page-route-detail .route-detail-hero-actions.route-detail-hero-actions:has(.oz-hero-plan--icon) > [data-route-save-button] {
        grid-column: 3 !important;
    }
    .oz-hero-plan--icon span {
        position: absolute !important; width: 1px !important; height: 1px !important;
        overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
    }
}
@media (min-width: 768px) {
    html body.page-route-detail .route-detail-hero-actions > .oz-hero-plan--icon { display: none !important; }
    .oz-hero-corner {
        position: absolute; z-index: 5; top: 20px; right: 22px;
        display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
        border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
        background: rgba(255, 255, 255, .16); padding: 0 16px;
        color: #fff; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer;
        -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
        transition: background-color .15s ease, transform .15s ease;
    }
    .oz-hero-corner:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
    .oz-hero-corner svg { width: 17px; height: 17px; }
}

/* Transit widget: one query bar, a verdict, the day as a timeline. */
.tr__query { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tr__pill { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; max-width: 100%; border: 1px solid var(--oz-border); border-radius: 999px; background: var(--oz-surface); padding: 0 34px 0 12px; color: var(--oz-text); font-size: 0.88rem; font-weight: 800; cursor: pointer; }
.tr__pill:hover { border-color: #cbd2dc; }
.tr__pill:focus-within { outline: 3px solid rgba(255, 93, 42, 0.22); border-color: var(--oz-accent); }
.tr__pill--static { padding-right: 14px; cursor: default; }
.tr__pill-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: var(--oz-accent); }
.tr__pill-icon svg, .tr__pill-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr__pill-chevron { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--oz-faint); pointer-events: none; }
.tr__pill select { min-width: 0; max-width: 100%; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; appearance: none; -webkit-appearance: none; cursor: pointer; padding: 0; }
.tr__pill select:focus { outline: none; }
body .tr__pill select, html[data-theme="dark"] body .tr__pill select { background: transparent !important; border: 0 !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; }
.tr__query .tr__date-input { min-height: 42px; border-radius: 999px; padding: 0 14px; }
@media (max-width: 520px) {
    .tr__query { display: grid; grid-template-columns: 1fr 1fr; }
    .tr__query > .tr__pill:first-child { grid-column: 1 / -1; }
    .tr__query .tr__date-input { grid-column: 1 / -1; }
    .tr__pill { width: 100%; }
    .tr__pill select { width: 100%; text-overflow: ellipsis; }
    .tr__pill { padding-right: 30px; font-size: 0.84rem; }
    .tr__pill-chevron { right: 10px; }
}

.tr__verdict { display: flex; align-items: center; gap: 16px; border-radius: 18px; background: var(--oz-accent-soft); padding: 14px 16px; }
.tr__verdict--bad { background: var(--oz-bad-soft); }
.tr__verdict-time { display: grid; flex: none; gap: 2px; }
.tr__verdict-time small { color: var(--oz-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tr__verdict-time strong { color: var(--oz-accent-strong); font-size: 2rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.tr__verdict--bad .tr__verdict-time strong { color: var(--oz-bad); }
.tr__verdict p { margin: 0; color: var(--oz-text); font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 520px) { .tr__verdict { flex-direction: column; align-items: flex-start; gap: 8px; } }

.tr__lists { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 760px) { .tr__lists { grid-template-columns: 1fr 1fr; align-items: start; } }
.tr__options { border: 1px solid var(--oz-border); border-radius: 14px; background: var(--oz-surface); }
.tr__options summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; list-style: none; }
.tr__options summary::-webkit-details-marker { display: none; }
.tr__options summary::after { content: ''; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--oz-faint); border-bottom: 2px solid var(--oz-faint); transform: rotate(45deg); transition: transform .15s ease; }
.tr__options[open] summary::after { transform: rotate(-135deg); }
.tr__options summary > span:first-child { flex: 1; }
.tr__options-count { min-width: 24px; border-radius: 999px; background: var(--oz-surface-2); padding: 2px 8px; color: var(--oz-muted); font-size: 0.76rem; text-align: center; }
.tr__options-body { display: grid; gap: 6px; padding: 0 10px 10px; }
.tr__footer { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 14px 0 0; font-size: 0.8rem; }
.tr__footer a { color: var(--oz-accent); font-weight: 800; text-decoration: none; }
.tr__footer a:hover { text-decoration: underline; }
.tr__footer .tr__footer-attr { margin-left: auto; color: var(--oz-faint); font-weight: 600; }
@media (max-width: 520px) { .tr__footer .tr__footer-attr { margin-left: 0; flex-basis: 100%; } }

/* On the route page the widget sits in a regular route info card. */
.oz-route-transit-card .route-info-card-heading { align-items: center; }
.oz-route-transit-card [data-transit] { margin-top: 16px; }
.oz-route-transit-card .oz-route-plan-link { margin-left: auto; border: 0; background: transparent; cursor: pointer; font: inherit; }
.tr__accept { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.tt-home-next-outing { padding-top: 24px; }
