/* Procedural Enclosure Toolkit - Minimal Custom Styles */
/* Most styling is handled by Tailwind CSS utility classes */

/* ==================================================================
   USWDS Public Sans Font (Self-Hosted)
   Official government typeface from https://github.com/uswds/public-sans
   font-display: swap ensures text is visible immediately with fallback fonts
   ================================================================== */

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/public-sans/PublicSans-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/public-sans/PublicSans-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/public-sans/PublicSans-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/public-sans/PublicSans-Bold.woff2') format('woff2');
}

/* Screen reader only utility (fallback if Tailwind doesn't load) */
.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;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* CSS Variables - USWDS Design System */
:root {
    /* USWDS Primary Colors */
    --uswds-blue: #005EA2;           /* USWDS Primary Blue */
    --uswds-blue-dark: #0050d8;      /* USWDS Blue Hover */
    --uswds-blue-darker: #1a4480;    /* USWDS Dark Blue */
    --uswds-blue-light: #73b3e7;     /* USWDS Light Blue */

    /* Core colors (USWDS-aligned) */
    --primary-color: var(--uswds-blue);
    --background: #ffffff;
    --foreground: #1b1b1b;
    --muted: #f0f0f0;
    --border: #dfe1e2;

    /* USWDS Spacing Scale (8px baseline grid) */
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.5rem;    /* 24px - increased from 20px */
    --spacing-6: 2rem;      /* 32px - increased from 24px */
    --spacing-7: 2.5rem;    /* 40px - increased from 32px */

    /* USWDS Shadow System (more pronounced) */
    --shadow-1: 0 1px 4px 0 rgba(0, 0, 0, 0.12);
    --shadow-2: 0 4px 8px 0 rgba(0, 0, 0, 0.14);
    --shadow-3: 0 8px 16px 0 rgba(0, 0, 0, 0.16);
    --shadow-4: 0 12px 24px 0 rgba(0, 0, 0, 0.18);
    --shadow-5: 0 16px 40px 0 rgba(0, 0, 0, 0.2);

    /* Legacy shadow names (keep for compatibility) */
    --shadow-sm: var(--shadow-1);
    --shadow-base: var(--shadow-2);
    --shadow-md: var(--shadow-2);
    --shadow-lg: var(--shadow-3);
    --shadow-xl: var(--shadow-4);

    /* USWDS Base Colors */
    --color-base-darkest: #1b1b1b;
    --color-base-darker: #454545;
    --color-base-dark: #5b5b5b;
    --color-base: #71767a;
    --color-base-light: #a9aeb1;
    --color-base-lighter: #dfe1e2;
    --color-base-lightest: #f0f0f0;

    /* USWDS Focus Colors */
    --uswds-focus-blue: #2491ff;
    --uswds-focus-yellow: #ffbe2e;

    /* Federal design tokens */
    --ring-color: rgba(0, 94, 162, 0.3);  /* USWDS blue with transparency */
}

/* US Government-style banner (open source project) */
.gov-banner {
    background-color: #f0f0f0;
    border-bottom: 1px solid #dcdee0;
    font-size: 0.8125rem;
    box-shadow: var(--shadow-sm);
}

.gov-banner-flag {
    width: 1rem;
    height: auto;
    flex-shrink: 0;
}

.gov-banner-text {
    font-weight: 600;
    color: #1b1b1b;
    line-height: 1.3;
    margin: 0;
}

/* Hero section with minimal, clean styling */
#hero {
    background-color: #f9fafb;
}

#hero p {
    color: #374151;
}

/* Legal Foundation disclosure/details element */
.legal-foundation-disclosure[open] .disclosure-arrow {
    transform: rotate(90deg);
}

.legal-foundation-disclosure summary::-webkit-details-marker {
    display: none;
}

