/* get-hermes.ai components for the new-style pages (memory, compare/claude-code, specimen). Load after /chrome.css,
   which provides the tokens, fonts, header, Menu and footer. Gold = Hermes and the primary action only.
   Green/red = yes/no cells only. Two radii. One container (1100) and one prose measure (720). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-underline-offset: 2px; overflow-wrap: break-word; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
strong { font-weight: 600; }
small, .small { font-size: 14px; }
.muted { color: var(--text-2); }
.block { display: block; }

/* Gold stays for prose links and the main button; links inside data take the text colour */
td a, th a, .card h3 a, .card .meta a, .callout a, a code { color: inherit; }

/* Type scale: 14 / 16 / 18 / 22 / 30 / 48 (64 home only). Weights 400 600 700. */
h1, h2, h3 { color: var(--text); font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: 48px; letter-spacing: -0.02em; }
h2 { font-size: 30px; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--text-2); max-width: var(--measure); }
@media (max-width: 760px) { h1 { font-size: 36px; } h2 { font-size: 26px; } h3 { font-size: 20px; } }

code, pre, kbd { font-family: var(--mono); font-size: 14px; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-ctl); padding: 16px; overflow-x: auto; line-height: 1.5; margin: 0 0 16px; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.section { padding: var(--section) 0; border-top: 1px solid var(--border); }
.page-head + .section { padding-top: 0; border-top: 0; }
.section h2 + .lead { margin-top: -4px; margin-bottom: 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid:has(pre) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.grid + *, .grid-2 + *, .table-wrap + *, .shot + * { margin-top: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-ctl); font: 600 15px var(--font); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--surface); }

/* Page head (left-aligned, no badge, no glow) */
.page-head { padding: 56px 0 40px; }
.breadcrumb { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-2); }
.page-head .lead { margin-bottom: 16px; }
.page-head .callout { margin-top: 24px; }
.stamp { margin-top: 16px; font-size: 14px; color: var(--text-2); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card-highlight { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.card h3 { margin-bottom: 4px; }
.card .meta { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.card ul { margin: 12px 0 0; padding-left: 20px; }
.card ul li + li { margin-top: 6px; }

/* Chips: neutral outline. Pills only for real status. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip { display: inline-block; border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; padding: 0 10px; font-size: 14px; line-height: 1.7; white-space: nowrap; }

/* Key-value rows inside a card (stacked when the card is narrow) */
.kv { margin: 12px 0; display: grid; gap: 10px; }
.kv-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.kv-row > :first-child { color: var(--text-2); font-size: 14px; }
.grid .kv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

/* Ranked list (numerals, not medals) */
.ranked { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: rank; display: grid; gap: 12px; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.ranked li::before { content: counter(rank); font: 700 15px var(--mono); color: var(--text-2); }
.card-highlight .ranked li:first-child::before { color: var(--gold-text); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
thead th { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
td small { display: block; color: var(--text-2); margin-top: 2px; }
.is-hermes { background: var(--gold-soft); }
thead th.is-hermes { color: var(--gold-text); }
.yes { color: var(--yes); font-weight: 600; }
.no { color: var(--no); font-weight: 600; }

/* Comparison tables stack into labelled blocks on phones (no sideways scroll) */
@media (max-width: 600px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th[scope="row"] { padding: 0 0 6px; border: 0; font-size: 15px; }
  .table-stack td { border: 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--border); }
  .table-stack td + td { margin-top: 6px; }
  .table-stack td.is-hermes { border-left-color: var(--gold); }
  .table-stack td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .table-stack td.is-hermes::before { color: var(--gold-text); }
}

/* Callout */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--r-card); background: var(--surface); padding: 20px 24px; max-width: var(--measure); }
.callout-label { font-size: 14px; font-weight: 600; color: var(--gold-text); margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }

/* Screenshot frame; theme-paired images */
.shot { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); margin: 0; }
.shot img { display: block; width: 100%; }
.shot figcaption { font-size: 14px; color: var(--text-2); padding: 10px 14px; border-top: 1px solid var(--border); }
:root[data-theme="light"] .only-dark, :root[data-theme="dark"] .only-light { display: none; }

/* Link list (replaces card grids of links) */
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

