/* ============================================================
   download.nsfwmanager.com – Download page stylesheet
   Extends the main site palette (vars defined in style.css)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.dl-hero { padding: 72px 0 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dl-hero .lbl { color: var(--sage); font-size: 13px; font-weight: 600;
                letter-spacing: .06em; text-transform: uppercase;
                display: block; margin-bottom: 16px; }
.dl-hero h1 { font-family: var(--serif); font-size: clamp(36px,5vw,64px);
              font-weight: 400; letter-spacing: -.025em; line-height: 1.04;
              margin: 0 0 14px; }
.dl-hero .hero-sub { font-size: 16px; color: var(--muted); line-height: 1.6;
                     max-width: 620px; margin: 0 0 14px; }
.dl-hero .meta { font-size: 13px; color: var(--muted);
                 display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.dl-hero .meta a { color: var(--sage); }

/* ── Language bar ─────────────────────────────────────────── */
.lang-bar { display: flex; gap: 8px; margin-top: 18px; }
.lang-btn { padding: 5px 16px; border-radius: 999px;
            border: 1px solid rgba(255,255,255,.15); background: transparent;
            color: var(--muted); font-size: 12px; font-weight: 500;
            cursor: pointer; text-decoration: none; transition: all .18s;
            display: inline-block; }
.lang-btn:hover, .lang-btn.active { border-color: var(--sage);
                                     background: rgba(255,107,0,.12);
                                     color: var(--sage); }

/* ── Layout ───────────────────────────────────────────────── */
.dl-layout { display: grid; grid-template-columns: 240px 1fr;
             gap: 48px; padding: 56px 0 96px; align-items: start; }

/* ── TOC sidebar ──────────────────────────────────────────── */
.dl-toc { position: sticky; top: 100px; }
.dl-toc h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em;
             text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.dl-toc ul { list-style: none; padding: 0; margin: 0;
             display: flex; flex-direction: column; gap: 2px; }
.dl-toc li.toc-section > a { font-size: 11px; font-weight: 700;
                               text-transform: uppercase; letter-spacing: .06em;
                               color: var(--muted); padding: 6px 10px 3px;
                               display: block; text-decoration: none; }
.dl-toc li.toc-item > a { font-size: 12px; color: var(--muted);
                           text-decoration: none; padding: 4px 10px 4px 20px;
                           border-radius: 6px; display: block;
                           transition: all .18s; border-left: 2px solid transparent; }
.dl-toc li.toc-item > a:hover,
.dl-toc li.toc-item > a.active { color: var(--sage); border-left-color: var(--sage);
                                  background: rgba(255,107,0,.07); }

/* ── Download body ────────────────────────────────────────── */
.dl-body h2.section-title { font-family: var(--serif); font-size: 22px;
                             font-weight: 500; letter-spacing: -.015em;
                             margin: 56px 0 24px; color: var(--ink);
                             padding-bottom: 10px;
                             border-bottom: 1px solid rgba(255,255,255,.08); }
.dl-body h2.section-title:first-child { margin-top: 0; }

/* ── Download card ────────────────────────────────────────── */
.dl-card { background: var(--card); border: 1px solid rgba(255,255,255,.07);
           border-radius: 14px; padding: 28px 28px 24px; margin-bottom: 20px; }
.dl-card-header { display: flex; align-items: flex-start;
                  justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dl-card-header h3 { font-family: var(--serif); font-size: 20px; font-weight: 500;
                     margin: 0; color: var(--ink); }
.dl-card-intro { font-size: 14px; color: var(--muted); line-height: 1.65;
                 margin: 0 0 16px; }
.dl-card-body { font-size: 14px; color: var(--muted); line-height: 1.65; }
.dl-card-body ul { padding-left: 20px; margin: 0 0 14px; }
.dl-card-body li { margin-bottom: 5px; }
.dl-card-body a { color: var(--sage); }
.dl-card-body strong { color: var(--ink); }
.dl-card-body code { background: rgba(255,107,0,.10); color: var(--sage);
                     padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.dl-card-changelog { font-size: 13px; color: var(--muted);
                     background: rgba(255,255,255,.04);
                     border-left: 3px solid var(--sage);
                     border-radius: 0 8px 8px 0;
                     padding: 10px 16px; margin: 14px 0 20px; }
.dl-card-changelog strong { color: var(--sage); }

/* ── Download button ──────────────────────────────────────── */
.dl-btn { display: inline-flex; align-items: center; gap: 10px;
          background: var(--sage); color: #fff; font-size: 14px; font-weight: 600;
          padding: 11px 22px; border-radius: 8px; text-decoration: none;
          transition: background .18s, transform .12s; }
.dl-btn:hover { background: #e05500; transform: translateY(-1px); }
.dl-btn svg { flex-shrink: 0; }
.dl-btn-ghost { display: inline-flex; align-items: center; gap: 8px;
                background: transparent; color: var(--muted); font-size: 13px;
                padding: 10px 18px; border-radius: 8px; text-decoration: none;
                border: 1px solid rgba(255,255,255,.12); transition: all .18s; }
.dl-btn-ghost:hover { border-color: var(--sage); color: var(--sage); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .dl-layout { grid-template-columns: 1fr; }
  .dl-toc    { display: none; }
}
