/* treasury570.css — labs.llc/treasury/ v570 (28 Nov 2026). Page-local; loaded after site.css / dark.css.
   One contained column, a photo hero with the live clock, a sticky console toolbar (terse one-line segmented pills,
   DM Sans 600 .72rem) and status line, Compact (labs_rooms_compact / ?compact=1|0), an S/M/L pop-out clock,
   a share card, and — on a phone held sideways, or on the Clock pill — nothing but the debt clock, full screen. */
body.tr570 { --t5-col: 1180px; --t5-acc: #C2410C; --t5-acc2: #EA580C; --t5-card: #fff; --t5-edge: rgba(30,38,43,.12);
    --t5-soft: rgba(30,38,43,.045); --t5-ink: #1E262B; --t5-dim: rgba(30,38,43,.62); --t5-bar: rgba(255,255,255,.9); }
html[data-dark] body.tr570 { --t5-acc: #FB923C; --t5-acc2: #F97316; --t5-card: #121A21; --t5-edge: rgba(255,255,255,.13);
    --t5-soft: rgba(255,255,255,.05); --t5-ink: #F3F5F7; --t5-dim: rgba(255,255,255,.6); --t5-bar: rgba(12,17,22,.88); }
body.tr570 #main .wrap { max-width: var(--t5-col); }
body.tr570 .t5-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------------------------------------------------------- hero */
.t5-hero { position: relative; padding-block: clamp(28px, 4vw, 48px) clamp(26px, 3.6vw, 44px); }
.t5-hero__card { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--t5-edge);
    background: #0C1116; color: #fff; isolation: isolate; min-height: clamp(360px, 40vw, 470px); display: grid; align-content: end; }
.t5-hero__photo { position: absolute; inset: 0; z-index: -2; }
.t5-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; display: block;
    animation: t5-in 1.1s var(--ease, ease) both; }
.t5-hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8,12,18,.18) 0%, rgba(8,12,18,.42) 38%, rgba(8,12,18,.88) 100%); }
@keyframes t5-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.t5-hero__in { padding: clamp(20px, 3.4vw, 40px); display: grid; gap: .6rem; }
.t5-hero .eyebrow { color: #FDBA74; margin: 0; }
.t5-hero h1.d1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4.4vw, 3.3rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.t5-hero__k { margin: .7rem 0 0; font: 700 .64rem/1 'DM Sans', system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72);
    display: flex; align-items: center; gap: .5rem; }
