/* Fossil Trail - Site Layout Styles */
/* Note: CSS variables are defined in theme.css */

/* ==========================================================================
   Page Layout
   ========================================================================== */

.page_wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page_content {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Content Areas
   ========================================================================== */

body.has-hero .main_content {
    padding-top: var(--header-height);
}

body.no-hero .main_content {
    padding-top: 120px;
}

.sidebar_content {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* ==========================================================================
   Sub Navigation (Page-level)
   ========================================================================== */

.sub_nav_handle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.sub_nav_collapsed {
    display: none;
}

/* ==========================================================================
   Symbols / Icons
   ========================================================================== */

.symbol {
    display: inline-block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.symbol_small {
    width: 16px;
    height: 16px;
}

.symbol_large {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

@media (max-width: 768px) {
    body.no-hero .main_content {
        padding-top: 120px;
    }
    .sub_nav_handle {
        display: flex;
    }

    .sub_nav_list_wrapper {
        display: none;
    }

    .sub_nav_list_wrapper.active {
        display: block;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .sub_nav,
    .header,
    .mobile_sidebar {
        display: none;
    }
    
    .page_content {
        max-width: none;
        padding: 0;
    }
}

/* ==========================================================================
   Homepage: Hide empty main content area
   ========================================================================== */

/* On homepage, hide the main content area completely since we use featured cards */
.main_content.homepage-main {
    display: none !important;
}

/* Phoca Gallery */
body.no-hero .phoca-gallery-DISABLED,
body.no-hero [class*="phocagallery-DISABLED"],
body.no-hero .pg-category-view-DISABLED {
    margin-top: -60px;
}

/* com_content (Articles) */
body.no-hero .com-content-category-DISABLED,
body.no-hero .com-content-article-DISABLED,
body.no-hero .com-content-featured-DISABLED {
    margin-top: -60px;
}

/* Prevent double-fixing when component already has the fix */
body.no-hero .com-3dfiles-files,
body.no-hero .fossil-trail-search,
body.no-hero .com-geologicalmaps-map {
    /* These have their own fixes - reset to avoid double margin */
}

/* Grey Login Button Override */
.mod-login .btn-primary,
.mod-login button[type="submit"]:not(.input-password-toggle),
form.mod-login .mod-login__submit .btn,
.footer .mod-login button[type="submit"] {
    background: #555 !important;
    background-color: #555 !important;
    border-color: #555 !important;
    color: #fff !important;
}
.mod-login .btn-primary:hover,
.footer .mod-login button[type="submit"]:hover {
    background: #444 !important;
    background-color: #444 !important;
}

/* Password toggle in footer - light gray, not dark */
.footer .mod-login .input-password-toggle,
.mod-login .input-password-toggle {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    color: #555 !important;
    border-color: #e0e0e0 !important;
}

.footer .mod-login .input-password-toggle:hover,
.mod-login .input-password-toggle:hover {
    background: #e0e0e0 !important;
    background-color: #e0e0e0 !important;
    color: #333 !important;
}
