/* The FXN treasury page (fxn.html): its own layout and its two figures only. The look is css/fxn-govern.css (a byte
   copy of flux/defxn-dao's); colour, buttons, badges and refusals come from vendor/defxn/defxn-product.css
   (flux/defxn-product-kit, synced, never edited here). Type sizes are the scale's variables, declared once in
   fxn-govern.css. */

.ft-leadbody { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--sp-4); }
.ft-leadbody__fig { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--sp-4); }

/* Where the supply sits: one bar, the mining pool and each safe as its share. Neutral for the pool, the identity's
   ladder for the safes, the identity itself for the one pointed at. A supply not read is a dashed outline. */
.ft-supply { display: flex; height: 14px; gap: var(--sp-1); min-width: 0; }
.ft-supply[data-unread] { border: 1px dashed hsl(var(--border-default)); border-radius: 2px; }
.ft-supply > span { display: block; min-width: 2px; height: 100%; background: hsl(var(--primary-300)); transition: background .18s var(--dx-ease); }
.ft-supply > [data-part="pool"] { background: hsl(var(--text-faint) / .45); }
.ft-supply > [data-part="rule"] { background: hsl(var(--primary-100)); }
.ft-supply > [data-tone="1"] { background: hsl(var(--primary-200)); }
.ft-supply > [data-tone="2"] { background: hsl(var(--primary-400)); }
.ft-supply > [data-tone="3"] { background: hsl(var(--primary-500)); }
.ft-supply > [data-tone="4"] { background: hsl(var(--primary-600)); }
.ft-supply > [data-tone="5"] { background: hsl(var(--primary-700)); }
.ft-supply > [data-lit] { background: hsl(var(--primary)); }
.ft-swatch { display: inline-block; width: 8px; height: 8px; margin-right: var(--sp-3); vertical-align: 0; background: hsl(var(--primary-300)); }
.ft-swatch[data-part="pool"] { background: hsl(var(--text-faint) / .45); }
.ft-swatch[data-part="rule"] { background: hsl(var(--primary-100)); }
.ft-swatch[data-tone="1"] { background: hsl(var(--primary-200)); }
.ft-swatch[data-tone="2"] { background: hsl(var(--primary-400)); }
.ft-swatch[data-tone="3"] { background: hsl(var(--primary-500)); }
.ft-swatch[data-tone="4"] { background: hsl(var(--primary-600)); }
.ft-swatch[data-tone="5"] { background: hsl(var(--primary-700)); }
/* Sweep I (H21): on the ground, the pale steps of the ladder measured under 3:1 (light: tone 1 1.16, tone 2 2.33, the pool 1.97; dark: tone 1
   1.37, the pool 2.06), and only steps 500 to 700 pass in both themes, too few for five tones. Each swatch and each part of the bar takes a 1 px
   edge in the faint text role (5.9:1 and 6.0:1 on the ground in both themes), so every part shows; the tones stay as they were. */
.ft-swatch, .ft-supply > span { box-shadow: inset 0 0 0 1px hsl(var(--text-faint)); }
.ft-supply > [data-lit] { box-shadow: none; }
div.fg-item { cursor: default; }
div.fg-item:hover { background: transparent; }

/* A safe's vesting: the schedule as steps (upfront at the mint, then equal parts), what has moved as a dashed level,
   now as a dotted line. Words sit under it, never inside the drawing, so the drawing can stretch. */
.ft-vest svg { height: clamp(48px, 9vh, 104px); }
.ft-vest__key { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0; font: 400 var(--fs-tertiary)/1.5 var(--dx-font-mono); color: hsl(var(--text-muted)); }
.ft-vest__key b { font-weight: 500; color: hsl(var(--text-strong)); }

/* One line per row (owner pick "treasury fit A", 2026-11-12; rehearsal 16, D7). A row of the supply list, the safes
   list and the treasuries list reads left to right: its name, its notes, its amount. Two-line rows needed 334 px in a
   200 px box at 1280x720 (rehearsal 17). Spacing tokens only; the size scale is untouched. The name takes what it
   needs, the notes take the rest and cut with an ellipsis when the row is narrow, the amount never cuts. */
