/* ========================================
   CSS VARIABLES - Maryland State Style
   Inspired by Maryland State Archives
   ======================================== */
:root {
    --primary: #5B6236;
    --primary-dark: #474D2A;
    --primary-light: #6E7640;
    --accent-gold: #C4A14A;
    --accent-gold-light: #F5EDD4;
    --link-color: #2B5797;
    --link-hover: #1A3A6B;
    --text-dark: #2C2C2C;
    --text-body: #3D3D3D;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-light: #F0EDE4;
    --bg-white: #ffffff;
    --bg-cream: #F7F5EF;
    --bg-banner: #F5EDD4;
    --border: #D0CCBF;
    --border-light: #E0DDD4;
    --accent: #5B6236;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --content-width: 800px;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background-color: var(--bg-cream);
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.content-section img {
    display: block;
    max-width: 75%;
    margin: 20px auto;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 3px;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TOP BAR - Hidden (available if needed)
   ======================================== */
.top-bar {
    display: none;
}

/* ========================================
   HEADER - Maryland Institutional Style
   ======================================== */
.header {
    background: linear-gradient(135deg, #D5CDBA 0%, #C4B99A 40%, #B8AD8E 100%);
    padding: 16px 0;
    border-bottom: 2px solid #A89E82;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo img {
    height: 40px;
    width: auto;
}

.site-title {
    display: none;
}

/* ========================================
   NAVIGATION - Maryland Style
   ======================================== */
.nav {
    display: flex;
    gap: 0;
    background-color: transparent;
    border-bottom: 1px solid #A89E82;
}

.nav a {
    padding: 8px 20px;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #A89E82;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    margin-right: -1px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.2s;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: var(--text-dark);
}

.nav a.active {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--bg-white);
    position: relative;
    z-index: 1;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: var(--bg-white);
}

/* ========================================
   CONTEXT BAR (MSA "You are viewing" style)
   ======================================== */
.context-bar {
    background-color: var(--accent-gold-light);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
    color: #5A5030;
}

.context-bar strong {
    color: var(--text-dark);
}

.context-bar a {
    color: var(--link-color);
    font-weight: 600;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-light);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-muted);
}

/* ========================================
   PAGE NAVIGATION - Jump Links (MSA-inspired)
   ======================================== */
.page-nav {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 0 3px 3px 0;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.page-nav-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.page-nav-links li a {
    font-size: 14px;
    color: var(--link-color);
    text-decoration: none;
    padding: 2px 0;
    display: inline-block;
}

.page-nav-links li a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.page-nav-links li a::before {
    content: "\25B8 ";
    color: var(--primary);
    font-size: 11px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    padding: 25px 0 40px;
    background-color: var(--bg-cream);
}

.content-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.content-section h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2em;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.35;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.content-section h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.45em;
    font-weight: 400;
    color: var(--text-dark);
    margin: 28px 0 15px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
}

.content-section h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-section h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2em;
    font-weight: 400;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 15px;
    color: var(--text-body);
    line-height: 1.65;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul,
.content-section ol {
    margin: 10px 0 15px 25px;
    color: var(--text-body);
}

.content-section li {
    margin-bottom: 6px;
    line-height: 1.55;
}

/* ========================================
   ICON HEADINGS (MSA book icon style)
   ======================================== */
.icon-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-heading::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-color: #5B6236;
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.icon-heading.icon-book::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.icon-heading.icon-court::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='1'/%3E%3Cpath d='M12 2l9 9H3z'/%3E%3Cline x1='7' y1='11' x2='7' y2='22'/%3E%3Cline x1='12' y1='11' x2='12' y2='22'/%3E%3Cline x1='17' y1='11' x2='17' y2='22'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='1'/%3E%3Cpath d='M12 2l9 9H3z'/%3E%3Cline x1='7' y1='11' x2='7' y2='22'/%3E%3Cline x1='12' y1='11' x2='12' y2='22'/%3E%3Cline x1='17' y1='11' x2='17' y2='22'/%3E%3C/svg%3E");
}

.icon-heading.icon-search::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.icon-heading.icon-doc::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}

.icon-heading.icon-scale::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cline x1='12' y1='3' x2='12' y2='21'/%3E%3Cpath d='M5 8l7-5 7 5'/%3E%3Cpath d='M2 14l3-6 3 6a3 3 0 0 1-6 0z'/%3E%3Cpath d='M16 14l3-6 3 6a3 3 0 0 1-6 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cline x1='12' y1='3' x2='12' y2='21'/%3E%3Cpath d='M5 8l7-5 7 5'/%3E%3Cpath d='M2 14l3-6 3 6a3 3 0 0 1-6 0z'/%3E%3Cpath d='M16 14l3-6 3 6a3 3 0 0 1-6 0z'/%3E%3C/svg%3E");
}

.icon-heading.icon-map::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon-heading.icon-info::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

/* ========================================
   NOTICE BOXES (MSA alert/callout style)
   ======================================== */
.notice-box {
    padding: 14px 18px;
    border-radius: 3px;
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.55;
}

.notice-box p {
    margin: 0;
}

.notice-box p + p {
    margin-top: 8px;
}

.notice-info {
    background-color: #EDF4FC;
    border: 1px solid #B8D4F0;
    border-left: 4px solid #2B7AC5;
    color: #1A4970;
}

.notice-warning {
    background-color: #FFF8E7;
    border: 1px solid #E8D5A0;
    border-left: 4px solid var(--accent-gold);
    color: #5A4B00;
}

.notice-important {
    background-color: #FDEDED;
    border: 1px solid #F0C0C0;
    border-left: 4px solid var(--primary);
    color: #6B1A1A;
}

