/*!**********************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./assets/scss/main.scss ***!
  \**********************************************************************************************************************************************************************************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap);
/*!**************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./assets/scss/main.scss (1) ***!
  \**************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
:root {
  --bg: #ffffff;
  --fg: #111418;
  --muted: #667085;
  --card: #f6f8fa;
  --accent: rgb(34 118 102);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: "Alegreya", Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--fg);
}

figure {
  margin: 0;
  margin-bottom: 8px;
  display: inline-block;
  margin-right: 4px;
}

figure img {
  vertical-align: top;
  width: 100%;
  max-width: 100%;
}

.content > figure {
  margin-right: 0;
}

.h-fr {
  float: right;
}

.h-fl {
  float: left;
}

figure.h-fr {
  margin-left: 24px;
  margin-right: 0;
}

figure.h-fl {
  margin-right: 24px;
  margin-left: 0;
}

html {
  font-size: 18px;
}

ul p:first-child,
ol p:first-child {
  margin-top: 0;
}
ul p:last-child,
ol p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin: 1em 0;
  margin-bottom: 0.25em;
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

h1 {
  font-size: 36px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }
}
h1:first-child {
  margin-top: 0;
}

h2 {
  font-size: 28px;
}
@media (max-width: 768px) {
  h2 {
    font-size: 22px;
  }
}

.latin-name {
  color: var(--muted);
  font-style: italic;
  margin: 0.5rem 0;
  margin-top: 0px;
}

.card .latin-name {
  margin-top: -8px;
}

.content:after {
  clear: both;
  content: "";
  display: block;
}
.content h2,
.content h3 {
  clear: both;
}
.content p {
  line-height: 1.6;
}
.content figure:has(figcaption) {
  border: 1px solid #ddd;
  text-align: center;
  background-color: #FCFCFC;
  border-radius: 3px;
  max-width: 322px;
}
@media (max-width: 768px) {
  .content figure:has(figcaption) {
    max-width: 100%;
    width: 240px;
    float: none;
    margin: 12px 0 12px 0;
  }
}
.content figcaption {
  font-size: 18px;
  color: #444444;
  padding: 11px 8px;
}
.content p, .content li {
  font-size: 20px;
  line-height: 1.6em;
}
.content p:first-child, .content li:first-child {
  margin-top: 0;
}
@media (max-width: 768px) {
  .content p, .content li {
    font-size: 18px;
  }
}
.content h1 + p,
.content h2 + p,
.content h3 + p,
.content h4 + p,
.content h5 + p,
.content h6 + p,
.content h1 + ul,
.content h2 + ul,
.content h3 + ul,
.content h4 + ul,
.content h5 + ul,
.content h6 + ul {
  margin-top: 0;
}

.h-short-content .content p, .h-short-content .content li {
  font-size: 24px;
}
@media (max-width: 768px) {
  .h-short-content .content p, .h-short-content .content li {
    font-size: 18px;
  }
}

.h-fr {
  float: right;
}

.h-fl {
  float: left;
}

figure.h-fr {
  margin-left: 24px;
  margin-right: 0;
}

figure.h-fl {
  margin-right: 24px;
  margin-left: 0;
}

.h-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

[class*=h-col--] {
  padding: 0 12px;
}

.h-col--1-of-12 {
  flex: 0 0 8.333%;
  width: 8.333%;
}

.h-col--2-of-12 {
  flex: 0 0 16.666%;
  width: 16.666%;
}

.h-col--3-of-12 {
  flex: 0 0 25%;
  width: 25%;
}

.h-col--4-of-12 {
  flex: 0 0 33.333%;
  width: 33.333%;
}

.h-col--5-of-12 {
  flex: 0 0 41.666%;
  width: 41.666%;
}

.h-col--6-of-12 {
  flex: 0 0 50%;
  width: 50%;
}

.h-col--7-of-12 {
  flex: 0 0 58.333%;
  width: 58.333%;
}

.h-col--8-of-12 {
  flex: 0 0 66.666%;
  width: 66.666%;
}

.h-col--9-of-12 {
  flex: 0 0 75%;
  width: 75%;
}

.h-col--10-of-12 {
  flex: 0 0 83.333%;
  width: 83.333%;
}

.h-col--11-of-12 {
  flex: 0 0 91.666%;
  width: 91.666%;
}

.h-col--12-of-12 {
  flex: 0 0 100%;
  width: 100%;
}

.h-col--1-of-2 {
  flex: 0 0 50%;
  width: 50%;
}
@media (max-width: 1024px) {
  .h-col--1-of-2 {
    flex: 0 0 100%;
    width: 100%;
  }
}

.h-col--1-of-3 {
  flex: 0 0 33.333%;
  width: 33.333%;
}

.h-col--2-of-3 {
  flex: 0 0 66.666%;
  width: 66.666%;
}

.h-col--1-of-4 {
  flex: 0 0 25%;
  width: 25%;
}

.h-col--3-of-4 {
  flex: 0 0 75%;
  width: 75%;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }
}

main.container {
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: calc(100vh - 108px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.l-2-column {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.l-main-content {
  width: calc(100% - 360px);
  min-width: 0;
}
@media (max-width: 768px) {
  .l-main-content {
    width: 100%;
  }
}

.l-side-content {
  width: 320px;
  flex-shrink: 0;
}
.l-side-content .species-list {
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}
.l-side-content .species-list h2 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}
.l-side-content .species-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.l-side-content .species-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
}
.l-side-content .species-list a:hover {
  text-decoration: underline;
}

.t-notes-single .l-side-content {
  position: static;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .l-2-column {
    flex-direction: column;
    gap: 1.5rem;
  }
  .l-side-content {
    width: 100%;
    position: static;
    margin-top: 0;
  }
  .t-notes-single .l-side-content {
    margin-top: 0;
  }
  .l-side-content .species-list {
    padding: 1rem;
  }
}
.c-site-header {
  border-bottom: 1px solid #e5e7eb;
  z-index: 5;
  min-height: 54px;
}
.c-site-header .h-site-block {
  min-height: 46px;
}
.c-site-header nav {
  padding-bottom: 3px;
}

.h-site-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 768px) {
  .h-site-block {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.c-main-logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  margin-right: 24px;
  display: flex;
  align-items: center;
  gap: 0;
}
@media (max-width: 1024px) {
  .c-main-logo__text {
    display: none;
  }
}

.site-logo {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  margin-left: 2rem;
}
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  padding: 4px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.main-nav a:hover {
  color: var(--accent);
  background: rgba(22, 160, 133, 0.05);
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.15);
}
.main-nav a:hover::before {
  left: 100%;
}
.main-nav ul ul {
  position: absolute;
  top: 100%;
  margin-top: 4px;
  right: 0;
  background: white;
  border-radius: 2px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  flex-flow: column;
  align-items: flex-start;
  gap: 0;
}
.main-nav ul ul:after {
  content: "";
  position: absolute;
  top: -4px;
  height: 4px;
  left: 0;
  width: 100%;
}
.main-nav li:hover > ul {
  opacity: 1;
  visibility: visible;
}
.main-nav ul ul li {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
}
.main-nav ul ul a {
  display: block;
  padding: 6px 12px;
  color: var(--fg);
  font-weight: 400;
  font-size: 0.9rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.main-nav ul ul a:hover {
  background: linear-gradient(135deg, rgba(22, 160, 133, 0.05), rgba(32, 201, 151, 0.05));
  color: var(--accent);
  box-shadow: none;
}
.main-nav li:has(ul) > a::after {
  content: "▼";
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.main-nav li:hover > a::after {
  transform: rotate(180deg);
  color: var(--accent);
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  right: 24px;
  top: 13px;
}
.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--fg);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .burger-menu {
    display: flex;
  }
  .h-site-block {
    flex-wrap: wrap;
    position: relative;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 80px 0 20px 0;
    margin: 0;
    z-index: 1000;
    overflow-y: auto;
  }
  .main-nav.active {
    right: 0;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }
  .main-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }
  .main-nav > ul > li > a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
  }
  .main-nav > ul > li > a:hover {
    background: rgba(22, 160, 133, 0.05);
    box-shadow: none;
  }
  .main-nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(22, 160, 133, 0.05);
    border-radius: 0;
    margin: 0;
    padding: 0;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav ul ul::after {
    display: none;
  }
  .main-nav li.submenu-open > ul {
    max-height: 500px;
  }
  .main-nav ul ul li {
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  }
  .main-nav ul ul li:last-child {
    border-bottom: none;
  }
  .main-nav ul ul a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    font-size: 0.9rem;
    display: block;
    border-radius: 0;
  }
  .main-nav ul ul a:hover {
    transform: none;
    background: rgba(22, 160, 133, 0.1);
    box-shadow: none;
  }
  .main-nav li:has(ul) > a::after {
    content: "▼";
    float: right;
    transition: transform 0.3s ease;
  }
  .main-nav li.submenu-open > a::after {
    transform: rotate(180deg);
  }
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 768px) {
  .main-nav {
    width: 280px;
  }
  .h-site-block > a {
    font-size: 1.3rem;
  }
}
@media (max-width: 480px) {
  .burger-menu {
    width: 28px;
    height: 22px;
  }
  .burger-menu span {
    height: 2.5px;
  }
  .main-nav {
    width: 260px;
  }
}
.site-footer {
  background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
  padding: 14px 0;
  min-height: 54px;
}
.site-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.c-page__header {
  display: flex;
  justify-content: space-between;
  position: relative;
  height: 360px;
  margin-top: 24px;
  padding: 24px;
  margin-bottom: 32px;
}
.c-page__header:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0, transparent 100%) repeat-x;
  z-index: 2;
}
.c-page__header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.c-page__header-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-page__header:has(.c-page__header-image) {
  align-items: flex-end;
}
.c-page__header-left {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  color: #fff;
}
.c-page__title {
  margin-top: 0px;
  margin-bottom: 0;
  font-size: 36px;
}
@media (max-width: 768px) {
  .c-page__title {
    font-size: 28px;
    padding-top: 8px;
  }
}
.c-page .latin-name {
  color: #fff;
  font-size: 20px;
}
.c-page.h-no-primary-photo .latin-name {
  color: #535353;
}
.c-page__header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  position: relative;
  z-index: 3;
}
.c-page__header-right a {
  font-size: 24px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid #e5e7eb;
  transition: background 0.18s, border-color 0.18s;
  width: 42px;
  padding: 0;
  height: 42px;
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  justify-content: center;
  padding-left: 2px;
}
.c-page__header-right a:hover, .c-page__header-right a:focus {
  background: var(--accent-light, #f0f9ff);
  border-color: var(--accent, #1e90ff);
  color: var(--accent, #1e90ff);
}

.h-no-primary-photo .c-page__header {
  height: auto;
  padding: 0;
  margin-top: 0;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .h-no-primary-photo .c-page__header {
    flex-flow: column;
  }
}
.h-no-primary-photo .c-page__header:before {
  display: none;
}
.h-no-primary-photo .c-page__header-left {
  color: #000;
}
@media (max-width: 768px) {
  .h-no-primary-photo .c-page__header-right {
    margin-left: 0;
  }
}

.card {
  background: var(--card);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}
.card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}
.card h2:last-child {
  margin-bottom: 0;
}

.taxon-card {
  position: relative;
  display: inline-flex;
  gap: 12px;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  padding-right: 40px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  flex-flow: column;
  margin-right: 4px;
  margin-bottom: 8px;
  width: 236px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.taxon-card:hover {
  border-color: var(--accent);
}
.taxon-card:hover .taxon-image img {
  transform: scale(1.05);
}
.taxon-card:hover .taxon-title {
  color: var(--accent);
}
.taxon-card:hover .taxon-link {
  background: var(--accent);
  color: white;
}
.taxon-card.h-horizontal {
  flex-direction: row;
  gap: 24px;
  width: 360px;
}
.l-side-content .taxon-card.h-horizontal {
  width: 100%;
}
.taxon-card.h-horizontal .taxon-title {
  font-size: 18px;
}
.taxon-card.h-horizontal .taxon-latin {
  font-size: 16px;
  margin-bottom: 4px;
}
.taxon-card.h-horizontal .taxon-image {
  width: 100px;
}
.taxon-card.h-horizontal .taxon-image img {
  height: 100px;
}
.taxon-card.h-horizontal .taxon-image svg {
  width: 100px;
  height: 100px;
}
.taxon-card.h-horizontal .taxon-link {
  padding: 2px 16px;
  font-size: 14px;
}
.taxon-card.h-small {
  gap: 16px;
}
.taxon-card.h-full-width {
  width: 100% !important;
}
.taxon-card.h-fr {
  margin-left: 12px;
}
.taxon-card.h-fl {
  margin-right: 12px;
}

.taxon-image {
  flex-shrink: 0;
  width: 210px;
  overflow: hidden;
  border-radius: 8px;
  align-self: start;
  line-height: 0;
}
.taxon-image img {
  width: 100%;
  height: 210px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.taxon-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.taxon-title {
  margin: 0 0 0.5rem 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--fg);
  transition: color 0.2s ease;
}

.taxon-latin {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  margin: 0 0 1rem 0;
}

.taxon-link {
  margin: 8px 0 0 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0px 12px;
  font-size: 16px;
  background: rgba(22, 160, 133, 0.1);
  border-radius: 20px;
  display: inline-block;
  transition: all 0.2s ease;
}

.taxon-not-found {
  background: #fef2f2;
  border-color: #dc2626;
  padding: 1rem 1.5rem;
}
.taxon-not-found p {
  margin: 0;
  color: #dc2626;
  font-weight: 500;
}
.taxon-not-found code {
  background: rgba(220, 38, 38, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

@media (max-width: 768px) {
  .taxon-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .taxon-image {
    width: 100%;
  }
  .taxon-image img {
    height: 250px;
  }
  .taxon-title {
    font-size: 1.3rem;
  }
  .taxon-latin {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .taxon-card {
    padding: 0.75rem;
  }
  .taxon-image img {
    height: 200px;
  }
  .taxon-title {
    font-size: 1.2rem;
  }
  .taxon-latin {
    font-size: 0.95rem;
  }
  .taxon-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
.c-taxon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.c-taxon-grid .taxon-card {
  width: calc((100% - 16px) / 3);
  margin-right: 0;
  margin-bottom: 0;
}
@media (max-width: 1024px) {
  .c-taxon-grid .taxon-card {
    width: calc((100% - 8px) / 2);
  }
}
@media (max-width: 768px) {
  .c-taxon-grid .taxon-card {
    width: 100%;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item:hover::before {
  opacity: 1;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.gallery-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.gallery-item img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 12px;
  vertical-align: top;
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(22, 160, 133, 0.1), rgba(32, 201, 151, 0.1));
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px;
  font-size: 16px;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}
.lightbox-overlay.open {
  display: block;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  position: relative;
}

.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity all 0.3s ease, visibility all 0.3s ease;
  z-index: 5;
  animation: spin 0.8s linear infinite;
}
.lightbox-loader.active {
  opacity: 1;
  visibility: visible;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  -o-object-fit: contain;
     object-fit: contain;
  transform-origin: center center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: default;
  transition: opacity all 0.3s ease;
}

.lightbox-caption {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  max-width: 90vw;
  text-align: center;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-counter {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #111418;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgb(255, 255, 255);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-zoom-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.lightbox-zoom-in,
.lightbox-zoom-out,
.lightbox-zoom-reset {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-zoom-in:hover,
.lightbox-zoom-out:hover,
.lightbox-zoom-reset:hover {
  background: rgb(255, 255, 255);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.lightbox-zoom-reset {
  font-size: 12px;
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 0;
  }
  .lightbox-image {
    max-width: 95vw;
    max-height: 70vh;
  }
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  .lightbox-prev {
    left: 1rem;
  }
  .lightbox-next {
    right: 1rem;
  }
  .lightbox-counter {
    top: 1rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .lightbox-zoom-controls {
    bottom: 1rem;
    right: 1rem;
    gap: 0.3rem;
    padding: 0.3rem;
  }
  .lightbox-zoom-in,
  .lightbox-zoom-out,
  .lightbox-zoom-reset {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 2px 8px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--fg);
  padding: 0.25rem 0.5rem;
}
.search-input::-moz-placeholder {
  color: var(--muted);
  font-size: 0.85rem;
}
.search-input::placeholder {
  color: var(--muted);
  font-size: 0.85rem;
}

.search-button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-button:hover {
  color: var(--accent);
  background: rgba(22, 160, 133, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -300px;
  width: 600px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.search-results-content {
  padding: 0.5rem;
}

.search-result-item {
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f3f4f6;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover, .search-result-item.selected {
  background: rgba(22, 160, 133, 0.05);
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.search-result-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  flex: 1;
}

.search-result-type {
  background: rgba(22, 160, 133, 0.1);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.search-result-excerpt {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.search-result-url {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}
.search-no-results p {
  margin: 0 0 1rem 0;
}
.search-no-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  flex-flow: column;
  align-items: flex-start;
  gap: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 265px;
}
.search-no-results li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.search-no-results li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

.search-suggestions {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem !important;
}

mark {
  background: rgba(22, 160, 133, 0.2);
  color: var(--fg);
  border-radius: 3px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin: 0 0.5rem;
    position: absolute;
    left: 54px;
    right: 64px;
    top: 6px;
    width: auto;
    min-width: 100px;
  }
  .search-input-wrapper {
    padding: 4px 8px;
  }
  .search-input {
    font-size: 0.85rem;
  }
  .search-input::-moz-placeholder {
    font-size: 0.8rem;
  }
  .search-input::placeholder {
    font-size: 0.8rem;
  }
  .search-results {
    max-height: 300px;
    margin-top: 0.25rem;
    width: 100vw;
    margin-left: -50vw;
  }
  .search-result-item {
    padding: 0.6rem;
  }
  .search-result-title {
    font-size: 0.9rem;
  }
  .search-result-excerpt {
    font-size: 0.8rem;
  }
  .search-result-type {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}
@media (max-width: 480px) {
  .search-container {
    margin: 0;
  }
  .search-input {
    font-size: 0.8rem;
  }
  .search-results {
    max-height: 250px;
  }
  .search-result-item {
    padding: 0.5rem;
  }
  .search-result-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .search-result-type {
    align-self: flex-start;
  }
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .sep {
  opacity: 0.6;
}
.breadcrumbs .sep:first-child {
  display: none;
}

.taxonomy-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(22, 160, 133, 0.05), rgba(32, 201, 151, 0.05));
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.taxonomy-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.taxonomy-breadcrumbs a:hover {
  background: rgba(22, 160, 133, 0.1);
  color: var(--accent);
}
.taxonomy-breadcrumbs .sep {
  opacity: 0.6;
  color: var(--muted);
}
.taxonomy-breadcrumbs span[aria-current=page] {
  color: var(--fg);
  font-weight: 600;
}

.c-breadcrumbs {
  position: relative;
  padding-left: 20px;
  z-index: 1;
}
.c-breadcrumbs:before {
  display: inline-block;
  position: absolute;
  width: 12px;
  height: 100%;
  left: 20px;
  top: 0;
  z-index: 5;
  content: "";
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff", endColorstr="#00ffffff", GradientType=1);
}
.c-breadcrumbs:after {
  display: inline-block;
  position: absolute;
  width: 12px;
  height: 100%;
  right: 0px;
  top: 0;
  z-index: 5;
  content: "";
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff", endColorstr="#ffffff", GradientType=1);
}

.c-breadcrumbs__list {
  margin: 0;
  padding: 8px 0;
  overflow-x: hidden;
  display: inline-flex;
  flex-direction: row-reverse;
  max-width: 100%;
  vertical-align: top;
  line-height: 20px;
  padding-right: 12px;
}
@media (max-width: 1024px) {
  .c-breadcrumbs__list {
    overflow-x: auto;
  }
}

.c-breadcrumbs li {
  color: var(--muted);
  display: inline;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  background-image: none;
  padding-left: 0;
  width: auto;
  order: revert;
  white-space: nowrap;
}
.c-breadcrumbs li:first-child {
  position: absolute;
  left: 0;
  top: 8px;
}
.c-breadcrumbs li:not(:first-child)::before {
  content: "›";
  color: var(--color-grey);
  font-family: "pigu-icons" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  font-size: 16px;
  line-height: 1;
  margin-left: 4px;
  position: relative;
  text-transform: none;
  vertical-align: text-bottom;
  -webkit-font-smoothing: antialiased;
  margin-right: 5px;
  vertical-align: 1px;
}
.c-breadcrumbs li:nth-child(1) {
  order: -1;
}
.c-breadcrumbs li:nth-child(2) {
  order: -2;
}
.c-breadcrumbs li:nth-child(3) {
  order: -3;
}
.c-breadcrumbs li:nth-child(4) {
  order: -4;
}
.c-breadcrumbs li:nth-child(5) {
  order: -5;
}
.c-breadcrumbs li:nth-child(6) {
  order: -6;
}
.c-breadcrumbs li:nth-child(7) {
  order: -7;
}
.c-breadcrumbs li:nth-child(8) {
  order: -8;
}
.c-breadcrumbs li:nth-child(9) {
  order: -9;
}
.c-breadcrumbs li:nth-child(10) {
  order: -10;
}
.c-breadcrumbs li:nth-child(11) {
  order: -11;
}
.c-breadcrumbs li:nth-child(12) {
  order: -12;
}
.c-breadcrumbs li:nth-child(13) {
  order: -13;
}

.c-breadcrumbs__link {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.c-breadcrumbs__link > i {
  display: inline-block;
  font-size: 16px !important;
  vertical-align: -0.15em;
}
@media (hover: hover) and (pointer: fine) {
  .c-breadcrumbs__link:hover {
    text-decoration: underline;
  }
}

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  color: var(--muted);
}
.pagination a {
  color: var(--accent);
  text-decoration: none;
  border: 1px solid #e5e7eb;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.pagination a:hover {
  background: rgba(22, 160, 133, 0.1);
  border-color: var(--accent);
}

.reference-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  background: rgba(22, 160, 133, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.reference-link:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.reference-error {
  color: #dc2626;
  background: #fef2f2;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.reference-section {
  margin-bottom: 2.5rem;
}
.reference-section .reference-item {
  margin-bottom: 4px;
  padding: 2px 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
  transition: all 0.3s ease;
}
.reference-section .reference-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.reference-id {
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.5rem;
}

.reference-authors {
  font-weight: 600;
  color: var(--fg);
}

.reference-title {
  font-weight: 600;
  color: var(--fg);
  margin: 0 0.25rem;
}

.reference-edition {
  font-style: italic;
  color: var(--muted);
  margin: 0 0.25rem;
}

.reference-publisher {
  color: var(--muted);
  margin: 0 0.25rem;
}

.reference-year {
  font-weight: 600;
  color: var(--accent);
  margin: 0 0.25rem;
}

.reference-isbn,
.reference-issn {
  font-family: monospace;
  color: var(--muted);
  font-size: 0.9em;
  margin: 0 0.25rem;
}

.reference-location {
  color: var(--muted);
  margin: 0 0.25rem;
}

@media (max-width: 768px) {
  .auto-references h2 {
    font-size: 1.5rem;
  }
  .auto-references h3 {
    font-size: 1.2rem;
  }
  .reference-section .reference-item {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}
.edit-source {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 2rem 0;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
}
.edit-source .edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.edit-source .edit-link span {
  font-size: 1rem;
}
.edit-source .edit-link:hover {
  color: #1a8068;
  transform: translateX(2px);
}
.edit-source .file-path {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .edit-source {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .edit-source .file-path {
    word-break: break-all;
    white-space: normal;
  }
}
.references-list ul {
  padding-left: 0;
  list-style: none;
}
.references-list li {
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
  font-size: 18px;
  line-height: 1.2em;
}
.references-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
}

.taxonomy {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
.taxonomy li {
  background: #f9fafb;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.taxonomy li:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.tax-tree {
  list-style: none;
  padding-left: 1rem;
}
.tax-tree details {
  background: #f9fafb;
  margin: 0.25rem 0;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.tax-tree summary {
  cursor: pointer;
}
.tax-tree a {
  color: var(--accent);
  text-decoration: none;
}
.tax-tree a:hover {
  text-decoration: underline;
}
.tax-tree .leaf {
  margin-left: 1rem;
}

.tags-list {
  margin: 1.5rem 0;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.tag-item {
  background: var(--card);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.tag-item:hover {
  background: #f0f9ff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.tag-link {
  text-decoration: none;
  color: var(--fg);
  display: block;
  font-weight: 500;
}
.tag-link:hover {
  color: var(--accent);
}

.tag-count {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: normal;
}

.related-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.related-tags .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.related-tags .tag-link {
  background: #f9fafb;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9em;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.related-tags .tag-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.species-tags {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
}
.species-tags strong {
  color: var(--fg);
  margin-right: 0.5rem;
}
.species-tags a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(22, 160, 133, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.species-tags a:hover {
  background: var(--accent);
  color: white;
}

.c-taxon-page .three-column-layout {
  display: grid;
  grid-template-columns: calc(30% - 32px) 45% calc(25% - 32px);
  grid-auto-rows: minmax(min-content, auto);
  gap: 16px 32px;
  left: 50%;
  width: calc(100vw - 24px);
  position: relative;
  margin-left: calc(-50vw + 8px);
  padding: 16px 24px;
  padding-top: 12px;
}
@media (max-width: 1600px) {
  .c-taxon-page .three-column-layout {
    grid-template-columns: calc(35% - 32px) 65%;
  }
}
@media (max-width: 1024px) {
  .c-taxon-page .three-column-layout {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .c-taxon-page .three-column-layout {
    padding: 8px 12px;
  }
}
.c-taxon-page .c-page__header {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 1;
}
.c-taxon-page .c-taxon-page__gallery {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 9;
}
.c-taxon-page .c-taxon-page__morphology {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 9;
}
.c-taxon-page .c-taxon-page__morphology-inner {
  margin-top: 114px;
  background: #f8fff1;
  padding: 8px 16px;
  border-radius: 8px;
}
@media (max-width: 1600px) {
  .c-taxon-page .c-taxon-page__morphology-inner {
    margin-top: 0;
  }
}
@media (max-width: 1600px) {
  .c-taxon-page .c-taxon-page__morphology {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
  }
}
.c-taxon-page .c-taxon-page__varieties {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 9;
  grid-row-end: 10;
}
.c-taxon-page .c-taxon-page__varieties-inner {
  margin-top: 16px;
  background: #f8fff1;
  padding: 8px 16px;
  border-radius: 8px;
}
.c-taxon-page .c-taxon-page__varieties {
  /* Same position as morphology when layout collapses - varieties replaces it when no morphology */
}
@media (max-width: 1600px) {
  .c-taxon-page .c-taxon-page__varieties {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
  }
}
.c-taxon-page .content {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 3;
}
.c-taxon-page .tags-list {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  margin: 0;
}
@media (max-width: 1600px) {
  .c-taxon-page .tags-list {
    grid-row-start: 4;
    grid-row-end: 5;
  }
}
.c-taxon-page .references-list {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 4;
  grid-row-end: 5;
}
@media (max-width: 1600px) {
  .c-taxon-page .references-list {
    grid-row-start: 5;
    grid-row-end: 6;
  }
}
.c-taxon-page .archived-comments {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 5;
  grid-row-end: 6;
}
@media (max-width: 1600px) {
  .c-taxon-page .archived-comments {
    grid-row-start: 6;
    grid-row-end: 7;
  }
}
.c-taxon-page .research-section {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 6;
  grid-row-end: 7;
}
@media (max-width: 1600px) {
  .c-taxon-page .research-section {
    grid-row-start: 7;
    grid-row-end: 8;
  }
}
.c-taxon-page .comments-section {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 7;
  grid-row-end: 8;
}
.c-taxon-page .updated-date {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 8;
  grid-row-end: 9;
}
@media (max-width: 1600px) {
  .c-taxon-page .updated-date {
    grid-row-start: 8;
    grid-row-end: 9;
  }
}
.c-taxon-page .left-column h1 {
  margin-top: 0;
}
.c-taxon-page .middle-column {
  display: flex;
  flex-direction: column;
  min-width: 400px;
}
.c-taxon-page .right-column {
  width: calc(25% - 16px);
}
.c-taxon-page .right-column h2:first-child {
  margin-top: 12px;
}
.c-taxon-page {
  /* Column orders */
}
.c-taxon-page .right-column {
  order: 3;
  align-self: flex-start;
}
.c-taxon-page__gallery .gallery-grid {
  margin-top: 8px;
}
.c-taxon-page .main-image {
  top: 20px;
  width: 100%;
  text-align: center;
}
.c-taxon-page .main-image a {
  display: inline-block;
}
.c-taxon-page .main-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: top;
  border-radius: 8px;
}
.c-taxon-page .gallery {
  height: -moz-fit-content;
  height: fit-content;
}
.c-taxon-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.c-taxon-page .middle-column .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 4px;
  margin-top: 0;
}
.c-taxon-page .gallery-item {
  text-align: center;
}
.c-taxon-page .gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.c-taxon-page .gallery-item img:hover {
  transform: scale(1.05);
}
.c-taxon-page .gallery-caption {
  margin-top: 8px;
  font-size: 0.9em;
  color: #666;
}
.c-taxon-page .thumbnails-section {
  margin-bottom: 30px;
}
.c-taxon-page .thumbnails-section h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333;
}
.c-taxon-page .thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.c-taxon-page .thumbnail-item img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.c-taxon-page .thumbnail-item img:hover {
  transform: scale(1.1);
}
.c-taxon-page .combined-section {
  margin-bottom: 16px;
}
.c-taxon-page .combined-section:last-child {
  margin-bottom: 0;
}
.c-taxon-page .combined-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}
.c-taxon-page .varieties-list {
  margin: 0;
  list-style: none;
}
.c-taxon-page .varieties-list h4 {
  font-size: 22px;
}
.c-taxon-page .varieties-list p {
  margin: 12px 0;
}
.c-taxon-page .varieties-list a {
  color: var(--accent);
  text-decoration: none;
}
.c-taxon-page .varieties-list a:hover {
  text-decoration: underline;
}
.c-taxon-page .text-content p {
  margin: 12px 0;
}
@media (max-width: 1024px) {
  .c-taxon-page .main-image, .c-taxon-page .gallery {
    position: static;
  }
}

