/* //EYERUS camera directory pages (/cameras, /cameras/us/texas …), on top of legal.css: its bar, column, type and
   greys. Lists ranked by count carry a faint bar for each row's share of the first, as in Vercel's analytics; the
   plain indexes (A to Z, nearby) sit on hairlines. One filled pill is the only call to action. No cards, no icons. */

.cams .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.cams .crumbs li { margin: 0; color: var(--muted); }
.cams .crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.cams .crumbs a { color: var(--muted); text-decoration: none; }
.cams .crumbs a:hover { color: var(--ink); }
.cams .crumbs [aria-current] { color: var(--text-2); }
.cams h1 { max-width: 18ch; }
.cams .lede { max-width: 60ch; margin-bottom: 32px; }

/* the way in: open the map on this place with the cameras on, and when the numbers were counted */
.cam-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 8px; max-width: none; }
.cam-go .updated { margin: 0; }
.cam-cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 9999px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .16s var(--ease), transform .12s var(--ease);
}
.cam-cta:hover { background: var(--ink-hi); }
.cam-cta:active { transform: scale(.97); }
/* round 36: the same way in again at the end of the page, under what an account can open */
.cam-sec .cam-go { margin: 20px 0 0; }

/* round 37: the intro beside the dot map where there's room; the map under it on a phone */
.cam-hero.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px 56px; align-items: center; }
/* the warnings in effect there now, and the cameras with live video: one quiet line */
.cam-live { max-width: 60ch; margin: -16px 0 24px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.cam-live .cam-src { color: var(--muted); }
.cam-live .cam-sep { color: var(--line-2); }
.cam-live time { font-variant-numeric: tabular-nums; }
/* the dot map: the place filled, what's around it a hairline, the cameras as dots in three sizes (each at least 3:1
   against the fill, WCAG 1.4.11) */
.cam-fig { margin: 0; max-width: none; }
.cam-map { display: block; width: 100%; height: auto; max-height: 440px; }
.cam-map .o { fill: var(--surface-2); fill-rule: evenodd; stroke: var(--line-2); stroke-width: .8; stroke-linejoin: round; }
.cam-map .n { fill: none; stroke: var(--line); stroke-width: .6; stroke-linejoin: round; }
.cam-map .r { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.cam-map .d0, .cam-map .d1, .cam-map .d2 { fill: none; stroke: var(--ink); stroke-linecap: round; }
.cam-map .d0 { stroke-width: 1.6; stroke: var(--muted); }
.cam-map .d1 { stroke-width: 2.8; stroke: var(--text-2); }
.cam-map .d2 { stroke-width: 4.2; stroke: var(--ink-hi); }
.cam-fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* two lists side by side where there's room (places and roads; what they show and where they come from) */
.cam-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
.cams h3 { margin: 40px 0 0; font-size: 17px; }
.cam-note { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cam-note a { color: var(--text-2); }
.cam-note a:hover { color: var(--ink); }

.cam-rank { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
.cam-rank li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; max-width: none; }
.cam-rank .cam-l { min-width: 0; overflow-wrap: anywhere; }
.cam-rank .cam-n { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
/* links carry a quiet underline, so they differ from plain rows by more than colour (round 36), and are never
   narrower than a 24px target (I-5) */
.cam-rank a { display: inline-block; min-width: 24px; text-decoration: underline; text-decoration-color: var(--line-2); }
.cam-rank a:hover { text-decoration-color: var(--muted); }
.cam-rank .cam-rest, .cam-rank .cam-plain { color: var(--muted); }

/* ranked by count: the bar behind each row is its share of the busiest */
.cam-rank.bars li { position: relative; isolation: isolate; padding: 8px 12px; border-radius: 6px; }
.cam-rank.bars li + li { margin-top: 2px; }
.cam-rank.bars li::before {
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--w, 0%); min-width: 4px;
  border-radius: 6px; background: var(--surface-2); transition: background-color .16s var(--ease);
}
.cam-rank.bars li:hover::before { background: var(--surface-3); }
.cam-rank.bars .cam-n { color: var(--text-2); }
.cam-rank.bars .cam-rest::before { display: none; }
/* a world source's licence line, as its licence asks */
.cam-credit { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cam-credit a { text-decoration: underline; text-decoration-color: var(--line-2); }

/* a plain index: rows on hairlines, in columns as wide as the page allows */
.cam-rank:not(.bars) li { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.cam-rank.cols { columns: 3 220px; column-gap: 40px; }

/* camera names: the name, and its town or road under it */
.cam-names { margin: 16px 0 0; padding: 0; list-style: none; columns: 3 240px; column-gap: 40px; font-size: 15px; line-height: 1.45; }
.cam-names li { margin: 0; padding: 8px 0; max-width: none; break-inside: avoid; overflow-wrap: anywhere; }
.cam-names span { display: block; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .cam-hero.has-map { grid-template-columns: 1fr; gap: 24px; }
  .cam-hero.has-map .cam-fig { max-width: 520px; }
}
@media (max-width: 760px) {
  .cam-pair { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cams .crumbs ol { margin-bottom: 16px; }
  .cam-cta { width: 100%; justify-content: center; }
  .cam-rank.bars li { padding: 8px 10px; }
}
@media (pointer: coarse) {
  .cam-rank a { display: inline-flex; align-items: center; min-height: 28px; }
}
@media (forced-colors: active) {
  .cam-rank.bars li::before { display: none; }
  .cam-map .o { fill: Canvas; stroke: CanvasText; }
  .cam-map .n, .cam-map .r { stroke: GrayText; }
  .cam-map .d0, .cam-map .d1, .cam-map .d2 { stroke: CanvasText; }
}
