/* ── Global ──────────────────────────────────────────────────── */
body {
  background: #f4f4f4;
  font-family: 'Raleway', sans-serif;
  color: #222;
}

/* ── Top bar ─────────────────────────────────────────────────── */
.title-bar {
  background: #fff !important;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 101;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid #e8e8e8;
}
.title-bar-title { color: #222; font-weight: 700; }

/* Custom hamburger button */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: flex-end;
}
.hamburger-line {
  display: block;
  height: 1.5px;
  width: 22px;
  background: #131315;
  border-radius: 2px;
  transition: width 0.2s;
}
.hamburger:hover .hamburger-line { width: 22px; }

.top-bar,
.top-bar ul {
  background: #fff !important;
  background-color: #fff !important;
}
.top-bar {
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  border-bottom: 1px solid #e8e8e8;
  min-height: 50px;
}
.top-bar-left, .top-bar-right { height: 50px; }
.top-bar .menu a { line-height: 50px; padding-top: 0 !important; padding-bottom: 0 !important; }
/* Site icon in nav */
.site-icon {
  height: 32px;
  width: auto;
  display: block;
}
.site-icon-item a {
  padding: 0.4rem 0.5rem 0.4rem 0 !important;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 39.9375em) {
  .top-bar { position: static; }
  /* Hide icon in mobile expanded menu — already visible in title-bar area */
  .site-icon-item { display: none; }
  /* Solid background when expanded */
  .top-bar-left, .top-bar-right { height: auto; }
  #main-nav:not([style*="display: none"]) {
    background: #fff !important;
    background-color: #fff !important;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 1px solid #eee;
  }
  .top-bar ul { background: #fff !important; background-color: #fff !important; }

  /* Stack left + right vertically, boxes aligned to right */
  .top-bar-left, .top-bar-right { width: 100%; }
  .top-bar-left .menu,
  .top-bar-right .menu {
    flex-direction: column;
    align-items: flex-end;
  }
  .top-bar-left .menu li,
  .top-bar-right .menu li {
    width: 160px;
    border-bottom: 1px solid #e8e8e8;
  }
  .top-bar-left .menu a,
  .top-bar-right .menu a {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0 0.75rem !important;
    text-align: left;
    font-size: 0.95rem !important;
  }
}

