/* ---------- Blog (/blog/*) ---------- */
/* Loaded after styles.css and project.css: reuses tokens, nav, hero, order card and footer. */

.b-hero .lede { max-width: 640px; }

/* styles.css switches clicks off inside <main> (for the homepage 3D drag) and back on for sections only */
.b-post main > article, .b-post main > .b-draft, .admin main { pointer-events: auto; }

/* Hero and body sit closer than on project pages */
.p-hero + .b-section, .b-post .p-hero + .b-section { padding-top: 0; }

/* Index: one card per post */
.b-list { list-style: none; display: grid; gap: 16px; max-width: 760px; margin-inline: auto; }
.b-card {
  position: relative; display: grid; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, background 0.25s;
}
.b-card:hover { border-color: var(--crema); background: var(--surface-2); }
.b-card.has-img { grid-template-columns: 240px 1fr; }
.b-card-img { display: block; background: var(--surface-3); }
.b-card-img img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.b-card-text { padding: 28px 32px; min-width: 0; }
.b-card h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 10px; }
/* the whole card is clickable through the title link */
.b-card h2 a::after { content: ""; position: absolute; inset: 0; }
.b-card h2 a:focus-visible { outline: none; }
.b-card:has(h2 a:focus-visible) { outline: 2px solid var(--crema); outline-offset: 2px; }
.b-card p { color: var(--ink-soft); }
.b-card .b-more { display: inline-block; margin-top: 16px; font: 400 0.78rem var(--mono); letter-spacing: 0.08em; color: var(--crema); }
.b-card .b-tags { position: relative; z-index: 1; justify-content: flex-start; margin-top: 14px; }

/* Meta line: date · reading time · author · product */
.b-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font: 400 0.75rem var(--mono); letter-spacing: 0.08em; color: var(--ink-mute); }
.b-card .b-meta { justify-content: flex-start; }

/* Tags */
.b-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.b-post .p-hero .b-tags { margin-top: 18px; }
.b-tags a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-soft); font-size: 0.78rem; transition: color 0.2s, background 0.2s;
}
.b-tags a:hover { color: var(--crema-2); background: var(--surface-2); }
.b-filter { max-width: 760px; margin: 0 auto 20px; font: 400 0.8rem var(--mono); color: var(--ink-mute); }
.b-filter b { color: var(--ink); font-weight: 600; }
.b-filter a, .b-empty a { color: var(--crema); }

/* Pagination */
.b-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 32px auto 0; }
.b-pager .btn { min-height: 44px; }
.b-pager-n { font: 400 0.75rem var(--mono); color: var(--ink-mute); white-space: nowrap; }

/* Article */
.b-post .p-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.b-post .p-hero .b-meta { margin-top: 26px; }
.b-hero-img { max-width: 960px; margin: 0 auto 56px; }
.b-hero-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--hairline); }
.b-body { max-width: 680px; margin-inline: auto; font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); overflow-wrap: break-word; }
.b-body > * + * { margin-top: 1.1em; }
.b-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin-top: 2.2em; }
.b-body h2, .b-body h3 { scroll-margin-top: 96px; }
.b-body h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-top: 1.8em; }
.b-body strong { color: var(--ink); font-weight: 600; }
.b-body u { text-underline-offset: 3px; }
.b-body a { color: var(--crema); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.b-body a:hover { color: var(--crema-2); }
.b-body ul, .b-body ol { padding-left: 1.3em; }
.b-body li + li { margin-top: 0.5em; }
.b-body li > ul, .b-body li > ol { margin-top: 0.5em; }
.b-body li::marker { color: var(--ink-mute); }
.b-body blockquote {
  padding: 18px 22px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--hairline);
  font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.5; color: var(--ink);
}
.b-body blockquote[style] { margin-left: 0 !important; } /* indent inside a quote */
.b-body pre {
  padding: 18px 20px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--hairline);
  font: 400 0.88rem/1.7 var(--mono); color: var(--ink); overflow-x: auto; white-space: pre;
}
.b-body code { font-family: var(--mono); font-size: 0.9em; }
.b-body :not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink); }
.b-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.b-body th, .b-body td { padding: 10px 14px; border: 1px solid var(--hairline-strong); text-align: left; vertical-align: top; min-width: 80px; }
.b-body th { color: var(--ink); font-weight: 600; background: var(--surface-1); }
.b-body .b-note {
  padding: 22px 24px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.b-body .b-note .eyebrow { margin-bottom: 8px; }
.b-body .b-note p + p { margin-top: 0.6em; }
.b-back-bottom { max-width: 680px; margin: 56px auto 0; }
.b-back-bottom .p-back { margin: 0; }

/* Images inside posts */
.b-body figure { margin: 1.8em 0; }
.b-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hairline); }
.b-body figcaption { margin-top: 8px; font: 400 0.8rem var(--mono); color: var(--ink-mute); text-align: center; }
.b-body hr { border: 0; border-top: 1px solid var(--hairline-strong); margin: 2.2em 0; }

