/* Complementary diagram and map theme for Geography of Nepal (shared study rules live in /study.css) */
@import url("/study.css");

figure.plate svg.geo-diagram {
  background: #faf7f2;
  border: 1px solid #e5dec9;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] figure.plate svg.geo-diagram {
  background: #171411;
  border-color: #3d332a;
}
figure.plate svg.geo-diagram .svg-title {
  fill: #2c221a;
  font-weight: 700;
}
figure.plate svg.geo-diagram .svg-label {
  fill: #2c221a;
  font-weight: 650;
}
figure.plate svg.geo-diagram .svg-sub {
  fill: #5c4636;
}
figure.plate svg.geo-diagram .svg-fault {
  stroke: #b5451d;
  stroke-dasharray: 5 4;
}
figure.plate svg.geo-diagram .svg-grid {
  stroke: rgba(44, 34, 26, 0.14);
}
html[data-theme="dark"] figure.plate svg.geo-diagram .svg-title,
html[data-theme="dark"] figure.plate svg.geo-diagram .svg-label {
  fill: #f6ead4;
}
html[data-theme="dark"] figure.plate svg.geo-diagram .svg-sub {
  fill: #ddcbb8;
}
html[data-theme="dark"] figure.plate svg.geo-diagram .svg-fault {
  stroke: #f0b48a;
}
html[data-theme="dark"] figure.plate svg.geo-diagram .svg-grid {
  stroke: rgba(243, 230, 212, 0.16);
}

