@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;
}





/* --------------------------------------------------
   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 PAGE MAIN HEADING
-------------------------------------------------- */
.heading {
    font-size: 1.2rem;
    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;
    }

.botm-heading-links {
    display: inline-flex;
    gap: 8px;
}

}
@media (max-width: 700px) {
    .botm-heading {
        font-size: 1.05rem;   /* smaller heading on iPhone */
        line-height: 1.25;
        flex-direction: column;   /* stack title + buttons vertically */
        align-items: flex-start;  /* left-align for cleaner wrap */
        gap: 6px;
    }

    .botm-heading-links {
        display: flex;
        gap: 6px;
    }

    .botm-heading .about-link {
        font-size: 0.75rem;   /* shrink buttons too */
        padding: 3px 8px;
    }
}




/* --------------------------------------------------
   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;
    }

    /* Powerful Owl heading — iPhone size */
    .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;
    }
}
/* --------------------------------------------------
   BOTM v2 CONTENT AREA (isolated from theme)
-------------------------------------------------- */
.focc-page .botm-content2 {
    display: block;
    width: 100%;
    overflow: visible;
}

/* --------------------------------------------------
   BOTM v2 ARTICLE WRAPPER
-------------------------------------------------- */
.focc-page .botm-article2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: block;
}

/* --------------------------------------------------
   BOTM v2 FIGURES (hardened base rule)
-------------------------------------------------- */
.focc-page .botm-article2 figure {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 0 16px 0;
}

/* Floats */
.focc-page .botm-article2 .botm-fig-right {
    float: right !important;
    margin-left: 16px;
    margin-bottom: 12px;
}

.focc-page .botm-article2 .botm-fig-left {
    float: left !important;
    margin-right: 16px;
    margin-bottom: 12px;
}

/* Image sizing */
.focc-page .botm-article2 figure img {
    width: 100% !important;
    height: auto;
    display: block;
}


.focc-page .botm-article2 .botm-fig-full {
    width: 100%;
    margin: 1.5em 0;
    clear: both;
}

.focc-page .botm-article2 .botm-fig-full img {
    width: 100%;
    height: auto;
    display: block;
}


/* --------------------------------------------------
   BOTM v2 SIZE CLASSES (must override base figure)
-------------------------------------------------- */
.focc-page .botm-article2 .botm-xl {
    max-width: 50% !important;
}

.focc-page .botm-article2 .botm-large {
    max-width: 40% !important;
}

.focc-page .botm-article2 .botm-medium {
    max-width: 30% !important;
}

.focc-page .botm-article2 .botm-small {
    max-width: 22% !important;
}

/* --------------------------------------------------
   BOTM v2 CAPTIONS
-------------------------------------------------- */
.botm-caption2 {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #555;
    margin-top: 4px;
    display: block;
    max-width: 100%;
}

/* --------------------------------------------------
   BOTM v2 TABLES
-------------------------------------------------- */
.botm-table2 {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background: #fff;
}

.botm-table2 th,
.botm-table2 td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    vertical-align: top;
}

.botm-table2 th {
    background: #f0f0f0;
    font-weight: bold;
    text-align: left;
}

.botm-table2 tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Scroll wrapper for wide tables */
.botm-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 20px 0;
}

.botm-table-scroll table {
    min-width: 600px;
}

/* BOTM v2 VOCALISATIONS BOX (base) */
.botm-vocal-box {
    background: #eef4fa;
    border-left: 4px solid #4a7;
    padding: 12px 14px;
    margin: 20px 0;
    max-width: 480px;
}



.botm-vocal-box h3 {
    margin-top: 0;
}

.botm-vocal-box iframe {
    width: 100%;
    max-width: 100%;
    border: none;
}
.botm-clear {
    clear: both;
}


/* --------------------------------------------------
   BOTM v2 CONTENT AREA (isolated from theme)
-------------------------------------------------- */
.focc-page .botm-content2 {
    display: block;
    width: 100%;
    overflow: visible;
}

