/* price.css — page-specific styles for 📈 The Price (price.html).
 *
 * MUST NOT contain navbar rules — those live in nav.css. This file carries no
 * navbar selector.
 *
 * Same single dark carnival look as house.css / arena.css (site-wide choice):
 * Comic Sans stack for the voice, BlazeitBG backdrop, dark translucent panels,
 * orange glow, gold numbers. The page-specific flavour: EVERY number is set in
 * a tabular monospace face (the "serious numbers, same vibe" rule from the
 * 2026-08-30 font discussion), the headline spot is big, and the stress tables
 * sit right under it so the pretty number never travels without the ugly ones.
 *
 * No global box-sizing reset (same as house.css) — every rule that mixes
 * width/min-height with padding sets box-sizing explicitly.
 */

/* Brand colour tokens — copied verbatim from house.css/arena.css so the navbar
 * (which consumes these, with nav.css's :root fallback as the safety net)
 * renders colour-identical to every other page. Required, not decorative. */
:root {
    --c-orange: orange;
    --c-orange-dark: darkorange;
    --c-red: #ff4500;
    --c-gold: #ffcf48;
    --c-text: #ffffff;
    --navbar-bg: rgba(0, 0, 0, 0.95);
    --glow: 0 0 10px rgba(255, 69, 0, 0.7);
    --pr-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    /* --nav-h and --touch come from nav.css. Do not redefine them here. */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body, "Comic Sans MS", system-ui, sans-serif);
    background: url('images/BlazeitBG.png') no-repeat center center;
    background-size: 100% auto;
    background-attachment: fixed;
    background-color: #b0e8f7;
    color: var(--c-text);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 40px;
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: var(--c-gold);
    padding: 8px 14px;
    z-index: 200;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* ------------------------------------------------------------------ */
/* The big panel                                                       */
/* ------------------------------------------------------------------ */

.pr-panel {
    background: rgba(0, 0, 0, .82);
    border: 2px solid #ff7a18;
    box-shadow: 0 0 12px rgba(255, 69, 0, .6);
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}

.pr-marquee {
    display: inline-block;
    padding: 6px 18px 10px;
    border-radius: 16px;
    background:
        linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, .85)) padding-box,
        repeating-linear-gradient(90deg,
            #ffcf48 0 10px, rgba(255, 207, 72, .15) 10px 20px) border-box;
    border: 4px solid transparent;
    animation: pr-chase 1.2s linear infinite;
}

