/*
 * Styles for the transparency documents page.  This stylesheet is extracted
 * from the inline <style> block originally defined in documents.html.  It
 * contains the navigation layout, responsive breakpoints, and formatting
 * for the contact bar and footer.  Moving these rules to an external file
 * allows the Content‑Security‑Policy to disallow inline styles and makes
 * caching more effective.
 */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #083d77;
    color: white;
    flex-wrap: wrap;
}

.left-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Use gap on the parent flex container for consistent spacing between links */
nav a {
    color: white;
    text-decoration: none;
    margin: 0;
    font-weight: bold;
}

nav select {
    margin-right: 20px;
    padding: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    appearance: none;
}

nav select option {
    background: #fff;
    color: #000;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #083d77;
    min-width: 160px;
    top: 100%;
    left: 0;
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: white;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-top: 40px;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 6px;
}

h1,
h2 {
    margin-top: 0;
    color: #083d77;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* Contact information bar styling */
.contact-info {
    background: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

.contact-info a {
    color: #083d77;
    text-decoration: underline;
}

.contact-info a:hover {
    text-decoration: none;
}

/* Footer styling matches header colour */
.footer {
    background: #083d77;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Responsive layout for narrow screens.  Stack the navigation links
   vertically when the viewport is small and reduce spacing. */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .left-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    nav a {
        margin: 0;
    }
    nav select {
        margin: 5px 0;
    }
}

/* Styles for the mobile navigation hamburger and phone button.  These
   controls are hidden on larger screens and show on screens 600px or
   less.  The phone button is styled like a mini call-to-action for
   improved tap targets. */
.phone-button,
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
}

.phone-button {
    background: #ffcc00;
    color: #083d77;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 600px) {
    /* Keep the nav header row horizontal and position it relative so the
       collapsed menu can appear below it */
    nav {
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    /* Hide navigation links by default.  When shown they are
       absolutely positioned beneath the header row with a matching
       background colour. */
    .left-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        margin: 0;
        gap: 10px;
        background: #083d77;
        padding: 10px 0;
        z-index: 1000;
    }
    nav.menu-open .left-nav {
        display: flex;
    }
    /* Show the phone button and menu toggle on small screens */
    .phone-button,
    .menu-toggle {
        display: inline-block;
    }
}