/* --------------------------------------------------
   BOTM v2 ARTICLE WRAPPER
-------------------------------------------------- */
.focc-page .botm-article2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: block;
}

/* --------------------------------------------------
   BOTM v2 FIGURES (base rule)
-------------------------------------------------- */
.focc-page .botm-article2 figure {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 0 16px 0;
}

/* Floats */
.focc-page .botm-article2 .botm-fig-right {
    float: right !important;
    margin-left: 16px;
    margin-bottom: 12px;
}

.focc-page .botm-article2 .botm-fig-left {
    float: left !important;
    margin-right: 16px;
    margin-bottom: 12px;
}

/* Image sizing */
.focc-page .botm-article2 figure img {
    width: 100% !important;
    height: auto;
    display: block;
}

/* Full-width figure */
.focc-page .botm-article2 .botm-fig-full {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5em 0;
    clear: both;
}

.focc-page .botm-article2 .botm-fig-full img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
}

/* --------------------------------------------------
   BOTM v2 SIZE CLASSES
-------------------------------------------------- */
.focc-page .botm-article2 .botm-xl    { max-width: 50% !important; }
.focc-page .botm-article2 .botm-large { max-width: 40% !important; }
.focc-page .botm-article2 .botm-medium{ max-width: 30% !important; }
.focc-page .botm-article2 .botm-small { max-width: 22% !important; }

/* OVERRIDE: full-width figures must ignore size classes */
.focc-page .botm-article2 .botm-fig-full.botm-xl,
.focc-page .botm-article2 .botm-fig-full.botm-large,
.focc-page .botm-article2 .botm-fig-full.botm-medium,
.focc-page .botm-article2 .botm-fig-full.botm-small {
    max-width: 100% !important;
}

/* --------------------------------------------------
   BOTM v2 CAPTIONS
-------------------------------------------------- */
.botm-caption2 {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #555;
    margin-top: 4px;
    display: block;
    max-width: 100%;
}

/* --------------------------------------------------
   BOTM v2 TABLES
-------------------------------------------------- */
.botm-table2 {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background: #fff;
}

.botm-table2 th,
.botm-table2 td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    vertical-align: top;
}

.botm-table2 th {
    background: #f0f0f0;
    font-weight: bold;
    text-align: left;
}

.botm-table2 tbody tr:nth-child(even) {
    background: #fafafa;
}

.botm-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 20px 0;
}

.botm-table-scroll table {
    min-width: 600px;
}
/* Koala table scroll box — vertical scroll only */
.koala-table-scroll {
    width: 100%;
    max-height: 500px;                 /* keeps table compact */
    overflow-y: auto;                  /* vertical scroll only */
    overflow-x: hidden;                /* prevent horizontal drift */
    -webkit-overflow-scrolling: touch; /* smooth iPhone scroll */
    margin: 0 0 20px 0;
    border: 1px solid #ccc;
}

/* Fixed layout so widths actually work */
.koala-table-scroll table {
    width: 100%;
    table-layout: fixed;     /* enables width control */
    border-collapse: collapse;
}

/* Column widths (4 columns total) */
.koala-table-scroll th:nth-child(1),
.koala-table-scroll td:nth-child(1) {
    width: 10%;             /* No. */
}

.koala-table-scroll th:nth-child(2),
.koala-table-scroll td:nth-child(2) {
    width: 18%;             /* Date */
    word-wrap: break-word;
}

.koala-table-scroll th:nth-child(3),
.koala-table-scroll td:nth-child(3) {
    width: 33%;             /* Area */
    word-wrap: break-word;
}

.koala-table-scroll th:nth-child(4),
.koala-table-scroll td:nth-child(4) {
    width: 39%;             /* Address */
    word-wrap: break-word;
}

