/* Shared environmental station detail presentation. All data remains server rendered. */
.sv-station-page .sv-section-head{align-items:center;gap:1rem;margin-bottom:1.2rem}
.sv-station-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);
  gap:1rem;
  align-items:stretch;
}
.sv-station-hero-grid > *{min-width:0}
.sv-station-hero-visual > .card,
.sv-station-hero-facts > .card{height:100%}
.sv-station-featured{overflow:hidden}
.sv-station-featured-link{
  position:relative;display:block;overflow:hidden;
  background:#101a1e;
}
.sv-station-featured-link img{
  display:block;width:100%;height:clamp(300px,34vw,530px);
  object-fit:cover;object-position:center;
  transition:transform .25s ease;
}
.sv-station-featured-link:hover img{transform:scale(1.025)}
.sv-station-photo-tag{
  position:absolute;left:1rem;bottom:1rem;
  display:inline-block;padding:.48rem .75rem;
  background:rgba(10,20,25,.86);color:#f4f7f7;
  font-size:.85rem;font-weight:700;border-radius:.45rem;
}
.sv-station-metrics{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;
  margin-top:1rem;
}
.sv-station-metric{
  min-width:0;padding:.9rem;border:1px solid var(--sv-border);
  border-radius:var(--sv-radius);background:var(--sv-card-alt);
}
.sv-station-metric-label{font-size:.78rem;color:var(--sv-muted);margin-bottom:.45rem}
.sv-station-metric-value{
  font-size:clamp(1rem,1.4vw,1.4rem);
  font-weight:750;line-height:1.3;overflow-wrap:anywhere;
}
.sv-station-metric-age{font-size:.72rem;color:var(--sv-muted);margin-top:.5rem}
.sv-station-map{height:390px;min-height:280px;border-radius:.5rem;overflow:hidden}
.sv-station-gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem
}
.sv-station-gallery-item{
  display:flex;min-width:0;flex-direction:column;text-decoration:none;
  border:1px solid var(--sv-border);border-radius:.5rem;
  overflow:hidden;background:var(--sv-card-alt);color:var(--sv-text)
}
.sv-station-gallery-item:hover{color:#fff;border-color:var(--sv-accent)}
.sv-station-gallery-item img{
  width:100%;height:155px;object-fit:cover;background:#101a1e
}
.sv-station-gallery-item strong{
  font-size:.87rem;font-weight:650;padding:.65rem .7rem .2rem;
  overflow-wrap:anywhere
}
.sv-station-gallery-item small{
  font-size:.73rem;color:var(--sv-muted);padding:0 .7rem .7rem
}
@media(max-width:991.98px){
  .sv-station-hero-grid{grid-template-columns:1fr}
  .sv-station-featured-link img{height:clamp(280px,55vw,470px)}
}
@media(max-width:575.98px){
  .sv-station-metrics{grid-template-columns:1fr 1fr;gap:.5rem}
  .sv-station-metric{padding:.7rem}
  .sv-station-map{height:300px}
  .sv-station-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
  .sv-station-gallery-item img{height:115px}
}

/* Scale long official station names without clipping or overlapping controls. */
.sv-station-page .sv-section-head{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
}
.sv-station-page .sv-section-head > div:first-child{min-width:0;flex:1 1 350px}
.sv-station-page .sv-section-head > div:last-child{flex:0 1 auto}
.sv-station-page .sv-station-title{
  font-size:clamp(1.4rem,2.6vw,2.7rem);
  line-height:1.12;letter-spacing:-.025em;
  overflow-wrap:anywhere;hyphens:auto;
  max-width:100%;text-wrap:balance;
}
.sv-station-page .sv-station-title-medium{font-size:clamp(1.35rem,2.3vw,2.3rem)}
.sv-station-page .sv-station-title-long{font-size:clamp(1.25rem,1.9vw,1.9rem)}
.sv-station-answers p{max-width:90ch;line-height:1.65}
@media(max-width:575.98px){
  .sv-station-page .sv-section-head > div:first-child{flex-basis:100%}
  .sv-station-page .sv-station-title,
  .sv-station-page .sv-station-title-medium,
  .sv-station-page .sv-station-title-long{font-size:clamp(1.3rem,5vw,1.9rem);line-height:1.16}
  .sv-station-page .sv-section-head > div:last-child{width:100%}
  .sv-station-page .sv-section-head .btn{white-space:normal}
}

/* Keep the station layout within the viewport, including signed-in controls.
 * The shared section header becomes a column on mobile; a 100% flex-basis
 * must not be used as a vertical dimension in that layout. */
.sv-station-page{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
.sv-station-page > *, .sv-station-page .card, .sv-station-page .card-body{min-width:0;max-width:100%}
.sv-station-page .sv-section-head > div{min-width:0;max-width:100%}
.sv-station-page .sv-section-head .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.sv-station-page .table-responsive{min-width:0;max-width:100%;overflow-x:auto}
.sv-station-page #recorded-observation-history svg{max-width:100%}
.sv-station-page #recorded-observation-history form,
.sv-station-page #recorded-observation-history details{min-width:0;max-width:100%}
.sv-station-page #recorded-observation-history input{min-width:0;max-width:100%}
.sv-station-page .card-body{overflow-wrap:anywhere}
@media(max-width:767.98px){
  .sv-station-page .sv-section-head{display:flex;flex-direction:column;align-items:stretch;gap:.75rem}
  .sv-station-page .sv-section-head > div:first-child,
  .sv-station-page .sv-section-head > div:last-child{flex:0 1 auto;width:100%;max-width:100%;min-width:0}
  .sv-station-page .sv-section-head > div:last-child{justify-content:flex-start}
  .sv-station-page .sv-station-hero-grid{grid-template-columns:minmax(0,1fr)}
  .sv-station-page .sv-station-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sv-station-page .sv-station-map{width:100%;max-width:100%}
  .sv-station-page .sv-station-photo-tag{left:.5rem;right:.5rem;bottom:.5rem;font-size:.75rem}
}