.legal-foundation-disclosure summary {
    list-style: none;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Container max-width for focused, information-dense layout */
/* Configured via Tailwind config to force 1100px across all breakpoints */

/* Typography enhancements - USWDS Public Sans for UI */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h2 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

h3 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Helpful site text styling - distinguishes instructional text from legal templates */
.helpful-text {
    color: #374151 !important; /* neutral gray for clean, professional appearance */
}

/* Section spacing improvements */
section {
    position: relative;
}

section + section {
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

/* USWDS Focus Indicators - Thick 4px outlines for accessibility */
*:focus-visible {
    outline: 4px solid var(--uswds-focus-blue);
    outline-offset: 2px;
    box-shadow: none;
}

/* Selection color */
::selection {
    background-color: #b8860b;
    color: #ffffff;
}

/* Smooth transitions for interactive elements */
a,
button,
select {
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button enhancements */
button {
    box-shadow: var(--shadow-sm);
}

button:hover {
    box-shadow: var(--shadow-base);
}

button:active {
    box-shadow: var(--shadow-sm);
}

/* USWDS Button Styles - Government Design System */
.uswds-button {
    background-color: var(--uswds-blue) !important;
    color: #ffffff !important;
    font-family: 'Public Sans', -apple-system, sans-serif !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.25rem !important;
    box-shadow: var(--shadow-2) !important;
    border: none !important;
    transition: all 150ms ease-in-out !important;
}

.uswds-button:hover {
    background-color: var(--uswds-blue-dark) !important;
    box-shadow: var(--shadow-3) !important;
    transform: translateY(-1px);
}

.uswds-button:active {
    background-color: var(--uswds-blue-darker) !important;
    box-shadow: var(--shadow-1) !important;
    transform: translateY(0);
}

.uswds-button:focus-visible {
    outline: 4px solid var(--uswds-focus-blue) !important;
    outline-offset: 4px !important;
}

/* Custom select dropdown chevron - maintains native accessibility */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1.5 4.5h9L6 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

select:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-base);
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23005EA2' d='M6 9L1.5 4.5h9L6 9z'/%3E%3C/svg%3E");
    border-color: var(--uswds-blue);
    box-shadow: 0 0 0 3px var(--ring-color);
}

/* Link enhancements */
a {
    position: relative;
}

/* Code blocks styling */
code {
    font-family: Monaco, 'Courier New', monospace;
    font-size: 0.875em;
    padding: 0.125rem 0.25rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

/* Table utility classes for dense information display */
.table-dense {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow-base);
}

.table-dense th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.8125rem;
    border-bottom: 2px solid #d1d5db;
    background: linear-gradient(180deg, #fafbfc 0%, #f9fafb 100%);
    color: #374151;
    letter-spacing: 0.025em;
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.05);
}

.table-dense td {
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.table-dense tbody tr {
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.table-dense tbody tr:hover {
    background-color: #f9fafb;
    border-left-color: var(--uswds-blue);
    box-shadow: inset 3px 0 0 0 var(--uswds-blue);
}

.table-dense tbody tr:last-child td {
    border-bottom: none;
}

/* Badge styles for tags - WCAG 2.0 AA compliant, informational only */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.badge-ny {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: rgba(30, 64, 175, 0.3);
}

.badge-federal {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #ffffff;
    border-color: rgba(51, 65, 85, 0.4);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

/* US Flag image for federal badges - following US.gov design pattern */
.badge-flag-img {
    width: 0.875rem;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.badge-emergency {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #ffffff;
    border-color: rgba(185, 28, 28, 0.3);
}

.badge-urgent {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: #ffffff;
    border-color: rgba(194, 65, 12, 0.3);
}

.badge-standard {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: #ffffff;
    border-color: rgba(75, 85, 99, 0.3);
}

/* Card view grid layout */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Template card styling - Cornell Law aesthetic */
.template-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.template-card:hover {
    background-color: #f9fafb;
    border-color: var(--uswds-blue);
    box-shadow: var(--shadow-lg);
}

.template-card-header {
    flex: 1;
    margin-bottom: 1rem;
}

.template-card-title {
    font-family: Georgia, Cambria, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.template-card-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.template-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.template-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.template-card-link {
    font-size: 0.875rem;
    color: var(--uswds-blue);
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease-in-out;
}

.template-card-link:hover {
    color: var(--uswds-blue-darker);
    text-decoration: underline;
}

/* View toggle animations */
.view-transition {
    animation: fade-in 200ms ease-out;
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* Template Viewer Sheet Styles - Minimal, Maximum Content Area */
#template-sheet .prose {
    font-family: Georgia, Cambria, 'Times New Roman', serif;
    color: #1a1a1a;
    line-height: 1.6;
    max-width: 100%;
    font-size: 0.9375rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Minimal padding for maximum vertical space */
    padding: 1rem !important;
}

#template-sheet .prose h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    color: #1f2937;
}

#template-sheet .prose h2 {
    font-size: 1.0625rem;
    font-weight: 500;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    color: #374151;
}

#template-sheet .prose h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #4b5563;
}

#template-sheet .prose p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#template-sheet .prose ul,
#template-sheet .prose ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

#template-sheet .prose li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

#template-sheet .prose hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
    border-top: 1px solid #f3f4f6;
    opacity: 0.6;
}

#template-sheet .prose strong {
    font-weight: 500;
    color: #374151;
}

/* Legal document header - tight, professional column layout */
#template-sheet .prose > p:first-of-type {
    border-top: 3px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

#template-sheet .prose > p:first-of-type strong {
    display: block;
    margin-bottom: 0.125rem;
    line-height: 1.2;
    font-weight: 500;
    color: #1f2937;
    font-size: 0.9375rem;
}

/* Ultra-clean placeholders in header - no decoration */
#template-sheet .prose > p:first-of-type .template-placeholder {
    border-bottom: none;
    background-color: transparent;
    color: #4b5563;
    font-weight: 400;
    padding: 0;
}

#template-sheet .prose em {
    font-style: italic;
}

#template-sheet .prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: Monaco, 'Courier New', monospace;
    color: #b8860b;
    font-weight: 600;
}

