:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #23332f;
  background: #f3f7f5;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  background: #f3f7f5;
  color: #23332f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

h1,
h2,
h3,
h4 {
  color: #21382f;
  text-align: left;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
  letter-spacing: -.02em;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
}

a {
  color: #176b55;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #10513f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82c8ad;
  outline-offset: 2px;
}

table {
  width: 100%;
  border: 1px solid #e0e8e3;
  border-spacing: 0;
  border-radius: 9px;
  background: #fff;
  color: #263a31;
  font-size: 14px;
}

th {
  background: #edf4f0;
  color: #40594e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 10px 12px;
}

td {
  border-top: 1px solid #e8eee9;
}

tbody tr:nth-child(even) {
  background: #f8faf9;
}

tbody tr:hover {
  background: #f1f7f3;
}

label {
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin-bottom: 6px;
  color: #354c42;
  font-size: 14px;
  font-weight: 650;
  text-shadow: none;
}

.note {
  color: #4b6258;
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
}

input,
select,
textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c9d6cf;
  border-radius: 7px;
  background: #fff;
  color: #23332f;
  font: inherit;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9eb8aa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #34866b;
  outline: 3px solid rgb(52 134 107 / 16%);
}

select {
  width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: #176b55;
  vertical-align: middle;
}

button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #176b55;
  border-radius: 8px;
  background: #176b55;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 4px rgb(27 55 43 / 16%);
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

button:hover {
  border-color: #10513f;
  background: #10513f;
  box-shadow: 0 3px 7px rgb(27 55 43 / 20%);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: .6;
  box-shadow: none;
  transform: none;
}

/*hide on mobile*/
@media (max-width: 1000px) {
  .nomobile {
    display: none;
  }
}

/*sections*/

.data-access {
  margin: 20px 0;
  text-align: left;
  padding: 18px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(27 55 43 / 4%);
}

.section-main-content {
  margin-top: 94px;
  min-height: 85vh;
  background: #f3f7f5;
}

.section-banner {
  width: 100%;
  height: 200px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
}

.section-content {
  width: min(100% - 48px, 1160px);
  min-height: 85vh;
  margin: 0 auto;
  padding: 36px 0 64px;
}

.section-full {
  display: flow-root;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section-full.coverage-page,
.section-full.species-page,
#section_data.species-page {
  padding-top: 36px;
}

.section-full.species-page {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 1600px;
}

.section-full.coverage-page {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 1600px;
}

.coverage-page .vetting-section-left-25 {
  position: sticky;
  top: 130px;
  bottom: auto;
  width: auto;
  height: calc(100dvh - 150px);
  max-height: calc(100dvh - 150px);
  padding: 12px;
  overflow: auto;
  float: none;
}

.coverage-page .vetting-section-right-75-map {
  position: relative;
  width: auto;
  min-width: 0;
  padding: 0;
  float: none;
}

.species-sidebar,
.coverage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coverage-page #map-data-summary h3 {
  margin: 0;
  color: #40594e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.coverage-page #map-data-summary {
  padding: 0;
  text-align: left;
}

.coverage-page #map-data-summary p {
  margin: 0;
  color: #62736c;
  font-size: 14px;
}

.coverage-page #map-data-detail,
.coverage-page #map-data {
  max-height: 34dvh;
  overflow: auto;
  padding: 0;
  text-align: left;
}

.coverage-page #map-data-detail:empty,
.coverage-page #map-data:empty {
  display: none;
}

.coverage-page #map-data-detail table,
.coverage-page #map-data table {
  font-size: 13px;
}

.coverage-page #map-data-detail th,
.coverage-page #map-data-detail td,
.coverage-page #map-data th,
.coverage-page #map-data td {
  padding: 7px;
}

.coverage-page #map-data-charts:empty {
  display: none;
}

.coverage-page #map-data-charts:not(:empty) {
  width: 100%;
  max-width: 100%;
  height: 230px;
  min-width: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  background: #f8faf9;
}

.coverage-page #map-data-charts > div,
.coverage-page #map-data-charts svg {
  max-width: 100%;
}

.species-sidebar.vetting-section-left-25,
.coverage-sidebar.vetting-section-left-25 {
  position: sticky;
  top: 130px;
  bottom: auto;
  width: auto;
  height: calc(100dvh - 150px);
  max-height: calc(100dvh - 150px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  float: none;
  box-shadow: none;
}

.species-profile,
.species-panel {
  padding: 18px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(27 55 43 / 4%);
}

.species-eyebrow {
  margin: 0 0 6px;
  color: #527064;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.species-profile h1 {
  margin: 0;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.25;
}

.species-scientific-name {
  margin: 6px 0 0;
  color: #62736c;
  font-size: 15px;
}

.species-panel h2 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -.01em;
}

.species-tools > p {
  margin: 0 0 12px;
  color: #62736c;
  font-size: 13px;
}

.species-actions {
  display: grid;
  gap: 8px;
}

button.species-action {
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #dce7e1;
  background: #fff;
  box-shadow: 0 1px 3px rgb(27 55 43 / 8%);
  color: #29483d;
  text-align: left;
}

