/* The public site areas — blogs (/blogs, /blogs/<user>/<slug>…), Research Arenas
   (/arenas, /arenas/<slug>…) and MathBB Commons (/commons): the shared chrome
   (templates/_public_chrome.html), layout, buttons, cards, badges, tabs,
   forms and the reading typography. Area-specific styles live in
   blog-public.css and arena-public.css, and in commons.html's own <style>.
   Tokens only (var(--…)): the page follows the owner's theme, and admins
   preview the others in dark mode too. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pub-body {
    margin: 0;
    font-family: var(--font-ui);
    background: var(--surface-2);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}
.pub-body a { color: var(--link); }
.pub-body a:hover { color: var(--accent-hover); }
.pub-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Top bar ── */
.pub-topbar { background: var(--sb-bg); color: var(--sb-text); }
.pub-topbar-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 1.25rem;
    height: 56px; display: flex; align-items: center; gap: 1.5rem;
}
/* The logo takes its ink from `color` and its board and BB from
   --logo-accent (templates/_logo.html): the sidebar's palette, as in the app.
   Under .pub-body, and for :hover too, so that `.pub-body a` and its :hover
   can't ink it in the link colours. */
.pub-body .pub-brand, .pub-body .pub-brand:hover {
    display: inline-flex; align-items: center;
    color: var(--sb-text-strong); --logo-accent: var(--sb-accent);
    text-decoration: none; flex-shrink: 0;
}
.pub-brand .pub-brand-mark { display: none; }
/* On a narrow phone the links scroll sideways rather than slide under the
   account buttons. */
.pub-nav {
    display: flex; gap: 0.25rem; flex: 1; min-width: 0;
    overflow-x: auto; scrollbar-width: none;
}
.pub-nav::-webkit-scrollbar { display: none; }
.pub-nav a {
    color: var(--sb-text-dim); text-decoration: none;
    font-size: 0.88rem; font-weight: 500;
    padding: 0.35rem 0.7rem; border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s;
}
.pub-body .pub-nav a:hover { background: var(--sb-bg-hover); color: var(--sb-text-strong); }
.pub-nav a.active { color: var(--sb-text-strong); background: var(--sb-bg-active); }
.pub-account { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
/* Sign out on a blog's custom domain: a POST form holding one button. */
.pub-account-form { display: flex; margin: 0; }
.pub-account-name {
    font-size: 0.84rem; color: var(--sb-text-dim);
    max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Hero band (an index page's or a blog's / arena's own header) ── */
.pub-hero { background: var(--sb-bg); color: var(--sb-text); padding: 2.6rem 1.25rem 2.4rem; }
/* The same content width as .pub-wrap below it (whose max-width includes its
   1.25rem side padding), so hero text lines up with the page. */
.pub-hero-inner { max-width: calc(1080px - 2.5rem); margin: 0 auto; }
.pub-kicker {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--sb-accent); margin: 0 0 0.6rem;
}
.pub-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.15; color: var(--sb-text-strong); margin: 0 0 0.55rem;
}
.pub-hero-lede { font-size: 1.05rem; color: var(--sb-text-dim); max-width: 62ch; margin: 0; }
.pub-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem;
    margin-top: 1.1rem; font-size: 0.86rem; color: var(--sb-text-soft);
}
.pub-hero .pub-body a, .pub-hero a { color: var(--sb-text-strong); }
/* An index page's band (/commons, /blogs, /arenas): the area's name and a
   caption, kept short so the page's own content starts high on the first
   screen, and the same on all three. A band's one control (the blog search,
   Create an arena) sits beside the text, level with its last line, where
   there is room, and under it where there isn't. */
