/* books.css — seowolf.org/books. Header, panels and footer follow
   /notepad/style.css so the books read as part of the same tool suite.
   After editing, bump ASSET_VER in includes/config.php. */

/* ── 1. Tokens (values come from /_brand/brand.css) ── */
:root {
    --orange:    var(--sw-orange, #ff7600);
    --orange-hi: var(--sw-orange-hi, #ff9833);
    --bg:        var(--sw-black, #000000);
    --tint-1:    var(--sw-tint-1, rgba(255,118,0,0.030));
    --tint-2:    var(--sw-tint-2, rgba(255,118,0,0.050));
    --tint-3:    var(--sw-tint-3, rgba(255,118,0,0.085));
    --border:    var(--sw-border, rgba(255,118,0,0.20));
    --border-hi: var(--sw-border-hi, rgba(255,118,0,0.60));
    --glow:      var(--sw-glow, 0 0 18px rgba(255,118,0,0.18));
    --glow-lg:   var(--sw-glow-lg, 0 0 36px rgba(255,118,0,0.32));
    --glow-text: 0 0 14px rgba(255,118,0,0.40);
    --good:      var(--sw-good, #22c55e);
    --text:      var(--sw-text, #dddddd);
    --text-dim:  var(--sw-text-dim, #888888);
    --font:      var(--sw-font, 'Courier New', Courier, monospace);
    --radius:    var(--sw-radius, 2px);
    --ease:      var(--sw-ease, 0.18s ease);
}

/* ── 2. Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html:focus-within { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--orange); font-family: inherit; line-height: 1.25; }
a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,118,0,0.22);
    transition: border-color var(--ease), opacity var(--ease);
}
a:hover { border-color: var(--orange); text-shadow: var(--glow-text); }
code {
    background: rgba(255,118,0,0.08);
    border: 1px solid rgba(255,118,0,0.15);
    padding: 1px 6px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.88em;
    color: var(--orange);
}
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.skip-link {
    position: absolute; top: -60px; left: 16px; z-index: 1000;
    background: var(--orange); color: #000; border: 0;
    font-weight: bold; padding: 8px 16px;
}
.skip-link:focus { top: 10px; }

/* ── 3. Header (as /notepad/) ── */
.site-header {
    background: rgba(0,0,0,0.96);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 0 rgba(255,118,0,0.12), 0 4px 32px rgba(0,0,0,0.90);
}
.header-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
    padding: 0 24px; height: 58px;
}
.logo {
    border-bottom: none;
    display: flex; align-items: center; gap: 11px;
    flex-shrink: 0; padding: 0 4px; position: relative;
}
.logo::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left;
    transition: transform 0.22s ease;
}
.logo:hover::after { transform: scaleX(1); }
.logo:hover { text-shadow: none; }
.logo-img {
    width: 36px; height: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(255,118,0,0.32);
    filter: drop-shadow(0 0 5px rgba(255,118,0,0.22));
    transition: filter 0.22s ease, border-color 0.22s ease;
}
.logo:hover .logo-img { filter: drop-shadow(0 0 11px rgba(255,118,0,0.55)); border-color: rgba(255,118,0,0.75); }
.logo-text {
    font-weight: bold; color: var(--orange);
    font-size: 0.96rem; letter-spacing: 2.5px; text-transform: uppercase;
    text-shadow: var(--glow-text);
}
.logo-text span { opacity: 0.42; }

#nav-links { display: flex; align-items: stretch; }
.nav-list { list-style: none; display: flex; align-items: stretch; }
.nav-list > li { display: flex; align-items: center; }
.nav-list > li > a {
    color: var(--orange); border-bottom: none;
    padding: 0 13px; height: 100%;
    display: flex; align-items: center;
    font-size: 0.76rem; letter-spacing: 1px; text-transform: uppercase;
    opacity: 0.58; position: relative; white-space: nowrap;
    transition: opacity 0.18s ease, background 0.18s ease;
}
.nav-list > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 13px; right: 13px; height: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left;
    transition: transform 0.18s ease;
}
.nav-list > li > a:hover,
.nav-list > li > a:focus-visible { opacity: 1; background: var(--tint-1); outline: none; text-shadow: none; }
.nav-list > li > a:hover::after,
.nav-list > li > a.is-here::after { transform: scaleX(1); }
.nav-list > li > a.is-here { opacity: 1; }

.has-dropdown { position: relative; }
.has-dropdown::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 8px; }
.dropdown-menu {
    position: absolute; left: 0; top: 100%;
    background: rgba(0,0,0,0.97);
    border: 1px solid var(--border); border-top: 2px solid var(--orange);
    padding: 6px 0 10px; min-width: min(260px, calc(100vw - 32px));
    display: none; z-index: 200;
    box-shadow: 0 20px 48px rgba(0,0,0,0.90), var(--glow);
    border-radius: 0 0 var(--radius) var(--radius);
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu { display: block; animation: dropDown 0.16s ease forwards; }
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-bottom: none;
    font-size: 0.8rem; opacity: 0.65;
    transition: opacity 0.14s ease, background 0.14s ease, padding-left 0.14s ease;
}
.dropdown-menu li a::before {
    content: '›'; opacity: 0; transform: translateX(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible,
.dropdown-menu li a[aria-current] { opacity: 1; background: var(--tint-2); padding-left: 22px; outline: none; text-shadow: none; }
.dropdown-menu li a:hover::before,
.dropdown-menu li a[aria-current]::before { opacity: 1; transform: translateX(0); }
.dropdown-section-label {
    padding: 12px 18px 4px; font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 3px; color: var(--orange); opacity: 0.3;
}
.dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }
@keyframes dropDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

#menu-toggle {
    display: none; background: transparent;
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; padding: 8px 9px; align-self: center;
    flex-direction: column; justify-content: center; gap: 5px;
}
#menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--orange); transition: transform 0.22s ease, opacity 0.22s ease; }
body.nav-open #menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open #menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open #menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── 4. Page ── */
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 36px 24px 40px; }
.page-wrap > .panel { margin-top: 24px; }

.eyebrow {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
    color: var(--orange); opacity: 0.6; margin-bottom: 6px;
}
.page-title { margin-bottom: 28px; }
.page-title h1 {
    font-size: clamp(1.3rem, 3vw, 1.75rem); letter-spacing: 1px;
    text-shadow: var(--glow-text);
}
.page-title > p:not(.eyebrow) { margin-top: 10px; max-width: 760px; color: var(--text-dim); font-size: 0.9rem; }
.page-title .checks { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.78rem; color: var(--good) !important; }

/* Panels (as /notepad/) */
.panel {
    background: var(--tint-1);
    border: 1px solid var(--border); border-radius: var(--radius);
    position: relative; overflow: hidden;
    box-shadow: var(--glow);
    transition: box-shadow var(--ease), border-color var(--ease);
}
.panel:hover { border-color: rgba(255,118,0,0.28); box-shadow: var(--glow-lg); }
.panel::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--orange); opacity: 0.75; pointer-events: none; z-index: 1;
}
.panel-header {
    padding: 11px 16px 11px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--tint-2);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.panel-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--orange); opacity: 0.7; font-weight: bold;
}
.panel-body { padding: 20px 20px 20px 22px; }