@keyframes pr-chase {
    to { background-position: 0 0, 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pr-marquee { animation: none; }
}

.pr-panel h1 {
    margin: 0;
    color: var(--c-gold);
    text-shadow: 0 0 6px #ff8c00, 0 0 10px #ff4500;
    overflow-wrap: anywhere;
}

.pr-tagline {
    margin: 12px auto 8px;
    color: #ffd9a0;
    max-width: 70ch;
    line-height: 1.6;
}

/* "how to read this price" trigger — same pill shape as every info button. */
.viewer-info-btn {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    margin: 0 auto 10px;
    padding: 6px 14px;
    min-height: var(--touch);
    border-radius: 999px;
    border: 1px solid rgba(255, 207, 72, .6);
    background: rgba(0, 0, 0, .45);
    color: var(--c-gold);
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease, border-color .2s ease;
}

.viewer-info-btn:hover,
.viewer-info-btn:focus-visible {
    background: rgba(255, 140, 0, .25);
    border-color: var(--c-gold);
    outline: none;
}

.pr-stamp {
    margin: 4px 0 18px;
    font-size: 13px;
    color: #b8c6cf;
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
}

.pr-stamp.pr-stamp-warn {
    color: #ffb347;
}

/* ------------------------------------------------------------------ */
/* Headline: live spot leads, genesis is the stamp under it            */
/* ------------------------------------------------------------------ */

.pr-headline-wrap {
    margin: 0 auto 22px;
    max-width: 760px;
}

.pr-headline-label {
    margin: 0;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffd9a0;
}

.pr-headline {
    margin: 4px 0 0;
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(26px, 5vw, 44px);
    color: var(--c-gold);
    text-shadow: 0 0 8px rgba(255, 140, 0, .8);
    overflow-wrap: anywhere;
}

.pr-headline-sub {
    margin: 6px 0 0;
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    color: #ffd9a0;
    overflow-wrap: anywhere;
}

.pr-disagree {
    margin: 12px auto 0;
    max-width: 62ch;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ffb347;
    background: rgba(255, 140, 0, .12);
    color: #ffd9a0;
    line-height: 1.5;
}

.pr-genesis {
    margin: 14px 0 0;
    color: #ffd9a0;
    line-height: 1.6;
}

.pr-genesis strong {
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    color: var(--c-gold);
}

.pr-genesis a,
.pr-what a,
.pr-usd-note a {
    color: #ffb347;
    text-decoration: underline;
}

.pr-genesis a:hover, .pr-genesis a:focus-visible,
.pr-what a:hover, .pr-what a:focus-visible { color: var(--c-gold); outline: none; }

.pr-spread {
    margin: 6px 0 0;
    font-size: 13px;
    color: #b8c6cf;
}

.pr-k { color: #ffd9a0; }

/* ------------------------------------------------------------------ */
/* Cards: the two venues, the lock, the holdings                       */
/* ------------------------------------------------------------------ */

.pr-grid {
    display: grid;
    /* min() so a 320px phone cannot be forced 22px wider than its own
       viewport — a bare 300px track never shrinks below 300px, and the page
       then scrolls sideways. Same pattern as style.css:1578. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    text-align: left;
    margin: 0 0 22px;
}

.pr-card {
    position: relative;
    background: rgba(10, 6, 2, .88);
    border: 2px solid rgba(255, 122, 24, .85);
    border-radius: 16px;
    padding: 16px 16px 16px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(255, 69, 0, .35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: repeating-linear-gradient(90deg,
        rgba(255, 207, 72, .9) 0 8px, rgba(255, 69, 0, .5) 8px 16px);
}

.pr-card-title {
    margin: 4px 0 0;
    font-size: 17px;
    color: var(--c-gold);
    text-shadow: 0 0 6px rgba(255, 140, 0, .7);
}

.pr-card-title span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #ffd9a0;
    text-shadow: none;
    margin-top: 2px;
}

.pr-spot {
    margin: 4px 0 0;
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    font-size: 22px;
    color: var(--c-gold);
    text-shadow: 0 0 8px rgba(255, 140, 0, .8);
    overflow-wrap: anywhere;
}

.pr-spot-sub,
.pr-usd,
.pr-pump {
    margin: 0;
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: #ffd9a0;
    overflow-wrap: anywhere;
}

.pr-usd:empty, .pr-pump:empty { display: none; }

.pr-rows {
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.pr-rows[hidden] { display: none; }

.pr-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.pr-row dt { color: #ffd9a0; margin: 0; flex: 1 1 55%; }
.pr-row dd {
    margin: 0;
    color: var(--c-text);
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    text-align: right;
    flex: 1 1 45%;
    overflow-wrap: anywhere;
}

.pr-addr { font-size: 11px; }

/* ------------------------------------------------------------------ */
/* Totals strip and the two stress tables                              */
/* ------------------------------------------------------------------ */

.pr-totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 18px;
}

.pr-total {
    flex: 1 1 200px;
    max-width: 320px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 207, 72, .35);
    border-radius: 14px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.pr-total-label {
    display: block;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #ffd9a0;
    margin-bottom: 6px;
}

.pr-total-value {
    display: block;
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    font-size: 22px;
    color: var(--c-gold);
    text-shadow: 0 0 8px rgba(255, 140, 0, .8);
    overflow-wrap: anywhere;
}

.pr-total-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #b8c6cf;
    line-height: 1.4;
}

.pr-tables {
    display: grid;
    /* min() so a 320px phone cannot be forced 22px wider than its own
       viewport — a bare 300px track never shrinks below 300px, and the page
       then scrolls sideways. Same pattern as style.css:1578. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    text-align: left;
    margin: 0 0 22px;
}

.pr-table-wrap {
    background: rgba(10, 6, 2, .88);
    border: 1px solid rgba(255, 122, 24, .6);
    border-radius: 14px;
    padding: 14px 16px;
    box-sizing: border-box;
    overflow-x: auto;
}

.pr-table-wrap h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--c-gold);
}

.pr-table-note {
    margin: 0 0 10px;
    font-size: 12px;
    color: #b8c6cf;
    line-height: 1.5;
}

.pr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pr-table th, .pr-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 207, 72, .18);
    text-align: left;
    vertical-align: top;
}

.pr-table th { color: #ffd9a0; font-weight: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pr-table td:not(:first-child) {
    font-family: var(--pr-mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pr-table tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Notes                                                               */
/* ------------------------------------------------------------------ */

.pr-usd-note {
    margin: 0 auto 18px;
    max-width: 70ch;
    font-size: 12px;
    color: #b8c6cf;
    line-height: 1.5;
}

.pr-what {
    text-align: left;
    max-width: 72ch;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 207, 72, .35);
    background: rgba(0, 0, 0, .5);
    line-height: 1.7;
}

.pr-what h3 { margin: 0 0 6px; color: var(--c-gold); font-size: 16px; }
.pr-what p { margin: 0 0 10px; }
.pr-what p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* "How to read this price" modal                                      */
/*                                                                     */
/* viewer-modal.css supplies the BACKDROP, the close button and the    */
/* .viewer-rap-* verse blocks — but NOT the positioning shell          */
/* (.viewer-modal) or the card (.viewer-modal-card). Those are defined */
/* per page, and a page that links the shared sheet and stops still    */
/* resolves every class name while styling nothing: the dialog then    */
/* renders as loose text flowing down the page with its buttons        */
/* stranded at the bottom. That shipped on house.html on 2026-08-19.   */
/* Block copied from arena.css, as CLAUDE.md instructs.                */
/* ------------------------------------------------------------------ */

.viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.viewer-modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 26px 24px 24px;
    border-radius: 16px;
    border: 2px solid #ff7a18;
    background: rgba(10, 6, 2, .97);
    color: var(--c-text, #fff);
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .8), var(--glow, 0 0 10px rgba(255, 69, 0, .7));
    animation: prModalIn .22s ease;
    text-align: center;
}

