@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    color-scheme: dark;
    --bg: #07060b;
    --bg-alt: #0e0b16;
    --bg-card: rgba(139, 92, 246, 0.04);
    --bg-card-hover: rgba(139, 92, 246, 0.10);
    --border: rgba(139, 92, 246, 0.16);
    --border-strong: rgba(139, 92, 246, 0.35);
    --text: #e0dce8;
    --text-muted: #9890a8;
    --text-dim: #6d6480;
    --accent: #ec4899;
    --accent-strong: #f472b6;
    --link: #c4b5fd;
    --link-hover: #f0abfc;
    --gradient: linear-gradient(135deg, #c4b5fd 0%, #f0abfc 50%, #ec4899 100%);
    --nav-width: 240px;
    --header-h: 56px;
}

html { background: var(--bg); }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 900px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--link); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--link-hover); }

/* === Site header === */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 6, 11, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.site-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.nav-toggle:hover { color: var(--text); background: var(--bg-card); }

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    margin-right: auto;
}

.site-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid rgba(244, 114, 182, 0.4);
}

.site-brand-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.site-brand-divider { color: var(--text-dim); }
.site-brand-section { color: var(--text-muted); font-weight: 500; }

.site-nav { display: flex; gap: 4px; }

.site-nav a {
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.site-nav a:hover { color: var(--text); background: var(--bg-card); }
.site-nav a.active { color: var(--accent-strong); background: rgba(236, 72, 153, 0.08); }
.site-nav a.ext { color: var(--text-dim); }
.site-nav a.ext:hover { color: var(--text-muted); }

/* === Layout: tree + main === */

.layout {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--nav-width) 1fr;
    gap: 0;
    align-items: start;
}

/* === Tree nav === */

.tree-nav {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 20px 12px 40px 20px;
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.tree-nav::-webkit-scrollbar { width: 6px; }
.tree-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.tree-cat {
    margin-bottom: 4px;
}

/* Direct-link variant (used when a category has no sub-groups, e.g. Items) */
a.tree-cat-direct {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s ease;
    text-decoration: none;
}
a.tree-cat-direct:hover { background: var(--bg-card); color: var(--text); }
a.tree-cat-direct.active {
    background: rgba(236, 72, 153, 0.10);
    color: var(--accent-strong);
}

.tree-cat > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px;
    list-style: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s ease;
    user-select: none;
}

.tree-cat > summary::-webkit-details-marker { display: none; }
.tree-cat > summary:hover { background: var(--bg-card); }

.tree-chevron {
    color: var(--text-dim);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.tree-cat[open] > summary .tree-chevron { transform: rotate(90deg); }

.tree-groups {
    padding: 2px 0 6px 6px;
}

.tree-group {
    margin: 6px 0;
}

.tree-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 6px 10px 4px;
}

.tree-pages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-pages li {
    margin: 1px 0;
}

.tree-pages a,
.tree-pages .tree-page-pending {
    display: block;
    padding: 5px 10px 5px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text-muted);
    transition: all 0.12s ease;
    border-left: 2px solid transparent;
    margin-left: 4px;
}

.tree-pages a:hover {
    color: var(--text);
    background: var(--bg-card);
    border-left-color: var(--border-strong);
}

.tree-pages a.active {
    color: var(--accent-strong);
    background: rgba(236, 72, 153, 0.08);
    border-left-color: var(--accent);
    font-weight: 600;
}

.tree-page-pending {
    color: var(--text-dim);
    cursor: not-allowed;
    font-style: italic;
}

/* === Page === */

.page {
    padding: 28px 36px 64px;
    max-width: 880px;
    min-width: 0;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs .crumb-sep { margin: 0 6px; color: var(--text-dim); }
.breadcrumbs .crumb-current { color: var(--text); }

/* === Entry header === */

.entry-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.entry-portrait {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.15);
    flex-shrink: 0;
}

