/*
Theme Name: Navy Harrington
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: An elegant, classic WordPress theme inspired by rare bookshops. Features a predominant navy blue colour scheme with earthy brown accents. Perfect for books, publishing, and literary sites.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: navy-harrington
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, two-columns, right-sidebar, footer-widgets

Navy Harrington WordPress Theme, (C) 2025 Your Name
Navy Harrington is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize & Base
# Typography
# Colors
# Layout
# Header & Navigation
# Hero / Front Page
# Content
# Sidebar
# Footer
# Pages
# Posts
# Forms & Buttons
# Responsive
# Accessibility
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Normalize & Base
--------------------------------------------------------------*/

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #faf8f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

a {
    color: #1B2A4A;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
    color: #8B6914;
}

a:focus {
    outline: 2px solid #8B6914;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 1.5em 2em;
    padding: 0;
}

li > ul, li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    padding: 0.75em;
    border: 1px solid #e0dcd5;
    text-align: left;
}

th {
    background-color: #1B2A4A;
    color: #ffffff;
    font-weight: 600;
}

dd {
    margin: 0 0 1.5em 0;
}

code, kbd, pre, samp {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

pre {
    overflow: auto;
    padding: 1.5em;
    background: #f0ece5;
    border: 1px solid #e0dcd5;
    margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-weight: 700;
    line-height: 1.3;
    color: #1B2A4A;
    margin: 0 0 0.75em 0;
    clear: both;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1.5em 0;
}

blockquote {
    margin: 0 0 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #8B6914;
    background: #f0ece5;
    font-style: italic;
    color: #4a4a4a;
}

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

cite {
    font-style: normal;
    font-size: 0.9em;
    color: #8B6914;
}

/*--------------------------------------------------------------
# Colors
--------------------------------------------------------------*/

.has-navy-color { color: #1B2A4A; }
.has-navy-background-color { background-color: #1B2A4A; }
.has-brown-color { color: #8B6914; }
.has-brown-background-color { background-color: #8B6914; }
.has-cream-color { color: #faf8f5; }
.has-cream-background-color { background-color: #faf8f5; }

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

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

.content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;          
    padding: 40px 0;
}

.site-main {
    flex: 1 1 65%;
    min-width: 0;
    padding-right: 20px; 
}

.site-sidebar {
    flex: 1 1 30%;
    min-width: 280px;
}

.full-width .site-main {
    flex: 1 1 100%;
    padding-right: 0;    
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/

.site-header {
    position: left;
    
}

.header-top-bar {
    padding: 6px 0;
    font-size: 0.8rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #1B2A4A;
    color: #b8c4d9;
}

.header-top-bar .site-container {
    display: flex;
    justify-content: flex-start; /* Left-aligned top bar */
    align-items: left;
    gap: 24px;
}

.header-top-bar a {
    color: #b8c4d9;
}

.header-top-bar a:hover {
    color: #8B6914;
}

.header-top-bar .top-bar-left,
.header-top-bar .top-bar-right {
    display: flex;
    align-items: left;
    gap: 16px;
}

.header-main {
    padding: 20px 0;
}

.header-main .site-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.site-logo img {
    max-height: 34px;
    width: auto;
}

.site-title {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #1B2A4A;
}

.site-title a:hover {
    color: #8B6914;
}

.site-description {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    color: #7a7a7a;
    margin: 4px 0 0 0;
    letter-spacing: 0.5px;
}

.header-search {
    position: relative;
}

.header-search .search-form {
    display: flex;
    align-items: left;
}

.header-search .search-field {
    padding: 8px 14px;
    border: 1px solid #d0ccc5;
    background: #ffffff;
    color: #2d2d2d;
    font-size: 0.85rem;
    border-radius: 0;
    width: 220px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.header-search .search-field::placeholder {
    color: #a0a0a0;
}

.header-search .search-field:focus {
    outline: none;
    border-color: #1B2A4A;
}

.header-search .search-submit {
    background: #1B2A4A;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: background 0.2s ease;
}

.header-search .search-submit:hover {
    background: #8B6914;
}

/* Main Navigation */
.main-navigation {
    background-color: #0f1a2e;
}

.main-navigation .site-container {
    display: flex;
    justify-content: flex-start; /* Kept navigation items strictly left-aligned */
    align-items: left;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
	align-items:left;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 14px 20px;
    color: #d4dce8;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #ffffff;
    background: #1B2A4A;
}

.main-navigation .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.75rem;
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1B2A4A;
    min-width: 220px;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-top: 3px solid #8B6914;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li.focus > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    white-space: nowrap;
    border-bottom: 1px solid #2a3f66;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid #8B6914;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Hero / Front Page
--------------------------------------------------------------*/

.hero-section {
    background-color: #1B2A4A;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: #8B6914;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 1.1rem;
    color: #b8c4d9;
    max-width: 700px;
    margin: 0 auto 28px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.hero-section .button {
    background: #8B6914;
    color: #ffffff;
    padding: 14px 36px;
    border: none;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
}

.hero-section .button:hover {
    background: #a67c2e;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0dcd5;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header .archive-description {
    color: #6a6a6a;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-title a {
    color: #1B2A4A;
}

.entry-title a:hover {
    color: #8B6914;
}

.entry-meta {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-meta a {
    color: #1B2A4A;
}

.entry-meta a:hover {
    color: #8B6914;
}

.entry-meta .posted-on,
.entry-meta .byline {
    margin-right: 12px;
}

.entry-content {
    margin-bottom: 30px;
}

.entry-content a {
    border-bottom: 1px solid #8B6914;
}

.entry-content a:hover {
    color: #8B6914;
}

.entry-footer {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    color: #8a8a8a;
    padding-top: 16px;
    border-top: 1px solid #e0dcd5;
    margin-top: 30px;
}

.entry-footer a {
    color: #1B2A4A;
}

.entry-footer a:hover {
    color: #8B6914;
}

.cat-links, .tags-links, .comments-link {
    display: inline-block;
    margin-right: 16px;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 24px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* Sticky post */
.sticky {
    position: relative;
}

.sticky::before {
    content: '★ Featured';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #8B6914;
    color: #ffffff;
    padding: 4px 12px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Articles list */
article {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0dcd5;
}

article:last-child {
    border-bottom: none;
}

/* Read More */
.more-link {
    display: inline-block;
    background: #1B2A4A;
    color: #ffffff;
    padding: 8px 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.more-link:hover {
    background: #8B6914;
    color: #ffffff;
}

/*--------------------------------------------------------------
# Posts Navigation
--------------------------------------------------------------*/

.pagination {
    margin: 40px 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e0dcd5;
    color: #1B2A4A;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #1B2A4A;
    color: #ffffff;
    border-color: #1B2A4A;
}

.pagination .current {
    background: #1B2A4A;
    color: #ffffff;
    border-color: #1B2A4A;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.site-sidebar .widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0dcd5;
}

.site-sidebar .widget:last-child {
    border-bottom: none;
}

.site-sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B6914;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid #f0ece5;
}

.site-sidebar li:last-child {
    border-bottom: none;
}

.site-sidebar a {
    color: #1B2A4A;
}

.site-sidebar a:hover {
    color: #8B6914;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
    background-color: #1B2A4A;
    color: #b8c4d9;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
}

.footer-widgets {
    padding: 40px 0;
    border-bottom: 1px solid #2a3f66;
}

.footer-widgets .site-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-widget-area {
    flex: 1 1 220px;
}

.footer-widget-area .widget-title {
    color: #ffffff;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B6914;
}

.footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area li {
    padding: 6px 0;
}

.footer-widget-area a {
    color: #b8c4d9;
}

.footer-widget-area a:hover {
    color: #8B6914;
}

.footer-bottom {
    padding: 20px 0;
    background: #0f1a2e;
}

.footer-bottom .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom .footer-copyright {
    font-size: 0.8rem;
}

.footer-bottom .footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-menu a {
    color: #7a8aa3;
    font-size: 0.8rem;
}

.footer-bottom .footer-menu a:hover {
    color: #8B6914;
}

/*--------------------------------------------------------------
# Pages
--------------------------------------------------------------*/

.page-content {
    margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Forms & Buttons
--------------------------------------------------------------*/

button, input, select, textarea {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
}

button, .button, input[type="submit"] {
    display: inline-block;
    background: #1B2A4A;
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background: #8B6914;
    color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    padding: 10px 14px;
    border: 1px solid #d0ccc5;
    background: #ffffff;
    color: #2d2d2d;
    width: 100%;
    max-width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #8B6914;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 105, 20, 0.15);
}

textarea {
    resize: vertical;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

/* Search form */
.search-form {
    display: flex;
}

.search-form label {
    margin-bottom: 0;
    flex: 1;
}

.search-form .search-field {
    border-radius: 0;
}

.search-form .search-submit {
    border-radius: 0;
    padding: 10px 20px;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/

.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0dcd5;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0ece5;
}

.comment .comment-body {
    padding-left: 0;
}

.comment .avatar {
    float: left;
    margin-right: 16px;
    border-radius: 50%;
}

.comment .fn {
    font-weight: 700;
    font-style: normal;
}

.comment .fn a {
    color: #1B2A4A;
}

.comment .says {
    font-size: 0.85rem;
    color: #8a8a8a;
}

.comment .comment-metadata {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 12px;
}

.comment .comment-metadata a {
    color: #8a8a8a;
}

.comment .comment-metadata a:hover {
    color: #8B6914;
}

.comment .reply {
    font-size: 0.85rem;
}

.comment .reply a {
    color: #1B2A4A;
    font-weight: 600;
}

.comment .reply a:hover {
    color: #8B6914;
}

.children {
    list-style: none;
    margin-left: 40px;
}

.comment-respond {
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.comment-form label {
    font-size: 0.85rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# 404 Page
--------------------------------------------------------------*/

.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .page-title {
    font-size: 6rem;
    color: #1B2A4A;
    margin-bottom: 0;
    line-height: 1;
}

.error-404 .page-content p {
    font-size: 1.2rem;
    color: #6a6a6a;
}

/*--------------------------------------------------------------
# WordPress Core
--------------------------------------------------------------*/

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 24px;
}

.wp-caption img {
    width: 100%;
    height: auto;
}

.wp-caption-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    color: #8a8a8a;
    padding: 8px 0;
    text-align: center;
}

.gallery {
    margin-bottom: 24px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item { max-width: 16.66%; }
.gallery-columns-7 .gallery-item { max-width: 14.28%; }
.gallery-columns-8 .gallery-item { max-width: 12.5%; }
.gallery-columns-9 .gallery-item { max-width: 11.11%; }

.gallery-caption {
    font-size: 0.8rem;
    color: #8a8a8a;
    padding: 8px 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 1024px) {
    .content-area {
        gap: 30px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-main .site-container {
        flex-direction: column;
        gap: 16px;
    }

    .header-search .search-field {
        width: 160px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul.toggled-on {
        display: flex;
    }

    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background: #0f1a2e;
    }

    .main-navigation li:hover > .sub-menu,
    .main-navigation li.focus > .sub-menu {
        display: none;
    }

    .main-navigation .sub-menu.toggled-on {
        display: block;
    }

    .main-navigation .sub-menu .sub-menu {
        border-left: none;
        padding-left: 16px;
    }

    .main-navigation a {
        padding: 12px 16px;
        border-bottom: 1px solid #2a3f66;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .content-area {
        flex-direction: column;
        padding: 24px 0;
    }

    .site-main {
        padding-right: 0; 
    }

    .site-sidebar {
        min-width: 100%;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .footer-bottom .site-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom .footer-menu ul {
        justify-content: center;
    }

    .footer-widgets .site-container {
        flex-direction: column;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .site-container {
        padding: 0 16px;
    }

    .header-search .search-field {
        width: 120px;
    }

    .header-top-bar .site-container {
        flex-direction: column;
        gap: 6px;
    }
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip link */
.skip-link {
    background: #1B2A4A;
    color: #ffffff;
    padding: 8px 16px;
    position: absolute;
    left: -9999px;
    z-index: 999999;
    text-decoration: none;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/*--------------------------------------------------------------
# Pagelayer Overrides
--------------------------------------------------------------*/
.pagelayer-space-holder,
.pagelayer-space,
[class*="pagelayer"] .pl-space,
.wp-block-pagelayer-pl_space,
.pagelayer-ele.pagelayer-pl_space {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

.pagelayer-space-holder > div,
.pagelayer-space-holder[style*="background"] {
    background: transparent !important;
    background-image: none !important;
}

/* Decrease logo size by 25% */
.site-logo img {
    max-height: 45px !important; /* Reduced from 60px */
    width: auto;
}

/* Align Logo, Menu, and Search horizontally with baseline alignment */
.header-main .site-container {
    display: flex;
    align-items: baseline; /* Snaps the bottom of the text to the bottom of the image */
    justify-content: flex-start; 
    flex-wrap: wrap;
    gap: 40px; /* Space between logo, menu, and search */
}

/* Remove the dark background from the menu since it's now in the white header space */
.main-navigation {
    background-color: transparent !important;
    flex-grow: 1; /* Pushes the search bar to the far right if you want it there */
}

/* Ensure menu links match the dark header text color now that the background is gone */
.main-navigation a {
    color: #1B2A4A !important;
}

/* Optional: Pushes the search bar to the right, keeping menu next to logo */
.header-search {
    margin-left: auto; 
}