/* Guide pages: static header, prose, cards. Loaded after site.css. */
.guide .top { position: relative; }
.guide main { padding: 24px 0 0; }
.guide article { max-width: 700px; }
.guide article.hub { max-width: 1120px; }
.guide .faq { max-width: 760px; }
.guide .faq h1 { margin-bottom: 32px; }
.guide .fits .btn { margin-top: 6px; }
.guide h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; margin: 8px 0 14px; text-wrap: balance; }
.guide article > .lead { color: var(--muted); font-size: 19px; margin: 0 0 12px; text-wrap: pretty; }
.guide .meta { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.guide article h2 { font-size: 26px; line-height: 1.2; margin: 44px 0 12px; }
.guide article h3 { font-size: 19px; font-weight: 600; margin: 26px 0 8px; }
.guide article p, .guide article li { color: #D3DCD5; font-size: 17px; line-height: 1.65; margin: 0 0 14px; }
.guide article li { margin-bottom: 8px; }
.guide article ul, .guide article ol { padding-left: 22px; margin: 0 0 16px; }
.guide article strong { color: var(--ink); font-weight: 600; }
.guide article table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.guide article th, .guide article td { padding: 10px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; color: #D3DCD5; }
.guide article th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.guide article td:first-child { color: var(--ink); font-weight: 500; }
.guide .quick-answer { margin: 24px 0 34px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.guide .quick-answer h2 { margin: 0 0 8px; font-size: 20px; }
.guide .quick-answer p { margin: 0; }
.guide .sources { margin: 44px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }
.guide .sources h2 { font-size: 20px; margin: 20px 0 10px; }
.guide .sources ul { padding-left: 20px; margin: 0 0 10px; }
.guide .sources li { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 6px; }
.guide .sources p { color: var(--muted); font-size: 14px; }
.guide .fits { margin: 44px 0 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.guide .fits h2 { margin: 0 0 10px; font-size: 21px; }
.guide .fits p { margin: 0 0 12px; }
.guide .fits p:last-child { margin: 0; }
.guide .next { margin: 44px 0 0; }
.guide .next h2 { font-size: 21px; margin: 0 0 14px; }
/* In running text, colour alone isn't enough to mark a link. */
.guide main :is(p, li) > a:not(.post) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 640px) {
  .guide article table { display: block; overflow-x: auto; }
  .guide article table tbody, .guide article table thead { display: table; min-width: 600px; width: 100%; }
  /* Comparison tables become one card per row; the column name labels each cell. */
  .guide article table.stack, .guide article table.stack tbody { display: block; min-width: 0; overflow: visible; }
  .guide article table.stack thead { display: none; }
  .guide article table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .guide article table.stack td { display: block; padding: 3px 0; border: 0; }
  .guide article table.stack td:first-child { color: var(--ink); font-weight: 600; }
  .guide article table.stack td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
}

/* Build-log additions: figures, code, charts. */
.guide figure { margin: 28px 0; }
.guide figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.guide figure.render { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.guide figure.render img { border-radius: 0; }
.guide figure.product img { width: min(100%, 280px); margin: 0 auto; }
.guide figure.product figcaption { text-align: center; }
.guide figcaption { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.guide figcaption b { color: var(--ink); font-weight: 600; }

.guide pre {
  margin: 18px 0;
  padding: 16px 18px;
  background: #08130D;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  /* Source comments run long; wrap rather than clip or scroll sideways. */
  white-space: pre-wrap;
}
.guide pre, .guide code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.guide code { font-size: 0.92em; color: var(--ink); }
.guide p code, .guide li code, .guide td code { padding: 1px 5px; border-radius: 5px; background: var(--panel); }
.guide pre code { padding: 0; background: none; color: #CFE3D5; }
.guide pre .c { color: #7C8F82; }

.guide .chart { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px 10px; }
.guide .chart svg { display: block; width: 100%; height: auto; }
.guide .chart .note { fill: var(--ink); font-size: 12.5px; font-family: var(--sans); }
.guide .chart .rule { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.guide .chart circle { stroke: var(--bg-2); stroke-width: 2; }

.guide details.data { margin: 14px 0 0; }
.guide details.data summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.guide details.data table { margin-top: 12px; font-size: 14px; }

.guide .kicker { position: relative; display: inline-block; margin-bottom: 10px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.guide .kicker::after { content: ""; position: absolute; inset: -8px -4px; }
.guide .kicker:hover { text-decoration: none; border-color: var(--green); color: var(--green); }

@media (max-width: 640px) {
  .guide pre { font-size: 11.5px; }
}

/* Journal: image cards, featured first post, cover photos. */
.guide .posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0; margin: 28px 0 0; list-style: none; }
.guide .next .posts { grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
@media (min-width: 1001px) { .guide .hub .posts { grid-template-columns: repeat(3, 1fr); } }
.guide .posts li { margin: 0; }
.guide .post { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.guide .post:hover { border-color: var(--green); transform: translateY(-2px); text-decoration: none; }
.guide .post picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.guide .post img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide .post .body { display: flex; flex-direction: column; padding: 16px 18px 18px; }
.guide .post .tag { margin: 0 0 6px; }
.guide .post b { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.guide .post .excerpt { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.guide .next .post b { font-size: 16px; }
.guide .next .post .excerpt { display: none; }
.guide .posts .featured { grid-column: 1 / -1; }
.guide .posts .featured .post { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.guide .posts .featured picture { aspect-ratio: 4 / 3; }
.guide .posts .featured b { font-size: 26px; }
.guide .posts .featured .body { padding: 26px 30px; }
.guide .tag { display: inline-block; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.guide .meta .tag { margin-right: 6px; }
.guide figure.cover { margin: 0 0 34px; }
.guide figure.cover img { border-radius: var(--radius); }
@media (max-width: 760px) {
  .guide .posts, .guide .next .posts { grid-template-columns: 1fr; }
  .guide .posts .featured .post { display: flex; }
  .guide .posts .featured picture { aspect-ratio: 3 / 2; }
  .guide .posts .featured b { font-size: 22px; }
  .guide .posts .featured .body { padding: 16px 18px 18px; }
  .guide .next .post { flex-direction: row; align-items: center; }
  .guide .next .post picture { flex: 0 0 110px; }
  .guide .next .post picture { aspect-ratio: 1; }
  .guide .next .post .tag { display: none; }
  .guide .next .post .body { padding: 12px 16px; }
}

.guide article .vs {
  width: 100%;
  max-width: 820px;
  margin: 12px auto 28px;
  border-collapse: collapse;
  font-size: 16px;
  table-layout: fixed;
}
.guide article .vs th, .guide article .vs td {
  color: var(--ink);
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  padding: 16px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.guide article .vs thead th, .guide article .vs thead td { border-bottom-color: rgba(255, 255, 255, 0.2); }
.guide article .vs thead th {
  vertical-align: bottom;
  color: var(--muted);
  font-weight: 500;
  width: 20%;
}
.guide article .vs thead th.is-ours { color: var(--green); }
.guide article .vs thead .ic { font-size: 24px; }
.guide article .vs .name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
}
.guide article .vs thead th.is-ours .name { font-weight: 600; }
.guide article .vs tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--ink);
  padding-left: 0;
  padding-right: 12px;
  text-wrap: balance;
}
.guide article .vs td.is-ours, .guide article .vs thead th.is-ours { background: rgba(95, 214, 140, 0.08); }
.guide article .vs thead th.is-ours { border-radius: 14px 14px 0 0; }
.guide article .vs tbody tr:last-child td.is-ours { border-radius: 0 0 14px 14px; }
.guide article .vs .yes::before, .guide article .vs .no::before { font-size: 18px; line-height: 1; }
.guide article .vs .yes::before { content: "\2713"; color: var(--green); font-weight: 700; }
.guide article .vs .no::before { content: "\2013"; color: var(--muted); opacity: 0.5; }
@media (max-width: 640px) {
  .guide article table.vs { display: table; overflow: visible; font-size: 14.5px; }
  .guide article table.vs thead, .guide article table.vs tbody { display: table-row-group; min-width: 0; }
  .guide article table.vs thead { display: table-header-group; }
  .guide article .vs th, .guide article .vs td { padding: 13px 4px; }
  .guide article .vs .name { font-size: 11.5px; margin-top: 5px; hyphens: auto; overflow-wrap: anywhere; }
  .guide article .vs thead th { width: 21%; }
  .guide article .vs thead .ic { font-size: 20px; }
}
@media (max-width: 379px) {
  .guide article .vs thead th { width: 19%; }
  .guide article .vs th, .guide article .vs td { padding: 12px 2px; }
  .guide article .vs tbody th { padding-right: 8px; }
}
