/* =================================================
        Section 1: Global Reset & Base Styles
================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll gaps */
}

body {
    font-family: "Courier New", Courier, monospace;
    color: #333333;
    background-color: #f9f9f9;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =================================================
        Section 2: Multi-Tiered Header Styles
================================================= */

.site-header {
    width: 100%;
}

/* Gives every header row a crisp 1px white bottom border with zero extra gap */
.header-row {
    border: none;
    border-bottom: 1px solid #ffffff;
    width: 100%;
    margin-bottom: 0;
}

/* 1. Green Row */
.green-row {
    background-color: #99cc66;
    padding: 0.8rem 0;
    color: #ffffff;
}

.header-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-left a, .nav-left span {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-left .divider {
    margin: 0 0.8rem;
}



/* 2 & 4. Thin Orange Strips */
.orange-stripe {
    background-color: #fbb03b;
    height: 11px;
}

/* 3. Hero Image Row */
.hero-row {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
}

/* Darkens image slightly so white text pops clearly */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5rem 1.5rem 2rem 1.5rem;
    color: #ffffff;
}

.hero-text .hero-title {
    font-size: 2.8rem;
    font-weight: normal;
    margin: 0 0 0.2rem 0;
    letter-spacing: 0.5px;
}

.hero-text p {
    font-size: 1.05rem;
    opacity: 0.95;
}

.hero-socials {
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.hero-socials a:hover {
    opacity: 0.7;
}

/* 5. Blue Row */
.blue-row {
    background-color: #94b2b5;
    height: 13px;
}

/* =================================================
        Section 3: Main Content Area
================================================= */

.site-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #333333 !important;
}

.site-main-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Locked to 15px to match the internal grid gap perfectly */
}


/* =================================================
        Section 4: Multi-Tiered Footer Styles
================================================= */

.site-footer {
    width: 100%;
    margin-top: 0;
    position: relative;
}

.footer-row {
    border: none;
    border-bottom: 1px solid #ffffff;
    width: 100%;
    margin-bottom: 0;
}
.site-footer .blue-row {
    background-color: #94b2b5;
    height: 14px;
}

.site-footer .orange-stripe {
    background-color: #fbb03b;
    height: 8px;
}

.site-footer .green-row {
    background-color: #99cc66;
    padding: 2.5rem 0;
    color: #ffffff;
    position: relative;
}

.footer-inner,
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    column-gap: 2.5rem;
    row-gap: 0.35rem;
    flex-wrap: wrap;
}

.footer-content p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: right;
}

.footer-copy {
    margin-left: auto;
}

.page-view-count {
    margin-right: 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    opacity: 0.55;
    text-align: left;
    flex: 0 0 auto;
}

.back-to-top {
    position: none;
    right: 8%;
    top: -28px;
    width: 56px;
    height: 56px;
    background-color: #94b2b5;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: #7d9a9d;
    transform: translateY(-2px);
}


/* =================================================
        Section 5: Responsive Layout Adjustments
================================================= */

@media (max-width: 768px) {
    .hero-content-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .hero-text .hero-title {
        font-size: 2.1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-row {
        min-height: 300px;
    }
}


/* =================================================================
   Section 6: Template 1 - Custom 5-Block Asymmetric Mosaic Layout
   ================================================================= */

.cody-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px;
    gap: 15px;
    width: 100%;
}

.cody-mosaic-grid .mosaic-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cody-mosaic-grid .mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cody-mosaic-grid .mosaic-tile.image-panel {
    color: #ffffff;
    align-items: flex-end;
}

.cody-mosaic-grid .mosaic-tile.image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}

.cody-mosaic-grid .mosaic-tile.text-panel {
    background: #ffffff;
    color: #2c2c2c;
    align-items: flex-start;
}

.cody-mosaic-grid .mosaic-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

/* Increased font sizing to match WordPress presence */
.cody-mosaic-grid .mosaic-content h2,
.cody-mosaic-grid-reversed .mosaic-content h2,
.cody-mosaic-grid-banner .mosaic-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.7rem;
    line-height: 1.15;
    font-family: inherit;
}

.cody-mosaic-grid .mosaic-content p,
.cody-mosaic-grid-reversed .mosaic-content p,
.cody-mosaic-grid-banner .mosaic-content p {
    margin: 0;
    font-size: 1.0rem;
    opacity: 0.9;
}

.cody-mosaic-grid .mosaic-tile.tile-1 {
    grid-column: 1 / 3; 
    grid-row: 1 / 3;    
}

.cody-mosaic-grid .mosaic-tile.tile-2 {
    grid-column: 3;
    grid-row: 1;
}

.cody-mosaic-grid .mosaic-tile.tile-3 {
    grid-column: 4;
    grid-row: 1;
}

.cody-mosaic-grid .mosaic-tile.tile-4 {
    grid-column: 3;
    grid-row: 2;
}

.cody-mosaic-grid .mosaic-tile.tile-5 {
    grid-column: 4;
    grid-row: 2;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cody-mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid .mosaic-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 270px;
    }
    .cody-mosaic-grid .mosaic-tile.tile-1 {
        grid-column: span 2 !important;
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .cody-mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid .mosaic-tile {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 260px;
    }
}


/* =================================================================
   Section 7: Template 2 - Reversed Custom 5-Block Asymmetric Mosaic Layout
   ================================================================= */

