:root {
    --bg: #0a0a0a;
    --bg-side: #111111;
    --bg-hover: #161616;
    --fg: #ededed;
    --fg-dim: #888888;
    --fg-faint: #4a4a4a;
    --line: #1d1d1d;
    --line-bold: #2c2c2c;
    --accent: #c5ff3d;
    --accent-dim: #8fbc1d;
    --accent-fg: #0a0a0a;

    --font-display: 'Space Grotesk', 'Fira Sans', sans-serif;
    --font-body: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    z-index: 1000;
    pointer-events: none;
}

::selection {
    background: #ff2d8a;
    color: #ffffff;
}

.copy-toast {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--accent);
    color: var(--accent-fg);
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 0 2px var(--accent-fg);
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
    white-space: nowrap;
}

.copy-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--line-bold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--line-bold) var(--bg);
}

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

button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ── Layout ─────────────────────────────────────────────────────── */

.layout {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    gap: 0;
}

.container {
    width: 760px;
    flex-shrink: 0;
    padding: 0;
    border-left: 1px solid var(--line-bold);
    border-right: 1px solid var(--line-bold);
}

.vendor-column,
.preview-panel {
    position: sticky;
    top: 0;
    width: 320px;
    height: 100vh;
    padding: 56px 22px 30px;
    background: var(--bg-side);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    flex-shrink: 0;
}

.preview-panel {
    direction: rtl;
}

.preview-panel > * {
    direction: ltr;
}

.vendor-heading,
.preview-heading {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.vendor-heading::before,
.preview-heading::before {
    content: '// ';
    color: var(--accent);
}

.vendor-posts {
    counter-reset: vp;
    display: flex;
    flex-direction: column;
}

.vendor-posts .post {
    counter-increment: vp;
    padding: 14px 0 14px 4px;
    gap: 10px;
}

.vendor-posts .post .post-score {
    min-width: 36px;
    align-items: flex-start;
}

.vendor-posts .post .post-score::before {
    content: counter(vp, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-faint);
    letter-spacing: 0.05em;
}

.vendor-posts .post .score-num {
    display: none;
}

.vendor-posts .post .brand-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.vendor-posts .post-content h2 {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.vendor-posts .post-summary {
    font-size: 12px;
    line-height: 1.45;
}

.vendor-posts .post-meta {
    font-size: 10px;
}

.vendor-posts .post:hover {
    background: var(--bg-hover);
    box-shadow: inset 3px 0 0 var(--accent);
}

.vendor-posts .post.active {
    background: var(--accent);
    color: var(--accent-fg);
}

.vendor-posts .post.active .post-score::before,
.vendor-posts .post.active .post-content h2 a,
.vendor-posts .post.active .post-meta {
    color: var(--accent-fg);
}

/* ── Header ─────────────────────────────────────────────────────── */

header {
    padding: 56px 32px 24px;
    border-bottom: 3px solid var(--accent);
    background: var(--bg);
}

header h1 {
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: var(--fg);
    margin-bottom: 16px;
}

header h1 .logo {
    display: inline-block;
    color: inherit;
}

header h1 .logo:hover {
    color: var(--accent);
}

header h1 .logo-dot {
    display: inline-block;
    width: 0.26em;
    height: 0.26em;
    background: var(--accent);
    margin-left: 0.08em;
    vertical-align: baseline;
}

header h1 .logo:hover .logo-dot {
    background: var(--fg);
}

.header-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.header-meta::before {
    content: '// ';
    color: var(--accent);
}

.header-meta .sep {
    margin: 0 10px;
    color: var(--fg-faint);
}

.sync-bar {
    letter-spacing: 0;
    color: var(--fg-dim);
}

.status-notice {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: #ff8c1a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 24px;
    padding: 8px 12px;
    border-left: 2px solid #ff8c1a;
    background: rgba(255, 140, 26, 0.06);
}

.status-notice::before {
    content: '// ';
    color: #ff8c1a;
}

.sync-bar__filled {
    color: var(--accent);
}

.sync-bar__empty {
    color: #444;
}

.sync-text__last {
    display: none;
}

.next-sync:hover .sync-text__next {
    display: none;
}

.next-sync:hover .sync-text__last {
    display: inline;
}

.header-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.subtitle {
    display: none;
}

/* Lang switcher: text codes [UK] [PL] [EN] */
.lang-switcher {
    display: flex;
    gap: 0;
    border: 1px solid var(--line-bold);
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    color: var(--fg-dim);
    padding: 7px 12px;
    border: none;
    border-right: 1px solid var(--line-bold);
    transition: none;
    cursor: pointer;
}

.lang-btn:last-child {
    border-right: none;
}

.lang-btn:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--fg);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--accent-fg);
}

