Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

23.6 KB
Raw Blame
/* ── Mercury Blog ───────────────────────────────────────────────────────
 * Editorial layout for /blog: a serif display face for headlines, the site
 * sans for body, generous whitespace, covers with soft corners. Uses the
 * site tokens so light and dark follow the rest of mercuryagent.sh.
 */
.mj-root {
  --mj-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mj-ink: var(--ifm-heading-color);
  --mj-body: var(--ifm-color-content);
  --mj-dim: color-mix(in srgb, var(--ifm-color-content) 68%, transparent);
  --mj-line: var(--mx-site-line);
  --mj-surface: var(--ifm-background-surface-color);
  --mj-accent: var(--ifm-color-primary);
  --mj-radius: 18px;
  --mj-max: 1200px;
  --mj-read: 700px;
}

.mj-page, .mj-post { max-width: var(--mj-max); min-width: 0; width: 100%; margin: 0 auto; padding: 56px 24px 96px; box-sizing: border-box; }

/* ── index: hero ─────────────────────────────────────────────────────── */
.mj-eyebrow {
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mj-accent); margin: 0 0 18px;
}
.mj-hero { max-width: 880px; margin-bottom: 56px; }
.mj-hero-title {
  font-family: var(--mj-serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.015em;
  color: var(--mj-ink); margin: 0 0 18px;
}
.mj-hero-intro { font-size: 1.12rem; color: var(--mj-dim); max-width: 640px; margin: 0 0 8px; }
.mj-search {
  margin-top: 28px; display: flex; align-items: center; gap: 10px;
  max-width: 520px; padding: 12px 16px; border: 1px solid var(--mj-line);
  border-radius: 999px; background: var(--mj-surface); color: var(--mj-dim);
  transition: border-color .15s, box-shadow .15s;
}
.mj-search:focus-within { border-color: var(--mj-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mj-accent) 14%, transparent); }
.mj-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--mj-ink); }
.mj-search input::placeholder { color: var(--mj-dim); }

/* ── index: featured ─────────────────────────────────────────────────── */
.mj-featured { margin-bottom: 64px; }
.mj-featured-link {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
  color: inherit; text-decoration: none !important;
}
.mj-featured-title {
  font-family: var(--mj-serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.08; color: var(--mj-ink); margin: 14px 0 14px;
}
.mj-featured-desc { font-size: 1.08rem; color: var(--mj-body); margin: 0 0 22px; }
.mj-readmore { font-weight: 600; color: var(--mj-accent); }
.mj-featured-link:hover .mj-readmore span { margin-left: 4px; }
.mj-featured-link:hover .mj-cover { transform: scale(1.012); }

/* ── covers ──────────────────────────────────────────────────────────── */
.mj-cover {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--mj-radius); background: var(--mj-surface);
  transition: transform .35s ease;
}
.mj-cover-fallback { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--mj-accent) 30%, transparent), transparent 60%), var(--mj-surface); }

/* ── index: controls ─────────────────────────────────────────────────── */
.mj-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 36px; border-top: 1px solid var(--mj-line); border-bottom: 1px solid var(--mj-line);
}
.mj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mj-chips button {
  font: inherit; font-size: 0.9rem; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--mj-line); background: transparent; color: var(--mj-body);
  transition: background .15s, color .15s, border-color .15s;
}
.mj-chips button:hover { border-color: var(--mj-ink); color: var(--mj-ink); }
.mj-chips button.is-on { background: var(--mj-ink); border-color: var(--mj-ink); color: var(--ifm-background-color); }
.mj-controls-right { display: flex; gap: 14px; margin-left: auto; }
.mj-select { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--mj-dim); }
.mj-select select {
  font: inherit; font-size: 0.9rem; color: var(--mj-ink); background: transparent;
  border: 1px solid var(--mj-line); border-radius: 10px; padding: 6px 10px; cursor: pointer;
}

