/* Amaya "Thread" components — copied from the design system (round 7, 2026-09-30).
 * Load after ../tokens/tokens.css. Consumed by copying; this file is the record. */

.a-root, .a-root * { box-sizing: border-box; }
.a-root { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; color: var(--amaya-ink); background: var(--amaya-paper); -webkit-font-smoothing: antialiased; }
.a-root :focus-visible { outline: 2px solid var(--amaya-teal); outline-offset: 2px; }
.a-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amaya-ink-2); }
.a-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--amaya-ink-2); }

/* ---- Lockup: word at 3/4 of the mark, one thread width apart, baseline 17% up the threads ---- */
.a-lockup { display: inline-flex; align-items: baseline; color: var(--amaya-ink); line-height: 1; text-decoration: none;
  font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.02em;
  font-size: calc(var(--mark) * 18 / 24); gap: calc(var(--mark) / 24 - 0.042em); }
.a-lockup svg { width: var(--mark); height: var(--mark); flex: none; display: block; transform: translateY(calc(var(--mark) * 5.4 / 24)); }
.a-lockup .t1 { fill: var(--amaya-teal); } .a-lockup .t2 { fill: var(--amaya-copper); }
.a-lockup.on-deep { color: var(--amaya-on-deep); }
.a-lockup.on-deep .t1 { fill: var(--amaya-teal-bright); } .a-lockup.on-deep .t2 { fill: var(--amaya-amber); }

/* ---- Key: a pressable object. Hard shadow at rest, lifts on hover, presses flat ---- */
.a-keys { display: flex; gap: var(--key-gap); flex-wrap: wrap; }
.a-key { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; font: inherit; font-size: 14px; line-height: 1.3; text-decoration: none; cursor: pointer;
  background: var(--amaya-paper); color: var(--amaya-ink); border: var(--key-border) solid var(--amaya-ink); border-radius: var(--amaya-radius);
  box-shadow: var(--key-shadow); transition: transform 90ms ease, box-shadow 90ms ease, background 140ms ease; }
.a-key:hover { transform: translate(-1px, -1px); box-shadow: var(--key-shadow-hover); }
.a-key:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--amaya-ink); }
.a-key.primary { background: var(--amaya-ink); color: var(--amaya-paper); }
.a-key.primary:hover { background: #22292c; }
.a-key:disabled, .a-key[aria-disabled="true"] { background: var(--amaya-stone); color: var(--amaya-ink-2); border-color: var(--amaya-grey); box-shadow: none; transform: none; cursor: not-allowed; }

/* ---- Resolve: the photograph, full-bleed, drawn by Amaya.resolve ---- */
.a-resolve { position: relative; height: 560px; overflow: hidden; background: var(--amaya-paper); }
.a-resolve canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- Claim: the one claim, its body and its keys ---- */
.a-claim { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 16px var(--amaya-gutter) var(--section); }
.a-claim h1, .a-claim h2 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; margin: 0; text-wrap: balance; }
.a-claim em { font-style: normal; color: var(--amaya-copper); }
.a-claim p { margin: 0 0 18px; font-size: 15px; color: var(--amaya-ink-2); max-width: var(--measure); }

/* ---- Register: numbered rows and the numerals they add up to ---- */
.a-register { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 28px var(--amaya-gutter) var(--section); border-top: 1px solid var(--amaya-ink); }
.a-register .row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; border-top: 1px solid var(--amaya-hair); padding: 11px 0; font-family: var(--font-mono); font-size: 13.5px; }
.a-register .row:first-child { border-top-color: var(--amaya-ink); }
.a-register .figures { display: flex; gap: 28px; }
.a-numeral { font-size: clamp(72px, 10vw, 128px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.8; display: block; margin-top: 10px; font-variant-numeric: tabular-nums; }
.a-numeral.dim { color: var(--amaya-grey); }

/* ---- Band: the one colour band ---- */
.a-band { background: var(--amaya-deep); color: var(--amaya-on-deep); padding: var(--section) var(--amaya-gutter) 40px; }
.a-band p { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; max-width: 24ch; margin: 0; text-wrap: balance; }

/* ---- Headers and footer ---- */
.a-site-header, .a-app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--amaya-gutter); flex-wrap: wrap; border-bottom: 1px solid var(--amaya-hair); }
.a-site-header nav, .a-app-header nav { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.a-site-header nav a, .a-app-header nav a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; padding: 6px 0 2px; }
.a-site-header nav a:hover, .a-app-header nav a:hover, .a-site-header nav a[aria-current="page"], .a-app-header nav a[aria-current="page"] { border-bottom-color: var(--amaya-ink); }
.a-app-header { padding-top: 12px; padding-bottom: 12px; }
.a-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px var(--amaya-gutter); font-family: var(--font-mono); font-size: 11px; color: var(--amaya-ink-2); }