/* Store line + override */
.store-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.72rem; color: var(--text-dim); }
.store-change { display: inline-flex; align-items: center; gap: 6px; }
.store-select {
    background: #000; color: var(--orange);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-family: var(--font); font-size: 0.72rem; padding: 3px 6px; cursor: pointer;
    max-width: 200px;
}
.store-select:hover, .store-select:focus { border-color: var(--border-hi); outline: none; }

/* ── 5. Book list ── */
.book-card {
    display: grid; grid-template-columns: 150px 1fr; gap: 26px;
    padding: 24px 22px 24px 26px;
    border-bottom: 1px solid var(--border);
}
.book-card:last-child { border-bottom: none; }
.book-cover { position: relative; border: none; align-self: start; }
.book-cover img {
    width: 150px; border: 1px solid rgba(255,118,0,0.32);
    box-shadow: 0 10px 28px rgba(0,0,0,0.8);
    transition: box-shadow var(--ease), transform var(--ease);
}
.book-cover:hover img { box-shadow: var(--glow-lg); transform: translateY(-2px); }
.book-kicker { font-size: 0.66rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-dim); }
.book-title { margin-top: 4px; font-size: 1.15rem; letter-spacing: 0.5px; }
.book-title a { border-bottom: none; }
.book-sub { margin-top: 4px; color: var(--text-dim); font-size: 0.82rem; }
.book-hook { margin-top: 12px; color: var(--text); font-size: 0.9rem; }
.book-meta { margin-top: 8px; font-size: 0.72rem; color: var(--text-dim); }
.more-link { display: inline-block; margin-top: 12px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: none; }

