:root {
  --forest: #21463d;
  --forest-deep: #15352e;
  --wood: #a95f35;
  --wood-dark: #743f2b;
  --wine: #7b2f3f;
  --mustard: #d3a331;
  --mist: #e8efeb;
  --canvas: #f4f6f4;
  --ink: #192c28;
  --muted: #62716c;
  --line: #d5ddd9;
  --paper: #fff;
  --green: var(--forest);
  --amber: var(--mustard);
  font-family: "Arial", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--canvas);
  font-size: 16px;
  overflow-x: hidden;
}
a,
button,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}
header,
main,
footer {
  width: min(1240px, calc(100% - 40px));
}

header {
  position: relative;
  min-height: 170px;
  padding: 38px 150px 26px 0;
  align-items: flex-end;
  border: 0;
}
header small,
.head small,
.hostyn small {
  color: var(--wood-dark);
  letter-spacing: 0;
  font-size: 12px;
}
header h1 {
  max-width: 850px;
  margin: 5px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(37px, 6vw, 70px);
  font-weight: 500;
  line-height: 0.98;
  color: var(--forest-deep);
}
header p {
  color: var(--muted);
  font-weight: 700;
}
header > span {
  max-width: 220px;
  padding-bottom: 5px;
  color: var(--forest);
  text-align: right;
}
.chair-mark {
  position: absolute;
  right: 8px;
  bottom: 19px;
  width: 100px;
  height: 132px;
  object-fit: contain;
}

main {
  padding-bottom: 10px;
}
section {
  position: relative;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 7px 24px rgba(23, 53, 45, 0.055);
}
section:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  width: 4px;
  height: 48px;
  border-radius: 0 6px 6px 0;
  background: var(--wood);
}
.satellite-panel:before,
.weather-panel:before {
  display: none;
}
.head {
  min-height: 59px;
  align-items: flex-start;
  border-color: var(--line);
}
.head h2,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--forest-deep);
}
.head a,
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  color: var(--forest);
  border-bottom: 2px solid var(--wood);
  text-decoration: none;
}
.head a:hover,
.links a:hover {
  background: var(--mist);
}