.pub-hero-index { padding: 1.35rem 1.25rem 1.45rem; }
.pub-hero-index .pub-hero-inner {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.9rem 2.5rem;
}
.pub-hero-text { flex: 1 1 480px; min-width: 0; }
.pub-hero-index .pub-hero-title { font-size: 1.8rem; margin-bottom: 0.2rem; }
.pub-hero-index .pub-hero-lede { font-size: 0.97rem; line-height: 1.55; max-width: 96ch; text-wrap: pretty; }
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ── Page layout ── */
.pub-main { flex: 1; width: 100%; }
.pub-wrap { max-width: 1080px; margin: 0 auto; padding: 2.2rem 1.25rem 4rem; }
.pub-wrap-narrow { max-width: 780px; }
.pub-wrap-reading { max-width: 860px; }
.pub-grid-aside {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.4rem; align-items: start;
}
@media (max-width: 860px) {
    .pub-grid-aside { grid-template-columns: minmax(0, 1fr); }
}
.pub-section { margin-top: 2.4rem; }
.pub-section:first-child { margin-top: 0; }
.pub-section-title {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 650; color: var(--text-strong);
    margin: 0 0 0.9rem; display: flex; align-items: baseline; gap: 0.6rem;
}
.pub-section-title .pub-count { font-size: 0.85rem; font-weight: 500; color: var(--text-3); }
.pub-eyebrow {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); margin: 0 0 0.6rem;
}
.pub-meta { font-size: 0.84rem; color: var(--text-3); }
.pub-meta-sep::before { content: '·'; margin: 0 0.45rem; color: var(--text-6); }
.pub-muted { color: var(--text-3); }

/* ── Buttons ── */
.pub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.55rem 1.05rem; border-radius: var(--radius-md);
    font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.pub-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pub-btn:disabled, .pub-btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.pub-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.pub-body .pub-btn-primary, .pub-btn-primary { background: var(--accent); color: var(--text-inverse); }
.pub-body .pub-btn-primary:hover, .pub-btn-primary:hover { background: var(--accent-hover); color: var(--text-inverse); }
.pub-body .pub-btn-secondary, .pub-btn-secondary {
    background: var(--surface-1); color: var(--text-1); border-color: var(--border-4);
}
.pub-body .pub-btn-secondary:hover, .pub-btn-secondary:hover { background: var(--surface-3); color: var(--text-strong); }
.pub-body .pub-btn-danger, .pub-btn-danger { background: var(--danger-btn); color: var(--text-inverse); }
.pub-body .pub-btn-danger:hover, .pub-btn-danger:hover { background: var(--danger); color: var(--text-inverse); }
.pub-body .pub-btn-ghost, .pub-btn-ghost { background: none; color: var(--text-2); }
.pub-body .pub-btn-ghost:hover, .pub-btn-ghost:hover { background: var(--surface-3); color: var(--text-strong); }
/* On the navy bar / hero. */
.pub-body .pub-btn-ghost-dark, .pub-btn-ghost-dark { background: none; color: var(--sb-text-dim); border-color: var(--sb-border-strong); }
.pub-body .pub-btn-ghost-dark:hover, .pub-btn-ghost-dark:hover { background: var(--sb-bg-hover); color: var(--sb-text-strong); }

/* ── Cards ── */
.pub-card {
    position: relative;
    background: var(--surface-1); border: 1px solid var(--border-3);
    border-radius: var(--radius-xl); padding: 1.25rem 1.4rem;
}
.pub-card-link { transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.pub-card-link:hover {
    border-color: var(--accent); box-shadow: 0 6px 22px var(--tint-2); transform: translateY(-1px);
}
/* A card whose title link covers it (no <a> inside <a>, see commons.html). */
.pub-card-stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pub-card-title {
    font-family: var(--font-display);
    font-size: 1.12rem; font-weight: 650; line-height: 1.3; color: var(--text-strong); margin: 0 0 0.35rem;
}
.pub-card-title a { color: inherit; text-decoration: none; }
.pub-body .pub-card-title a:hover { color: var(--accent-hover); }
.pub-card-desc { font-size: 0.93rem; color: var(--text-2); }
.pub-card-desc a { position: relative; z-index: 1; }
.pub-card-foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem;
    margin-top: 0.8rem; font-size: 0.82rem; color: var(--text-3);
}
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }

/* ── Badges, tags, stats ── */
.pub-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.12rem 0.55rem; border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
    background: var(--surface-4); color: var(--text-2);
}
.pub-badge-accent { background: var(--accent-bg); color: var(--accent-deep); }
.pub-badge-success { background: var(--success-bg); color: var(--success-deep); }
.pub-badge-warning { background: var(--warning-bg); color: var(--warning-deep); }
.pub-badge-danger { background: var(--danger-bg); color: var(--danger-strong); }
.pub-badge-muted { background: var(--surface-3); color: var(--text-3); }
.pub-tag {
    display: inline-block; padding: 0.1rem 0.55rem; border-radius: var(--radius-pill);
    font-size: 0.76rem; font-weight: 500; text-decoration: none;
    background: var(--tag-blue-bg); color: var(--tag-blue-fg);
}
.pub-body a.pub-tag:hover { color: var(--tag-blue-fg); text-decoration: underline; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pub-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.pub-stat-value {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1;
    color: var(--text-strong); font-variant-numeric: tabular-nums;
}
.pub-stat-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.pub-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-bg); color: var(--accent-deep);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}

/* ── Tabs (in-page sections; ?tab= in the URL) ── */
.pub-tabs {
    display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--border-2); margin-bottom: 1.6rem;
}
.pub-tabs::-webkit-scrollbar { display: none; }
.pub-tab, .pub-body a.pub-tab {
    padding: 0.65rem 0.95rem; border: none; background: none; cursor: pointer;
    font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-3);
    text-decoration: none; white-space: nowrap;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color 0.15s, box-shadow 0.15s;
}
.pub-body .pub-tab:hover { color: var(--text-strong); }
.pub-tab.active, .pub-tab[aria-selected="true"],
.pub-body a.pub-tab.active, .pub-body a.pub-tab[aria-selected="true"] { color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--accent); }
.pub-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pub-tab .pub-count { font-weight: 500; color: var(--text-3); margin-left: 0.25rem; }

/* ── Forms ── */
.pub-form { display: flex; flex-direction: column; gap: 1.1rem; }
.pub-field { display: flex; flex-direction: column; gap: 0.35rem; }
.pub-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.pub-label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.pub-label em { font-style: normal; font-weight: 400; color: var(--text-3); }
.pub-hint { font-size: 0.8rem; color: var(--text-3); }
.pub-input, .pub-textarea, .pub-select {
    width: 100%; padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-4); border-radius: var(--radius-md);
    background: var(--surface-1); color: var(--text-1);
    font: inherit; font-size: 0.92rem;
}
.pub-textarea { min-height: 8rem; resize: vertical; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.5; }
.pub-input:focus, .pub-textarea:focus, .pub-select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.pub-check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; color: var(--text-2); }
.pub-check input { margin-top: 0.25rem; }
.pub-error { color: var(--danger-strong); font-size: 0.86rem; min-height: 1.2em; }
.pub-dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
    padding: 1.2rem; text-align: center; cursor: pointer;
    border: 1.5px dashed var(--border-5); border-radius: var(--radius-lg);
    background: var(--surface-2); color: var(--text-3); font-size: 0.88rem;
    transition: border-color 0.15s, background 0.15s;
}
.pub-dropzone:hover, .pub-dropzone.is-over { border-color: var(--accent); background: var(--accent-bg); }

/* ── A command to copy (/connect): the text as typed, and an icon-only
   Copy button whose icon turns to a check once copied ── */
.pub-command {
    display: flex; align-items: flex-start; gap: 0.4rem;
    background: var(--surface-3); border: 1px solid var(--border-3);
    border-radius: var(--radius-md); padding: 0.55rem 0.5rem 0.55rem 0.85rem;
    margin: 0.5rem 0 0;
}
.pub-command-text {
    flex: 1; min-width: 0; margin: 0; padding: 0.15rem 0;
    white-space: pre-wrap; overflow-x: auto;
    font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.55; color: var(--text-1);
}
.pub-command-text code { font: inherit; background: none; padding: 0; }
/* Words never break inside (a break after "rhombic-" reads as a hyphenated
   line break); a word too long for the box scrolls within it. */
