/* /buoys/: the public buoy list and map, with the SeaGlance display for the chosen buoy */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
section.block.first { border-top: 0; padding-top: 56px; }
.buoys-top h1 { font-size: clamp(26px, 4.4vw, 42px); }
.lead-s { max-width: 760px; margin: 0 0 40px; }

/* The display, set flush in the dark plinth top as on the real SeaGlance */
.viewer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; scroll-margin-top: 80px; }
@media (max-width: 900px) { .viewer { grid-template-columns: 1fr; gap: 24px; } }
.device { margin: 0; }
.bezel {
  background: linear-gradient(180deg, #23282f, #15191e);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(14px, 3.2vw, 34px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.bezel canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 320 / 170;
  background: #000; border-radius: 3px;
  box-shadow: 0 0 0 3px #07090b, 0 0 0 4px #2b3139;
}
.device figcaption { color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-top: 14px; text-align: center; }

.info h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 0 0 6px; }
.info .where { color: var(--yellow); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.info .reading { font-size: 19px; color: var(--text); }
.info .real { color: var(--muted); font-size: 16px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.info .cta { margin-top: 28px; }

/* Search, map and list (as on /my/) */
section.picker-block h2 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 4px; }
.find { display: flex; gap: 16px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.find input { font: inherit; flex: 1 1 280px; padding: 10px 14px; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; }
.find input:focus { outline: none; border-color: var(--yellow); }
.find .count { color: var(--muted); font-size: 15px; }
.pick { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.map { height: 560px; background: var(--ink-2); border: 1px solid var(--line); }
.list { height: 560px; overflow-y: auto; border: 1px solid var(--line); background: var(--ink-2); padding: 4px 0; }
@media (max-width: 860px) {
  .pick { grid-template-columns: 1fr; }
  .map { height: 380px; }
  .list { height: 460px; }
}
.list details { border-bottom: 1px solid var(--line); padding: 0; }
.list details:first-of-type { border-top: 0; }
.list details details { border-bottom: 0; border-top: 1px solid var(--line); }
.list summary { cursor: pointer; padding: 10px 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px;
  font-size: 17px; font-weight: 300; }
.list summary::-webkit-details-marker { display: none; }
.list summary::after { content: none !important; display: none !important; }
.list summary::before { content: "›"; color: var(--muted); width: 1em; transition: transform .15s; display: inline-block; }
.list details[open] > summary::before { transform: rotate(90deg); }
.list summary span:first-of-type { flex: 1; }
.list summary .n { color: var(--muted); font-size: 14px; }
.list details details summary { padding-left: 32px; }
.list details details details summary { padding-left: 48px; }
.list .b { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: 0;
  cursor: pointer; padding: 7px 16px 7px 40px; }
.list details details .b { padding-left: 56px; }
.list details details details .b { padding-left: 72px; }
.list .b:hover, .list .b:focus-visible { background: var(--ink-3); outline: none; }
.list .b.on { background: var(--ink-3); color: var(--yellow); }
.list .b small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .flat .b { padding-left: 16px; }
.list .empty { color: var(--muted); padding: 16px; }
.tag { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow); margin-left: 6px; }
.legend { display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #E9ECEF; border: 2px solid #14181D;
  vertical-align: middle; margin-right: -2px; }
.dot.real { background: var(--yellow); }
.dot.now { background: transparent; border: 3px solid #FF5A3C; width: 16px; height: 16px; }
.leaflet-container { font: 300 15px/1.4 "Jost", system-ui, sans-serif; }
.leaflet-tooltip { background: var(--ink-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.leaflet-tooltip-left::before { border-left-color: var(--line); }
.leaflet-tooltip-right::before { border-right-color: var(--line); }