.lang-btn img {
    display: none;
}

/* Only-new — square checkbox */
.only-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border: 1px solid var(--line-bold);
}

.only-new:hover {
    background: var(--bg-hover);
}

.only-new__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.only-new__track {
    position: relative;
    width: 14px;
    height: 14px;
    background: transparent;
    border: 1.5px solid var(--fg-dim);
    transition: none;
}

.only-new__thumb {
    display: none;
}

.only-new__input:checked ~ .only-new__track {
    background: var(--accent);
    border-color: var(--accent);
}

.only-new__input:checked ~ .only-new__track::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid var(--accent-fg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.only-new__input:focus-visible ~ .only-new__track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.only-new__label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.only-new:hover .only-new__label,
.only-new__input:checked ~ .only-new__label {
    color: var(--fg);
}

/* Reset button */
.read-reset {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.read-reset:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.read-reset::before {
    content: '↺ ';
}

/* ── Empty state ───────────────────────────────────────────────── */

.empty {
    color: var(--fg-dim);
    padding: 60px 32px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.empty::before {
    content: '— ';
    color: var(--accent);
}

.empty::after {
    content: ' —';
    color: var(--accent);
}

.empty code {
    background: var(--bg-hover);
    padding: 2px 6px;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* ── Posts list ─────────────────────────────────────────────────── */

.container > .posts {
    padding: 0 32px;
}

.posts {
    display: flex;
    flex-direction: column;
}

.post {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 22px 0 22px 16px;
    margin-left: -16px;
    border-bottom: 1px solid var(--line);
    transition: none;
}

.post:last-child {
    border-bottom: none;
}

.post:hover {
    background: var(--bg-hover);
    box-shadow: inset 4px 0 0 var(--accent);
}

.post.active {
    background: var(--accent);
    color: var(--accent-fg);
    box-shadow: none;
}

.post-score {
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 2px;
}

.score-num {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.post.active .score-num {
    color: var(--accent-fg);
}

.brand-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.post.active .brand-icon {
    filter: brightness(0);
}

.post-content {
    flex: 1;
    min-width: 0;
    padding-right: 32px;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    padding-right: 24px;
}

.post-content h2 a {
    color: var(--fg);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.post-content h2 a:hover {
    color: var(--accent);
}

.post.active .post-content h2 a {
    color: var(--accent-fg);
}

.post.active .post-content h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.post-summary {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--fg-dim);
    line-height: 1.55;
    margin-top: 4px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.post.active .post-summary {
    color: var(--accent-fg);
    opacity: 0.85;
}

.post-explanation {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--fg);
    line-height: 1.55;
    margin-top: 8px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    border-left: 3px solid var(--accent);
    background: rgba(197, 255, 61, 0.05);
    padding: 10px 12px;
}

.post.active .post-explanation {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-fg);
    border-left-color: var(--accent-fg);
}

.post.explaining .post-explanation::after {
    content: '▍';
    animation: blink 1s steps(1) infinite;
    color: var(--accent);
    margin-left: 2px;
}

.post.active.explaining .post-explanation::after {
    color: var(--accent-fg);
}

@keyframes blink {
    50% { opacity: 0 }
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post.active .post-meta {
    color: var(--accent-fg);
}

.post-meta .time::before {
    content: '◇ ';
    color: var(--accent);
}

.post.active .post-meta .time::before {
    color: var(--accent-fg);
}

.flair {
    padding: 2px 7px;
    border: 1px solid var(--fg-faint);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post.active .flair {
    border-color: var(--accent-fg);
    color: var(--accent-fg);
}

.post-new-badge {
    display: inline-block;
    padding: 2px 7px;
    margin-right: 8px;
    background: var(--accent);
    color: var(--accent-fg);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: 2px;
    line-height: 1.2;
}

.post.active .post-new-badge {
    background: var(--accent-fg);
    color: var(--accent);
}

.post-external {
    display: none;
}

/* ── Post menu (⋯) ─────────────────────────────────────────────── */

.post-menu {
    position: absolute;
    top: 18px;
    right: 12px;
}

.post-menu-trigger {
    background: none;
    border: none;
    color: var(--fg-faint);
    cursor: pointer;
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.1s ease, color 0.1s ease;
}

.post:hover .post-menu-trigger,
.post.active .post-menu-trigger {
    opacity: 1;
}

.post.active .post-menu-trigger {
    color: var(--accent-fg);
}

.post-menu-trigger:hover {
    color: var(--accent);
}

.post.active .post-menu-trigger:hover {
    color: var(--bg);
}

.post-menu-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--accent);
    padding: 0;
    min-width: 180px;
    z-index: 10;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.post-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    border-bottom: 1px solid var(--line-bold);
}

.post-menu-item:last-child {
    border-bottom: none;
}

.post-menu-item:hover {
    background: var(--accent);
    color: var(--accent-fg);
}

.post-menu-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.post-menu-item:hover svg {
    color: var(--accent-fg);
}

.post.is-read {
    display: none;
}

/* ── Preview panel ──────────────────────────────────────────────── */

.preview-content {
    opacity: 0;
    transition: opacity 0.1s;
}

.preview-content.active {
    opacity: 1;
}

.preview-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.preview-meta {
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-bold);
}

.post-score-inline {
    color: var(--accent);
    font-weight: 700;
}

.preview-image {
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid var(--line-bold);
    display: block;
}

.preview-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--fg-dim);
    line-height: 1.7;
    word-break: break-word;
}

.preview-text pre {
    overflow-x: auto;
    white-space: pre-wrap;
    background: var(--bg);
    border: 1px solid var(--line-bold);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--fg);
}

