/* ========================================
   CHROME STYLES - Navigation, Layout, UI
   ======================================== */

html, * {
    scroll-behavior: smooth !important;
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 10px;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
    overscroll-behavior: contain;
}

/* Skip links for keyboard navigation */
.skip-link {
    position: absolute;
    top: -60px;
    left: 6px;
    background: #005ea5;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

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

/* Enhanced focus indicators for accessibility */
*:focus {
    outline: 2px solid #005ea5;
    outline-offset: 2px;
}

/* Ensure focus is visible on all interactive elements */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #005ea5;
    outline-offset: 2px;
}

/* Remove default outline and add custom one for better visibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #005ea5;
}

/* Legislation.gov.uk style header */
.legislation-header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 0;
    margin-bottom: 0;
}

.legislation-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legislation-header .site-title {
    font-size: 24px;
    font-weight: bold;
    color: #005ea5;
    text-decoration: none;
    margin: 0;
}

.legislation-header .site-title:hover {
    text-decoration: underline;
}

.legislation-header .breadcrumb {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.legislation-header .breadcrumb a {
    color: #005ea5;
    text-decoration: underline;
}

.legislation-header .breadcrumb a:hover {
    text-decoration: underline;
}

.legislation-header .breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
}

.sidebar {
    width: 25%;
    padding-right: 20px;
    border-right: 1px solid #e0e0e0;
    background: #f8f9fa;
    padding: 20px;
    margin-right: 20px;
    border-radius: 0;
    box-sizing: border-box;
}

.sidebar h2 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #005ea5;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.sidebar h2 a {
    color: #005ea5;
    text-decoration: none;
}

.sidebar h2 a:hover {
    text-decoration: underline;
}

/* Burger menu styles */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: #005ea5;
    color: white;
    border: none;
    border-radius: 4px;
    margin: 10px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -7px);
}

/* Common navigation styles */
.nav-links {
    list-style: none;
    padding: 0 0 0 0.5rem;
    margin-bottom: 1rem;
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #005ea5;
    text-decoration: none;
}

/* Bold styling for summaries navigation links */
#summaries-nav a {
    font-weight: bold;
}

/* Legacy selectors for backward compatibility */
#toc {
    list-style: none;
    padding: 0 0 0 0.5rem;
    margin-bottom: 1rem;
}

#toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc li {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* Legacy selectors for backward compatibility */
#versions-nav {
    list-style: none;
    padding: 0 0 0 0.5rem;
    margin-bottom: 1rem;
}

#versions-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#versions-nav li {
    list-style: none;
    padding: 0;
    margin: 0;
}

#versions-nav a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: color 0.2s ease;
}

#versions-nav .version-number {
    font-weight: bold;
}

#versions-nav a:hover {
    color: #005ea5;
    text-decoration: none;
}

.search-container {
    margin-bottom: 0;
    border-bottom: none !important;
}

.search-container h2 {
    margin-bottom: 10px;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

#search-input:focus {
    outline: none;
    border-color: #005ea5;
    box-shadow: 0 0 0 2px rgba(0, 94, 165, 0.25);
}

#search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.search-see-all {
    padding: 8px;
    margin: 5px 0;
    text-align: center;
    border-bottom: none !important;
}

.search-see-all a {
    color: #005ea5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.search-see-all a:hover {
    text-decoration: underline;
}

.search-result {
    padding: 8px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.search-result:hover {
    background: #e0e0e0;
}

.search-result .highlight {
    background: #ffeb3b;
    font-weight: bold;
}

#search-summary {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    border-bottom: none !important;
}

main {
    width: 75%;
    padding-left: 0;
    background: #ffffff;
}

/* Legislation.gov.uk style document header */
.document-header {
    background: #ffffff;
    border-bottom: 2px solid #005ea5;
    padding: 20px 0;
    margin-bottom: 30px;
}

.document-header h1 {
    font-size: 2.2em;
    color: #005ea5;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.2;
}

.document-header .document-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    font-weight: normal;
}

.document-header .document-meta {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.document-header .document-meta .download-pdf-link {
    font-style: normal;
    font-weight: 600;
    margin-left: 0.35em;
    color: #0b5fad;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.document-header .document-meta .download-pdf-link::before {
    content: "⇩";
    font-size: 0.9em;
}

.document-header .document-meta .download-pdf-link:hover,
.document-header .document-meta .download-pdf-link:focus-visible {
    text-decoration: underline;
}

header h1 {
    font-size: 2em;
    color: #005ea5;
    border-bottom: 2px solid #005ea5;
    padding-bottom: 10px;
    margin-top: 0;
}

a {
    color: #005ea5;
}

a:hover {
    text-decoration: underline;
}

/* Shared navigation container styles */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #ddd;
    margin-bottom: 0;
    gap: 20px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        max-width: 100%;
        width: 100%;
    }
}