/* Buy buttons */
.buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.buy-btn {
    flex: 1 1 160px; max-width: 240px;
    display: flex; flex-direction: column; gap: 1px;
    padding: 9px 12px;
    background: #000; border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); position: relative;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.buy-btn:hover { border-color: var(--orange); background: var(--tint-2); box-shadow: var(--glow); text-shadow: none; }
.buy-fmt { font-weight: bold; color: var(--orange); font-size: 0.82rem; }
.buy-price { font-size: 0.7rem; color: var(--text-dim); }
.buy-price s { opacity: 0.7; }
.buy-price b { color: var(--good); letter-spacing: 1px; }
.buy-go { font-size: 0.64rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); opacity: 0.55; margin-top: 3px; }
.buy-btn:hover .buy-go { opacity: 1; }
.buy-btn.is-primary { background: var(--orange); border-color: var(--orange); }
.buy-btn.is-primary .buy-fmt, .buy-btn.is-primary .buy-price, .buy-btn.is-primary .buy-go { color: #000; opacity: 1; }
.buy-btn.is-primary:hover { background: var(--orange-hi); box-shadow: var(--glow-lg); }
.buy--stack { flex-direction: column; margin-top: 0; }
.buy--stack .buy-btn { flex: none; max-width: none; }

/* Why + FAQ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
.why h3 { font-size: 0.86rem; letter-spacing: 0.5px; }
.why p { margin-top: 6px; font-size: 0.8rem; color: var(--text-dim); }
.faq { padding-top: 8px; padding-bottom: 8px; }
.faq-item { border-bottom: 1px solid rgba(255,118,0,0.1); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    cursor: pointer; list-style: none; position: relative;
    padding: 13px 30px 13px 0; font-weight: bold; font-size: 0.86rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; color: var(--orange); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--orange); }
.faq-item p { padding: 0 0 14px; font-size: 0.82rem; color: var(--text-dim); max-width: 820px; }

/* ── 6. Book page ── */
.crumbs { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); border-bottom: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.5; }
.crumbs [aria-current] { color: var(--orange); }

.detail {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 36px;
    grid-template-areas: "head side" "main side";
    align-items: start;
}
.detail-head { grid-area: head; }
.detail-main { grid-area: main; min-width: 0; }
.detail-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; }

.side-panel .panel-body { padding: 16px 16px 16px 19px; display: flex; flex-direction: column; gap: 12px; }
.side-cover { position: relative; padding: 18px 18px 0 21px; }
.side-cover img { width: 100%; max-width: 170px; margin: 0 auto; border: 1px solid rgba(255,118,0,0.32); box-shadow: 0 12px 30px rgba(0,0,0,0.8); }
.side-panel .store-line { font-size: 0.68rem; }

.tool-links { list-style: none; padding: 6px 0; }
.tool-links a {
    display: flex; justify-content: space-between; padding: 7px 16px 7px 20px;
    border-bottom: none; font-size: 0.8rem; opacity: 0.75;
    transition: opacity 0.14s ease, background 0.14s ease, padding-left 0.14s ease;
}
.tool-links a:hover { opacity: 1; background: var(--tint-2); padding-left: 24px; text-shadow: none; }