.preview-text code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent);
    background: var(--bg-hover);
    padding: 1px 4px;
}

.preview-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.preview-text a:hover {
    background: var(--accent);
    color: var(--accent-fg);
    text-decoration: none;
}

.preview-text p {
    margin-bottom: 10px;
}

.preview-text ul, .preview-text ol {
    margin: 10px 0;
    padding-left: 22px;
}

.preview-text blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 14px;
    color: var(--fg-faint);
    margin: 10px 0;
    font-style: italic;
}

.preview-title-link {
    color: var(--fg);
}

.preview-title-link:hover {
    color: var(--accent);
}

/* ── Go-top ─────────────────────────────────────────────────────── */

.go-top-wrap {
    position: sticky;
    bottom: 24px;
    height: 0;
    pointer-events: none;
    z-index: 100;
}

.go-top {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--accent-fg);
    border: 2px solid var(--accent-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.15s, transform 0.15s;
}

.go-top svg {
    width: 22px;
    height: 22px;
}

.go-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.go-top:hover {
    background: var(--bg);
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 56px 48px 48px;
    border-top: 3px solid var(--accent);
    background: var(--bg);
    font-family: var(--font-mono);
    color: var(--fg-dim);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line-bold);
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--fg);
    text-transform: lowercase;
}

.footer-brand-dot {
    display: inline-block;
    width: 0.26em;
    height: 0.26em;
    background: var(--accent);
    margin-left: 0.08em;
    vertical-align: baseline;
}

.footer-year {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-year::before {
    content: '// ';
    color: var(--accent);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-dim);
    margin: 22px 0 44px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-tagline::before {
    content: '// ';
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.footer-col h4::before {
    content: '// ';
    color: var(--accent);
}

.footer-col-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 18px 0 8px;
}

.footer-col-sub:first-of-type {
    margin-top: 0;
}

.footer-col-sub::before {
    content: '· ';
    color: var(--accent);
}

.footer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-list li {
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--fg-dim);
    letter-spacing: 0.04em;
}

