/* inter-300 - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2');
}

/* inter-400 (regular) - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

/* inter-600 - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* cinzel-600 - latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cinzel-v26-latin-600.woff2') format('woff2');
}

/* cinzel-700 - latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cinzel-v26-latin-700.woff2') format('woff2');
}
:root {
    --bg-dark: #070c18;
    --bg-card: #0e172a;
    --bg-elevated: #152238;
    --primary-blue: #1e304b;
    --accent-blue: #4a6b8c;
    --accent-gold: #d4af37;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --heading-color: #ffffff;
    --hero-bg: radial-gradient(circle at center, #152238 0%, #070c18 70%);
    --nav-bg: rgba(7, 12, 24, 0.95);
    --footer-bg: #04070e;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    --primary-blue: #cbd5e1;
    --accent-blue: #3b82f6;
    --accent-gold: #b45309;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --heading-color: #0f172a;
    --hero-bg: radial-gradient(circle at center, #e2e8f0 0%, #f8fafc 70%);
    --nav-bg: rgba(248, 250, 252, 0.95);
    --footer-bg: #f1f5f9;
}
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content { 
    flex: 1; 
    padding: 40px 15px; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

h1, h2, h3, .brand-title {
    font-family: var(--font-heading);
    color: var(--heading-color);
}

a { 
    color: var(--accent-blue); 
    text-decoration: none; 
    transition: color var(--transition-speed); 
}

a:hover { 
    color: var(--accent-gold); 
}

/* ==========================================
   Language Selector Dropdown
   ========================================== */

.lang-selector-container {
    position: relative;
    display: inline-block;
    list-style: none;
}

.custom-dropdown {
    position: relative;
}

/* Dropdown Trigger Button */
.dropdown-trigger {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition-speed, 0.2s) ease, color var(--transition-speed, 0.2s) ease, background-color var(--transition-speed, 0.2s) ease;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus-visible {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: var(--bg-elevated);
    outline: none;
}

/* Dropdown Menu (Hidden by default) */
.custom-dropdown .dropdown-menu {
    display: none !important;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Revealed Menu State */
.custom-dropdown.open .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
}

/* Dropdown Menu Items */
.dropdown-item {
    padding: 8px 16px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.88rem;
    transition: background var(--transition-speed, 0.15s) ease, color var(--transition-speed, 0.15s) ease;
}

.dropdown-item:hover {
    background-color: rgba(238, 172, 0, 0.1);
    color: var(--accent-gold);
}

.dropdown-item.active {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ==========================================
   Theme Toggle Button
   ========================================== */

.theme-toggle-container {
    position: relative;
    display: inline-block;
    list-style: none;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed, 0.2s) ease, color var(--transition-speed, 0.2s) ease, background-color var(--transition-speed, 0.2s) ease;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: var(--bg-elevated);
    outline: none;
}

/* ==========================================
   Light-Mode Image Adaptations
   ========================================== */

[data-theme="light"] .hero-img-full {
    background-color: var(--bg-card); /* Gives a clean solid backdrop if the logo has transparent edges */
    border: 2px solid var(--accent-blue); /* Keeps the brand border crisp */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Softer, natural shadow for light backgrounds */
}

[data-theme="light"] .reference-img-wrapper {
    background-color: var(--bg-card); /* Gives the wrapper a clean card background */
    border: 1px solid var(--border-color); /* Crisp boundary against the light page */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08); /* Soft professional elevation */
}

[data-theme="light"] .reference-img-wrapper img {
    mix-blend-mode: multiply; /* Helps dark pixels blend smoothly with the card background */
    opacity: 0.85;
    transition: opacity var(--transition-speed);
}

/*[data-theme="light"] .reference-img-wrapper img:hover {
    opacity: 1;
}*/

[data-theme="light"] .reference-card:hover img {
    opacity: 1;
}

