/* Ellery's articles (2026-11-11): the blog at elleryresearch.com/blog and the help center at help.elleryresearch.com.
   Loaded after site.css, whose tokens and header/footer it reuses. site-help/ carries a byte-for-byte copy of both
   files (test/site-content.test.mjs keeps them equal). Plan: docs/CONTENT-PLAN-2026-11-11.md. */

/* breadcrumbs */
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--soft); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-ink); }

/* article page */
.art { padding: 48px 0 72px; }
.art-wrap { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 64px; justify-content: center; }
.art-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.art-head h1 { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1.05; letter-spacing: -0.035em; }
.art-head .lead { font-size: 19px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); }
.answer { margin: 0 0 32px; padding: 20px 22px; border-radius: 16px; background: var(--tint); border: 1px solid #D9DCFF; }
.answer h2 { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.answer p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.prose { font-size: 17px; line-height: 1.7; color: var(--body); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.prose h3 { margin-top: 28px; font-size: 19px; font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--grey); padding: 1px 6px; border-radius: 6px; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.figs li { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.figs b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.figs span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tbl-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl caption { padding: 14px 16px 4px; text-align: left; font-weight: 600; color: var(--ink); }
.tbl th, .tbl td { padding: 10px 16px; border-top: 1px solid var(--line-2); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.tbl tfoot td, .tbl tfoot th { font-weight: 600; color: var(--ink); }
.src { margin: 36px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--grey); font-size: 14.5px; line-height: 1.6; color: var(--body); }
.src h2 { margin: 0 0 8px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.src p + p, .src ul { margin-top: 8px; }
.src ul { padding-left: 20px; }
.note { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* side column */
.art-side { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 96px; }
.side-box { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.side-box h2 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.side-box ul { margin: 0; padding: 0; list-style: none; }
.side-box li + li { margin-top: 8px; }
.side-box a { font-size: 15px; line-height: 1.4; text-decoration: none; }
.side-box a:hover { text-decoration: underline; }
.side-box p { font-size: 14.5px; line-height: 1.5; color: var(--body); }
.side-box .btn { margin-top: 12px; min-height: 44px; width: 100%; font-size: 14px; }

/* related */
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cards a:hover { border-color: var(--blue); }
.cards .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.cards b { font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.cards span { font-size: 15px; line-height: 1.5; color: var(--body); }

/* index pages (the blog's front page, the help center's home) */
.ix { padding: 56px 0 80px; }
.ix-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.ix-head h1 { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.ix-sec + .ix-sec { margin-top: 44px; }
.ix-sec > h2 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.ix-sec > p { margin: -6px 0 14px; color: var(--muted); }
.soon { font-size: 15px; color: var(--muted); }

/* the help center's header label */
.helpname { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted); margin-left: -2px; }

@media (max-width: 1000px) {
  .art-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art-side { position: static; }
}
@media (max-width: 640px) {
  .art { padding-top: 32px; }
  .art-head h1 { font-size: 34px; }
  .ix-head h1 { font-size: 40px; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 24px; }
}

/* footer column labels on the article pages: plain text, not headings, so the article's outline stays whole */
.foot-cols .fh { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* Table headers and row labels wrap, so the figures fit the column without scrolling on a desktop. */
.tbl thead th, .tbl td:first-child, .tbl th:first-child { white-space: normal; }
.tbl th, .tbl td { padding: 10px 12px; }

/* Long file names and addresses break rather than push the page wider than a phone. */
.art-wrap > article { min-width: 0; }
.prose, .art-head, .answer, .src, .crumbs { overflow-wrap: anywhere; }
.tbl tbody th { font-weight: 500; color: var(--ink); text-align: left; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { font-weight: 600; }