.satellite-panel {
  border: 0;
  box-shadow: none;
}
.satellite-panel .head {
  padding: 21px 25px;
}
.satellite-panel img {
  height: clamp(220px, 28vw, 320px);
}
.satellite-map {
  overflow: hidden;
}
.bph-marker {
  border-radius: 2px;
}
.weather {
  background: var(--forest);
  padding: 28px;
}
.weather > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.weather-grid span,
.forecast div {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.forecast-day > .forecast div {
  min-height: 91px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.columns,
.split-wide {
  gap: 20px;
}
.columns.notice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.columns.directory-thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.split-wide.nature-summary-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.split-wide.parcels-food-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.columns > section,
.split-wide > section {
  height: calc(100% - 20px);
}
.item,
.traffic-row,
.directory-row,
.event-row {
  transition: background-color 0.15s ease;
}
.item:hover,
.traffic-row:hover,
.directory-row:hover,
.event-row:hover {
  background: #f2f5f3;
}
.empty {
  border-left: 3px solid var(--wood);
  background: #f1f4f2;
}
.card-actions a,
.mpv-panel a,
.mpv-fallback a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.open-pill,
.build-status {
  border-radius: 2px;
}

.train-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.train-row {
  border: 1px solid #d8e4de;
  border-top: 4px solid var(--forest);
  border-left-width: 1px;
  background: #f4f8f6;
}
.train-row time {
  font-family: Georgia, "Times New Roman", serif;
}
.leisure-card,
.fuel-station,
.restaurant-grid > article,
.emergency-grid article,
.construction-grid article,
.ski-card {
  border-radius: 3px;
}
.restaurant-grid > article {
  border-top-color: var(--wood);
}
.camera-card,
.pool-camera,
.ski-camera {
  border-radius: 3px;
}
.camera-card img,
.pool-camera img,
.ski-camera img {
  transition: transform 0.25s ease;
}
.camera-card:hover img,
.pool-camera:hover img,
.ski-camera:hover img {
  transform: scale(1.015);
}

.mpv-map,
#construction-map {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.hostyn {
  background: #e9efeb !important;
  border-color: #cad8d1;
}
.hostyn:after {
  content: "";
  position: absolute;
  right: 22px;
  top: 18px;
  width: 45px;
  height: 45px;
  border: 6px solid var(--wood);
  border-left-color: transparent;
  border-radius: 50%;
  opacity: 0.45;
}
.hostyn-content {
  min-width: 0;
}
.hostyn-stalls a {
  border-top-color: var(--wood);
  border-radius: 3px;
}
.links {
  margin-top: 12px;
}

details {
  border-radius: 3px;
}
summary {
  min-height: 42px;
  display: flex;
  align-items: center;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.note {
  line-height: 1.5;
}
.leaflet-control a {
  min-width: 30px;
  min-height: 30px;
}

@media (min-width: 761px) and (max-width: 1050px) {
  header,
  main,
  footer {
    width: min(100% - 32px, 960px);
  }
  header {
    padding-right: 120px;
  }
  .chair-mark {
    width: 78px;
    height: 112px;
  }
  .columns {
    grid-template-columns: 1fr 1fr;
  }
  .train-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .leisure-grid,
  .restaurant-grid,
  .emergency-grid,
  .construction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .camera-grid {
    grid-template-columns: 1.45fr 1fr;
  }
  .camera-card.camera-main {
    grid-row: auto;
  }
  .camera-card:last-child {
    grid-column: 1/-1;
  }
  .cinema-grid,
  .tennis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hostyn {
    grid-template-columns: minmax(230px, 0.7fr) 1.3fr !important;
  }
  .hostyn-stalls {
    grid-template-columns: 1fr 1fr;
  }
  .mpv-map,
  .mpv-map iframe {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  header,
  main,
  footer {
    width: calc(100% - 20px);
  }
  header {
    min-height: 0;
    padding: 27px 70px 20px 2px;
    align-items: flex-start;
  }
  .chair-mark {
    right: 1px;
    bottom: 18px;
    width: 58px;
    height: 84px;
  }
  header h1 {
    font-size: 36px;
    line-height: 1.02;
  }
  header > span {
    max-width: none;
    padding: 5px 0 0;
    text-align: left;
    font-size: 13px;
  }
  section {
    margin-top: 12px;
    padding: 17px 15px;
    box-shadow: 0 3px 14px rgba(23, 53, 45, 0.05);
  }
  section:before {
    top: 18px;
    height: 36px;
  }
  .head {
    min-height: 0;
    gap: 8px;
  }
  .head h2,
  h2 {
    font-size: 24px;
  }
  .head a,
  .links a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--wood);
  }
  .satellite-panel .head {
    padding: 17px;
  }
  .satellite-panel img {
    height: 190px;
  }
  .weather {
    padding: 21px 16px;
  }
  .weather > strong {
    font-size: 48px;
  }
  .weather-grid {
    gap: 6px;
  }
  .weather-grid span {
    padding: 9px 7px;
  }
  .forecast-day > .forecast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .forecast-day > .forecast div {
    min-height: 86px;
  }
  .columns,
  .split-wide {
    display: block;
  }
  .columns > section,
  .split-wide > section {
    height: auto;
  }
  .train-list,
  .news-grid,
  .leisure-grid,
  .restaurant-grid,
  .emergency-grid,
  .construction-grid,
  .ski-grid {
    grid-template-columns: 1fr;
  }
  .train-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 10px;
  }
  .train-row time {
    grid-row: 1/4;
  }
  .event-row {
    grid-template-columns: 82px 1fr;
    gap: 9px;
  }
  .event-row time {
    align-self: start;
  }
  .directory-row {
    padding: 13px 2px;
  }
  .directory-row > span {
    font-size: 26px;
  }
  .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-actions a {
    min-height: 44px;
    text-align: center;
  }
  .camera-grid {
    grid-template-columns: 1fr 1fr;
  }
  .camera-card.camera-main {
    grid-column: 1/-1;
  }
  .camera-card img {
    min-height: 135px;
  }
  .camera-card.camera-main img {
    min-height: 205px;
  }
  .pool-layout {
    grid-template-columns: 1fr;
  }
  .pool-camera,
  .pool-camera img {
    min-height: 210px;
  }
  .mpv-panel {
    grid-template-columns: 1fr;
  }
  .mpv-map,
  .mpv-map iframe {
    height: 380px;
    min-height: 380px;
  }
  #construction-map {
    height: 310px;
  }
  .tennis-grid,
  .cinema-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hostyn {
    grid-template-columns: 1fr !important;
  }
  .hostyn-camera img {
    height: 220px;
  }
  .hostyn:after {
    display: none;
  }
  .hostyn-stalls {
    grid-template-columns: 1fr;
  }
  .links {
    display: grid;
  }
  .mushroom-values {
    grid-template-columns: 1fr 1fr;
  }
  .fuel-prices strong {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  header h1 {
    font-size: 32px;
  }
  .weather-grid,
  .mushroom-values {
    grid-template-columns: 1fr 1fr;
  }
  .camera-grid,
  .tennis-grid,
  .cinema-grid {
    grid-template-columns: 1fr;
  }
  .camera-card.camera-main {
    grid-column: auto;
  }
  .event-row {
    grid-template-columns: 1fr;
  }
  .event-row time {
    text-align: left;
  }
  .traffic-row {
    gap: 8px;
  }
  .restaurant-heading {
    flex-direction: column;
  }
  .open-pill {
    align-self: flex-start;
  }
  .bph-marker {
    max-width: 145px;
    line-height: 1.2;
  }
  .mpv-map,
  .mpv-map iframe {
    height: 330px;
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .camera-card img,
  .pool-camera img,
  .ski-camera img {
    transition: none;
  }
}
.mushroom-score > img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 3px;
}
.inaturalist-groups {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.inaturalist-groups details {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.inaturalist-groups summary {
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.inaturalist-groups summary small {
  margin-left: auto;
  color: var(--muted);
}
.inaturalist-groups details > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}
.inaturalist-groups a {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
}
.inaturalist-groups img {
  width: 128px;
  height: 96px;
  object-fit: cover;
}
.inaturalist-groups span {
  min-width: 0;
}
.inaturalist-groups span b {
  display: block;
}
.inaturalist-groups span small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .inaturalist-groups details > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .inaturalist-groups details > div {
    grid-template-columns: 1fr;
  }
  .inaturalist-groups a {
    grid-template-columns: 112px 1fr;
  }
  .inaturalist-groups img {
    width: 112px;
    height: 86px;
  }
  .columns.notice-row {
    grid-template-columns: 1fr;
  }
  .columns.directory-thirds {
    grid-template-columns: 1fr;
  }
  .split-wide.nature-summary-row {
    grid-template-columns: 1fr;
  }
  .split-wide.parcels-food-row {
    grid-template-columns: 1fr;
  }
}

/* Compact live views so they do not dominate the page. */
.webcam-section .camera-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 8px;
  margin-top: 9px;
}
.webcam-section .camera-card,
.webcam-section .camera-card.unavailable,
.webcam-section .camera-card.camera-main {
  grid-column: auto;
  grid-row: auto;
  height: 218px;
  min-height: 0;
}
.webcam-section .camera-card img,
.webcam-section .camera-card.camera-main img {
  height: 218px;
  min-height: 0;
}
.webcam-section .camera-card span {
  padding: 13px 9px 6px;
  line-height: 1.15;
}
.webcam-section .note {
  margin-top: 7px;
}
.bus-line-marker {
  background: transparent;
  border: 0;
}
.bus-line-marker span {
  min-width: 30px;
  height: 24px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #c64f38;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(20, 35, 30, 0.45);
}
.sun-times {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.sun-times span {
  white-space: nowrap;
}
.environment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.environment-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  background: #f4f8f6;
}
.environment-grid article > strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}
.environment-grid article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
}
.rymice-event {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.rymice-event small { white-space: nowrap; color: var(--muted); }
@media (max-width: 650px) {
  .environment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .webcam-section .camera-grid {
    grid-template-columns: 1fr 1fr;
  }
  .webcam-section .camera-card,
  .webcam-section .camera-card.unavailable,
  .webcam-section .camera-card.camera-main,
  .webcam-section .camera-card img,
  .webcam-section .camera-card.camera-main img {
    height: 162px;
  }
  .webcam-section .camera-card small {
    display: none;
  }
}
.transport-live-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.transport-live-row>section,.transport-bus-column>section{margin:0 0 16px}.transport-bus-column{min-width:0}.transport-live-row .mpv-map-grid{grid-template-columns:1fr}.transport-live-row .mpv-map{height:320px}@media(max-width:800px){.transport-live-row{grid-template-columns:1fr}.transport-live-row .mpv-map{height:300px}}
.environment-river-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.environment-river-row>section{min-width:0;margin:0 0 16px;height:calc(100% - 16px)}@media(max-width:800px){.environment-river-row{grid-template-columns:1fr}.environment-river-row>section{height:auto}}
.community-news-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.library-cinema-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;align-items:start}.community-news-row>section,.library-cinema-row>section{min-width:0;margin:0 0 16px;height:calc(100% - 16px)}@media(max-width:800px){.community-news-row,.library-cinema-row{grid-template-columns:1fr}.community-news-row>section,.library-cinema-row>section{height:auto}}
.transport-live-row .train-list{grid-template-columns:1fr}
.nature-subsection{width:100%;grid-column:1/-1}

