.bait-page {
  --ink: #1c2723;
  --muted: #52645b;
  --line: #e0e7df;
  --paper: #f7f8f4;
}

.bait-width {
  width: min(1312px, calc(100% - 88px));
  margin-inline: auto;
}

.bait-page .site-header {
  background: #102823;
  color: white;
  border-bottom: 0;
}

.bait-page .site-top {
  min-height: 68px;
}

.bait-page .site-mark {
  background: #c5e8d4;
  color: #17443a;
}

.bait-page .site-nav a {
  color: #e0ece4;
}

.bait-page .site-nav a:hover,
.bait-page .site-nav a[aria-current="page"] {
  background: #29483e;
  color: white;
}

.bait-hero {
  background:
    linear-gradient(90deg, #0b251ff5, #0f2b24cc 30%, #0f2b245c 65%, #0f2b2426),
    #274644 url("assets/lakeside.webp") center 66% / cover no-repeat;
  color: white;
}

.bait-hero-inner {
  min-height: 272px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 26px;
}

.bait-hero h1 {
  font-size: clamp(36px, 4.4vw, 59px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.14;
}

.bait-hero p {
  margin: 16px 0 24px;
  font-size: 16px;
  color: #eff7ef;
}

.bait-sync {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e1eee5;
  font-size: 12px;
}

.bait-sync::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a4d3ab;
  box-shadow: 0 0 0 4px #a4d3ab2e;
}

.bait-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-block: 30px 34px;
}

.bait-waters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.water-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 13px;
}

.water-heading::before {
  content: "≋";
  color: #256556;
  font-size: 19px;
  line-height: 1;
}

.water-heading h2 {
  font-size: 15px;
}

.water-heading span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.water-picker {
  display: none;
}

.water-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #35453e;
  font-size: 13px;
  text-align: left;
}

.water-button:hover {
  background: #f0f4ef;
}

.water-button[aria-current="true"] {
  background: #e7f1e9;
  color: #124f40;
  font-weight: 700;
}

.water-size {
  flex-shrink: 0;
  color: #526b60;
  font-size: 11px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0 15px;
}

.results-head h2 {
  font-size: 30px;
  font-weight: 760;
  line-height: 1.25;
}

#bait-summary {
  min-height: 18px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.bait-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 278px);
  border: 1px solid #d6e2d8;
  border-radius: 9px;
  background: white;
  color: #4f675d;
}

.bait-search::before,
.bait-search::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bait-search::before {
  left: 14px;
  top: 14px;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.bait-search::after {
  left: 22px;
  top: 25px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.bait-search input {
  width: 100%;
  min-height: 41px;
  min-width: 0;
  padding: 8px 10px 8px 36px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.bait-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.bait-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bait-filters button {
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.bait-filters button:hover {
  background: #eef3ed;
}

.bait-filters button[aria-pressed="true"] {
  background: #e4efe5;
  color: #225c4b;
  font-weight: 700;
}

.bait-toolbar select,
.water-picker select {
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  background: white;
  border: 1px solid #d6e2d8;
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.fish-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 145px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: inherit;
  text-align: left;
}

.fish-card:hover {
  border-color: #a4bfac;
  box-shadow: 0 3px 15px #1a49300e;
}

.fish-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.fish-card-top::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 7px 4px 0 auto;
  align-self: flex-start;
  border-top: 1.5px solid #4b7968;
  border-right: 1.5px solid #4b7968;
  transform: rotate(45deg);
}

.fish-portrait {
  display: block;
  flex: none;
  width: 65px;
  height: 48px;
  padding: 5px;
  border-radius: 8px;
  background: #edf3ec;
  object-fit: contain;
}

.fish-placeholder {
  background: #edf3ec url("assets/fish-placeholder.svg") center / 27px no-repeat;
}

.fish-name {
  display: block;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fish-rule-count {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.fish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
}

.fish-tag {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 5px;
  background: #e9f2e9;
  color: #255d4e;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fish-tag.more {
  background: #f2f4f0;
  color: #526359;
}

.bait-empty {
  grid-column: 1 / -1;
  padding: 32px 12px;
  border: 1px dashed #cdd9d0;
  border-radius: 13px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

#fish-dialog {
  width: min(calc(100% - 28px), 650px);
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 70px #102d283f;
  overflow: hidden;
}

#fish-dialog[open] {
  display: flex;
  flex-direction: column;
}

#fish-dialog::backdrop {
  background: #112d2677;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: #f0f5ef;
  border-bottom: 1px solid var(--line);
}

.detail-head .fish-portrait {
  width: 80px;
  height: 56px;
  background-color: #e2eee3;
}

.detail-heading {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-heading h2 {
  font-size: 22px;
}

.detail-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #315348;
  font-size: 22px;
  line-height: 1;
}

.detail-body {
  padding: 0 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-body ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-body li {
  padding: 11px 0;
}

.detail-body li + li {
  border-top: 1px solid var(--line);
}

.bait-choice {
  font-size: 14px;
  font-weight: 660;
}

.bait-conditions,
.detail-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.bait-conditions {
  margin-top: 3px;
}

.detail-empty {
  padding-block: 15px;
}

@media (max-width: 1050px) {
  .bait-width {
    width: calc(100% - 48px);
  }

  .bait-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
  }

  .fish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .bait-width {
    width: calc(100% - 32px);
  }

  .bait-page .site-top {
    min-height: 57px;
  }

  .bait-hero-inner {
    min-height: 185px;
  }

  .bait-hero p {
    margin: 12px 0 16px;
    font-size: 14px;
  }

  .bait-layout {
    display: block;
    padding-top: 16px;
  }

  .bait-waters {
    margin-bottom: 18px;
    padding: 10px;
  }

  .water-heading,
  #map-list {
    display: none;
  }

  .water-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
  }

  .water-picker select {
    flex: 1;
    background: #f6f9f5;
  }

  .results-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
  }

  .results-head h2 {
    font-size: 25px;
  }

  .bait-search {
    width: 100%;
  }

  .fish-grid {
    gap: 9px;
  }

  .fish-card {
    min-height: 128px;
    padding: 10px;
  }

  .fish-card-top {
    gap: 7px;
  }

  .fish-card-top::after {
    display: none;
  }

  .fish-portrait {
    width: 54px;
    height: 41px;
  }

  .fish-name {
    font-size: 14px;
  }
}

@media (max-width: 365px) {
  .fish-grid {
    grid-template-columns: 1fr;
  }
}
