/* mus_main.css
   ────────────────────────────────────────────────────────────────
   OFFSET DEPENDENCY
   - Requires mus_nav.css to define:
       --nav-banner-height: px value from top of screen to bottom of banner menu
       --nav-button-height: px value from top of screen to bottom of toggle button

   - This file computes:
       --offset-gap: additional spacing above content
       --offset-banner: calc(--nav-banner-height + --offset-gap)
       --offset-button: calc(--nav-button-height + --offset-gap)
*/

body {
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
    justify-content: flex-start;   /* anchor content at top */
    align-items: center;           /* keep horizontal centering */

    /* shared offset variables */
    --offset-gap: 10px; /* adjust for extra space under nav/banner globally */

    /* fallbacks preserve existing layout if nav vars are missing */
    --offset-banner: calc(var(--nav-banner-height, 60px) + var(--offset-gap));
    --offset-button: calc(var(--nav-button-height, 40px) + var(--offset-gap));
}

.container-860 {
    margin: var(--offset-button) auto 0;
    width: 100%;
    max-width: 860px;
    overflow-x: hidden;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container-860 table {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.container-860,
.container-860 table {
    max-width: 1060px;
}

.container-600 table,
.container-700 table {
    border-collapse: collapse;
}

* {
    box-sizing: border-box;
}

img, table {
    max-width: 100%;
    height: auto;
}
p, td {
    overflow-wrap: break-word;
}

.bio-row.full-width {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

/* ───────────────────────────────────────────────
   LARGE SCREENS
   >1060px: side-by-side row anchored at top,
   tables centered with each other vertically
   ─────────────────────────────────────────────── */
@media (min-width: 1061px) {
    .container-860 {
        margin-top: var(--offset-banner);
    }
}

@media (orientation: landscape) and (max-width: 800px) {

}

/* Medium screens / landscape tablets */
@media (min-width: 500px) and (max-width: 699px) and (orientation: landscape) {
    .bio-table {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 16px;
    }

    .bio-row {
        flex: 1 1 48%;  /* allow two rows side-by-side */
        max-width: 48%;
        flex-direction: column;
        align-items: center;
        margin-bottom: 16px;
    }
}

.nested-table {
    width: auto !important;
    /*max-width: 100% !important;*/
    max-width: none !important;
    table-layout: auto;
    border-collapse: separate;
}
.nested-table-parent {
    text-align: center;
}

/* PATCH: Ensure nested tables always shrink to content width */
/* Put this at the very end of mus_main.css */
.container-860 table.nested-table {
    display: inline-table !important;
    width: auto !important;
    max-width: none !important;
    table-layout: auto !important;
    margin: 0 auto !important;   /* keeps them centered */
}

/* Prevent hrt_icon.jpg from scaling on all screens */
img[src="images/hrt_icon.jpg"] {
    width: 20px !important; /* Respect HTML width attribute */
    height: 18px !important; /* Respect HTML height attribute */
    max-width: none !important; /* Override max-width: 100% */
    object-fit: contain; /* Ensure aspect ratio is maintained */
    display: inline-block; /* Ensure proper alignment in table cells */
}

/* Ensure table cells containing hrt_icon.jpg don’t shrink below image size */
.container-860 table.nested-table td:has(img[src="images/hrt_icon.jpg"]) {
    min-width: 20px; /* Prevent cell from shrinking below image width */
    text-align: center; /* Maintain centering */
}

/* For narrow screens, reinforce image size and table cell constraints */
@media (max-width: 1060px) {
    img[src="images/hrt_icon.jpg"] {
        width: 20px !important;
        height: 18px !important;
        max-width: none !important;
    }
    .container-860 table.nested-table td:has(img[src="images/hrt_icon.jpg"]) {
        min-width: 20px; /* Ensure cell accommodates image */
        padding: 0 5px; /* Add minimal padding for spacing */
    }
}