/* Three-band site header block */
.site-header-banded {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin: 4px auto 16px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-header-band {
    width: 100%;
    padding: 3px 0 2px 0;
    text-align: center;
    margin: 0;
    border: none;
}
.site-header-band-dark {
    background-color: #666666 !important;
}
.site-header-band-dark .headline, .site-header-band-dark .subheadline {
    color: #fff !important;
    text-align: center !important;
}
.site-header-band-light {
    background-color: #DCBBAB !important;
}
.site-header-band-light .site-title {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1.35em; /* Further increased font size for website name */
    color: #000; /* Make website name black */
    font-weight: normal;
    margin: 2px 0 2px 0;
    text-align: center !important;
}
.site-header-band-light .site-title a {
    color: #555;
    text-decoration: none;
    font-size: 0.85em; /* Keep author name smaller and gray */
}
.site-header-band-light .site-title a:hover {
    text-decoration: underline;
}

/* Remove unused/old header classes */
.custom-header, .header-banded, .header-band, .header-band-dark, .header-band-light, .header-band-top, .header-band-bottom, .header-band-middle, .header-content, .author-link {
    display: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body {
    background-color: #999973;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 8px 20px 20px 20px; /* Reduce top padding from 20px to 8px */
    line-height: 1.4;
}

/* Enable smooth scrolling for in-page anchor links */
html { scroll-behavior: smooth; }

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 12px 4px 12px;
    border-radius: 15px;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.headline {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    color: #fff;
    font-weight: bold;
    margin: 5px 0;
}

.subheadline {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1em;
    color: #fff;
}

.site-title {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    margin: 10px 0;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

/* Species title */
.species-section {
    background-color: #BEC8B9;
    padding: 3px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #999;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Ensure anchor targets inside species sections scroll into view with a little margin */
.species-section [data-el="anchor"] {
    display: block;
    scroll-margin-top: 10px;
}

/* Box around the species title within the section */
.species-title-box {
    background-color: #d9e3d3;
    border: 2px solid #6a9678;
    border-radius: 12px;
    padding: 6px 6px;
    margin: 0px auto 4px auto;
    max-width: 780px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Taxonomic Header */
.taxonomic-header {
    background-color: #BEC8B9;
    padding: 4px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #999;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.taxonomic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 0;
}

.taxonomic-table .header-row {
    background-color: rgba(0, 0, 0, 0.07);
}

.taxonomic-table .header-cell {
    padding: 0px 0px;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
    border-bottom: 1px solid #999;
}

.taxonomic-table .header-cell.spanish {
    border-bottom: 2px solid #999;
    padding: 2px 2px;
    font-size: 0.85em;
}

.taxonomic-table .header-cell.english {
    color: #006600;
    font-size: 0.75em;
    padding: 2px 2px;
    border-bottom: none;
}

.taxonomic-table .subfamily { /* reserved for future subfamily column styling */ }

.taxonomic-table .header-cell .english-text {
    color: #006600;
}

.taxonomic-table .data-row {
    background-color: rgba(255, 255, 255, 0.2);
}

.taxonomic-table .data-cell {
    padding: 4px 6px;
    font-size: 1em;
    vertical-align: middle;
    border-bottom: 1px solid #ccc;
}

.taxonomic-table .description-cell {
    padding: 2px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #ccc;
}

.taxonomic-table .spanish-description {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.taxonomic-table .english-description {
    font-size: 0.9em;
    color: #006600;
    line-height: 1.2;
}

.species-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    font-weight: bold;
    margin: 0;
    line-height: 1.5;
}

.scientific-name {
    font-style: italic;
    font-weight: normal;
}

.english-text {
    color: #006600;
}

/* Gender label */
.gender-box {
    background-color: #99CCFF;
    padding-top: 4px;
    padding-bottom: 0px;
    text-align: center;
    margin-top: 3px;
	margin-bottom: 4px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/*.gender-section.female {
    background-color: #FFCCCC;
} */

.gender-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    margin: 0;
    font-weight: bold;
}

/* Image frame */
.image-frame {
    background-color: #000;
    padding: 80px 40px;
    margin-bottom: 0;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.image-frame img {
    border: 2px solid #333;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.image-frame img.unpaired { cursor: default; }

/*.image-frame img:hover {
    transform: scale(1.02);
} */

/* Info sections */
.info-section {
    background-color: #BEC8B9;
    padding: 3px;
    text-align: center;
    margin-bottom: 0;
    border: 1px solid #999;
}

.info-section:last-child {
    border-radius: 0 0 12px 12px;
}

.camera-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    margin: 0;
}

.location-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    margin: 0;
}

/* Container for image + info sections */
.photo-group {
    margin-bottom: 3px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    border-radius: 12px;
    overflow: hidden;
}

/* Species page link below last image */
.species-more-link {
    text-align: center;
    margin: 8px 0 3px 0;
}
.species-more-link .more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f7bc;
    border: 2px solid #6a9678;
    border-radius: 12px;
    padding: 6px 12px;
    text-decoration: none;
}
.species-more-link .more-icon { font-size: 16px; }
.species-more-link .more-text-es { font-weight: 700; color: #333; }
.species-more-link .more-text-en { font-weight: 700; color: #006600; font-size: 0.95em; }

.photo-group .image-frame {
    margin-bottom: 0;
}

.photo-group .info-section {
    margin-bottom: 0;
}

.photo-group .info-section:last-child {
    margin-bottom: 0;
}

/* Description section */
.description-section {
    background-color: #BEC8B9;
    padding: 15px;
    text-align: center;
    margin: 25px 0;
    border: 2px solid #999;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.description-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    margin: 0;
}

/* Navigation */
.navigation {
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.navigation-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
}

.navigation-text a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.navigation-text a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.7em;
    color: #333;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.portal-links {
    text-align: center;
    margin: 8px 0 4px 0;
    font-size: 0.95em;
    line-height: 1.2;
}
.aves-birds-line {
    text-align: center;
    font-size: 1.25em;
    font-weight: bold;
    margin: 14px 0 10px 0;
    letter-spacing: 1px;
}
.aves-link {
    color: #0056cc;
    text-decoration: underline;
    font-weight: bold;
}
.aves-link:hover {
    text-decoration: none;
}
.birds-link {
    color: #006600;
    text-decoration: underline;
    font-weight: bold;
}
.birds-link:hover {
    text-decoration: none;
}
.portal-link-spanish {
    color: #0056cc;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.98em;
}
.portal-link-english {
    color: #006600;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.98em;
}
.portal-link-spanish:hover, .portal-link-english:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .container {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        padding: 5px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .image-frame {
        padding: 20px 2px;
    }
    .headline {
        font-size: 0.95em;
        line-height: 1.2;
        word-break: break-word;
        white-space: normal;
    }
    .subheadline {
        font-size: 0.85em;
        line-height: 1.2;
        word-break: break-word;
        white-space: normal;
    }
    .site-title {
        font-size: 1em;
        line-height: 1.2;
        word-break: break-word;
        white-space: normal;
    }
    .species-title {
        font-size: 0.9em;
    }
    .gender-label {
        font-size: 0.8em;
    }
    .navigation-text a {
        margin: 0 4px;
        padding: 3px 6px;
        font-size: 0.8em;
    }
} 

/* Description box for bilingual text below photos */
.description-box {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    margin: 4px 0 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.description-spanish {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
}
.description-english {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
    color: #006600;
    line-height: 1.4;
} 

/* Conservation Status Grid */
.status-panel { 
  margin: 12px 0 12px;
  background-color: #d9e3d3;
  border: 2px solid #6a9678;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
 }
.status-heading {
  text-align: center; margin-bottom: 8px;
  font: 15px/1.25 Arial, Helvetica, sans-serif;
  background-color: #BEC8B9;
  border-radius: 10px;
  padding: 2px;
}
.status-heading .es { font-weight: 700; color: #333; }
.status-heading .en { color: #006600; font-weight: 700; font-size: 15px; }

.status-grid {
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.status-box {
  border: 3px solid #999973; border-radius: 10px; padding: 2px 4px; text-align: center;
  background: #d8caca; /* inactive bg */
}
.status-box .label-es { display: block; font-weight: 700; color: #7a7a7a; }  /* inactive ES */
.status-box .label-en { display: block; font-weight: 750; color: #7ca07c; font-size: 13px; } /* inactive EN */

/* Active palettes */
.status-box.nt.is-selected { background: #cffda9; border-color: #559c03; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.status-box.nt.is-selected .label-es { color: #265e00; }
.status-box.nt.is-selected .label-en { color: #0f7a3a; }

.status-box.vu.is-selected { background: #f7fa67; border-color: #cf7f06; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.status-box.vu.is-selected .label-es { color: #a15a00; }
.status-box.vu.is-selected .label-en { color: #8c4e00; }

.status-box.en.is-selected { background: lch(79.57% 36.38 64.17); border-color: #e64201; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.status-box.en.is-selected .label-es { color: #a32020; }
.status-box.en.is-selected .label-en { color: #8b1a1a; }

.status-box.cr.is-selected { background: #fa9292; border-color: #df0404; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.status-box.cr.is-selected .label-es { color: #b30000; }
.status-box.cr.is-selected .label-en { color: #9a0000; }