/* ---- State marks: shape + colour, always beside a word ---- */
.a-mark { width: 10px; height: 10px; display: inline-block; position: relative; flex: none; }
.a-mark.considered { border: 1.25px solid var(--amaya-teal); }
.a-mark.building { background: var(--amaya-teal); }
.a-mark.parked { border: 1.25px solid var(--amaya-grey); }
.a-mark.error { background: var(--amaya-copper); transform: rotate(45deg) scale(0.9); }
.a-mark.live::before { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--amaya-gold); }
.a-mark.live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--amaya-gold); opacity: 0; animation: a-halo 3.6s ease-out infinite; }
@keyframes a-halo { 0% { transform: scale(0.7); opacity: 0.7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.a-state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.a-state.error { color: var(--amaya-copper); }

/* ---- Card: flat; the border darkens on hover, the card moves 1px when pressed ---- */
.a-card { display: block; width: 100%; text-align: left; font: inherit; color: var(--amaya-ink); background: var(--amaya-paper); border: 1px solid var(--amaya-hair); border-radius: var(--amaya-radius);
  padding: 12px 12px 10px; margin: 0 0 var(--card-gap); cursor: pointer; transition: border-color 140ms ease, transform 80ms ease; }
.a-card:hover { border-color: var(--amaya-ink); } .a-card:active { transform: translateY(1px); }
.a-card .t { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.a-card .s { display: block; font-size: 13px; color: var(--amaya-ink-2); margin-top: 3px; line-height: 1.4; }
.a-card .m { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--amaya-ink-2); letter-spacing: 0.04em; }
.a-card .a-state { margin-top: 10px; }
.a-card.parked { background: var(--amaya-stone); color: var(--amaya-ink-2); }

/* ---- Board: state columns divided by hairlines ---- */
.a-board-top { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; padding: 22px var(--amaya-gutter) 20px; border-bottom: 1px solid var(--amaya-ink); }
.a-board-top h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.a-board-top .grow { flex: 1; }
.a-board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.a-board .col { min-width: 0; padding: 16px 16px 24px; border-left: 1px solid var(--amaya-hair); }
.a-board .col:first-child { border-left: 0; padding-left: var(--amaya-gutter); } .a-board .col:last-child { padding-right: var(--amaya-gutter); }
.a-board .col h2 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.a-board .col h2 .n { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--amaya-ink-2); }

/* ---- Banner: a message that explains consequence ---- */
.a-banner { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--amaya-ink); font-size: 14px; }

/* ---- Panel: the one dialog shape ---- */
.a-overlay { background: var(--overlay-scrim); display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px; }
.a-panel { background: var(--amaya-paper); border: 1px solid var(--amaya-ink); padding: 22px 24px 24px; width: min(640px, 100%); }
.a-panel h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 4px; }
.a-field { display: block; margin-top: 14px; }
.a-field > span { display: block; margin-bottom: 5px; }
.a-input, .a-select, .a-textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--amaya-ink-2); border-radius: var(--amaya-radius); font: inherit; font-size: 14px; background: var(--amaya-paper); color: var(--amaya-ink); }
.a-input:focus, .a-select:focus, .a-textarea:focus { border-color: var(--amaya-teal); outline: 2px solid var(--amaya-teal); outline-offset: -1px; }
.a-textarea { min-height: 7rem; line-height: 1.5; }
.a-panel .a-keys { margin-top: 22px; }

@media (max-width: 760px) {
  .a-claim, .a-register { grid-template-columns: 1fr; }
  .a-resolve { height: 380px; }
  .a-board { grid-template-columns: 1fr; }
  .a-board .col, .a-board .col:first-child { border-left: 0; border-top: 1px solid var(--amaya-hair); padding: 14px var(--amaya-gutter); }
  .a-input, .a-select, .a-textarea { font-size: 16px; }
}
@media (max-width: 560px) { .a-root { --amaya-gutter: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .a-root *, .a-root *::before, .a-root *::after { transition: none !important; animation: none !important; }
  .a-mark.live::after { opacity: 0.5; transform: scale(1.3); }
}
