/* Lagnis Tools — modern, accessible UI (ad-ready) */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1200px;
  --text-base: 1.125rem;
  --line: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #151c2f;
    --surface-2: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--line);
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

.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;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  flex-wrap: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile-first header: only brand + hamburger below 721px (avoids cascade bugs) */
.nav-details {
  display: block;
  position: relative;
}

.nav-details summary.nav-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--text-muted);
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.nav-burger {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-drawer-panel {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  min-width: min(100vw - 2.5rem, 320px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  z-index: 120;
}

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-drawer-lang {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.nav-drawer-lang .lang-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.nav-drawer a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-drawer a:hover,
.nav-drawer a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-accent {
  color: var(--accent);
}
.site-header .nav-main,
.site-header .nav-main--desktop {
  display: none;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}
.lang-details.lang-details--desktop {
  display: none;
}
.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.nav-main a:hover {
  color: var(--accent);
}

.lang-summary-long {
  display: none;
}
.lang-summary-code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (min-width: 721px) {
  .lang-summary-code {
    display: none;
  }
  .lang-summary-long {
    display: inline;
  }
  .site-header .nav-main,
  .site-header .nav-main--desktop {
    display: flex;
  }
  .lang-details.lang-details--desktop {
    display: block;
  }
  .nav-details {
    display: none;
  }
  .nav-drawer-lang {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-inner {
    gap: 0.5rem;
  }
  .brand {
    font-size: 1.05rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-drawer-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 3.85rem;
    min-width: 0;
    max-height: min(75vh, 520px);
    overflow-y: auto;
  }
}

.lang-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-details {
  position: relative;
}
.lang-panel {
  position: absolute;
  right: 0;
  left: auto;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  z-index: 110;
  min-width: min(100vw - 2.5rem, 320px);
}
@media (min-width: 480px) {
  .lang-panel {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    min-width: 280px;
  }
}
.lang-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.lang-link.is-active,
.lang-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

main {
  padding: 2.25rem 0 4rem;
}

.page-intro {
  padding-top: 0.35rem;
  margin-bottom: 1.75rem;
}
.page-intro .breadcrumbs {
  margin-bottom: 1.1rem;
}
.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
}

/* Home */
.home {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}
.home-hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  border-radius: var(--radius);
}
.home-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 auto 1.5rem;
}
.home-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}
.home-values li {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 560px) {
  .home-stats {
    grid-template-columns: 1fr;
  }
}
.home-stats .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.home-stats .stat strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.home-stats .stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}
.home-section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.section-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}
.section-link:hover {
  text-decoration: underline;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.popular-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  min-height: 100%;
}
.popular-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.popular-card-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}
.popular-card-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.search-box {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-box input[type="search"] {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.search-box input:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
}
.search-results a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.search-results a:hover {
  background: var(--accent-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chip {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.cat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cat-card h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}
.cat-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.cat-card h2 a:hover {
  color: var(--accent);
}
.cat-count {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.cat-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  flex: 1;
}
.cat-card-list li {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}
.cat-card-list a {
  color: var(--text-muted);
  text-decoration: none;
}
.cat-card-list a:hover {
  color: var(--accent);
}
.cat-more {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}
.cat-more a {
  color: var(--accent);
  text-decoration: none;
}

/* Tool page layout */
.page-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .page-grid {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  padding-top: 0.15rem;
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.tool-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tool-kicker a {
  color: var(--accent);
  text-decoration: none;
}

.tool-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tool-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42em;
}
.tools-pagination {
  margin: 1rem 0;
  font-size: 0.95rem;
}
.tools-pagination .page-status {
  color: var(--muted, #666);
}
.tools-index-note {
  color: var(--muted, #666);
  max-width: 42rem;
}

.privacy-badge {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.tool-root {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.tool-panel label {
  display: block;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  font-size: 1.02rem;
}
.tool-panel input[type="text"],
.tool-panel input[type="number"],
.tool-panel input[type="date"],
.tool-panel input[type="search"],
.tool-panel input[type="range"],
.tool-panel textarea,
.tool-panel select {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.75rem 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.tool-panel input:focus,
.tool-panel textarea:focus,
.tool-panel select:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}
.tool-panel textarea {
  min-height: 160px;
  font-family: var(--mono);
  font-size: 0.98rem;
}
.tool-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tool-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .tool-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.15rem;
  margin-right: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn:hover {
  background: var(--accent-hover);
}
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.tool-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.lorem-preview {
  min-height: 140px;
  margin-top: 0.75rem;
}

.tool-output {
  margin-top: 1.15rem;
  padding: 1.1rem 1.15rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.05rem;
  background: var(--bg);
}
.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tool-prose {
  max-width: 48em;
  font-size: 1.05rem;
  margin-top: 2rem;
}
.tool-prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}
.see-all a {
  font-weight: 700;
  color: var(--accent);
}

.page-sidebar .sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.sidebar-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  margin: 0.35rem 0;
}
.sidebar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.sidebar-links a:hover {
  color: var(--accent);
}

.faq-list details {
  margin: 0.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  background: var(--surface);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.related-list {
  columns: 1;
  gap: 0.75rem;
  font-size: 0.98rem;
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}
@media (min-width: 640px) {
  .related-list {
    columns: 2;
    gap: 1rem;
  }
}

.tool-directory {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
}
.tool-directory li {
  margin: 0.45rem 0;
}
.tool-directory a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.tool-directory a:hover {
  border-color: var(--accent);
}
.tool-directory a strong {
  display: block;
  font-size: 1.05rem;
}
.tool-directory a span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 1.5rem;
}
.alpha-nav a {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.alpha-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.alpha-heading {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: var(--surface);
  color: var(--text-muted);
}
.footer-brand {
  font-weight: 800;
  color: var(--text);
  font-size: 1.15rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 1rem 0 0.5rem;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}
.footer-cats a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.footer-cats a:hover {
  color: var(--accent);
}
.footer-meta a {
  color: var(--accent);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Embeddable widget */
.embed-hint {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.embed-snippet-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.embed-snippet {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
}
.embed-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}
.embed-header {
  margin-bottom: 1rem;
}
.embed-title {
  font-size: 1.25rem;
  margin: 0;
}
.embed-title a {
  color: var(--text);
  text-decoration: none;
}
.embed-title a:hover {
  color: var(--accent);
}
.embed-widget {
  margin-bottom: 0.75rem;
}
.embed-brand {
  text-align: center;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}
.embed-brand a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.embed-brand a:hover {
  color: var(--accent);
}

/* Blog */
.blog-header {
  margin-bottom: 2rem;
}
.blog-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
}
.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.blog-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.blog-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h2 a:hover {
  color: var(--accent);
}
.blog-card-cat {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.blog-prose {
  max-width: 72ch;
  line-height: 1.65;
}
.blog-prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}
.blog-prose h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}
.blog-prose a {
  color: var(--accent);
  font-weight: 600;
}
.blog-disclosure {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.blog-aside {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.blog-aside h2 {
  font-size: 1rem;
  margin-top: 0;
}
.blog-faq h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.92rem;
}
.blog-table th,
.blog-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.blog-table th {
  background: var(--surface-2);
  font-weight: 600;
}
.blog-image-placeholder {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
}
.blog-shot {
  margin: 1rem 0 1.25rem;
}
.blog-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.blog-shot figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