.t5-dot { width: 7px; height: 7px; border-radius: 50%; background: #FB923C; box-shadow: 0 0 0 0 rgba(251,146,60,.7); animation: t5-ping 1s infinite; flex: none; }
@keyframes t5-ping { 0% { box-shadow: 0 0 0 0 rgba(251,146,60,.65); } 70%, 100% { box-shadow: 0 0 0 8px rgba(251,146,60,0); } }
.t5-hero__fig { margin: 0; font-weight: 300; letter-spacing: -.03em; line-height: 1; color: #fff; white-space: nowrap;
    font-size: clamp(1.7rem, 6.4vw, 4.6rem); text-shadow: 0 2px 22px rgba(0,0,0,.4); }
.t5-c { color: #FDBA74; }
.t5-hero__sub { margin: .2rem 0 0; font-size: .86rem; color: rgba(255,255,255,.8); max-width: 52rem; }
.t5-hero__sub b { color: #fff; font-weight: 600; }
.t5-hero__cr { margin: .45rem 2px 0; text-align: right; font-size: .62rem; }
.t5-hero__cr a { color: var(--t5-dim); text-decoration: none; }
.t5-hero__cr a:hover { color: var(--t5-ink); text-decoration: underline; }
.t5-hero { padding-bottom: clamp(12px, 1.6vw, 18px); }
.t5-introband { padding-block: clamp(18px, 2.6vw, 32px) clamp(20px, 3vw, 40px); }
.t5-intro { max-width: 52rem; margin: 0; }
.t5-intro .lede { margin: 0 0 .8rem; }
.t5-intro .hero__act { margin-top: 1rem; }

/* ---------------------------------------------------------------- toolbar + status line (sticky under the nav) */
.t5-bar { position: sticky; top: var(--nav-h, 74px); z-index: 50; background: var(--t5-bar);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-block: 1px solid var(--t5-edge); }
.t5-bar__in { max-width: var(--t5-col); margin: 0 auto; padding: .45rem var(--gutter, 20px) .35rem; }
.t5-row { display: flex; align-items: center; gap: .45rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.t5-row::-webkit-scrollbar { display: none; }
.t5-seg { display: inline-flex; flex: none; border: 1px solid var(--t5-edge); border-radius: 999px; padding: 2px; background: var(--t5-soft); }
.t5-seg > a, .t5-seg > button, .t5-pill { -webkit-appearance: none; appearance: none; border: 0; background: none; margin: 0; cursor: pointer;
    font: 600 .72rem/1 'DM Sans', system-ui, sans-serif; letter-spacing: .01em; color: var(--t5-dim); text-decoration: none;
    padding: .42rem .68rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.t5-pill { border: 1px solid var(--t5-edge); background: var(--t5-soft); flex: none; }
.t5-seg > a:hover, .t5-seg > button:hover, .t5-pill:hover { color: var(--t5-ink); }
.t5-seg > .is-on, .t5-seg > [aria-pressed="true"], .t5-pill[aria-pressed="true"] { background: var(--t5-ink); color: var(--paper, #fff); }
html[data-dark] .t5-seg > .is-on, html[data-dark] .t5-seg > [aria-pressed="true"], html[data-dark] .t5-pill[aria-pressed="true"] { background: #F3F5F7; color: #0C1116; }
.t5-pill--acc { color: var(--t5-acc); border-color: color-mix(in srgb, var(--t5-acc) 40%, transparent); }
.t5-sp { flex: 1 1 auto; min-width: .2rem; }
.t5-status { display: flex; align-items: center; gap: .5rem; margin: .32rem 0 0; font: 500 .7rem/1.25 'DM Sans', system-ui, sans-serif; color: var(--t5-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5-status b { color: var(--t5-ink); font-weight: 600; }
.t5-status i { font-style: normal; opacity: .45; }
.t5-status .t5-dot { width: 6px; height: 6px; }
@media (max-width: 620px) { .t5-seg > a, .t5-seg > button, .t5-pill { padding: .4rem .55rem; } }
@media (max-width: 480px) { .t5-hide-s { display: none !important; } .t5-asof { display: none; } .t5-row { justify-content: flex-end; } }

/* ---------------------------------------------------------------- the console figure gets the same cents colour */
body.tr570 .band { padding-block: clamp(40px, 5vw, 72px); }
body.tr570 #main [id] { scroll-margin-top: calc(var(--nav-h, 74px) + 76px); }

/* ---------------------------------------------------------------- Compact */
html.rc-compact body.tr570 .band { padding-block: clamp(18px, 2.4vw, 30px); }
html.rc-compact body.tr570 #main .band > .wrap > .lede,
html.rc-compact body.tr570 .t5-intro .lede,
html.rc-compact body.tr570 #about,
html.rc-compact body.tr570 .tr-fig__note { display: none; }
html.rc-compact body.tr570 .t5-hero__card { min-height: 0; }
html.rc-compact body.tr570 .t5-hero__in { padding-top: clamp(70px, 8vw, 110px); }
html.rc-compact body.tr570 .t5-hero { padding-block: 14px 10px; }
html.rc-compact body.tr570 .d2 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: .6rem; }
html.rc-compact body.tr570 .console__body { gap: .8rem; padding: .9rem 1rem; }
html.rc-compact body.tr570 .t5-introband { padding-block: 12px 4px; }
html.rc-compact body.tr570 .t5-hero__cr { display: none; }
html.rc-compact body.tr570 .t5-intro .hero__act { margin-top: .2rem; }

/* ---------------------------------------------------------------- pop-out clock (S / M / L) */
.t5-pop { position: fixed; right: 14px; bottom: 14px; z-index: 70; background: #0C1116; color: #fff; border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 40px rgba(0,0,0,.28); padding: .6rem .8rem .7rem; max-width: calc(100vw - 28px); }
.t5-pop[hidden] { display: none; }
.t5-pop__h { display: flex; align-items: center; gap: .4rem; font: 700 .58rem/1 'DM Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.t5-pop__h .t5-seg { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); margin-left: auto; }
.t5-pop__h .t5-seg > button { color: rgba(255,255,255,.7); padding: .3rem .5rem; font-size: .66rem; }
.t5-pop__h .t5-seg > [aria-pressed="true"] { background: #fff; color: #0C1116; }
.t5-pop__x { -webkit-appearance: none; appearance: none; border: 0; background: none; color: rgba(255,255,255,.7); cursor: pointer; font: 600 .9rem/1 'DM Sans', sans-serif; padding: .2rem .3rem; }
.t5-pop__fig { margin: .45rem 0 0; font-weight: 300; letter-spacing: -.02em; line-height: 1; white-space: nowrap; font-size: 1.05rem; }
.t5-pop[data-size="m"] .t5-pop__fig { font-size: 1.6rem; }
.t5-pop[data-size="l"] .t5-pop__fig { font-size: 2.5rem; }
.t5-pop__r { margin: .35rem 0 0; font-size: .66rem; color: rgba(255,255,255,.62); white-space: nowrap; }
.t5-pop[data-size="s"] .t5-pop__r { display: none; }
html[data-dark] .t5-pop { background: #F6F3EE; color: #1E262B; border-color: rgba(0,0,0,.1); }
html[data-dark] .t5-pop__h, html[data-dark] .t5-pop__r, html[data-dark] .t5-pop__x { color: rgba(30,38,43,.62); }
html[data-dark] .t5-pop__h .t5-seg { border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.04); }
html[data-dark] .t5-pop__h .t5-seg > button { color: rgba(30,38,43,.66); }
html[data-dark] .t5-pop__h .t5-seg > [aria-pressed="true"] { background: #1E262B; color: #fff; }
html[data-dark] .t5-pop .t5-c { color: #C2410C; }

/* ---------------------------------------------------------------- share card */
.t5-share { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8,12,18,.55); }
.t5-share[hidden] { display: none; }
.t5-share__box { width: min(640px, 100%); background: var(--paper, #fff); color: var(--t5-ink); border-radius: 18px; border: 1px solid var(--t5-edge);
    box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.t5-share__img { display: block; width: 100%; aspect-ratio: 1200 / 630; background: var(--t5-soft); object-fit: cover; }
.t5-share__b { padding: .9rem 1rem 1rem; display: grid; gap: .6rem; }
.t5-share__t { margin: 0; font: 700 .64rem/1 'DM Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--t5-dim); display: flex; align-items: center; }
.t5-share__t button { margin-left: auto; }
.t5-share__u { margin: 0; font-size: .8rem; color: var(--t5-dim); overflow-wrap: anywhere; }
.t5-share__s { margin: 0; min-height: 1em; font-size: .74rem; color: var(--t5-acc); }

/* ---------------------------------------------------------------- THE CLOCK: phone sideways, or the Clock pill */
.t5-clock { display: none; }
.t5-clock__fig { margin: 0; font-weight: 250; letter-spacing: -.035em; line-height: .95; white-space: nowrap; font-size: 9vw; }
.t5-clock__fig .t5-c { transition: none; }
.t5-clock__k { margin: 0 0 .9em; font: 700 clamp(.56rem, 1.5vw, .74rem)/1 'DM Sans', system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: .6rem; opacity: .7; }
.t5-clock__bar { height: 2px; width: min(70vw, 900px); margin: 1.1em auto 0; background: rgba(127,127,127,.18); border-radius: 2px; overflow: hidden; }
.t5-clock__bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: var(--t5-acc); animation: t5-sec 1s linear infinite; }
@keyframes t5-sec { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.t5-clock__r { margin: .95em 0 0; font: 500 clamp(.72rem, 2.1vw, 1.05rem)/1.3 'DM Sans', system-ui, sans-serif; opacity: .86; }
.t5-clock__r b { font-weight: 700; color: var(--t5-acc); }
.t5-clock__a { margin: .5em 0 0; font: 500 clamp(.56rem, 1.4vw, .72rem)/1.35 'DM Sans', system-ui, sans-serif; opacity: .52; max-width: 70ch; margin-inline: auto; }
.t5-clock__tools { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; gap: .4rem; }
.t5-clock__tools .t5-pill { color: inherit; opacity: .75; border-color: rgba(127,127,127,.3); background: rgba(127,127,127,.08); }
.t5-clock__mark { position: absolute; left: max(14px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); font: 700 .62rem/1 'DM Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.t5-clock__x[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .t5-clock__bar i, .t5-dot, .t5-hero__photo img { animation: none; } }

html.t5-clock-on, html.t5-clock-on body { overflow: hidden; }
html.t5-clock-on .t5-clock { display: flex; }
.t5-clock { position: fixed; inset: 0; z-index: 2147483000; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F6F3EE 60%, #EFE9E0 100%); color: #1E262B; }
html[data-dark] .t5-clock { background: radial-gradient(120% 90% at 50% 0%, #17202A 0%, #0C1116 62%, #070A0D 100%); color: #F3F5F7; }
html[data-dark] .t5-clock .t5-c { color: #FDBA74; }
.t5-clock .t5-c { color: #C2410C; }
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) {
    html, body { overflow: hidden; }
    .t5-clock { display: flex; }
    body.tr570 > *:not(.t5-clock):not(script):not(style) { visibility: hidden; }
}