.archived-comments {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.archived-comments h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 0.5rem;
}
.archived-comments .comments-notice {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-style: italic;
  padding: 0.5rem 0.75rem;
  background: #fef3c7;
  border-radius: 4px;
  border-left: 3px solid #f59e0b;
}
.archived-comments .comment {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.archived-comments .comment:hover {
  border-left-color: #9ca3af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.archived-comments .comment .comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.archived-comments .comment .comment-meta strong {
  color: #374151;
  font-weight: 600;
}
.archived-comments .comment .comment-meta time {
  color: #6b7280;
}
.archived-comments .comment .comment-content {
  color: #374151;
  line-height: 1.6;
}
.archived-comments .comment .comment-content p {
  margin: 0.5rem 0;
}
.archived-comments .comment .comment-content p:first-child {
  margin-top: 0;
}
.archived-comments .comment .comment-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .archived-comments .comment {
    padding: 0.75rem;
  }
  .archived-comments .comment-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
.page-tree-container {
  margin: 1rem 0;
}

.page-tree {
  list-style: none;
  padding-left: 0;
  margin: 0;
  position: relative;
}
.page-tree .page-tree-item {
  position: relative;
  padding: 0.25rem 0;
  line-height: 1.5;
  min-height: 1.5rem;
}
@media (max-width: 768px) {
  .page-tree .page-tree-item span {
    display: none;
  }
}
.page-tree .page-tree-item .page-tree-toggle {
  background: #fff;
  position: relative;
  z-index: 2;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--fg);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  vertical-align: middle;
  margin-right: 0rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding-top: 2px;
}
.page-tree .page-tree-item .page-tree-toggle:hover {
  color: var(--accent);
}
.page-tree .page-tree-item .page-tree-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.page-tree .page-tree-item .page-tree-toggle .toggle-icon {
  display: inline-block;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}