.cody-mosaic-grid-reversed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px;
    gap: 15px;
    width: 100%;
}

.cody-mosaic-grid-reversed .mosaic-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cody-mosaic-grid-reversed .mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cody-mosaic-grid-reversed .mosaic-tile.image-panel {
    color: #ffffff;
    align-items: flex-end;
}

.cody-mosaic-grid-reversed .mosaic-tile.image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}

.cody-mosaic-grid-reversed .mosaic-tile.text-panel {
    background: #ffffff;
    color: #2c2c2c;
    align-items: flex-start;
}

.cody-mosaic-grid-reversed .mosaic-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.cody-mosaic-grid-reversed .mosaic-tile.tile-2 {
    grid-column: 1;
    grid-row: 1;
}

.cody-mosaic-grid-reversed .mosaic-tile.tile-3 {
    grid-column: 2;
    grid-row: 1;
}

.cody-mosaic-grid-reversed .mosaic-tile.tile-4 {
    grid-column: 1;
    grid-row: 2;
}

.cody-mosaic-grid-reversed .mosaic-tile.tile-5 {
    grid-column: 2;
    grid-row: 2;
}

.cody-mosaic-grid-reversed .mosaic-tile.tile-1 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cody-mosaic-grid-reversed {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-reversed .mosaic-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 270px;
    }
    .cody-mosaic-grid-reversed .mosaic-tile.tile-1 {
        grid-column: span 2 !important;
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .cody-mosaic-grid-reversed {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-reversed .mosaic-tile {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 260px;
    }
}


/* =================================================================
   Section 8: Template 3 - Custom 6-Block Mosaic Layout (2 Large, 4 Small)
   ================================================================= */

.cody-mosaic-grid-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 330px;
    gap: 15px;
    width: 100%;
}

.cody-mosaic-grid-banner .mosaic-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cody-mosaic-grid-banner .mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cody-mosaic-grid-banner .mosaic-tile.image-panel {
    color: #ffffff;
    align-items: flex-end;
}

.cody-mosaic-grid-banner .mosaic-tile.image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}

.cody-mosaic-grid-banner .mosaic-tile.text-panel {
    background: #ffffff;
    color: #2c2c2c;
    align-items: flex-start;
}

.cody-mosaic-grid-banner .mosaic-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.cody-mosaic-grid-banner .mosaic-tile.tile-1 {
    grid-column: 1 / 3; 
    grid-row: 1;    
}

.cody-mosaic-grid-banner .mosaic-tile.tile-2 {
    grid-column: 3;     
    grid-row: 1;
}

.cody-mosaic-grid-banner .mosaic-tile.tile-3 {
    grid-column: 4;     
    grid-row: 1;
}

.cody-mosaic-grid-banner .mosaic-tile.tile-4 {
    grid-column: 1;     
    grid-row: 2;
}

.cody-mosaic-grid-banner .mosaic-tile.tile-5 {
    grid-column: 2;     
    grid-row: 2;
}