/* ── index: grid ─────────────────────────────────────────────────────── */
.mj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.mj-card {
  --mj-card-bg: color-mix(in srgb, var(--mj-surface) 60%, var(--ifm-background-color));
  display: flex; height: 100%; border: 1px solid var(--mj-line); border-radius: 22px; background: var(--mj-card-bg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mj-card:hover {
  border-color: color-mix(in srgb, var(--mj-ink) 22%, var(--mj-line)); transform: translateY(-2px);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.35);
}
.mj-card-link { display: flex; flex-direction: column; width: 100%; padding: 10px; color: inherit; text-decoration: none !important; border-radius: inherit; }
.mj-card-link:focus-visible { outline: 2px solid var(--mj-accent); outline-offset: 3px; }
.mj-card-media { border-radius: 14px; overflow: hidden; }
.mj-card-media .mj-cover { border-radius: 0; }
.mj-card-link:hover .mj-cover { transform: scale(1.03); }
.mj-card-link:hover .mj-card-title { color: var(--mj-accent); }
.mj-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 14px 8px; }
.mj-card-title { font-family: var(--mj-serif); font-weight: 400; font-size: 1.58rem; line-height: 1.12; color: var(--mj-ink); margin: 0; transition: color .15s; }
.mj-card-desc { color: var(--mj-body); font-size: 0.96rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mj-byline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }
.mj-card .mj-byline { padding-top: 14px; margin-top: auto; border-top: 1px solid var(--mj-line); }
.mj-card-desc + .mj-byline { margin-top: auto; }
.mj-card-body > .mj-card-desc { margin-bottom: 8px; }
.mj-byline-author { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--mj-dim); }
.mj-byline-author img { border-radius: 50%; }

.mj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--mj-dim); }
.mj-meta-cat { font-weight: 600; color: var(--mj-ink); }

.mj-empty { padding: 48px 0; color: var(--mj-dim); font-size: 1.05rem; }
.mj-empty button { font: inherit; color: var(--mj-accent); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.mj-index-foot { display: flex; gap: 22px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--mj-line); font-size: 0.86rem; }
.mj-index-foot a { color: var(--mj-dim); }

/* ── article ─────────────────────────────────────────────────────────── */
.mj-post-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.mj-back { display: inline-block; font-size: 0.86rem; color: var(--mj-dim); margin-bottom: 32px; }
.mj-post-cat {
  display: block; font-family: var(--ifm-font-family-monospace); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mj-accent); margin-bottom: 18px;
}
.mj-post-title {
  font-family: var(--mj-serif); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.05; letter-spacing: -0.015em; color: var(--mj-ink); margin: 0 0 20px;
}
.mj-post-dek { font-size: 1.22rem; line-height: 1.5; color: var(--mj-body); max-width: 680px; margin: 0 auto 28px; }
.mj-post-byline { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mj-post-authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.mj-post-author { display: inline-flex; align-items: center; gap: 10px; text-align: left; color: inherit; text-decoration: none !important; }
.mj-post-author img { border-radius: 50%; }
.mj-post-author strong { display: block; font-size: 0.95rem; color: var(--mj-ink); font-weight: 600; }
.mj-post-author em { display: block; font-style: normal; font-size: 0.82rem; color: var(--mj-dim); }
.mj-post-banner {
  /* Whole cover, never cropped (some covers carry text), but capped so it
     doesn't fill the screen: 16:9 at most ~405px tall. */
  width: min(100%, 720px); aspect-ratio: 16 / 9; margin: 0 auto 56px;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--mj-line); background: var(--mj-surface);
}
.mj-post-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* reading progress */
.mj-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--ifm-z-index-fixed) + 10); pointer-events: none; }
.mj-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transition: transform 80ms linear;
  background: linear-gradient(90deg, var(--mj-accent), #f0b26a);
}
.mj-progress-pill {
  position: fixed; left: 50%; bottom: 20px; z-index: var(--ifm-z-index-fixed);
  display: none; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--mj-ink); cursor: pointer;
  background: color-mix(in srgb, var(--ifm-background-color) 82%, transparent);
  border: 1px solid var(--mj-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity 180ms ease, transform 180ms ease;
}
.mj-post.no-toc .mj-progress-pill { display: inline-flex; }
.mj-progress-pill.is-on { opacity: 1; transform: translate(-50%, 0); }
.mj-progress-pill svg { transform: rotate(-90deg); }
.mj-ring-bg, .mj-ring { fill: none; stroke-width: 2.4; }
.mj-ring-bg { stroke: var(--mj-line); }
.mj-ring { stroke: var(--mj-accent); stroke-linecap: round; stroke-dasharray: 50.27; transition: stroke-dashoffset 80ms linear; }