.footer-list-bold li {
    color: var(--fg);
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.footer-lang-code,
.footer-time {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(197, 255, 61, 0.08);
    padding: 2px 7px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-width: 52px;
    display: inline-block;
    text-align: center;
}

.footer-steps {
    list-style: none;
    counter-reset: fstep;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-steps li {
    counter-increment: fstep;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 28px;
    position: relative;
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.footer-steps li::before {
    content: counter(fstep, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
}

.footer-step-name {
    font-weight: 700;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
}

.footer-step-meta {
    color: var(--fg-faint);
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.footer-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-tags li {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border: 1px solid var(--line-bold);
}

.footer-note {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-faint);
    line-height: 1.6;
    letter-spacing: 0.04em;
    margin-top: 6px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line-bold);
}

.footer-bottom-item {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ── Mobile ─────────────────────────────────────────────────────── */

.post-expand {
    display: none;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .layout {
        flex-direction: column;
    }

    .container {
        width: 100%;
        border: none;
    }

    .container > .posts {
        padding: 0 16px;
    }

    .preview-panel {
        display: none;
    }

    .vendor-column {
        display: none;
    }

    header {
        padding: 32px 16px 18px;
    }

    header h1 {
        font-size: 44px;
        margin-bottom: 12px;
    }

    .header-meta {
        font-size: 10px;
        margin-bottom: 18px;
    }

    .header-row {
        justify-content: flex-start;
        gap: 8px;
    }

    .post {
        cursor: pointer;
        padding: 18px 16px 18px 20px;
        margin-left: -16px;
        margin-right: -16px;
        align-items: baseline;
    }

    .post-score {
        min-width: 48px;
        padding-top: 0;
        gap: 10px;
    }

    .score-num {
        font-size: 18px;
    }

    .brand-icon {
        width: 22px;
        height: 22px;
    }

    .post-content {
        padding-right: 0;
    }

    .post-content h2 {
        font-size: 18px;
        line-height: 1.32;
        margin-bottom: 6px;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding-right: 36px;
    }

    .post-content h2 > a:not(.post-external) {
        flex: 1;
        pointer-events: none;
    }

    .post-summary {
        font-size: 16px;
    }

    .post-meta {
        font-size: 11px;
        gap: 10px;
    }

    .flair {
        font-size: 11px;
    }

    .post-external {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-family: var(--font-mono);
        font-size: 22px;
        line-height: 1;
        color: var(--accent);
        background: transparent;
        border: 1px solid var(--accent);
    }

    .post-external:active {
        background: var(--accent);
        color: var(--accent-fg);
    }

    .post-menu-trigger {
        opacity: 1;
        padding: 6px 10px;
        font-size: 22px;
        color: var(--fg-dim);
    }

    .post-expand {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    .post.instant-collapse .post-expand {
        transition: none;
    }

    .post.expanded .post-expand {
        grid-template-rows: 1fr;
    }

    .post-expand-inner {
        overflow: hidden;
        min-height: 0;
    }

    .post.expanded .post-expand-inner {
        padding-top: 14px;
    }

    .post-expand .preview-image {
        width: 100%;
        margin-bottom: 12px;
        border: 1px solid var(--line-bold);
    }

    .post-expand .preview-gallery {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .post-expand .preview-text {
        font-size: 15px;
        color: var(--fg-dim);
        line-height: 1.65;
    }

    .post-expand h3 {
        display: none;
    }

    .post.expanded {
        background: var(--bg-hover);
        box-shadow: inset 4px 0 0 var(--accent);
    }

    .post.expanded .post-score {
        display: none;
    }

    .go-top {
        right: 16px;
        bottom: 16px;
    }

    .site-footer {
        padding: 36px 16px 32px;
    }

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-brand {
        font-size: 36px;
    }

    .footer-tagline {
        font-size: 11px;
        margin: 18px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