/* Unified compact dashboard layout. Keep this layer last so legacy modules share one rhythm. */
body{line-height:1.42}
header,main,footer{width:min(1280px,calc(100% - 32px))}
header{min-height:132px;padding:26px 132px 20px 0}
header h1{font-size:clamp(35px,5vw,60px);line-height:1.02}
.chair-mark{width:82px;height:108px;bottom:14px}
section{margin-top:14px;padding:18px;border-radius:4px;box-shadow:0 3px 14px rgba(23,53,45,.045)}
section:before{top:18px;height:38px;width:3px}
.head{min-height:48px;gap:10px;padding-bottom:9px}
.head h2,h2{font-size:clamp(21px,2vw,27px);line-height:1.15}
.head small,header small,.hostyn small{font-size:11px}
.head a,.links a,.card-actions a{min-height:36px;padding:6px 9px}
p{margin-top:9px;margin-bottom:9px}
.columns,.split-wide,.transport-live-row,.environment-river-row,.community-news-row,.library-cinema-row{gap:12px}
.columns>section,.split-wide>section,.transport-live-row>section,.transport-bus-column>section,.environment-river-row>section,.community-news-row>section,.library-cinema-row>section{margin-top:12px;margin-bottom:0;height:auto}
.dashboard-subsection{margin:18px 0;padding:14px;border:1px solid #d2ddd7;background:#edf3ef}
.subsection-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 10px;padding:2px 3px 10px;border-bottom:2px solid #c8d8d0}
.subsection-title h2{margin:0;font-size:25px}
.subsection-title small{font-size:11px;letter-spacing:0}
.dashboard-subsection>section:first-of-type,.dashboard-subsection>div+section{margin-top:10px}
.item,.traffic-row,.directory-row,.event-row{padding-top:9px;padding-bottom:9px}
.empty{margin:10px 0;padding:11px}
.note{margin:9px 0 0;line-height:1.35}
.open-pill,.build-status{white-space:nowrap}
.restaurant-row summary,.directory-row,details>summary{min-height:44px}
.mpv-map,#nature-trails-map,#hostyn-paths-map,#sports-map,#waste-map{max-width:100%}
.transport-live-row .mpv-map{height:300px}
.camera-grid,.restaurant-grid,.directory-grid,.construction-grid,.emergency-grid,.leisure-grid,.ski-grid{gap:9px}
.webcam-section .camera-card,.webcam-section .camera-card.unavailable,.webcam-section .camera-card.camera-main{height:220px}
.webcam-section .camera-card img,.webcam-section .camera-card.camera-main img{height:220px}

@media (min-width:761px) and (max-width:1050px){
  header,main,footer{width:min(100% - 28px,960px)}
  header{min-height:120px;padding:22px 105px 17px 0}
  .chair-mark{width:70px;height:94px}
  section{padding:16px}
  .community-news-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .library-cinema-row{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  .transport-live-row,.environment-river-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .head{min-height:45px}
  .head h2,h2{font-size:22px}
  .head a{font-size:13px}
  .webcam-section .camera-card,.webcam-section .camera-card.unavailable,.webcam-section .camera-card.camera-main,.webcam-section .camera-card img,.webcam-section .camera-card.camera-main img{height:190px}
}

@media (max-width:760px){
  header,main,footer{width:calc(100% - 20px)}
  header{min-height:102px;padding:18px 72px 14px 0}
  header h1{font-size:34px}
  header>span{max-width:none;text-align:left;font-size:13px}
  .chair-mark{right:0;bottom:10px;width:56px;height:76px}
  section{margin-top:10px;padding:14px;box-shadow:none}
  section:before{top:14px;height:32px}
  .head{min-height:0;flex-direction:row;align-items:flex-start;flex-wrap:wrap}
  .head h2,h2{font-size:21px}
  .head a{min-height:34px;padding:5px 7px;font-size:13px}
  .dashboard-subsection{margin:12px 0;padding:9px}
  .subsection-title{align-items:flex-start;flex-direction:column;gap:2px;padding:2px 3px 8px}
  .subsection-title h2{font-size:23px}
  .columns,.split-wide,.transport-live-row,.environment-river-row,.community-news-row,.library-cinema-row{grid-template-columns:1fr;gap:0}
  .columns>section,.split-wide>section,.transport-live-row>section,.transport-bus-column>section,.environment-river-row>section,.community-news-row>section,.library-cinema-row>section{margin-top:9px}
  .weather{padding:18px}
  .weather>strong{font-size:42px}
  .forecast{gap:6px}
  .forecast div{flex-basis:78px;padding:7px 4px}
  .transport-live-row .mpv-map,#rymice-bus-map{height:270px}
  #nature-trails-map,#hostyn-paths-map,#sports-map,#waste-map{height:360px}
  .webcam-section .camera-card,.webcam-section .camera-card.unavailable,.webcam-section .camera-card.camera-main,.webcam-section .camera-card img,.webcam-section .camera-card.camera-main img{height:150px}
}

@media (max-width:430px){
  header,main,footer{width:calc(100% - 14px)}
  header{padding-left:3px}
  section{padding:12px}
  .dashboard-subsection{padding:7px}
  .head h2,h2{font-size:20px}
  .weather-grid{gap:6px}
  .weather-grid span{padding:7px}
  .webcam-section .camera-grid{grid-template-columns:1fr 1fr;gap:6px}
  .webcam-section .camera-card,.webcam-section .camera-card.unavailable,.webcam-section .camera-card.camera-main,.webcam-section .camera-card img,.webcam-section .camera-card.camera-main img{height:132px}
}

/* Tennis schedule uses the full sport subsection width. */
.sport-subsection .tennis-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;width:100%;margin-top:12px}
.sport-subsection .tennis-grid article{min-width:0;padding:10px;border:1px solid var(--line);border-top:3px solid var(--forest);background:#f7faf8}
.sport-subsection .tennis-grid article>b{font-size:15px;color:var(--forest-deep)}
.sport-subsection .tennis-grid span{min-height:42px;margin-top:7px;padding:7px;overflow-wrap:anywhere;line-height:1.25}
.sport-subsection .tennis-grid span>b{display:block;margin-bottom:3px;font-size:13px}
@media (min-width:761px) and (max-width:1050px){.sport-subsection .tennis-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:760px){.sport-subsection .tennis-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sport-subsection .tennis-grid article{padding:9px}}

/* Compact mushroom status and balanced content grids. */
.nature-subsection .nature-summary-row{grid-template-columns:minmax(300px,.9fr) minmax(0,2.1fr);align-items:start}
.nature-subsection .mushroom-panel{display:grid;grid-template-columns:1fr;gap:11px;margin-top:11px;padding:13px;border:1px solid var(--line);border-left:5px solid #718074;background:#f4f8f6}
.nature-subsection .mushroom-score{display:flex;flex-direction:row;align-items:center;gap:11px;min-width:0}
.nature-subsection .mushroom-score>img{flex:0 0 48px;width:48px;height:48px;margin:0}
.nature-subsection .mushroom-score>div{min-width:0}
.nature-subsection .mushroom-score strong,.nature-subsection .mushroom-score small{display:block}
.nature-subsection .mushroom-score strong{font-size:18px;line-height:1.2}
.nature-subsection .mushroom-score small{margin-top:3px;color:var(--muted);font-size:12px}
.mushroom-meter{height:8px;overflow:hidden;background:#dbe4df;border-radius:4px}
.mushroom-meter i{display:block;height:100%;background:#718074;border-radius:inherit}
.mushroom-panel.good .mushroom-meter i{background:#26834f}.mushroom-panel.fair .mushroom-meter i{background:#77a340}.mushroom-panel.limited .mushroom-meter i{background:#d49a2e}.mushroom-panel.poor .mushroom-meter i{background:#a76748}
.nature-subsection .mushroom-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.nature-subsection .mushroom-values span{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:58px;padding:8px;border:1px solid #dde6e1;background:#fff}
.nature-subsection .mushroom-values small{color:var(--muted);font-size:11px;line-height:1.2}
.nature-subsection .mushroom-values b{margin-top:4px;font-size:16px}
.nature-subsection .mushroom-panel>p{grid-column:auto;margin:0;padding-top:2px;font-size:13px;line-height:1.4}
.rymice-grid,.leisure-grid,.construction-grid{align-items:stretch}
.rymice-grid>*,.leisure-grid>*,.construction-grid>*{height:100%}
@media (max-width:760px){.nature-subsection .nature-summary-row{grid-template-columns:1fr}.nature-subsection .mushroom-values{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Final density pass: labels carry source/context only, commands stay compact. */
section{padding:15px}
section:before{top:15px;height:34px}
.head{min-height:40px;padding-bottom:7px}
.head h2,h2{font-size:clamp(20px,1.8vw,25px)}
.dashboard-subsection{padding:11px;margin:15px 0}
.subsection-title{margin-bottom:7px;padding-bottom:7px}
.subsection-title h2{font-size:23px}
.compact-source-head{min-height:0;justify-content:flex-end;border-bottom:0;padding:0}
.compact-source-head a{min-height:32px;padding:4px 7px}
.rymice-grid{margin-top:8px}
.restaurant-row>summary,.directory-row,details>summary{min-height:40px}
.restaurant-row>summary{padding-top:8px;padding-bottom:8px}
@media(max-width:760px){section{padding:12px}.dashboard-subsection{padding:7px;margin:10px 0}.head{min-height:36px}.head h2,h2{font-size:20px}}

/* Requested space allocation for the primary, tennis and Hostyn modules. */
.dashboard-hero-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.dashboard-hero-row>section{display:flex;flex-direction:column;min-width:0;height:calc(100% - 12px);margin-top:12px}
.dashboard-hero-row .satellite-map{flex:1;min-height:0}
.dashboard-hero-row .satellite-map img{height:100%;min-height:390px;max-height:none}
.dashboard-hero-row .weather-panel .weather{flex:1;height:100%}
.tennis-layout{display:grid;grid-template-columns:minmax(220px,2fr) minmax(0,3fr);gap:12px;align-items:start;margin-top:10px}
.tennis-club-info,.tennis-schedule{min-width:0}
.tennis-club-info .leisure-grid{grid-template-columns:1fr;margin-top:0}
.tennis-schedule .subheading{margin:0 0 7px;font-size:16px}
.sport-subsection .tennis-schedule .tennis-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:0}
.sport-subsection .tennis-grid .unavailable{background:#eef0ef;color:var(--muted)}
.hostyn-left{display:flex;flex-direction:column;gap:10px;min-width:0}
.hostyn-food-compact{padding-top:10px;border-top:1px solid var(--line)}
.hostyn-food-compact .head{min-height:0;padding-bottom:6px}
.hostyn-food-compact .head h2{font-size:19px}
.hostyn-food-compact .hostyn-food-grid{margin-top:7px}
.hostyn-food-compact .restaurant-row>summary{padding:7px 9px}
.hostyn-food-compact .note{font-size:11px}
@media(min-width:761px) and (max-width:1050px){.dashboard-hero-row{grid-template-columns:1fr 1fr}.dashboard-hero-row .satellite-map img{min-height:350px}.tennis-layout{grid-template-columns:minmax(190px,2fr) minmax(0,3fr)}.sport-subsection .tennis-schedule .tennis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-hero-row,.tennis-layout{grid-template-columns:1fr}.dashboard-hero-row>section{height:auto}.dashboard-hero-row .satellite-map img{height:210px;min-height:210px}.sport-subsection .tennis-schedule .tennis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hostyn-left{gap:8px}}
.alerts-combined{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.alerts-column{min-width:0}.alerts-column h3{margin:0 0 7px;font-size:16px;color:var(--forest-deep)}.alerts-column .warning,.alerts-column .empty{margin-top:0}@media(max-width:760px){.alerts-combined{grid-template-columns:1fr;gap:10px}}
#fuel .fuel-station{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(190px,1.2fr) auto;align-items:center;gap:9px;margin-top:7px;padding:9px 10px;border-top-width:3px}
#fuel .fuel-prices{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:0}
#fuel .fuel-prices div{display:grid;gap:1px;padding:5px 7px;line-height:1.2}
#fuel .fuel-prices strong{font-size:16px}
#fuel .card-actions{flex-wrap:nowrap;margin-top:0;gap:4px}
#fuel .card-actions a{min-height:31px;padding:4px 6px;font-size:11px}
#fuel>.note{margin:6px 0 0}
@media(max-width:760px){#fuel .fuel-station{grid-template-columns:1fr 1fr}#fuel .fuel-place{grid-column:1/-1}#fuel .card-actions{justify-content:flex-start}#fuel .fuel-prices{grid-template-columns:1fr 1fr}}
@media(max-width:430px){#fuel .fuel-station{grid-template-columns:1fr}#fuel .fuel-place{grid-column:auto}#fuel .fuel-prices{grid-template-columns:1fr 1fr}#fuel .card-actions{flex-wrap:wrap}}
.environment-river-row{align-items:stretch}
.environment-river-row>section{height:100%;margin-bottom:0}
@media(max-width:800px){.environment-river-row>section{height:auto}}

/* Shared visual language for every dashboard module. */
:root{
  --text-base:15px;
  --text-small:12px;
  --text-control:14px;
  --heading-card:24px;
  --heading-inner:17px;
  --card-radius:5px;
}
body{font-size:var(--text-base);line-height:1.45}
section{border-color:var(--line);border-radius:var(--card-radius);background:var(--paper)}
.head{min-height:42px;align-items:flex-start;border-color:var(--line)}
.head h2,.head h2 a,section>h2{font-family:Georgia,"Times New Roman",serif;font-size:var(--heading-card);font-weight:500;line-height:1.18;color:var(--forest-deep)}
.subsection-title h2{font-family:Georgia,"Times New Roman",serif;font-size:26px;font-weight:500;line-height:1.18}
h3,.subheading,.alerts-column h3,.hostyn-food-compact .head h2,.tennis-schedule .subheading{font-family:Arial,system-ui,sans-serif;font-size:var(--heading-inner);font-weight:700;line-height:1.3;color:var(--forest-deep)}
header small,.head small,.hostyn small,.subsection-title small,.note,.source-note{font-size:var(--text-small);line-height:1.4}
.head small,.subsection-title small{font-weight:700;text-transform:uppercase}
p,li,.item,.traffic-row,.event-row,.directory-row,.restaurant-row{font-size:var(--text-base)}
button,.head a,.links a,.card-actions a,summary,.open-pill,.build-status{font-family:Arial,system-ui,sans-serif;font-size:var(--text-control);line-height:1.3}
.head a,.links a,.card-actions a{min-height:36px}
details>summary,.restaurant-row>summary{min-height:42px;padding-top:9px;padding-bottom:9px;font-weight:700}
.item,.traffic-row,.event-row,.directory-row,.restaurant-row,.civic-card,.camera-card,.fuel-station,.mushroom-panel{border-radius:3px}
.open-pill,.build-status{font-size:12px;font-weight:700;letter-spacing:0}
.empty{font-size:var(--text-base);line-height:1.4}
.weather-grid small,.forecast small,.mushroom-values small{font-size:var(--text-small)}
.weather-grid b,.forecast b,.mushroom-values b{font-size:16px;line-height:1.25}
.hostyn-food-compact .note,#fuel .card-actions a{font-size:var(--text-small)}

@media(max-width:760px){
  :root{--text-base:15px;--heading-card:21px;--heading-inner:16px}
  .subsection-title h2{font-size:23px}
  .head{min-height:38px}
}
.header-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}.header-links a{padding:7px 10px;border:1px solid rgba(255,255,255,.35);color:inherit;text-decoration:none;font-size:.82rem;font-weight:800}.header-links a:hover{background:rgba(255,255,255,.12)}
@media(max-width:700px){.header-links{justify-content:flex-start;margin-left:0;width:100%}}