.river-map {
  margin: 0.6rem 0 1.2rem;
}
.river-map svg {
  display: block;
  width: 100%;
  height: auto;
  background: #faf7f2;
  border: 1px solid #e5dec9;
  border-radius: 14px;
}
html[data-theme="dark"] .river-map svg {
  background: #171411;
  border-color: #3d332a;
}
.river-map .river-border {
  fill: rgba(181, 69, 29, 0.05);
  stroke: #8a7564;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .river-map .river-border {
  fill: rgba(240, 180, 138, 0.05);
  stroke: #a89078;
}
.river-map .river-district {
  fill: none;
  stroke: #c4b59a;
  stroke-width: 0.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.river-map .river-province {
  fill: none;
  stroke: #6d5848;
  stroke-width: 1.45;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.river-map .river-road {
  fill: none;
  stroke: #7a6a58;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .river-map .river-district { stroke: #6d5e4c; }
html[data-theme="dark"] .river-map .river-province { stroke: #d4c2a8; }
html[data-theme="dark"] .river-map .river-road { stroke: #c4b496; }
.river-map .river-admin-label {
  fill: #6a5848;
  font-weight: 550;
}
html[data-theme="dark"] .river-map .river-admin-label { fill: #d4c4ae; }
.river-map .river-course {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.river-map .river-course[data-family="koshi"] { stroke: #1d6a8a; }
.river-map .river-course[data-family="gandaki"] { stroke: #2a6b3c; }
.river-map .river-course[data-family="karnali"] { stroke: #8a4b12; }
.river-map .river-course[data-family="mahakali"] { stroke: #6a3d7a; }
.river-map .river-course[data-family="medium"] { stroke: #9a6230; }
.river-map .river-course[data-family="chure"] { stroke: #6e6248; }
html[data-theme="dark"] .river-map .river-course[data-family="koshi"] { stroke: #8ec8e0; }
html[data-theme="dark"] .river-map .river-course[data-family="gandaki"] { stroke: #8fce9a; }
html[data-theme="dark"] .river-map .river-course[data-family="karnali"] { stroke: #e0a36a; }
html[data-theme="dark"] .river-map .river-course[data-family="mahakali"] { stroke: #d2a6e4; }
html[data-theme="dark"] .river-map .river-course[data-family="medium"] { stroke: #e2b07a; }
html[data-theme="dark"] .river-map .river-course[data-family="chure"] { stroke: #c4b496; }
/* The valley map is one basin, so each stream keeps its own colour. */
.river-map[data-map="kathmandu"] .river-course[data-river="bagmati"] { stroke: #1d4e89; }
.river-map[data-map="kathmandu"] .river-course[data-river="bishnumati"] { stroke: #1f6b3a; }
.river-map[data-map="kathmandu"] .river-course[data-river="manohara"] { stroke: #8a4b12; }
.river-map[data-map="kathmandu"] .river-course[data-river="hanumante"] { stroke: #6a3d7a; }
.river-map[data-map="kathmandu"] .river-course[data-river="godawari"] { stroke: #1d6a6a; }
.river-map[data-map="kathmandu"] .river-course[data-river="kodku"] { stroke: #9a6230; }
.river-map[data-map="kathmandu"] .river-course[data-river="nakhhu"] { stroke: #5c5344; }
.river-map[data-map="kathmandu"] .river-course[data-river="balkhu"] { stroke: #8d3030; }
.river-map[data-map="kathmandu"] .river-course[data-river="tukucha"] { stroke: #3d6a32; }
.river-map[data-map="kathmandu"] .river-course[data-river="dhobikhola"] { stroke: #3a4a86; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="bagmati"] { stroke: #8ec8e0; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="bishnumati"] { stroke: #8fce9a; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="manohara"] { stroke: #e0a36a; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="hanumante"] { stroke: #d2a6e4; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="godawari"] { stroke: #9ad0c4; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="kodku"] { stroke: #e2b07a; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="nakhhu"] { stroke: #c4b496; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="balkhu"] { stroke: #f0a0a0; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="tukucha"] { stroke: #b7d89a; }
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course[data-river="dhobikhola"] { stroke: #a8b4e0; }
/* The color rules above are equally specific, so the hide rule has to come last. */
.river-map .river-course.is-off,
html[data-theme="dark"] .river-map .river-course.is-off,
.river-map[data-map="kathmandu"] .river-course.is-off,
html[data-theme="dark"] .river-map[data-map="kathmandu"] .river-course.is-off {
  stroke: none;
}
.river-map .river-town { fill: #b5451d; }
.river-map .river-dot { fill: #2c221a; stroke: #faf7f2; stroke-width: 1; }
html[data-theme="dark"] .river-map .river-town { fill: #f0b48a; }
html[data-theme="dark"] .river-map .river-dot { fill: #f6ead4; stroke: #171411; }
.river-map .river-leader {
  stroke: #8a7564;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .river-map .river-leader { stroke: #a89078; }
.river-map .river-label {
  fill: #2c221a;
  font-weight: 650;
}
html[data-theme="dark"] .river-map .river-label { fill: #f6ead4; }

.river-switchboard,
.place-switchboard {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0.55rem;
}
.river-switch,
.river-family,
.river-show-all,
.river-link,
.place-switch,
.place-family,
.place-show-all,
.place-link {
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #2c221a;
  background: #faf7f2;
  border: 1px solid #e5dec9;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  cursor: pointer;
}
.river-family,
.river-show-all,
.place-family,
.place-show-all {
  font-weight: 700;
}
.river-switch,
.place-switch { border-left-width: 3px; }
.river-switch[data-family="koshi"] { border-left-color: #1d6a8a; }
.river-switch[data-family="gandaki"] { border-left-color: #2a6b3c; }
.river-switch[data-family="karnali"] { border-left-color: #8a4b12; }
.river-switch[data-family="mahakali"] { border-left-color: #6a3d7a; }
.river-switch[data-family="medium"] { border-left-color: #9a6230; }
.river-switch[data-family="chure"] { border-left-color: #6e6248; }
.place-switch[data-family="lake"] { border-left-color: #1d6a8a; }
.place-switch[data-family="peak"] { border-left-color: #8a4b12; }
.place-switch[data-family="pass"] { border-left-color: #6a3d7a; }
.place-switch[data-family="plant"] { border-left-color: #2a6b3c; }
.river-switch[aria-pressed="false"],
.river-link[aria-pressed="false"],
.place-switch[aria-pressed="false"],
.place-link[aria-pressed="false"] {
  opacity: 0.45;
}
html[data-theme="dark"] .river-switch,
html[data-theme="dark"] .river-family,
html[data-theme="dark"] .river-show-all,
html[data-theme="dark"] .river-link,
html[data-theme="dark"] .place-switch,
html[data-theme="dark"] .place-family,
html[data-theme="dark"] .place-show-all,
html[data-theme="dark"] .place-link {
  color: #f6ead4;
  background: #1f1a15;
  border-color: #3d332a;
}
.river-map figcaption,
.map-note {
  margin-top: 0.35rem;
}
.river-link,
.place-link {
  display: inline;
  vertical-align: baseline;
}
.place-map { margin: 0.6rem 0 1.2rem; }
.place-map svg {
  display: block;
  width: 100%;
  height: auto;
  background: #faf7f2;
  border: 1px solid #e5dec9;
  border-radius: 14px;
}
html[data-theme="dark"] .place-map svg {
  background: #171411;
  border-color: #3d332a;
}
.place-map .place-border {
  fill: rgba(181, 69, 29, 0.05);
  stroke: #8a7564;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .place-map .place-border {
  fill: rgba(240, 180, 138, 0.05);
  stroke: #a89078;
}
.place-map .place-shape {
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.place-map .place-shape[data-family="lake"],
.place-map .place-point[data-family="lake"] { fill: #1d6a8a; stroke: #143e52; }
.place-map .place-point[data-family="peak"] { fill: #8a4b12; stroke: #faf7f2; }
.place-map .place-point[data-family="pass"] { fill: #6a3d7a; stroke: #faf7f2; }
.place-map .place-point[data-family="plant"] { fill: #2a6b3c; stroke: #faf7f2; }
html[data-theme="dark"] .place-map .place-shape[data-family="lake"],
html[data-theme="dark"] .place-map .place-point[data-family="lake"] { fill: #8ec8e0; stroke: #143e52; }
html[data-theme="dark"] .place-map .place-point[data-family="peak"] { fill: #e0a36a; stroke: #171411; }
html[data-theme="dark"] .place-map .place-point[data-family="pass"] { fill: #d2a6e4; stroke: #171411; }
html[data-theme="dark"] .place-map .place-point[data-family="plant"] { fill: #8fce9a; stroke: #171411; }
.place-map .place-leader {
  stroke: #8a7564;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] .place-map .place-leader { stroke: #a89078; }
.place-map .place-label { fill: #2c221a; font-weight: 650; }
html[data-theme="dark"] .place-map .place-label { fill: #f6ead4; }
.place-map .place-shape.is-off,
.place-map .place-point.is-off,
.place-map .place-label.is-off,
.place-map .place-leader.is-off,
html[data-theme="dark"] .place-map .place-shape.is-off,
html[data-theme="dark"] .place-map .place-point.is-off,
html[data-theme="dark"] .place-map .place-label.is-off,
html[data-theme="dark"] .place-map .place-leader.is-off {
  display: none !important;
}
