/* usnamemorialhall - Primary Stylesheet */

@page {
    size: A4;
    margin: 15mm;
    background-color: #ffffff;
}

body {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
    margin: 0;
    padding: 0;
}

h1, h3, .card-name {
    font-family: 'Libre Baskerville', serif;
    color: #1C2D5B;
}

h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.9rem;
    color: #1C2D5B;
    font-variant: small-caps;
    letter-spacing: 2px;
    padding-bottom: 8px;
    border-bottom: 4px solid #1C2D5B;
    position: relative;
    margin-top: 50px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #BEA75A;
}

.section-heading::after {
    display: none !important;
}

/* ================================= */
/* RESPONSIVE VISIBILITY UTILITIES   */
/* ================================= */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

/* ============================= */
/* NAVIGATION & HEADER           */
/* ============================= */

.site-header {
    background-color: #1C2D5B; /* Navy */
    border-bottom: 4px solid #BEA75A; /* Gold Band */
    padding: 15px 0;
}

.nav-container {
    display: flex;
    flex-direction: column; /* Stacks Title on top of Nav */
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 15px;
}

.nav-and-search {
    display: flex;
    justify-content: center; /* Centers the whole group */
    align-items: center;
    width: 100%;
    gap: 50px; /* Space between links and search bar */
}

.site-branding h1 {
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 2px;
}

.site-branding h1 a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 2.5rem;
}

/* Nav Links (Desktop Layout) */
.main-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-links a, 
.dropdown-trigger {
    color: #BEA75A;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Libre Baskerville', serif;
}

.main-links a:hover {
    color: #ffffff;
}

/* Dropdown Menu (Desktop Hover) */
.dropdown {
    position: relative;
}

.vertical-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1C2D5B;
    border: 1px solid #BEA75A;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.dropdown:hover .vertical-menu {
    display: block;
}

.vertical-menu li a {
    color: #ffffff !important;
    padding: 12px 20px;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(190, 167, 90, 0.2);
}

.vertical-menu li:last-child a { 
    border-bottom: none; 
}

.vertical-menu li a:hover {
    background-color: #BEA75A;
    color: #1C2D5B !important;
}

/* Search Container Setup */
.nav-search {
    position: relative;
    width: 350px; /* Enhanced wider styling */
}

.nav-search form {
    display: flex;
}