button.species-action:hover {
  transform: translateY(-1px);
  border-color: #9eb8aa;
  background: #f7faf8;
  box-shadow: 0 3px 7px rgb(27 55 43 / 12%);
  color: #173c30;
}

button.species-action-primary {
  border-color: #176b55;
  background: #176b55;
  color: #fff;
}

button.species-action-primary:hover {
  border-color: #10513f;
  background: #10513f;
  color: #fff;
}

.species-action-title {
  font-size: 14px;
  font-weight: 600;
}

.species-action-description {
  color: #62736c;
  font-size: 12px;
  font-weight: 400;
}

.species-action-primary .species-action-description {
  color: #e0f1e9;
}

.species-summary {
  color: #4b6258;
  font-size: 14px;
}

.species-summary p {
  margin: 0;
}

.species-sidebar #map-data-summary table {
  margin-top: 10px;
  font-size: 12px;
}

.species-sidebar #map-data-summary th,
.species-sidebar #map-data-summary td {
  padding: 6px;
}

.species-sidebar #map-data-charts:empty {
  display: none;
}

.species-sidebar #map-data-pentad-chart {
  width: 100%;
  max-width: 100%;
  height: 230px;
  min-width: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  background: #f8faf9;
}

.species-sidebar #map-data-pentad-chart > div,
.species-sidebar #map-data-pentad-chart svg {
  max-width: 100%;
}

.species-map.vetting-section-right-75-map {
  position: relative;
  width: auto;
  min-width: 0;
  padding: 0;
  float: none;
}

.species-map #div-map-full {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(27 55 43 / 10%);
}

.section-left-half {
  width: 50%;
  padding: 12px;
  float: left;
  margin-bottom: 14px;
}

.section-right-half {
  width: 50%;
  padding: 12px;
  float: right;
  margin-bottom: 14px;
}

.section-clear {
  clear: both;
  margin-bottom: 0;
}

#section_data {
  width: 100%;
  padding: 12px 0;
  margin: 0 auto;
}

.section-footer {
  width: 100%;
  min-height: 50px;
  padding: 14px 24px;
  background: #254441;
  color: #fff;
  clear: both;
}

.section-search {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(27 55 43 / 4%);
}

.section-search form,
.section-search p {
  margin-top: 0;
}

.section-search input {
  max-width: 420px;
}

.species-info {
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf4f0;
  color: #40594e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
}

.chart-parent {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.chart-child-50 {
  flex: 2;

  img {
    border-radius: 5px;
    ;
  }
}

.chart-child-25 {
  flex: 1;
  width: 25%;
  min-height: 150px;
  margin: 10px;
  padding: 14px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 650;
  text-align: center;

  img {
    border-radius: 5px;
    ;
  }
}

.img-sono-compact {
  width: 100%;
  height: 50px;
  margin-top: 5px;
  border-radius: 5px;
}

.map-data-pentad-chart img {
  width: 100%;
}

audio {
  width: 100%;
}

.chart-margin-padding {
  flex: 1;
  margin: 5px;
  padding: 5px;
  flex-basis: 100%;
  height: 350px;
}

.cls-rightjustify {
  text-align: right;
}

.font-yes {
  color: green;
}

.font-no {
  color: red;
  font-weight: bold;
}

.font-full {
  color: blue;
}

.font-adhoc {
  color: #222;
}

.font-present {

  font-weight: bold;
}

.font-absent {
  color: #222;
  opacity: 0.5;
}

.citation {
  color: #222;
  opacity: 0.5;
}

.card-edit-link {
  margin: 8px 0;
  text-align: right;
}

.card-edit-link a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #176b55;
  border-radius: 8px;
  background: #176b55;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.card-edit-page {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
  color: #23332f;
  text-align: left;
}

.card-edit-back {
  margin: 0 0 12px;
}

.card-edit-heading,
.card-edit-section {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgb(27 55 43 / 4%);
}

.card-edit-heading h1,
.card-edit-section h2 {
  margin: 0 0 12px;
  text-align: left;
}

.card-edit-heading p,
.card-edit-note {
  margin: 6px 0;
}

.card-edit-note,
.card-edit-count {
  color: #62736c;
  font-size: 14px;
}

.card-edit-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.card-edit-field {
  display: flex;
  min-width: 0;
  max-width: none;
  flex-direction: column;
  gap: 6px;
}

.card-edit-field input,
.card-edit-field select,
.card-edit-records input,
.card-edit-records select {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c9d6cf;
  border-radius: 7px;
  background-color: #fff;
  color: #23332f;
}

.card-edit-field input[readonly] {
  background-color: #f1f5f2;
}

.card-edit-table-wrap {
  overflow-x: auto;
}

.card-edit-records {
  min-width: 900px;
  font-size: 14px;
}

.card-edit-records th {
  padding: 12px;
  white-space: nowrap;
}

.card-edit-records td {
  min-width: 90px;
  vertical-align: middle;
}

.card-edit-records td:nth-child(3),
.card-edit-records td:nth-child(4) {
  min-width: 180px;
}