/* Koala header – same behaviour as Flora, but only inside the scroll box */
.koala-table-scroll .focc-table th {
    background: #2d4d2d;   /* FOCC green */
    color: #fff;           /* white text */
    padding: 6px 4px;
    position: sticky;
    top: 0;
    z-index: 5;
}





/* Flora table scroll box — vertical scroll only */
.flora-table-scroll {
    width: 100%;
    max-height: 500px;
    overflow-y: auto;                  /* vertical scroll only */
    overflow-x: hidden;                /* prevent horizontal drift */
    -webkit-overflow-scrolling: touch;
    margin: 0 0 20px 0;
    border: 1px solid #ccc;
}

/* Table fits screen width + fixed layout */
.flora-table-scroll table {
    width: 100%;
    table-layout: fixed;               /* KEY: enables column width control */
    border-collapse: collapse;
}

/* Column widths */
.flora-table-scroll th:nth-child(1),
.flora-table-scroll td:nth-child(1) {
    width: 10%;                        /* No. */
}

.flora-table-scroll th:nth-child(2),
.flora-table-scroll td:nth-child(2) {
    width: 35%;                        /* Scientific name */
    word-wrap: break-word;
}

.flora-table-scroll th:nth-child(3),
.flora-table-scroll td:nth-child(3) {
    width: 35%;                        /* Common name */
    word-wrap: break-word;
}

.flora-table-scroll th:nth-child(4),
.flora-table-scroll td:nth-child(4) {
    width: 20%;                        /* Info */
}

/* --------------------------------------------------
   BOTM v2 VOCAL BOX
-------------------------------------------------- */
.botm-vocal-box {
    background: #eef4fa;
    border-left: 4px solid #4a7;
    padding: 12px 14px;
    margin: 20px 0;
    max-width: 480px;
}

.botm-vocal-box h3 {
    margin-top: 0;
}

.botm-vocal-box iframe {
    width: 100%;
    max-width: 100%;
    border: none;
}

.botm-vocal-full {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

.focc-page .botm-article2 .botm-vocal-box {
    width: 420px;
}

/* Float helpers (must override figure rules) */
.focc-page .botm-article2 .botm-vocal-left {
    float: left;
    margin-right: 20px;
}

.focc-page .botm-article2 .botm-vocal-right {
    float: right;
    margin-left: 20px;
}


/* --------------------------------------------------
   BOTM v2 IMAGE PANELS
-------------------------------------------------- */
.focc-page .botm-article2 .botm-panel-2,
.focc-page .botm-article2 .botm-panel-3,
.focc-page .botm-article2 .botm-panel-4 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 1.5em 0;
    clear: both;
    width: 100%;
}

.focc-page .botm-article2 .botm-panel-2 figure { flex: 0 0 49%; }
.focc-page .botm-article2 .botm-panel-3 figure { flex: 0 0 33%; }
.focc-page .botm-article2 .botm-panel-4 figure { flex: 0 0 24%; }

.focc-page .botm-article2 .botm-panel-2 img,
.focc-page .botm-article2 .botm-panel-3 img,
.focc-page .botm-article2 .botm-panel-4 img {
    width: 100%;
    height: auto;
    display: block;
}

.focc-page .botm-article2 .botm-panel-caption {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 20px;
    width: 100%;
}

/* Prevent 2‑panel images from being too wide on iPad */
.botm-panel-2 figure img {
    max-width: 100%;
    height: auto;
}

.botm-panel-2 figure {
    max-width: 360px;   /* or 380px depending on your images */
}

/* --------------------------------------------------
   BOTM v2 CLEAR FIX
-------------------------------------------------- */
.botm-clear {
    clear: both;
}