.cody-mosaic-grid-banner .mosaic-tile.tile-6 {
    grid-column: 3 / 5; 
    grid-row: 2;        
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cody-mosaic-grid-banner {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-banner .mosaic-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 270px;
    }
    .cody-mosaic-grid-banner .mosaic-tile.tile-1,
    .cody-mosaic-grid-banner .mosaic-tile.tile-6 {
        grid-column: span 2 !important;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .cody-mosaic-grid-banner {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-banner .mosaic-tile {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 260px;
    }
}

/* =================================================
        Reusable Navigation Buttons Component
================================================= */

.nav-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.nav-btn {
    background-color: #94b2b5; /* Matches your blue accent tone */
    color: #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ffffff;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover {
    background-color: #7d9a9d;
    transform: translateY(-2px);
}

/* =================================================================
   Section: Template - Center Feature Mosaic Layout (Big Feature Middle)
   ================================================================= */

.cody-mosaic-grid-center {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px;
    gap: 15px;
    width: 100%;
}

.cody-mosaic-grid-center .mosaic-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cody-mosaic-grid-center .mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cody-mosaic-grid-center .mosaic-tile.image-panel {
    color: #ffffff;
    align-items: flex-end;
}

.cody-mosaic-grid-center .mosaic-tile.image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}

.cody-mosaic-grid-center .mosaic-tile.text-panel {
    background: #ffffff;
    color: #2c2c2c;
    align-items: flex-start;
}

.cody-mosaic-grid-center .mosaic-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

/* Positioning the tiles: 2 small on left, big feature in center columns 2 & 3, 2 small on right */
.cody-mosaic-grid-center .mosaic-tile.tile-1 {
    grid-column: 1;
    grid-row: 1;
}

.cody-mosaic-grid-center .mosaic-tile.tile-2 {
    grid-column: 1;
    grid-row: 2;
}

/* The Big Feature in the middle columns */
.cody-mosaic-grid-center .mosaic-tile.tile-3 {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
}

.cody-mosaic-grid-center .mosaic-tile.tile-4 {
    grid-column: 4;
    grid-row: 1;
}

.cody-mosaic-grid-center .mosaic-tile.tile-5 {
    grid-column: 4;
    grid-row: 2;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cody-mosaic-grid-center {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-center .mosaic-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 270px;
    }
    .cody-mosaic-grid-center .mosaic-tile.tile-3 {
        grid-column: span 2 !important;
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .cody-mosaic-grid-center {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-center .mosaic-tile {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 260px;
    }
}

 /* =================================================================
   Section: Template - Two Big Features Side-by-Side (4 Tiles Total)
   ================================================================= */

.cody-mosaic-grid-double {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 330px;
    gap: 15px;
    width: 100%;
}

.cody-mosaic-grid-double .mosaic-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cody-mosaic-grid-double .mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cody-mosaic-grid-double .mosaic-tile.image-panel {
    color: #ffffff;
    align-items: flex-end;
}

.cody-mosaic-grid-double .mosaic-tile.image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}

.cody-mosaic-grid-double .mosaic-tile.text-panel {
    background: #ffffff;
    color: #2c2c2c;
    align-items: flex-start;
}

.cody-mosaic-grid-double .mosaic-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

/* Left big feature (columns 1 to 3) */
.cody-mosaic-grid-double .mosaic-tile.tile-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Right big feature (columns 3 to 5) */
.cody-mosaic-grid-double .mosaic-tile.tile-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cody-mosaic-grid-double {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-double .mosaic-tile {
        grid-column: span 2 !important;
        grid-row: auto !important;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .cody-mosaic-grid-double {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cody-mosaic-grid-double .mosaic-tile {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 260px;
    }
}


/* =================================================================
   Section: Template - Uniform 8-Block Grid (No Big Features)
   ================================================================= */

.cody-mosaic-grid-uniform-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px; /* Compact uniform squares/rectangles */
    gap: 15px;
    width: 100%;
}

.cody-mosaic-grid-uniform-8 .mosaic-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cody-mosaic-grid-uniform-8 .mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.cody-mosaic-grid-uniform-8 .mosaic-tile.image-panel {
    color: #ffffff;
    align-items: flex-end;
}

.cody-mosaic-grid-uniform-8 .mosaic-tile.image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}

.cody-mosaic-grid-uniform-8 .mosaic-tile.text-panel {
    background: #ffffff;
    color: #2c2c2c;
    align-items: flex-start;
}

.cody-mosaic-grid-uniform-8 .mosaic-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

/* Make font slightly tighter for smaller blocks */
.cody-mosaic-grid-uniform-8 .mosaic-content h2 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
}

.cody-mosaic-grid-uniform-8 .mosaic-content p {
    font-size: 0.9rem;
}

/* All 8 tiles flow naturally into a 4-column layout spanning 2 rows */
.cody-mosaic-grid-uniform-8 .mosaic-tile {
    grid-column: auto;
    grid-row: auto;
}

@media (max-width: 1024px) {
    .cody-mosaic-grid-uniform-8 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cody-mosaic-grid-uniform-8 {
        grid-template-columns: 1fr;
    }
}

/* =================================================
        Reusable Modular Text Block Component
================================================= */

.cody-text-block {
    max-width: 1400px;
    width: 100%;
    margin: 1.5rem auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.cody-text-block-inner {
    max-width: 900px; /* Keeps the paragraph line-length readable */
}

.cody-text-block-larger {
    max-width: 908px; /* Keeps the paragraph line-length readable */
}


/* 1. Large Main Title */
.cody-text-block h2.block-title {
    font-size: 3.2rem;
    font-weight: normal;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    font-family: inherit;
}

/* 2. Offset Colored Sub-Heading with Letter Spacing */
.cody-text-block .block-subtitle {
    font-size: 0.95rem;
    color: #fbb03b; /* Matches your accent orange */
    letter-spacing: 0.4rem; /* Wide spacing just like your screenshot */
    margin: 0.4rem 0 1.2rem 0.2rem; /* Slight offset shift */
    text-transform: uppercase;
    font-weight: bold;
}

/* 3. Body Text with Clean Spacing */
.cody-text-block p {
    font-size: 1.05rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.7;
    letter-spacing: 0.5px;
}


/* =================================================================
   Section 9: Text Card Vibrant Fades (Fully Corrected Directions)
   ================================================================= */

/* --- ORANGE FADES --- */
.mosaic-tile.text-panel.fade-orange-left-to-right {
    background: linear-gradient(90deg, rgba(251, 176, 59, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-orange-right-to-left {
    background: linear-gradient(270deg, rgba(251, 176, 59, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-orange-top-to-bottom,
.mosaic-tile.text-panel.fade-orange-vertical {
    background: linear-gradient(180deg, rgba(251, 176, 59, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-orange-bottom-to-top,
.mosaic-tile.text-panel.fade-orange-bottom-up {
    background: linear-gradient(0deg, rgba(251, 176, 59, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}


/* --- GREEN FADES --- */
.mosaic-tile.text-panel.fade-green-left-to-right {
    background: linear-gradient(90deg, rgba(153, 204, 102, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-green-right-to-left {
    background: linear-gradient(270deg, rgba(153, 204, 102, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-green-top-to-bottom,
.mosaic-tile.text-panel.fade-green-vertical {
    background: linear-gradient(180deg, rgba(153, 204, 102, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-green-bottom-to-top,
.mosaic-tile.text-panel.fade-green-bottom-up {
    background: linear-gradient(0deg, rgba(153, 204, 102, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}


/* --- BLUE FADES --- */
.mosaic-tile.text-panel.fade-blue-left-to-right {
    background: linear-gradient(90deg, rgba(148, 178, 181, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-blue-right-to-left {
    background: linear-gradient(270deg, rgba(148, 178, 181, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-blue-top-to-bottom,
.mosaic-tile.text-panel.fade-blue-vertical {
    background: linear-gradient(180deg, rgba(148, 178, 181, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}
.mosaic-tile.text-panel.fade-blue-bottom-to-top,
.mosaic-tile.text-panel.fade-blue-bottom-up {
    background: linear-gradient(0deg, rgba(148, 178, 181, 0.85) 0%, rgba(255, 255, 255, 1) 100%) !important;
}


/* =================================================
        Section 10: Universal Gallery View Styles
================================================= */

.gallery-section {
    margin-bottom: 35px;
}

.gallery-section-header {
    padding: 10px 0;
    font-family: "Courier New", Courier, monospace;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Forces text to stack above the border line */
}


.gallery-section-title {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: normal;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.gallery-back-btn {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border: 1px solid #555;
    padding: 4px 10px;
    transition: all 0.3s ease;
}

.gallery-back-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* =================================================
        Section 111: blog floating style
================================================= */

/* Container for the grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Individual Card */
.grid-card {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px; /* Prevents a single card from stretching too wide */
    margin: 0 auto;   /* Centers it if it's the only item in the row */
    width: 100%;
}

/* Image container */
.card-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* The floating text box overlapping the bottom of the image */
.card-textbox {
    background: rgba(255, 255, 255, 0.96);
    margin: -70px 30px 0 30px; /* Pulls the box up to cleanly overlap the photo */
    padding: 25px 20px;
    position: relative;
    text-align: center;
    border: 1px solid #dcdcdc;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-textbox h2 {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-textbox p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 22px;
    background: transparent;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background: #2c3e50;
    color: #fff;
}

/* Sub-nav filters styling */
.sub-nav-filter {
    text-align: center;
    margin: 40px 0;
}

.sub-nav-filter a {
    display: inline-block;
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    background: #88a69a;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sub-nav-filter a.active {
    background: #e67e22; /* Matches your accent orange */
}
/* =================================================
        Single Post & Gallery Styling
================================================= */

.single-post-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid #dcdcdc;
}

.back-link-wrapper {
    margin-bottom: 25px;
}

.back-btn {
    font-family: "Courier New", Courier, monospace;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    border-bottom: 1px dashed #2c3e50;
    padding-bottom: 2px;
}

.back-btn:hover {
    color: #e67e22;
    border-color: #e67e22;
}

.single-post-header h1 { 
    font-family: "Courier New", Courier, monospace;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.single-post-body {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 40px;
}

.single-post-gallery h3 {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.task-card.private-locked {
    background: #333 !important;
    color: #888 !important;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
    transform: none !important;
}
.task-card.private-locked:hover {
    transform: none !important;
    box-shadow: 2px 5px 10px rgba(0,0,0,0.2) !important;
}
.private-locked-banner {
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    padding: 20px 0;
    color: #aaa;
}

/* =================================================
        Decoder Module Styles (Matched to FeatherForge)
================================================= */

.decoder-wrapper {
    max-width: 900px;
    margin: 60px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Removed text-transform: lowercase so capitalization renders naturally */
}

.decoder-wrapper h2 {
    color: #121212;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0;
    font-family: inherit;
}

.decoder-wrapper .main-card,
.decoder-wrapper .offspring-section {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    margin-bottom: 2rem;
}

.decoder-wrapper .parent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 800px) {
    .decoder-wrapper .parent-grid {
        grid-template-columns: 1fr;
    }
}

.decoder-wrapper .parent-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.decoder-wrapper .parent-box.male { border-top: 4px solid #3b82f6; }
.decoder-wrapper .parent-box.female { border-top: 4px solid #ec4899; }

.decoder-wrapper .parent-title.male {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.decoder-wrapper .parent-title.female {
    color: #ec4899;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.decoder-wrapper .display-status {
    font-size: 0.85rem;
    color: #111111;
    margin-bottom: 1rem;
    font-weight: 700;
}

.decoder-wrapper .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.decoder-wrapper .section-label.autosomal { color: #d97706; }
.decoder-wrapper .section-label.sex-linked { color: #65a30d; }
.decoder-wrapper .section-label.splits { color: #4b5563; }

.decoder-wrapper .pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.decoder-wrapper .pill-btn {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    text-transform: none;
}

.decoder-wrapper .pill-btn:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.decoder-wrapper .pill-btn.active {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border-color: #1f2937 !important;
}

.decoder-wrapper .gender-select {
    background-color: #f3f4f6;
    color: #121212;
    border: 1px solid #d1d5db;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-family: inherit;
}

.decoder-wrapper .tip-text {
    font-size: 0.75rem;
    color: #dc2626;
    font-style: italic;
    margin-top: 0.75rem;
}

.decoder-wrapper .splits-toggle-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
}

.decoder-wrapper .splits-container {
    display: none;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.decoder-wrapper .splits-container.visible { display: block; }

.decoder-wrapper .offspring-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.decoder-wrapper .remove-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: #ef4444;
    color: #fff;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.decoder-wrapper .remove-btn:hover { background-color: #dc2626; }

.decoder-wrapper .btn-primary {
    background-color: #fbb03b;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.decoder-wrapper .btn-primary:hover {
    opacity: 0.9;
}

.decoder-wrapper .btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.decoder-wrapper .btn-secondary:hover { background-color: #e5e7eb; }

.decoder-wrapper .results-box {
    background-color: #121212;
    border: 1px solid #2e7d32;
    color: #e0e0e0;
    padding: 1.75rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.decoder-wrapper .impossible-box {
    background-color: #2a1215;
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.decoder-wrapper .result-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.decoder-wrapper .result-card.cock-card { border-left: 4px solid #3b82f6; }
.decoder-wrapper .result-card.hen-card { border-left: 4px solid #ec4899; }

.decoder-wrapper .result-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

.decoder-wrapper .cock-title { color: #60a5fa; }
.decoder-wrapper .hen-title { color: #f472b6; }

.decoder-wrapper .meta-row {
    display: flex;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.decoder-wrapper .meta-label {
    width: 230px;
    font-weight: 600;
    color: #a0a0a0;
    flex-shrink: 0;
}

.decoder-wrapper .meta-value {
    color: #ffffff;
    font-weight: 500;
}

.decoder-wrapper .summary-block {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #2a2a2a;
}

.decoder-wrapper .summary-heading {
    font-weight: 700;
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.decoder-wrapper .summary-note-item {
    color: #d1d5db;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    padding-left: 0.75rem;
    border-left: 2px solid #374151;
}

.decoder-wrapper .summary-note-item strong { color: #bb86fc; }

.decoder-wrapper .advisory-box {
    background: #261c0d;
    border: 1px solid #854d0e;
    color: #fef08a;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ============================================================================
--    section: Global Viewport Lock & Horizontal Overflow Prevention
-- ============================================================================ */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.site-header, 
.site-main, 
.header-row, 
.container {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* ============================================================================
--    section: Global Viewport Lock & Horizontal Overflow Prevention
-- ============================================================================ */

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.site-header, 
.site-main, 
.header-row, 
.container {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* ============================================================================
--    section: Header Tab Navigation Bar (Locked Mobile Scroll)
-- ============================================================================ */

.header-tabs-wrapper {
    background-color: #333333 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 0 12px 0 !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.header-tabs-container {
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box !important;
    
    /* Strict Horizontal Touch Scroll */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

.header-tabs-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.site-tab {
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    padding: 6px 16px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 22px !important;
    box-sizing: border-box !important;
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-top: none !important; 
    border-left: 1px solid #ffffff !important;
    border-right: 1px solid #ffffff !important;
    border-bottom: 1px solid #ffffff !important;
    transition: background-color 0.2s ease !important;
    text-transform: lowercase !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Green default state */
.site-tab.tab-green {
    background-color: #99cc66 !important;
    color: #ffffff !important;
}

.site-tab.tab-green:hover {
    background-color: #8bb85a !important;
}

/* Orange active state */
.site-tab.tab-orange {
    background-color: #fbb03b !important;
    color: #ffffff !important;
}

/* Mobile responsive scaling */
@media (max-width: 768px) {
    .header-tabs-wrapper {
        padding-bottom: 8px !important;
    }

    .header-tabs-container {
        padding: 0 1rem !important;
        gap: 6px !important;
    }

    .site-tab {
        font-size: 0.8rem !important;
        padding: 4px 12px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        line-height: 20px !important;
    }
}
/* ============================================================================
--    section: Mobile Multi-Row Wrap (All Tabs Visible)
-- ============================================================================ */

@media (max-width: 768px) {
    .header-tabs-wrapper {
        padding-bottom: 8px !important;
    }

    .header-tabs-container {
        flex-wrap: wrap !important; /* Drops overflowing tabs to a 2nd row */
        justify-content: center !important; /* Centers the tabs neatly */
        padding: 0 0.5rem !important;
        gap: 6px 4px !important;
        overflow-x: visible !important; /* Disables hidden scrolling */
    }

    .site-tab {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        line-height: 18px !important;
    }
}

/* =================================================
        My Flock: public view, filters, profile, lightbox
================================================= */

.flock-page-intro {
    max-width: 900px;
    margin: 30px auto 10px;
    padding: 0 20px;
    text-align: left;
}

.flock-page-intro h1 {
    font-family: inherit;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: normal;
}

.flock-page .flock-kicker {
    font-size: 0.95rem;
    color: #fbb03b;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.flock-page .main-card > h2,
.flock-page .flock-heading {
    color: #99cc66;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.flock-page .flock-toolbar {
    position: relative;
    z-index: 1;
}

.flock-page .flock-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.flock-page .flock-heading-row .flock-heading {
    margin-bottom: 0;
}

.flock-page .flock-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.flock-page .flock-view-btn.is-active {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.flock-page .flock-list {
    min-width: 0;
}

.flock-page .flock-toolbar .flock-filter-row {
    margin-bottom: 0;
}

.flock-page .flock-toolbar .flock-filter-block:last-of-type {
    margin-bottom: 0.85rem;
}

.flock-page .flock-name-filter {
    flex: 1 1 14rem;
}

.flock-page .flock-pairs {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.flock-page .flock-pairs[hidden],
.flock-page .flock-groups[hidden] {
    display: none !important;
}

.flock-page .flock-pair-card {
    padding: 0.85rem 0.75rem 0.35rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.flock-page .flock-pair-card.is-alt {
    background: #e7f0dc;
}

.flock-page .flock-pair-card.is-hidden {
    display: none !important;
}

.flock-page .admin-panel h2 {
    color: #111111;
    font-weight: 500;
}

.flock-copy,
.flock-setup {
    color: #333333;
    line-height: 1.7;
}

.flock-setup {
    padding-left: 1.2rem;
}

.flock-error {
    background: #ffffff;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.flock-flash {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.flock-active-count {
    margin: 0;
    color: #111111;
    font-weight: 700;
}

.flock-filter-block {
    margin: 0 0 1rem;
}

.flock-filter-block .section-label {
    margin-bottom: 0.45rem;
}

.flock-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin: 0 0 1.4rem;
}

.flock-select-filter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 11rem;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flock-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
}

.flock-page .flock-aviary.is-hidden,
.flock-aviary.is-hidden {
    display: none !important;
}

.flock-page .flock-aviary-heading {
    margin-bottom: 1rem;
}

.loft-census {
    margin: 0 0 0.35rem;
    color: #374151;
    line-height: 1.5;
}

.loft-summary {
    margin-top: 0.35rem;
}

.loft-summary > summary {
    cursor: pointer;
    color: #111111;
    font-weight: 700;
    width: fit-content;
}

.loft-summary-list {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    color: #333333;
    line-height: 1.55;
}

.loft-summary-list li + li {
    margin-top: 0.25rem;
}

.loft-summary-kicker {
    margin: 0.9rem 0 0;
    color: #111111;
    font-weight: 700;
}

.loft-note,
.loft-empty,
.loft-mate-note {
    margin: 0.35rem 0 0;
    color: #6b7280;
    line-height: 1.45;
}

.loft-kicker {
    margin: 0 0 0.65rem;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loft-block {
    margin: 0.85rem 0 0;
    padding: 0.85rem 0.75rem 0.75rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.loft-block.is-alt {
    background: #e7f0dc;
}

.loft-block.is-hidden,
.loft-house.is-hidden,
.loft-block .flock-pair.is-hidden {
    display: none !important;
}

.loft-pairs {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.loft-elsewhere {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.loft-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem 0.75rem;
}

.loft-move {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
    margin: 0;
}

.loft-move-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 10rem;
}

.loft-move-caption {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.flock-aviary-empty {
    margin: 0 0 0.35rem;
}

.flock-group {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0.75rem 0.35rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.flock-group.is-alt {
    background: #e7f0dc;
}

.flock-group.is-hidden {
    display: none;
}

.flock-group-heading {
    margin: 0 0 0.75rem;
    color: #111111;
    font-size: 1.05rem;
    font-weight: 700;
}

.flock-groups.is-ungrouped {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
}

.flock-groups.is-ungrouped .flock-group:not(.is-hidden),
.flock-groups.is-ungrouped .flock-group:not(.is-hidden) .flock-grid {
    display: contents;
}

.flock-groups.is-ungrouped .flock-group-heading {
    display: none;
}

@media (min-width: 800px) {
    .flock-groups.is-ungrouped {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.flock-page .flock-carousel {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
}

.flock-page .flock-carousel-empty {
    display: block;
    width: 100%;
    max-width: none;
    height: 320px;
    border-radius: 10px;
    background: #ececec;
}

.flock-page .flock-carousel-viewport {
    position: relative;
    width: 100%;
    max-width: none;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
}

.flock-page .flock-carousel-slide {
    display: block;
    width: 100%;
    height: 320px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.flock-page .flock-carousel-slide[hidden] {
    display: none !important;
}

.flock-page .flock-carousel-slide img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center center;
}

.flock-page .flock-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.62);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.flock-page .flock-carousel-nav.is-prev { left: 0.45rem; }
.flock-page .flock-carousel-nav.is-next { right: 0.45rem; }

.flock-page .flock-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.flock-page .flock-carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
}

.flock-page .flock-carousel-dot.is-active {
    background: #111111;
}

.flock-page .flock-move {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
}

.flock-page .flock-move-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 9rem;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flock-page .bird-profile .flock-move {
    margin-top: 0.75rem;
}

.aviary-catalog {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.aviary-catalog li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0;
    border-top: 1px solid #e5e7eb;
    color: #333333;
}

.flock-page .flock-filter.is-active,
.flock-page .flock-split-filter.is-active {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.flock-page .flock-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    min-width: 0;
}

@media (min-width: 800px) {
    .flock-page .flock-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.flock-page .flock-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    min-width: 0;
    overflow: hidden;
    color: #111111;
    padding: 0.75rem 0.9rem;
}

.flock-page .flock-card.is-deceased .flock-card-copy {
    padding-right: 1.6rem;
}

.flock-page .flock-deceased-banner {
    position: absolute;
    top: 0;
    right: 0;
    width: 5.25rem;
    height: 5.25rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.flock-page .flock-deceased-banner span {
    position: absolute;
    top: 0.95rem;
    right: -1.85rem;
    width: 7.2rem;
    padding: 0.2rem 0;
    background: #9f1239;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.flock-page .flock-card-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.flock-page .flock-card-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #ececec;
    display: block;
}

.flock-page .flock-card-thumb.is-empty {
    border: 1px solid #e5e7eb;
}

.flock-page .flock-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.flock-page .flock-card-pheno,
.flock-page .flock-card-meta {
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.flock-page .flock-card-pheno {
    color: #111111;
    font-size: 0.95rem;
}

.flock-page .flock-card-meta {
    color: #6b7280;
    font-size: 0.82rem;
}

.flock-page .flock-group-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.flock-page .flock-card.is-hidden {
    display: none !important;
}

.flock-page .flock-card-name,
.flock-page .flock-card-body {
    display: block;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.flock-page .flock-card-name {
    color: #99cc66;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
}

.flock-page .flock-card-name:hover,
.flock-page .flock-card-body:hover .flock-card-line {
    color: #6f9a3d;
}

.flock-page .flock-card-line {
    margin: 0 0 0.45rem;
    color: #111111;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.flock-page .flock-card-line:last-child {
    margin-bottom: 0;
}

.flock-page .flock-k {
    font-weight: 700;
    color: #4b5563;
}

.flock-page .flock-thumb {
    position: relative;
    display: block;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 !important;
    margin: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #ececec;
    flex: 0 0 60px;
}

.flock-page button.flock-thumb {
    cursor: zoom-in;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.flock-page .flock-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px;
    display: block;
}

.flock-empty-filter {
    color: #4b5563;
    margin-top: 0.5rem;
}

.flock-back {
    margin: -0.5rem 0 1.5rem;
}

.flock-back a {
    color: #fbb03b;
    font-weight: 700;
}

.bird-profile .bird-photos-lead {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.flock-page .flock-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.flock-page .bird-photo-add,
.flock-page .flock-mate {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
    width: 100%;
    margin: 0.75rem 0 0;
}

.flock-page .bird-photo-add .flock-field,
.flock-page .flock-mate .flock-field {
    width: 100%;
}

.flock-page .flock-mate-note {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.4;
}

.flock-page .bird-admin-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.flock-page .bird-admin-pair-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.flock-page .bird-admin-pair-cell {
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.flock-page .bird-admin-pair-cell .flock-mate,
.flock-page .bird-admin-pair-cell .flock-move,
.flock-page .bird-profile .bird-admin-pair-cell .flock-move {
    margin: 0;
}

.flock-page .bird-admin-pair-cell .flock-mate-note {
    margin-top: 0.55rem;
}

@media (min-width: 800px) {
    .flock-page .bird-admin-pair-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.flock-page .bird-edit-panel {
    margin-top: 0;
    padding: 0.85rem 0.9rem 0.35rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.flock-page .bird-admin-stack > .bird-edit-panel {
    margin-top: 0;
}

.flock-page .bird-edit-panel > summary {
    cursor: pointer;
    color: #111111;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.flock-page .bird-edit-panel .flock-delete {
    margin: 0.85rem 0 0.75rem;
}

.flock-page .flock-relative-heading {
    margin: 0.95rem 0 0.45rem;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
}

.flock-page .flock-lineage .flock-relative-heading:first-of-type {
    margin-top: 0;
}

.flock-page .bird-sibling-admin {
    margin-top: 0;
}

.flock-page .bird-sibling-admin .flock-copy {
    margin: 0 0 0.75rem;
}

.flock-page .bird-sibling-link {
    margin-top: 0.85rem;
}

.flock-page .bird-sibling-choices {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 16rem;
    overflow: auto;
    margin: 0.55rem 0 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #f6f5f1;
}

.flock-page .bird-sibling-choice.is-hidden {
    display: none !important;
}

.flock-page .flock-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

@media (min-width: 800px) {
    .flock-page .flock-pair.is-paired {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .flock-page .flock-pair:not(.is-paired) {
        grid-template-columns: minmax(0, 36rem);
    }
}

.flock-page .flock-pair-bird {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.flock-page .flock-identity-kicker,
.flock-page .flock-detail-heading,
.flock-page .flock-parent-label {
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flock-page .flock-identity-kicker {
    display: block;
}

.flock-page .flock-detail-heading {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.flock-page .flock-offspring-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.flock-page .flock-offspring-row {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.flock-page .flock-offspring-row.is-alt {
    background: #e7f0dc;
}

.flock-page .flock-offspring-parents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    margin: 0.55rem 0 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.35;
}

.flock-page .flock-offspring-parents a {
    color: #99cc66;
    font-weight: 700;
    text-decoration: none;
}

.flock-page .flock-offspring-parents a:hover {
    color: #6f9a3d;
}

.flock-page .flock-parent-label {
    margin-right: 0.3rem;
}

.flock-page .flock-parent-missing {
    color: #6b7280;
}

.bird-profile .bird-block + .bird-block {
    margin-top: 0.85rem;
}

.bird-profile .bird-block.bird-section {
    margin-top: 1.75rem;
}

.bird-profile .bird-line {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #111111;
}

.bird-profile .bird-k {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94b2b5;
}

.bird-profile p.bird-k {
    display: block;
    margin: 0 0 0.9rem;
}

.bird-profile .bird-line .bird-k {
    margin-right: 0.45rem;
}

.bird-profile .bird-v {
    font-weight: 600;
    color: #111111;
}

.bird-profile .bird-muted,
.bird-profile .bird-notes-copy {
    font-weight: 500;
    color: #333333;
    line-height: 1.75;
    margin: 0;
}

.bird-profile .bird-parent + .bird-parent {
    margin-top: 0.85rem;
}

.bird-profile .bird-parent a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.bird-profile .bird-parent a:hover {
    color: #fbb03b;
}

.bird-profile .bird-offspring-meta {
    color: #4b5563;
    font-weight: 500;
    font-size: 0.98rem;
}

.offspring-admin-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.offspring-admin-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.offspring-admin-list a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.offspring-admin-list form {
    margin: 0;
}

.bird-photo-btn {
    display: block;
    width: 100%;
    max-width: 640px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    cursor: zoom-in;
}

.bird-photo-btn img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #1a1a1a;
}

.bird-photo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-gate {
    max-width: 420px;
    margin: 0.25rem 0 1.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-gate label {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.admin-gate-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.admin-gate input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-gate-msg {
    margin: 0.7rem 0 0;
    color: #d1fae5;
    font-size: 0.9rem;
}

.admin-gate-msg.is-error {
    color: #fecaca;
}

.flock-page .admin-panel {
    display: block;
}

.flock-page .flock-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1.5rem;
}

@media (min-width: 800px) {
    .flock-page .flock-form-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.flock-page .flock-form .field {
    display: block;
    margin: 0 0 1rem;
}

.flock-page .flock-form .field > label {
    display: block;
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #111111;
}

.flock-page .flock-form input.flock-field,
.flock-page .flock-form select.flock-field,
.flock-page .flock-form textarea.flock-field,
.flock-page .flock-form input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    margin: 0 0 1rem;
}

.flock-field {
    width: 100%;
    padding: 0.5rem;
    margin: 0.3rem 0 0.8rem;
    font-family: inherit;
}

.flock-field-short { width: 8rem; }
.flock-field-tiny { width: 6rem; }
.flock-field-medium { max-width: 360px; }
.flock-field-auto { width: auto; }
.flock-field-gap { margin-left: 1rem; }
.flock-field-block { display: block; }
.flock-field-top { margin-top: 0.8rem; }

.flock-page .flock-check {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.flock-check-line {
    margin: 0.8rem 0;
}

.flock-rule {
    font-size: 0.85rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.clutch-chick-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.4rem 0 0.75rem;
}

.clutch-chick-tools h3,
.clutch-saved-heading {
    margin: 0;
    font-size: 1.05rem;
}

.clutch-saved-heading {
    margin-top: 1.6rem;
}

.clutch-optional {
    font-weight: 500;
    color: #6b7280;
}

.clutch-count-note {
    margin: -0.2rem 0 1rem;
    color: #4b5563;
    font-size: 0.85rem;
}

.clutch-chicks,
#clutch-chick-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.clutch-chick {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 0.9rem 0.15rem;
    background: #fafafa;
}

.clutch-chick-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.clutch-chick-title {
    margin: 0;
    font-size: 0.98rem;
}

.clutch-catalog {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
}

.clutch-catalog li {
    margin: 0.4rem 0;
}

.clutch-catalog a.is-current {
    font-weight: 700;
}

.flock-delete {
    margin-top: 1.5rem;
}

.flock-delete-btn {
    background: #fee2e2;
    border-color: #fecaca;
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(17, 17, 17, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.25rem 1.5rem;
}

.photo-modal[hidden] {
    display: none !important;
}

.photo-modal-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: min(1100px, 100%);
}

.photo-modal-frame-wrap {
    position: relative;
    max-width: 100%;
}

.photo-modal-frame {
    margin: 0;
    max-width: min(1100px, 100%);
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.photo-modal-nav.is-prev { left: 0.35rem; }
.photo-modal-nav.is-next { right: 0.35rem; }

.photo-modal-nav[hidden] { display: none !important; }

.photo-modal-count {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
}

.photo-modal-dots {
    display: flex;
    gap: 0.45rem;
}

.photo-modal-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.photo-modal-dot.is-active { background: #ffffff; }

.bird-photo-tools {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.bird-photo-tools li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 8.5rem 9.75rem 6rem;
    align-items: end;
    column-gap: 0.5rem;
    row-gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #f6f5f1;
}

.bird-photo-tools li.is-alt {
    background: #e7f0dc;
}

.bird-photo-tools img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #eceae4;
}

.bird-photo-tools-copy {
    display: grid;
    grid-column: 2 / 4;
    grid-template-columns: minmax(0, 1fr) 8.5rem;
    align-items: end;
    column-gap: 0.5rem;
    min-width: 0;
    color: #374151;
    font-size: 0.85rem;
}

.bird-photo-tools-copy .flock-move-label {
    min-width: 0;
}

.bird-photo-tools-copy .flock-field {
    width: 100%;
    box-sizing: border-box;
}

.bird-photo-tools-actions {
    display: grid;
    grid-column: 4 / 6;
    grid-template-columns: 9.75rem 6rem;
    align-items: end;
    column-gap: 0.5rem;
    margin: 0;
}

.bird-photo-tools form {
    width: 100%;
    margin: 0;
}

.bird-photo-tools .pill-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 760px) {
    .bird-photo-tools li {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .bird-photo-tools-copy,
    .bird-photo-tools-actions {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
    }

    .bird-photo-tools .pill-btn {
        width: auto;
        justify-self: start;
    }

    .bird-photo-slot {
        display: none;
    }
}

.photo-modal-frame img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 6.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: #111111;
}

.photo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.photo-modal-close:hover {
    background: #ffffff;
    color: #111111;
}

body.photo-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .admin-gate-row,
    .admin-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .flock-field-gap {
        margin-left: 0;
    }

    .bird-profile .bird-line {
        font-size: 1.08rem;
    }
}