/* Template placeholder highlighting - subtle, polished inline style */
.template-placeholder {
    background-color: #fffbeb;  /* Very pale yellow - barely visible */
    color: #92400e;             /* Amber-900 for subtle emphasis */
    padding: 0.0625rem 0.25rem;
    border-radius: 0.1875rem;
    font-weight: 500;
    border: none;
    border-bottom: 1.5px solid #fbbf24; /* Amber-400 subtle underline */
    font-family: Monaco, 'Courier New', monospace;
    font-size: 0.875em;
    white-space: nowrap;
    font-style: normal;
}

/* Citation numbers for long placeholders - subtle, traditional footnote styling */
.template-citation {
    display: inline;
    color: var(--uswds-blue);  /* USWDS primary blue for links/references */
    font-weight: 600;
    font-family: Georgia, Cambria, 'Times New Roman', serif;
    font-size: 0.8125rem;
    text-decoration: none;
    vertical-align: super;
    line-height: 0;
    position: relative;
    top: -0.25em;
}

/* Footnotes section at bottom of template - clean, professional styling */
.template-footnotes {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-top: 2px solid #e5e7eb;
    border-radius: 0.25rem;
}

.template-footnotes-title {
    font-family: 'Public Sans', -apple-system, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.template-footnotes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-footnote-item {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #4b5563;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.template-footnote-number {
    flex-shrink: 0;
    font-weight: 600;
    font-family: Monaco, 'Courier New', monospace;
    color: #936900;
    min-width: 2rem;
}

.template-footnote-content {
    font-family: Monaco, 'Courier New', monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #1f2937;
    flex: 1;
}

#template-sheet .prose pre {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
}

#template-sheet .prose pre code {
    background-color: transparent;
    padding: 0;
    color: #1a1a1a;
    font-weight: 400;
}

#template-sheet .prose blockquote {
    border-left: 3px solid #b8860b;
    padding-left: 0.75rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6b7280;
    font-size: 0.9em;
}

#template-sheet .prose a {
    color: var(--uswds-blue);
    text-decoration: underline;
}

#template-sheet .prose a:hover {
    color: var(--uswds-blue-darker);
}

/* Table styling for template content */
#template-sheet .prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

#template-sheet .prose table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.8125rem;
}

#template-sheet .prose table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

/* Modal backdrop enhancement */
#search-modal,
#template-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.6);
}

/* Search modal elevation */
#search-modal > div {
    box-shadow: var(--shadow-xl);
}

/* Template sheet elevation - USWDS shadow-5 for maximum depth */
#template-sheet {
    box-shadow: var(--shadow-5), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Custom Scrollbar Styling - Refined, Government-Grade */
#template-modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--color-base-light) var(--color-base-lightest);
}

#template-modal-content::-webkit-scrollbar {
    width: 8px;
}

#template-modal-content::-webkit-scrollbar-track {
    background: var(--color-base-lightest);
    border-left: 1px solid var(--border);
}

#template-modal-content::-webkit-scrollbar-thumb {
    background: var(--color-base-light);
    border-radius: 4px;
    border: 2px solid var(--color-base-lightest);
}

#template-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-base);
}

/* Minimal Sheet Header */
#template-sheet > div:first-child {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.75rem !important;
}

/* Close button - minimal, no animations */
#template-modal-close {
    transition: none !important;
}

/* Apply Public Sans to UI Elements */
button,
label,
select,
.gov-banner-text {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Modal and Sheet animations */
@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sheet-enter {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes backdrop-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animations with professional timing */
#search-modal:not(.hidden) {
    animation: backdrop-enter 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

#search-modal:not(.hidden) > div {
    animation: modal-enter 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

#template-modal:not(.hidden) {
    animation: backdrop-enter 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

#template-modal:not(.hidden) #template-sheet {
    animation: sheet-enter 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Guide and resource cards enhancement */
section a[class*="block p-4"] {
    box-shadow: var(--shadow-sm);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

section a[class*="block p-4"]:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

/* Footer elevation and styling */
footer {
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Footer link accessibility - WCAG 2.1 AA compliant focus indicators */
.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link:focus {
    outline: 4px solid var(--uswds-focus-blue);
    outline-offset: 4px;
    box-shadow: none;
    border-radius: 2px;
}

.footer-link:focus-visible {
    outline: 4px solid var(--uswds-focus-blue);
    outline-offset: 4px;
    box-shadow: none;
    border-radius: 2px;
}

/* Ensure sufficient color contrast for footer text */
footer h3 {
    color: #1a1a1a;
}

footer p {
    color: rgba(26, 26, 26, 0.8);
}

footer a {
    color: rgba(26, 26, 26, 0.8);
}

footer a:hover {
    color: #1a1a1a;
    text-decoration-color: #1a1a1a;
}

/* Mobile menu */
#mobile-menu {
    display: none;
}

#mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #search-trigger,
    #search-modal,
    #mobile-menu-toggle,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.875em;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    * {
        border-color: #000 !important;
    }

    a {
        text-decoration: underline;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Dark mode preparation (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Commented out for now - keep design light for legal aesthetic
    :root {
        --background: #1a1a1a;
        --foreground: #ffffff;
        --muted: #2a2a2a;
        --border: #3a3a3a;
    }
    */
}