/* Mobile Alignment Override */
@media (max-width: 768px) {
    .dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0; 
    text-align: center; 
    margin-top: auto;
}

.footer-logo { 
    max-width: 80px; 
    border-radius: 50%; 
    margin-bottom: 10px; 
}

.footer-copy { 
    color: var(--text-muted); 
    font-size: 0.8rem; 
}

/* ==========================================
   Smooth Theme Transitions
   ========================================== */
body, 
.navbar, 
.footer, 
.dropdown-trigger, 
.theme-toggle-btn, 
.form-group input, 
.form-group textarea, 
.custom-dropdown .dropdown-menu,
.reference-img-wrapper,
.hero-img-full {
    transition: background-color 0.4s ease, 
                color 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* ==========================================
   Butter-Smooth Page Transitions
   ========================================== */

@keyframes smoothEntrance {
    0% {
        opacity: 0;
        transform: translateY(10px); /* Slightly deeper starting offset */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    /* 0.45s duration with a high-end deceleration curve */
    animation: smoothEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.navbar {
    background: var(--nav-bg); /* Updated */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 70px; 
}

.brand-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.nav-logo { 
    height: 45px; 
    width: 45px; 
    border-radius: 50%; 
    border: 1px solid var(--accent-blue); 
    object-fit: cover; 
}

.brand-title { 
    font-size: 1.3rem; 
    font-weight: 700; 
}

.nav-menu > ul { 
    display: flex; 
    list-style: none; 
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px;
    bottom: 0; 
    left: 0; 
    background-color: var(--accent-gold);
    transition: width var(--transition-speed);
}

.nav-menu a:hover::after, 
.nav-menu a.active::after { 
    width: 100%; 
}

.nav-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 5px; 
}

.hamburger {
    display: block; 
    width: 25px; 
    height: 2px; 
    background: var(--text-main);
    position: relative; 
    transition: background var(--transition-speed);
}

.hamburger::before, 
.hamburger::after {
    content: ''; 
    position: absolute; 
    width: 25px; 
    height: 2px;
    background: var(--text-main); 
    transition: transform var(--transition-speed);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Responsive Navigation */
/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-toggle { 
        display: block; 
    }

    .nav-menu {
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%;
        background: var(--bg-dark); 
        border-bottom: 1px solid var(--border-color);
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Expand max-height to fit the open dropdown items seamlessly */
    .nav-menu.active { 
        max-height: 500px; 
        overflow: visible; 
    }

    .nav-menu > ul { 
        flex-direction: column; 
        padding: 20px 20px 30px; 
        align-items: center; 
        gap: 18px;
    }

    /* Mobile Dropdown Positioning */
    .lang-selector-container {
        position: relative;
        margin-top: 5px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .custom-dropdown .dropdown-menu {
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    }
}
.hero {
    padding: 60px 0;
    text-align: center;
    background: var(--hero-bg); /* Updated */
}

.hero-img-full {
    max-width: 320px;
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(74, 107, 140, 0.3);
    border: 2px solid var(--accent-blue);
    margin-bottom: 20px;
}
/* Card Base Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-card {
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.home-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

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

.card h3 { 
    margin-bottom: 12px; 
}

/* Forms */
.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 6px; 
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-main);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn {
    background: var(--primary-blue); 
    color: var(--text-main);
    padding: 12px 25px;
    border: 1px solid var(--accent-blue); 
    border-radius: 5px; 
    cursor: pointer;
    font-weight: 600;
}

.btn:hover { 
    background: var(--accent-blue); 
    color: #fff;
}

/* ==========================================
   File Input Styling (Dark & Light Mode)
   ========================================== */

input[type="file"] {
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Style the browse button portion natively */
input[type="file"]::file-selector-button {
    background-color: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    margin-right: 12px;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
}

/* Hover and active states matching your site's gold accent */
input[type="file"]::file-selector-button:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Alerts */
.alert { 
    padding: 15px; 
    border-radius: 5px; 
    margin-bottom: 20px; 
}

.alert-success { 
    background: #14532d; 
    color: #bbf7d0; 
}

.alert-error { 
    background: #7f1d1d; 
    color: #fecaca; 
}

/* Reference Cards Layout */
.reference-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.reference-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
    padding: 0;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.reference-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

.reference-img-wrapper {
    width: 100%;
    height: 200px;
    border-top-left-radius: 7px; 
    border-top-right-radius: 7px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.reference-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-color: var(--bg-card);
}

.reference-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.reference-body h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.reference-body p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.reference-link {
    color: var(--accent-gold);
    font-weight: 600;
}

.reference-note {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(238, 172, 0, 0.08);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 4px 4px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reference category filter */
.reference-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -10px 0 30px;
}

.filter-chip {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: color var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
}

.filter-chip:hover {
    color: var(--accent-gold);
    border-color: var(--accent-blue);
}

.filter-chip[aria-current="true"] {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.reference-card[hidden] { display: none; }

.reference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.reference-tags li {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Instruction Lists & Keyboard Badges */
.instructions-list {
    margin-left: 20px;
    line-height: 1.8;
}

.instructions-list li {
    margin-bottom: 8px;
}

kbd {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 0 var(--border-color);
    color: var(--text-main);
    display: inline-block;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 2px 6px;
}

/* Custom Spec Tables for DxDiag Output */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.spec-table th,
.spec-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.95rem;
}

.spec-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

.spec-label {
    width: 220px;
    color: var(--text-muted);
    font-weight: 600;
}

.spec-val {
    color: var(--text-main);
}

.spec-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Sub-cards for Individual Storage Drives */
.drive-card {
    background: var(--bg-elevated, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px 20px;
    transition: border-color var(--transition-speed);
}

.drive-card:hover {
    border-color: var(--accent-blue);
}

.drive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.drive-letter {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.drive-model {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .reference-card {
        flex-direction: column;
        align-items: stretch;
    }

    .reference-img-wrapper {
        /*flex: 1 1 100%;*/
        max-width: 100%;
        overflow: hidden;
    }

    .reference-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 650px) {
    .spec-table th, 
    .spec-table td {
        display: block;
        width: 100%;
    }
    .spec-label {
        border-bottom: none;
        padding-bottom: 2px;
    }
    .drive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Captcha Container Alignment */
.captcha-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Image Fit */
.captcha-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
    display: block;
    margin: 0;
}

/* Square Icon Refresh Button */
.btn-icon {
    height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    vertical-align: middle;
}

:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

.brand-logo { color: var(--heading-color); }
.brand-logo:hover { color: var(--accent-gold); }

.page-title { font-size: 2rem; margin-bottom: 8px; }
.page-lead { color: var(--text-muted); margin-bottom: 30px; }
.card-title { font-size: 1.25rem; margin-bottom: 12px; }
.section-title { margin: 20px 0 10px; color: var(--accent-gold); font-family: var(--font-heading); font-size: 1.05rem; }
.subsection-title { margin: 18px 0 10px; color: var(--accent-gold); font-size: 1rem; font-family: var(--font-body); }
.text-muted { color: var(--text-muted); }
.divider { border: 0; border-top: 1px solid var(--border-color); margin: 25px 0; }
.spaced { margin-top: 20px; }
.card-narrow { max-width: 650px; }
.reference-card { padding: 0; overflow: hidden; }
.reference-footer { margin-top: auto; }
.reference-note { margin: 20px 0; }
.reference-body .reference-note { margin: auto 0 12px; }

.dxdiag-results { margin-top: 30px; display: grid; gap: 25px; }
.drive-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.drive-card .spec-table { margin-top: 0; }
.spec-table th.spec-label { background: none; font-family: var(--font-body); color: var(--text-muted); font-weight: 600; }
.spec-highlight { color: var(--accent-gold); font-weight: 600; }

.error-card { text-align: center; padding: 50px 20px; }
.error-card .error-code { font-family: var(--font-heading); font-size: 3rem; color: var(--heading-color); line-height: 1; margin-bottom: 10px; }
.error-card .btn { display: inline-block; margin-top: 25px; }

/* Language dropdown items are real links now (work without JavaScript) */
.lang-globe { flex-shrink: 0; }
.custom-dropdown .dropdown-menu a.dropdown-item { white-space: nowrap; }
.custom-dropdown .dropdown-menu a.dropdown-item {
    display: block;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.88rem;
    padding: 8px 16px;
}
.custom-dropdown .dropdown-menu a.dropdown-item::after { display: none; }
.custom-dropdown .dropdown-menu li { list-style: none; }

/* Forms */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: #ef4444; }
.field-error { color: #f87171; font-size: 0.85rem; margin-top: 6px; }
[data-theme="light"] .field-error { color: #b91c1c; }
.captcha-group input { margin-top: 10px; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: wait; }
.contact-form .btn[type="submit"] { margin-top: 15px; }

/* Captcha is rendered dark; invert it for the light theme */
[data-theme="light"] .captcha-img { filter: invert(1) hue-rotate(180deg); }

/* Honeypot: off-screen rather than display:none (some bots skip hidden inputs) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Accessibility */
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 2000;
    background: var(--accent-gold); color: #000; padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { top: 12px; color: #000; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
.alert-success { border-left: 4px solid #22c55e; }
.alert-error { border-left: 4px solid #ef4444; }
[data-theme="light"] .alert-success { background: #dcfce7; color: #14532d; }
[data-theme="light"] .alert-error { background: #fee2e2; color: #7f1d1d; }

@media (max-width: 768px) {
    .brand-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Hamburger morphs into a close icon while the menu is open */
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Maintenance mode ---------- */
.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-block: 2rem; }
.maintenance-logo { display: block; width: 96px; height: 96px; margin: 0 auto 1.25rem; object-fit: contain; }
.maintenance-banner { background: #b45309; color: #fff; text-align: center; font-size: .875rem; line-height: 1.4; padding: .5rem 1rem; }
.maintenance-banner a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: .5rem; }

/* ---------- DxDiag share links ---------- */
.dxdiag-share-option { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1rem; color: var(--text-muted); font-size: .92rem; line-height: 1.5; cursor: pointer; }
.dxdiag-share-option input { margin-top: .25rem; width: 1rem; height: 1rem; flex: none; accent-color: var(--accent-gold); }
.dxdiag-share-box, .dxdiag-shared { border-left: 4px solid var(--accent-gold); }
.dxdiag-share-box p, .dxdiag-shared p { margin-top: 0; }
.dxdiag-share-link { display: flex; gap: .6rem; flex-wrap: wrap; margin: .75rem 0; }
.dxdiag-share-link input { flex: 1 1 18rem; min-width: 0; padding: 10px 12px; background: var(--bg-elevated); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.dxdiag-share-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.dxdiag-share-actions form { margin: 0; }
.btn.btn-secondary { background: transparent; }
.btn-link { background: none; border: 0; padding: 0; color: var(--text-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.btn-link:hover { color: var(--text-main); }
.dxdiag-share-delete { margin: 0; }

/* ---------- Draft preview ---------- */
.preview-banner { background: #1d4ed8; color: #fff; text-align: center; font-size: .875rem; line-height: 1.4; padding: .5rem 1rem; }
.preview-banner a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: .75rem; }

/* Short link preview (/code+) */
.shortlink-preview-target { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; font-size: 1.05rem; margin: 1rem auto; max-width: 40rem; }
.shortlink-preview-card { display: grid; gap: .5rem; justify-items: center; max-width: 32rem; margin: 1.25rem auto; }
.shortlink-preview-card img { max-width: 100%; height: auto; border-radius: 8px; }
.shortlink-preview-card p { margin: 0; }