.page-tree .page-tree-item .page-tree-spacer {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.page-tree .page-tree-item > a {
  color: var(--accent);
  text-decoration: none;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}
.page-tree .page-tree-item > a:hover {
  text-decoration: underline;
}
.page-tree .page-tree-item .page-tree-children {
  margin-left: 0;
  margin-top: 0.25rem;
  padding-left: 0;
  display: block;
  position: relative;
}
.page-tree .page-tree-item .page-tree-children[aria-hidden=true] {
  display: none;
}
.page-tree > .page-tree-item {
  padding-left: 0;
  font-size: 24px;
}
.page-tree > .page-tree-item > a {
  font-size: 24px;
}
.page-tree > .page-tree-item .page-tree-toggle {
  font-size: 24px;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 4px;
}
.page-tree > .page-tree-item .page-tree-toggle .toggle-icon {
  font-size: 1.1em;
}
.page-tree > .page-tree-item .page-tree-spacer {
  width: 1.5rem;
  height: 1.5rem;
}
.page-tree .page-tree-children .page-tree {
  position: relative;
  padding-left: 16px;
  margin-left: 0;
  font-size: 22px;
}
.page-tree .page-tree-children .page-tree .page-tree-item {
  position: relative;
  padding-left: 0;
  font-size: 22px;
}
.page-tree .page-tree-children .page-tree .page-tree-item:not(:has(.page-tree-children)) {
  padding-left: 20px !important;
}
.page-tree .page-tree-children .page-tree .page-tree-item:not(:has(.page-tree-children))::after {
  width: 16px !important;
}
.page-tree .page-tree-children .page-tree .page-tree-item > a {
  font-size: 22px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-toggle {
  font-size: 22px;
  width: 1.4rem;
  height: 1.4rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-toggle .toggle-icon {
  font-size: 1.1em;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-spacer {
  width: 1.4rem;
  height: 1.4rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -10px;
  bottom: -20px;
  width: 1px;
  background-color: #9ca3af;
  z-index: 0;
}
.page-tree .page-tree-children .page-tree .page-tree-item::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 22px;
  width: 0.5em;
  height: 1px;
  background-color: #9ca3af;
  z-index: 0;
}
.page-tree .page-tree-children .page-tree .page-tree-item:last-child::before {
  bottom: 13px;
}
.page-tree .page-tree-children .page-tree .page-tree-item.has-children:not(:last-child)::before {
  bottom: 0;
}
.page-tree .page-tree-children .page-tree .page-tree-item.has-children:last-child::before {
  bottom: auto;
  height: 32px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree {
  font-size: 20px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item {
  font-size: 20px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item > a {
  font-size: 20px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-toggle {
  font-size: 20px;
  width: 1.3rem;
  height: 1.3rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-toggle .toggle-icon {
  font-size: 1.1em;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-spacer {
  width: 1.3rem;
  height: 1.3rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree {
  font-size: 18px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item {
  font-size: 18px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item::after {
  top: 19px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item::before {
  top: -12px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item > a {
  font-size: 18px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-toggle {
  font-size: 18px;
  width: 1.2rem;
  height: 1.2rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-toggle .toggle-icon {
  font-size: 1.1em;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-spacer {
  width: 1.2rem;
  height: 1.2rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree {
  font-size: 16px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item {
  font-size: 16px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item::after {
  top: 17px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item::before {
  top: -14px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-item {
  padding-left: 20px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-item::after {
  left: -8px;
  width: 20px;
  top: 17px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-item::before {
  left: -8px;
  top: -17px;
  height: 34px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item > a {
  font-size: 16px;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-toggle {
  font-size: 16px;
  width: 1.1rem;
  height: 1.1rem;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-toggle .toggle-icon {
  font-size: 1.1em;
}
.page-tree .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-children .page-tree .page-tree-item .page-tree-spacer {
  width: 1.1rem;
  height: 1.1rem;
}

.c-homepage-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1/2;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 320px;
}
.c-homepage-slider__container {
  position: relative;
  width: 100%;
  height: 100%;
}
.c-homepage-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.c-homepage-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 1;
}
.c-homepage-slider__slide--active {
  opacity: 1;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.c-homepage-slider__slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.c-homepage-slider__slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.c-homepage-slider__prev, .c-homepage-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1f2937;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
}
.c-homepage-slider__prev span, .c-homepage-slider__next span {
  line-height: 1;
  font-weight: bold;
}
.c-homepage-slider:hover .c-homepage-slider__prev,
.c-homepage-slider:hover .c-homepage-slider__next {
  opacity: 1;
  pointer-events: auto;
}
.c-homepage-slider__prev:hover, .c-homepage-slider__next:hover {
  background: rgb(255, 255, 255);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}
.c-homepage-slider__prev:active, .c-homepage-slider__next:active {
  transform: translateY(-50%) scale(0.95);
}
.c-homepage-slider__prev:focus, .c-homepage-slider__next:focus {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.c-homepage-slider__prev {
  left: 12px;
}
.c-homepage-slider__next {
  right: 12px;
}
.c-homepage-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.c-homepage-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.c-homepage-slider__dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}
.c-homepage-slider__dot--active {
  background: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
  transform: scale(1.3);
}
.c-homepage-slider__dot:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.c-homepage-slider--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.c-homepage-slider__placeholder-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}
.c-homepage-slider__placeholder-message code {
  background: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #1f2937;
}
@media (max-width: 768px) {
  .c-homepage-slider__prev, .c-homepage-slider__next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .c-homepage-slider__prev {
    left: 8px;
  }
  .c-homepage-slider__next {
    right: 8px;
  }
  .c-homepage-slider__dots {
    bottom: 12px;
  }
  .c-homepage-slider__dot {
    width: 8px;
    height: 8px;
  }
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 24px 0;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.content table thead {
  background: var(--card);
  border-bottom: 2px solid #e5e7eb;
}
.content table thead th {
  text-align: left;
  padding: 4px 8px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
}
.content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color all 0.2s ease;
}
.content table tbody tr:hover {
  background-color: #f9fafb;
}
.content table tbody tr:last-child {
  border-bottom: none;
}
.content table tbody td {
  padding: 4px 8px;
  color: var(--fg);
  vertical-align: top;
}
.content table tbody td:first-child {
  font-weight: 500;
}
.content table tbody td:nth-child(2) {
  font-style: italic;
  color: var(--muted);
}
.content table tbody td:nth-child(3) {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 768px) {
  .content table {
    font-size: 0.875rem;
  }
  .content table thead th,
  .content table tbody td {
    padding: 8px 12px;
  }
}
@media (max-width: 480px) {
  .content table {
    font-size: 0.8rem;
  }
  .content table thead th,
  .content table tbody td {
    padding: 4px 8px;
  }
}
.content .table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}
.content .table-wrapper table {
  margin: 0;
  min-width: 600px;
}

.c-latest-posts__block {
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.c-latest-posts__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.c-latest-posts__view-all {
  margin: 0;
  margin-top: -12px;
  margin-bottom: 8px;
  text-align: right;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-item {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  padding-bottom: 24px;
  margin-bottom: 12px;
}
.notes-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .notes-item {
    gap: 12px;
  }
}

.notes-photo {
  min-width: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-flow: column;
  gap: 12px;
}
@media (max-width: 480px) {
  .notes-photo {
    min-width: 100px;
  }
}
.notes-photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.notes-photo .no-photo {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative;
}
.notes-photo .no-photo::before {
  content: "📷";
  font-size: 1.5rem;
  opacity: 0.5;
}

.photo-container {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 480px) {
  .photo-container {
    height: 100px;
  }
}

.photo-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 20px;
  text-align: center;
}

.notes-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.notes-content h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 26px;
}
.notes-content h2 a {
  color: var(--fg);
  text-decoration: none;
  transition: all 0.2s ease;
}
.notes-content h2 a:hover {
  color: var(--accent);
}
.notes-content p {
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 0;
}
.notes-content p a {
  display: block;
}

.notes-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.notes-date {
  font-weight: 400;
  font-size: 13px;
  color: #686868;
}

.notes-tags a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}
.notes-tags a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.primary-photo {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #e1e5e9;
}

@media (max-width: 768px) {
  .notes-content h2 {
    font-size: 1rem;
  }
  .notes-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  .notes-meta {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .read-more {
    font-size: 0.8rem;
  }
}
@media (max-width: 480px) {
  .notes-content h2 {
    font-size: 0.95rem;
  }
  .notes-content p {
    font-size: 0.8rem;
  }
  .notes-meta {
    font-size: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .read-more {
    font-size: 0.75rem;
  }
  .photo-counter {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tag-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}
.tag-card:hover::before {
  opacity: 1;
}
.tag-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #20c997);
  opacity: 0;
  transition: all 0.3s ease;
}
.tag-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: var(--fg);
}
.tag-card h2 a {
  color: var(--fg);
  text-decoration: none;
  transition: all 0.2s ease;
}
.tag-card h2 a:hover {
  color: var(--accent);
}

.tag-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(22, 160, 133, 0.1);
  border-radius: 15px;
  display: inline-block;
}

.tag-preview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.tag-preview h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--fg);
  font-weight: 600;
}
.tag-preview ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.tag-preview li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.tag-preview a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.tag-preview a:hover {
  color: var(--accent);
}
.tag-preview .latin-name {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.more-link {
  margin: 0;
  text-align: center;
}
.more-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(22, 160, 133, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
}
.more-link a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.tag-description {
  background: linear-gradient(135deg, rgba(22, 160, 133, 0.05), rgba(32, 201, 151, 0.05));
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  color: var(--fg);
  font-weight: 500;
}

@media (max-width: 768px) {
  .tags-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tag-card {
    padding: 1rem;
  }
  .tag-card h2 {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .tag-preview li {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
  .more-link a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
.search-page {
  padding: 2rem 0;
  min-height: 60vh;
}

.search-form-container {
  margin-bottom: 2rem;
  max-width: 600px;
}

.search-form {
  width: 100%;
}

.search-results-page {
  max-width: 800px;
}

.search-results-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.search-results-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--fg);
}

.results-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.search-placeholder h2 {
  margin-bottom: 1rem;
  color: var(--fg);
}
.search-placeholder p {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .search-page {
    padding: 1rem 0;
  }
  .search-results-header h2 {
    font-size: 1.3rem;
  }
  .search-placeholder {
    padding: 2rem 1rem;
  }
}
.comments-section {
  margin-top: 12px !important;
  padding-top: 24px !important;
  border-top: 1px solid #e5e7eb !important;
  padding-bottom: 16px !important;
}

/*# sourceMappingURL=site.css.map*/