:root {
  --forest: #0f2a24;
  --teal: #12494a;
  --moss: #4b7a54;
  --water: #7fc1be;
  --sand: #c9b382;
  --sand-deep: #a8925a;
  --bg: #f4f6f4;
  --surface: #fff;
  --ink: #12231f;
  --muted: #5d6f69;
  --line: #dfe6e2;
  --soft: #e9f0ee;
  --shadow: 0 1px 2px rgba(15, 42, 36, 0.05), 0 10px 30px -12px rgba(15, 42, 36, 0.18);
  --radius: 22px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme='dark'] {
  --bg: #0d1b18;
  --surface: #142824;
  --ink: #e8f0ed;
  --muted: #97aaa4;
  --line: #23403a;
  --soft: #1a3430;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: -76px;
  background: linear-gradient(180deg, rgba(9, 28, 24, 0.68), rgba(9, 28, 24, 0));
  transition: 0.25s;
}
.hdr.solid {
  background: rgba(15, 42, 36, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.4);
}
.hdr-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
}
.logo img {
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav a {
  color: rgba(255, 255, 255, 0.84);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.hdr-r {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.iconbtn,
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
}
.avatar {
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--moss), var(--teal));
}
.brand-goldfish { color: var(--sand-deep); }
.brand-net { color: #fff; }
.account-menu .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-menu {
  position: relative;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-popover {
  position: absolute;
  right: 0;
  top: 50px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.account-popover a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
.account-popover a:hover {
  background: var(--soft);
}
.burger {
  display: none;
}
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(145deg, #173e36 0%, #0f2a24 52%, #1d5c59 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/static/img/fon.jpg') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 17, 0.36), transparent 42%, rgba(5, 20, 17, 0.58));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 92px;
}
.hero h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.underwater-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #16666d, #0c4249 48%, #071f24);
}
.underwater-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero.underwater-hero::after {
  background: linear-gradient(180deg, rgba(7, 31, 36, 0.4), transparent 30%, transparent 55%, rgba(7, 31, 36, 0.65));
  pointer-events: none;
}
.hero .lead {
  max-width: 48ch;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 1.5vw, 21px);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.45);
}
.search .ico {
  margin-left: 14px;
  color: var(--muted);
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 6px;
  font-size: 17px;
  color: var(--ink);
}
.search button {
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.search button:hover {
  background: var(--teal);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(15, 42, 36, 0.3);
  color: #fff;
  cursor: pointer;
}
main > section:not(.hero) {
  padding-top: 96px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 0 0 9px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
}
.section-link,
.card-link {
  color: var(--teal);
  font-weight: 700;
}
.section-link {
  white-space: nowrap;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(145deg, var(--teal), var(--water));
}
.card-media img,
.post-media img,
.river-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.card:hover .card-media img {
  transform: scale(1.035);
}
.media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: linear-gradient(145deg, var(--teal), var(--water));
}
.fish-placeholder {
  background:
    radial-gradient(circle at 64% 42%, var(--sand) 0 4%, transparent 5%), linear-gradient(150deg, #2a7a80, #0f3d44);
}
.fish-card .card-media {
  background: linear-gradient(180deg, #2a7a80, #0f3d44);
}
.fish-card .card-media .sw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fish-card .card-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: contain;
  padding: 10px;
}
.fish-card .fish-placeholder {
  background: transparent;
}
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 42, 36, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.card-body {
  padding: 20px 21px 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
}
.card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.eyebrow,
.meta-stack,
.card-footer-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
}
.eyebrow {
  justify-content: space-between;
}
.meta-stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}
.fishrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fish-tags {
  max-height: 66px;
  overflow: hidden;
  align-content: flex-start;
}
.fish-tags .tag {
  height: 30px;
  line-height: 20px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
}
.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
}
.card-link {
  margin-top: auto;
  padding-top: 5px;
}
.card-footer-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-footer-row .card-link {
  margin-left: auto;
  padding: 0;
}
.latin {
  margin-top: -7px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}
