:root {
    /* Palette invariata (richiesta utente: la palette va bene) */
    --brand: #1d4ed8;
    --brand-dark: #1e3a8a;
    --brand-soft: #dbeafe;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --border-soft: #e5e7eb;
    --surface: #ffffff;
    --surface-muted: #f3f4f6;
    --surface-glass: rgba(255,255,255,.95);
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;
    /* Raggi e ombre allineati al linguaggio Dashboard: piu' sobri */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 24px rgba(15,23,42,.10);
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 16px; }
body {
    margin: 0;
    min-height: 100vh;
    background: #0f172a;
    color: var(--text);
    /* Stesso stack font del Dashboard (sans di sistema), niente Inter */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: .9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.site-background {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Matrice di punti rimossa (richiesta utente): restano gradiente + foto */
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.30), transparent 34rem),
        linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,64,175,.72)),
        url('/img/tagliabuegomme-nov2020-027-9058.webp');
    background-attachment: fixed, fixed, fixed;
    background-position: top left, center, center;
    background-size: auto, auto, cover;
}

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.header-content { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-dark); text-decoration: none; }
.brand-logo { display: block; width: 158px; max-width: 46vw; height: auto; }
.brand-portal-name { border-left: 1px solid var(--border-soft); padding-left: 12px; color: #475569; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.header-meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.environment-banner { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #fcd34d; border-radius: 999px; background: #fef3c7; color: #92400e; padding: 5px 11px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.environment-banner span { width: 7px; height: 7px; border-radius: 999px; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid var(--border-soft); border-radius: 999px; background: #f8fafc; color: #334155; padding: 0 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.theme-toggle:hover { background: #eff6ff; border-color: #bfdbfe; color: var(--brand); }
.theme-toggle-icon { width: 17px; height: 17px; }
.theme-toggle-icon-sun { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { display: inline-flex; align-items: center; min-height: 36px; border-radius: 8px; padding: 0 11px; color: #374151; font-size: .85rem; font-weight: 600; text-decoration: none; background: transparent; border: 0; cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.nav-link:hover { background: #f3f4f6; color: var(--brand); }
.nav-link.active { background: #eff6ff; color: var(--brand-dark); }

/* Selettore lingua (topbar): dropdown senza JS basato su <details>/<summary>. */
.lang-switcher { position: relative; }
.lang-switcher > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid var(--border-soft); border-radius: 999px; background: #f8fafc; color: #334155; padding: 0 12px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary::marker { content: ""; }
.lang-switcher > summary:hover { background: #eff6ff; border-color: #bfdbfe; color: var(--brand); }
.lang-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.10); display: block; flex: none; }
.lang-chevron { width: 14px; height: 14px; transition: transform .16s ease; }
.lang-switcher[open] .lang-chevron { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 168px; background: #fff; border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.lang-option { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #374151; font-size: .85rem; font-weight: 600; text-decoration: none; }
.lang-option:hover { background: #f3f4f6; color: var(--brand); }
.lang-option.active { background: #eff6ff; color: var(--brand-dark); }
.nav-button { font-family: inherit; }
.inline-form { display: inline; margin: 0; }
.main-shell { flex: 1; padding: 36px 0 52px; }
.site-footer { border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0; color: rgba(255,255,255,.72); font-size: .82rem; background: rgba(15,23,42,.34); }

.hero { position: relative; overflow: hidden; padding: 40px; border: 1px solid rgba(191,219,254,.7); border-radius: var(--radius); background: var(--surface-glass); box-shadow: var(--shadow); }
.hero h1 { position: relative; margin: 0; max-width: 780px; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.15; color: #0f172a; letter-spacing: -.02em; font-weight: 700; }
.hero p { position: relative; max-width: 720px; margin: 14px 0 0; color: #374151; font-size: .98rem; line-height: 1.6; }
.actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.button, button.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--brand); background: var(--brand); color: white; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button:hover, button.button:hover { background: #1e40af; border-color: #1e40af; }
.button.secondary { background: white; color: var(--brand); box-shadow: none; }
.button.secondary:hover { background: #eff6ff; }
.button.success { background: var(--success); border-color: var(--success); color: white; }
.button.success:hover { background: #065f46; border-color: #065f46; }
.button svg { width: 18px; height: 18px; }
.button.sm { min-height: 32px; padding: 0 12px; font-size: .82rem; gap: 6px; }
.button.sm svg { width: 15px; height: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-glass); padding: 22px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.card p { color: var(--muted); line-height: 1.55; }
.page-title { margin: 0 0 22px; color: white; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }

/* Intestazione benvenuto: meta in chip */
.hero-meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-soft); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: .8rem; color: #374151; }
.chip strong { color: #0f172a; font-weight: 700; }
.chip.success { border-color: #bbf7d0; background: #f0fdf4; color: var(--success); }

/* Card di navigazione cliccabili (Home) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; margin-top: 24px; }
.feature-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-glass); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.feature-card:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 14px 34px rgba(15,23,42,.14); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-dark); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h2 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.feature-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.feature-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .85rem; }
.feature-link svg { width: 15px; height: 15px; }
.feature-card .button { margin-top: auto; align-self: flex-start; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-glass); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: .88rem; }
th { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: .76rem; font-weight: 600; background: #e0f2fe; color: #0369a1; }
.badge.success { background: #dcfce7; color: var(--success); }
.badge.warning { background: #fef3c7; color: var(--warning); }
.badge.danger { background: #fee2e2; color: var(--danger); }
/* Indicatore numero versioni (tabella Documenti EdiWheel) */
.version-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-weight: 700; font-size: .85rem; border: 1px solid rgba(3,105,161,.18); }

.form-card { max-width: 560px; margin: 0 auto; }
.form-grid { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: #374151; font-size: .88rem; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font: inherit; background: white; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
textarea { min-height: 130px; resize: vertical; }
.alert { border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 20px; border: 1px solid #fecaca; color: var(--danger); background: #fef2f2; font-size: .9rem; }
.alert.success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.muted { color: rgba(255,255,255,.78); line-height: 1.55; }
.card .muted, .form-card .muted { color: var(--muted); }
.details-list { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 18px; margin: 20px 0 0; }
.details-list dt { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.details-list dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
code { border-radius: 6px; background: var(--surface-muted); color: #0f172a; padding: 3px 6px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .9em; }
/* Payload XML formattato (Storico messaggi) */
.payload-pre { margin: 6px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: normal; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.45; tab-size: 2; background: var(--surface-muted); color: #0f172a; border: 1px solid var(--border-soft); border-radius: 8px; }
html.theme-dark .payload-pre { background: rgba(30,41,59,.92); color: #dbeafe; border-color: rgba(148,163,184,.24); }
.chip a { color: inherit; text-decoration: none; }
.chip a:hover { text-decoration: underline; }

/* Pulsanti disabilitati (azioni non ancora attive, es. richiesta nuove credenziali) */
.button.is-disabled, .button:disabled, button.button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.button.secondary.is-disabled:hover, .button.secondary:disabled:hover { background: white; border-color: var(--brand); color: var(--brand); }

/* Pagina Credenziali: sezioni A (accesso portale) / B (API) */
.cred-section { display: grid; gap: 18px; }
.cred-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.cred-hint { color: var(--muted); font-size: .8rem; }

/* Blocco contatti supporto (Home) */
.support-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; }
.support-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0; }
.support-icon svg { width: 22px; height: 22px; }
.support-body h2 { margin: 0; }
.support-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Footer con contatto supporto */
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-support a { color: inherit; text-decoration: underline; }

/* Elenco risorse Documentazione */
.doc-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: .88rem; }
.doc-list li span:first-child { color: var(--text); }

/* Tab Documentazione (Specifiche EDI Wheel / API) */
.doc-tabs { display: flex; gap: 6px; margin: 22px 0 18px; border-bottom: 1px solid var(--border-soft); }
.doc-tab { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid transparent; border-bottom: 0; border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: -1px; transition: background-color .16s ease, color .16s ease; }
.doc-tab:hover { color: var(--brand); }
.doc-tab.active { background: var(--surface-glass); border-color: var(--border-soft); color: var(--brand-dark); }

/* Link di download inline (es. PDF per pacchetto EdiWheel) */
.doc-inline-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* Sandbox: blocco XML richiesta/risposta */
.sandbox-xml { margin: 8px 0 0; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-muted); color: #0f172a; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .82rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; }
html.theme-dark .sandbox-xml { background: rgba(15,23,42,.92); color: #dbeafe; }

/* Avvisi / changelog */
.announcement-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement-head h2 { margin: 0; }
.announcement-meta { margin: 6px 0 0; font-size: .82rem; }
.announcement-body { margin-top: 12px; color: var(--text); line-height: 1.55; overflow-wrap: anywhere; }
html.theme-dark .announcement-body { color: #e5e7eb; }

/* Box avvisi in home: card con accento colorato per tipologia */
.announcements { display: grid; gap: 14px; margin-top: 24px; }
.section-title { margin: 0; color: white; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
html.theme-dark .section-title { color: #f8fafc; }
.announcement { border: 1px solid var(--border-soft); border-left: 4px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-glass); box-shadow: var(--shadow); padding: 18px 20px; }
.announcement .announcement-head { justify-content: flex-start; }
.announcement .announcement-head h2 { font-size: 1.02rem; }
.announcement-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 11px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; flex-shrink: 0; }
.announcement.info { border-left-color: #2563eb; }
.announcement.info .announcement-tag { background: #dbeafe; color: #1d4ed8; }
.announcement.warning { border-left-color: #dc2626; }
.announcement.warning .announcement-tag { background: #fee2e2; color: #b91c1c; }
.announcement.breaking { border-left-color: #ea580c; }
.announcement.breaking .announcement-tag { background: #ffedd5; color: #c2410c; }
.announcement.maintenance { border-left-color: #475569; }
.announcement.maintenance .announcement-tag { background: #e2e8f0; color: #334155; }
.announcement.deprecation { border-left-color: #7c3aed; }
.announcement.deprecation .announcement-tag { background: #ede9fe; color: #6d28d9; }
html.theme-dark .announcement { border-top-color: rgba(148,163,184,.24); border-right-color: rgba(148,163,184,.24); border-bottom-color: rgba(148,163,184,.24); background: rgba(15,23,42,.9); box-shadow: 0 12px 40px rgba(0,0,0,.28); }
html.theme-dark .announcement .announcement-head h2 { color: #f8fafc; }

/* Tema scuro */
html.theme-dark body { background: #020617; color: #e5e7eb; }
html.theme-dark .site-background {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.26), transparent 34rem),
        linear-gradient(135deg, rgba(2,6,23,.95), rgba(15,23,42,.88)),
        url('/img/tagliabuegomme-nov2020-027-9058.webp');
    background-attachment: fixed, fixed, fixed;
    background-position: top left, center, center;
    background-size: auto, auto, cover;
}
html.theme-dark .site-header { background: rgba(15,23,42,.94); border-bottom-color: rgba(148,163,184,.24); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
html.theme-dark .brand-logo { filter: brightness(0) invert(1); }
html.theme-dark .brand-portal-name { border-left-color: rgba(148,163,184,.28); color: #cbd5e1; }
html.theme-dark .theme-toggle { background: rgba(30,41,59,.92); border-color: rgba(148,163,184,.28); color: #cbd5e1; }
html.theme-dark .theme-toggle:hover { background: rgba(51,65,85,.92); border-color: rgba(147,197,253,.42); color: #bfdbfe; }
html.theme-dark .theme-toggle-icon-moon { display: none; }
html.theme-dark .theme-toggle-icon-sun { display: block; }
html.theme-dark .nav-link { color: #cbd5e1; }
html.theme-dark .nav-link:hover { background: rgba(51,65,85,.82); color: #bfdbfe; }
html.theme-dark .nav-link.active { background: rgba(37,99,235,.24); color: #dbeafe; }
html.theme-dark .lang-switcher > summary { background: rgba(30,41,59,.92); border-color: rgba(148,163,184,.28); color: #cbd5e1; }
html.theme-dark .lang-switcher > summary:hover { background: rgba(51,65,85,.92); border-color: rgba(147,197,253,.42); color: #bfdbfe; }
html.theme-dark .lang-menu { background: #1e293b; border-color: rgba(148,163,184,.28); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
html.theme-dark .lang-option { color: #cbd5e1; }
html.theme-dark .lang-option:hover { background: rgba(51,65,85,.82); color: #bfdbfe; }
html.theme-dark .lang-option.active { background: rgba(37,99,235,.24); color: #dbeafe; }
html.theme-dark .lang-flag { box-shadow: 0 0 0 1px rgba(148,163,184,.30); }
html.theme-dark .environment-banner { border-color: rgba(251,191,36,.48); background: rgba(120,53,15,.55); color: #fde68a; }
html.theme-dark .hero, html.theme-dark .card, html.theme-dark .feature-card, html.theme-dark .table-wrap { border-color: rgba(148,163,184,.24); background: rgba(15,23,42,.9); box-shadow: 0 12px 40px rgba(0,0,0,.28); }
html.theme-dark .hero h1, html.theme-dark .card h2, html.theme-dark .card h3, html.theme-dark .feature-card h2 { color: #f8fafc; }
html.theme-dark .hero p, html.theme-dark .card p, html.theme-dark .feature-card p, html.theme-dark label, html.theme-dark td { color: #cbd5e1; }
html.theme-dark .page-title { color: #f8fafc; }
html.theme-dark .chip { border-color: rgba(148,163,184,.3); background: rgba(30,41,59,.92); color: #cbd5e1; }
html.theme-dark .chip strong { color: #f8fafc; }
html.theme-dark .chip.success { border-color: rgba(34,197,94,.4); background: rgba(20,83,45,.5); color: #86efac; }
html.theme-dark .feature-icon { background: rgba(37,99,235,.22); color: #bfdbfe; }
html.theme-dark .feature-card:hover { border-color: rgba(147,197,253,.42); }
html.theme-dark th, html.theme-dark td { border-bottom-color: rgba(148,163,184,.20); }
html.theme-dark th { background: rgba(30,41,59,.92); color: #94a3b8; }
html.theme-dark input, html.theme-dark select, html.theme-dark textarea { border-color: rgba(148,163,184,.30); background: rgba(15,23,42,.92); color: #f8fafc; }
html.theme-dark input:focus, html.theme-dark select:focus, html.theme-dark textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.18); }
html.theme-dark .button.secondary { border-color: rgba(147,197,253,.44); background: rgba(15,23,42,.86); color: #bfdbfe; }
html.theme-dark .button.secondary:hover { background: rgba(30,41,59,.92); }
html.theme-dark .alert { border-color: rgba(248,113,113,.36); background: rgba(127,29,29,.34); color: #fecaca; }
html.theme-dark .alert.success { border-color: rgba(34,197,94,.36); background: rgba(20,83,45,.34); color: #bbf7d0; }
html.theme-dark .muted, html.theme-dark .card .muted, html.theme-dark .form-card .muted { color: #94a3b8; }
html.theme-dark .details-list dd { color: #e5e7eb; }
html.theme-dark code { background: rgba(30,41,59,.92); color: #dbeafe; }
html.theme-dark .site-footer { border-top-color: rgba(148,163,184,.18); background: rgba(2,6,23,.52); color: rgba(203,213,225,.78); }
html.theme-dark .support-icon { background: rgba(37,99,235,.22); color: #bfdbfe; }
html.theme-dark .button.secondary.is-disabled:hover, html.theme-dark .button.secondary:disabled:hover { background: rgba(15,23,42,.86); border-color: rgba(147,197,253,.44); color: #bfdbfe; }
html.theme-dark .doc-list li { border-color: rgba(148,163,184,.24); }
html.theme-dark .doc-list li span:first-child { color: #e5e7eb; }
html.theme-dark .version-count { background: rgba(30,41,59,.92); color: #bae6fd; border-color: rgba(147,197,253,.28); }
html.theme-dark .doc-tabs { border-bottom-color: rgba(148,163,184,.24); }
html.theme-dark .doc-tab { color: #94a3b8; }
html.theme-dark .doc-tab:hover { color: #bfdbfe; }
html.theme-dark .doc-tab.active { background: rgba(15,23,42,.9); border-color: rgba(148,163,184,.24); color: #dbeafe; }

@media (max-width: 720px) {
    .hero { padding: 28px 22px; }
    .header-content { align-items: flex-start; padding: 14px 0; flex-direction: column; }
    .header-meta { align-items: flex-start; justify-content: flex-start; }
    .details-list { grid-template-columns: 1fr; }
}