/* .section-navigation inherits from nav-container */

/* Shared button styles */
.btn-primary {
    background: #ffffff;
    color: #005ea5;
    border: 1px solid #005ea5;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #005ea5;
    border-color: #005ea5;
    text-decoration: none;
    color: white;
}

.btn-primary:disabled {
    background: #ffffff;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 1;
}

.nav-button {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#current-section-info,
#current-section-info-bottom {
    font-weight: normal;
    color: #333;
    font-size: 14px;
}

/* Highlighted elements - change existing left border to orange */
.highlighted {
    border-left-color: #ff8c00 !important;
}

/* For elements that don't have left borders, add one */
.highlighted:not(.constitution-table):not(.remark):not(h3) {
    border-left: 4px solid #ff8c00;
    padding-left: 40px;
    margin-left: -4px;
}

/* Summary page styles */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.summary-card h2 {
    margin-top: 0;
    color: #005ea5;
}

.summary-card h2 a {
    text-decoration: none;
    color: inherit;
}

.summary-card h2 a:hover {
    text-decoration: underline;
}

/* Metadata styling */
.metadata {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

/* Enhanced search results */
.search-result {
    background: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.search-result a {
    text-decoration: none;
    color: inherit;
}

.search-result:hover {
    background: #f8f9fa;
}

/* External reference styling */
.ref-link.external {
    color: #666;
    cursor: help;
}

.ref-link.external:hover {
    color: #333;
}

/* Search highlighting */
.highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

/* Version Timeline Styles */
.version-timeline {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 15px 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: none;
}

.versions-link {
    color: #005ea5;
    text-decoration: none;
    font-weight: normal;
}

.versions-link:hover {
    text-decoration: underline;
}

.version-timeline h3 {
    margin: 0 0 15px 0;
    color: #005ea5;
    font-size: 1.1em;
    font-weight: 600;
}

.timeline-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    align-items: center;
    padding: 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #005ea5 #f0f0f0;
}

.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: #005ea5;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #004494;
}

.timeline-item {
    position: relative;
    flex-shrink: 0;
}

.timeline-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #ffffff;
    transition: all 0.2s ease;
    min-width: 90px;
}

.timeline-link:hover {
    background: #e8f4fd;
    border-color: #005ea5;
    text-decoration: none;
    color: #333;
}

.timeline-link.active {
    background: #005ea5;
    color: white;
    border-color: #005ea5;
}

.timeline-link.active .timeline-dot {
    background: white;
    border-color: white;
}

.timeline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #005ea5;
    border: 1px solid #005ea5;
    margin-right: 6px;
    flex-shrink: 0;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timeline-version {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 1px;
    color: #222;
}

.timeline-date {
    font-size: 0.7em;
    color: #444;
    margin-bottom: 1px;
}

.timeline-link.active .timeline-version {
    color: white;
    font-weight: bold;
}

.timeline-link.active .timeline-date {
    color: rgba(255,255,255,0.9);
}

.timeline-status {
    font-size: 0.55em;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
}

.timeline-link.active .timeline-status {
    color: rgba(255,255,255,0.85);
}

/* Specific styling for superseded status */
.timeline-link .timeline-status.superseded {
    color: #666;
}

.timeline-link.active .timeline-status.superseded {
    color: rgba(255,255,255,0.95);
}

/* Responsive design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .legislation-header {
        margin-top: 60px;
    }
    
    .legislation-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .legislation-header .breadcrumb {
        font-size: 12px;
    }
    
    .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 20px;
        margin-right: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    main {
        width: 100%;
        padding-left: 0;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .timeline-link {
        min-width: 80px;
        justify-content: flex-start;
    }
    
    .document-header h1 {
        font-size: 1.8em;
    }
    
    .document-header .document-subtitle {
        font-size: 1em;
    }
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* Compare Page Styles */
.container:has(#compare-page) {
    max-width: 1800px;
}

.container:has(#compare-page) .sidebar {
    max-width: 400px;
}

#compare-page .compare-page {
    margin: 0 auto;
    padding: 20px;
}

#compare-page .version-selector {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#compare-page .version-selector h3 {
    margin: 0 0 20px 0;
    color: #005ea5;
}

#compare-page .compare-form {
    margin: 0;
}

#compare-page .version-inputs {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

#compare-page .version-input {
    flex: 1;
    min-width: 200px;
}

#compare-page .version-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#compare-page .version-input select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

#compare-page .version-input select:focus {
    outline: none;
    border-color: #005ea5;
    box-shadow: 0 0 0 2px rgba(0, 94, 165, 0.25);
}

#compare-page .btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    height: fit-content;
}