.b-empty { text-align: center; color: var(--ink-mute); padding: 40px 0; }
.b-draft { position: relative; z-index: 2; margin: 0 auto; max-width: 680px; padding: 12px 18px; border-radius: 12px; background: var(--surface-3); border: 1px dashed var(--hairline-strong); font: 400 0.8rem var(--mono); color: var(--ink-soft); text-align: center; }
.b-draft a { color: var(--crema); }
.b-post .b-draft { margin: 96px 16px 0; }
@media (min-width: 712px) { .b-post .b-draft { margin-inline: auto; } }

@media (max-width: 700px) {
  .b-card.has-img { grid-template-columns: 1fr; }
  .b-card-img img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}
@media (max-width: 480px) {
  .b-card-text { padding: 22px 20px; }
  .b-card h2 { font-size: 1.45rem; }
  .b-body { font-size: 1rem; }
  .b-hero-img { margin-bottom: 36px; }
  .b-pager .btn { padding: 10px 16px; font-size: 0.85rem; }
}

/* ---------- Admin (/admin/*) ---------- */
/* A working tool: the site's tokens and type, none of the atmosphere. */

body.admin { min-height: 100vh; }
.admin [hidden] { display: none !important; }
.admin button { font: inherit; color: inherit; }
.admin button.btn { border: 0; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.admin .btn { padding: 10px 20px; min-height: 40px; box-shadow: none; }
.admin .btn-primary:hover { translate: none; box-shadow: none; }
.admin button.btn-ghost { border: 1px solid var(--hairline-strong); background: transparent; }
.admin .btn:disabled { opacity: 0.5; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.a-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px); background: var(--surface-1); border-bottom: 1px solid var(--hairline);
}
.a-brand { font: 500 1.15rem var(--serif); letter-spacing: -0.01em; }
.a-brand span { margin-left: 8px; font: 400 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--crema); }
.a-bar-links { display: flex; align-items: center; gap: 18px; font-size: 0.88rem; color: var(--ink-soft); }
.a-bar-links a:hover, .a-bar-links button:hover { color: var(--crema); }
.a-bar-links button { background: none; border: 0; cursor: pointer; padding: 8px 0; }

.a-main { max-width: 1140px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 96px; }
.a-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin h1 { font: 500 1.9rem/1.1 var(--serif); letter-spacing: -0.02em; }
.admin .a-card > h2, .admin .a-card-head h2 { font: 600 0.95rem var(--sans); letter-spacing: 0; margin-bottom: 14px; }
.a-card {
  padding: 22px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.a-card + .a-card { margin-top: 16px; }
.a-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.a-card-head h2 { margin-bottom: 4px !important; }
.a-muted { color: var(--ink-mute); }
.a-hint { margin-top: 8px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-mute); }
.a-hint b { color: var(--ink-soft); font-weight: 500; }
.a-error { padding: 10px 14px; border-radius: 10px; background: rgba(224, 122, 109, 0.12); color: #e9998e; font-size: 0.9rem; }
:root[data-theme="light"] .a-error { color: #a23d2f; }
.a-link { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--crema); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.a-link:hover { color: var(--crema-2); }

.a-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--ink); }
.a-field + .a-field, .e-check + .a-field, .a-field + .e-check { margin-top: 16px; }
.a-field > span { font-weight: 500; }
.a-field small { font-weight: 400; color: var(--ink-mute); font-size: 0.78rem; }
.a-field input, .a-field select, .a-field textarea, .e-tags, .e-slug {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline-strong);
  font: 400 0.95rem var(--sans); resize: vertical;
}
.a-field input:focus, .a-field select:focus, .a-field textarea:focus, .e-tags:focus-within, .e-slug:focus-within, .e-visual:focus, .e-code textarea:focus {
  outline: 2px solid var(--crema); outline-offset: 1px;
}
.a-count.over { color: #e9998e; }

/* login */
.a-login { max-width: 400px; margin: 10vh auto 0; display: grid; gap: 16px; }
.a-login .btn { justify-self: start; }

/* post list */
.a-table-card { padding: 0; overflow: hidden; }
.a-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.a-tabs a { padding: 6px 14px; border-radius: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.a-tabs a:hover { background: var(--surface-2); }
.a-tabs a.on { background: var(--surface-3); color: var(--ink); font-weight: 500; }
.a-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.a-table th { padding: 10px 14px; text-align: left; font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); border-bottom: 1px solid var(--hairline); }
.a-table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; color: var(--ink-soft); }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tbody tr:hover { background: var(--surface-2); }
.a-title { display: block; color: var(--ink); font-weight: 500; }
.a-title:hover { color: var(--crema); }
.a-table small { font: 400 0.72rem var(--mono); color: var(--ink-mute); }
.a-thumb { width: 64px; padding-right: 0 !important; }
.a-thumb img, .a-thumb span { display: block; width: 48px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--hairline); }
.a-date { white-space: nowrap; font-size: 0.82rem; }
.a-empty { text-align: center; padding: 48px 14px !important; color: var(--ink-mute); }
.a-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-soft); font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
.a-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); }
.a-badge.is-visible { color: var(--ink); }
.a-badge.is-visible::before { background: var(--success); }
:root[data-theme="light"] .a-badge.is-visible::before { background: #2f9a5c; }

/* editor */
.e-top { position: sticky; top: 61px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -32px calc(-1 * clamp(16px, 4vw, 40px)) 20px; padding: 14px clamp(16px, 4vw, 40px); background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.e-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--hairline-strong); color: var(--ink-soft); }
.e-back:hover { color: var(--crema); border-color: var(--crema); }
.e-heading { font-size: 1.5rem !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(520px, 50vw); }
.e-dirty { font: 400 0.75rem var(--mono); color: var(--crema); }
.e-actions { display: flex; gap: 8px; margin-left: auto; }