/* --------------------------------------------------
   BOTM v2 MOBILE (must be last)
-------------------------------------------------- */
@media (max-width: 700px) {

    /* Figures full width */
    .focc-page .botm-article2 figure {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }

    /* Remove floats */
    .focc-page .botm-article2 .botm-fig-right,
    .focc-page .botm-article2 .botm-fig-left,
    .botm-vocal-box,
    .botm-vocal-left,
    .botm-vocal-right {
        float: none !important;
        max-width: 100% !important;
        margin: 16px 0 !important;
    }

    /* Size classes collapse */
    .focc-page .botm-article2 .botm-xl,
    .focc-page .botm-article2 .botm-large,
    .focc-page .botm-article2 .botm-medium,
    .focc-page .botm-article2 .botm-small {
        max-width: 100% !important;
    }

    /* Fact box stacks */
    .focc-page .botm-article2 .botm-fact-box {
        flex-direction: column;
    }

    .focc-page .botm-article2 .botm-fact-box .botm-fig-left.botm-small {
        flex: 0 0 auto;
        width: 100%;
        margin: 0 0 12px 0;
    }
}

/* --------------------------------------------------
   BOTM v2 FACT BOX (flex layout)
-------------------------------------------------- */
.botm-article2 .botm-fact-box {
    background: #f3f7f3;
    border-left: 4px solid #2d4d2d;
    padding: 18px 20px;
    margin: 25px 0;
    border-radius: 6px;

    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

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

.botm-article2 .botm-fact-box .botm-fig-left.botm-small {
    flex: 0 0 260px;
    margin: 0;
}

.botm-article2 .botm-fact-box img {
    width: 100%;
    height: auto;
    display: block;
}

.botm-article2 .botm-fact-box p {
    flex: 1;
    margin: 0;
}

/* --------------------------------------------------
   SIMPLE TEXT-ONLY FACT BOX (no flex)
-------------------------------------------------- */
.botm-fact-box.simple {
    display: block !important;
    background: #f3f7f3;
    border-left: 4px solid #2d4d2d;
    padding: 18px 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.botm-fact-box.simple p {
    margin: 0 0 12px 0;
    flex: none !important;
}

/* --------------------------------------------------
   MOBILE STACKING (corrected)
-------------------------------------------------- */
@media (max-width: 600px) {
    .botm-article2 .botm-fact-box {
        flex-direction: column;
    }

    .botm-article2 .botm-fact-box .botm-fig-left.botm-small {
        flex: 0 0 auto;
        width: 100%;
        margin: 0 0 12px 0;
    }
}



/* --------------------------------------------------
   SECTION SUBHEADER (COMPACT + CLEAN)
-------------------------------------------------- */
.section-subheader {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 12px 20px;

    background: #eef5ee;          /* soft FOCC green tint */
    border-left: 6px solid #2d4d2d;
    border-radius: 4px;
}

.section-subheader-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.section-subheader-text h2 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d4d2d;
}

.section-subheader-text p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* MOBILE */
@media (max-width: 600px) {
    .section-subheader {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .section-subheader-logo {
        width: 250px;
    }
}

.full-width-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.half-width-image {
    max-width: 50%;
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.small-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.focc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
}

.focc-table th,
.focc-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

.focc-table th {
    background: #e8f0e8;
    font-weight: 700;
}

.image-with-text {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 20px 0;
}

.side-image {
    width: 160px;
    height: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .image-with-text {
        flex-direction: column;
    }

    .side-image {
        width: 100%;
        max-width: 260px;
    }
}

.image-table-wrap {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.image-table-wrap .half-width-image {
    max-width: 50%;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-table-content {
    flex: 1;
    min-width: 0;
}

/* MOBILE */
@media (max-width: 700px) {
    .image-table-wrap {
        flex-direction: column;
    }

    .image-table-wrap .half-width-image {
        max-width: 100%;
    }
}

.about-link {
    background: #b6e3b6;      /* light green - always visible */
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #7fbf7f;
}

.about-link:hover {
    background: #8fd88f;      /* slightly darker on hover */
}

.projects-grid-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.project-box-4 {
    flex: 0 0 23%; /* four per row */
    text-align: center;
}

.project-box-4 img {
    width: 100%;
    max-width: 160px; /* stops them getting huge */
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

.project-box-4 p {
    margin: 0;
    font-size: 0.95rem;
}

.project-box-4 a {
    color: #2d4d2d;
    text-decoration: none;
    font-weight: 600;
}

.project-box-4 a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .project-box-4 {
        flex: 0 0 48%; /* two per row on tablets */
    }
}

@media (max-width: 500px) {
    .project-box-4 {
        flex: 0 0 100%; /* one per row on phones */
    }
}


/* --------------------------------------------------
   SITE INFO GRID (TWO ACROSS, FLEX VERSION)
-------------------------------------------------- */

.site-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 30px 0;
}

.site-box {
    background: #eef5ee;
    border-left: 6px solid #2d4d2d;
    padding: 16px;
    border-radius: 4px;

    flex: 0 0 48%;   /* two per row */
    box-sizing: border-box;
}

.site-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 12px;
}

.site-box h3 {
    margin: 0 0 10px 0;
    color: #2d4d2d;
    font-size: 1.2rem;
}

.site-box p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 700px) {
    .site-box {
        flex: 0 0 100%;
    }
}
.two-col-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 20px 0;
}

