/* ==========================================================================
   Nhận định (theo mã) — the editorial archive.
   Builds on stock_publication.css (.stp-*: frame, identity, subnav, masthead).
   Only what the shared system should not know lives here (.snd-*):
     1. the archive index (date | title + excerpt, hairlines between entries);
     2. the empty state;
     3. a scoped quiet re-skin of the one legacy block still on the page, the login invite, whose
        inline CSS is light-on-dark and unreadable on paper. Its behaviour is unchanged. Delete
        block 3 when that component is itself moved to the publication system.
   ========================================================================== */

/* ---- 1. Archive index ----
   (selectors for <p> are prefixed with .snd-page: the shared frame resets `.stp-page p { margin: 0 }`) */
.snd-index { margin: 18px 0 44px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.snd-entry { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 34px; padding: 30px 0 32px; border-bottom: 1px solid var(--rule); }
.snd-date { padding-top: 7px; color: var(--muted); font: 600 .72rem/1.3 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.snd-entry h2 { max-width: 30ch; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.16; letter-spacing: -.024em; }
.snd-entry h2 a { color: var(--ink); text-decoration: none; }
/* the whole entry is the click target; the headline link stretches over it */
.snd-entry h2 a::after { content: ""; position: absolute; inset: 0; }
.snd-entry:hover h2 a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.snd-entry h2 a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.snd-page .snd-excerpt { max-width: 62ch; margin-top: 12px; color: var(--body); font-size: .86rem; line-height: 1.62; }

/* ---- 2. Empty state ---- */
.snd-empty { max-width: 640px; padding: 34px 0 10px; border-top: 2px solid var(--ink); margin: 18px 0 44px; }
.snd-empty-lead { color: var(--ink); font: 500 clamp(1.4rem, 2vw, 1.8rem)/1.25 var(--serif); letter-spacing: -.02em; }
.snd-page .snd-empty-note { max-width: 56ch; margin-top: 12px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.snd-page .snd-empty-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; }
.snd-empty-links a { padding: 4px 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink); font-size: .8rem; font-weight: 650; text-decoration: none; }
.snd-empty-links a:hover { border-bottom-color: var(--gold); }

/* ---- 3. Account utility below the Portfolio Bridge: the login invite (legacy partial, behaviour untouched) ----
   It now sits after the bridge, as a direct child of <main>, so it is inset to the document column here. */
.snd-page > .sl-login-invite { margin: 0 42px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; }
.snd-page .sl-login-invite p { max-width: 62ch; color: var(--body); font-size: .86rem; line-height: 1.6; }
.snd-page .sl-login-invite p strong { color: var(--ink); }
.snd-page .sl-login-invite .sl-li-follow { margin-top: 0; color: var(--muted); font-size: .8rem; }
.snd-page .sl-login-invite .sl-li-btn { padding: 4px 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: none; color: var(--ink); font-size: .82rem; text-decoration: none; }
.snd-page .sl-login-invite .sl-li-btn:hover { border-bottom-color: var(--gold); background: none; color: var(--ink); }
.snd-page .sl-login-invite .sl-li-sub { color: var(--muted); }

@media (max-width: 749px) {
    .snd-entry { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0 26px; }
    .snd-date { padding-top: 0; }
    .snd-entry h2 { max-width: none; font-size: 1.5rem; }
    .snd-page > .sl-login-invite { margin: 0 18px; }
}
