/* blog.css - /blog (the list of posts) and /blog/<slug> (a post). Simple pages in the site's look. */

/* ---- /blog: the list ---- */
.blog-page { padding: 64px clamp(16px, 5vw, 64px); text-align: left; }
.blog-page .container { max-width: 860px; margin: 0 auto; }
.blog-kicker { text-transform: uppercase; letter-spacing: 1.6px; color: var(--text-muted); font-size: 12px; margin-bottom: 6px; }
.blog-head { margin: 0 0 20px; font-size: 28px; text-align: left; }
.blog-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); overflow: hidden; }
.blog-list li + li { border-top: 1px solid var(--border-soft); }
.blog-item { display: block; padding: 18px; color: var(--text); text-decoration: none; }
.blog-item:hover { background: var(--bg-elevated); text-decoration: none; }
.blog-item time { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 12px; letter-spacing: .4px; }
.blog-item-title { display: block; font-size: 17px; font-weight: 700; }
.blog-item-sum { display: block; margin-top: 6px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---- a post: text column; full-width walkthrough sections sit between its articles ---- */
.blog-post { max-width: 860px; margin: 0 auto; padding: 56px clamp(16px, 5vw, 28px) 32px; text-align: left; font-size: 16px; line-height: 1.75; }
.blog-post p, .blog-post li { color: var(--text-muted); }
.blog-post a { color: var(--accent-soft); }
.blog-post h2 { margin: 0 0 14px; font-size: 28px; line-height: 1.2; }
.blog-post[id] { scroll-margin-top: 80px; }   /* a #section link lands below the sticky header */
.blog-title { margin: 10px 0 6px; font-size: 34px; line-height: 1.15; }
.blog-back { color: var(--text-muted) !important; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none; }
.blog-back::before { content: "\2190  "; }
.blog-date { display: block; margin-bottom: 18px; color: var(--text-dim); font-size: 13px; }
.blog-post code { font-family: var(--font-mono); font-size: .92em; color: var(--text-code); }   /* brighter monospace, no box (owner 2026-11-15) */
.blog-table-wrap { margin: 14px 0 18px; overflow-x: auto; }
.blog-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }   /* phones scroll the table inside .blog-table-wrap */
.blog-table th, .blog-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; color: var(--text-muted); }
.blog-table th { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.blog-table td:first-child, .blog-table td:last-child { white-space: nowrap; }

/* ---- the DecEvalSE walkthrough (moved from pricing.html with its markup; rules copied from its <style>) ---- */
.compilation_shell {
  position: relative;
}

.walkthrough_shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.walkthrough_row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 20px;
  align-items: start;
}

.walkthrough_row.reverse > :first-child {
  order: 2;
}

.walkthrough_row.reverse > :last-child {
  order: 1;
}

.walkthrough_panel {
  min-width: 0;
}

.walkthrough_card {
  min-width: 0;
  min-height: 300px;
  border-radius: 14px;
  border: 1px solid var(--border-code);
  background: var(--bg-inset-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.code_shell {
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
}

.code_body {
  margin: 0;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-height: 280px;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.code_body.hljs {
  display: block;
  background: transparent !important;
  padding: 0 !important;
}

.code_body::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.code_body::-webkit-scrollbar-track {
  background: #141414;
  border-radius: 999px;
}

.code_body::-webkit-scrollbar-thumb {
  background: #2f2f2f;
  border-radius: 999px;
}

.code_body::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.compilation_shell {
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  min-height: 340px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.compilation_shell_topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #202020;
  background: var(--bg-inset-alt);
}

.compilation_shell_dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.compilation_shell_dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--bg-hover);
  display: inline-block;
}

.compilation_shell_title {
  font-size: 12px;
  opacity: .62;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compilation_shell_body {
  height: 360px;
  overflow: auto;
  padding: 14px 16px 16px 16px;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e8e8e8;
  background: var(--bg-inset);
}

.compilation_shell_body::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.compilation_shell_body::-webkit-scrollbar-track {
  background: #141414;
  border-radius: 999px;
}

.compilation_shell_body::-webkit-scrollbar-thumb {
  background: #2f2f2f;
  border-radius: 999px;
}

.compilation_shell_body::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.shell_line {
  display: block;
}

.shell_phase_label {
  display: inline-block;
  margin: 0 0 10px 0;
  padding: 4px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .72;
  background: #141414;
}

.shell_success {
  color: #39b36b;
  font-weight: 600;
}

.shell_error {
  color: #d94848;
  font-weight: 600;
}

.shell_cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: text-bottom;
  margin-left: 2px;
  background: #d7d7d7;
  animation: shellBlink 1s steps(1, end) infinite;
}

@keyframes shellBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .phase_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .walkthrough_row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 20px;
  }

  .walkthrough_row.reverse > :first-child,
  .walkthrough_row.reverse > :last-child {
    order: unset;
  }
}

@media (max-width: 700px) {
  .phase_grid,
  .stats_grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .walkthrough_shell {
    padding: 0 16px;
  }

  .code_body {
    font-size: 12px;
    line-height: 1.5;
    max-height: 240px;
  }

  .compilation_shell_body {
    height: 300px;
    font-size: 12px;
    line-height: 1.55;
  }
}
