/* Place pages opened over the island (src/places/*). Built on the card, buttons and mode bar in apply.css. */

.place-card { --c: #8a6a3e; gap: 16px; }
.place-root { --c: #8a6a3e; }
.place-card .pl-head { display: flex; flex-direction: column; gap: 8px; }
.place-card .pl-head h1 { margin: 0; font: 800 36px/1.04 var(--display); letter-spacing: -0.035em; }
.place-card .pl-head .kicker { color: var(--c); }
.pl-body { display: flex; flex-direction: column; gap: 14px; }
.pl-body > * { flex: none; }
.place-root .phase-pill i { background: var(--c); }

/* wallet strip, empty, error, loading */
.pl-connect { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(42, 32, 24, 0.05); font-size: 13.5px; color: var(--ink-2); }
.pl-connect span { flex: 1; }
.pl-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.pl-empty b { color: var(--ink); font-size: 14.5px; }
.pl-error { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(181, 51, 43, 0.08); color: #7d2520; font-size: 13.5px; }
.pl-error code { font: 500 12px var(--mono); background: rgba(255, 255, 255, 0.6); padding: 2px 6px; border-radius: 6px; }
.pl-skel { display: flex; flex-direction: column; gap: 10px; }
.pl-skel i { height: 54px; border-radius: 14px; background: linear-gradient(90deg, rgba(42, 32, 24, 0.05), rgba(42, 32, 24, 0.1), rgba(42, 32, 24, 0.05)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.pl-skel i:nth-child(2) { height: 120px; }
@keyframes skel { to { background-position: -200% 0; } }

/* stats */
.pl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-stats.three { grid-template-columns: repeat(3, 1fr); }
.pl-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(42, 32, 24, 0.045); min-width: 0; }
.pl-stat span { font-size: 11.5px; color: var(--ink-3); }
.pl-stat b { font: 500 15px/1.25 var(--mono); overflow-wrap: anywhere; }
.pl-stat em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.pl-stat.hot { background: color-mix(in srgb, var(--c) 12%, #fff); }

/* sections, tabs, lists */
.pl-section { display: flex; flex-direction: column; gap: 10px; }
.pl-section > h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font: 700 16px/1.2 var(--display); }
.pl-section > h3 small { font: 500 11.5px var(--mono); color: var(--ink-3); }
.pl-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(42, 32, 24, 0.06); }
.pl-seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 9px; cursor: pointer; font: 600 13px var(--body); color: var(--ink-2); }
.pl-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(42, 32, 24, 0.12); }
.pl-seg button em { font-style: normal; font: 500 11px var(--mono); color: var(--ink-3); margin-left: 4px; }
.pl-list { display: flex; flex-direction: column; gap: 8px; }
.pl-entry { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pl-entry.sel { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.pl-item-top { display: flex; align-items: center; gap: 10px; }
.pl-item-top b { font: 700 15px var(--display); }
.pl-item-top .grow { flex: 1; min-width: 0; }
.pl-item-top .meta { display: block; font-size: 12px; color: var(--ink-3); }
.pl-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.pl-rows div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pl-rows dt { font-size: 11px; color: var(--ink-3); }
.pl-rows dd { margin: 0; font: 500 13px var(--mono); overflow-wrap: anywhere; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-actions .btn { padding: 9px 13px; font-size: 13px; border-radius: 11px; }
.pl-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font: 500 11px var(--mono); background: rgba(42, 32, 24, 0.07); color: var(--ink-2); white-space: nowrap; }
.pl-tag.on { background: rgba(63, 138, 60, 0.13); color: #2f6e2c; }
.pl-tag.warn { background: rgba(217, 154, 30, 0.16); color: #8a5a0c; }
.pl-tag.bad { background: rgba(181, 51, 43, 0.12); color: #8f2a23; }
.pl-hint { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
/* a policy dial: Now, Starting, Max (src/ui/dial.js, G-09); a failed stat names itself and keeps its Retry in reach */
.pl-dial { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-dial b { color: var(--ink); margin-right: 4px; }
.pl-failed { color: var(--ink-3); font-style: normal; }
.pl-stat em .link { min-height: 44px; padding: 0 6px; }
.pl-warn { margin: 0; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: rgba(217, 154, 30, 0.12); color: #6e4808; }

/* forms inside a page */
.pl-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(42, 32, 24, 0.04); }
.pl-form label, .pl-form .pl-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; }
.pl-form .input input, .pl-form .input select { flex: 1; min-width: 0; border: 0; outline: none; background-color: transparent; padding: 10px 12px; font: 15px var(--mono); color: var(--ink); }
.pl-form .input select { padding-right: 36px; } /* room for the arrow apply.css draws */
.pl-form label.check { flex-direction: row; gap: 10px; font-size: 13px; font-weight: 400; } /* a checkbox sits beside its text */
.pl-form .input em { padding-right: 12px; padding-left: 0; font: 500 12px var(--mono); }
.pl-form .row-max { display: flex; justify-content: space-between; font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.pl-form .row-max button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink); text-decoration: underline; }
.pl-quote { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.pl-quote div { display: flex; justify-content: space-between; gap: 10px; }
.pl-quote b { font: 500 13px var(--mono); color: var(--ink); }

/* goat picker */
.pl-goats { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.pl-goat-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 12px; border: 1.5px solid transparent; background: #f1ecdf; cursor: pointer; font: inherit; color: var(--ink); }
.pl-goat-tile canvas { width: 42px; height: 33px; image-rendering: pixelated; }
.pl-goat-tile b { font: 500 11.5px var(--mono); }
.pl-goat-tile em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.pl-goat-tile[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.pl-goat-tile[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 4px; right: 6px; font-size: 11px; color: var(--c); font-weight: 700; }
.pl-goat-tile:disabled { opacity: 0.45; cursor: default; }
/* BA-21: a tile with an action is one button, at least 44 px tall and wide, its action word inside it */
.pl-goat-tile.act { min-height: 72px; min-width: 56px; }
.pl-goat-tile .act { font: 600 11.5px var(--body); color: var(--ink); text-decoration: underline; }
.pl-goat-tile.act:disabled .act { text-decoration: none; }
.pl-picker-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.pl-picker-bar .grow { flex: 1; }
.pl-picker-bar button.link { font-size: 12.5px; }
/* FX6 (BW I8): the Leaderboard's "Find a wallet" box was the browser's 22 px box with a 13 px font (iOS zooms the page under 16 px): on touch it is 44 px, 16 px, like the menu's find box */
@media (max-width: 900px), (pointer: coarse) {
  .pl-picker-bar input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 16px; }
}
/* FX8 (the coordinator's check of 12 Nov): a text box or a list that is not inside the .input box was the browser's own control (an inset grey border, 13.3 px type,
   147 x 22 px; the Grazing Barn list 91 x 19): the Leaderboard and Registry search bars with a mouse, "Send the payout to another address" (Hay Bales, Grazing, Barns),
   the Barn list of "Bind straight into a Barn" and the Goat Street rewards election. Every page gives them the site's box: 44 px and 16 px type (iOS zooms under 16 px),
   and 34 px and 13.5 px type with a mouse on a wide screen. fx8-check.test.js fails when a bare control of another kind appears in the page code. */
/* FX9 (VR8 N-7): a box with no type is a text box. VR8 N-2: a list keeps the base rule's mono type, as the lists in the .input box do; a font of its own was dead here,
   since :is() weighs as its heaviest part (input[type]) and the base rule outweighs .place select */
.place :is(input[type="text"], input[type="search"], input:not([type]), select):not(.input *):not(.stepper *) { box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background-color: #fff; color: var(--ink); font: 16px var(--mono); }
.place :is(input[type="text"], input[type="search"], input:not([type])):not(.input *):not(.stepper *) { width: 100%; }
.place select:not(.input *):not(.stepper *) { max-width: 100%; cursor: pointer; }
@media (min-width: 901px) and (pointer: fine) {
  .place :is(input[type="text"], input[type="search"], input:not([type]), select):not(.input *):not(.stepper *) { min-height: 34px; border-radius: 10px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  .place-card .pl-head h1 { font-size: 28px; }
  .place-card .pl-head .lead { display: none; }
  .pl-stats.three { grid-template-columns: 1fr 1fr; }
}

/* the chain lane's Local world drawer sits bottom right, under the page card: move it left while a page is open */
body[data-mode] .world-dev { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
body[data-mode] .world-dev .drawer { right: auto; left: 0; }
/* the sale keeps its Preview switch bottom left: the drawer sits above it */
body[data-mode="sale"] .world-dev { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 900px) {
  /* W10: the page is a sheet from under the whole top bar to the bottom edge, so under the top bar it covered the sheet's first line (the eyebrow, "BARN RAISING . THE FOUNDING SALE").
     The badge sits in a strip under the sheet instead, as W9 did for a wide screen: the sheet ends 52 px above the bottom while the badge exists (apply.css, local world only);
     the badge is at most 36 px tall at 12 px from the bottom. Its drawer opens upward over the sheet, as on the island */
  body[data-mode] .world-dev, body[data-mode="sale"] .world-dev { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  body[data-mode] .world-dev .drawer { max-width: calc(100vw - 32px); }
  /* iOS zooms the page into any field under 16 px */
  .mode-root .input input, .mode-root .input select, .mode-root .input textarea { font-size: 16px; }
}

/* Barn stalls, icons and the Gatehouse split */
.stalls { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.stalls i { aspect-ratio: 1; border-radius: 5px; background: rgba(42, 32, 24, 0.07); border: 1px dashed rgba(42, 32, 24, 0.18); }
.stalls i { position: relative; display: grid; place-items: center; overflow: hidden; }
/* own stall: a little white barn; Permit: a ticket; goat: its sprite on its tier colour; empty: a faint plus */
.stalls i.own, .stall-legend i.own { background: #b5332b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M4 1h4v1h2v2h1v1H1V4h1V2h2z'/%3E%3Cpath fill='%23fff' d='M2 6h8v5H2z'/%3E%3Cpath fill='%23b5332b' d='M5 7h2v4H5z'/%3E%3C/svg%3E") center / 56% no-repeat; border: 0; }
.stalls i.permit, .stall-legend i.permit { background: #e0866e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 3h10v2h-1v2h1v2H1V7h1V5H1z'/%3E%3Cpath fill='%23e0866e' d='M4 5h1v2H4zM7 5h1v2H7z'/%3E%3C/svg%3E") center / 56% no-repeat; border: 0; }
.stalls i.goat { --t: #cdbf9f; background: color-mix(in srgb, var(--t) 30%, #fff); border: 1.5px solid var(--t); }
.stalls i.goat canvas { width: 74%; height: auto; image-rendering: pixelated; }
.stalls i.goat.other { --t: #b3a68c; background: #f1ece2; border-style: dashed; }
.stalls i.goat.other canvas { opacity: 0.55; }
.stalls i.vacant::after { content: "+"; font: 500 13px/1 var(--mono); color: rgba(42, 32, 24, 0.22); }
.stalls i.block { background: #f4f1ea; border: 1.5px solid #b9c3cf; }
.stall-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11.5px; color: var(--ink-3); }
.stall-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.stall-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.stall-legend i.vacant { background: rgba(42, 32, 24, 0.07); border: 1px dashed rgba(42, 32, 24, 0.18); }
.stall-legend .tiers { gap: 4px; flex-wrap: wrap; }
.stall-legend .tiers em { font-style: normal; font: 500 10.5px var(--mono); padding: 2px 6px; border-radius: 6px; color: var(--ink-2); background: color-mix(in srgb, var(--t) 30%, #fff); border: 1px solid var(--t); }
.barn-ic { width: 26px; height: 24px; flex: none; image-rendering: pixelated; background:
  linear-gradient(#4b3347 0 0) 9px 0 / 8px 3px no-repeat, linear-gradient(#4b3347 0 0) 4px 3px / 18px 4px no-repeat,
  linear-gradient(#3a2637 0 0) 0 7px / 26px 3px no-repeat, linear-gradient(#f4f1ea 0 0) 9px 13px / 8px 10px no-repeat,
  linear-gradient(var(--c) 0 0) 2px 10px / 22px 13px no-repeat, linear-gradient(#80838a 0 0) 0 22px / 26px 2px no-repeat; }
.bale-ic { width: 26px; height: 18px; flex: none; border-radius: 3px; background: repeating-linear-gradient(90deg, #e8b84a 0 7px, #b8862a 7px 9px); box-shadow: inset 0 0 0 2px #9a6c1f; }
.goat-ic { width: 28px; height: 22px; image-rendering: pixelated; flex: none; }
.mini-title { font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pl-entry.pick { cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 9px 12px; }
.pl-entry.pick:disabled { opacity: 0.45; cursor: default; }
.pl-seg.small button { padding: 6px 8px; font-size: 12.5px; }
.pl-goat-tile .link { font-size: 11.5px; }
.pl-goat-tile .link:disabled { opacity: 0.4; cursor: default; }
.split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(42, 32, 24, 0.08); }
.split-bar i { display: block; height: 100%; }
.place-card i.t { background: #6b5a48; } .place-card i.p { background: #c2412d; } .place-card i.v { background: #3f8a3c; }
.place-card .stepper { align-self: flex-start; }
.place-card .chip { padding: 5px 10px; font-size: 12px; }
/* with the tabs hidden, keep the sound and wallet buttons on the right of the top bar */
body[data-mode] .topbar .sound { margin-left: auto; }
.pl-item-top .btn { flex: none; padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.pl-actions .btn { flex: 1 1 auto; }

/* phones: a card head with a tag gives its title the full row and puts the tag and button on the next one */
@media (max-width: 420px) {
  .pl-item-top:has(> .pl-tag) { flex-wrap: wrap; row-gap: 6px; }
  .pl-item-top:has(> .pl-tag) > .grow { flex-basis: calc(100% - 48px); }
  .pl-item-top:has(> .pl-tag) > .pl-tag { margin-right: auto; }
  .pl-item-top:has(> canvas, > .barn-ic, > .bale-ic) > .pl-tag { margin-left: 38px; }
}

/* phones, on the island: the Local world chip sits above Enter world instead of on its edge */
@media (max-width: 420px) {
  body:not([data-mode]) .world-dev { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* desktop: the page spans the free area (apply.css, W8) and lays its parts out side by side, so there is less to scroll */
.place-card { container-type: inline-size; }
/* a narrow card: three stats are two and one alone on a row, so the last takes the whole row (BA-21, FARM-23) */
@container (max-width: 559px) {
  .pl-stats.three { grid-template-columns: 1fr 1fr; }
  .pl-stats.three > :last-child { grid-column: 1 / -1; }
}
@container (min-width: 560px) {
  /* W8: card lists run two or three to a row: tracks at least 280 px, and at least a third of the list's own width, so three at most */
  .pl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 32px) / 3)), 1fr)); align-items: start; }
  /* FX8: the open entry of Barns and Grazing spans the row; a wallet's own row in the Registry and the Leaderboard is only highlighted, since spanning it left a hole in the first row.
     FX9 (VR8 N-3): that row is marked data-mine, not with a class: sale.css styles .mine on its own (a border and a top padding) */
  .pl-list > .pl-entry.sel:not([data-mine]), .pl-list > :only-child { grid-column: 1 / -1; }
  /* W8: four to six stats to a row: tracks at least 150 px, and at least a sixth of the row's own width (a row of fewer stretches) */
  .pl-stats { grid-template-columns: repeat(auto-fit, minmax(max(150px, calc((100% - 40px) / 6)), 1fr)); }
  .pl-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-card .pl-head .lead { max-width: 74ch; }
  .pl-goats { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}
@container (min-width: 720px) {
  .pl-entry.sel .pl-rows, .pl-list > :only-child .pl-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* a full-width Barn keeps its stalls the size they have in the two-up cards */
  .pl-entry.sel .stalls, .pl-list > :only-child .stalls { max-width: 420px; }
}

/* the map's Enter world button sits at left 50%, so on a narrow phone it had half the width and broke onto two lines */
.enter { white-space: nowrap; }

/* ---------- UI review 2026-11-05 ---------- */
/* secondary text was #8a7b6c, 3.8:1 on the paper: below the 4.5:1 floor for small text. #736456 is 5.3:1 */
:root { --ink-3: #736456; }
/* a panel's way into its page is one dark main button: the place colour stays on the strip and the dot
   (Gatehouse grey read as switched off, Barns red as a warning) */
.actions .primary.cta, .actions a.primary { background: var(--ink); color: var(--paper-solid); }
@media (hover: hover) { .actions .primary.cta:hover, .actions a.primary:hover { background: #3d3025; filter: none; } }
/* owner, 8 Nov: the Collabs button in the panel's bottom right corner */
.panel-foot .next { margin-left: auto; }
.panel-foot .foot-collabs { background: var(--ink); color: var(--paper-solid); font-weight: 600; }
@media (hover: hover) { .panel-foot .foot-collabs:hover { background: #3d3025; color: var(--paper-solid); } }
/* actions that wait for the contracts: quiet, not faded, and the note under them says why */
.actions button:disabled { opacity: 1; background: rgba(42, 32, 24, 0.06); color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(42, 32, 24, 0.12); }
/* CHECK-1116 finding 4: a shut place's way to its read-only page works, so it looks it: the pointer, full strength, ink text and a firmer edge. It had the waiting buttons'
   not-allowed cursor and 0.8 opacity (styles.css .actions button, .actions .ghost), 4.06:1, and read as more switched off than the disabled button beside it */
.actions .read { cursor: pointer; opacity: 1; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(42, 32, 24, 0.22); }
@media (hover: hover) { .actions .read:hover { background: rgba(42, 32, 24, 0.12); } }
/* map pins that would cover another one shrink to their dot (main.js); hover or focus brings the name back */
.pin.tight { gap: 0; padding: 0; width: 18px; height: 18px; justify-content: center; border-radius: 50%; }
.pin.tight .name, .pin.tight .go { display: none; }
.pin.tight .dot { width: 9px; height: 9px; border-radius: 50%; }
.pin.tight::after { width: 6px; height: 6px; bottom: -3px; }
/* phones on the island: the strip is the price chip and any banner (a banner no longer hides the price); "More" opens the
   rest on a tap (G-12) */
@media (max-width: 600px) {
  .ticker span:not(.price):not(.warn):not(.neg):not(.asof) { display: none; }
  .ticker.open span:not(.price):not(.warn):not(.neg):not(.asof) { display: inline; }
  .ticker .tk-more { display: inline-block; }
}
/* the connect sheet: a soft fade at the bottom says the list goes on */
.sheet { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); padding-bottom: 34px; }
/* Gatehouse: Recent Treks is one row per Trek (block and split, then the four legs), not a wall of cards */
body[data-mode="gatehouse"] .pl-section .pl-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry { display: grid; grid-template-columns: minmax(150px, 1.1fr) 3fr; align-items: center; gap: 12px; padding: 9px 14px; border: 0; border-radius: 0; background: transparent; }
body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry + .pl-entry { border-top: 1px solid var(--line); }
body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry .pl-item-top b { font-size: 13.5px; }
body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry .pl-rows { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 2px 10px; }
body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry .pl-rows dd { font-size: 12.5px; }
@container (max-width: 520px) {
  body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry { grid-template-columns: 1fr; gap: 6px; }
  body[data-mode="gatehouse"] .pl-section .pl-list > .pl-entry .pl-rows { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* the sale page's Local world chip sat above the stage switcher; our build has no switcher (check-site), so it goes back to its corner */
@media (min-width: 901px) { body[data-mode="sale"] .world-dev { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* W2A: the issuance bar, the Permit roll's curve and the extra roll rows */
/* FX8: the Trek page's issuance bar. It was .pl-bar, the class of the game's inventory toolbar (play.css, src/play/play.js #pl-bar): this sheet comes after play.css, so the
   toolbar was 8 px high with overflow hidden and its 52 px slots (Greens, Straw, Wildflower, Treat, Herd, Wardrobe, Chat) were cut to a 20 px strip. fx8-check.test.js
   fails when another .pl-* class is styled by both play.css and a page sheet. */
.pl-meter { height: 8px; margin-top: 8px; border-radius: 4px; background: rgba(42, 32, 24, 0.08); overflow: hidden; }
.pl-meter i { display: block; height: 100%; background: var(--c, #5b6b8a); }
.pl-roll { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.pl-curve { margin: 4px 0 0; color: var(--c, #2f61a9); }
.pl-curve svg { width: 100%; height: 80px; display: block; }
.pl-curve figcaption { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* W2A: Base Camp's ladder as bars, and the price line between the asks and the bids */
.lad { display: flex; flex-direction: column; gap: 6px; }
.lad-row { display: flex; flex-direction: column; gap: 3px; }
.lad-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.lad-head b { font-weight: 600; color: var(--ink); }
.lad-head em { font: 500 11px var(--mono); font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lad-bar { height: 8px; border-radius: 4px; background: rgba(42, 32, 24, 0.08); overflow: hidden; }
.lad-bar i { display: block; height: 100%; background: #b9633a; }
.lad-row[data-kind="bid"] .lad-bar i { background: #3d6fb5; }
.lad-note { font: 500 11.5px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lad-now { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font: 500 12.5px var(--mono); }
.pl-steps { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
/* a Deed's or Bell's picture, only when its token gives one the CSP allows (src/chain/tokenArt.js) */
.pl-art { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line); margin: 0 10px 4px 0; vertical-align: middle; }

/* GR-18: why each goat cannot bind */
.pl-why-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.pl-why-list b { font: 500 11.5px var(--mono); color: var(--ink); }
/* the reason beside a disabled action button (shell.js off / setOff): in a row of buttons it takes its own line */
/* W17 (addendum A): the line takes the full width with `width: 100%` and no flex basis. It was `flex: 1 0 100%`: in a ROW that is its own line, but in a COLUMN (.pl-form, .pl-entry) a basis of 100% is a height, and with the wrap rule below the line became a column of its own, 2260 px tall, off the card (seen at 375 px on the disabled Bind button). The width is the cross size of a column and the basis of a row, so both get a full-width line. */
.why { flex: none; width: 100%; box-sizing: border-box; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
/* W17 (UX1 item 7): the reason a button is off has a leading "i", so it reads as a note on a phone too (touch never shows a title) */
.why::before { content: "i"; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; background: rgba(42, 32, 24, 0.1); color: var(--ink); font: 700 10px/1 var(--mono); vertical-align: 1px; }
/* FX4 (BW 2): the reason takes its own line only if its row can wrap: any flex row that holds one wraps (a non-wrapping .pl-item-top crushed the name beside the button to a word a line) */
:has(> .why) { flex-wrap: wrap; }
/* ...and a box that stacks its children (a form, a card, a section) never wraps them into columns: nothing in it is a row */
.pl-form:has(> .why), .pl-entry:has(> .why), .pl-section:has(> .why), .pl-body:has(> .why), .pl-stat:has(> .why) { flex-wrap: nowrap; }
.pl-item-top:has(> .why) > .grow { flex: 1 1 0; min-width: 0; }
/* Phones, 320 to 600 px (W4): the page never scrolls sideways (every long word and address wraps), every tab, button and link is at least
   44 px to tap, the four Grazing tabs wrap instead of squeezing, and a row of three items (an allowance with Revoke) puts its action on
   its own line (GR-25). The "?" keeps its look and takes a 44 px area around it. */
@media (max-width: 600px) {
  .place-card, .pl-body { min-width: 0; max-width: 100%; overflow-x: clip; }
  .pl-body * { overflow-wrap: anywhere; }
  .pl-stat b, .pl-quote b, .pl-rows dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .place .btn, .place .pl-seg button, .place .stepper button, .place .row-max button, .place button.link, .place .pl-picker-bar button, .place .chip { min-height: 44px; }
  /* FX P-8: a link inside a card or a sentence (a card's "Public page", a Barn's goats, "Explorer") gets a 44 px area by padding that its negative margin takes back, so the line and the card do not grow */
  .place a.link:not(.pl-stat *) { padding: 14px 6px; margin: -14px -6px; } /* the stat's own links already have min-height 44 (line 63) */
  .place .stepper button { min-width: 44px; }
  .qhint::before { content: ""; position: absolute; inset: -15px; } /* a 44 px area on every surface, the sale card and the sheets too (VW4 S-5) */
  .pl-seg { flex-wrap: wrap; }
  .pl-seg button { flex: 1 1 40%; }
  .pl-quote div:has(> button) { flex-wrap: wrap; }
  .pl-quote div > button.link { flex: 1 0 100%; text-align: left; }
}

/* the plain menu (W2B, G-24): one list of every page and every action */
.menu-back { position: fixed; inset: 0; z-index: 70; background: rgba(30, 22, 15, 0.32); display: grid; place-items: start center; padding: calc(64px + env(safe-area-inset-top, 0px)) 16px 16px; opacity: 0; transition: opacity 0.2s; }
.menu-back[hidden] { display: none; }
.menu-back.show { opacity: 1; }
.menu-sheet { box-sizing: border-box; width: min(720px, 100%); max-height: calc(100vh - 96px); display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; background: var(--paper-solid); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.menu-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-sheet h2 { margin: 0; font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; }
.menu-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(42, 32, 24, 0.07); font-size: 22px; cursor: pointer; }
.menu-find { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
/* FX9 (VR8 N-9): the find box had the browser's own font and colour and was 41 px high; it is now the same box as the look-up boxes below */
.menu-find input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: 16px var(--body); }
.menu-list { overflow-y: auto; display: grid; gap: 18px; padding-right: 2px; }
.menu-group h3 { margin: 0 0 8px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.menu-page { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.menu-open { display: grid; grid-template-columns: minmax(120px, 0.8fr) 2fr auto; align-items: baseline; gap: 4px 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
@media (hover: hover) { .menu-open:hover { background: rgba(42, 32, 24, 0.07); } }
.menu-open b { font-weight: 700; }
.menu-open span { color: var(--ink-2); font-size: 13px; }
.menu-open em { font: 500 11px var(--mono); font-style: normal; color: #b4501f; }
.menu-page[data-state="closed"] .menu-open b, .menu-page[data-state="soon"] .menu-open b { color: var(--ink-2); }
.menu-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 10px; list-style: none; }
.menu-actions button { min-height: 44px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; cursor: pointer; }
@media (hover: hover) { .menu-actions button:hover { background: rgba(42, 32, 24, 0.07); } }
.menu-none { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) {
  .menu-open { grid-template-columns: 1fr; }
}

/* State of the Mountain (W2B): the next step, the Trek's sign, the supply bar and the two small charts */
.pl-step { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(42, 32, 24, 0.05); border-left: 4px solid var(--c, #4f6b8f); }
.pl-step p { margin: 0; font-size: 14px; }
.pl-step[data-tone="warn"] { border-left-color: #d99a1e; }
.pl-step[data-tone="bad"] { border-left-color: var(--accent); }
.pl-step[data-tone="ok"] { border-left-color: #3f8a3c; }
.pl-hero { display: grid; gap: 4px; padding: 12px 0; }
.pl-big { margin: 0; font: 800 28px/1.1 var(--display); letter-spacing: -0.02em; }
.pl-hero[data-mood="buying"] .pl-big { color: #2f6e2c; }
.pl-hero[data-mood="selling"] .pl-big { color: #8f2a23; }
.supply-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(42, 32, 24, 0.08); margin: 8px 0; }
.supply-bar i { display: block; height: 100%; min-width: 0; }
.supply-bar .s-basecamp { background: #c2412d; } .supply-bar .s-treasury { background: #7d7873; } .supply-bar .s-hayloft { background: #c9a33c; }
.supply-bar .s-bales { background: #b58a2f; } .supply-bar .s-elsewhere { background: #8aa4c8; } .supply-bar .s-forage { background: #5f9a52; }
.supply-bar .s-notissued { background: #d8cdb8; } .supply-bar .s-retired { background: #6f5a8a; } .supply-bar .s-burned { background: #2a2018; }
.pl-charts { display: grid; gap: 10px; }
.pl-charts rect.up { fill: #3f8a3c; } .pl-charts rect.down { fill: #b5332b; }
@media (max-width: 600px) { .pl-big { font-size: 24px; } .place .pl-step .btn { min-height: 44px; } }


/* Records Hall (W2B, PA-01, PA-02) */
.rec-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; overflow-wrap: anywhere; }
/* W17 (UX1 items 3 and 4): every group of the Records Hall is a <details class="rec-group"> (src/places/records.js): open on a wide screen, closed on a phone with its count in the title; every entry is a summary
   row with its prose in a <details class="rec-more"> */
.rec-group { margin: 12px 0 4px; border-top: 1px solid var(--line); }
.rec-group > summary { padding: 8px 0 4px; }
.rec-group > summary h4 { margin: 0; font: 700 14px/1.3 var(--display); }
.rec-group > summary small { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-2); }
.rec-group > .pl-list { margin-top: 6px; }

/* the menu's number boxes (W2B, G-16) */
.menu-look { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: .5rem 0; }
.menu-look label { flex: 1 1 14rem; display: grid; gap: .25rem; font-size: .85rem; }
/* FX8: the three look-up boxes were the browser's own (an inset grey border, square): the same box as the menu's find box above them, and a ghost Open button */
.menu-look input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: 16px var(--body); }
/* D647 (owner, 13 Nov): a page that can't be used in this build, its row, its actions and its lookup are grey and do nothing (src/inert.js); the tooltip says why */
.menu-page .menu-open.is-inert b, .menu-page .menu-open.is-inert span, .menu-actions button.is-inert, .menu-look-go.is-inert { color: var(--ink-3); }
.menu-actions button.is-inert { background: transparent; border-color: rgba(42, 32, 24, 0.08); }
.menu-open.is-inert, .menu-actions button.is-inert, .menu-look-go.is-inert { cursor: default; }
@media (hover: hover) { .menu-open.is-inert:hover, .menu-actions button.is-inert:hover { background: transparent; } .menu-look-go.is-inert:hover { background: rgba(42, 32, 24, 0.07); } }
.menu-look-go { min-height: 44px; min-width: 44px; padding: 0 1rem; border: 0; border-radius: 11px; background: rgba(42, 32, 24, 0.07); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
@media (hover: hover) { .menu-look-go:hover { background: rgba(42, 32, 24, 0.12); } }
.menu-look-note { flex-basis: 100%; font-size: .85rem; }

/* the menu's Terms and Risks links (W2B, G-14) */
.menu-links { margin: 1rem 0 .5rem; font-size: .85rem; }
.menu-links a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .25rem; }

/* FX P-8: a page open over the island hides the walk-mode controls behind it: they cannot be tapped, and are not in the reading order either */
body[data-mode] #play { display: none; }
/* W5 (LB-01, LB-04): a rank badge, and the move since the last Trek */
.pl-rank { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; display: inline-grid; place-items: center; background: rgba(42, 32, 24, 0.08); font: 700 12.5px var(--mono); color: var(--ink-2); }
.move.up { color: #2f6b2a; } .move.down { color: #b4501f; }
/* FX3 (note N13, LP-02): the "Drops" fold-out on a Barn or goat card and its lines. Written from the CSS rules of the cards around it, not seen in a browser */
.pl-drops { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.pl-drops summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font: 600 13px var(--body); color: var(--ink-2); }
.pl-drops summary small { font: 500 11px var(--mono); color: var(--ink-3); }
.pl-drop-lines { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.pl-drop-lines b { color: var(--ink); }

/* the four island places (W6): a small name label on hover and on focus, no permanent pins; one hidden button each for the keyboard and screen readers */
.xlabel {
  position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper-solid);
  font-weight: 600; font-size: 12px; box-shadow: 0 4px 16px rgba(60, 35, 10, 0.2); transition: opacity 0.15s;
}
/* D647: the name of a place that can't be used in this build, while its tooltip shows; its small pin is grey */
.xlabel.is-inert { background: rgba(252, 247, 238, 0.92); color: var(--ink-3); }
.pin.pin-2.is-inert .name { color: var(--ink-3); }
.pin.pin-2.is-inert .dot { opacity: 0.5; }
.xplaces { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the card a place's click scrolled to */
.xfocus { outline: 2px solid var(--c, var(--ink)); outline-offset: 4px; border-radius: 10px; transition: outline-color 0.4s; }
@media (prefers-reduced-motion: reduce) { .xlabel { transition: none; } }

/* ---------- W8: wide pages (owner, 11 Nov): the title and the tabs stay at the top while the content scrolls; the body lays its parts side by side ---------- */
/* the title block sticks to the top of the card's scroll (the card is the scroller; src/places/shell.js puts its height in --pl-head-h and the first tab bar's in --pl-seg-h).
   W11 (VW8 S-4, N-5): (1) the card has NO top padding: the title block is the first thing in it, at its very top, so `top: 0` leaves it where it stands. Before, the head was pulled up by
   a negative margin into the card's padding and the browser's sticky edge is the scroller's content box, so at scroll 0 it was pushed down by the padding (22 px) and covered the first box
   by 6 px (22 - the 16 px gap). (2) Its side margins and padding follow the card's own side padding (--pl-pad-l, --pl-pad-r), safe-area insets included, so a landscape phone's head runs to
   the card's edges. (3) It sticks, and so do the tabs, only where the card is tall (the window 700 px high and up) and wide (601 px and up): on a phone in portrait the head and tabs
   were 180 px of 744, in landscape more than half. Where they do stick, scroll-padding-top keeps a focused control, and a card the island's click scrolls to, out from under them. */
.apply-card.place-card { padding-top: 0; --pl-pad-l: 26px; --pl-pad-r: 26px; --pl-head-pt: 20px; }
.place-card .pl-head { margin: 0 calc(-1 * var(--pl-pad-r)) 0 calc(-1 * var(--pl-pad-l)); padding: var(--pl-head-pt) var(--pl-pad-r) 12px var(--pl-pad-l); background: var(--paper-solid); box-shadow: 0 1px 0 var(--line); }
/* a card scrolled to by a click on an island place (focus.js h3 step) clears whatever sticks above it */
.pl-section { scroll-margin-top: 16px; }
@media (max-width: 900px) {
  .apply-card.place-card { --pl-pad-l: max(20px, env(safe-area-inset-left, 0px)); --pl-pad-r: max(20px, env(safe-area-inset-right, 0px)); --pl-head-pt: 16px; }
  .place-card .pl-head { padding-bottom: 10px; }
}
@media (min-height: 700px) and (min-width: 601px) {
  .place-card .pl-head { position: sticky; top: 0; z-index: 4; }
  /* a page's own tab bar (the first level of tabs, a direct child of the body) sticks under it; the halo keeps the scrolled content from showing round its corners */
  .pl-body > .pl-seg:not(.small) { position: sticky; top: var(--pl-head-h, 0px); z-index: 3; background: linear-gradient(rgba(42, 32, 24, 0.06), rgba(42, 32, 24, 0.06)), var(--paper-solid); box-shadow: 0 0 0 8px var(--paper-solid); }
  .apply-card.place-card { scroll-padding-top: calc(var(--pl-head-h, 0px) + var(--pl-seg-h, 0px) + 8px); }
  .pl-section { scroll-margin-top: calc(var(--pl-head-h, 0px) + var(--pl-seg-h, 0px) + 16px); }
}
/* a wide card: the title on the left, its lead beside it, one short band */
@container (min-width: 700px) {
  .place-card .pl-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; row-gap: 0; align-items: end; }
  .place-card .pl-head .kicker, .place-card .pl-head h1 { grid-column: 1; }
  .place-card .pl-head h1 { font-size: 30px; }
  .place-card .pl-head .lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 80ch; font-size: 13px; line-height: 1.5; }
}
/* the body of a wide card is two columns: banners, strips, stat rows, hints and tab bars take the whole row; a part with a card list or the goat tiles takes the
   whole row too (its cards run two or three to a row inside); the other parts (a rate, a form, a chart, a notice) stand two to a row; the next-step and Trek cards
   of the overview stand side by side */
/* W11 (VW8 N-1): the body's two columns began at a card 900 px wide, which is a window of about 1230 px (the card's content is the window minus 278 and the card's 52 px of padding): from 901
   to 1229 px every page was one column. The owner asked for wide pages with less scrolling, so from a card 560 px wide (a window of 901 px with the sidebar open: 571) the parts that are
   small stand two to a row: a rate, a chart, a notice, the overview's next step and Trek sign, the hero. What stays a full row there (it would be cramped at 273 px a column): a card list,
   the goat tiles, a ladder, a tab bar, a form, a stat row and anything with cards in it; forms keep their fields at the card's whole width (they sit beside their summary from 900 px, below). */
@container (min-width: 560px) and (max-width: 899px) {
  .pl-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
  .pl-body > * { grid-column: 1 / -1; min-width: 0; }
  .pl-body > .pl-section, .pl-body > .pl-step, .pl-body > .pl-hero { grid-column: auto; }
  .pl-body > .pl-section:has(.pl-list, .pl-goats, .lad, .pl-seg, .pl-form, .pl-entry, .pl-stats) { grid-column: 1 / -1; }
}
@container (min-width: 900px) {
  .pl-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
  .pl-body > * { grid-column: 1 / -1; min-width: 0; }
  .pl-body > .pl-section, .pl-body > .pl-step, .pl-body > .pl-hero { grid-column: auto; }
  .pl-body > .pl-section:has(.pl-list), .pl-body > .pl-section:has(.pl-goats), .pl-body > .pl-section:has(.lad), .pl-body > .pl-section:has(.pl-seg) { grid-column: 1 / -1; }
  /* a form beside its summary: the fields and the button on the left, the quote (the summary) on the right; a form inside a card (.pl-entry) stays one column */
  .pl-form:has(> .pl-quote):not(.pl-entry *) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px 20px; align-items: start; }
  .pl-form:has(> .pl-quote):not(.pl-entry *) > * { grid-column: 1; }
  .pl-form:has(> .pl-quote):not(.pl-entry *) > .pl-quote { grid-column: 2; grid-row: 1 / span 2; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.7); }
  /* CHECK-1116 phase 2: a form with two summaries stays one column. Both went to the same cells, so on Grazing's bind the toll box was drawn over "Ready to bind";
     and that form sits in the page's narrow side column, where its text ran in a 230 px column and put Bind two screens down */
  .pl-form:has(> .pl-quote ~ .pl-quote):not(.pl-entry *) { display: flex; }
}

/* ---------- W8: the secondary pins of the four island places (src/places/extrasUi.js, xpins.js): small, permanent, the places' own pin style, no "Open" chip ---------- */
.xpins { position: absolute; inset: 0; pointer-events: none; }
.pin.pin-2 { padding: 3px 8px 3px 7px; gap: 5px; font-size: 10.5px; font-weight: 600; background: rgba(252, 247, 238, 0.86); color: var(--ink-2); box-shadow: 0 2px 8px rgba(60, 35, 10, 0.16); pointer-events: none; }
/* W11 (VW8 N-3a): the pin lets the pointer through (a drag that starts on it orbits the island); the canvas hits it by a box of 24 px at the least (core/xpins.js pinAt) and the place's own name label is the hover */
.pin.pin-2 .dot { width: 6px; height: 6px; background: var(--ink-3); box-shadow: none; }
.pin.pin-2::after { width: 6px; height: 6px; bottom: -3px; }
.pin.pin-2.gone { opacity: 0; pointer-events: none; }

/* ---------- W17 (UX round, UX1 items 13 and 15): the sticky title is slimmer on a wide screen, and a key and its value stand together ---------- */
/* item 13: the title block of a wide card was 80 px (10.5 percent of the card at 1440 x 900): 56 now. The kicker has no margin above it, the title is 24 px, the padding is 12 above and 8 below. The lead
   (two lines of 13 px at the most beside the title, 39 px) is not cut: it fits the 36 px the kicker and the title take */
@media (min-width: 901px) and (pointer: fine) {
  .apply-card.place-card { --pl-head-pt: 12px; }
  .place-card .pl-head { padding-bottom: 8px; }
  .place-card .pl-head .kicker { margin-top: 0; }
  @container (min-width: 700px) { .place-card .pl-head h1 { font-size: 24px; } }
}
/* item 15: the number a row reports stood at the far edge of a 543 px column, 400 px from its name. On a wide screen the name takes a column (36 percent, 140 px at the least) and the value stands
   beside it, left-aligned; a row that holds a button (the ones the phone rule wraps) keeps its own layout. The same markup is the Trek, Treasury and Overview rows (src/chain/trekInfo.js rowsHtml) */
@media (min-width: 901px) and (pointer: fine) {
  .pl-quote div:not(:has(> button)) { display: grid; grid-template-columns: minmax(140px, 36%) minmax(0, 1fr); column-gap: 12px; align-items: baseline; justify-content: stretch; }
  .pl-quote div:not(:has(> button)) > b { text-align: left; overflow-wrap: anywhere; }
}
/* on a phone the pair stays on one line while it fits (the value at the right, no wrap inside a figure) and the value drops under its name only when it does not: 12 px type */
@media (max-width: 600px) {
  .pl-quote div { flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 1px; font-size: 12px; }
  .pl-quote div > b { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
}

/* ---------- W17 (UX1 item 14): the type floor on a phone. Small print was 10 to 11.5 px (17 nodes at 10 px on Auctions and the Sale, 105 at 12 px on the Leaderboard): 12 px is the least for words and figures, 11.5 px for
   the capital letters of a label (a capital is taller than a small letter, so 11.5 px reads as 12) ---------- */
@media (max-width: 600px) {
  .mode-root :is(.pl-tag, .pl-rows dt, .pl-stat span, .pl-stat em, .pl-section > h3 small, .pl-seg button em, .pl-goat-tile b, .pl-goat-tile em, .pl-goat-tile .act, .pl-goat-tile .link, .pl-curve figcaption, .lad-head em, .lad-note, .stall-legend, .pl-why-list b, .pl-form .row-max, .pl-drops summary small, .menu-open em) { font-size: 12px; }
  .mode-root :is(.kicker, .mini-title, .stall-legend .tiers em) { font-size: 11.5px; }
}

/* ---------- W17 (UX1 items 3 and 4, addendum C): the Records Hall's disclosures, its columns, and a long value that never squeezes the words ---------- */
.rec-group > summary, .rec-more > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.rec-group > summary::-webkit-details-marker, .rec-more > summary::-webkit-details-marker { display: none; }
.rec-group > summary::before, .rec-more > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 2px 1px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); transition: transform 0.15s; }
.rec-group[open] > summary::before, .rec-more[open] > summary::before { transform: rotate(45deg); margin-bottom: 4px; }
.rec-more > summary { font: 600 12.5px var(--body); color: var(--ink-2); }
/* FX6 (VW11 N-2): a finger gets 44 px on both summaries at every width (a tablet of 601 to 900 px too); the small rows are for a mouse on a wide screen only */
.rec-group > summary, .rec-more > summary { min-height: 44px; padding-block: 0; }
@media (min-width: 901px) and (pointer: fine) {
  .rec-more > summary { min-height: 26px; }
  .rec-group > summary { min-height: 0; padding: 8px 0 4px; }
}
.rec-prose { padding: 2px 0 2px 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.rec-entry { gap: 4px; }
.rec-entry .meta { color: var(--ink-2); }
.rec-entry .meta .rec-addr { font-size: 12px; }
/* addendum C: the value is a pill beside the name. It may wrap (it was white-space: nowrap) and it never takes more than the row: the name keeps at least 12rem, and a pill that does not fit beside it drops
   under it, right-aligned, instead of squeezing the words into a narrow column ("One canonical pool is declared", "This Trek ends") */
.rec-entry .pl-item-top { flex-wrap: wrap; row-gap: 6px; }
.rec-entry .pl-item-top > .grow { flex: 1 1 12rem; min-width: 0; }
.rec-entry .pl-item-top > .pl-tag { flex: 0 1 auto; max-width: 100%; margin: 0 0 0 auto; white-space: normal; text-align: right; overflow-wrap: anywhere; }
/* four columns when the card is 1060 px wide (a window of about 1400): beside the 560 and 900 tiers, which are as they were */
@container (min-width: 1060px) {
  .rec-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* a phone: the four fact sections are two tiles to a row (name above its value), the groups are closed lines, and every summary is 44 px to tap */
@media (max-width: 600px) {
  .rec-group > summary, .rec-more > summary { min-height: 44px; padding-block: 0; }
  .rec-facts .rec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rec-facts .rec-entry { padding: 9px 10px; }
  .rec-facts .rec-entry .pl-item-top { flex-direction: column; align-items: flex-start; }
  /* FX6 (BW I2): in this column a flex-basis is a HEIGHT: `.rec-entry .pl-item-top > .grow` (12rem) made every fact tile 288 px tall with 190 px blank. The name takes its own height. */
  .rec-facts .rec-entry .pl-item-top > .grow { flex: 0 0 auto; }
  .rec-facts .rec-entry .pl-item-top > .pl-tag { margin: 0; text-align: left; }
}
/* FX6 (VW11 N-4): a group's summary may carry a second line: the nearest change that is waiting in it (a queued setting, a pending owner), so a closed group on a phone still shows it */
.rec-group > summary { flex-wrap: wrap; }
.rec-pend { flex: 1 0 100%; padding: 0 0 6px 17px; font: 600 12px/1.35 var(--body); color: var(--ink-2); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .rec-group > summary::before, .rec-more > summary::before { transition: none; } }

/* ---------- W17 (UX1 item 6): density on a wide screen with a mouse. The gaps and paddings are one step tighter; three columns instead of two was worse (Trek 2.66 to 2.84 screens), so the columns stay ---------- */
@media (min-width: 901px) and (pointer: fine) {
  .place-card .pl-body { gap: 12px 20px; }
  .pl-section { gap: 7px; }
  .pl-list { gap: 6px; }
  .pl-entry { padding: 9px 12px; gap: 6px; border-radius: 12px; }
  .pl-stat { padding: 7px 10px; }
  .pl-entry .btn, .pl-form .btn { padding: 8px 14px; min-height: 34px; }
  .pl-seg button { min-height: 32px; padding-block: 6px; }
}
/* ---------- W17 (UX1 item 7): the state of the tab bar, the pick cards, the goat tiles and the Max links ---------- */
.pl-seg button, .pl-entry.pick, .pl-goat-tile, .pl-form .row-max button { transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }
@media (hover: hover) {
  .pl-seg button:not([aria-selected="true"]):not(:disabled):hover { background: rgba(42, 32, 24, 0.07); color: var(--ink); }
  .pl-entry.pick:not(:disabled):hover { background-image: linear-gradient(rgba(42, 32, 24, 0.05), rgba(42, 32, 24, 0.05)); border-color: rgba(42, 32, 24, 0.22); }
  .pl-goat-tile:not(:disabled):hover { background-image: linear-gradient(rgba(42, 32, 24, 0.07), rgba(42, 32, 24, 0.07)); }
  .pl-form .row-max button:hover { background: rgba(42, 32, 24, 0.07); border-radius: 6px; }
}
.pl-seg button:active:not(:disabled), .pl-entry.pick:active:not(:disabled), .pl-goat-tile:active:not(:disabled) { transform: scale(0.98); transition-duration: 60ms; }
.pl-form .row-max button:active { opacity: 0.7; }

/* ---------- W17 (UX1 item 12): the Leaderboard is a table for a wide screen with a mouse (25 rows of 34 px, about 890 px, where 25 cards of 119 px in three columns were 1220 px) and cards on a phone, whose second line is two rows of
   short pieces instead of one wrapping run. The two are the same rows (src/chain/censusUi.js): the one that is not shown is display: none, so a screen reader reads each wallet once. ---------- */
.lb-table { display: none; }
.lb-line2 > span { white-space: nowrap; }
@media (min-width: 901px) and (pointer: fine) {
  .pl-list.lb-cards { display: none; }
  .lb-table { display: table; width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .lb-table th, .lb-table td { height: 34px; padding: 0 10px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .lb-table thead th { height: 30px; border-top: 0; background: rgba(42, 32, 24, 0.045); font: 600 11.5px var(--body); color: var(--ink-2); }
  .lb-table th:nth-child(-n+2), .lb-table td:nth-child(-n+2) { text-align: left; }
  .lb-table td:nth-child(n+3) { font: 500 12.5px var(--mono); }
  .lb-table td.lead { font-weight: 700; color: var(--ink); }
  .lb-table tr.sel td { background: color-mix(in srgb, var(--c) 10%, #fff); }
  .lb-table td .pl-rank { min-width: 26px; height: 24px; }
  .lb-table .lb-who b { font: 600 13px var(--body); }
  /* FX6 (VW11 N-5): the wallet is the row header (th scope="row"), drawn as the cell it was; and the table has its own horizontal scroll with a visible edge (the shadows show on the side that has more), because the nine columns
     are about 740 px and the card's room is 603 to 750 px between 901 and 1100 px: it was clipped by .pl-body, now it scrolls */
  .lb-table tbody th { font-weight: inherit; }
  .lb-table tr.sel th { background: color-mix(in srgb, var(--c) 10%, #fff); }
  .lb-scroll { max-width: 100%; overflow-x: auto; border-radius: 12px; background: linear-gradient(to right, #fff 30%, transparent) left center / 28px 100% local no-repeat, linear-gradient(to left, #fff 30%, transparent) right center / 28px 100% local no-repeat, linear-gradient(to right, rgba(42, 32, 24, 0.2), rgba(42, 32, 24, 0)) left center / 10px 100% scroll no-repeat, linear-gradient(to left, rgba(42, 32, 24, 0.2), rgba(42, 32, 24, 0)) right center / 10px 100% scroll no-repeat; }
}
@media (max-width: 600px) {
  .lb-line2 { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
}
