/* Inner pages: the same dark hall. Tokens, bar, buttons and footer come from home.css. */
main { min-height: 60svh; }
/* docs */
.docs { padding-top: 32px; }
.docs h1 { font-size: var(--step-head); }
.docs .lead { margin-top: 20px; }
.doc-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.doc h2, .docs-sub { font-size: var(--step-lead); }
.doc ol { margin: 18px 0 0; padding-left: 1.2em; font-size: var(--step-body); display: grid; gap: 12px; line-height: 1.5; }
.doc code, .addrs code { font: inherit; font-size: 1em; overflow-wrap: anywhere; color: var(--accent-text); }
.docs-sub { margin-top: 72px; }
.addrs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; }
.addrs li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 14px 18px; background: var(--surface); font-size: var(--step-body); }
.docs-more { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; gap: 40px; }
  .addrs li { grid-template-columns: 1fr; gap: 4px; }
}
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 36rem; }
code { font: 14px/1.5 ui-monospace, Consolas, monospace; } /* taste-skill-ignore: addresses and hashes are literal */

/* ---------------------------------------------------------------- catalogue */
.cat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 24px; }
.cat-pic { grid-column: 1 / span 4; position: sticky; top: 6vh; align-self: start; aspect-ratio: 3 / 4; overflow: hidden; }
.cat-pic .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 420ms var(--ease); }
.cat-pic .pic.is-shown { opacity: 1; animation: drift 14s ease-in-out infinite alternate; }
.cat-main { grid-column: 6 / span 7; }
.cat-main h1 { font-size: var(--step-head); }
.cat-main .lead { margin-top: 20px; }
.filters { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: end; gap: 14px; background: var(--surface); padding: 18px; }
.filters input[type="search"], .filters select {
  min-height: 48px; background: var(--surface-2); color: var(--ink); border: 0; padding: 0 14px; font: inherit; font-size: var(--step-body);
}
.f-q { flex: 1 1 260px; display: flex; }
.f-q input { width: 100%; }
.filters input::placeholder { color: var(--muted); }
.f-sel { display: flex; flex-direction: column; gap: 4px; font-size: var(--step-small); color: var(--muted); }
.filters .btn { min-height: 48px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.agents { list-style: none; margin: 48px 0 0; padding: 0; }
.agent { padding: 22px 0; }
.agent + .agent { margin-top: 6px; }
.agent-link { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; text-decoration: none; }
.agent-name { font-size: var(--step-lead); line-height: 1.2; transition: color 160ms; }
.agent-link:hover .agent-name, .agent-link:focus-visible .agent-name { color: var(--accent-text); }
.agent-price { font-size: var(--step-lead); white-space: nowrap; }
.agent-desc { margin-top: 8px; max-width: 40rem; }
.agent-meta { margin-top: 6px; color: var(--muted); font-size: var(--step-small); }
.empty { margin-top: 48px; font-size: var(--step-lead); max-width: 34rem; }

/* ---------------------------------------------------------------- an agent */
.agent-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); grid-template-areas: "pic . head" "pic . main"; grid-template-rows: auto 1fr; column-gap: 24px; padding-top: 24px; }
.agent-head { grid-area: head; }
.agent-head h1 { font-size: var(--step-head); }
.agent-pic { grid-area: pic; position: sticky; top: 6vh; align-self: start; }
.agent-pic img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; animation: drift 16s ease-in-out infinite alternate; }
.agent-pic-cap { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }
.agent-main { grid-area: main; min-width: 0; }
.price-line { margin-top: 18px; font-size: var(--step-lead); }
.price-line .num { color: var(--accent-text); }
.agent-about { margin-top: 24px; max-width: 38rem; }
.burn-note { margin-top: 18px; background: var(--surface); padding: 16px 18px; max-width: 38rem; }
.agent-main h2, .deal h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: 0.01em; margin-top: 64px; margin-bottom: 18px; }
.record { list-style: none; margin: 0; padding: 0; max-width: 38rem; }
.record li { display: flex; justify-content: space-between; gap: 24px; padding: 9px 0; }
.record li > :first-child { color: var(--muted); }
.record a { text-decoration: none; }
.record a:hover { color: var(--accent-text); }
.skills { list-style: none; margin: 0; padding: 0; }
.skill + .skill { margin-top: 28px; }
.skill h3 { font-size: var(--step-body); font-weight: 600; }
.skill p { margin-top: 4px; max-width: 38rem; }
.skill .tags { color: var(--muted); font-size: var(--step-small); }
.skill .ex-q { color: var(--muted); }
.agent-main .call { margin: 18px 0 0; background: var(--surface); padding: 20px 22px; overflow-x: auto; font: 14px/1.6 ui-monospace, Consolas, monospace; } /* taste-skill-ignore: a literal request */
.hire-more { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.deals { list-style: none; margin: 0; padding: 0; max-width: 38rem; }
.deals li { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; padding: 9px 0; }
.deals a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.deals a:hover { color: var(--accent-text); }
.deals li > span:first-of-type { color: var(--muted); }
.addr { margin-top: 64px; color: var(--muted); font-size: var(--step-small); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- a deal */
.deal { padding-top: 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.deal-pic { grid-column: 1 / span 4; position: sticky; top: 6vh; align-self: start; }
.deal-pic { aspect-ratio: 3 / 4; }
.deal-main { grid-column: 1 / span 9; }
.deal-head h1 { font-size: var(--step-head); max-width: 14em; }
.deal-head .lead { margin-top: 20px; }
.deal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 48px; }
.task { max-width: 34rem; }
.docs { margin-top: 18px; color: var(--muted); font-size: var(--step-small); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 10px 0; }
.step + .step { margin-top: 10px; }
.step img { width: 84px; height: 112px; object-fit: cover; }
.step-who { color: var(--muted); font-size: var(--step-small); }
.step-what { margin-top: 2px; }
.step-when { margin-top: 2px; color: var(--muted); font-size: var(--step-small); }
.step-none { color: var(--muted); }

/* ---------------------------------------------------------------- the frieze */
.frieze { margin-top: clamp(112px, 11vw, 168px); }
.frieze h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: 0.01em; }
.frieze-row { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.frieze-row a { display: block; text-decoration: none; }
.frieze-row img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; filter: brightness(0.6); transition: filter 400ms var(--ease), transform 500ms var(--ease); }
.frieze-row a:hover img, .frieze-row a:focus-visible img { filter: none; transform: translateY(-4px); }
.fz-name { display: block; margin-top: 10px; font-size: var(--step-body); }
.fz-role { display: block; color: var(--muted); font-size: var(--step-small); }

/* ---------------------------------------------------------------- not found */
.nf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 24px; }
.nf .city-pic { aspect-ratio: 3 / 4; max-height: 76svh; }
.nf img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; max-height: 76svh; }
.nf h1 { font-size: var(--step-head); }
.nf .lead { margin: 20px 0 28px; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 860px) {
  .cat, .deal, .deal-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pic" "main"; }
  .agent-head { margin-bottom: 28px; }
  .deal-pic { grid-column: 1; position: static; max-width: 300px; margin-bottom: 28px; }
  .deal-main { grid-column: 1; }
  .frieze-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead, .agent-desc, .agent-about, .burn-note, .record, .skill p, .deals, .task, .empty { max-width: none; }
  .cat-pic { display: none; }
  .cat-main, .deal-facts, .deal-path { grid-column: 1; min-width: 0; }
  .agent-link { flex-direction: column; gap: 2px; }
  .agent-pic { position: static; max-width: 320px; margin-bottom: 32px; }
  .deal-path h2 { margin-top: 48px; }
  .nf { grid-template-columns: 1fr; }
  .nf img { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-pic .pic.is-shown, .agent-pic img, .deal-pic img { animation: none; }
  .frieze-row a:hover img { transform: none; }
}

/* cut-out statues end softly at the bottom instead of on a straight line */
.cat-pic .pic, .agent-pic img, .deal-pic img, .nf img, .frieze-row img { mask-image: linear-gradient(180deg, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); } /* taste-skill-ignore: an edge fade */

/* ---------------------------------------------------------------- marketplace */
.mk { padding-top: 32px; }
.mk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px 48px; }
.mk-head h1 { font-size: var(--step-head); }
.mk-head .lead { margin-top: 18px; }
.mk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cats { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { padding: 10px 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-family: "Cinzel", Georgia, serif; font-size: var(--step-small); transition: background-color 160ms; }
.cats a:hover { background: var(--surface-2); }
.cats a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.mk .filters { margin-top: 16px; }
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 20px; background: var(--surface); transition: background-color 180ms; }
.card:hover { background: var(--surface-2); }
/* an agent's own mark: its initials, carved */
.mono { width: 72px; height: 72px; display: grid; place-items: center; background: var(--bg); color: var(--accent-text); font-family: "Cinzel", Georgia, serif; font-size: 1.6rem; font-weight: 600; letter-spacing: 0.04em; }
.mono-big { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; font-size: clamp(4rem, 10vw, 9rem); background: var(--surface); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-name { font-family: "Cinzel", Georgia, serif; font-size: var(--step-body); font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.2; }
.card-name:hover { color: var(--accent-text); }
.card-price { white-space: nowrap; font-size: var(--step-body); color: var(--accent-text); }
.card-desc { margin-top: 8px; line-height: 1.45; }
.card-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: var(--step-small); }
.pill { padding: 2px 10px; background: var(--bg); color: var(--ink); }
.card-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--step-small); }
.card-tags a { color: var(--muted); }
.card-acts { margin-top: 16px; display: flex; align-items: center; gap: 20px; }
.sell-band { margin-top: 96px; display: grid; gap: 40px; align-items: center; padding: 32px 40px; background: var(--surface); }
.sell-band img { width: 100%; height: auto; }
.sell-band h2 { font-size: var(--step-head); }
.sell-band p { margin: 16px 0 24px; max-width: 34rem; }

