/* honorary.css — HON-SITE-1: /honorary, the Studio layout. Desktop: categories left, the piece large in the centre, the chosen
   category's values right. Phone (<= 600 px): the piece on top (full width, square), a horizontal category strip, a row of value
   thumbnails; one screen, no page changes; the RESERVE bar sticky at the bottom. The site's own tokens (app.css). */
.hon-body { padding-bottom: 132px; }
.hon { max-width: 1240px; margin: 0 auto; padding: 40px 24px 40px; }
.hon-intro { max-width: 820px; margin: 0 0 28px; }
.hon-eyebrow { font-size: 12px; letter-spacing: 0.24em; color: var(--gilt); margin: 0 0 12px; text-transform: uppercase; }
.hon-title { font-family: Marcellus, serif; font-weight: 400; font-size: 40px; line-height: 1.15; margin: 0 0 14px; color: var(--ink); }
.hon-rules { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.hon-studio { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.hon-cats { display: flex; flex-direction: column; gap: 6px; }
.hon-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; cursor: pointer; background: transparent;
  border: 1px solid var(--line2); border-radius: 3px; padding: 10px 12px; color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; }
.hon-cat[aria-pressed="true"] { border-color: var(--gilt); background: var(--surface); }
.hon-cat-name { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.hon-cat-pick { font-size: 14px; color: var(--ink); }
.hon-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hon-piece { aspect-ratio: 1 / 1; width: 100%; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--ground2); }
.hon-piece svg, .hon-thumb svg, .hon-wall-art svg, .hon-pfp svg { display: block; width: 100%; height: 100%; }
/* HON-ART-3j: the PFP view — the piece through a centred circle (diameter = the square's side) at 390 and 120 px */
.hon-pfp { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; padding: 16px 0; }
.hon-pfp[hidden], .hon-piece[hidden] { display: none; }
.hon-pfp-big { width: min(390px, 100%); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; }
.hon-pfp-small { width: 120px; height: 120px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; }
.hon-hud { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hon-badge { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; letter-spacing: 0.06em; }
.hon-badge[data-state="available"] { color: #9fd8a8; border-color: #2f5a37; }
.hon-badge[data-state="taken"] { color: #ff9aa2; border-color: #6e2a31; }
.hon-badge[data-state="yours"] { color: var(--gilt); border-color: var(--gilt); }
.hon-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.hon-tools .btn { padding: 9px 14px; font-size: 12px; }
.hon-values-head { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin: 0 0 8px; }
.hon-values-sub { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); } /* HON-ART-3g: the nose and the material under the mouth list */
.hon-values-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 76vh; overflow-y: auto; }
.hon-value { display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: transparent; border: 1px solid var(--line2); border-radius: 3px;
  padding: 4px; color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; text-align: left; }
.hon-value[aria-selected="true"] { border-color: var(--gilt); }
.hon-thumb { display: block; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border-radius: 2px; }
.hon-value-name { font-size: 11px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.hon-value[disabled] { cursor: not-allowed; }
.hon-value[disabled] .hon-thumb, .hon-value[disabled] .hon-value-name { opacity: 0.32; filter: grayscale(1); }
/* HON-ART-3c: a greyed value shows why ("hidden by <value>" / "covers <value>") */
.hon-why { font-size: 10px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.hon-why:empty { display: none; }
.hon-cat[disabled] { opacity: 0.45; cursor: not-allowed; }
.hon-fault { color: #ff9aa2; }
.hon-gallery { margin: 56px 0 0; }
.hon-h2 { font-family: Marcellus, serif; font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.hon-wall-note, .hon-wall-empty { color: var(--muted); font-size: 14px; }
.hon-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 0; }
.hon-wall-item { margin: 0; }
.hon-wall-art { aspect-ratio: 1 / 1; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; }
.hon-wall-pager { display: flex; gap: 6px; margin: 12px 0 0; }
.hon-page { background: transparent; color: var(--muted); border: 1px solid var(--line2); border-radius: 3px; padding: 4px 10px; cursor: pointer; }
.hon-page[aria-current="true"] { color: var(--ink); border-color: var(--gilt); }
.hon-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, calc((100vw - 1240px) / 2 + 24px)); background: var(--ground); border-top: 1px solid var(--line); isolation: isolate; }
.hon-bar-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hon-bar-line, .hon-elig, .hon-reason, .hon-refusal { margin: 0; font-size: 14px; line-height: 1.45; }
.hon-bar-line { color: var(--ink); }
.hon-elig { color: var(--gilt); }
.hon-reason { color: var(--muted); }
.hon-refusal { color: #ff9aa2; }
.hon-elig-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.hon-bar .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 1080px) { .hon-studio { grid-template-columns: 200px minmax(0, 1fr) 240px; } .hon-values-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hon { padding: 12px 16px 24px; display: flex; flex-direction: column; }
  .hon-studio { order: 1; } .hon-intro { order: 2; margin: 20px 0 0; } .hon-fault { order: 3; } .hon-gallery { order: 4; }
  .hon-title { font-size: 28px; }
  .hon-rules { font-size: 14px; }
  .hon-studio { display: flex; flex-direction: column; gap: 8px; }
  /* one screen: the stage's children join the studio's column, so the tools can sit below the value row */
  .hon-stage { display: contents; }
  .hon-piece, .hon-pfp { order: 1; }
  .hon-pfp { width: 100%; gap: 16px; padding: 8px 0; }
  .hon-hud { order: 2; font-size: 12px; }
  .hon-tools { order: 5; }
  .hon-cats { order: 3; flex-direction: row; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
  .hon-cat { flex: 0 0 auto; padding: 8px 10px; }
  .hon-cat-pick { font-size: 12px; white-space: nowrap; }
  .hon-values { order: 4; width: 100%; }
  .hon-values-head { display: none; }
  .hon-values-head.hon-values-sub { display: block; margin-top: 8px; padding-top: 6px; }
  .hon-values-row { display: flex; overflow-x: auto; max-height: none; gap: 8px; padding-bottom: 4px; }
  .hon-value { flex: 0 0 80px; }
  .hon-value-name { font-size: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hon-bar { padding: 10px 16px; gap: 10px; }
  .hon-bar-line, .hon-elig, .hon-reason, .hon-refusal { font-size: 12px; }
  .hon-bar .btn { padding: 11px 16px; }
  .hon-body { padding-bottom: 150px; }
}
/* HON-SITE-1 corrections (operator, Nov 3): the site's toast lifted above the fixed RESERVE bar (honorary.js publishes the bar's
   live height as --hon-bar-h); on a phone it keeps a 16 px gutter. */
.toast { bottom: calc(var(--hon-bar-h, 132px) + 12px); max-width: calc(100vw - 32px); box-sizing: border-box; }
@media (max-width: 600px) {
  /* HON-POLISH-1 R1: the three tool buttons on ONE line (no wrap, no overflow) */
  .hon-tools { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
  .hon-tools .btn { flex: 1 1 0; min-width: 0; padding: 9px 4px; font-size: 11px; letter-spacing: 0.04em; text-align: center; white-space: nowrap; }
}
/* HON-SITE-3b: /c/honoraries — the collection shell's tab strip (the site's .oo-tabs, inside the page's own column); its one tab
   (the Studio) is the current one */
.hon-tabs { padding: 0; margin: 0 0 28px; }
.hon-tabs a { text-transform: uppercase; }
.hon-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gilt); }

/* HON-POLISH-1 (operator, 2026-11-25) ------------------------------------------------------------------------------------------
   R1: ONE tools row (Shuffle · Reset · PFP view), never wrapped. R2: the share row (js/share.js) is the SECOND row, directly under it
   (on a phone the stage's children join the studio's column: the row takes the order after the tools). */
.hon-tools { flex-wrap: nowrap; }
.hon-tools .btn { white-space: nowrap; }
.hon-stage > [data-oo-share] { margin-top: 0 !important; }
.hon-stage > [data-oo-share] [data-hon-card-wait] { font-size: 13px; color: #A8A39A; }
.hon-stage > [data-oo-share] [data-oo-share-x][aria-disabled="true"] { opacity: 0.45; cursor: progress; pointer-events: none; }
@media (max-width: 600px) { .hon-stage > [data-oo-share] { order: 6; width: 100%; } .hon-preview { order: 1; } }
/* R5: the STATUS — the window line, the wallet's own line, "See who's eligible", "Verify wallet", "Load my reserved design" and a
   check's refusal. A full-width line directly under the header; honorary.js seats it in the header, beside CONNECT, where it fits
   without touching the navigation or the wallet control (.in-head). */
.hon-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 14px; padding: 8px 40px; border-bottom: 1px solid var(--line2);
  background: var(--ground); font-size: 12px; line-height: 1.4; color: var(--muted); text-align: right; }
.hon-status p { margin: 0; }
.hon-status .hon-bar-line { color: var(--ink); }
.hon-status .hon-bar-line:empty { display: none; }
.hon-status .hon-elig { color: var(--gilt); }
.hon-status .hon-refusal { color: #ff9aa2; flex-basis: 100%; }
.hon-status-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; }
.hon-status .hon-elig-link { font-size: 12px; }
.hon-linkbtn { background: transparent; border: 0; padding: 0; margin: 0; color: var(--gilt); font: inherit; font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.hon-linkbtn[hidden], .hon-elig-link[hidden] { display: none; }
.hon-linkbtn:disabled { opacity: 0.5; cursor: progress; }
.hon-status.in-head { flex: 0 0 236px; width: 236px; flex-direction: column; flex-wrap: nowrap; align-items: flex-end; justify-content: center; gap: 1px;
  padding: 0; border: 0; background: transparent; line-height: 1.3; }
.hon-status.in-head .hon-refusal { flex-basis: auto; }
@media (max-width: 900px) { .hon-status { padding: 7px 16px; justify-content: flex-start; text-align: left; } .hon-status-acts { justify-content: flex-start; } }
.hon-bar-text:not(:has(:not([hidden]))) { display: none; }
.hon-bar { justify-content: flex-end; }
.hon-bar .hon-bar-text { margin-right: auto; }
/* R9: THE PREVIEW MARK — while #hon carries data-mark (the page boots with it; honorary.js lifts it only on a signed eligible or
   reserved answer for the connected wallet) every DRAFT drawing carries "PREVIEW · NOT RESERVED", tiled diagonally across the whole
   square, ABOVE the piece and outside its SVG (the composer's bytes, the byte gate and the design hash are untouched). The gallery
   is never marked. Printed too (print-color-adjust), clicks pass through, nothing to select, drag or long-press. */
.hon-piece, .hon-pfp-big, .hon-pfp-small, .hon-thumb { position: relative; }
#hon[data-mark] .hon-piece::after, #hon[data-mark] .hon-pfp-big::after, #hon[data-mark] .hon-pfp-small::after, #hon[data-mark] .hon-thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  /* F4: the words (an image) over a CSS-only diagonal hatch (no file), so a draft is marked even if the image is blocked, late or fails */
  background: url(/img/hon-mark.svg) center / 100% 100% no-repeat,
    repeating-linear-gradient(-30deg, rgba(255, 255, 255, 0.2) 0 1.5px, rgba(10, 10, 11, 0.2) 1.5px 3px, transparent 3px 14px);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#hon[data-mark] .hon-pfp-small::after, #hon[data-mark] .hon-thumb::after {
  background: url(/img/hon-mark-small.svg) center / 100% 100% no-repeat,
    repeating-linear-gradient(-30deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(10, 10, 11, 0.2) 1px 2px, transparent 2px 8px); }
#hon[data-mark] .hon-piece, #hon[data-mark] .hon-pfp, #hon[data-mark] .hon-thumb { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#hon[data-mark] .hon-piece svg, #hon[data-mark] .hon-pfp svg, #hon[data-mark] .hon-thumb svg { pointer-events: none; -webkit-user-drag: none; }
.hon-preview { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
#hon:not([data-mark]) .hon-preview { display: none; }
@media print { #hon[data-mark] .hon-piece::after, #hon[data-mark] .hon-pfp-big::after, #hon[data-mark] .hon-pfp-small::after, #hon[data-mark] .hon-thumb::after { display: block; } }
