/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Inter:wght@400;600&display=swap');

/* Body */
body {
    margin: 0;
    background-color: #013220;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
}

/* Main content */
.main {
    margin-left: 220px;
    padding: 0px 40px 40px 40px;
    background-color: #ffffff;
    min-height: 100vh;
    color: #1a1a1a;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Headings */
.main h1,
.main h2,
.main h3,
#index-title {
    font-family: 'EB Garamond', serif;
    color: #013220;
}

/* General links */
a {
    color: #006400;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: bold;
}

a:hover {
    color: #FFA500;
    background-color: rgba(255, 165, 0, 0.15);
}

/* List links */
ul {
    list-style: none;
    padding-left: 0;
    font-size: 1em;
    margin: 0;
}

ul li a {
    display: block;
    padding: 6px 0 6px 6px;
    border-left: 4px solid transparent;
}

ul li a:hover {
    border-left-color: #FFA500;
}

/* Disclosure triangles */
.file-item {
    margin-bottom: 1rem;
    font-size: 1em;
}

.link-and-caret {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-link {
    display: inline-block;
    vertical-align: middle;
    padding: 5px 0 5px 6px;
    white-space: nowrap;
    border-left: 4px solid transparent;
}

.main-link:hover {
    border-left-color: #FFA500;
}

.caret-details {
    display: inline-block;
    margin: 0;
    padding: 0;
}

summary {
    list-style: none;
}

.caret-details summary::-webkit-details-marker {
    display: none;
}

.toggle-caret {
    align-self: center;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 0px 5px 0px 5px;
}

.toggle-caret::after {
    content: "\276F"; /* ❯ */
    display: inline-block;
    transition: transform 0.2s ease;
    color: #006400;
    font-size: 1.5em;
}

.caret-details[open] .toggle-caret::after,
.file-item.open .toggle-caret::after {
    transform: rotate(90deg);
}

.extra-links {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style: none;
}

.file-item.open .extra-links {
    display: block !important;
}

.extra-links li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.extra-links li a {
    display: inline-flex;
    align-items: center;
    max-width: fit-content;
    padding: 2px 6px;
    white-space: nowrap;
    border-left: 4px solid transparent;
}

.extra-links li a:hover {
    border-left-color: #FFA500;
}

.custom-bundle-link {
    font-weight: bold;
    cursor: pointer;
    color: #006400; /* Medium green */
}

.faq-header {
    display: flex;
    align-items: baseline;
}

.faq-header a {
    margin-left: 40px;
}

.faq-list .extra-links li {
    display: inline;
}

.faq-list .extra-links li a {
    display: inline;
    padding: 0;
    border-left: none;
}

.faq-list .extra-links li a:hover {
    border-left: none;
    background-color: transparent;
}

/* Team Member Photo */
.team-member-photo {
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    width: 300px; /* Default size */
}

/* Responsive Design */
@media only screen and (max-width: 800px) {
    .main {
        margin-left: 0;
        padding: 20px;
    }
    ul {
        font-size: 16px;
    }
    .team-member-photo {
        width: 150px; /* Smaller on mobile */
        display: block; /* For centering */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
        margin: 15px auto;
    }
    .hide-on-mobile-br {
        display: none;
    }
}

a.icon-link:hover {
    background-color: transparent;
}

/* dl-dropdown */
.dl-dropdown {
    position: relative;
    display: inline-block;
}

.dl-dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.dl-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dl-dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dl-dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dl-dropdown-menu.show {
    display: block;
}

#table-view {
    overflow-x: auto;
}

/* Contact Form */
#contact-form label {
    display: block;
    margin-bottom: 2px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea,
#contact-form select {
    width: 100%;
    max-width: 600px;
    padding: 8px;
    margin: 6px 0 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#contact-form button {
    background-color: #013220;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
}

#contact-form button:hover {
    background-color: #006400;
}

#attachment-container {
    max-width: 600px;
}

#drop-zone {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

#drop-zone.drag-area-highlight {
    border-color: #006400;
    background-color: #f0fff0;
}

#file-list ul {
    list-style-type: disc;
    padding-left: 20px;
}

.text-red-500 {
    color: red;
}

.text-green-500 {
    color: green;
}

/* From index.html */
.view-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.toggle-switch-container {
    margin-left: 1rem;
    width: 100px; /* Adjust width as needed */
}
.switch {
    position: relative;
    display: flex;
    width: 100%;
    height: 34px;
    background-color: #ccc;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.switch-text-on, .switch-text-off {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    user-select: none;
    transition: all 0.2s;
}
.switch input:not(:checked) ~ .switch-text-off {
    background-color: #113121;
    color: white;
}
.switch input:not(:checked) ~ .switch-text-on {
    background-color: #ccc;
    color: #333;
}
.switch input:checked ~ .switch-text-on {
    background-color: #113121;
    color: white;
}
.switch input:checked ~ .switch-text-off {
    background-color: #ccc;
    color: #333;
}

#cumulative-data .download-description {
    font-size: 0.95em;
    font-style: italic;
    color: #333;
    margin-bottom: 1.5rem;
}

#cumulative-data fieldset {
    border: 1px solid #013220;
    border-radius: 4px;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    width: -moz-fit-content;
    width: fit-content;
}

#cumulative-data legend {
    color: #013220;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 0.5rem;
}

/* Custom Radio Button Styles */
.radio-container {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-top: .5rem;
}

.radio-container label {
    position: relative;
    padding-left: 30px; /* Make space for custom radio */
    cursor: pointer;
    user-select: none;
    line-height: 22px; /* Align text vertically */
}

/* Hide default radio */
.radio-container input[type="radio"] {
    display: none; /* Hide it completely */
}

/* Create custom radio's outer box */
.radio-container label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #013220;
    border-radius: 4px;
    background: #fff;
    transition: background-color 0.2s ease;
}

/* Create the inner checkmark */
.radio-container label::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: translateY(-60%) rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

/* Change background when checked */
.radio-container input[type="radio"]:checked + label::before {
    background-color: #013220;
}

/* Show the checkmark when checked */
.radio-container input[type="radio"]:checked + label::after {
    transform: translateY(-60%) rotate(45deg) scale(1);
}

/* Hover effect */
.radio-container label:hover::before {
    background-color: #f0fff0;
}

/* Hover border for bundle builder and download all links */
#bundle-container .faq-question,
#download-all-link,
.custom-bundle-link {
    padding: 6px 0 6px 6px;
    border-left: 4px solid transparent;
    display: inline-block; /* Ensure padding and border are applied correctly */
}

#bundle-container .faq-question:hover,
#download-all-link:hover,
.custom-bundle-link:hover {
    border-left-color: #FFA500;
}



#downloadBtn {
    background-color: #013220;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

#downloadBtn:hover, #downloadBtn:focus {
    background-color: #006400;
}

#downloadBtn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.download-icon {
    height: 25px;
    margin-bottom: -7px;
    margin-left: 8px;
}

.size-estimate {
    margin-left: 5px;
    font-size: 0.9em;
    color: #333;
}

.placeholder {
    color: #6c757d;
}

/* Spaced List */
.spaced-list {
    margin: 1.5rem 0;
    list-style-type: disc;
    padding-left: 1.5rem;
}

.spaced-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.spaced-list li a {
    text-decoration: underline;
    display: inline;
    padding: 0;
    border-left: none;
}

.spaced-list li a:hover {
    border-left: none;
    text-decoration: underline;
}
