@charset "utf-8";
/* --------------------------------------------------
   BIRDS PAGE WRAPPER
-------------------------------------------------- */
.focc-page {
    background: #f5f5f5;
    padding: 0 !important; /* removes global body padding */
}

.focc-page .content-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 1100px;
}




/* --------------------------------------------------
   BIRDS NAV (FULLY ISOLATED)
-------------------------------------------------- */
nav.birds-nav {
    width: 100%;
    background: #2d4d2d;
    padding: 10px 0;
    margin-top: 0;
}

nav.birds-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0 16px; /* horizontal only */
    gap: 12px;
}

nav.birds-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.home-icon {
    height: 28px;
    width: auto;
    margin-right: 6px;
}

/* MOBILE NAV */
@media (max-width: 600px) {
    nav.birds-nav ul {
        gap: 8px;
        padding: 0 10px;
        flex-wrap: nowrap;
    }

    nav.birds-nav a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .birds-nav .home-icon {
        height: 18px;
        margin: 0;
    }
}

/* --------------------------------------------------
   BOTM HEADER
-------------------------------------------------- */
.bom-header {
    text-align: left;
    margin-bottom: 20px;
}

.bom-header .species {
    font-size: 2rem;
    font-weight: 700;
    color: #2d4d2d;
}

.bom-header .intro {
    font-size: 1.1rem;
    color: #666;
}

.bom-header .edition {
    font-size: 1rem;
    color: #888;
}

/* --------------------------------------------------
   BOTM EDITION HEADER — COMPACT VERSION
-------------------------------------------------- */
.bom-header {
    margin: 10px 0 20px 0;
    padding: 0;
    line-height: 1.3;
}

.bom-header .species {
    font-size: 1.8rem;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.bom-header .species em {
    font-style: italic;
    font-weight: 400;
}

.bom-header .intro,
.bom-header .edition,
.bom-header .local-names {
    margin: 2px 0;
    font-size: 1rem;
    color: #444;
}

.bom-header .local-names strong {
    font-weight: 600;
}

/* --------------------------------------------------
   BOTM NAV BAR (CLEAN + UNIFIED)
-------------------------------------------------- */
.botm-nav-wrapper {
    width: 100%;
    margin: 12px 0 8px 0;   /* tighter spacing above + below */
}

.botm-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;

    max-width: 1100px;
    margin: 0 auto 8px;     /* reduced bottom gap */
    padding-left: 10px;
}

.botm-nav label {
    font-weight: 600;
    color: #333;
}

.botm-nav select {
    padding: 6px 10px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.nav-arrow {
    padding: 6px 12px;
    font-size: 20px;
    background: #2d4d2d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nav-arrow:hover {
    background: #3b6b3b;
}

/* --------------------------------------------------
   BOTM PAGE MAIN HEADING
-------------------------------------------------- */
.botm-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d4d2d;
    display: inline-flex;      /* FIX: isolates flex so it doesn't affect article */
    align-items: center;
    gap: 12px;
}

.botm-heading .about-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #2d4d2d;       /* FOCC green */
    padding: 4px 10px;
    border-radius: 20px;       /* pill shape */
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.botm-heading .about-link:hover {
    background: #3a6a3a;       /* slightly lighter on hover */
}

#article-container > p:first-child {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 700px) {
    .botm-heading {
        font-size: 1.5rem;
        gap: 8px;
    }

    .botm-heading .about-link {
        font-size: 0.8rem;
    }
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */
@media (max-width: 600px) {

    .botm-nav {
        gap: 6px;
        justify-content: space-between;
        margin-bottom: 10px;   /* still compact on mobile */
    }

    .botm-nav select {
        font-size: 0.9rem;
        padding: 4px 6px;
        width: 200px;
    }

    .botm-nav label {
        display: none;
    }

    .bom-header .species {
        font-size: 1.2rem !important;
        line-height: 1.2;
    }
}

/* --------------------------------------------------
   FACT BOX
-------------------------------------------------- */
.fact-box {
    background: #f3f7f3;
    border-left: 4px solid #2d4d2d;
    padding: 18px 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.fact-box h3 {
    margin: 0;
    color: #2d4d2d;
}

/* --------------------------------------------------
   VOCAL BOX
-------------------------------------------------- */
.vocal-box {
    background: #eef4fa;
    border-left: 4px solid #3a5a7a;
    padding: 18px 20px;
    margin: 30px 0;
    border-radius: 6px;
}

.vocal-box h3 {
    margin: 0;
    color: #3a5a7a;
}






/* --------------------------------------------------
   SPECIES LIST
-------------------------------------------------- */
.species-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 20px;
}