.ft-oneline .fg-item { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: var(--dxt-row-h); padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.ft-oneline .fg-item__name { grid-column: 1; grid-row: 1; }
.ft-oneline .fg-item__sub { grid-column: 2; grid-row: 1; flex-wrap: nowrap; justify-content: flex-end; }
.ft-oneline .fg-item__side { grid-column: 3; grid-row: 1; }
/* The panel's stack gap and fact-row padding sit one step under the shared look's (saves about 4 px a gap and 6 px a row). */
.fg-panel__body { gap: var(--sp-3); }
.fg-panel__body .fg-row { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }

@media (prefers-reduced-motion: reduce) {
  .ft-supply > span { transition: none; }
}

/* ===== The Genesis direction (2026-11-25). Owner: "Update the rest of the 5 website dao and so... to have the same branding
   and direction". The kit's teal direction (<html data-theme="defxn-teal">) paints the cards, tabs, buttons and bar.
   css/fxn-govern.css is a byte copy of flux/defxn-dao's and is not edited this round. Its older paint is answered by the DAO
   site's rules (flux/defxn-dao css/dao-direction.css, sections 7, 6, 1 and 5, 3, 4), copied here unchanged except that the
   DAO's own product name reads "treasury". When both sites move these answers into fxn-govern.css, both copies go in one
   change. Treasury's own lines follow at the end. ===== */

/* 7. THE GROUND (dao-direction.css): the kit's ground outweighs the dot field and glow; the fixed attachment is set back. */
:root[data-theme="defxn-teal"] body.fg-page { background-attachment: scroll; }

/* 1 and 5. THE CARD (dao-direction.css): the blur behind the old glass goes; a card with no layout of its own is a column. */
:root[data-theme="defxn-teal"] :is(.fg-panel, .fg-rail).dx-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
:where(.dx-card:not([hidden], .fg-rail)) { display: flex; flex-direction: column; gap: var(--sp-4); }
:root[data-theme="defxn-teal"] .fg-rail.dx-card { padding: 0; min-height: 52px; }
:root[data-theme="defxn-teal"] .fg-tile--you { background: transparent; }

/* 3. THE ONE DOMINANT ACTION (dao-direction.css): go() draws the kit's solid key; the old cut corner and arrow come off. */
:root[data-theme="defxn-teal"] .fg-go.dx-btn { clip-path: none; justify-content: center; gap: var(--sp-3); }
:root[data-theme="defxn-teal"] .fg-go.dx-btn:not([aria-busy="true"])::after { content: none; }

/* 4. NO INNER SCROLL (dao-direction.css): the page grows; a long list folds behind "Show all N" (clampLists). */
:root[data-theme="defxn-teal"] .fg-main { max-width: none; padding-inline: var(--tr-edge); height: auto; min-height: calc(100dvh - var(--dx-bar-h, 56px)); grid-template-rows: minmax(min-content, 1fr) auto; }
:root[data-theme="defxn-teal"] .fg-lead { grid-template-rows: auto auto auto; }
:root[data-theme="defxn-teal"] :is(.fg-panel__body, .fg-list) { overflow: visible; max-height: none; padding-right: 0; }
[data-fg-folded] { display: none !important; }
.fg-more-rows { align-self: flex-start; justify-self: start; margin-top: var(--sp-3); }

/* Treasury's own lines. The bar and the section tabs are css/treasury.css's; the frame stands under both, so the body has one
   row more and the frame's least height is a tab row less. The lead's figure rows grow with the list. A tab row is the kit's
   tab row (fg-seg dx-tabs); only its clip is taken off, so the track's frame shows. */
body.ft-page { grid-template-rows: auto auto minmax(0, 1fr); }
:root[data-theme="defxn-teal"] .ft-page .fg-main { min-height: calc(100dvh - 52px - var(--tr-tabhead-h)); }
.ft-leadbody, .ft-leadbody__fig { grid-template-rows: auto; }
.ft-page .fg-panel { animation: none; }
.ft-page .fg-seg { overflow: visible; }