.e-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.e-side .a-card + .a-card { margin-top: 16px; }

.e-editor { border: 1px solid var(--hairline-strong); border-radius: 12px; overflow: hidden; background: var(--canvas); }
.e-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; background: var(--surface-2); border-bottom: 1px solid var(--hairline-strong); }
.e-toolbar button {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; border: 0; background: transparent;
  color: var(--ink-soft); font-size: 0.95rem; cursor: pointer;
}
.e-toolbar button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.e-toolbar button:hover { background: var(--surface-3); color: var(--ink); }
.e-toolbar button.on, .e-toolbar button[aria-pressed="true"] { background: var(--surface-3); color: var(--crema); }
.e-toolbar .e-code-btn { margin-left: auto; }
.e-toolbar.is-code > :not(.e-code-btn):not(input) { opacity: 0.35; pointer-events: none; }
/* dropdowns (blog-admin.js swaps each <select> for this) */
.nb-select { position: relative; }
.nb-native { position: absolute !important; inset: 0; width: 100% !important; opacity: 0; pointer-events: none; }
.nb-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 9px 12px;
  border-radius: 10px; background: var(--canvas); border: 1px solid var(--hairline-strong); color: var(--ink);
  font: 400 0.95rem var(--sans); text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.nb-select-btn:hover { border-color: rgba(224, 169, 109, 0.5); }
.nb-select-btn:focus-visible, .nb-select.open .nb-select-btn { outline: 2px solid var(--crema); outline-offset: 1px; }
.nb-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-select-btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink-mute); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.2s; }
.nb-select.open .nb-select-btn svg { rotate: 180deg; stroke: var(--crema); }

.nb-select.is-compact { display: inline-block; }
.nb-select.is-compact .nb-select-btn {
  width: auto; min-height: 34px; height: 34px; padding: 0 8px 0 10px; gap: 6px; border-color: transparent; background: transparent;
  color: var(--ink-soft); font: 500 0.86rem var(--sans);
}
.nb-select.is-compact .nb-select-btn:hover, .nb-select.is-compact.open .nb-select-btn { background: var(--surface-3); color: var(--ink); outline: none; }