@keyframes prModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* The browser default link blue is unreadable on the near-black card. */
.viewer-modal-card a { color: var(--c-gold); }
.viewer-modal-card a:hover, .viewer-modal-card a:focus-visible { color: var(--c-orange); }

#prInfoTitle {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--c-gold);
    text-shadow: 0 0 6px #ff8c00, 0 0 10px #ff4500;
    text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
    .viewer-modal-card { animation: none; }
}

@media screen and (max-width: 768px) {
    .viewer-modal-card { padding: 22px 16px 18px; }
    .viewer-modal-done { width: 100%; }
}

/* Footer + trust strip — copied from house.css (every page defines its own;
 * neither nav.css nor viewer-modal.css supplies these). */

/* Footer — the SITE-STANDARD block, byte-for-byte the one in wrapper.css /
   revoker.css / txdecoder.css and the rest. This page used to carry its own
   darker, dimmer variant (0.9 alpha, dim text, bigger padding); the owner saw
   the seam from page to page (2026-09-02: "the footer has to be the same in
   all of our pages"). tests/footer-parity.spec.js pins the computed result. */
.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    margin-top: 20px;
    box-sizing: border-box;
}
.footer p { margin: 0; }
.trust-strip {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: center;
    align-items: baseline;
    padding: 0 12px;
    font-size: 12px;
    color: #ded6c6; /* opaque: translucent text over a translucent panel has no contrast ratio (READABILITY rule) */
}
.trust-strip a { color: var(--c-gold); text-decoration: none; }
.trust-strip a:hover, .trust-strip a:focus-visible { color: var(--c-orange); text-decoration: underline; }
.trust-sep { opacity: 0.5; }

/* ── 📊 The chart ────────────────────────────────────────────────────────────
   Click-to-load, so the page makes no third-party request until asked. The
   placeholder box holds the SAME height as the loaded frame, so pressing the
   button does not shove the stress tables down the screen. */
.pr-chart-wrap { margin: 2rem 0 1.5rem; }

