/* =============================================
   SAFEKEEPBITCOIN — Clean Open-Source Minimal
   Design: left sidebar + top nav, light theme
   ============================================= */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --bg:           #FAFAFA;
    --surface:      #FFFFFF;
    --text:         #222222;
    --text-muted:   #484848;
    --text-dim:     #5c5c5c;
    --accent:       #F7931A;
    --accent-hover: #d97c0e;
    --border:       #E8E8E8;
    --border-mid:   #D4D4D4;
    --code-bg:      #F4F4F4;

    --sidebar-width:  230px;
    --topnav-height:  44px;
    --max-content:    700px;

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: 0.15s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   TOP NAVIGATION BAR
   ============================================= */
.top-nav {
    height: var(--topnav-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav-inner {
    height: 100%;
    max-width: calc(var(--sidebar-width) + var(--max-content) + 7rem);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand shown in nav only when sidebar is hidden (mobile) */
.top-nav-brand {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    display: none;
    flex-shrink: 0;
}

.top-nav-brand span {
    color: var(--accent);
}

.top-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.top-nav-links a {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.top-nav-links a:hover,
.top-nav-links a.active {
    color: var(--text);
    background: var(--code-bg);
}

.top-nav-links a.nav-download {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    margin-left: 0.35rem;
}

.top-nav-links a.nav-download:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

/* =============================================
   LAYOUT SHELL
   ============================================= */
.layout-shell {
    display: flex;
    min-height: calc(100vh - var(--topnav-height) - 48px);
    max-width: calc(var(--sidebar-width) + var(--max-content) + 7rem);
    margin: 0 auto;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.sidebar-sticky {
    position: sticky;
    top: var(--topnav-height);
    height: calc(100vh - var(--topnav-height));
    padding: 2rem 1.35rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    overflow-y: auto;
}

.brand {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.2;
    transition: opacity var(--transition);
}

.brand:hover {
    opacity: 0.8;
}

.brand span {
    color: var(--accent);
}

.brand-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    letter-spacing: 0.02em;
}

/* Social / community links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.38rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--code-bg);
}

.sidebar-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* CTA buttons */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.btn-download,
.btn-donate {
    display: block;
    width: 100%;
    padding: 0.62rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
}

.btn-download {
    background: var(--accent);
    color: #ffffff;
}

.btn-download:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-donate {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-mid);
}

.btn-donate:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 3rem 3.5rem 5rem;
}

/* Page hero */
.page-hero {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.page-hero-label {
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.page-hero-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.page-hero-title span {
    color: var(--accent);
}

.page-hero-tagline {
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.6;
}

/* =============================================
   DOCS TABLE OF CONTENTS
   ============================================= */
.docs-toc {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 1rem 1.25rem 1.1rem;
    margin: 0 0 2rem;
}

.docs-toc-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.docs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.docs-toc > ul > li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.docs-toc ul ul {
    margin: 0.2rem 0 0.15rem 1rem;
    gap: 0.15rem;
}

.docs-toc ul ul li {
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--text-muted);
}

.docs-toc a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.docs-toc a:hover {
    color: var(--accent);
}

/* Content sections */
.content-section {
    margin-bottom: 2.75rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--border);
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Section headings — // prefix injected by CSS */
.section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading::before {
    content: "//";
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.87rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Wallet section headings — prominent dividers for per-wallet blocks */
.wallet-heading {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 2.75rem 0 0.65rem;
    padding: 0.55rem 0 0.55rem 0.85rem;
    border-left: 3px solid var(--accent);
    border-bottom: 1px solid var(--border);
    line-height: 1.3;
}

/* Sub-section headings (h3) within a content section */
.sub-heading {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text);
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

/* Compact subsection headings — separator line above each new concept */
.subsection-heading {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    margin: 0 0 0.35rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* No separator above the very first subsection heading */
.subsection-heading:first-child {
    border-top: none;
    padding-top: 0;
}

/* Spec-lists that follow a subsection heading: no internal dividers, tighter padding */
.subsection-heading + .spec-list li {
    border-top: none;
    border-bottom: none;
    padding: 0.35rem 0;
}

.subsection-heading + .spec-list {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Prose */
.content-section p {
    font-size: 0.96rem;
    color: var(--text);
    line-height: 1.78;
    margin-bottom: 1rem;
}

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

.content-section a {
    color: var(--text);
    border-bottom: 1px solid var(--border-mid);
    transition: color var(--transition), border-color var(--transition);
}

.content-section a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Docs descriptive list — bold label + inline prose */
.docs-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.docs-list li {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.docs-list li:first-child {
    border-top: 1px solid var(--border);
}

.docs-list li:last-child {
    border-bottom: none;
}

/* No dividers between items */
.docs-list--plain li {
    border-top: none;
    border-bottom: none;
}

/* Remove top border on first item when list immediately follows a sub-heading */
.sub-heading + .docs-list li:first-child {
    border-top: none;
}

.docs-list li strong {
    font-weight: 700;
    color: var(--text);
}

/* Only the opening label strong becomes a block */
.docs-list li > strong:first-child {
    display: block;
    margin-bottom: 0.2rem;
}

.docs-list li em {
    font-style: italic;
    color: var(--text);
}

.docs-list li code {
    font-size: 0.82em;
}

/* Notice / disclaimer block */
.notice-block {
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    background: #fffaf5;
}

.notice-block .notice-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.notice-block p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
}

.notice-block p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background: var(--code-bg);
    color: var(--text);
    padding: 0.12em 0.42em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

pre {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    line-height: 1.65;
    overflow-x: auto;
    color: var(--text-muted);
    white-space: pre;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1em;
    color: inherit;
}

/* =============================================
   FORTRESS — spec list
   ============================================= */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.spec-list li {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
    line-height: 1.65;
}

.spec-list li:first-child {
    border-top: 1px solid var(--border);
}

/* Override: no top border when spec-list follows a subsection heading */
.subsection-heading + .spec-list li:first-child {
    border-top: none;
}

.spec-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.spec-desc {
    display: block;
    color: var(--text-muted);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 3rem 1rem 1rem;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
    cursor: default;
    object-fit: contain;
    display: block;
    margin: auto;
}

.lightbox-close {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover,
.lightbox-close:active { opacity: 1; }

/* =============================================
   OS SCREENSHOT SHOWCASE
   ============================================= */
.os-showcase {
    margin: 0 auto 2.75rem;
    padding: 0;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* No background, border, border-radius, or box-shadow here.
       Figure must be fully transparent so only the <img> appears elevated. */
}

/* <a> wrapper: purely structural. No background, no shadow, no border-radius,
   no overflow:hidden. Must stay visually invisible so the img shadow can bleed
   freely outside it. */
.os-showcase a {
    display: block;
    width: 100%;
    overflow: visible;
}

/* All visual lift lives here — on the <img> directly. */
.os-showcase img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 1px  4px  rgba(0, 0, 0, 0.12),
        0 6px  18px rgba(0, 0, 0, 0.22),
        0 24px 52px rgba(0, 0, 0, 0.16);
}

/* .os-showcase a img: no additional width rules needed —
   handled by .os-showcase img above. */

.os-showcase figcaption {
    margin-top: 0.7rem;
    width: 100%;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    letter-spacing: 0.01em;
}

/* =============================================
   UTILITY — elevated image
   Add class="img-elevated" directly to any <img>
   tag to get the same shadow treatment as the
   showcase screenshots. Requires:
     • display: block  on the <img>
     • The parent <a> or div must NOT have
       overflow: hidden
   Usage:
     <img class="img-elevated" src="shot.png" alt="…">
   ============================================= */
.img-elevated {
    display: block;
    border-radius: var(--radius-lg, 8px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 1px  4px  rgba(0, 0, 0, 0.12),
        0 6px  18px rgba(0, 0, 0, 0.22),
        0 24px 52px rgba(0, 0, 0, 0.16);
}

/* =============================================
   ARSENAL — clean two-column name list
   ============================================= */
.tools-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 2rem;
    max-width: 480px;
}

.tools-list li {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
}

.tool-name {
    font-weight: 600;
    color: var(--text);
}

.tool-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* =============================================
   DOWNLOAD SECTION
   ============================================= */
.download-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin: 0.75rem 0 1.5rem;
}

.download-row a {
    color: var(--accent);
    font-weight: 500;
    border-bottom: none !important;
}

.download-row a:hover {
    color: var(--accent-hover);
    border-bottom: none !important;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-muted);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border-mid);
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

/* =============================================
   DONATE PAGE
   ============================================= */
.contribute-list {
    list-style: disc;
    padding-left: 1.35rem;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contribute-list li {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =============================================
   SITE FOOTER
   ============================================= */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.site-footer .brand {
    display: inline;
    font-size: 0.83rem;
}

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

/* Tablet: collapse sidebar */
@media (max-width: 860px) {
    .sidebar {
        display: none;
    }

    .top-nav-brand {
        display: block;
    }

    .layout-shell {
        max-width: none;
    }

    .top-nav-inner {
        max-width: none;
    }

    .main-content {
        padding: 2rem 1.75rem 3.5rem;
    }

}

/* Mobile */
@media (max-width: 600px) {
    .main-content {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .page-hero-title {
        font-size: 1.65rem;
    }

    .tools-list {
        columns: 1;
        column-rule: none;
    }

    .cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav-links .hide-mobile {
        display: none;
    }

}

/* =============================================
   DOWNLOAD PAGE
   ============================================= */

/* Primary download block */
.download-hero-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    margin: 1.5rem 0;
}

.download-primary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background var(--transition);
    white-space: nowrap;
}

.btn-download-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    border-bottom: none;
}

.download-filesize {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.download-verify-group {
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.download-verify-label {
    font-size: 0.79rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.download-secondary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.35rem;
}

.download-audit-row {
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 0.85rem;
}

.download-audit-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: none !important;
    transition: color var(--transition);
}

.download-audit-link:hover {
    color: var(--text);
    border-bottom: none !important;
}

.download-secondary-links a {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-mid);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}

.download-secondary-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    border-bottom: 1px dashed var(--accent);
}

/* Verify steps */
.verify-step {
    margin-bottom: 2rem;
}

.verify-step-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.verify-step-number {
    font-family: var(--font-mono);
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.verify-step-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
}

.verify-step-desc {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Terminal block */
.terminal-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.35rem;
    overflow-x: auto;
    position: relative;
}

.terminal-block pre {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.75;
    margin: 0;
    white-space: pre;
}

.term-prompt {
    color: var(--text-dim);
    user-select: none;
}

.term-cmd {
    color: var(--text);
}

.term-comment {
    color: var(--text-muted);
    font-style: normal;
}

.term-output {
    color: var(--text-muted);
}

.term-good {
    color: #2a7a4f;
}

.verify-note {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* OS tabs for Linux/macOS toggle — simple, no JS needed */
.os-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.os-tab-label {
    font-family: var(--font-mono);
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #2d2d2d;
    color: #c0c0c0;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-right: 2px;
}

.os-tab-label.active {
    background: #1e1e1e;
    color: #d4d4d4;
}

@media (max-width: 600px) {
    .download-primary {
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal-block pre {
        font-size: 0.76rem;
    }
}

/* =============================================
   MOBILE NAVIGATION — hamburger + dropdown
   Default: both elements hidden on all viewports.
   The @media block below re-enables them on mobile.
   Rule order is intentional — defaults must appear
   before the media-query overrides so the cascade
   resolves correctly.
   ============================================= */

/* --- Hamburger button: hidden by default (desktop) --- */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    margin-left: 0.75rem;
    color: var(--text);
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: color var(--transition);
}

.nav-hamburger:hover { color: var(--accent); }

/* Icon swap driven by .nav-open class on <nav> */
.nav-hamburger .icon-close                    { display: none; }
.top-nav.nav-open .nav-hamburger .icon-menu   { display: none; }
.top-nav.nav-open .nav-hamburger .icon-close  { display: block; }

/* --- Mobile menu panel: hidden by default (desktop) --- */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: var(--topnav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    z-index: 998;
}

.nav-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.75rem;
}

.nav-mobile-menu ul li a {
    display: block;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: none;
    transition: background var(--transition), color var(--transition);
}

.nav-mobile-menu ul li a:hover,
.nav-mobile-menu ul li a:focus {
    background: var(--code-bg);
    color: var(--accent);
    outline: none;
}

.nav-mobile-menu ul li a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-mobile-menu ul li a.nav-download {
    color: var(--accent);
    font-weight: 700;
}

/* --- Mobile breakpoint: enable hamburger + panel --- */
/* This block must come AFTER the display:none defaults  */
/* above so the later declaration wins the cascade.      */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .top-nav.nav-open .nav-mobile-menu {
        display: block;
    }
}

/* =============================================
   DONATION ADDRESS CARD
   ============================================= */

.addr-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1.5rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.addr-qr-col {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.addr-qr-col canvas,
.addr-qr-col img {
    display: block;
    width: 160px !important;
    height: 160px !important;
    border-radius: var(--radius-sm);
}

.addr-wallet-link {
    font-family: var(--font-mono);
    font-size: 0.81rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    border-bottom: 1px dashed var(--border-mid);
    transition: color var(--transition), border-color var(--transition);
}

.addr-wallet-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    border-bottom: 1px dashed var(--accent);
}

.addr-body {
    background: var(--surface);
    padding: 1.35rem 1.5rem 1.5rem;
}

.addr-type-label {
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6a9955;
    margin-bottom: 0.5rem;
}

.addr-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #1a1a1a;
    word-break: break-all;
    line-height: 1.7;
    user-select: all;
    cursor: text;
    margin-bottom: 1.1rem;
}

.addr-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.addr-btn-copy {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.addr-btn-copy:hover { background: var(--accent-hover); }

.addr-btn-new {
    background: transparent;
    color: #b8b8b8;
    border: 1px solid #3a3a3a;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.addr-btn-new:hover {
    border-color: #6a9955;
    color: #d4d4d4;
}

.addr-privacy-note {
    font-size: 0.82rem;
    color: #b0b0b0;
    margin-top: 1rem;
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .addr-card { max-width: 100%; }
    .addr-text { font-size: 0.76rem; }

    /* Stack QR below the controls on mobile */
    .addr-body {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .addr-body > div:last-child {
        align-self: center !important;
        margin-top: 1rem;
    }

    .donate-amt-row {
        flex-wrap: wrap;
    }

    .donate-amt-btn {
        flex: 1 1 40%;
    }
}

/* =============================================
   SHA-256 HASH DISPLAY BLOCK
   ============================================= */

.sha256-block {
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    width: 100%;
}

.sha256-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.5rem;
}

.sha256-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.90rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
    line-height: 1.7;
    user-select: all;
    cursor: text;
}

/* =============================================
   CHANGELOG / RELEASE NOTES BLOCK
   ============================================= */

.changelog-block {
    margin: 1.6rem 0;
}

.changelog-version {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--accent);
    padding: 0.2em 0.7em;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
}

.changelog-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.changelog-entries li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 0.8rem;
    align-items: baseline;
}

.cl-tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.15em 0.55em;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.cl-tag.compat { background: #1e1a2e; color: #a78bdb; }
.cl-tag.new    { background: #1a2e1a; color: #6db56d; }
.cl-tag.ux     { background: #2e2010; color: #db9f6a; }

.cl-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.55;
}

.cl-text strong {
    font-weight: 600;
    color: var(--text);
}

.cl-text code {
    font-family: var(--font-mono);
    font-size: 0.83em;
    background: var(--code-bg);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    border: 1px solid var(--border-mid);
}