.species-row {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.species-row.confirmed { color: #2d6a2d; }
.species-row.likely    { color: #4a90e2; }
.species-row.possible  { color: #777; }

.species-name { font-weight: 600; }

/* --------------------------------------------------
   BIRD CARDS
-------------------------------------------------- */
.bird-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bird-card {
    display: flex;
    gap: 15px;
}

.bird-card img {
    width: 120px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .bird-card {
        flex-direction: column;
        text-align: center;
    }

    .bird-card img {
        width: 60%;
    }
}

/* --------------------------------------------------
   OWL COMPARISON TABLE
-------------------------------------------------- */
.owl-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.owl-compare th,
.owl-compare td {
    border: 1px solid #ddd;
    padding: 10px 12px;
}

.owl-compare thead th {
    background: #f2f2f2;
}

.owl-table-image {
    display: none;
}

@media (max-width: 700px) {
    .owl-compare { display: none; }
    .owl-table-image { display: block; }
}

/* ----------------------------------------------------------
   SIDE-BY-SIDE IMAGE + CAPTION BLOCK (DESKTOP)
---------------------------------------------------------- */

.figure-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 30px 0;
    clear: both;
}

.figure-row-image img {
    width: 360px; /* default desktop size */
    height: auto;
    display: block;
    border-radius: 4px;
}

.figure-row-caption {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* ----------------------------------------------------------
   FIGURE-ROW IMAGE SIZE OPTIONS
---------------------------------------------------------- */

.figure-row-image img.small  { width: 260px; }
.figure-row-image img.medium { width: 340px; }
.figure-row-image img.large  { width: 420px; }
.figure-row-image img.xl     { width: 520px; }

/* Hide PNG table by default (desktop) */
.owl-table-image {
    display: none;
}

/* ----------------------------------------------------------
   MOBILE RESPONSIVE (IPHONE-FRIENDLY)
---------------------------------------------------------- */

@media (max-width: 700px) {

    /* Hide the HTML table on iPhone */
    .owl-compare {
        display: none;
    }

    /* Show the PNG snapshot instead */
    .owl-table-image {
        display: block;
    }

    /* Stack image above caption */
    .figure-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Prevent ANY image size from overflowing */
    .figure-row-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
    }

    .figure-row-caption {
        margin-top: 12px;
    }
}




/* --------------------------------------------------
   ABOUT JOEL POPUP
-------------------------------------------------- */
.about-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.about-popup-content {
    background: white;
    padding: 25px;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.about-popup-content h2 {
    margin-top: 0;
}

.close-btn {
    margin-top: 20px;
    padding: 8px 14px;
    background: #2d4d2d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.close-btn:hover {
    background: #3b6b3b;
}
/* --------------------------------------------------
   BOTM EDITION CONTAINER (restored classic box)
-------------------------------------------------- */
.botm-container {
    max-width: 1100px;
    margin: 6px auto 0 auto;      /* tight spacing under dropdown */
    padding: 20px 24px;           /* controlled internal spacing */
    background: #fafafa;          /* subtle background like old BOTM */
    border: 1px solid #ddd;       /* light border defines the box */
    border-radius: 6px;           /* soft corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* subtle depth */
}

/* --------------------------------------------------
   BOTM EDITION HEADER — ULTRA COMPACT
-------------------------------------------------- */
.bom-header {
    margin: 0 0 12px 0;   /* tight top + bottom */
    padding: 0;
    line-height: 1.25;
    text-align: left;
}

.bom-header .species {
    font-size: 1.7rem;
    margin: 0 0 4px 0;    /* very tight */
    font-weight: 700;
}

.bom-header .species em {
    font-style: italic;
    font-weight: 400;
}

.bom-header .intro {
    margin: 0 0 2px 0;    /* ultra compact */
    font-size: 1rem;
    color: #444;
}

.bom-header .edition,
.bom-header .local-names {
    margin: 0 0 2px 0;    /* tight */
    font-size: 1rem;
    color: #444;
}

.bom-header .local-names strong {
    font-weight: 600;
}

/* --------------------------------------------------
   BOTM ARTICLE SPACING
-------------------------------------------------- */
.botm-article {
    margin-top: 16px;     /* slightly reduced */
}
/* --------------------------------------------------
   FORCE ARTICLE CONTAINER BACK TO BLOCK FLOW
   (Fixes floats inside loaded articles)
-------------------------------------------------- */
#article-container {
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* --------------------------------------------------
   BACK TO TOP LINK
-------------------------------------------------- */
.back-to-top {
    margin-top: 30px;
    text-align: right;
}

.back-to-top a {
    text-decoration: none;
    font-weight: 600;
    color: #2d4d2d;
}

.back-to-top a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   CONTENT BOX SPACING FIX
-------------------------------------------------- */
.content-box {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove default top margin on first paragraph */
#article-container > p:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* --------------------------------------------------
   BACK TO TOP — CLASSIC GREEN BOX
-------------------------------------------------- */
.back-to-top {
    margin-top: 30px;
    text-align: right;
    clear: both;   /* ← ADD THIS HERE */
}

.back-to-top a {
    display: inline-block;
    background: #2d4d2d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #244024;
    transition: background 0.2s ease, transform 0.1s ease;
}

.back-to-top a:hover {
    background: #3c6b3c;
    transform: translateY(-1px);
}


/* ============================================================
   BIRD LIST — controls spacing between cards
   Adjust gap to increase/decrease space between cards
   ============================================================ */
.bird-list {
    display: flex;
    flex-direction: column;
    gap: 24px;          /* ADJUST: space between cards */
    margin: 20px 0;
}

/* ============================================================
   BIRD CARD — main container for each species
   Controls horizontal layout and spacing
   ============================================================ */
.bird-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;          /* ADJUST: space between image + text */
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

/* ============================================================
   IMAGE WRAPPER — fixed-size thumbnail box
   Adjust width/height to change image size
   ============================================================ */
.bird-image {
    width: 220px;       /* ADJUST: image width (bigger/smaller) */
    height: 165px;      /* ADJUST: image height */
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;     /* prevents shrinking on narrow screens */
}

/* Image inside wrapper */
.bird-image img {
    width: 100%;
    height: 100%;
	object-fit: contain;/* keeps portrait + landscape tidy */
background: #eee;   /* optional: adds a neutral background behind portrait images */
  
    object-position: center;
    display: block;
}

/* ============================================================
   TEXT COLUMN — everything to the right of the image
   ============================================================ */
.bird-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    min-height: 180px;                /* ADDED: gives room for bottom-right link */
}

/* Number */
.bird-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
}

/* Species name */
.bird-info h3 {
    margin: 0;
    font-size: 1.3rem;
}

.bird-info h3 a {
    text-decoration: none;
    color: #004a8f;
}

/* Status dot */
.status {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.status.confirmed { background: #2ecc71; }
.status.likely    { background: #3498db; }
.status.possible  { background: #888; }

/* Notes */
.notes {
    line-height: 1.45;
    margin: 0;
}

/* BOTM link */
.botm-link,
.no-botm {
    font-weight: bold;
    color: #006600;
    text-decoration: none;
}

/* ============================================================
   HEADER ROW — number + name + status dot
   ============================================================ */
.bird-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bird-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

/* ============================================================
   MOBILE LAYOUT
   ============================================================ */
@media (max-width: 700px) {
    .bird-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bird-image {
        width: 90%;
        height: 220px;
    }

    .bird-info {
        align-items: center;
        min-height: auto;   /* reset for mobile */
    }
}

/* ============================================================
   BOTM LINK — bottom-right alignment
   ============================================================ */
.bird-info .botm-link,
.bird-info .no-botm {
    align-self: flex-end;   /* right side */
    margin-top: auto;       /* pushes to bottom */
}

/* ============================================================
   INTRO BLOCK ABOVE BIRD LIST
   ============================================================ */
.bird-intro {
    margin-top: 20px;      /* pushes text down from nav bar */
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================================
   LEGEND
   ============================================================ */
.legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.legend-box {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 6px;
}

.legend-box.confirmed { background: #2ecc71; }
.legend-box.likely    { background: #3498db; }
.legend-box.possible  { background: #888; }

/* Mobile tidy-up */
@media (max-width: 700px) {
    .legend {
        flex-direction: row;   /* force one line */
        flex-wrap: nowrap;     /* prevent wrapping */
        justify-content: center;
        gap: 8px;
    }
}
.scroll-area {
    height: calc(100vh - 260px); /* adjust 260px to match your header+legend height */
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
}
.powerful-owl-heading {
    color: #2d4d2d;   /* FOCC green */
}
.bird-list-heading {
    color: #2d4d2d;   /* FOCC green */
    font-weight: 700;
}

/* --------------------------------------------------
   VOCAL BOX — WRAPS BESIDE FLOATS
-------------------------------------------------- */
.vocal-box {
    float: right;
    max-width: 600px;
    margin: 0 0 10px 10px;
    padding: 16px 20px;
    background: #eef4fa;
    border-left: 4px solid #3a5a7a;
    border-radius: 6px;
    box-sizing: border-box;
}




/* ----------------------------------------------------------
   BOTM IMAGE SIZE UTILITIES
---------------------------------------------------------- */
figure.bom-img-left.img-small img,
figure.bom-img-right.img-small img {
    max-width: 260px !important;
}

figure.bom-img-left.img-medium img,
figure.bom-img-right.img-medium img {
    max-width: 340px !important;
}

figure.bom-img-left.img-large img,
figure.bom-img-right.img-large img {
    max-width: 420px !important;
}

figure.bom-img-left.img-xl img,
figure.bom-img-right.img-xl img {
    max-width: 520px !important;
}
/* --------------------------------------------------
   BOTM FLOATING IMAGES (BASE FLOAT BEHAVIOUR)
-------------------------------------------------- */
.bom-img-left {
    float: left;
    margin: 0 20px 12px 0;
}

.bom-img-right {
    float: right;
    margin: 0 0 12px 20px;
}


/* ----------------------------------------------------------
   CAPTION BEHAVIOUR
---------------------------------------------------------- */
figure.bom-img-left figcaption,
figure.bom-img-right figcaption {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}


/* ----------------------------------------------------------
   FIGURE SHOULD SHRINK TO IMAGE WIDTH
---------------------------------------------------------- */
figure.bom-img-left,
figure.bom-img-right {
    display: inline-block;   /* makes figure shrink to image width */
    width: auto;             /* prevents stretching */
    max-width: 100%;         /* safe on mobile */
    vertical-align: top;
}


/* Image must be block-level so figure width = image width */
figure.bom-img-left img,
figure.bom-img-right img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;               /* important: no margin here */
}


/* ----------------------------------------------------------
   ML-HEAD OVERRIDES (HEAD CLOSE-UP IMAGE)
---------------------------------------------------------- */
.ml-head {
    float: left !important;
    display: inline-block !important;
    margin: 0 20px 12px 0 !important;
}

.ml-head img {
    display: block !important;
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    margin: 0 !important;
}

.ml-head figcaption {
    display: block !important;
    clear: both !important;
    margin-top: 6px !important;
}


/* ----------------------------------------------------------
   GENERIC FIGURE BEHAVIOUR
---------------------------------------------------------- */
figure.final-img + p {
    clear: both;
}

/* --------------------------------------------------
   MOBILE FLOAT RESET (max-width: 700px)
-------------------------------------------------- */
@media (max-width: 700px) {

    .bom-img-right,
    .bom-img-left {
        float: none;
        margin: 12px 0;
        width: 100%;
    }

    .bom-img-right img,
    .bom-img-left img {
        max-width: 100% !important;
        width: 100% !important;
    }
}


/* --------------------------------------------------
   iPHONE FIXES (max-width: 480px)
-------------------------------------------------- */
@media (max-width: 480px) {

    /* Vocal box full width */
    .vocal-box {
        display: block !important;
        float: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 12px 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    /* Reset floats for images */
    .bom-img-left,
    .bom-img-right {
        float: none !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }

    .bom-img-left img,
    .bom-img-right img {
        width: 100% !important;
        height: auto !important;
    }

    /* Vocal box iframe */
    .vocal-box iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 115px !important;
        display: block;
    }

    /* Birds nav fixes */
    .birds-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        height: 48px !important;
    }

    .birds-nav .home-icon {
        height: 20px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }

    .birds-nav li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
        white-space: nowrap;
    }

    .birds-nav a {
        font-size: 0.9rem !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .birds-nav ul {
        gap: 12px !important;
    }

    .powerful-owl-heading {
        font-size: 1.6rem;
        line-height: 1.25;
    }
}


/* --------------------------------------------------
   iPAD OPTIMIZED LAYOUT — SAFE VERSION (768–1024px)
-------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Let images scale nicely on iPad */
    .bom-img-left img,
    .bom-img-right img {
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure paragraphs wrap normally */
    .botm-article p {
        clear: none !important;
        width: auto;
    }
}