.pub-command-word { white-space: nowrap; }
.pub-copy-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; cursor: pointer;
    border: none; border-radius: var(--radius-sm); background: none; color: var(--text-3);
}
.pub-copy-btn:hover { background: var(--surface-4); color: var(--text-1); }
.pub-copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pub-copy-btn svg {
    width: 15px; height: 15px; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pub-copy-btn svg + svg, .pub-copy-btn.is-copied svg:first-child { display: none; }
.pub-copy-btn.is-copied svg + svg { display: block; }
.pub-copy-btn.is-copied { color: var(--success-deep); }

/* "Prefer to work from Claude Code? Connect MathBB →": a quiet line where
   a task starts (the arenas directory, the submit page). */
.pub-connect-hint { font-size: 0.84rem; color: var(--text-3); margin: 0.5rem 0 0; }
.pub-connect-hint a { white-space: nowrap; }
.pub-hero .pub-connect-hint { color: var(--sb-text-soft); }

/* ── Notices, empty states, pagination ── */
.pub-notice {
    display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
    padding: 0.7rem 1rem; border-radius: var(--radius-lg); margin-bottom: 1.4rem;
    background: var(--warning-bg); color: var(--warning-deep); border: 1px solid var(--warning-border);
    font-size: 0.9rem;
}
.pub-notice-info { background: var(--accent-bg); color: var(--accent-deep); border-color: var(--accent-faint); }
.pub-empty {
    padding: 2.6rem 1.5rem; text-align: center; color: var(--text-3);
    border: 1.5px dashed var(--border-4); border-radius: var(--radius-xl); background: var(--surface-1);
}
.pub-empty strong { display: block; color: var(--text-2); font-size: 1.02rem; margin-bottom: 0.3rem; }
.pub-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; font-size: 0.9rem; }

/* ── Reading typography for rendered MathBB markdown ──
   rendered-content.css styles theorems, columns, tables, galleries, folds and
   Lean, scoped to .shared-content; these are the element defaults the shared
   views also carry (shared_page.html). */
.shared-content { font-family: var(--font-reading); font-size: 1.04rem; line-height: 1.72; color: var(--text-1); overflow-wrap: break-word; }
.shared-content h1, .shared-content h2, .shared-content h3, .shared-content h4 {
    font-family: var(--font-display); color: var(--text-strong);
    line-height: 1.3; margin: 1.6em 0 0.55em;
}
.shared-content h1 { font-size: 1.6em; }
.shared-content h2 { font-size: 1.32em; }
.shared-content h3 { font-size: 1.12em; }
.shared-content > :first-child { margin-top: 0; }
.shared-content p { margin: 0 0 0.9em; }
.shared-content ul, .shared-content ol { margin: 0 0 0.9em; padding-left: 1.6em; }
.shared-content li { margin: 0.2em 0; }
/* :not(.mb-lean-swap *): the Lean formalization frame brings its own padding,
   background and gutter (docs/lean.md). */
.shared-content pre:not(.mb-lean-swap *) { background: var(--surface-3); padding: 0.8rem 1rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.88em; }
.shared-content code { background: var(--surface-4); padding: 0.12rem 0.32rem; border-radius: var(--radius-xs); font-size: 0.88em; font-family: var(--font-mono); }
.shared-content pre code { background: none; padding: 0; }
.shared-content blockquote { border-left: 3px solid var(--border-4); margin: 0 0 0.9em; padding: 0.1em 0 0.1em 1rem; color: var(--text-3); }
.shared-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0.5rem 0; }
.shared-content iframe { border: none; max-width: 100%; }
.shared-content hr { border: none; border-top: 1px solid var(--border-2); margin: 2em 0; }
.shared-content .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.2em 0; }
.shared-content .model-viewer-container {
    margin: 0.5rem 0; border: 1px solid var(--border-3); border-radius: var(--radius-md);
    background: var(--surface-2); overflow: hidden; padding: 8px;
}
.shared-content .inline-svg-container {
    display: block; margin: 0.5rem auto; text-align: center; max-width: 100%;
    border: 1px solid var(--border-3); border-radius: var(--radius-md); background: var(--surface-2);
    overflow: visible; padding: 8px;
}
.shared-content .inline-svg-container svg { width: 100%; height: 100%; }
.shared-content a.eq-ref { color: inherit; text-decoration: none; }
.shared-content a.eq-ref:hover { color: var(--accent); text-decoration: underline; }
.shared-content .eq-ref-unresolved { color: var(--danger); cursor: help; }