.nb-select-list {
  position: fixed; z-index: 60; max-height: 300px; overflow-y: auto; padding: 6px; list-style: none;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  animation: nb-pop 0.14s ease-out;
}
.nb-select-list.up { animation-name: nb-pop-up; }
:root[data-theme="light"] .nb-select-list { background: var(--surface-1); box-shadow: 0 18px 40px -18px rgba(58, 36, 25, 0.35); }
.nb-select-list li {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 12px 7px 8px; border-radius: 8px;
  color: var(--ink-soft); font-size: 0.92rem; cursor: pointer; white-space: nowrap; user-select: none;
}
.nb-select-list li.active { background: var(--surface-3); color: var(--ink); }
.nb-select-list li[aria-selected="true"] { color: var(--ink); }
.nb-select-list li svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--crema); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.nb-select-list li[aria-selected="true"] svg { visibility: visible; }
/* the paragraph-style menu previews each style */
.nb-select-list .opt-h2 span { font: 500 1.25rem/1.2 var(--serif); letter-spacing: -0.01em; }
.nb-select-list .opt-h3 span { font: 500 1.05rem/1.2 var(--serif); }
.nb-select-list .opt-blockquote span { font: italic 400 1rem var(--serif); }
.nb-select-list .opt-pre span { font: 400 0.85rem var(--mono); }
@keyframes nb-pop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes nb-pop-up { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .nb-select-list { animation: none; } .nb-select-btn svg { transition: none; } }
.e-sep { width: 1px; height: 20px; background: var(--hairline-strong); margin: 0 4px; }
.e-visual {
  max-width: none; min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 20px clamp(16px, 3vw, 28px);
  font-size: 1rem; outline-offset: -2px !important; border-radius: 0;
}
.e-visual:empty::before, .e-visual > p:only-child:has(> br:only-child)::before { content: attr(data-placeholder); color: var(--ink-mute); pointer-events: none; }
.e-visual > :first-child { margin-top: 0; }
.e-visual h2 { margin-top: 1.4em; }
.e-visual td, .e-visual th { min-width: 60px; }
.e-code { display: grid; grid-template-columns: auto 1fr; height: min(70vh, 520px); }
.e-code[hidden] { display: none; }
.e-lines, .e-code textarea { font: 400 0.82rem/1.65 var(--mono); padding: 14px 10px; }
.e-lines { overflow: hidden; min-width: 44px; text-align: right; color: var(--ink-mute); background: var(--surface-1); border-right: 1px solid var(--hairline); user-select: none; white-space: pre; }
.e-code textarea { width: 100%; height: 100%; border: 0; resize: none; background: var(--canvas); color: var(--ink); tab-size: 2; outline-offset: -2px !important; white-space: pre; overflow: auto; }

.e-serp { padding: 14px 16px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--hairline); }
.e-serp p { overflow-wrap: anywhere; }
.e-serp-site { font-size: 0.78rem; color: var(--ink-mute); }
.e-serp-title { margin-top: 4px; font-size: 1.1rem; color: #8ab4f8; line-height: 1.3; }
:root[data-theme="light"] .e-serp-title { color: #1a0dab; }
.e-serp-desc { margin-top: 4px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.e-seo { margin-top: 18px; }
.e-slug { display: flex; align-items: center; padding: 0; }
.e-slug i { font: 400 0.78rem var(--mono); font-style: normal; color: var(--ink-mute); padding-left: 12px; white-space: nowrap; }
.e-slug input { border: 0 !important; background: transparent !important; padding-left: 2px !important; font: 400 0.85rem var(--mono) !important; min-width: 0; outline: none !important; }

.e-radio, .e-check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 0.92rem; cursor: pointer; }
.e-radio input, .e-check input { width: 18px; height: 18px; accent-color: var(--crema); }

.e-drop {
  display: grid; place-items: center; gap: 8px; padding: 36px 16px; border-radius: 12px; text-align: center;
  border: 1px dashed var(--hairline-strong); background: var(--canvas); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.e-drop[hidden] { display: none; }
.e-drop:hover, .e-drop:focus-visible, .e-drop.over { border-color: var(--crema); background: var(--surface-2); outline: none; }
.e-drop small { color: var(--ink-mute); font-size: 0.8rem; }
.e-feat img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; border: 1px solid var(--hairline); }
.e-feat-actions { display: flex; gap: 16px; margin: 8px 0 14px; }
.e-remove { color: var(--ink-mute); }

.e-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; cursor: text; }
.e-chips { display: contents; list-style: none; }
.e-chips li { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-3); font-size: 0.82rem; }
.e-chips button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-mute); }
.e-chips button:hover { color: var(--ink); background: var(--surface-2); }
.e-tag-input { flex: 1; min-width: 120px; border: 0 !important; background: transparent !important; padding: 4px !important; min-height: 28px !important; outline: none !important; }

.e-danger .a-card-head { align-items: center; }
.e-delete { background: transparent !important; color: #e9998e !important; border: 1px solid rgba(224, 122, 109, 0.4) !important; }
.e-delete:hover { background: rgba(224, 122, 109, 0.12) !important; }
:root[data-theme="light"] .e-delete { color: #a23d2f !important; }

.w-toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 50; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--canvas); font: 500 0.9rem var(--sans);
}
.w-toast.bad { background: #e07a6d; color: #1a0f0c; border-radius: 14px; }

@media (max-width: 900px) {
  .e-grid { grid-template-columns: 1fr; }
  .e-heading { max-width: 100%; }
}
@media (max-width: 640px) {
  .a-hide-sm { display: none; }
  .a-bar-links a { display: none; }
  .e-top { top: 59px; }
  .e-heading { order: 3; flex-basis: 100%; font-size: 1.3rem !important; }
  .e-actions .btn { padding: 8px 14px; }
  .e-dirty { display: none; }
  .a-card { padding: 18px 16px; }
  .a-head h1 { font-size: 1.5rem; }
  .e-danger .a-card-head { flex-direction: column; align-items: stretch; }
}