.col-left {
    flex: 0 0 250px; /* fixed width for poster */
}

.poster-thumb {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.col-right {
    flex: 1; /* fills remaining width */
}

.rotary-icon {
    width: 120px;
    margin: 0 15px 10px 0;
    border-radius: 4px;
    display: block; /* stays inside the right column */
}


.rotary-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.rotary-inline li {
    white-space: nowrap;
    font-weight: 600;
}

/* Mobile fallback */
@media (max-width: 700px) {
    .two-col-wrap {
        flex-direction: column;
    }
    .rotary-icon {
        float: none;
        margin: 0 0 10px 0;
    }
}

/* Mobile scroll wrapper */
.botm-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* FOCC table styling */
.focc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.95rem;
}

/* Sticky header */
.focc-table th {
    background: #2d4d2d;
    color: #fff;
    padding: 8px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Table cells */
.focc-table td {
    border-bottom: 1px solid #ccc;
    padding: 8px;
}

/* Highlight next upcoming event */
.focc-next-event {
    background: #e8f5e8 !important;
    border-left: 4px solid #2d4d2d;
}

/* Past events faded */
.focc-past-event {
    opacity: 0.45;
}

/* Icons column */
.focc-icon {
    width: 32px;
    text-align: center;
    font-size: 1.2rem;
}

/* --------------------------------------------------
   BOTM NAV BAR (CLEAN + UNIFIED)
-------------------------------------------------- */

.botm-nav-wrapper {
    width: 100%;
    margin: 12px 0 8px 0;   /* spacing above + below */
}

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

    max-width: 1100px;
    margin: 0 auto 8px;
    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;
    text-align: center;
    text-align-last: center; /* center selected item */
}

/* BOTM navigation arrows */
.nav-arrow {
    background: #2d4d2d;          /* your FOCC green */
    border: 2px solid #1f361f;    /* darker shade for definition */
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 22px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    line-height: 1;
}

.nav-arrow:hover {
    background: #3b6b3b;          /* lighter hover green */
    border-color: #1f361f;
}
/* --------------------------------------------------
   BOTM NAV — MOBILE (iPhone + iPad portrait)
-------------------------------------------------- */
@media (max-width: 600px) {

    .botm-nav {
        gap: 6px;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-left: 0; /* cleaner on mobile */
    }

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

        width: 230px;      /* slightly longer */
        max-width: 70vw;   /* allows more room on small screens */

        text-align: center;
        text-align-last: center;
    }

    .botm-nav label {
        display: none;             /* hide label on mobile */
    }

    .nav-arrow {
        padding: 4px 10px;         /* smaller tap target */
        font-size: 18px;           /* smaller arrow */
    }
}