.entry-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.entry-header h1 {
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.entry-tagline {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

/* === Info grid (quick facts + routes) === */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.info-card h3 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.info-card dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    font-size: 0.86rem;
}

.info-card dt { color: var(--text-dim); }
.info-card dd { color: var(--text); }

.route-list { list-style: none; padding: 0; font-size: 0.88rem; }
.route-list li { padding: 3px 0; }
.route-list strong { color: var(--accent-strong); font-weight: 600; margin-right: 6px; }
.route-note { color: var(--text-muted); font-size: 0.84rem; }

/* === Entry body (markdown content) === */

.entry-body { font-size: 0.99rem; line-height: 1.65; }

.entry-body > h2 {
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin: 28px 0 10px;
    letter-spacing: -0.01em;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.entry-body > h2:first-child { margin-top: 0; }

.entry-body h3 {
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--text);
    margin: 18px 0 6px;
}

.entry-body p, .entry-body ul, .entry-body ol { margin-bottom: 10px; }
.entry-body ul, .entry-body ol { padding-left: 22px; }
.entry-body li { margin-bottom: 3px; }

.entry-body strong { color: var(--text); font-weight: 600; }
.entry-body em { color: var(--text-muted); }

.entry-body blockquote {
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    padding: 10px 14px;
    margin: 12px 0;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
    font-size: 0.94rem;
}

.entry-body code {
    background: rgba(139, 92, 246, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--link);
}

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9rem;
}

.entry-body th, .entry-body td {
    padding: 8px 11px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.entry-body th {
    color: var(--accent-strong);
    font-weight: 600;
    background: var(--bg-card);
    font-size: 0.84rem;
}

.entry-body tr:hover td { background: var(--bg-card); }

/* Markdown <details> blocks (used for long collapsible sections) */
.entry-body details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 12px 0;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.entry-body details[open] {
    border-color: var(--border-strong);
}

.entry-body details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--accent-strong);
    list-style: none;
    user-select: none;
    transition: background 0.12s ease;
}

.entry-body details > summary::-webkit-details-marker { display: none; }
.entry-body details > summary::after {
    content: '+';
    color: var(--text-dim);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}
.entry-body details[open] > summary::after { content: '−'; }
.entry-body details > summary:hover { background: var(--bg-card-hover); }

.entry-body details > *:not(summary) { padding-left: 16px; padding-right: 16px; }
.entry-body details > *:not(summary):last-child { padding-bottom: 14px; }

/* Wiki cross-links */
.wiki-link {
    border-bottom: 1px dotted var(--border-strong);
    color: var(--link);
    transition: all 0.15s ease;
}
.wiki-link:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent);
}
.wiki-link.missing {
    color: var(--text-dim);
    border-bottom-style: dashed;
    border-bottom-color: var(--text-dim);
    cursor: help;
}
.wiki-link.missing:hover { color: var(--text-muted); }

/* === Backlinks card (after content) === */

.backlinks-card {
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.backlinks-card h3 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.backlinks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.backlinks li { font-size: 0.88rem; }
.backlinks a {
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--link);
}
.backlinks a:hover { border-color: var(--border-strong); color: var(--accent-strong); }

/* === Wider page on items section so the table doesn't horizontal-scroll === */
body.section-items .page { max-width: 1200px; }

/* === Items page === */

.items-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.items-filters input[type="search"],
.items-filters select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 10px;
    font: inherit;
    font-size: 0.88rem;
    transition: border-color 0.15s ease;
}

.items-filters input[type="search"] { flex: 1 1 200px; min-width: 160px; }
.items-filters select { min-width: 110px; }

.items-filters input[type="search"]:focus,
.items-filters select:focus { outline: none; border-color: var(--accent); }

.btn-ghost {
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 12px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card); }

.items-count {
    color: var(--text-dim);
    font-size: 0.84rem;
    margin-left: auto;
    padding: 0 6px;
}

.items-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.items-table th, .items-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.items-table thead th {
    color: var(--accent-strong);
    font-weight: 600;
    background: rgba(139, 92, 246, 0.10);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-strong);
}

.items-table tbody tr { transition: background 0.1s ease; }
.items-table tbody tr:hover { background: rgba(139, 92, 246, 0.05); }
.items-table tbody tr:last-child td { border-bottom: none; }
.items-table tbody tr.hidden { display: none; }

.items-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.items-table td.desc-cell { color: var(--text-muted); max-width: 360px; }
.items-table td.buffs-cell { white-space: nowrap; }

.shop-pill, .buff-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 1px 2px 1px 0;
    border: 1px solid transparent;
}

.shop-pill {
    background: rgba(139, 92, 246, 0.10);
    color: var(--link);
    border-color: rgba(139, 92, 246, 0.25);
}