/* hire form, sell form */
.hire, .sell-form { display: grid; gap: 18px; }
.hire { margin-top: 20px; padding: 24px; background: var(--surface); }
.hire label, .sell-form label { display: grid; gap: 6px; }
.hire label > span, .sell-form label > span { font-size: var(--step-small); color: var(--muted); }
.hire input, .hire textarea, .sell-form input, .sell-form textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 0; padding: 12px 14px; min-height: 48px; width: 100%;
}
.hire textarea, .sell-form textarea { resize: vertical; line-height: 1.45; }
.hire-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.hire-row label { flex: 0 1 180px; }
.hire-status, .sell-status { font-size: var(--step-small); color: var(--muted); min-height: 1.4em; overflow-wrap: anywhere; }
.is-bad { color: var(--ember); }
.btn:disabled, .btn-ghost:disabled { opacity: 0.55; cursor: progress; }
.dev { margin-top: 28px; }
.dev summary { cursor: pointer; color: var(--muted); }
.btn-ghost { min-height: 52px; padding: 0 22px; background: var(--surface-2); color: var(--ink); border: 0; font-family: "Cinzel", Georgia, serif; font-size: var(--step-small); cursor: pointer; }
.btn-ghost:hover { background: var(--seg-on); }
button.btn { border: 0; cursor: pointer; font-family: "Cinzel", Georgia, serif; }