.kv {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.kv span {
  color: var(--muted);
}
.mapbox {
  min-height: 620px;
  display: grid;
  grid-template-columns: 310px 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.filters {
  padding: 25px 23px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filters h3 {
  margin: 0;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.sel {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
}
.seg button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 9px 5px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--forest);
  color: #fff;
}
.reset {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
}
.count {
  margin-top: auto;
  padding: 14px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--muted);
}
.count b {
  display: block;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.mapwrap {
  position: relative;
  min-width: 0;
  background: linear-gradient(160deg, #cfe4e2, #b9d7d6);
}
.map {
  width: 100%;
  height: 100%;
  min-height: 620px;
}
.map-land {
  fill: #eef1e6;
  stroke: #9fb7ad;
  stroke-width: 2;
}
.map-river {
  fill: none;
  stroke: #68aeb0;
  stroke-width: 3;
  opacity: 0.8;
}
.map-pin {
  cursor: pointer;
}
.map-pin circle {
  fill: var(--moss);
  stroke: #fff;
  stroke-width: 3;
}
.map-pin.paid circle {
  fill: var(--sand-deep);
}
.map-pin[hidden] {
  display: none;
}
.note {
  position: absolute;
  left: 18px;
  bottom: 17px;
  max-width: 360px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  color: #41564f;
}
.legend {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  gap: 12px;
  font-size: 12px;
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--moss);
  margin-right: 5px;
}
.legend i.paid {
  background: var(--sand-deep);
}
.spotcard {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}
.spotcard:empty {
  display: none;
}
.spotcard h4 {
  margin: 0 0 4px;
  font-size: 17px;
}
.spotcard p {
  margin: 0;
  color: #536760;
  font-size: 13px;
}
.rivers-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
}
.river-list {
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.river-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 15px 16px;
  text-align: left;
  cursor: pointer;
}
.river-row b {
  display: block;
  font-size: 17px;
}
.river-row small {
  display: block;
  color: var(--muted);
}
.river-row:hover {
  background: var(--soft);
}
.river-row[aria-pressed='true'] {
  background: var(--teal);
  color: #fff;
}
.river-row[aria-pressed='true'] small {
  color: rgba(255, 255, 255, 0.75);
}
.river-panels {
  min-width: 0;
}
.river-details {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.river-details[hidden] {
  display: none;
}
.river-details h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.river-details p {
  margin: 0;
  color: var(--muted);
}
.river-details p b {
  color: var(--ink);
}
.river-details .card-link {
  align-self: flex-start;
}
.river-hero {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  background: var(--teal);
  color: #fff;
}
.river-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 28, 24, 0.15), transparent 35%, rgba(9, 28, 24, 0.8));
}
.river-hero > img,
.river-hero > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.river-hero-copy {
  position: relative;
  z-index: 1;
  padding: 26px 30px;
}
.river-hero-copy h3 {
  margin-bottom: 6px;
}
.river-hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}
.river-route {
  padding: 24px 30px 6px;
}
.river-route svg {
  display: block;
  width: 100%;
  height: 64px;
}
.river-ends {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
}
.river-ends > div {
  min-width: 0;
  max-width: 46%;
}
.river-ends .river-end-mouth {
  text-align: right;
  margin-left: auto;
}
.river-ends small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.river-ends b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.river-panel-copy {
  padding: 22px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.river-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.river-panel-footer .fish-tags {
  flex: 1;
  min-width: 0;
}
.river-panel-footer .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  flex: none;
}
.river-panel-footer .card-link:hover {
  background: var(--forest);
}
.river-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 30px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
  overflow: hidden;
}
.river-facts:empty {
  display: none;
}
.river-facts > span {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}
.river-facts > span:last-child {
  border-right: 0;
}
.river-facts small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}
.river-facts b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}
.fishgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.catalog-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--moss), var(--teal));
  color: #fff;
  box-shadow: var(--shadow);
}
.catalog-card h3 {
  margin: 0;
  font-size: 27px;
}
.catalog-card p {
  color: rgba(255, 255, 255, 0.82);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  align-items: start;
}
.post-card {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
}
.post-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}
.post-media,
.post-media .media-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 28, 24, 0.08), rgba(9, 28, 24, 0.86));
}
.post-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
}
.post-copy h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.2;
}
.featured .post-copy h3 {
  font-size: clamp(27px, 2.5vw, 38px);
}
.post-copy p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:not(.featured) .post-copy {
  padding: 14px;
}
.post-card:not(.featured) .post-copy h3 {
  font-size: 18px;
}
.post-card:not(.featured) .post-copy p {
  display: none;
}
.post-category {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}
.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.site-footer {
  margin-top: 110px;
  padding: 62px 0 34px;
  background: var(--forest);
  color: rgba(255, 255, 255, 0.78);
}
.footer-logo {
  padding: 0;
}
.fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 40px;
}
.fgrid h5 {
  margin: 0 0 13px;
  color: #fff;
}
.fgrid a {
  display: block;
  padding: 4px 0;
}
.fgrid p {
  max-width: 34ch;
}
.copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}
.fgrid .footer-logo {
  display: inline-flex;
  padding: 0;
}
.footer-section-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer-section-columns a {
  overflow-wrap: anywhere;
}
.footer-section-columns a:hover {
  color: var(--water);
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--water);
  color: var(--water);
}
.footer-socials a:focus-visible,
.footer-section-columns a:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 4px;
}
.footer-socials svg {
  display: block;
  flex: none;
}
@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    padding: 12px;
    background: var(--forest);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .nav.open {
    display: flex;
  }
  .burger {
    display: grid;
  }
  .mapbox {
    grid-template-columns: 1fr;
  }
  .filters {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .filters h3,
  .count {
    grid-column: 1/-1;
  }
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .fishgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rivers-layout {
    grid-template-columns: 1fr;
  }
  .river-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }
  .hero {
    min-height: 690px;
  }
  .hero-content {
    padding-bottom: 54px;
  }
  .search button {
    padding: 0 18px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  main > section:not(.hero) {
    padding-top: 72px;
  }
  .grid3,
  .fishgrid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-card.featured {
    grid-column: auto;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .filters h3,
  .count {
    grid-column: auto;
  }
  .map {
    min-height: 430px;
  }
  .note {
    display: none;
  }
  .spotcard {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 14px;
    width: auto;
  }
  .mapwrap {
    display: flex;
    flex-direction: column;
  }
  .river-list {
    grid-template-columns: 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .post-copy {
    padding: 14px;
  }
  .featured .post-copy h3 {
    font-size: 21px;
  }
  .post-copy p {
    display: none;
  }
  .river-hero-copy {
    padding: 22px 18px;
  }
  .river-route {
    padding: 18px 18px 6px;
  }
  .river-panel-copy {
    padding: 20px 18px 24px;
  }
  .river-panel-footer .fish-tags {
    flex-basis: 100%;
  }
  .river-facts {
    margin: 18px 18px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .river-facts > span {
    border: 0;
  }
  .river-facts > span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .river-facts > span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .fgrid {
    grid-template-columns: 1fr;
  }
  .logo span {
    font-size: 18px;
  }
  .hdr-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

:root[data-theme='dark'] .section-link,
:root[data-theme='dark'] .card-link,
:root[data-theme='dark'] .reset {
  color: var(--water);
}
:root[data-theme='dark'] .tag {
  color: var(--water);
}
:root[data-theme='dark'] .mapwrap {
  background: linear-gradient(160deg, #173633, #122b29);
}
:root[data-theme='dark'] .map-land {
  fill: #264038;
  stroke: #3c6258;
}

.card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  max-height: 4.65em;
}
.post-copy .card-description {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.card-compact .card-body {
  padding: 12px;
  gap: 6px;
}
.card-compact h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 2.6em;
  font-size: 16px;
  line-height: 1.3;
}
.card-compact .latin,
.card-compact .meta,
.card-compact .river-basin,
.card-compact .meta-stack,
.card-compact .compact-meta {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shared entity cards. */
/* River cards */
:where(.catalog-page,.river-detail-page) .river-placeholder {
  background: linear-gradient(155deg,#173e36 30%,#347573 31%,#12494a 68%,#1a3430 69%);
}
/* River cards */
:where(.catalog-page,.river-detail-page) .river-basin {
  font-size: 13px !important;
}
/* River cards */
:where(.catalog-page,.river-detail-page) .river-card-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin: 3px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* River cards */
:where(.catalog-page,.river-detail-page) .river-card-facts div {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* River cards */
:where(.catalog-page,.river-detail-page) .river-card-facts small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
/* River cards */
:where(.catalog-page,.river-detail-page) .river-card-facts b {
  display: block;
  font-size: 19px;
  line-height: 1.25;
}
/* River cards */
:where(.catalog-page,.river-detail-page) .river-card-facts b span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
