@charset "UTF-8";

/* ============================================================
   MAYA-HTML5 MASTER CSS: CLEAN STANDARD (v4.1)
   Updated: 2026-01-13
   Target: 400+ Building Pages & Site Maps
   ============================================================ */

/* --- 1. BASE STYLES --- */

body {
    background-color: #dfead3;
    color: #333;  /* LEVER 1: The standard body text color */
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* --- 2. UNIVERSAL CONTAINER --- */
main, .main-container {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px; 
}

/* --- 3. TYPOGRAPHY (THE FLUSH-LEFT STANDARD) --- */

/* Grouping these ensures EVERY paragraph looks identical in color and scale */
main p, section p, blockquote p, .ref, .nav, .site-nav {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Standard paragraph spacing and the 15px 'gutter' */
main p, .ref, .nav, .site-nav {
    padding-left: 15px; 
    padding-right: 15px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}


/* --- 4. BLOCKQUOTES (STRUCTURAL CONTROL) --- */

blockquote {
    /* This creates the clear, intentional indent */
    margin-left: 60px !important; 
    margin-right: 60px !important;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

blockquote p { 
    /* We strip the 15px padding here so it doesn't 'double up' with the 60px margin */
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* We strip the vertical margins so the blockquote container handles the spacing */
    margin-top: 0 !important;
    margin-bottom: 12px !important; 
}

/* This handles the last paragraph in a quote to prevent extra bottom gaps */
blockquote p:last-of-type {
    margin-bottom: 0 !important;
}

.indent { 
    display: inline-block; 
    width: 1.5em; /* This matches a standard paragraph indent */
}

/* LEVER 2: The Tamed Bold (Global) */
b, strong {
    font-weight: 500 !important; /* Toned down from 600 */
    color: #222 !important; 
}

/* SUB-LEVER: The "Soft Lead" for paragraph initials */
/* Use this for those <b>T</b>he starting letters */
p > b:first-child, p > strong:first-child {
    font-size: 1.2rem;
    line-height: 1;
    color: #222;
    font-weight: 500;
}

/* SUB-LEVER: Balance the weight of Bold-Italics */
i b, i strong, em b, em strong {
    font-weight: 500 !important;
}

/* Ensure red instructional text still stands out */
.red-text { 
    color: #990000 !important; 
    font-weight: bold; 
}

/* --- 5. THE HEADER HIERARCHY --- */
h1.caption, h2.caption, h3.caption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 400 !important; 
    text-transform: uppercase !important;
    letter-spacing: 1px;
    color: #444 !important;
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.2;
    
    /* THE FIX: Stop 60px short of the ID during a map-link jump */
    /* This does NOT change the visual gap on the page. */
    scroll-margin-top: 20px; 
}

h1.caption { font-size: 1.3rem; padding: 0; margin-top: 45px; }
h2.caption, h3.caption { margin-left: 0 !important; padding: 0 0 0 15px; margin-top: 40px; }
h2.caption { font-size: 1.15rem; }
h3.caption { font-size: 1.0rem; }

/* --- HEADER LINK & HOVER LOGIC --- */
h1.caption a, h2.caption a, h3.caption a {
    display: inline-block;    /* Underline only extends to text length */
    border-bottom: 1px solid #bbb !important; /* The single grey line */
    text-decoration: none;
    color: #444;              
}

/* Red Hover Effect: Only the link text and its underline turn red */
h1.caption a:hover, h2.caption a:hover, h3.caption a:hover {
    color: #aa0000 !important; 
    border-bottom: 1px solid #aa0000 !important;
}

/* --- THE SPACING RESETS --- */
h1.caption + h2.caption, h2.caption + h3.caption {
    margin-top: 10px !important;
}

/* Prevents 'Double Margin' at the top of the page */
main > h1:first-of-type, 
main > h2:first-of-type,
.main-container > h1:first-of-type,
.main-container > h2:first-of-type {
    margin-top: 10px !important;
}

/* --- 6. THE LINK ENGINE --- */
a { color: #444; text-decoration: none; border-bottom: 1px solid #aaa; }
a:hover { color: #000 !important; font-weight: bold !important; border-bottom: 1px solid #000 !important; }

.nav, .site-nav {
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.nav a, .site-nav a { 
    color: #aa0000 !important; 
    border-bottom: 1px solid transparent; 
}

/* --- 7. CITATIONS, IMAGES & SNUGGLE LOGIC --- */

/* 1. Base Photo Style */
.photo { 
    width: 100%; 
    text-align: center; 
    margin-bottom: 25px; 
}
.photo img { 
    max-width: 100%; 
    height: auto !important; 
    display: block; 
    margin: 0 auto; 
    border: 2px solid #000; 
}

/* 2. Base Reference Style */
.ref { 
    font-size: 0.95rem; 
    font-style: italic; 
    color: #666; 
    margin-top: 1.2em; 
    margin-bottom: 25px; 
}

/* 3. THE SNUGGLE RULES (The "Negative Pull") */
.photo + .ref { margin-top: -22px !important; }
main p + .ref { margin-top: -15px !important; }
blockquote + .ref { margin-top: -15px !important; padding-left: 60px; }

/* 4. THE MAP SNUGGLE FIX */
.map-container + .ref { margin-top: -20px !important; }

/* --- 8. FOOTER --- */
.footer {
    width: 95%;
    max-width: 800px; 
    margin: 40px auto;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

/* --- 8. MAP OVERLAY STABILIZER (Final Unified) --- */
.map-container {
    position: relative;
    display: block;
    line-height: 0;
    max-width: 100%; /* Forces alignment to your image width */
    margin: 0 auto;
    z-index: 5;      /* Moves the map in front of the navigation shadow */
}

.map-container img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border: 2px solid #000;
    /* Allows the mouse to 'pass through' the photo to the links below */
    pointer-events: none !important; 
}

.map-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;     /* Sits above the image */
    pointer-events: auto !important;
}

/* Forces the hand pointer for both Rectangles and Polygons */
.map-container svg a {
    cursor: pointer !important;
}

.map-container svg a * {
    pointer-events: all !important;
    fill: rgba(0,0,0,0); /* Invisible but solid to the mouse */
    stroke: none;
}

/* --- 10. MOBILE RESPONSIVE ENGINE --- */
@media only screen and (max-width: 600px) {
    /* 1. Reduce top gap for a tighter mobile header */
    main, .main-container { margin-top: 5px !important; }

    /* 2. Scale down captions so they don't wrap awkwardly */
    h1.caption { font-size: 1.1rem !important; }
    h2.caption { font-size: 1.0rem !important; }

    /* 3. Relax text padding to maximize screen real estate */
    main p, .ref, .nav, .site-nav { 
        font-size: 1.05rem; 
        padding-left: 10px; 
        padding-right: 10px; 
    }

    /* 4. THE MOBILE BLOCKQUOTE FIX */
    /* Relaxed margins to prevent the "skinny column" effect on phones */
    blockquote { 
        margin-left: 25px !important; 
        margin-right: 10px !important; 
        padding-left: 0 !important; 
    }

    /* 5. Scale bold readability anchors */
    b { font-weight: 700; } 
}
/* --- 11. HELPERS --- */
.red-text { color: #990000; font-weight: bold; }
hr { display: none !important; }