.sell { padding-top: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; }
.sell-intro h1 { font-size: var(--step-head); }
.sell-intro .lead { margin-top: 18px; }
.sell-steps { margin: 32px 0 0; padding-left: 1.2em; display: grid; gap: 14px; line-height: 1.5; }
.sell-steps strong { font-weight: 600; }
.sell-form { grid-row: span 2; }
.sell-form fieldset { border: 0; margin: 0; padding: 24px; background: var(--surface); display: grid; gap: 16px; }
.sell-form legend { float: left; width: 100%; font-family: "Cinzel", Georgia, serif; font-size: var(--step-lead); margin-bottom: 4px; }
.sell-form .short { max-width: 220px; }
.seg-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-pick label { display: flex; }
.seg-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-pick span { padding: 12px 16px; min-height: 48px; display: flex; align-items: center; background: var(--bg); color: var(--ink) !important; cursor: pointer; font-size: var(--step-small); }
.seg-pick input:checked + span { background: var(--accent); color: var(--accent-ink) !important; }
.seg-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sell-acts { display: flex; flex-wrap: wrap; gap: 14px; }
.note { font-size: var(--step-small); color: var(--muted); }
.sell-preview h2 { font-size: var(--step-lead); }
.sell-preview .call { margin-top: 16px; max-height: 520px; overflow: auto; background: var(--surface); padding: 20px 22px; font: 13px/1.6 ui-monospace, Consolas, monospace; } /* taste-skill-ignore: a literal card */