.card-edit-output-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-edit-output button {
  padding: 9px 14px;
  cursor: pointer;
}

#card-json-output {
  box-sizing: border-box;
  width: 100%;
  min-height: 360px;
  padding: 12px;
  border: 1px solid #c9d6cf;
  border-radius: 7px;
  background-color: #f8faf9;
  color: #23332f;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
  text-align: left;
}

.card-edit-status {
  min-height: 1em;
  margin: 8px 0 0;
}

.card-edit-error {
  padding: 12px 14px;
  border: 1px solid #f0c9c4;
  border-radius: 8px;
  background-color: #fff5f3;
  color: #9d3329;
}

@media (max-width: 700px) {
  .card-edit-page {
    width: calc(100% - 20px);
    padding-top: 16px;
  }

  .card-edit-heading,
  .card-edit-section {
    padding: 12px;
  }

  .card-edit-output-heading {
    flex-direction: column;
  }
}


/*VETTING*/
/*classes*/
.vetting-section-left-25 {
  width: 25%;
  height: auto;
  position: fixed;
  top: 130px;
  bottom: 20px;
  overflow: auto;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #f8faf9;
  float: left;
  padding: 12px;
}

.vetting-section-left-25 h3 {
  line-height: 1em;
  margin: 2px;
}

.vetting-section-right-75 {

  width: calc(75% - 40px);
  padding: 16px;
  height: fit-content;
  background-color: transparent;
  float: right;
}

.vetting-section-right-75-map {

  width: calc(75% - 40px);
  padding: 0px;
  height: fit-content;
  background-color: transparent;
  float: right;
}

.vetting-clear {
  clear: both;
}

.vetting-section-left-25 label {
  display: block;
}

.vetting-section-left-25 input {
  display: inline;
}

.vetting-frm-major {
  margin-bottom: 12px;
  background-color: #fff;
  border: 1px solid #dce7e1;
  height: fit-content;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(27 55 43 / 4%);
}

.vetting-frm-major input {
  width: 100%;
}

.vetting-frm-major select {
  width: 100%;
}

.vetting-frm-major input[type="checkbox"],
.vetting-section-left-25 input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  padding: 0;
}

.header-input {
  width: 100%;
}

.header-input-short {
  width: 20%;
}

.vetting-btn-accept {
  width: fit-content;
  border-color: #24633b;
  background-color: #28743d;
  font-size: 0.9em;
  text-align: center;
}

.vetting-btn-hold {
  width: fit-content;
  border-color: #a56811;
  background-color: #bd7816;
  font-size: 0.9em;
  text-align: center;
}

.vetting-btn-reject {
  width: fit-content;
  border-color: #9d3329;
  background-color: #b34035;
  font-size: 0.9em;
  text-align: center;
}

.vetting-btn-map {
  width: fit-content;
  border-color: #27669a;
  background-color: #347cab;
  font-size: 0.9em;
  text-align: center;
}

button.vetting-btn-accept:hover {
  border-color: #1b4e2d;
  background-color: #1f5f32;
}

button.vetting-btn-hold:hover {
  border-color: #80500f;
  background-color: #9c6213;
}

button.vetting-btn-reject:hover {
  border-color: #78271f;
  background-color: #92352c;
}

button.vetting-btn-map:hover {
  border-color: #1d5079;
  background-color: #28668e;
}

#map {
  height: 36em;
  text-align: center;
  background-color: white;
  /*border: 1px solid #000;*/
  border-radius: 12px;
}

#map img {
  width: 100%;
}


#header-control {
  text-align: right;
  padding: 12px;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #edf4f0;
}

.map-btn-show {
  width: 100px;
  background-color: green;
  font-size: 0.9em;
  text-align: center;
  margin: 5px;
}

.map-btn-hide {
  width: 100px;
  background-color: red;
  font-size: 0.9em;
  text-align: center;
  margin: 5px;
}

@media (max-width: 900px) {
  .section-content {
    width: calc(100% - 32px);
    padding: 26px 0 48px;
  }

  .section-full.species-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .section-full.coverage-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .coverage-page .vetting-section-left-25 {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .species-sidebar.vetting-section-left-25 {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .vetting-section-left-25 {
    position: static;
    top: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    margin-bottom: 14px;
    overflow: visible;
    float: none;
  }

  .vetting-section-right-75,
  .vetting-section-right-75-map {
    width: 100%;
    padding: 12px 0;
    float: none;
  }

  .section-left-half,
  .section-right-half {
    width: 100%;
    padding: 8px 0;
    float: none;
  }

  .chart-child-25 {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 560px) {
  .section-content {
    width: calc(100% - 24px);
    padding: 20px 0 36px;
  }

  .data-access,
  .section-search,
  .card-edit-heading,
  .card-edit-section,
  .vetting-frm-major {
    padding: 14px;
  }

  .section-full.species-page {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .section-full.coverage-page {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .species-profile,
  .species-panel {
    padding: 15px;
  }

  .chart-child-25 {
    flex-basis: 100%;
    width: 100%;
    margin: 8px 0;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 8px;
  }
}