.top-bar .menu a { color: #333; font-size: 0.88rem; }
.top-bar .menu a:hover { color: #000; }

/* Auth items rendered by vf-auth.js */
#topbar-signup, #topbar-login, #topbar-logout { color: #333 !important; }
#topbar-signup:hover, #topbar-login:hover, #topbar-logout:hover { color: #000 !important; }
.topbar-username { color: #222 !important; font-weight: 600; }
.topbar-username:hover { color: #000 !important; cursor: pointer; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 520px;
}
#hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 30, 60, 0.52);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1rem 4rem;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.1rem;
  color: #c8d8f0;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero .button {
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  margin: 0 0.4rem;
  font-weight: 600;
}
.hero .button.primary   { background: #e85d26; }
.hero .button.secondary { background: transparent; border: 2px solid #c8d8f0; color: #c8d8f0; }
.hero .button.secondary:hover { background: rgba(255,255,255,0.1); }
.hero-dot {
  width: 8px !important;
  height: 8px !important;
  background: #e85d26;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  opacity: 0.85;
}
/* Prevent Leaflet attribution/controls appearing through overlay */
#hero-map .leaflet-control { display: none; }

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  padding: 1rem 0;
  text-align: center;
}
.stat-item { padding: 0 2rem; display: inline-block; }
.stat-item .num  { font-size: 1.6rem; font-weight: 800; color: #1a2540; }
.stat-item .lbl  { font-size: 0.78rem; text-transform: uppercase; color: #767676; letter-spacing: 0.05em; }
.stat-divider    { border-left: 1px solid #e2e2e2; height: 2.5rem; display: inline-block; vertical-align: middle; }

/* ── Panels section ──────────────────────────────────────────── */
.panels-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Cards ───────────────────────────────────────────────────── */
.panel-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.panel-card.card-gap-sm  { margin-bottom: 0.5rem; }
.panel-card.card-gap-top { margin-top: 0.5rem; margin-bottom: 0; }

.panel-card .card-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel-card .card-header.card-header-split {
  justify-content: space-between;
  flex-wrap: wrap;
}
.panel-card .card-header.card-header-padded { padding-bottom: 1rem; }
.panel-card .card-header .icon { font-size: 1.4rem; }
.panel-card .card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2540;
  margin: 0;
}
.panel-card .card-header p {
  font-size: 0.78rem;
  color: #767676;
  margin: 0;
}
.panel-card .card-body { padding: 1rem 1.25rem; }
.panel-card .card-body.card-body-tight { padding: 0.75rem; }
.panel-card .card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.panel-card .card-footer a { font-size: 0.82rem; font-weight: 600; color: #e85d26; }
.panel-card .card-footer a:hover { color: #c94d1a; }

/* ── Area sidebar list ───────────────────────────────────────── */
#area-list { margin: 0; font-size: 0.83rem; }
.area-list-item { padding: 0.25rem 0; border-bottom: 1px solid #f5f5f5; }
.area-list-item:last-child { border-bottom: none; }
.area-link-active { color: #1a2540; font-weight: 700; }
.area-location { color: #aaa; font-weight: 400; font-size: 0.76rem; }

/* ── Sort controls ───────────────────────────────────────────── */
.sort-controls {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #888;
}
.sort-btn {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  background: #fff;
  color: #555;
}
.sort-btn.sort-btn-active { background: #1a2540; color: #fff; }

/* ── Route listing entries (area page) ───────────────────────── */
.route-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f5f5f5;
}
.route-entry:last-child { border-bottom: none; }
.route-diff-bar { width: 4px; min-height: 2rem; margin-top: 3px; border-radius: 2px; flex-shrink: 0; }
.route-entry-body { flex: 1; min-width: 0; }
.route-entry-name { font-weight: 600; font-size: 1.25rem; color: #1a2540; text-decoration: none; }
.route-entry-name:hover { color: #e85d26; }
.route-entry-meta { font-size: 0.85rem; color: #aaa; margin: 1px 0 3px; }
.route-grade-value { color: #555; }
.route-entry-desc { font-size: 0.85rem; color: #555; line-height: 1.5; }

/* ── Route rows (index page) ─────────────────────────────────── */
.route-row {
  display: flex; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid #f5f5f5;
  gap: 0.75rem; font-size: 0.83rem;
}
.route-row:last-child { border-bottom: none; }
.diff-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.route-row .rname   { flex: 1; font-weight: 600; color: #1a2540; }
.route-row .rregion { color: #888; font-size: 0.76rem; }
.route-row .rgrade  { font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: #f0f0f0; color: #444; }

/* ── Difficulty legend ───────────────────────────────────────── */
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; padding: 0.3rem 0; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

/* ── Map preview (index page) ────────────────────────────────── */
.map-preview {
  background: #d4e4d4;
  height: 180px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.map-preview-lg { height: 260px; }
.map-preview .overlay {
  position: absolute; inset: 0;
  background: rgba(26,37,64,0.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; font-weight: 600;
}

/* ── Grades section (index page) ─────────────────────────────── */
.grade-intro  { font-size: 0.83rem; line-height: 1.6; color: #444; margin-bottom: 0.75rem; }
.grade-note   { font-size: 0.8rem; padding: 0.75rem; border-radius: 4px; background: #fff8e1; border-left: 3px solid #e85d26; color: #555; margin-bottom: 0; }
.scale-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: #767676; margin-bottom: 0.5rem; }
.scale-heading-spaced { margin-top: 1rem; }

.grade-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.82rem; }
.grade-row:last-child { border-bottom: none; }
.grade-row p { margin: 0; color: #555; line-height: 1.4; }
.grade-row strong { display: block; color: #1a2540; margin-bottom: 2px; }

.grade-badge { color: #fff; font-weight: 700; font-size: 0.8rem; width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.grade-a                   { background: #97D600; color: #222; }
.grade-b                   { background: #E84400; }
.grade-c                   { background: #00C3E7; color: #222; }
.grade-d                   { background: #D900E8; }
.grade-e                   { background: #7600E8; }
.grade-f                   { background: #7a1030; }
.grade-1                   { background: #97D600; color: #222; }
.grade-2                   { background: #E84400; }
.grade-3                   { background: #00C3E7; color: #222; }
.grade-4                   { background: #D900E8; }
.grade-5                   { background: #7600E8; }
.grade-commit-a            { background: #2d8a4e; }
.grade-commit-b            { background: #c8960c; }
.grade-commit-c            { background: #c02020; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: #1a2540; color: #8899bb; text-align: center; padding: 1.5rem; font-size: 0.8rem; margin-top: 2rem; }

/* ── Content subheading ──────────────────────────────────────── */
.content-subheading { font-size: 1.225rem; font-weight: 600; margin-bottom: 0.4rem; }

/* ── Utility ─────────────────────────────────────────────────── */
.hint-text    { color: #aaa; font-size: 0.83rem; }
.text-error   { color: #c00; }
.text-muted   { color: #aaa; font-weight: 400; }
.link-primary { color: #e85d26; font-weight: 600; }
.link-primary:hover { color: #c94d1a; }
.full-width   { width: 100%; }
.grid-tight   { --grid-margin-gutters: 0.75rem; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { font-size: 0.78rem; color: #888; margin-bottom: 1.25rem; }
.breadcrumb a { color: #888; }
.breadcrumb-current { color: #444; }

/* ── Route detail page ───────────────────────────────────────── */
#area-title   { font-weight: 500; margin: 0; }

#route-title  { font-size: 1.6rem; font-weight: 600; color: #1a2540; margin: 0 0 2px; line-height: 1.2; }
.route-meta-line { font-size: 0.78rem; color: #aaa; margin: 3px 0 0; }
.route-area-line { margin: 4px 0 0; }
.route-area-link { color: #e85d26; font-size: 0.8rem; font-weight: 600; }

#route-pills  { margin-bottom: 1rem; }

.route-description p { font-size: 0.9rem; line-height: 1.75; color: #444; margin-bottom: 0.85rem; }
.route-description p:last-child { margin-bottom: 0; }

#route-map    { height: 420px; border-radius: 4px; overflow: hidden; }

.map-unavailable { height: 420px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 4px; color: #aaa; font-size: 0.85rem; }

#desc-card    { display: none; margin-top: 0.5rem; }

.section-block { margin-bottom: 1.25rem; }
.section-para  { font-size: 0.88rem; line-height: 1.75; color: #444; margin-bottom: 0.5rem; }

/* ── Stats table ─────────────────────────────────────────────── */
.stats-table  { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.83rem; }
.stats-table td { padding: 0.3rem 0; vertical-align: top; }
.stats-table td:first-child { color: #888; width: 48%; padding-right: 0.5rem; }
.stats-table td:last-child  { color: #1a2540; font-weight: 600; }
.stats-table tr { border-bottom: 1px solid #f5f5f5; }
.stats-table tr:last-child  { border-bottom: none; }

/* ── Section label (route description) ──────────────────────── */
.section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; margin: 1.25rem 0 0.35rem; }
.section-label:first-child { margin-top: 0; }

/* ── Pills ───────────────────────────────────────────────────── */
.stat-pill { display: inline-block; background: #f0f0f0; border-radius: 4px; padding: 0.3rem 0.75rem; font-size: 0.8rem; font-weight: 600; color: #444; margin: 0 0.35rem 0.5rem 0; }
.diff-pill { color: #fff; border-radius: 4px; padding: 0.3rem 0.75rem; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 0.5rem; }

/* ── Map page layout ─────────────────────────────────────────── */
html:has(body.map-layout),
body.map-layout { height: 100%; overflow: hidden; margin: 0; padding: 0; }

#content { display: flex; height: calc(100vh - 52px); }

#sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-right: 1px solid #e6e6e6; }

#filters { padding: 0.75rem 1rem; border-bottom: 1px solid #e6e6e6; background: #fafafa; }
#filters label { font-size: 0.72rem; text-transform: uppercase; font-weight: 700; color: #767676; margin-bottom: 3px; margin-top: 0.5rem; display: block; }
#filters label:first-child { margin-top: 0; }
#filters select { margin-bottom: 0; font-size: 0.82rem; }

#route-count { padding: 0.4rem 1rem; font-size: 0.78rem; color: #767676; border-bottom: 1px solid #e6e6e6; background: #f9f9f9; }

#route-list { overflow-y: auto; flex: 1; }

.route-item { padding: 0.65rem 1rem; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.1s; }
.route-item:hover  { background: #f5f5f5; }
.route-item.active { background: #e8f4ff; }
.route-item .rname { font-weight: 600; font-size: 0.82rem; color: #1a1a1a; margin-bottom: 2px; padding-left: 8px; border-left-width: 3px; border-left-style: solid; }
.route-item .rmeta { font-size: 0.72rem; color: #767676; padding-left: 11px; }

#map { flex: 1; min-width: 0; }

/* ── Difficulty colours (map page sidebar) ───────────────────── */
.diff-F  { color: #2d8a4e; }
.diff-MD { color: #b5770d; }
.diff-D  { color: #c05a00; }
.diff-VD { color: #c02020; }
.diff-ED { color: #7a1030; }

/* ── Leaflet popup ───────────────────────────────────────────── */
.popup-title     { font-size: 0.9rem; }
.popup-name-link { color: #1a2540; font-weight: 700; text-decoration: none; }
.popup-name-link:hover { text-decoration: underline; }
.popup-meta      { font-size: 0.78rem; color: #555; }
.popup-link      { font-size: 0.78rem; }

/* ── Modal overlay ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: vf-fadeIn 0.15s ease;
}
@keyframes vf-fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: #fff; border-radius: 8px;
  padding: 2rem; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: vf-slideUp 0.2s ease;
}
.modal-box.modal-lg { max-width: 540px; }
@keyframes vf-slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #aaa; line-height: 1; }
.modal-close:hover { color: #333; }

.modal-box h2     { margin: 0 0 0.2rem; font-size: 1.25rem; font-weight: 700; color: #1a2540; }
.modal-subtitle   { font-size: 0.82rem; color: #888; margin: 0 0 1.5rem; }
.modal-error      { color: #c00; font-size: 0.82rem; min-height: 1.2em; margin-bottom: 0.5rem; }
.modal-info       { color: #2d8a4e; }

.modal-field      { margin-bottom: 1rem; }
.modal-field label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #767676; margin-bottom: 4px; }
.modal-field input,
.modal-field textarea,
.modal-field select { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 0.88rem; box-sizing: border-box; }
.modal-field input:focus,
.modal-field textarea:focus { outline: none; border-color: #1a2540; }
.modal-field textarea { resize: vertical; min-height: 80px; }

.modal-actions    { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
.modal-link       { font-size: 0.82rem; text-align: center; margin-top: 1rem; color: #888; }
.modal-link a     { color: #e85d26; font-weight: 600; cursor: pointer; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary   { background: #e85d26; color: #fff; border: none; border-radius: 4px; padding: 0.55rem 1.5rem; font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: #c94d1a; }
.btn-secondary { background: #fff; color: #555; border: 1px solid #ddd; border-radius: 4px; padding: 0.55rem 1.5rem; font-family: inherit; font-size: 0.88rem; cursor: pointer; }
.btn-secondary:hover { background: #f5f5f5; }


/* ── Route action buttons ────────────────────────────────────── */
.route-actions      { display: flex; gap: 0.75rem; margin: 1rem 0; }
.route-actions-hint { font-size: 0.82rem; color: #888; margin: 0.75rem 0; }
.btn-action { display: flex; align-items: center; gap: 0.3rem; padding: 0.45rem 1rem; border-radius: 4px; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: 1px solid #ddd; background: #fff; color: #555; transition: all 0.15s; }
.btn-action:hover       { border-color: #1a2540; color: #1a2540; }
.btn-action.active      { background: #1a2540; color: #fff; border-color: #1a2540; }
.btn-action.completed   { background: #2d8a4e; color: #fff; border-color: #2d8a4e; }

/* ── Star rating ─────────────────────────────────────────────── */
.star-rating  { display: flex; gap: 0.15rem; margin-bottom: 0.25rem; }
.star         { font-size: 1.6rem; cursor: pointer; color: #ddd; transition: color 0.1s; user-select: none; }
.star.active  { color: #e85d26; }
.star.hover   { color: #f0956b; }

/* ── Team builder ────────────────────────────────────────────── */
.team-row   { display: flex; gap: 0.5rem; margin-bottom: 0.4rem; align-items: center; }
.team-row input { flex: 1; padding: 0.4rem 0.6rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 0.82rem; }
.team-row input:focus { outline: none; border-color: #1a2540; }
.team-remove { background: none; border: none; color: #bbb; cursor: pointer; font-size: 1rem; padding: 0 0.2rem; flex-shrink: 0; }
.team-remove:hover { color: #c00; }
.btn-add-team { background: none; border: 1px dashed #ccc; border-radius: 4px; padding: 0.35rem 0.75rem; font-family: inherit; font-size: 0.8rem; color: #888; cursor: pointer; width: 100%; margin-top: 0.25rem; }
.btn-add-team:hover { border-color: #1a2540; color: #1a2540; }

/* ── Area page: route status indicators ──────────────────────── */
.route-status-icons { display: flex; gap: 0.3rem; align-items: center; flex-shrink: 0; }
.status-shortlisted { color: #e85d26; font-size: 0.9rem; }
.status-completed   { color: #2d8a4e; font-size: 0.9rem; }

/* ── Dashboard ───────────────────────────────────────────────── */
.topbar-username { color: #c8d4ed; font-size: 0.82rem; padding: 0 0.5rem; display: inline-block; }
.topbar-username:hover { color: #fff; }

.dash-region-group   { margin-bottom: 1.5rem; }
.dash-region-heading {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #888;
  border-bottom: 1px solid #e8e8e8; padding-bottom: 0.35rem; margin-bottom: 0.5rem;
}
.dash-region-count   { font-weight: 400; color: #bbb; }

.dash-route-row {
  display: flex; align-items: flex-start; gap: 0;
  padding: 0.55rem 0; border-bottom: 1px solid #f0f0f0;
}
.dash-route-row:last-child { border-bottom: none; }
.dash-route-row .route-diff-bar { width: 3px; border-radius: 2px; align-self: stretch; flex-shrink: 0; margin-right: 0.75rem; min-height: 1.2rem; }

.dash-route-body  { flex: 1; min-width: 0; }
.dash-route-name  { font-weight: 600; font-size: 0.9rem; color: #1a2540; display: block; margin-bottom: 0.15rem; }
.dash-route-name:hover { color: #e85d26; }
.dash-route-grade { font-size: 0.78rem; color: #888; margin-left: 0.5rem; }

.dash-ascent-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.78rem; color: #888; margin-bottom: 0.2rem; }
.dash-stars .star       { font-size: 0.85rem; color: #ddd; }
.dash-stars .star.active{ color: #e85d26; }
.dash-team  { color: #666; }
.dash-notes { font-size: 0.8rem; color: #777; font-style: italic; margin-top: 0.15rem; white-space: pre-wrap; }

/* ── Public profile page ─────────────────────────────────────── */
.profile-hero {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 2rem 1.5rem 1rem;
  max-width: 860px; margin: 0 auto;
}
.profile-avatar {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #1a2540; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
}
.profile-hero h1  { font-size: 1.5rem; margin: 0 0 0.15rem; }
.profile-handle   { font-size: 0.85rem; color: #888; margin: 0; }

/* ── Dashboard page states ───────────────────────────────────── */
#dash-loading,
#dash-nologin  { padding: 2rem; }
#dash-nologin,
#dash-content  { display: none; }

/* ── Dashboard profile settings ─────────────────────────────── */
#profile-username    { max-width: 320px; }
#profile-username-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
#profile-link-row    { display: none; margin-top: 0.9rem; }

/* ── Dashboard username settings ─────────────────────────────── */
.btn-sm { font-size: 0.82rem; padding: 0.35rem 0.9rem; }

/* ── Parking link ────────────────────────────────────────────── */
.parking-link { color: #1a2540; font-weight: 600; text-decoration: none; }
.parking-link:hover { color: #e85d26; }