/* connect your AI */
.cx { padding-top: 32px; }
.cx-head { display: grid; gap: 48px; align-items: end; }
.cx-head h1 { font-size: var(--step-head); }
.cx-head .lead { margin-top: 18px; }
.cx-head img { width: 100%; height: auto; }
.cx-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cx-item { padding: 28px; background: var(--surface); min-width: 0; }
.cx-item:first-child { grid-row: span 2; }
.cx-item h2 { font-size: var(--step-lead); }
.cx-item > p { margin-top: 10px; max-width: 36rem; }
.cx-k { margin-top: 20px !important; font-size: var(--step-small); color: var(--muted); }
.snip { position: relative; margin-top: 10px; }
.snip .call { margin: 0; background: var(--bg); padding: 16px 84px 16px 18px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, Consolas, monospace; } /* taste-skill-ignore: a literal command */
.copy { position: absolute; top: 8px; right: 8px; min-height: 36px; padding: 0 12px; border: 0; background: var(--surface-2); color: var(--ink); font-family: "Cinzel", Georgia, serif; font-size: 13px; cursor: pointer; }
.copy:hover { background: var(--seg-on); }
.cx-more { margin-top: 32px; }

@media (max-width: 860px) {
  .card { grid-template-columns: 56px minmax(0, 1fr); }
  .card .mono { width: 56px; height: 56px; font-size: 1.25rem; }
  .mono-big { max-width: 220px; }
  .sell-band { grid-template-columns: 1fr; padding: 24px; }
  .sell-band img { max-width: 160px; }
  .sell { grid-template-columns: 1fr; }
  .cx-head { grid-template-columns: 1fr; }
  .cx-head img { max-width: 200px; }
  .cx-list { grid-template-columns: 1fr; }
  .cx-item:first-child { grid-row: auto; }
}

/* ---------------------------------------------------------------- account */
.acc { padding-top: 32px; }
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; }
.acc-head h1 { font-size: var(--step-head); }
.acc-head .lead { margin-top: 18px; }
.acc-who code { font: 15px/1.4 ui-monospace, Consolas, monospace; color: var(--accent-text); } /* taste-skill-ignore: a literal address */
.acc-gate[hidden], .acc-body[hidden] { display: none; }
.acc-gate { margin-top: 48px; padding: 40px; background: var(--surface); display: grid; justify-items: start; gap: 20px; max-width: 640px; }
.acc-gate p:first-child { font-size: var(--step-lead); line-height: 1.4; }
.acc-note, .acc-empty, .acc-line { color: var(--muted); }
.acc-sums { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.acc-sums li { padding: 24px; background: var(--surface); display: grid; gap: 10px; align-content: start; }
.sum-k { color: var(--muted); font-size: var(--step-small); }
.sum-v { font-family: "Cinzel", Georgia, serif; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1; color: var(--accent-text); }
.acc-status { margin-top: 20px; min-height: 1.4em; color: var(--muted); }
.acc-part { margin-top: 72px; }
.acc-part h2 { font-size: var(--step-lead); margin-bottom: 20px; }
.bonds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bond { padding: 24px; background: var(--surface); display: grid; gap: 8px; justify-items: start; }
.bond-k { color: var(--muted); font-size: var(--step-small); }
.bond-v { font-size: var(--step-lead); }
.bond-acts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.deal-list, .agent-sums { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.deal-row { display: grid; grid-template-columns: 7rem minmax(0, 1.2fr) minmax(0, 1.4fr) 9rem auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--surface); }
.deal-id { font-family: "Cinzel", Georgia, serif; color: var(--ink); }
.deal-who { overflow-wrap: anywhere; }
.deal-st { color: var(--muted); font-size: var(--step-small); }
.st-submitted { color: var(--accent-text); }
.deal-amt { text-align: right; }
.deal-acts { display: flex; gap: 8px; justify-content: flex-end; }
.deal-acts .btn, .deal-acts .btn-ghost, .bond-acts .btn, .bond-acts .btn-ghost { min-height: 40px; }
.agent-sums { margin-bottom: 16px; }
.agent-sums li { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 14px 18px; background: var(--surface); color: var(--muted); }
.agent-sums li .link { color: var(--ink); font-size: var(--step-body); }
.acc-line .num { color: var(--ink); }
@media (max-width: 860px) {
  .acc-sums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bonds { grid-template-columns: 1fr; }
  .deal-row { grid-template-columns: 1fr auto; }
  .deal-who, .deal-st { grid-column: 1 / -1; }
  .deal-acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* the city closes every inner page, the same view as the first screen */
.city-band { margin-top: clamp(96px, 10vw, 152px); }
.city-band .city-pic { aspect-ratio: 21 / 8; background-position: 70% 55%; }
@media (max-width: 860px) { .city-band .city-pic { aspect-ratio: 4 / 3; } }