/* ── Other people's LaTeX outside an .mb-untrusted block ──
   Arena symbols, exact values and card excerpts (ArenaPublic.renderTex,
   ArenaChart.renderSymbol, the excerpts' auto-render). KaTeX's maxSize caps
   \rule but not a negative \kern, \hspace, \mskip or a \raisebox offset, so
   a formula could paint far outside its box and over the page. Each formula
   in a .mb-tex-safe element becomes a clipped inline-block, lowered by the
   depth of KaTeX's line box so it still sits on the baseline. The reasoning
   is in style.css, which carries the same rule for the app. */
.mb-tex-safe .katex {
    display: inline-block; box-sizing: border-box;
    max-width: calc(100% + 0.3em); max-height: 4em;
    padding: 0.12em 0.15em; margin: -0.12em -0.15em;
    overflow: hidden; contain: paint; vertical-align: -0.364em;
}

/* ── Footer ── */
.pub-footer { border-top: 1px solid var(--border-2); background: var(--surface-1); }
.pub-footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.25rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
    font-size: 0.82rem; color: var(--text-3);
}
.pub-footer-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.pub-footer a { color: var(--text-3); text-decoration: none; }
.pub-body .pub-footer a:hover { color: var(--accent-hover); text-decoration: underline; }

@media (max-width: 640px) {
    .pub-topbar-inner { gap: 0.6rem; }
    .pub-brand .mathbb-logo-lockup { display: none; }
    .pub-brand .pub-brand-mark { display: block; }
    .pub-nav a { padding: 0.35rem 0.45rem; font-size: 0.82rem; }
    .pub-account-name { display: none; }
    .pub-hero { padding: 2rem 1rem; }
    .pub-hero-index { padding: 1.1rem 1rem 1.2rem; }
    .pub-hero-index .pub-hero-inner { gap: 0.8rem; }
    .pub-hero-index .pub-hero-title { font-size: 1.5rem; }
    .pub-hero-index .pub-hero-lede { font-size: 0.93rem; line-height: 1.5; }
    .pub-wrap { padding: 1.6rem 1rem 3rem; }
}
/* A phone: Log in stays — a reader arriving from a shared link may well
   have an account — as a compact text button, and the bar makes room around
   it instead. */
@media (max-width: 480px) {
    .pub-topbar-inner { gap: 0.5rem; padding: 0 1rem; }
    .pub-nav { gap: 0; }
    .pub-nav a { padding: 0.35rem 0.3rem; font-size: 0.8rem; }
    .pub-account { gap: 0.3rem; }
    .pub-account .pub-btn { padding: 0.35rem 0.55rem; }
    .pub-account .pub-btn-ghost-dark { border-color: transparent; }
}
/* Too narrow for all three areas beside the account buttons. On the blog and
   arena pages Commons gives way, as the one area that is neither; the footer
   still links it. On the Commons itself its own link stays, the three drawing
   closer on a 360px phone, until not even that fits beside Log in and Sign up:
   below 360px it gives way there too, rather than leave the bar's sideways
   scroll to cut a link off mid-word, and the hero below names the page.
   (The links have no classes of their own in _public_chrome.html, hence the
   href.) */
@media (max-width: 400px) {
    .pub-nav a[href="/commons"]:not(.active) { display: none; }
}
@media (min-width: 360px) and (max-width: 370px) {
    .pub-nav a.active[href="/commons"],
    .pub-nav a.active[href="/commons"] ~ a { padding: 0.35rem 0.2rem; }
}
@media (max-width: 359px) {
    .pub-nav a[href="/commons"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pub-card-link, .pub-btn, .pub-tab { transition: none; }
    .pub-card-link:hover { transform: none; }
}