.pr-chart-title {
    font-size: 1.15rem;
    margin: 0 0 .35rem;
    color: var(--c-gold, #ffc93c);
    letter-spacing: .02em;
}

.pr-chart-note {
    margin: 0 0 .85rem;
    max-width: 68ch;
    line-height: 1.7;
    color: var(--pr-dim, #b9b3a6);
    font-size: .95rem;
}

.pr-chart-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }

.pr-chart-tab {
    font: inherit;
    font-size: .92rem;
    padding: .45rem .9rem;
    min-height: var(--touch, 44px);
    border-radius: 999px;
    cursor: pointer;
    color: var(--pr-dim, #b9b3a6);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pr-chart-tab:hover { color: #fff; border-color: var(--c-orange, #ff7a18); }
.pr-chart-tab.is-on {
    color: #12100c;
    background: linear-gradient(180deg, var(--c-gold, #ffc93c), var(--c-orange, #ff7a18));
    border-color: transparent;
    font-weight: 700;
}

.pr-chart-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 460px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 122, 24, .10), transparent 70%),
        rgba(0, 0, 0, .28);
    overflow: hidden;
}

.pr-chart-frame { width: 100%; height: 460px; border: 0; display: block; }

.pr-chart-load {
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 1.4rem;
    min-height: var(--touch, 44px);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #12100c;
    background: linear-gradient(180deg, var(--c-gold, #ffc93c), var(--c-orange, #ff7a18));
    box-shadow: 0 0 22px var(--glow, rgba(255, 122, 24, .35));
    transition: transform .12s ease, box-shadow .12s ease;
}
.pr-chart-load:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 30px var(--glow, rgba(255, 122, 24, .5)); }
.pr-chart-load:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.pr-chart-sub { margin: 0; font-size: .85rem; color: var(--pr-dim, #b9b3a6); }

.pr-chart-links { margin: .7rem 0 0; font-size: .9rem; color: var(--pr-dim, #b9b3a6); }
.pr-chart-links a { color: var(--c-gold, #ffc93c); margin-left: .6rem; }

@media (max-width: 600px) {
    .pr-chart-box { min-height: 360px; }
    .pr-chart-frame { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
    .pr-chart-tab, .pr-chart-load { transition: none; }
    .pr-chart-load:hover:not(:disabled) { transform: none; }
}

/* ── READABILITY PASS, 2026-09-01 ────────────────────────────────────────────
   .pr-panel sets text-align:center, which is right for the hero numbers and
   wrong for everything that runs to more than one line. Centred prose has a
   ragged left edge, so the eye loses its place on every return sweep — and a
   page whose job is "check our arithmetic" cannot afford to be tiring to read.

   The house standard, applied here: real paragraphs, a measure around 68
   characters, 1.7 line-height, left-aligned, and the BLOCK centred rather than
   the text inside it. Numbers stay centred and stay tabular. */

.pr-panel p,
.pr-panel li {
    text-wrap: pretty;
}

/* Any prose block: left-aligned text in a centred column. */
.pr-prose,
.pr-chart-note,
.pr-swap-wrap > p,
.pr-panel > p:not(.pr-headline):not(.pr-stamp):not(.pr-genesis):not(.pr-spread) {
    max-width: 68ch;
    margin-inline: auto;
    text-align: left;
    line-height: 1.7;
}

/* ── The label/value rows ────────────────────────────────────────────────────
   dd was flex:1 1 45% and right-aligned, which is correct for a number and
   actively bad for a sentence: a wrapped, right-aligned paragraph in a narrow
   column is the hardest shape to read on the page. Two of these rows carry a
   full sentence about where the swap fee goes, and they looked broken.

   Numbers keep the right-aligned tabular column. Prose gets .pr-row-note,
   which stacks the value under its label at full width and reads normally. */
.pr-row dd { text-wrap: pretty; }

.pr-row-note {
    display: block;
    padding: 8px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 4px;
}
.pr-row-note dt {
    display: block;
    margin: 0 0 3px;
    font-weight: 700;
    letter-spacing: .02em;
}
.pr-row-note dd {
    display: block;
    text-align: left;
    font-family: inherit;          /* prose, not tabular figures */
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--pr-dim, #b9b3a6);
    max-width: 62ch;
}
.pr-row-note dd strong { color: var(--c-gold, #ffc93c); font-weight: 700; }

/* The swap card sits inside the centred panel; its own copy is prose. */
.pr-swap-wrap .bsw-honest,
.pr-swap-wrap .bsw-wrap-note { text-align: left; }

/* ---- ➕ Add LP (owner ask, 2026-09-01): the invitation lives inside each
   pool card, under that pool's own numbers. The buttons land on each DEX's
   liquidity PAGE, not a per-pair deep link — neither venue documents a
   stable pair-route format, and a button that 404s after their next
   redesign is worse than one honest hop. The pair address is printed so
   the visitor can match the pool they just read about. */
.pr-lp {
    min-width: 0;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 207, 72, .35);
}
.pr-lp-title { margin: 0 0 6px; font-size: 15px; color: var(--c-gold, #ffc93c); }
.pr-lp-copy, .pr-lp-fine { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.pr-lp-fine { color: rgba(255, 255, 255, .7); }
.pr-lp-copy a { color: var(--c-gold, #ffc93c); }
.pr-lp-btn {
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    padding: 9px 16px;
    min-height: var(--touch);
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid rgba(255, 207, 72, .6);
    background: rgba(0, 0, 0, .45);
    color: var(--c-gold, #ffc93c);
    text-decoration: none;
}
.pr-lp-btn:hover, .pr-lp-btn:focus-visible { border-color: var(--c-gold, #ffc93c); background: rgba(0, 0, 0, .7); }
.pr-lp-pair { margin: 6px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .55); overflow-wrap: anywhere; }
/* A 42-char address has zero soft-wrap opportunities; break-all is what
   actually keeps it inside a 320px card (the overflow spec caught this). */
.pr-lp-pair code { font-size: 11px; word-break: break-all; }
