/* A light presentation pass, scoped to Results and Journey Details. */
body.results-mode > .cw-brand-hero { display:none; }
body.results-mode .journey-ribbon {
  border:1px solid #d5dfdc;
  background:#fff;
  box-shadow:none;
}
body.results-mode .results-ribbon-shell,
body.results-mode .results-ribbon-shell.is-collapsed { box-shadow:none; }
body.results-mode .results-summary-header {
  position:sticky;
  top:calc(var(--cw-site-header-height,68px) + var(--results-ribbon-sticky-height,184px));
  z-index:11;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px 24px;
  margin-bottom:16px;
  padding:12px 16px;
  border-bottom:1px solid #cbd9d5;
  background:var(--paper);
}
body.results-mode .results-discovery-shell { min-width:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body.results-mode .results-toolbar { min-height:0; padding:0; border:0; background:transparent; }
body.results-mode .results-discovery-count { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
body.results-mode .results-discovery-count > strong { font-size:1.55rem; font-weight:600; line-height:1.2; }
body.results-mode .results-discovery-count h2 { min-width:0; margin:0; font-size:1.05rem; font-weight:500; line-height:1.35; }
body.results-mode #filtered-results-count { margin:0; padding:0; border:0; background:transparent; color:#526871; font-size:.75rem; white-space:nowrap; }
body.results-mode #filtered-results-count:empty { display:none; }
body.results-mode .results-browse-tools { position:static; display:block; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body.results-mode .results-controls-heading h3 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.results-mode .results-controls-body { min-width:0; }
body.results-mode .results-sort-control { flex-basis:240px; }
body.results-mode .result-group > header { border-width:1px; border-color:#d5dfdc; border-radius:3px; background:transparent; box-shadow:none; }
body.results-mode .journey-card { box-shadow:none; border-top-width:1px; }
body.results-mode .results-compromise { margin:8px 0 0; }
body.results-mode .search-progress { margin:8px 0 0; }
body.results-mode .results-filter-panel { max-height:max(160px,calc(100dvh - var(--cw-site-header-height,68px) - var(--results-ribbon-sticky-height,184px) - var(--cw-site-footer-height,53px) - 124px)); overflow:auto; overscroll-behavior:contain; }

.journey-detail-page .journey-page-tools { min-height:44px; padding:0 0 8px; border:0; background:transparent; }
.journey-detail-page #back-to-results { display:inline-flex; align-items:center; min-height:44px; padding:6px 0; background:transparent; color:var(--green); font-size:.85rem; font-weight:500; text-decoration:underline; text-underline-offset:3px; }
.journey-detail-page #back-to-results:hover { color:var(--deep-ocean); }
.journey-detail-page #back-to-results:focus-visible { outline:3px solid #205d86; outline-offset:3px; }
.journey-detail-page .journey-page-shell { border:1px solid #d5dfdc; box-shadow:none; }
.journey-page-shell .detail-metrics { gap:12px 18px; align-content:center; }
.journey-page-shell .detail-metrics span,
.journey-page-shell .detail-metrics span:first-child { min-height:0; padding:0; border:0; background:transparent; }
.journey-page-shell .detail-metrics strong { font-size:1.45rem; font-weight:550; }
.journey-page-shell .detail-metrics small { font-size:.75rem; line-height:1.4; }
.detail-structure-summary { grid-column:1 / -1; margin:0; color:#526871; font-size:.8rem; line-height:1.5; }
.journey-page-shell .detail-date-range { color:#435f66; font-size:.88rem; }
.journey-visual-node { grid-template-rows:52px 20px minmax(42px,auto) minmax(24px,auto) minmax(40px,auto); }
.journey-visual-title { font-size:.8rem; line-height:1.4; }
.journey-visual-date { color:#e3f1ef; font-size:.73rem; line-height:1.4; }
.journey-visual-detail { color:#cfe5e2; font-size:.69rem; line-height:1.4; }
.journey-page-shell .detail-section-heading { border-top:1px solid #d5dfdc; border-bottom:0; background:transparent; }
.journey-page-shell .detail-segment.is-cruise .detail-segment-body { border:1px solid #d5dfdc; box-shadow:none; }
.journey-page-shell .detail-segment-marker { box-shadow:none; }

@media (max-width:900px) {
  body.results-mode .results-summary-header { grid-template-columns:minmax(0,1fr); gap:10px; }
  body.results-mode .results-controls-body { justify-content:flex-start; }
  body.results-mode .results-summary-header:has(.results-filters[open]) { position:static; }
  body.results-mode .results-filter-panel { max-height:min(60dvh,480px); }
}
@media (max-width:620px) {
  body.results-mode .results-summary-header { position:static; padding:12px 0; }
  body.results-mode .results-sort-control { flex:1 1 0; min-width:0; }
  body.results-mode .results-sort-control select { width:100%; }
  body.results-mode .results-controls-body { gap:8px; }
  body.results-mode .results-discovery-count > strong { font-size:1.4rem; }
  body.results-mode .results-discovery-count h2 { font-size:1rem; }
  .journey-page-shell .detail-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .journey-page-shell .detail-metrics span { padding:0; }
  .journey-page-shell .detail-metrics strong { font-size:1.3rem; }
}
