/* Палитра мельбурнского PID-табло — общая для всех страниц. */
:root {
  --bg:        #0a0e14;
  --panel:     #0f141c;
  --row:       #121924;
  --row-alt:   #0e141d;
  --ink:       #f4f6f8;
  --ink-dim:   #8b98a8;
  --accent:    #ffd21e;   /* фирменный жёлтый мельбурнского PID */
  --accent-2:  #35c1e8;
  --now:       #3ddc84;
  --line:      #1e2836;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tag {
  background: var(--accent);
  color: #10141a;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: clamp(13px, 1.6vw, 16px);
  text-transform: uppercase;
  text-decoration: none;
}
/* Жёлтая плашка «Электрички» — ссылка на главную. */
.tag:hover { filter: brightness(1.1); }
.tag:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.empty { text-align: center; color: var(--ink-dim); padding: 48px 0; font-size: 18px; }
.empty a { color: var(--accent-2); }

body { display: flex; justify-content: center; }
.page {
  width: 100%;
  max-width: 720px;
  padding: 24px clamp(12px, 3vw, 32px);
}
.page header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 14px;
}
.page h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; }
.page .to-map { margin-left: auto; color: var(--accent-2); font-size: 16px; }
/* Строка поиска; лупа слева — кнопка «Найти». */
.search { position: relative; margin-bottom: 12px; }
.search input {
  width: 100%;
  padding: 12px 14px 12px 46px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}
.search input:focus { border-color: var(--accent); }
.search button {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  background: none;
  border: 0;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
}
.search button:hover, .search input:focus + button { color: var(--accent); }
.search button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.page ul { list-style: none; }
.page li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
}
.page li:nth-child(odd)  a { background: var(--row); }
.page li:nth-child(even) a { background: var(--row-alt); }
.page li a:hover { color: var(--accent); }
.page li .slug { color: var(--ink-dim); font-size: 13px; }
/* Маршрут вместо станции: «Саратов-1-Пасс. → Татищево». */
.page li.trip .arrow { color: var(--accent); }
/* Пока поиск пуст: популярные станции и маршруты плитками, под ними — все. */
.page h2 {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.popular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.popular a {
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  background: var(--row);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
.popular a:hover { color: var(--accent); border-color: var(--accent); }
.popular a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
/* «Саратов-1-Пасс. → Ртищево-1» длиннее названия станции — плитки шире. */
.popular.trips { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.popular .arrow { color: var(--accent); }
/* Под популярными маршрутами — «Найти свой маршрут»: кнопка на всю ширину,
   контуром, чтобы не спорить с плитками. */
.find-route {
  display: block;
  margin-top: 8px;
  padding: 13px 14px;
  text-align: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border: 1px dashed var(--accent);
  border-radius: 6px;
}
.find-route:hover { background: var(--row); }
.find-route:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