.mj-post-layout { display: grid; grid-template-columns: minmax(0, var(--mj-read)); justify-content: center; }
.mj-post-layout.has-toc { grid-template-columns: 220px minmax(0, var(--mj-read)) 220px; gap: 48px; }
.mj-post-toc { position: sticky; top: calc(var(--ifm-navbar-height) + 28px); align-self: start; font-size: 0.86rem; }
.mj-toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mj-toc-head p { font-weight: 600; color: var(--mj-ink); margin: 0; }
.mj-toc-left { font-size: 0.76rem; color: var(--mj-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mj-toc-meter { height: 2px; border-radius: 2px; background: var(--mj-line); overflow: hidden; margin-bottom: 14px; }
.mj-toc-meter span { display: block; height: 100%; background: var(--mj-accent); transform-origin: 0 50%; transition: transform 80ms linear; }
.mj-post-toc a { display: block; padding-left: 10px; margin-left: -11px; border-left: 1px solid transparent; transition: color 120ms ease, border-color 120ms ease; }
.mj-post-toc a.is-active { color: var(--mj-ink); border-left-color: var(--mj-accent); }
.mj-post-toc ul { list-style: none; padding-left: 0; margin: 0; }
.mj-post-toc ul ul { padding-left: 12px; }
.mj-post-toc li { margin: 6px 0; }
.mj-post-toc a { color: var(--mj-dim); }
.mj-post-toc a:hover { color: var(--mj-ink); text-decoration: none; }

/* prose */
.mj-prose { font-size: 1.1rem; line-height: 1.75; color: var(--mj-body); }
.mj-prose > p:first-child { font-size: 1.2rem; }
.mj-prose h2 { font-family: var(--mj-serif); font-weight: 400; font-size: 2rem; line-height: 1.15; color: var(--mj-ink); margin: 2.4em 0 0.6em; letter-spacing: -0.01em; }
.mj-prose h3 { font-size: 1.22rem; font-weight: 600; color: var(--mj-ink); margin: 2em 0 0.5em; }
.mj-prose p, .mj-prose ul, .mj-prose ol { margin-bottom: 1.3em; }
.mj-prose a { color: var(--mj-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mj-prose blockquote {
  margin: 2em 0; padding: 0 0 0 22px; border-left: 2px solid var(--mj-accent);
  font-family: var(--mj-serif); font-size: 1.5rem; line-height: 1.35; color: var(--mj-ink);
}
/* inline code */
.mj-prose :not(pre) > code {
  font-size: 0.86em; padding: 0.14em 0.42em; border-radius: 6px; vertical-align: 0.04em;
  border: 1px solid var(--mj-line); background: var(--mj-surface); color: var(--mj-ink);
}
.mj-prose a > code { color: inherit; }

/* code blocks: framed, labelled, with a palette tuned to the site */
.mj-prose .theme-code-block {
  --mj-code-bg: #f7f8fa; --mj-code-head: #eef1f4;
  margin: 1.9em 0; border: 1px solid var(--mj-line); border-radius: 14px; overflow: hidden;
  box-shadow: none; background: var(--mj-code-bg);
}
[data-theme='dark'] .mj-prose .theme-code-block { --mj-code-bg: #0e1217; --mj-code-head: #131920; }
.mj-prose .theme-code-block::before,
.mj-prose .theme-code-block > div[class*='codeBlockTitle'] {
  display: block; padding: 9px 18px; font-family: var(--ifm-font-family-monospace);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mj-dim);
  background: var(--mj-code-head); border-bottom: 1px solid var(--mj-line);
}
.mj-prose .theme-code-block > div[class*='codeBlockTitle'] { text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.mj-prose .theme-code-block:has(> div[class*='codeBlockTitle'])::before { display: none; }
.mj-prose .theme-code-block::before { content: 'code'; }
.mj-prose .theme-code-block.language-bash::before, .mj-prose .theme-code-block.language-sh::before, .mj-prose .theme-code-block.language-shell::before, .mj-prose .theme-code-block.language-zsh::before { content: 'shell'; }
.mj-prose .theme-code-block.language-ts::before, .mj-prose .theme-code-block.language-typescript::before { content: 'typescript'; }
.mj-prose .theme-code-block.language-tsx::before { content: 'tsx'; }
.mj-prose .theme-code-block.language-js::before, .mj-prose .theme-code-block.language-javascript::before { content: 'javascript'; }
.mj-prose .theme-code-block.language-jsx::before { content: 'jsx'; }
.mj-prose .theme-code-block.language-json::before { content: 'json'; }
.mj-prose .theme-code-block.language-yaml::before, .mj-prose .theme-code-block.language-yml::before { content: 'yaml'; }
.mj-prose .theme-code-block.language-toml::before { content: 'toml'; }
.mj-prose .theme-code-block.language-python::before, .mj-prose .theme-code-block.language-py::before { content: 'python'; }
.mj-prose .theme-code-block.language-go::before { content: 'go'; }
.mj-prose .theme-code-block.language-rust::before { content: 'rust'; }
.mj-prose .theme-code-block.language-diff::before { content: 'diff'; }
.mj-prose .theme-code-block.language-powershell::before { content: 'powershell'; }
.mj-prose .theme-code-block.language-text::before, .mj-prose .theme-code-block.language-txt::before { content: 'output'; }
.mj-prose .theme-code-block pre {
  margin: 0; border-radius: 0; font-size: 0.86rem; line-height: 1.7;
  background: var(--mj-code-bg) !important; color: #1f2328 !important;
}
.mj-prose .theme-code-block pre::before { content: none !important; display: none !important; }
.mj-prose .theme-code-block pre code { background: transparent !important; border: 0; padding: 18px 22px; font-family: var(--ifm-font-family-monospace); font-variant-ligatures: none; }
.mj-prose .theme-code-block button { border-color: var(--mj-line); background: var(--mj-code-head); }
.mj-prose .theme-code-block [class*='codeLineNumber'] {
  background: var(--mj-code-bg) !important; color: color-mix(in srgb, var(--ifm-color-content) 45%, transparent) !important;
  padding-right: 14px !important; margin-right: 14px; border-right: 1px solid var(--mj-line); left: 0;
}
.mj-prose .theme-code-block [class*='codeLineNumber']::before { opacity: 1; }
.mj-prose .theme-code-block-highlighted-line { background: color-mix(in srgb, var(--mj-accent) 14%, transparent); margin: 0 -22px; padding: 0 22px; }

.mj-prose .theme-code-block .token { color: inherit !important; font-style: normal !important; }
.mj-prose .theme-code-block .token.comment, .mj-prose .theme-code-block .token.prolog, .mj-prose .theme-code-block .token.doctype { color: #6e7781 !important; font-style: italic !important; }
.mj-prose .theme-code-block .token.punctuation, .mj-prose .theme-code-block .token.operator { color: #57606a !important; }
.mj-prose .theme-code-block .token.keyword, .mj-prose .theme-code-block .token.atrule, .mj-prose .theme-code-block .token.important, .mj-prose .theme-code-block .token.selector { color: #8250df !important; }
.mj-prose .theme-code-block .token.string, .mj-prose .theme-code-block .token.char, .mj-prose .theme-code-block .token.attr-value, .mj-prose .theme-code-block .token.template-string, .mj-prose .theme-code-block .token.regex { color: #9a5b13 !important; }
.mj-prose .theme-code-block .token.function, .mj-prose .theme-code-block .token.tag, .mj-prose .theme-code-block .token.builtin { color: #0b7285 !important; }
.mj-prose .theme-code-block .token.number, .mj-prose .theme-code-block .token.boolean, .mj-prose .theme-code-block .token.constant, .mj-prose .theme-code-block .token.symbol { color: #c4432b !important; }
.mj-prose .theme-code-block .token.class-name, .mj-prose .theme-code-block .token.maybe-class-name { color: #0550ae !important; }
.mj-prose .theme-code-block .token.property, .mj-prose .theme-code-block .token.attr-name, .mj-prose .theme-code-block .token.key { color: #116329 !important; }
.mj-prose .theme-code-block .token.inserted { color: #116329 !important; }
.mj-prose .theme-code-block .token.deleted { color: #cf222e !important; }

[data-theme='dark'] .mj-prose .theme-code-block pre { color: #d4dbe3 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.comment, [data-theme='dark'] .mj-prose .theme-code-block .token.prolog, [data-theme='dark'] .mj-prose .theme-code-block .token.doctype { color: #6b7785 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.punctuation, [data-theme='dark'] .mj-prose .theme-code-block .token.operator { color: #8b97a5 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.keyword, [data-theme='dark'] .mj-prose .theme-code-block .token.atrule, [data-theme='dark'] .mj-prose .theme-code-block .token.important, [data-theme='dark'] .mj-prose .theme-code-block .token.selector { color: #c4a7f5 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.string, [data-theme='dark'] .mj-prose .theme-code-block .token.char, [data-theme='dark'] .mj-prose .theme-code-block .token.attr-value, [data-theme='dark'] .mj-prose .theme-code-block .token.template-string, [data-theme='dark'] .mj-prose .theme-code-block .token.regex { color: #ecc48d !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.function, [data-theme='dark'] .mj-prose .theme-code-block .token.tag, [data-theme='dark'] .mj-prose .theme-code-block .token.builtin { color: #7dd3e0 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.number, [data-theme='dark'] .mj-prose .theme-code-block .token.boolean, [data-theme='dark'] .mj-prose .theme-code-block .token.constant, [data-theme='dark'] .mj-prose .theme-code-block .token.symbol { color: #f59e8b !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.class-name, [data-theme='dark'] .mj-prose .theme-code-block .token.maybe-class-name { color: #8fc8ff !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.property, [data-theme='dark'] .mj-prose .theme-code-block .token.attr-name, [data-theme='dark'] .mj-prose .theme-code-block .token.key { color: #9ddcc8 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.inserted { color: #9fd7a5 !important; }
[data-theme='dark'] .mj-prose .theme-code-block .token.deleted { color: #f38b8b !important; }
.mj-prose img { border-radius: 14px; }
.mj-prose table { display: table; width: 100%; font-size: 0.95rem; }
.mj-prose hr { border: 0; border-top: 1px solid var(--mj-line); margin: 3em 0; }

/* article footer */
.mj-post-foot { max-width: var(--mj-read); margin: 64px auto 0; }
.mj-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-top: 1px solid var(--mj-line); }
.mj-tools a, .mj-tools button {
  font: inherit; font-size: 0.86rem; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--mj-line); background: transparent; color: var(--mj-body); text-decoration: none !important;
}
.mj-tools a:hover, .mj-tools button:hover { border-color: var(--mj-ink); color: var(--mj-ink); }
.mj-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.mj-post-tags a { font-size: 0.82rem; padding: 4px 11px; border-radius: 999px; background: var(--mj-surface); color: var(--mj-body); }
.mj-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--mj-line); }
.mj-pager a { display: flex; flex-direction: column; gap: 4px; color: var(--mj-ink); font-family: var(--mj-serif); font-size: 1.25rem; line-height: 1.2; text-decoration: none !important; }
.mj-pager a small { font-family: var(--ifm-font-family-base); font-size: 0.78rem; color: var(--mj-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.mj-pager .is-next { text-align: right; }
.mj-more { padding-top: 24px; border-top: 1px solid var(--mj-line); }
.mj-more h2 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mj-dim); font-weight: 600; margin-bottom: 14px; }
.mj-more ul { list-style: none; padding: 0; margin: 0; }
.mj-more li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mj-line); }
.mj-more li a { color: var(--mj-ink); font-weight: 500; }
.mj-more time { font-size: 0.84rem; color: var(--mj-dim); white-space: nowrap; }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .mj-post-layout.has-toc { grid-template-columns: minmax(0, var(--mj-read)); }
  .mj-post-toc { display: none; }
  .mj-progress-pill { display: inline-flex; }
}
@media (max-width: 996px) {
  .mj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mj-featured-link { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .mj-page, .mj-post { padding: 36px 16px 72px; }
  .mj-grid { grid-template-columns: 1fr; gap: 20px; }
  .mj-card-body { padding: 16px 10px 6px; }
  .mj-controls-right { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 10px 12px; }
  .mj-controls-right .mj-select { flex: 1 1 140px; min-width: 0; }
  .mj-controls-right .mj-select select { flex: 1; min-width: 0; width: 100%; max-width: 100%; }
  .mj-chips { flex-wrap: wrap; min-width: 0; }
  .mj-pager { grid-template-columns: 1fr; }
  .mj-pager .is-next { text-align: left; }
  .mj-prose { font-size: 1.04rem; }
  .mj-post-banner { border-radius: 16px; margin-bottom: 36px; }
  .mj-prose .theme-code-block { margin-left: -4px; margin-right: -4px; }
  .mj-prose .theme-code-block pre code { padding: 16px 16px; }
}