﻿/* ===============================
   THEME TOKENS
   =============================== */
:root {
    --beige: #f5f1e6;
    --green: #21483a;
    --ink: #10231c;
    --muted: #6b7d73;
    --card: #fff;
    --ring: #e4ebe7;
    --shadow: 0 6px 16px rgba(16,35,28,.08);
}
--gi-icon: clamp(36px, 4vmin, 60px);
/* ===============================
   BASE / RESET
   =============================== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

    body.gh-body {
        margin: 0;
        background: var(--beige);
        color: var(--ink);
        font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    }

h1, h2, h3 {
    font-family: "Merriweather", serif;
}

/* ===============================
   HEADER BAR
   =============================== */
.gh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(4px);
    background: linear-gradient(0deg, rgba(245,241,230,.85), rgba(245,241,230,.95));
    border-bottom: 1px solid var(--ring);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 16px;
}

.brand a {
    font-family: "Merriweather", serif;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    color: var(--green);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

    .nav a {
        display: inline-block;
        padding: 8px 12px;
        border-radius: 999px;
        text-decoration: none;
        color: var(--green);
        border: 1px solid transparent;
        transition: .15s ease;
    }

        .nav a:hover {
            background: #ffffffb3;
            border-color: var(--ring);
        }

        .nav a.active {
            background: var(--green);
            color: #fff;
        }

.gh-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

/* ===============================
   SECTION HEAD
   =============================== */
.section-head {
    text-align: center;
    margin: 14px 0 26px;
}

    .section-head h1 {
        color: var(--green);
        margin: 0 0 6px;
        font-size: 28px;
    }

    .section-head .sub {
        color: var(--muted);
        margin: 0;
        font-size: 15px;
    }

/* ===============================
   GRID / CARD (HANDOUTS, ETC.)
   =============================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card {
    background: var(--card);
    border: 2px solid var(--green);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .08s, box-shadow .08s;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,.08);
    }

.row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.title {
    font-weight: 700;
    line-height: 1.25;
    color: var(--green);
}

.meta {
    font-size: .85rem;
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn:hover {
        filter: brightness(1.05);
    }

    .btn:active {
        transform: translateY(1px);
    }

    .btn.btn-outline {
        background: #fff;
        color: var(--green);
        border: 1px solid var(--green);
    }

/* ===============================
   LINK LIST (GUIDELINES / LINKS)
   =============================== */
.link-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.link-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--green);
    font-weight: 600;
}

    .link-btn:hover {
        background: #fff;
    }

/* ===============================
   UTILITY
   =============================== */
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

/* ===============================
   TOP NAV BUTTONS
   =============================== */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--beige);
    border-bottom: 1px solid var(--ring);
    font-family: 'Merriweather', serif;
}

    .topnav .brand {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--green);
        text-decoration: none;
    }

    .topnav .links {
        display: flex;
        gap: 0.75rem;
    }

    .topnav .nav-btn {
        display: inline-block;
        padding: 0.4rem 0.9rem;
        border: 2px solid var(--green);
        color: var(--green);
        background: #fff;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.15s ease-in-out;
    }

        .topnav .nav-btn:hover,
        .topnav .nav-btn:focus {
            background: var(--green);
            color: #fff;
        }

        .topnav .nav-btn.active {
            background: var(--green);
            color: #fff;
            box-shadow: 0 0 0 2px rgba(33,72,58,0.15);
        }

/* Plain clickable text link for Privacy Policy */
.privacy-link {
    margin-left: 20px;
    font-family: 'Merriweather', serif; /* same font as rest of nav */
    color: var(--green); /* brand green */
    text-decoration: none;
    font-weight: 700; /* <-- bolder text */
    font-size: 1rem; /* matches nav font size */
    letter-spacing: 0.2px; /* slight polish */
}

    .privacy-link:hover {
        text-decoration: underline;
        color: #163327; /* slightly darker green on hover */
    }

    .privacy-link.active {
        text-decoration: underline;
        font-weight: 800; /* boldest when active */
    }


/* ===============================
   PDF SIDE PANEL (MAIN PAGE)
   =============================== */
