/*
Theme Name: dds_justicelawhub.com
Theme URI: https://justicelawhub.com/
Author: Eleanor Hart
Description: Monochrome theme for a real estate law blog: graphite, white and ink blue, documentary layout, plain readable typography.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jlhub
*/

/* ---------- Tokens ---------- */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F4F5F7;
    --bg-dark: #111111;
    --bg-side: #FAFAFA;
    --ink: #1A1A1A;
    --accent: #1E3A8A;
    --amber: #D97706;
    --muted: #6B7280;
    --line: #E5E7EB;
    --line-strong: #D1D5DB;
    --f-head: "Inter Tight", "Manrope", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Source Sans 3", "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- Hidden-attribute guards (before component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    border-top: 3px solid var(--accent);
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
p, li, dd, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line-strong); }
th, td { border: 1px solid var(--line-strong); padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--f-head); font-weight: 600; }
pre { overflow-x: auto; background: var(--bg-alt); padding: 1rem 1.2rem; border: 1px solid var(--line); }
code { font-size: 0.92em; }
input, textarea, select, button { font: inherit; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--accent); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Container ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Animated text links ---------- */
.entry-content a, .breadcrumbs a, .sidebar a, .text-link, .page-intro a, .entry-cat a, .entry-tags a, .comment-text a, .notfound a:not(.btn) {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    padding-bottom: 1px;
}
.entry-content a:hover, .breadcrumbs a:hover, .sidebar a:hover, .text-link:hover, .page-intro a:hover, .entry-cat a:hover, .entry-tags a:hover, .comment-text a:hover, .notfound a:not(.btn):hover {
    background-size: 100% 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    border: 1.5px solid transparent;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: #000000; border-color: #000000; color: #FFFFFF; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-ghost-light { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.btn-ghost-light:hover { background: #FFFFFF; color: #111111; }

/* ---------- Header ---------- */
.masthead { background: var(--bg-dark); color: #FFFFFF; }
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #FFFFFF;
    flex: 1 1 520px;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-svg, .brand-logo { width: 48px; height: 48px; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 62ch; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #FFFFFF;
}
.brand-tagline {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #9CA3AF;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.primary-nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.nav-list a {
    display: inline-block;
    color: #E5E7EB;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: #FFFFFF; border-bottom-color: var(--accent); }
.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1.5px solid #FFFFFF;
    border-radius: 2px;
    color: #FFFFFF;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: #FFFFFF; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Page shell & layouts ---------- */
.page-shell { padding: 2rem 0 4.5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    overflow-wrap: break-word;
}
.breadcrumbs .sep { margin: 0 0.35rem; color: var(--line-strong); }
.breadcrumbs .current { color: var(--ink); }

.page-head { margin-bottom: 2rem; }
.page-title, .entry-title { font-size: 2.4rem; margin: 0 0 0.6rem; letter-spacing: -0.03em; }
.page-lead, .page-intro { color: var(--muted); font-size: 1.1rem; margin: 0; }
.empty-state { padding: 1.6rem 1.8rem; border: 1px solid var(--line); background: var(--bg-alt); }

/* ---------- Section titles ---------- */
.sec-title {
    position: relative;
    padding-left: 20px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.035em;
    margin: 0 0 1.4rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 4px;
    background: var(--accent);
}
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.4rem; }
.sec-head .sec-title { margin: 0; }
.text-link { font-family: var(--f-head); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.6rem; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    transition: border-color 0.25s;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: 2;
}
.card:hover { border-color: var(--accent); }
.card:hover::before { transform: scaleY(1); }
.card-thumb { position: relative; overflow: hidden; background: var(--line); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s ease;
}
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.18;
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.card:hover .card-thumb img { filter: grayscale(0) contrast(1); }
.card:hover .card-thumb::after { opacity: 0; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.card-cat { color: var(--ink); font-weight: 600; }
.card-flag { color: var(--amber); font-weight: 700; }
.card-title { font-size: 1.22rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.card-title a { color: var(--ink); transition: color 0.2s; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #374151; font-size: 0.98rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--accent);
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s;
}
.card-more:hover { background-size: 100% 2px; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pager a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pager .page-numbers.dots { border-color: transparent; min-width: 0; padding-inline: 0.3rem; }

/* ---------- Single entry ---------- */
.entry-header { margin-bottom: 1.6rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; color: var(--muted); font-size: 0.92rem; }
.entry-figure { margin: 0 0 2rem; }
.entry-figure img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.32rem; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.8rem 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
.single .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 4.1em;
    line-height: 0.82;
    margin: 0.08em 0.12em 0 0;
    color: var(--accent);
    letter-spacing: -0.04em;
}
blockquote, .wp-block-quote {
    margin: 1.8rem 0;
    padding: 0.4rem 0 0.4rem 1.6rem;
    border-left: 6px solid var(--accent);
    font-style: italic;
    color: #2B2B2B;
    quotes: none;
}
blockquote::before, blockquote::after { content: none; }
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.entry-tags { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.95rem; }
.entry-tags-label { color: var(--muted); }
.page-links { margin-top: 1.6rem; font-weight: 600; }
.alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Sidebar & widgets ---------- */
.sidebar {
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
    min-width: 0;
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.widget-title {
    position: relative;
    padding-left: 14px;
    font-size: 1.12rem;
    margin: 0 0 0.9rem;
    letter-spacing: -0.02em;
}
.widget-title::before { content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 3px; background: var(--accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line-strong); color: var(--ink); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--accent); }
.sidebar .post-date, .sidebar .widget .rss-date { color: var(--muted); font-size: 0.85rem; display: block; }
.sidebar .textwidget, .sidebar p { color: var(--ink); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; margin: 1.2rem 0; max-width: 560px; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
}
.sidebar .search-form { flex-direction: column; }

/* ---------- Comments ---------- */
.comments { margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-left: 1.6rem; }
.comment-card { border: 1px solid var(--line); padding: 1.1rem 1.3rem; margin-bottom: 1rem; background: #FFFFFF; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.5rem; }
.comment-head .avatar { display: block; width: 40px; height: 40px; filter: grayscale(1); }
.comment-author { font-weight: 700; }
.comment-author a { color: var(--ink); }
.comment-date { font-size: 0.85rem; color: var(--muted); }
.comment-pending { color: var(--amber); font-weight: 600; font-size: 0.92rem; }
.comment-reply a { font-family: var(--f-head); font-weight: 600; font-size: 0.9rem; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; display: inline; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 0.92rem; }
.comment-reply-title small { margin-left: 0.8rem; font-size: 0.85rem; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- 404 ---------- */
.notfound-code {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

/* ---------- Front page ---------- */
.fs { padding: 5rem 0; }
.fs-inner { width: 85%; margin-left: auto; margin-right: auto; }
.fs-alt { background: var(--bg-alt); }
.fs-dark { background: var(--bg-dark); color: #FFFFFF; }
.fs-dark .sec-title { color: #FFFFFF; }

/* Hero */
.fs-hero { background: var(--bg-dark); color: #FFFFFF; padding: 5.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero-title {
    font-size: 3.25rem;
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 1.3rem;
}
.hero-lead { color: #9CA3AF; font-size: 1.18rem; max-width: 52ch; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; }

/* Checklist */
.rights-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 3.5rem; align-items: start; }
.rights-intro { min-width: 0; }
.rights-intro p { color: #4B5563; font-size: 1.08rem; }
.rights-list { list-style: none; margin: 0; padding: 0; min-width: 0; border-top: 1px dashed #BFC4CC; }
.rights-item { display: flex; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px dashed #BFC4CC; }
.rights-box {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 2px solid var(--accent);
    background: #FFFFFF;
    margin-top: 0.15rem;
}
.rights-box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 7px;
    height: 13px;
    border: solid var(--accent);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.rights-text { min-width: 0; }
.rights-text h3 { font-size: 1.12rem; margin: 0 0 0.3rem; }
.rights-text p { margin: 0; color: #374151; font-size: 1rem; }

/* Latest */
.fs-latest { background: var(--bg); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.6rem; }
.stat { display: flex; flex-direction: column; gap: 0.8rem; padding: 0.4rem 1.6rem; border-left: 1px solid rgba(255, 255, 255, 0.2); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(3rem, 5.4vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #FFFFFF;
}
.stat-label { color: #9CA3AF; font-size: 0.98rem; line-height: 1.45; }

/* Topic map */
.fs-topics { background: var(--bg); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 0.6rem; }
.topic-tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.8rem 1.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink);
    min-width: 0;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.topic-icon { color: var(--accent); display: block; margin-bottom: 0.6rem; transition: color 0.25s; }
.topic-name { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.topic-desc { color: var(--muted); font-size: 0.97rem; transition: color 0.25s; }
.topic-tile:hover, .topic-tile:focus-visible { background: var(--bg-dark); border-color: var(--bg-dark); color: #FFFFFF; }
.topic-tile:hover .topic-icon, .topic-tile:hover .topic-desc,
.topic-tile:focus-visible .topic-icon, .topic-tile:focus-visible .topic-desc { color: #FFFFFF; }

/* Courthouse silhouette — front page only */
body.jlhub-front::after {
    content: "";
    position: fixed;
    right: 2vh;
    bottom: 2vh;
    width: 340px;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 300' fill='none' stroke='%231A1A1A' stroke-width='2'%3E%3Cpath d='M20 90 L170 18 L320 90 Z'/%3E%3Cpath d='M30 96 H310 V112 H30 Z'/%3E%3Cpath d='M50 112 V250 M74 112 V250 M110 112 V250 M134 112 V250 M206 112 V250 M230 112 V250 M266 112 V250 M290 112 V250'/%3E%3Cpath d='M152 250 V170 H188 V250'/%3E%3Cpath d='M36 250 H304 M24 264 H316 M12 278 H328'/%3E%3Ccircle cx='170' cy='64' r='12'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* ---------- Footer ---------- */
.colophon { background: var(--bg-dark); color: #C9CDD4; padding: 4rem 0 2rem; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.colophon-col { min-width: 0; }
.colophon .widget-title { color: #FFFFFF; }
.colophon .widget, .colophon .widget p, .colophon .textwidget { color: #C9CDD4; font-size: 0.97rem; }
.colophon .widget a { color: #FFFFFF; }
.colophon .widget a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.colophon .widget li { padding: 0.32rem 0; color: #C9CDD4; }
.colophon .post-date { color: #9CA3AF; }
.colophon .widget + .widget { margin-top: 1.6rem; }
.colophon-copy {
    margin: 3rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
    color: #9CA3AF;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    max-width: 880px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1rem 1.6rem;
    background: var(--bg-dark);
    color: #E5E7EB;
    padding: 1.1rem 1.4rem;
    border-left: 4px solid var(--accent);
}
.cookie-text { margin: 0; font-size: 0.95rem; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; flex-basis: 100%; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 0.4rem; }
    .nav-list a { padding: 0.6rem 0; }
    .brand { flex: 1 1 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single .content-area { width: 100%; }
    .fs-inner { width: 100%; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 460px; }
    .rights-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.jlhub-front::after { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-tagline { display: none; }
    .fs { padding: 3.4rem 0; }
    .fs-hero { padding: 3.6rem 0; }
    .hero-title { font-size: 2.3rem; }
    .page-title, .entry-title { font-size: 1.9rem; }
    .card-grid-3, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat, .stat:nth-child(3) { border-left: 0; padding: 1.2rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
    .stat:first-child { border-top: 0; padding-top: 0; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .topic-tile { padding: 1.5rem 1.4rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding: 1.4rem 1.2rem; }
    .search-form { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .comment-list .children { margin-left: 0.8rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}