.nav-search input {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #BEA75A;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

/* Search Dropdown Panel */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.search-dropdown li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.search-dropdown li a:hover {
    background-color: #f9f7f0;
}

.res-title {
    color: #1C2D5B; 
    font-weight: bold;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem !important;
    line-height: 1.3;
    margin-bottom: 3px;
}

.res-meta {
    font-size: 0.8rem !important;
    color: #666;
    font-family: sans-serif;
}

/* ======================================= */
/* UNIFIED HAMBURGER MOBILE NAVIGATION     */
/* ======================================= */
@media (max-width: 768px) {
    /* Handle Desktop/Mobile UI Switches */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }

    .nav-container {
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    .nav-and-search {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    /* Hamburger Menu Button Styling */
    .menu-toggle {
        display: block !important;
        background: transparent;
        color: #BEA75A;
        border: 2px solid #BEA75A;
        padding: 8px 16px;
        font-family: 'Libre Baskerville', serif;
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        border-radius: 4px;
        margin: 5px auto;
        transition: all 0.2s ease;
    }

    .menu-toggle:hover, .menu-toggle:focus {
        background-color: #BEA75A;
        color: #1C2D5B;
    }

    /* Hide Navigation Links by Default on Mobile */
    .main-links {
        display: none; 
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 10px 0;
        margin: 0;
    }

    /* JavaScript will toggle this class to show the menu */
    .main-links.open {
        display: flex !important;
    }

    .main-links li {
        width: 100%;
    }

    /* Submenu Aesthetic Styling for Mobile Links */
    .main-links a, .mobile-only .main-links a {
        background-color: #ffffff !important;
        color: #1C2D5B !important;
        padding: 12px !important;
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #BEA75A;
        border-radius: 4px;
        text-align: center;
        font-weight: bold;
        font-family: 'Libre Baskerville', serif;
        text-decoration: none !important;
    }
    
    .main-links a:hover {
        background-color: #f9f7f0 !important;
        color: #BEA75A !important;
    }

    .nav-search {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-dropdown {
        width: 100%; 
    }

    /* Structural adjustments for main body content on mobile */
    .taxonomy-master-list, 
    .taxonomy-master-grid,
    .classes-master-grid,
    .standard-page {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .terms-column-wrapper {
        column-count: 1 !important;
        width: 100% !important;
    }

    .terms-list a {
        font-size: 1rem !important;
        padding: 10px 5px !important;
    }

    .class-header {
        font-size: 1.2rem !important;
        padding: 0 10px !important;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .year-card {
        min-height: 120px !important;
    }
    
    .honoree-card {
        gap: 12px;
        align-items: flex-start;
    }
    
    .site-branding h1 {
		margin: 0;
		font-family: 'Libre Baskerville', serif;
		letter-spacing: 2px;
	}
	
	.site-branding h1 a {
		color: #ffffff !important;
		text-decoration: none !important;
		font-size: 1.7rem;
	}


}

@media (max-width: 600px) {
    html {
        font-size: 105%; 
    }
    h1, .page-header h1 {
        font-size: 1.7rem !important;
        line-height: 1.3;
        text-align: center;
    }
    h2 {
    	font-size: 1.5rem !important;
    }
    .record-ledger {
        max-width: 100%;
        margin: 20px 0;
        padding: 15px;
    }
    .record-label {
        font-size: 0.85rem;
    }
    .record-value {
        font-size: 1.2rem;
    }
    .lucky-bag-image {
        max-width: 280px;
        margin: 0 auto 20px;
    }
    .lucky-bag-name {
        font-size: 1.4rem;
        text-align: center;
    }
    .standard-page {
        margin: 20px auto;
        padding: 0 15px;
    }
    .card-content, .moh-card-content {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    .card-photo, .moh-card-photo {
        flex: 0 0 auto;
        max-width: 180px; 
    }
    .card-header-line {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .card-name {
        font-size: 1.4rem;
    }
    .card-info {
        width: 100%;
    }
    .card-taxonomies {
        justify-content: left;
        margin-top: 10px;
    }
    .plaque-inscription {
		line-height: 1.8;
		font-size: 0.8rem !important;
		
	}
}

/* ================================= */
/* CORE REMAINING CONTENT DESIGNS     */
/* ================================= */

main a, 
.biography a, 
.lucky-bag a, 
.class-footer a,
.taxonomy-header a,
.card-body a,
footer a {
    color: #1C2D5B;
    text-transform: none;
    text-decoration: underline dashed #1C2D5B;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all 0.2s ease-in-out;
}

.nav-buttons a {
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all 0.2s ease-in-out;
}

main a:hover, 
.biography a:hover, 
.lucky-bag a:hover, 
.class-footer a:hover,
.taxonomy-header a:hover,
.card-body a:hover,
footer a:hover {
    color: #BEA75A;
    text-decoration: underline solid #BEA75A;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

h4 {
    color: #1C2D5B;
    margin-bottom: 0.5rem;
}

.smallcaps {
    font-variant: small-caps;
}

main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.meta-data {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    border-left: 4px solid #BEA75A;
    padding-left: 15px;
}

/* Lucky Bag Layout */
.lucky-bag-card {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #BEA75A;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    padding: 25px;
}

.lucky-bag-title {
    margin: 0;
    font-size: 1.1rem;
    color: #1C2D5B;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.lucky-bag-link {
    font-size: 0.95rem;
    font-style: italic;
    margin: 5px 0 20px 0;
}

.lucky-bag-container {
    display: flex;
    gap: 30px;
}

.lucky-bag-image {
    flex: 0 0 350px;
}

.lucky-bag-image img {
    border: 1px solid #eee;
    padding: 4px;
    background: #fff;
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.lucky-bag-content {
    flex: 1;
}

.lucky-bag-name {
    margin: 0;
    font-size: 1.6rem;
    color: #1C2D5B;
    line-height: 1.2;
}

.lb-meta-line {
    margin: 4px 0 10px 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.lb-ecas {
    margin-bottom: 15px;
    font-size: 0.1rem;
    line-height: 1.5;
    color: #333;
}

.lucky-bag-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.lb-hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0 10px 0;
}

.lb-other {
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    font-style: italic;
}

@media (max-width: 900px) {
    .lucky-bag-container { 
        flex-direction: column; 
    }
    .lucky-bag-image { 
        margin: 0 auto; 
        max-width: 100%; 
        flex: 0 0 auto;
    }
}

footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
}

/* Blockquotes */
blockquote {
    background-color: #f0f4f7;
    border-left: 5px solid #1C2D5B;
    margin: -10px 0 40px 0;
    padding: 1px 35px;
    position: relative;
    color: #334155;
    box-shadow: 2px 2px 8px rgba(28, 45, 91, 0.08);
}

blockquote p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote::before {
    content: "\201C";
    font-size: 4rem;
    color: #BEA75A;
    position: absolute;
    left: 8px;
    top: -20px;
    opacity: 0.25;
}

blockquote blockquote {
    background-color: rgba(255, 255, 255, 0.5);
    border-left: 3px solid #BEA75A;
    padding: 1px 35px;
    font-size: 1.1rem;
}

p + blockquote {
    margin-top: -10px;
}

blockquote cite {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: bold;
    color: #BEA75A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

blockquote cite::before {
    content: "— ";
}

/* Functional Footnote Adjustments */
.nav-and-qr-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
	margin-bottom: 20px;
}
.class-footer {
    max-width: 800px;
    margin: 40px auto;
}

.card {
    border: 2px solid #1C2D5B;
    border-radius: 4px;
    overflow: hidden;
}

.card-header {
    background-color: #1C2D5B;
    color: #BEA75A;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.card-body {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.nav-buttons .spacer {
    flex: 1;
}

/* 
.btn-outline {
    font-weight: bold;
    border: 2px solid #1C2D5B;
    background-color: transparent;
    color: #1C2D5B;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: #1C2D5B;
    color: white;
}
 */

.taxonomy-footer {
    margin-top: 50px;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 15px;              
}

.taxonomy-group {
    display: flex;
    flex-wrap: wrap;        
    justify-content: center; 
    align-items: center;
    gap: 10px;
    max-width: 800px;       
}

.taxo-tag {
    font-size: 0.95rem;
    background-color: #f0f4f7;
    color: #1C2D5B;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #1C2D5B;
    transition: all 0.2s;
}

.taxo-tag:hover {
    background-color: #BEA75A;
    color: white;
    border-color: #BEA75A;
}

/* Photo Gallery Grid */
.photo-gallery {
    column-count: 2;
    column-gap: 20px;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .photo-gallery {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    background: #f0f4f7;
    padding: 12px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid #BEA75A;
}

.gallery-meta {
    padding: 10px 0 5px 0;
}

.gallery-caption {
    display: block;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.gallery-source {
    display: inline-block;
    margin-top: 5px;
    color: #BEA75A !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
}

.gallery-source:hover {
    text-decoration: underline;
}

/* Honoree Ledger Box Structure */
.honoree-record-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.record-ledger {
    width: 100%;
    max-width: 400px;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #1C2D5B;
    padding: 5px 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 2px;
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.record-row:last-child {
    border-bottom: none;
}

.record-label {
    font-weight: bold;
    color: #1C2D5B;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.record-value {
    color: #333;
    font-size: 1.05rem;
    text-align: right;
}

.nd-entry {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #1C2D5B;
    margin-bottom: 1.5rem;
    padding: 15px 20px;
}

.nd-date {
    margin: 0 0 4px 0;
    color: #1C2D5B;
    font-size: 1.3rem;
}

.nd-main-info {
    line-height: 1.4;
}

.nd-hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 12px 0;
}

.nd-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.nd-columns-wrapper {
    column-count: 3;
    column-gap: 30px;
    column-fill: auto;
    display: block;
}

.nd-columns-wrapper2 {
    column-count: 2;
    column-gap: 30px;
    column-fill: auto;
    display: block;
}

.nd-person-unit {
    font-size: 1.15rem;
    display: inline-block;
    width: 100%;
    break-inside: avoid-column;
    margin-bottom: 6px;
    padding-left: 15px;
    text-indent: -15px;
    line-height: 1.3;
}

.nd-person-unit p {
    display: inline;
    margin: 0;
}

@media (max-width: 768px) {
    .nd-columns-wrapper { column-count: 1; }
}

.footnotes {
    font-size: 0.9em;
    color: #4A5568;
    border-top: none !important;
    margin-top: 0;
    padding-top: 0;
}

.footnote-backref {
    text-decoration: none;
    color: #BEA75A;
    margin-left: 5px;
}

.footnotes hr {
    display: none;
}

.footnotes ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Taxonomy Structure Styling */
.taxonomy-header h1 {
    font-family: 'Libre Baskerville', serif;
    color: #1C2D5B;
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    line-height: 1.4; 
}

.taxonomy-header h1 sup {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.6em;
    color: #BEA75A;
    font-weight: 800;
    font-variant: small-caps;
    position: relative;
    top: -0.8em;
    margin-left: 4px;
    vertical-align: baseline;
}

.taxonomy-description {
    text-align: left;
    max-width: 900px;
    margin: 0 0 45px 0;
    padding: 3px 30px;
    background-color: #fdfcf8; 
    border-left: 6px solid #BEA75A;
    box-shadow: inset 0 0 15px rgba(190, 167, 90, 0.05), 2px 2px 5px rgba(0,0,0,0.02);
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
}

.taxonomy-description p:last-child {
    margin-bottom: 0;
}

.taxonomy-title-row {
    display: flex;
    align-items: baseline; /* Keeps text bottoms perfectly aligned */
    gap: 20px;             /* Space between the title and the count */
    margin-bottom: 15px;   /* Pushes down the description text below */
    flex-wrap: wrap;       /* Allows clean breaking if a title is extremely long */
}

.taxonomy-stats {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.honoree-card {
    padding: 25px 0;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #BEA75A, rgba(190, 167, 90, 0)) 1;
}

.card-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.card-photo {
    flex: 0 0 150px;
}

.card-photo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.card-info {
    flex: 1;
}

.card-header-line {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 2px;
}

.card-name {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    display: inline;
    border-bottom: none !important;
    padding-bottom: 0;
}

.card-name a {
    color: #1C2D5B;
    text-decoration: none;
}

.card-meta {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

.card-rank-service {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 4px;
}

.card-class {
    font-weight: bold;
    color: #BEA75A;
    white-space: nowrap;
}

/* Strip all link styles from the card class link */
.card-class a {
    color: inherit !important;
    text-decoration: none !important;
    text-transform: inherit !important;
    font-weight: inherit !important;
}

.divider {
    margin: 0 10px;
    color: #BEA75A;
}

.class-statistics {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #BEA75A;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-top: -5px;
}

.class-notes {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #BEA75A;
}

.class-notes p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.class-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.class-pagination.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.nav-buttons a.pag-btn {
    text-decoration: none !important;
    border: 1px solid #ddd;
    padding: 10px 20px;
    color: #1C2D5B;
    font-family: 'Libre Baskerville', serif;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
}

.nav-buttons a.pag-btn:hover {
    background-color: #1C2D5B;
    color: #ffffff !important;
    border-color: #1C2D5B;
    text-decoration: none !important;
}

.nav-buttons .spacer {
    flex: 1;
}

.arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.card-taxonomies {
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

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


.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #1C2D5B;
    color: #1C2D5B !important;
    text-decoration: none !important;
    font-weight: bold;
    text-transform: uppercase;
/*     font-size: 0.95rem; */
    transition: all 0.2s ease;
    background: transparent;
}

.btn-outline:hover {
    background-color: #1C2D5B;
    color: #BEA75A !important;
}

.home-hero {
    text-align: center;
    padding: 30px 0;
}

.home-logo {
    display: block;
    margin: 0 auto 40px;
    max-width: 100%;
    width: 400px;
    height: auto;
}

@media (max-width: 480px) {
    .home-logo {
        width: 280px;
    }
}
.mission-statement {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.4rem;
    font-family: 'Libre Baskerville', serif;
    color: #1C2D5B;
    margin-bottom: 30px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.category-section {
    padding: 30px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.category-section .section-heading {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portal-card {
    background: #fff;
    padding: 15px 25px;
    text-decoration: none !important;
    border: 1px solid #eee;
    border-top: 4px solid #BEA75A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top-color: #1C2D5B;
}

.portal-card h4 {
    font-family: 'Libre Baskerville', serif;
    color: #1C2D5B;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.portal-card p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.4;
}

.mission-statement a,
.intro-grid a,
.category-section a:not(.portal-card) {
    color: #1C2D5B;
    text-decoration: underline dashed #1C2D5B;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all 0.2s ease-in-out;
}

.mission-statement a:hover,
.intro-grid a:hover,
.category-section a:not(.portal-card):hover {
    color: #BEA75A;
    text-decoration: underline solid #BEA75A;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.class-section {
    margin-bottom: 3rem;
    width: 100%;
    clear: both;
}

.class-header {
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.class-header a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0 15px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.class-header a:hover {
    color: #b3a369;
}

.class-header::after {
    content: "";
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #b3a369, transparent);
    z-index: 1;
}

.class-column-grid {
    list-style: none;
    padding: 0;
    column-count: 3; 
    column-gap: 3rem;
}

.class-column-grid li {
    break-inside: avoid;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.category-section .section-heading::after {
    display: none !important;
}

@media (max-width: 900px) {
    .class-column-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .class-column-grid { column-count: 1; }
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.company-card {
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: 4px solid #1C2D5B;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #BEA75A;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.company-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.8rem;
    font-weight: bold;
    color: #1C2D5B;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.company-number sup {
    font-size: 1.1rem;
    color: #BEA75A;
    top: -0.8em;
    margin-left: 2px;
    font-variant: small-caps;
}

.company-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    margin: 5px 0 10px 0;
}

.company-stats {
    font-size: 0.85rem;
    color: #BEA75A;
    font-weight: 700;
}

.kia-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 3rem;
}

.kia-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.kia-link:hover {
    color: #BEA75A;
    text-decoration: none;
}

@media (max-width: 600px) {
    .kia-list {
        column-count: 1;
    }
}

.kia-list li {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    break-inside: avoid;
}

/* Plaque Layout Panel Details */
.memorial-plaque {
    text-align: center;
    max-width: 800px;
    margin: .5rem auto;
    padding: .5rem;
    color: #333;
    font-family: 'Libre Baskerville', serif;
}

.plaque-title {
    color: #b3a369;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.plaque-inscription {
    line-height: 1.8;
    font-size: 1.4rem;
}

.dedication {
    font-weight: 700;
    text-transform: uppercase;
    font-style: normal;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    margin-bottom: 2rem;
}

.narrative, .watch {
    font-variant: small-caps;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.plaque-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(179, 163, 105, 0.75), rgba(0,0,0,0));
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr; }
    .lead { font-size: 1.2rem; }
    .lb-flex-wrapper {
        flex-direction: column;
    }
    .lb-photo {
        flex: 1 1 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .kia-list li {
		font-size: 0.95rem;
    }
}

/* Search Box Containers Layout */
.search-container {
    position: relative;
    max-width: 600px;
}

#search-input,
#index-search-input {
    width: 100%;
    padding: 12px 20px;
    font-family: 'Libre Baskerville', serif;
    border: 2px solid #b3a369;
    border-radius: 4px;
}

#search-results,
#index-search-results {
    position: absolute;
    width: 100%;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#search-results li a,
#index-search-results li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

#search-results li a:hover,
#index-search-results li a:hover {
    background-color: #f9f7f0;
}

/* Grid Master Indexes Decades Pages Styles */
.classes-master-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Libre Baskerville', serif;
}

.decade-label {
    text-align: center;
    position: relative;
    margin: 1rem 0 1rem 0;
    z-index: 1;
}

.decade-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #b3a369;
    z-index: -1;
}

.decade-label span {
    background: #fff;
    padding: 0 15px;
}

h2.decade-label {
    font-size: 2.5rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}

h2.decade-label::after {
    content: none;
    display: none;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.year-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.year-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid #1d2b4f;
    padding: 15px 10px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    transition: all 0.3s ease; 
}

.year-card-link:hover .year-card {
    transform: translateY(-5px);
    border-bottom-color: #BEA75A;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.year-number {
    font-size: 3rem;
    font-weight: bold;
    color: #1d2b4f;
    line-height: 1;
    margin-bottom: 5px;
}

.card-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-count {
    font-size: 0.9rem;
    color: #BEA75A;
    font-weight: bold;
}

.taxonomy-master-list {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Libre Baskerville', serif;
}

.terms-column-wrapper {
    column-count: 3;
    column-gap: 40px;
    column-rule: 1px solid #eee;
}

@media (max-width: 800px) { .terms-column-wrapper { column-count: 2; } }
@media (max-width: 500px) { .terms-column-wrapper { column-count: 1; } }

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.terms-list a {
    text-decoration: none;
    color: #1d2b4f;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.terms-list a:hover {
    background-color: #f9f7f0;
    color: #000;
}

.term-count {
    color: #BEA75A;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.page-header h1 {
    text-align: center;
    color: #1d2b4f;
    margin-bottom: 10px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: #BEA75A;
    margin: 0 auto 40px;
}

.constrained-image img {
    max-width: 100%;
    height: auto;
}
.constrained-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .qr-code, 
    .qr-code-container,
    #qr-code-section { 
        display: none !important; 
    }
}

/* ======================================= */
/* MEDAL OF HONOR (MOH) CARD STYLING       */
/* ======================================= */

.moh-card {
    padding: 25px 0;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #BEA75A, rgba(190, 167, 90, 0)) 1;
}

.moh-card-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.moh-card-photo {
    flex: 0 0 150px;
}

.moh-card-photo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.moh-card-info {
    flex: 1;
}

/* CHANGED: Switched to column display to stack elements vertically */
.moh-card-header-line {
    display: flex;
    flex-direction: column;
    gap: 4px; 
    margin-bottom: 6px;
}

/* CHANGED: Switched from inline to block to assist stacking */
.moh-card-name {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    border-bottom: none !important;
    padding-bottom: 0;
}

.moh-card-name a {
    color: #1C2D5B;
    text-decoration: none;
}

.moh-card-meta {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

.moh-card-date-place {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 4px;
}

.moh-card-class {
    font-weight: bold;
    color: #BEA75A;
    white-space: nowrap;
}

/* Neutralize inner link styling if you decide to linkify it later */
.moh-card-class a {
    color: inherit !important;
    text-decoration: none !important;
    text-transform: inherit !important;
    font-weight: inherit !important;
}

.moh-posthumous {
    font-size: 1rem;
    font-style: italic;
    color: #BEA75A;
    margin-bottom: 4px;
}

/* ======================================= */
/* PORTAL CARD CORE STYLES (HOMEPAGE & PAGES) */
/* ======================================= */

.portal-card {
    background: #fff;
    padding: 15px 25px;
    text-decoration: none !important;
    border: 1px solid #eee;
    border-top: 4px solid #BEA75A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    box-sizing: border-box; /* Prevents padding from breaking layout width */
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top-color: #1C2D5B;
}

.portal-card h4 {
    font-family: 'Libre Baskerville', serif;
    color: #1C2D5B;
    margin-bottom: 8px;
    font-size: 1.3rem;
    margin-top: 5px; /* Ensures clean spacing within layout flow */
}

.portal-card p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;       /* Tightens the text structure inside the card */
}

/* ======================================= */
/* PORTAL CARD LAYOUT GRID            */
/* ======================================= */
.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 25px;                             /* Space between cards */
    margin-top: 30px;
}

/* Responsive adjustment for mobile screen breakpoints */
@media (max-width: 768px) {
    .portal-card-grid {
        grid-template-columns: 1fr;        /* Switches cleanly to single file layout */
        gap: 20px;
    }
}


/* ======================================= */
/* Glossary Page			               */
/* ======================================= */
dt {
	font-weight: bold;
}

dd {
	padding-bottom: 15px;
}

/* ======================================= */
/* CHRONOLOGICAL ROW-BASED GRID            */
/* ======================================= */

/* Replaces the column-count layout with a row-first grid layout */
.chrono-day-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns across */
    gap: 2.5rem 3rem;                      /* Spacing: 2.5rem between rows, 3rem between columns */
}

.chrono-day-item {
    align-self: start;                     /* Prevents shorter lists from stretching to match tall lists */
}

.chrono-day-heading {
    font-weight: 700;
    color: #1C2D5B;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-family: 'Libre Baskerville', serif;
    display: inline-block;
    border-bottom: 1px solid #b3a369;
    padding-bottom: 3px;
}

.chrono-name-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chrono-name-list .kia-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.15rem;
}

/* Strips the pointer finger from the header link since it doesn't go anywhere */
.class-header a.static-header {
    cursor: default;
}

/* Responsive Breakpoints matching your design scale */
@media (max-width: 900px) {
    .chrono-day-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .chrono-day-grid {
        grid-template-columns: 1fr;            /* 1 column stack on mobile mobile */
        gap: 1.5rem;
    }
}

/* ======================================= */
/* MONTH NAVIGATION MENU                   */
/* ======================================= */

.month-nav {
    margin: 2rem 0 3rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.month-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.month-nav-item {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.month-nav-link {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.month-nav-link:hover {
    color: #b3a369; /* Matches your homepage gold hex */
}

/* Optional: Adds smooth scrolling to the page when clicking the jump links */
html {
    scroll-behavior: smooth;
}

/* ======================================= */
/* INDEX PAGE SEARCH BAR STYLING          */
/* ======================================= */

.search-section {
    text-align: center;       /* Centers the h2 heading and inline containers */
    padding: 3rem 1.5rem;     /* Reasonable padding that won't create massive empty spaces */
}

.search-section .section-heading {
    font-family: 'Libre Baskerville', serif;
    color: #1C2D5B;
    margin-bottom: 1.5rem;    /* Clean spacing between header and input box */
}

.search-container {
    position: relative;       /* Anchors the dropdown to this exact container width */
    max-width: 600px;         /* Made it wider to accommodate a larger look */
    margin: 0 auto;           /* Centers the container horizontally on the page */
    text-align: left;         /* Restores left alignment for the text typed inside */
}

/* Made the input field larger and more prominent */
#index-search-input {
    width: 100%;
    padding: 1.1rem 1.5rem;   /* Increased padding for a larger, modern feel */
    font-size: 1.25rem;       /* Larger text size */
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#index-search-input:focus {
    border-color: #b3a369;    /* Gold focus ring */
    box-shadow: 0 0 8px rgba(179, 163, 105, 0.2);
}

/* Dropdown styling scaled to match the new container width */
.index-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: #ffffff;
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;        /* Tiny gap right below the larger input box */
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ======================================= */
/* 				MAPS			           */
/* ======================================= */

.hometown-map-section {
    margin: 4rem auto 2rem auto;
    max-width: 1000px;
    padding: 0 1.5rem;
}
#hometown-map {
    height: 450px;
    width: 100%;
    display: block;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.master-map-wrapper {
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

#master-hometown-map {
    height: 600px; /* Taller layout to handle macro view zooming */
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.date-navigation-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #eef0f2;
    margin-top: 1.5rem;
}

.date-nav-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.date-nav-link:hover {
    color: #00356b;
    text-decoration: underline;
}

.date-nav-today {
    font-weight: 700;
    color: #333;
    background-color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

/* Make sure it drops to rows elegantly on smaller mobile screens */
@media (max-width: 576px) {
    .date-navigation-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* Base styling for the chronological day heading link */
.chrono-day-heading a.date-link-gold {
    color: #1C2D5B; 
    text-decoration: none;
    display: inline-block;
    padding-left: 0; /* 1. Establish a base state for the transition */
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out; /* 2. Transition the padding instead */
}

/* Rollover state shifting to USNA Gold */
.chrono-day-heading a.date-link-gold:hover {
    color: #BEA75A;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}