/* Lake of the Woods Community Website - Complete Styles */

/* ============================================================================
   DESIGN TOKENS & ROOT VARIABLES
   ============================================================================ */

:root {
    --teal: #00897B;
    --teal-dark: #00695C;
    --coral: #FF7043;
    --coral-dark: #E64A19;
    --purple: #7E57C2;
    --purple-dark: #5E35B1;
    --gold: #FFB300;
    --gold-dark: #FF8F00;
    --sky: #29B6F6;
    --sky-dark: #0288D1;
    --rose: #EC407A;
    --green: #66BB6A;
    --slate: #37474F;
    --light-bg: #FAFAFA;
    --card-bg: #FFFFFF;
    --text: #263238;
    --text-light: #546E7A;
    --border: #E0E0E0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--light-bg);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--teal-dark);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

section:first-of-type {
    border-top: none;
}

/* ============================================================================
   LAYOUT: SIDEBAR STRUCTURE
   ============================================================================ */

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-logo-emoji {
    font-size: 1.75rem;
}

.sidebar-logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal);
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-item:hover {
    background-color: rgba(0, 137, 123, 0.05);
    color: var(--teal);
}

.nav-item.active {
    background-color: rgba(0, 137, 123, 0.1);
    color: var(--teal);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-contact-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sidebar-contact a {
    font-size: 0.85rem;
    word-break: break-word;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    cursor: pointer;
}

body.sidebar-open .sidebar-backdrop {
    display: block;
}

/* ============================================================================
   HAMBURGER MENU BUTTON
   ============================================================================ */

.hamburger, .hamburger-menu {
    display: none;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 300;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover, .hamburger-menu:hover {
    background-color: rgba(0, 137, 123, 0.1);
    color: var(--teal);
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

.main-content {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ============================================================================
   SECTIONS & HEADERS
   ============================================================================ */

.welcome-section,
.connected-section,
.content-section,
.share-section {
    /* Basic section styling */
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* ============================================================================
   CARDS & CARD GRIDS
   ============================================================================ */

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Card color top borders - both naming conventions */
.card.coral-top,
.card.card-coral-top {
    border-top-color: var(--coral);
}

.card.teal-top,
.card.card-teal-top {
    border-top-color: var(--teal);
}

.card.purple-top,
.card.card-purple-top {
    border-top-color: var(--purple);
}

.card.gold-top,
.card.card-gold-top {
    border-top-color: var(--gold);
}

.card.sky-top,
.card.card-sky-top {
    border-top-color: var(--sky);
}

.card.rose-top,
.card.card-rose-top {
    border-top-color: var(--rose);
}

.card.green-top,
.card.card-green-top {
    border-top-color: var(--green);
}

.cards,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.ref {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--purple);
    display: block;
    margin-top: 1rem;
}

.placeholder-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.placeholder-card p {
    margin-bottom: 0;
}

/* ============================================================================
   QUICK LINKS (HOMEPAGE)
   ============================================================================ */

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.quick-link-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--border);
    display: flex;
    flex-direction: column;
}

.quick-link-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.quick-link-card.teal {
    border-left-color: var(--teal);
}

.quick-link-card.purple {
    border-left-color: var(--purple);
}

.quick-link-card.gold {
    border-left-color: var(--gold);
}

.quick-link-card.sky {
    border-left-color: var(--sky);
}

.quick-link-card.coral {
    border-left-color: var(--coral);
}

.quick-link-card.green {
    border-left-color: var(--green);
}

.quick-link-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.quick-link-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-teal:hover {
    background-color: var(--teal-dark);
}

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

.btn-coral:hover {
    background-color: var(--coral-dark);
}

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

.btn-purple:hover {
    background-color: var(--purple-dark);
}

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

.btn-gold:hover {
    background-color: var(--gold-dark);
}

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

.btn-sky:hover {
    background-color: var(--sky-dark);
}

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

.btn-primary:hover {
    background-color: var(--teal-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
}

.btn-secondary:hover {
    background-color: rgba(0, 137, 123, 0.1);
    border-color: var(--teal-dark);
    color: var(--teal-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: rgba(38, 50, 56, 0.05);
    border-color: var(--text);
    color: var(--text);
}

.btn.copied {
    opacity: 0.8;
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--border);
    margin: 1.5rem 0;
}

.alert strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.alert p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

.alert-coral {
    background-color: rgba(255, 112, 67, 0.1);
    border-left-color: var(--coral);
    color: var(--text);
}

.alert-teal {
    background-color: rgba(0, 137, 123, 0.1);
    border-left-color: var(--teal);
    color: var(--text);
}

.alert-gold {
    background-color: rgba(255, 179, 0, 0.1);
    border-left-color: var(--gold);
    color: var(--text);
}

.alert-purple {
    background-color: rgba(126, 87, 194, 0.1);
    border-left-color: var(--purple);
    color: var(--text);
}

/* ============================================================================
   ACCORDION / CONFLICTS
   ============================================================================ */

.conflict-item {
    background-color: var(--card-bg);
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.conflict-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.conflict-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.conflict-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--coral);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.conflict-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
}

.conflict-arrow {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.conflict-item.open .conflict-arrow {
    transform: rotate(180deg);
}

.conflict-body {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
}

.conflict-item.open .conflict-body {
    display: block;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.compare-box {
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.compare-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-box p {
    margin: 0;
    line-height: 1.5;
}

.compare-1984 {
    background-color: rgba(102, 187, 106, 0.1);
    border-left: 3px solid var(--green);
}

.compare-2026 {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #F44336;
}

.conflict-ref {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================================================
   TABLES
   ============================================================================ */

.download-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.download-table thead {
    background-color: var(--slate);
    color: white;
}

.download-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.download-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.download-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.download-table tbody tr:hover {
    background-color: rgba(0, 137, 123, 0.05);
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin: 0.25rem 0;
}

.badge-founding {
    background-color: var(--gold);
}

.badge-public-record {
    background-color: var(--sky);
}

.badge-proposed {
    background-color: var(--coral);
}

.badge-analysis {
    background-color: var(--purple);
}

/* ============================================================================
   TIMELINE
   ============================================================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--teal);
    border: 3px solid var(--light-bg);
    z-index: 2;
}

.timeline-item:nth-child(3) .timeline-dot,
.timeline-item:nth-child(6) .timeline-dot {
    background-color: var(--coral);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.timeline-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.timeline-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================================================
   VIDEO & MEDIA
   ============================================================================ */

.video-container {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 1.5rem;
}

/* ============================================================================
   SURVEY BOXES
   ============================================================================ */

.survey-box {
    background: linear-gradient(135deg, var(--purple) 0%, var(--sky) 100%);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin: 1.5rem 0;
}

.survey-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.survey-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================================
   SHARE & QR SECTIONS
   ============================================================================ */

.share-section {
    /* Basic section styling */
}

.share-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.share-link {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.share-link input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    background-color: var(--card-bg);
    color: var(--text);
}

.share-link input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.2);
}

.qr-section {
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

/* ============================================================================
   SUB-NAVIGATION (HOA PAGE)
   ============================================================================ */

.sub-nav {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 99;
}

.sub-nav-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sub-nav-inner::-webkit-scrollbar {
    display: none;
}

.sub-nav a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sub-nav a:hover {
    color: var(--teal-dark);
    border-bottom-color: var(--teal);
}

.sub-nav a.active {
    color: var(--teal-dark);
    border-bottom-color: var(--teal);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================================
   GALLERY
   ============================================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ============================================================================
   CALENDAR
   ============================================================================ */

.calendar-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.calendar-container iframe {
    width: 100%;
    display: block;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: var(--slate);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.3rem;
}

footer a {
    color: white;
    text-decoration: underline;
}

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

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.teal {
    color: var(--teal);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
        max-height: 100vh;
        overflow-y: auto;
        pointer-events: none;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        pointer-events: auto;
    }

    .hamburger, .hamburger-menu {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    .cards,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .share-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .compare-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .section-header {
        gap: 0.75rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .conflict-header {
        padding: 1rem;
    }

    .conflict-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .conflict-header h3 {
        font-size: 1rem;
    }

    .conflict-body {
        padding: 0 1rem 1rem;
    }

    .sub-nav {
        padding: 0 0.5rem;
    }

    .sub-nav a {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .alert {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }

    .ref {
        font-size: 0.8rem;
    }

    .quick-link-emoji {
        font-size: 2rem;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hamburger, .hamburger-menu {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .page-header {
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 0.95rem; }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .share-link {
        flex-direction: column;
    }

    .share-link button {
        width: 100%;
    }

    .cards,
    .cards-grid {
        gap: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .conflict-header {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .conflict-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