.pdf-panel {
    position: fixed; /* pin to viewport */
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

    .pdf-panel button {
        background-color: #21483a;
        color: white;
        font-family: 'Merriweather', serif;
        font-size: 16px;
        border: none;
        padding: 10px 14px;
        border-radius: 6px;
        cursor: pointer;
    }

    /* Stack buttons vertically and align widths */
    .pdf-panel button {
        display: block; /* places buttons on their own line */
        width: 320px; /* same width as the text boxes */
        margin: 0 0 8px 0; /* adds a small gap underneath each */
    }

/* ===============================
   INLINE TEXT REVEAL (MAIN PAGE)
   =============================== */
.pdf-area {
    margin-top: 12px;
    background: #fff;
    border: 2px solid #21483a;
    border-radius: 8px;
    padding: 14px;
    width: 320px; /* match left-panel width */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .pdf-area.hidden {
        display: none;
    }

    .pdf-area .pdf-title {
        font-family: 'Merriweather', serif;
        font-weight: 800;
        font-size: 20px;
        color: #21483a;
        margin-bottom: 10px;
    }

.pdf-text {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #21483a;
}


#pdfContainer {
    position: absolute;
    top: 0;
    left: 120%;
    width: 300px;
    height: 300px;
    background-color: #fff;
    border: 2px solid #21483a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#pdfContainer {
    font-family: 'Merriweather', serif;
    font-size: 24px; /* ← Increase popup text size */
    line-height: 1.6;
    color: #21483a;
}

    #pdfContainer iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    #pdfContainer.hidden {
        display: none;
    }

    #pdfContainer .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        background: #21483a;
        color: white;
        border: none;
        border-radius: 50%;
        width: 26px;
        height: 26px;
        font-size: 18px;
        line-height: 22px;
        cursor: pointer;
    }

    #pdfContainer .pdf-images {
        width: 100%;
        height: 100%;
        overflow: auto;
        padding: 8px;
        box-sizing: border-box;
    }

        #pdfContainer .pdf-images img {
            width: 100%;
            display: block;
            margin: 8px 0;
            border-radius: 6px;
        }


/* ===============================
   GI HUB HOMEPAGE – LAYERING
   =============================== */
/* Stacking: SVG (1) < DECOR (2) < HOTSPOTS (3) */
.hub-wrap {
    position: relative;
    z-index: 2;
}

    .hub-wrap svg {
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .hub-wrap svg {
        overflow: visible;
    }
/* prevent clipping of outer images */


.hotspot {
    z-index: 3;
}

/* ===============================
   DECOR IMAGES (AROUND HUB)
   =============================== */
/* Keep clicks going to hotspots: no pointer events here */
/* ===============================
   DECOR IMAGES (AROUND HUB)
   =============================== */
.gi-decor-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none; /* clicks pass through to hotspots */
}

/* JS sets left/top (%). Keep wrappers centered and float them. */
.gi-decor-pos {
    position: absolute;
    transform: translate(-50%, -50%);
    will-change: transform;
    animation: gi-hub-float 2.8s ease-in-out infinite;
}

/* Image itself is simple; width is set by JS */
/* FINAL OVERRIDE: uniform square size, much smaller */
.gi-decor {
    display: block;
    width: clamp(84px, 9.6vmin, 144px) !important; /* ← 3× increase */
    height: clamp(84px, 9.6vmin, 144px) !important;
    object-fit: contain; /* keep aspect ratio */
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
    opacity: 0.95;
}



/* Keep the base translate while bobbing vertically */
@keyframes gi-hub-float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}
.footer-link {
    color: var(--green) !important;
    font-family: 'Merriweather', serif;
    text-decoration: none;
    font-size: 14px;
}

    .footer-link:hover {
        text-decoration: underline;
    }
/* Force green on Privacy Policy + Terms of Use links in the top nav */
/* Match Privacy Policy + Terms of Use text to the Disclosure button */
.topnav .footer-link {
    font-family: 'Merriweather', serif !important;
    font-size: 13px !important;
    font-weight: 700 !important; /* same boldness as Disclosure */
    color: var(--green) !important;
    text-decoration: none;
    letter-spacing: 0.2px; /* optional slight enhancement */
}

    .topnav .footer-link:hover {
        text-decoration: underline;
    }
/* === GLOBAL PDF MODAL === */

.pdf-modal.hidden {
    display: none;
}

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    padding: 20px;
}

.pdf-modal__dialog {
    position: relative;
    width: min(90vw, 900px);
    height: min(90vh, 90vh);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 32px;
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
}

    .pdf-modal__close:hover {
        color: #000;
    }

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}