.buff-pill {
    background: rgba(236, 72, 153, 0.10);
    color: var(--accent-strong);
    border-color: rgba(236, 72, 153, 0.25);
}
.buff-pill.buff-comfort   { background: rgba(34, 211, 238, 0.10); color: #67e8f9; border-color: rgba(34, 211, 238, 0.25); }
.buff-pill.buff-allure    { background: rgba(244, 114, 182, 0.10); color: #f9a8d4; border-color: rgba(244, 114, 182, 0.25); }
.buff-pill.buff-femininity, .buff-pill.buff-fem { background: rgba(217, 70, 239, 0.10); color: #f0abfc; border-color: rgba(217, 70, 239, 0.25); }
.buff-pill.buff-submissiveness, .buff-pill.buff-sub { background: rgba(168, 85, 247, 0.10); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.25); }
.buff-pill.buff-energy    { background: rgba(34, 197, 94, 0.10); color: #86efac; border-color: rgba(34, 197, 94, 0.25); }

/* Quest-relevance dot in the items table */
.quest-dot {
    display: inline-block;
    color: var(--accent);
    font-size: 0.7rem;
    line-height: 1;
    margin-left: 4px;
    cursor: help;
}

/* Per-item page styling */
.item-entry .entry-tagline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.item-slot-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--link);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 600;
    font-size: 0.82rem;
}
.item-price {
    color: var(--text-muted);
    font-weight: 600;
}

.buff-list, .flag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.flag-list li { padding: 4px 0; font-size: 0.86rem; }
.flag-list code {
    background: rgba(139, 92, 246, 0.12);
    color: var(--link);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.86em;
}

.quest-card { border-color: var(--border-strong); }
.quest-card h3 { color: var(--accent-strong); }
.quest-card-note {
    color: var(--text-dim);
    font-size: 0.84rem;
    margin-top: 8px;
}

/* === Atlas landing === */

.atlas-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.atlas-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px;
    text-align: left;
    transition: all 0.15s ease;
    color: var(--text);
}

.atlas-tile:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.15);
    color: var(--text);
}

.atlas-tile-count {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.atlas-tile-label {
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.atlas-tile-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.atlas-intro h2 {
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--accent-strong);
    margin: 24px 0 6px;
}

.atlas-intro p { font-size: 0.96rem; color: var(--text-muted); margin-bottom: 6px; }
.atlas-intro p strong { color: var(--text); }

/* === Comments === */

.comments {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.comments h2 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 4px;
}

.comments-note {
    color: var(--text-dim);
    font-size: 0.84rem;
    margin-bottom: 16px;
}

.comments-status {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 8px 0;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin-bottom: 18px;
}

.comments-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.comments-list .author { color: var(--accent-strong); font-weight: 600; font-size: 0.92rem; }
.comments-list .meta { color: var(--text-dim); font-size: 0.8rem; margin-left: 8px; }
.comments-list .body {
    margin-top: 4px;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
}

.comments-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px;
    color: var(--text);
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.15s ease;
}

.comments-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-form-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comments-form-author { color: var(--text-dim); font-size: 0.84rem; }

.comments-form button {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comments-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.comments-form button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Patreon sign-in CTA (shown when not authenticated) */
.comments-signin {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.btn-patreon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f96854 0%, #e7544a 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 2px 12px rgba(249, 104, 84, 0.25);
}
.btn-patreon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(249, 104, 84, 0.4);
    color: #fff;
}

.comments-signin-note {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 10px;
}

/* === Footer === */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    color: var(--text-dim);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-strong); }

/* === Responsive === */

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .tree-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 280px;
        height: calc(100vh - var(--header-h));
        background: var(--bg);
        border-right: 1px solid var(--border-strong);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 15;
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.4);
    }
    .tree-nav.open { transform: translateX(0); }
    .nav-toggle { display: inline-flex; }
    .page { padding: 22px 24px 60px; }
}

@media (max-width: 540px) {
    .site-brand-divider, .site-brand-section { display: none; }
    .page { padding: 18px 16px 56px; }
    .entry-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .entry-portrait { width: 72px; height: 72px; }
    .entry-header h1 { font-size: 1.7rem; }
    .info-card dl { grid-template-columns: 1fr; gap: 1px; }
    .info-card dt { margin-top: 6px; font-size: 0.78rem; }
}