/* Long-form text */
.prose { max-width: 740px; font-size: 0.95rem; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
    margin-top: 44px; padding-bottom: 8px;
    font-size: 1.12rem; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    text-shadow: var(--glow-text);
}
.prose h3 { margin-top: 28px; font-size: 0.98rem; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose p { color: var(--text); }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding: 6px 0 6px 26px; border-bottom: 1px dashed rgba(255,118,0,0.10); }
.prose li:last-child { border-bottom: none; }
.prose ul > li::before { content: '▸'; position: absolute; left: 4px; color: var(--orange); }
.prose ul.plus > li::before { content: '+'; font-weight: bold; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 34px; }
.prose ol > li::before {
    content: counter(n); position: absolute; left: 0; top: 7px;
    width: 22px; height: 22px; line-height: 20px; text-align: center;
    font-size: 0.72rem; font-weight: bold; color: var(--orange);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.prose .lead { font-size: 1.05rem; padding-left: 14px; border-left: 3px solid var(--orange); }
.prose blockquote { padding: 12px 16px; border-left: 3px solid var(--orange); background: var(--tint-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { color: var(--orange); background: var(--tint-2); }

.cta-box {
    max-width: 740px; margin: 28px 0;
    padding: 18px 20px 20px 22px;
    background: var(--tint-2); border: 1px solid var(--border-hi); border-radius: var(--radius);
    border-left: 3px solid var(--orange);
    box-shadow: var(--glow);
}
.cta-title { font-weight: bold; color: var(--orange); font-size: 0.92rem; }
.cta-box .buy { margin-top: 12px; }

/* Problem picker */
.pick-list { list-style: none; }
.pick-list a {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
    padding: 12px 20px 12px 22px; border-bottom: 1px solid rgba(255,118,0,0.08);
    transition: background var(--ease), padding-left var(--ease);
}
.pick-list li:last-child a { border-bottom: none; }
.pick-list a:hover { background: var(--tint-2); padding-left: 28px; text-shadow: none; }
.pick-if { color: var(--text); font-size: 0.86rem; }
.pick-book { font-weight: bold; font-size: 0.82rem; }

/* Book card copy */
.book-hook { font-weight: bold; }
.book-promise { margin-top: 8px; color: var(--text-dim); font-size: 0.86rem; max-width: 720px; }
.book-bullets { list-style: none; margin-top: 10px; }
.book-bullets li { position: relative; padding: 3px 0 3px 22px; font-size: 0.82rem; color: var(--text); }
.book-bullets li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); }

/* Closing CTA */
.closer { margin-top: 40px; padding: 30px 24px; text-align: center; border: 1px solid var(--border-hi); background: var(--tint-2); box-shadow: var(--glow); border-radius: var(--radius); }
.closer h2 { font-size: 1.25rem; text-shadow: var(--glow-text); }
.closer p { margin: 10px auto 18px; max-width: 680px; color: var(--text-dim); font-size: 0.9rem; }
.btn {
    display: inline-block; padding: 11px 22px; border: 1px solid var(--orange); border-radius: var(--radius);
    background: var(--orange); color: #000; font-weight: bold; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.btn:hover { background: var(--orange-hi); text-shadow: none; box-shadow: var(--glow-lg); }

/* Book page extras */
.side-h { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--orange); font-weight: bold; }
.book-details, .book-faq { margin-top: 36px; max-width: 740px; }
.details-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.details-table th, .details-table td { padding: 8px 16px 8px 20px; border-bottom: 1px solid rgba(255,118,0,0.08); text-align: left; vertical-align: top; }
.details-table tr:last-child th, .details-table tr:last-child td { border-bottom: none; }
.details-table th { color: var(--text-dim); font-weight: normal; width: 38%; }
.cta-sub { margin-top: 6px; font-size: 0.84rem; color: var(--text-dim); }
.cta-box--final { margin-top: 36px; }

/* Where to start (bottom of books page) */
.title-lead { color: var(--text) !important; font-weight: bold; font-size: 1rem !important; }
.page-wrap > .where-start { margin-top: 40px; }

/* Featured free tool (book page sidebar + book cards) */
.freetool { border-color: var(--border-hi); }
.freetool .panel-body { padding: 16px 16px 16px 19px; }
.freetool-name { font-weight: bold; color: var(--orange); font-size: 0.95rem; line-height: 1.3; text-shadow: var(--glow-text); }
.freetool-pitch { margin-top: 6px; font-size: 0.76rem; color: var(--text); }
.freetool-btn { display: block; text-align: center; margin-top: 12px; padding: 10px 12px; font-size: 0.72rem; letter-spacing: 1px; }
.freetool-url { margin-top: 6px; text-align: center; font-size: 0.66rem; color: var(--text-dim); }
.card-tool { margin-top: 8px; font-size: 0.74rem; color: var(--text-dim); }
.card-tool a { font-weight: bold; }
/* Free handbook + podcast (book page sidebar) */
.freebook { border-color: var(--border-hi); }
.freebook .panel-body { padding: 16px 16px 16px 19px; }
.freebook-title { font-weight: bold; color: var(--orange); font-size: 0.98rem; line-height: 1.3; text-shadow: var(--glow-text); }
.freebook-sub { margin-top: 4px; font-size: 0.74rem; color: var(--text-dim); font-style: italic; }
.freebook-copy { margin-top: 10px; font-size: 0.78rem; color: var(--text); }
.freebook-checks { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 0.7rem; color: var(--good); }
.freebook-btn { display: block; text-align: center; margin-top: 12px; padding: 10px 12px; font-size: 0.72rem; letter-spacing: 1px; }
.podcast { margin-top: 16px; padding: 12px 12px 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--orange); background: var(--tint-2); border-radius: var(--radius); }
.podcast-h { font-weight: bold; font-size: 0.78rem; color: var(--orange); }
.podcast-copy { margin-top: 4px; font-size: 0.72rem; color: var(--text-dim); }
.podcast-main { display: inline-block; margin-top: 8px; font-size: 0.74rem; font-weight: bold; }
.podcast-apps { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.podcast-apps a { border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 8px; font-size: 0.66rem; opacity: 0.85; }
.podcast-apps a:hover { border-color: var(--orange); opacity: 1; text-shadow: none; }
/* More books */
.page-wrap > .more-books { margin-top: 48px; }
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mini {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 16px 14px 20px; border-bottom: 1px solid rgba(255,118,0,0.08);
    transition: background var(--ease);
}
.mini:hover { background: var(--tint-2); text-shadow: none; }
.mini img { width: 52px; flex-shrink: 0; border: 1px solid rgba(255,118,0,0.3); }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-title { font-weight: bold; font-size: 0.8rem; line-height: 1.35; }
.mini-sub { font-size: 0.68rem; color: var(--text-dim); margin-top: 2px; }
.mini-sub b { color: var(--good); font-weight: normal; }

/* ── 7. Footer (as /notepad/) ── */
.site-footer { background: var(--tint-1); border-top: 1px solid var(--border); margin-top: 72px; position: relative; }
.site-footer::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent 0%, rgba(255,118,0,0.5) 20%, var(--orange) 50%, rgba(255,118,0,0.5) 80%, transparent 100%);
}
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; padding: 44px 24px 36px; }
.footer-brand { flex: 1 1 200px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand-link { border-bottom: none; display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.footer-brand .logo-text { font-size: 0.78rem; opacity: 0.72; text-shadow: none; }
.footer-brand p { font-size: 0.75rem; color: var(--text-dim); opacity: 0.7; max-width: 220px; line-height: 1.65; }
.footer-cols { flex: 3 1 560px; display: flex; flex-wrap: wrap; row-gap: 24px; }
.footer-col { flex: 1 1 130px; min-width: 120px; padding: 0 16px; border-left: 1px solid rgba(255,118,0,0.08); }
.footer-col:first-of-type { border-left: none; padding-left: 0; }
.footer-col h4 {
    font-size: 0.56rem; text-transform: uppercase; letter-spacing: 3.5px;
    opacity: 0.45; margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,118,0,0.08);
}
.footer-col ul { list-style: none; }
.footer-col a {
    display: block; padding: 3px 0; border-bottom: none;
    font-size: 0.76rem; opacity: 0.45;
    transition: opacity 0.15s ease, padding-left 0.15s ease;
}
.footer-col a:hover { opacity: 1; padding-left: 8px; text-shadow: none; }
.footer-more-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer-more-toggle:not(:checked) ~ .footer-col ul li:nth-child(n+6) { display: none; }
.footer-more-btn {
    flex: 1 1 100%; margin-top: 4px; padding-top: 9px;
    border-top: 1px solid rgba(255,118,0,0.08);
    text-align: center; cursor: pointer; color: var(--orange);
    font-size: 0.62rem; font-weight: bold; text-transform: uppercase; letter-spacing: 2.5px;
    opacity: 0.45; user-select: none;
}
.footer-more-btn:hover { opacity: 0.9; }
.footer-more-btn .footer-more-less { display: none; }
.footer-more-toggle:checked ~ .footer-more-btn .footer-more-less { display: inline; }
.footer-more-toggle:checked ~ .footer-more-btn .footer-more-open { display: none; }
.footer-cols:not(:has(.footer-col ul li:nth-child(6))) .footer-more-btn { display: none; }
.footer-bottom-bar { border-top: 1px solid rgba(255,118,0,0.07); }
.footer-bottom {
    max-width: 1160px; margin: 0 auto; padding: 14px 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.footer-bottom span { font-size: 0.66rem; color: var(--text-dim); opacity: 0.6; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom a { border-bottom: none; font-size: 0.66rem; opacity: 0.45; }
.footer-bottom a:hover { opacity: 0.9; text-shadow: none; }

:where(a, button, select, summary, input):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ── 8. Responsive ── */
@media (max-width: 960px) {
    .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "main"; }
    .detail > * { min-width: 0; }
    .detail-side { position: static; margin-bottom: 28px; }
    .side-panel { display: grid; grid-template-columns: 180px 1fr; }
    .side-cover { padding: 18px 0 18px 21px; }
}
@media (max-width: 900px) {
    #menu-toggle { display: flex; }
    .nav-list {
        display: none; flex-direction: column; align-items: stretch;
        position: fixed; left: 0; right: 0; top: 58px;
        background: rgba(0,0,0,0.98);
        padding: 8px 0 20px; border-top: 2px solid var(--orange);
        box-shadow: 0 20px 48px rgba(0,0,0,0.98), var(--glow);
        max-height: calc(100vh - 58px); overflow-y: auto; z-index: 200;
    }
    .nav-list.open { display: flex; animation: dropDown 0.18s ease forwards; }
    .nav-list > li { display: block; }
    .nav-list > li > a { height: auto; padding: 12px 20px; font-size: 0.8rem; opacity: 0.72; border-bottom: 1px solid rgba(255,118,0,0.06); }
    .nav-list > li > a::after { display: none; }
    .has-dropdown:hover > .dropdown-menu { display: none; }
    .has-dropdown::after { display: none; }
    .dropdown-menu {
        position: static; animation: none !important; box-shadow: none;
        border: none; border-left: 2px solid rgba(255,118,0,0.22); border-radius: 0;
        background: rgba(255,118,0,0.03); padding: 4px 0; margin: 0 0 0 20px; min-width: 0;
    }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
    .header-inner { padding: 0 12px; height: 50px; }
    .nav-list { top: 50px; max-height: calc(100vh - 50px); }
    .logo-text { font-size: 0.84rem; letter-spacing: 1.5px; }
    .logo-img { width: 32px; }
    .page-wrap { padding: 20px 12px 32px; }
    .panel-body { padding: 14px 14px 14px 16px; }
    .panel-header { padding: 10px 12px 10px 14px; }
    .book-card { grid-template-columns: 96px 1fr; gap: 0 14px; padding: 16px 12px 16px 16px; align-items: start; }
    .book-body { display: contents; }
    .book-cover { grid-row: 1 / span 3; }
    .book-cover @media (prefers-reduced-motion: reduce) {
    html, html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