#compare-page .btn-primary {
    background: #005ea5;
    color: white;
}

#compare-page .btn-primary:hover {
    background: #004494;
}

#compare-page .comparison-results {
    margin-top: 30px;
}

#compare-page .comparison-results h3 {
    color: #005ea5;
    margin-bottom: 20px;
}

#compare-page .diff-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#compare-page .diff-content {
    padding: 0;
    margin: 0;
}

/* Style the HTML diff output */
#compare-page .diff-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    table-layout: fixed;
}

#compare-page .diff-content th {
    background: #f8f9fa;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    text-align: left;
}

#compare-page .diff-content td {
    padding: 4px 8px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 0;
}

#compare-page .diff-content td[nowrap] {
    white-space: normal !important;
}

#compare-page .diff-content th:nth-child(2),
#compare-page .diff-content th:nth-child(4),
#compare-page .diff-content td:nth-child(3),
#compare-page .diff-content td:nth-child(6) {
    width: auto;
}

#compare-page .diff-content th:nth-child(1),
#compare-page .diff-content th:nth-child(3),
#compare-page .diff-content td:nth-child(1),
#compare-page .diff-content td:nth-child(2),
#compare-page .diff-content td:nth-child(4),
#compare-page .diff-content td:nth-child(5) {
    width: 1rem;
    white-space: nowrap;
}

#compare-page .diff-content .diff_header {
    background: #e9ecef;
    font-weight: bold;
}

#compare-page .diff-content .diff_next {
    background: #f8f9fa;
}

#compare-page .diff-content .diff_add {
    background: #d4edda;
}

#compare-page .diff-content .diff_chg {
    background: #fff3cd;
}

#compare-page .diff-content .diff_sub {
    background: #f8d7da;
}

/* Responsive design for compare page */
@media (max-width: 768px) {
    #compare-page .version-inputs {
        flex-direction: column;
    }
    
    #compare-page .version-input {
        min-width: auto;
    }
    
    #compare-page .diff-content table {
        font-size: 10px;
    }
    
    #compare-page .diff-content th,
    #compare-page .diff-content td {
        padding: 2px 4px;
    }
    
    #compare-page .diff-content th:nth-child(2),
    #compare-page .diff-content th:nth-child(4),
    #compare-page .diff-content td:nth-child(3),
    #compare-page .diff-content td:nth-child(6) {
        width: auto;
    }
    
    #compare-page .diff-content th:nth-child(1),
    #compare-page .diff-content th:nth-child(3),
    #compare-page .diff-content td:nth-child(1),
    #compare-page .diff-content td:nth-child(2),
    #compare-page .diff-content td:nth-child(4),
    #compare-page .diff-content td:nth-child(5) {
        width: 1rem;
        white-space: nowrap;
    }
}

/* Versions Page Styles */
#versions-page .versions-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#versions-page .subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 10px 0 30px 0;
}

#versions-page .versions-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

#versions-page .version-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#versions-page .version-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#versions-page .version-card.current {
    border-color: #005ea5;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

#versions-page .version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#versions-page .version-header h3 {
    margin: 0;
    color: #005ea5;
    font-size: 1.3em;
}

#versions-page .current-badge {
    background: #005ea5;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

#versions-page .status-badge {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}

#versions-page .version-details {
    margin-bottom: 20px;
}

#versions-page .version-date {
    margin-bottom: 10px;
    color: #666;
}

#versions-page .version-description {
    color: #555;
    line-height: 1.5;
}

#versions-page .version-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#versions-page .btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

#versions-page .btn-primary {
    background: #005ea5;
    color: white;
}

#versions-page .btn-primary:hover {
    background: #004494;
}

#versions-page .btn-secondary {
    background: #6c757d;
    color: white;
}

#versions-page .btn-secondary:hover {
    background: #5a6268;
}

#versions-page .no-versions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

#versions-page .no-versions p {
    font-size: 1.2em;
}

/* Responsive design for versions page */
@media (max-width: 768px) {
    #versions-page .version-actions {
        flex-direction: column;
    }
    
    #versions-page .btn {
        text-align: center;
    }
}

/* Version Warning Banner Styles */
.version-warning-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.warning-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.warning-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.warning-link {
    color: #005ea5;
    text-decoration: underline;
    font-weight: 600;
}

.warning-link:hover {
    color: #004494;
    text-decoration: none;
}

.warning-dismiss {
    background: none;
    border: none;
    color: #856404;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.warning-dismiss:hover {
    background-color: rgba(133, 100, 4, 0.1);
}

/* Responsive design for warning banner */
@media (max-width: 768px) {
    .warning-content {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .warning-text {
        font-size: 13px;
    }
    
    .warning-dismiss {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}