.notice-success {
    background-color: #EDF8ED;
    border: 1px solid #B8E0B8;
    border-left: 4px solid #2E8B2E;
    color: #1A5A1A;
}

.notice-box strong {
    font-weight: 600;
}

/* ========================================
   STATS BOX - Maryland Style
   ======================================== */
.stats-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent-gold);
    border-radius: 0 0 3px 3px;
    padding: 22px 28px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.stats-box h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15em;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.stat-number {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.9em;
    font-weight: 400;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   INFO TABLE - Enhanced Maryland Style
   ======================================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    width: 35%;
    border-right: 1px solid var(--border);
}

.info-table td {
    color: var(--text-body);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:nth-child(even) td {
    background-color: var(--bg-cream);
}

/* ========================================
   LINK GRID (Counties, Cities)
   ======================================== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.link-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 11px 14px;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    text-decoration: none;
    background-color: var(--bg-light);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.link-card::before {
    content: "\25B8 ";
    color: var(--primary);
    font-size: 12px;
}

.link-card-title {
    font-weight: 400;
    color: var(--link-color);
    font-size: 14px;
}

.link-card:hover .link-card-title {
    color: var(--primary);
    text-decoration: underline;
}

/* Compact grid for large lists */
.link-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 8px;
}

.link-grid-compact .link-card {
    padding: 9px 12px;
}

/* ========================================
   BUTTONS - Maryland Style
   ======================================== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #2C2000;
    display: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   FOOTER - Maryland Institutional Style
   ======================================== */
.footer {
    background-color: #3A3A35;
    color: #C0C0B8;
    padding: 0;
    margin-top: 30px;
    border-top: 3px solid var(--accent-gold);
}

.footer-main {
    padding: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-col h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 400;
    color: #D5CDBA;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: #A0A098;
    margin-bottom: 6px;
}

.footer-col a {
    color: #C0C0B8;
    text-decoration: none;
    font-size: 13px;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 6px;
}

.footer-links-list li a::before {
    content: "\25B8 ";
    color: var(--accent-gold);
    font-size: 11px;
}

.footer-disclaimer {
    font-size: 12px;
    color: #8A8A82;
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #504F48;
}

.footer-bottom {
    background-color: #2E2E2A;
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: #7A7A72;
    border-top: 1px solid #504F48;
}

.footer-bottom a {
    color: #9A9A92;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Fallback for old footer markup */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #CCCCCC;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-top: 1px solid #333333;
    font-size: 12px;
    color: #777777;
    background-color: #111111;
}

/* ========================================
   SEARCH FORM COMPONENT (Original)
   ======================================== */
.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-form-row.stacked {
    flex-direction: column;
}

.search-form input[type="text"],
.search-form select {
    flex: 1;
    padding: 10px 12px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    border: 1px solid var(--border);
    border-radius: 3px;
    background-color: var(--bg-white);
}

.search-form input[type="text"]:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 3px rgba(91, 98, 54, 0.3);
}

.search-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

/* Sidebar version */
.search-form-sidebar {
    max-width: 300px;
}

.search-form-sidebar .search-form-row {
    flex-direction: column;
}

/* ========================================
   SEARCH WIDGET (JS Generated - Horizontal)
   ======================================== */
.search-widget {
    width: 100%;
}

.search-widget .search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.search-widget .search-input,
.search-widget .search-select,
.search-widget .search-button {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    border: 1px solid var(--border);
    border-radius: 3px;
    background-color: var(--bg-white);
    box-sizing: border-box;
}

.search-widget .search-button {
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-widget .search-input:focus,
.search-widget .search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 3px rgba(91, 98, 54, 0.3);
}

.search-widget .search-button:hover {
    background-color: var(--primary-dark);
}

/* Search Embed Box */
.search-embed {
    background-color: #F5EDD4;
    border: 1px solid #C4B99A;
    border-radius: 3px;
    padding: 30px;
    padding-bottom: 75px;
    margin: 25px 0;
    position: relative;
}

.search-embed h3 {
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.2em;
    font-weight: 400;
    color: var(--text-dark);
}

/* Sponsored Results - Light gray, bottom left corner */
.search-embed p.search-form-note {
    position: absolute;
    left: 25px;
    bottom: 15px;
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

/* ========================================
   SECTION ANCHORS
   ======================================== */
[id] {
    scroll-margin-top: 20px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-left: 0;
        margin-top: 5px;
        font-size: 17px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        background-color: transparent;
        border-bottom: none;
    }

    .nav a {
        padding: 7px 14px;
        font-size: 13px;
        background-color: rgba(255, 255, 255, 0.5);
        margin: 2px;
        border-radius: 3px;
        border: 1px solid #A89E82;
    }

    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .top-bar-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .content-section {
        padding: 20px;
    }

    .content-section h1 {
        font-size: 1.6em;
    }

    .content-section h2 {
        font-size: 1.3em;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .search-form-row {
        flex-direction: column;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-nav-links {
        flex-direction: column;
        gap: 4px;
    }
}

/* Mobile - Search Widget Stacks Vertically */
@media (max-width: 700px) {
    .search-widget .search-form {
        grid-template-columns: 1fr;
    }

    .search-embed {
        padding: 25px 20px;
        padding-bottom: 45px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 32px;
    }

    .content-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .content-section h1 {
        font-size: 1.4em;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .link-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-table th,
    .info-table td {
        padding: 10px;
        font-size: 14px;
    }

    .info-table th {
        width: 40%;
    }

    /* top-bar already hidden globally */
}
