/* Bitcoin price metrics (/bitcoin-price/ and each country's, docs/bitcoin-power-law.md), on the home
   layout: colors, navigation, buttons and type come from home.css and the shared brand tokens. Written phone
   first: the base rules are the phone's, and the wider layouts are added from 720px and 1040px up.

   Gold is the price and a cycle's rise (money, as everywhere on this site); white is the power law trend;
   BTC orange is a cycle's fall. No third color, but for one thing: blood. The page draws no floor and no top
   since 2026-12-04 (owner), and the gauge went with them. The honey badger came back the next day (owner),
   small, beside the price, and bleeds at extreme fear on the Fear & Greed index (the owner's animation);
   today's pain under it is tagged from that blood at extreme fear to gold and orange at extreme greed.
   That red is used for nothing else. */

.pl-page { --pl-line:#2a2a26; --pl-card:#131312; --pl-muted:#9c9e94; --pl-dim:#6f7167; padding-bottom:0; }
.pl-page h2 { font-weight:500; letter-spacing:-.04em; line-height:1.08; text-wrap:balance; font-size:clamp(26px,6.6vw,40px); margin:0 0 12px; }
.pl-page h3 { font-size:17px; font-weight:600; letter-spacing:-.01em; margin:0 0 6px; }
.pl-page p { line-height:1.7; }
.pl-page p a { text-decoration:underline; text-underline-offset:4px; }
.pl-page [data-pl], .pl-page [data-legend], .pl-page [data-calc], .pl-page [data-lines] { font-variant-numeric:tabular-nums; }
.pl-page [hidden] { display:none!important; }
.pl-label { margin:0; font:11px/1.6 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--pl-muted); }

/* ── The top: what this is, and which country's ─────────────────────────────────────────────────────────── */
.pl-hero { padding-block:18px 26px; }
.pl-top { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
/* The page's h1 is the eyebrow alone: what this is and which country's, no headline under it (owner, 2026-11-17). */
.pl-top .rail-eyebrow { flex-wrap:nowrap; align-items:flex-start; margin:0; font-weight:400; text-transform:uppercase; }
.pl-top .rail-eyebrow .rail-signal { flex:none; margin-top:6px; }
/* Five countries fit a phone from 360px wide; a narrower one scrolls the row. */
.pl-countries { display:inline-flex; align-self:flex-start; max-width:100%; overflow-x:auto; scrollbar-width:none; padding:3px; border:1px solid #34352e; border-radius:var(--radius-pill); background:#0f0f0e; }
.pl-countries::-webkit-scrollbar { display:none; }
.pl-countries a { display:inline-flex; flex:none; align-items:center; gap:4px; min-height:34px; padding:4px 7px; border-radius:var(--radius-pill); color:#b4b5ab; font:12px/1.2 var(--font-mono); letter-spacing:.04em; text-decoration:none; transition:background var(--t-base),color var(--t-base); }
.pl-countries a:hover { color:var(--text); }
.pl-countries a[aria-current="page"] { background:rgba(232,181,60,.14); color:var(--bitcoin-orange); box-shadow:inset 0 0 0 1px rgba(232,181,60,.5); }
.pl-flag { font-size:16px; line-height:1; }

/* ── The instrument: the price, the trend, the fall and the last year, as one piece ─────────────────── */
.pl-instrument { position:relative; display:grid; grid-template-columns:minmax(0,1fr); gap:18px; padding:18px 16px 14px; border:1px solid var(--pl-line); border-radius:22px; overflow:hidden; isolation:isolate;
  background:radial-gradient(ellipse 80% 55% at 50% 0%,rgba(232,181,60,.11),transparent 70%),radial-gradient(ellipse 60% 40% at 100% 100%,rgba(247,147,26,.05),transparent 70%),var(--pl-card); }
/* A faint log grid behind it: the paper the trend is drawn on. */
.pl-instrument::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.5; pointer-events:none;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.028) 0 1px,transparent 1px 44px),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 44px);
  -webkit-mask-image:radial-gradient(ellipse 90% 80% at 50% 30%,#000 20%,transparent 85%); mask-image:radial-gradient(ellipse 90% 80% at 50% 30%,#000 20%,transparent 85%); }

/* The price, and the honey badger beside it once there is room (under it until then). */
.pl-now { container-type:inline-size; min-width:0; }
.pl-now-body { display:grid; gap:14px; }
.pl-now-read { container-type:inline-size; min-width:0; }
.pl-now .pl-label { display:flex; align-items:center; gap:8px; }
.pl-now-price { margin:2px 0 0; font-size:clamp(34px,11vw,60px); font-size:clamp(34px,15.5cqw,60px); font-weight:600; letter-spacing:-.05em; line-height:1.05!important; white-space:nowrap; transition:color .6s var(--ease-out); }
.pl-now-price.is-ticked { color:var(--bitcoin-orange); transition:none; }
.pl-now-sub { display:flex; flex-wrap:wrap; gap:2px 8px; margin:6px 0 0; font:13px/1.6 var(--font-mono); color:#c9cac1; }
.pl-sep { color:var(--pl-dim); }
.pl-asof { margin:2px 0 0; font-size:12px; line-height:1.6!important; color:var(--pl-muted); }
.pl-live { display:inline-flex; flex:none; align-items:center; gap:5px; white-space:nowrap; padding:1px 7px; border-radius:var(--radius-pill); background:rgba(232,181,60,.12); color:var(--bitcoin-orange); font-size:9px; letter-spacing:.12em; }
.pl-live::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--bitcoin-orange); animation:plPulse 2s ease-in-out infinite; }
@keyframes plPulse { 50% { opacity:.25; } }

/* The honey badger: Bitcoin as the animal that takes the stings and keeps going, beside the price, not the
   page's subject: the owner's animations of 2026-12-05, each on its own black at its own 16:9, the still of
   each under reduced motion (the <picture>). Which one is data-scene's (badgerScene and bleeds in the script):
   walking near the trend; a quarter or more over it, standing proud on a mountain top; a fifth or more under
   it, ready for battle on a cliff; at extreme fear on the Fear & Greed index, whatever the price, bleeding on
   a rock, eating honeycomb in a pool of its own blood. Only the one shown is ever fetched (loading="lazy" in
   a box that is not displayed). Under it, today's pain. */
.pl-badger { justify-self:center; width:100%; max-width:320px; min-width:0; margin:0; }
.pl-badger-scene { position:relative; aspect-ratio:16/9; overflow:hidden; border:1px solid var(--pl-line); border-radius:14px; background:#000; }
.pl-badger-clip { display:none; position:absolute; inset:0; }
.pl-badger-clip img { display:block; width:100%; height:100%; object-fit:cover; }
.pl-badger[data-scene="walk"] [data-clip="walk"], .pl-badger[data-scene="stand"] [data-clip="stand"], .pl-badger[data-scene="fight"] [data-clip="fight"],
.pl-badger[data-scene="bleeding"] [data-clip="bleeding"] { display:block; }
/* Until the script has the reading nobody is on stage, and the caption keeps its place unseen. */
.pl-badger:not([data-scene]) figcaption { visibility:hidden; }
/* Under it, today's pain: the Fear & Greed index read as a pain chart reads, 10 at extreme fear to 0 at
   extreme greed (painLevel in the script), its tag in the level's color, blood down to gold and the heat's
   orange; what someone in that much pain says; then the badger's few words, in the labels' voice. */
.pl-badger figcaption { display:grid; justify-items:center; gap:6px; margin-top:8px; text-align:center; }
.pl-pain { display:grid; justify-items:center; gap:4px; }
.pl-pain[data-pl-pain=""] { display:none; }
.pl-pain-tag { --pl-pain:#34332e; --pl-pain-ink:var(--text); display:inline-flex; align-items:center; gap:6px; padding:3px 11px 3px 6px; border-radius:var(--radius-pill); background:var(--pl-pain); color:var(--pl-pain-ink); font:600 11px/1.5 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
.pl-pain-tag .bi { font-size:16px; line-height:1; }
.pl-pain[data-pl-pain="10"] .pl-pain-tag { --pl-pain:#560710; }
.pl-pain[data-pl-pain="9"] .pl-pain-tag { --pl-pain:#8a0d18; }
.pl-pain[data-pl-pain="8"] .pl-pain-tag { --pl-pain:#b3121f; }
.pl-pain[data-pl-pain="7"] .pl-pain-tag { --pl-pain:#7a2a16; }
.pl-pain[data-pl-pain="6"] .pl-pain-tag { --pl-pain:#5a3a1e; }
.pl-pain[data-pl-pain="4"] .pl-pain-tag { --pl-pain:#4d4322; }
.pl-pain[data-pl-pain="3"] .pl-pain-tag { --pl-pain:#7a6324; }
.pl-pain[data-pl-pain="2"] .pl-pain-tag { --pl-pain:#b08a2e; --pl-pain-ink:var(--ink); }
.pl-pain[data-pl-pain="1"] .pl-pain-tag { --pl-pain:var(--bitcoin-orange); --pl-pain-ink:var(--ink); }
.pl-pain[data-pl-pain="0"] .pl-pain-tag { --pl-pain:var(--btc-orange); --pl-pain-ink:var(--ink); }
.pl-pain-line { max-width:30em; font-size:13px; line-height:1.45; color:#d6d7cf; text-wrap:balance; }
.pl-badger-note { font:10px/1.6 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--pl-dim); }
/* Beside the price once its column is wide enough to keep the price at its size: from about 1240px wide. */
@container (min-width:620px) {
  .pl-now-body { display:grid; grid-template-columns:minmax(0,1fr) 248px; align-items:center; gap:24px; }
}

/* Two readings beside the price: how far it is from the trend, and how far it has fallen from this
   cycle's peak, with where each earlier cycle's fall ended marked on the same bar. */
.pl-stats { display:grid; gap:12px; min-width:0; }
.pl-stat { position:relative; padding:14px 14px 12px; border:1px solid var(--pl-line); border-radius:14px; background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 70%),#0f0f0e; }
.pl-stat-figure { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; margin:4px 0 0; font-size:14px; color:#c9cac1; }
.pl-stat-figure strong { font-size:clamp(28px,8vw,38px); font-weight:600; letter-spacing:-.04em; line-height:1.05; color:var(--text); font-variant-numeric:tabular-nums; }
.pl-stat-figure .is-down, .pl-stat-fall .pl-stat-figure strong { color:var(--btc-orange); }
.pl-stat-bar { position:relative; height:10px; margin:12px 0 6px; border-radius:var(--radius-pill); background:rgba(255,255,255,.07); }
/* Against the trend: a tenth of it at the left, ten times it at the right, the trend in the middle. */
[data-pl-trend-bar] { background:linear-gradient(90deg,rgba(247,147,26,.55),rgba(255,255,255,.08) 42%,rgba(255,255,255,.08) 58%,rgba(232,181,60,.55)); }
.pl-stat-mid { position:absolute; top:-5px; bottom:-5px; left:50%; border-left:1px dashed rgba(237,237,237,.7); }
.pl-stat-dot { position:absolute; top:50%; left:50%; width:18px; height:18px; margin:-9px 0 0 -9px; border:3px solid var(--ink); border-radius:50%; background:var(--bitcoin-orange); box-shadow:0 0 0 1px rgba(255,255,255,.4),0 0 18px rgba(232,181,60,.75); transition:left .9s var(--ease-out,ease); }
.pl-stat-dot.is-under { background:var(--btc-orange); box-shadow:0 0 0 1px rgba(255,255,255,.4),0 0 18px rgba(247,147,26,.75); }
.pl-stat-dot::after { content:""; position:absolute; inset:-9px; border:1px solid currentColor; color:rgba(232,181,60,.7); border-radius:50%; animation:plRing 2.4s ease-out infinite; }
@keyframes plRing { from { transform:scale(.5); opacity:1; } to { transform:scale(1.5); opacity:0; } }
/* The fall from the peak fills from the left; each earlier cycle's fall is a tick, named under it. */
.pl-stat-fill { position:absolute; inset:0 auto 0 0; width:0; border-radius:inherit; background:linear-gradient(90deg,rgba(247,147,26,.25),var(--btc-orange)); box-shadow:0 0 14px rgba(247,147,26,.45); transition:width 1.1s var(--ease-out,ease); }
.pl-stat-marks { position:absolute; inset:0; }
.pl-fall-mark { position:absolute; top:-4px; bottom:-4px; width:0; border-left:2px solid rgba(237,237,237,.6); }
.pl-stat-earlier { font:11px/1.6 var(--font-mono); letter-spacing:.02em; color:var(--pl-dim); }
.pl-stat-earlier:empty { display:none; }
.pl-stat-ends { display:flex; justify-content:space-between; font:10px/1.5 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--pl-dim); }
.pl-stat-sub { margin:6px 0 0; font-size:13px; line-height:1.5!important; color:var(--pl-muted); }
.pl-stat-sub b { color:var(--text); font-weight:600; }
.pl-model-tag { margin:0; font:11px/1.6 var(--font-mono); letter-spacing:.02em; color:var(--pl-muted); }
.pl-model-tag i { color:var(--bitcoin-orange); margin-right:4px; }
.pl-model-tag a { color:#c9cac1; }

/* The last twelve months, drawn before the chart's library is asked for. */
.pl-year { margin:0; }
.pl-year-plot { position:relative; height:104px; touch-action:pan-y; cursor:crosshair; }
.pl-year-plot svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; clip-path:inset(-12px 0 -12px 0); animation:plReveal 1.6s var(--ease-out) .15s backwards; }
.pl-year-plot path { fill:none; vector-effect:non-scaling-stroke; }
.pl-year-band { fill:rgba(232,181,60,.06)!important; stroke:none; }
.pl-year-fair { stroke:rgba(237,237,237,.6); stroke-width:1.5; stroke-dasharray:5 4; }
.pl-year-price { stroke:var(--bitcoin-orange); stroke-width:2; stroke-linejoin:round; filter:drop-shadow(0 0 6px rgba(232,181,60,.45)); }
@keyframes plReveal { from { clip-path:inset(-12px 100% -12px 0); } }
.pl-year-now, .pl-year-cursor { position:absolute; pointer-events:none; }
.pl-year-now { width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:var(--bitcoin-orange); box-shadow:0 0 0 3px rgba(232,181,60,.2),0 0 14px rgba(232,181,60,.9); animation:plAppear .5s ease-out 1.5s backwards; }
@keyframes plAppear { from { opacity:0; transform:scale(.2); } }
.pl-year-cursor { top:0; bottom:0; width:0; border-left:1px solid rgba(255,255,255,.4); }
.pl-year figcaption { display:flex; flex-direction:column; gap:1px; margin-top:8px; font-size:12px; line-height:1.5; color:var(--pl-muted); min-height:3.2em; }

.pl-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 52px; gap:8px; }
/* On a phone the third button is its icon alone: "Compartilhar" needs the room. */
.pl-action-icon span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.pl-action { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:0; min-height:46px; padding:8px 6px; white-space:nowrap; border:1px solid #3b3b34; border-radius:12px; background:rgba(255,255,255,.02); color:var(--text)!important; font:600 14px/1.2 inherit; font-family:inherit; text-decoration:none!important; cursor:pointer; transition:border-color var(--t-base),background var(--t-base),transform var(--t-base); }
.pl-action:hover { border-color:#6a6b5e; background:rgba(255,255,255,.05); }
.pl-action:active { transform:scale(.98); }
.pl-action-main { border-color:var(--bitcoin-orange); background:var(--bitcoin-orange); color:var(--ink)!important; }
.pl-action-main:hover { border-color:#f0c14d; background:#f0c14d; }
.pl-action i { font-size:17px; }
/* Under 380px three buttons don't fit a row with their words: the image takes a row of its own, named. */
@media (max-width:379px) {
  .pl-actions { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .pl-action-icon { grid-column:1 / -1; }
  .pl-action-icon span { position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
}
.pl-share-status { margin:0; font-size:13px; line-height:1.5!important; color:var(--bitcoin-orange); overflow-wrap:anywhere; }

.pl-disclaimer { color:var(--pl-muted); font-size:13px; line-height:1.7; margin:0; }
.pl-disclaimer-inline { padding-top:12px; border-top:1px solid var(--pl-line); font-size:12px; line-height:1.6!important; }
.pl-disclaimer-inline a { color:inherit; }
.pl-disclaimer-block { padding-block:34px 56px; }
.pl-disclaimer-block .pl-disclaimer { max-width:760px; }

/* Add to home screen: offered from the second visit */
.pl-install { display:flex; flex-direction:column; gap:10px; margin-bottom:22px; padding:14px 16px; border:1px solid rgba(232,181,60,.35); border-radius:14px; background:rgba(232,181,60,.06); font-size:14px; }
.pl-install p { margin:0; line-height:1.5; }
.pl-install i { color:var(--bitcoin-orange); margin-right:6px; }
.pl-install-actions { display:flex; gap:8px; }

/* Chips and the segment switch */
.pl-chip { display:inline-flex; align-items:center; gap:7px; flex:none; min-height:36px; padding:6px 13px; border:1px solid #34352e; border-radius:var(--radius-pill); background:transparent; color:#c9cac1; font:12px/1.2 var(--font-mono); letter-spacing:.02em; cursor:pointer; transition:border-color var(--t-base),color var(--t-base),background var(--t-base); }
.pl-chip:hover { border-color:#5a5b50; color:var(--text); }
.pl-chip[aria-pressed="true"] { border-color:rgba(232,181,60,.6); background:rgba(232,181,60,.12); color:var(--bitcoin-orange); }
/* A chip that turns a line on carries that line's stroke, as its key */
.pl-chip[data-toggle="ma"]::before, .pl-chip[data-toggle="hash"]::before, .pl-chip[data-toggle="addresses"]::before { content:""; flex:none; width:14px; height:0; border-top:2px solid rgba(247,147,26,.75); }
.pl-chip[data-toggle="ma"]::before { border-top:2px dotted rgba(237,237,237,.7); }
.pl-chip[data-toggle="addresses"]::before { border-top-color:rgba(237,237,237,.45); }
.pl-chip-solid { border-color:var(--bitcoin-orange); background:var(--bitcoin-orange); color:var(--ink); font-weight:600; }
.pl-chip-solid:hover { color:var(--ink); border-color:#f0c14d; background:#f0c14d; }
.pl-segment { display:inline-flex; flex:none; padding:3px; border:1px solid #34352e; border-radius:var(--radius-pill); background:#0f0f0e; }
.pl-segment button { min-height:32px; padding:5px 12px; border:0; border-radius:var(--radius-pill); background:transparent; color:#b4b5ab; font:12px/1.2 var(--font-mono); cursor:pointer; white-space:nowrap; }
.pl-segment button[aria-pressed="true"] { background:var(--text); color:var(--ink); font-weight:600; }

/* ── The deck: every figure in panels of rows. A row of cards to swipe on a phone, a wall from 720px ──────── */
.pl-deck { padding-block:4px 30px; }
.pl-tabs { display:flex; gap:8px; padding:0 20px 12px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.pl-tabs::-webkit-scrollbar, .pl-panels::-webkit-scrollbar { display:none; }
.pl-panels { display:flex; align-items:flex-start; gap:12px; padding-inline:20px; overflow-x:auto; overflow-y:hidden; transition:height .25s var(--ease-out); scroll-snap-type:x mandatory; scroll-padding-inline:20px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.pl-panel { flex:0 0 min(86%,340px); scroll-snap-align:start; padding:14px 16px 12px; border:1px solid var(--pl-line); border-radius:16px; background:var(--pl-card); }
.pl-panel-accent { border-color:rgba(232,181,60,.4); background:radial-gradient(ellipse 90% 40% at 50% 0%,rgba(232,181,60,.07),transparent 70%),var(--pl-card); }
.pl-page .pl-panel h3 { display:flex; align-items:center; gap:8px; margin:0 0 6px; font:600 11px/1.5 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--text); }
.pl-panel h3 i { color:var(--bitcoin-orange); font-size:14px; }
.pl-rows { margin:0; }
.pl-rows div { display:flex; align-items:baseline; justify-content:space-between; gap:14px; padding:7px 0; border-bottom:1px solid #1f201b; }
.pl-rows div:last-child { border-bottom:0; }
.pl-rows dt { font-size:13px; line-height:1.4; color:var(--pl-muted); }
.pl-rows dt small { display:block; font-size:11px; color:var(--pl-dim); }
.pl-rows dd { margin:0; font-size:14px; font-weight:600; letter-spacing:-.01em; line-height:1.4; text-align:right; white-space:nowrap; }
.pl-rows dd.pl-strong { font-size:17px; color:var(--bitcoin-orange); }
.pl-rows .is-up { color:var(--bitcoin-orange); }
.pl-rows .is-down { color:#c9cac1; }
.pl-panel-sub { margin:10px 0 0; padding-top:10px; border-top:1px solid #2a2a26; font:11px/1.5 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:#c9cac1; }
.pl-panel-note { margin:8px 0 0; font-size:12px; line-height:1.5!important; color:var(--pl-dim); }
.pl-spark { height:44px; margin-top:8px; }
.pl-spark svg { display:block; width:100%; height:100%; overflow:visible; }
.pl-spark path { fill:none; stroke:var(--bitcoin-orange); stroke-width:1.5; vector-effect:non-scaling-stroke; stroke-linejoin:round; }
.pl-spark .pl-spark-area { fill:rgba(232,181,60,.08); stroke:none; }
.pl-spark[data-pl-spark="hash"] path { stroke:var(--btc-orange); }
.pl-spark[data-pl-spark="hash"] .pl-spark-area { fill:rgba(247,147,26,.07); }
.pl-spark[data-pl-spark="mood"] path { stroke:rgba(237,237,237,.7); }
.pl-spark[data-pl-spark="gold"] path { stroke:var(--bitcoin-orange); }
.pl-spark[data-pl-spark="mood"] .pl-spark-area { fill:rgba(237,237,237,.05); }
.pl-meter { height:8px; margin-top:12px; border-radius:var(--radius-pill); background:rgba(255,255,255,.08); overflow:hidden; }
.pl-meter span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--bitcoin-orange-dark),var(--bitcoin-orange)); transition:width 1.2s var(--ease-out); }
.pl-mood { position:relative; height:8px; margin-top:12px; border-radius:var(--radius-pill); background:linear-gradient(90deg,var(--bitcoin-orange),rgba(237,237,237,.25) 50%,var(--btc-orange)); }
.pl-mood span { position:absolute; top:50%; left:50%; width:14px; height:14px; margin:-7px 0 0 -7px; border:3px solid var(--ink); border-radius:50%; background:var(--text); transition:left 1.2s var(--ease-out); }
.pl-mood-ends { display:flex; justify-content:space-between; margin-top:5px; font:10px/1.5 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--pl-dim); }

/* Sections */
.pl-section { padding-block:34px; border-top:1px solid #1e1f1a; }
.pl-section-head { margin-bottom:20px; }
.pl-section-head p { margin:0; max-width:680px; color:#babbb4; font-size:16px; }
.pl-sub-head { margin:26px 0 10px; }
.pl-sub-head p { margin:0; color:var(--pl-muted); font-size:14px; max-width:640px; }

/* ── The charts ──────────────────────────────────────────────────────────────────────────────────────────── */
.pl-chart-card { padding:14px 12px 16px; border:1px solid var(--pl-line); border-radius:18px; background:var(--pl-card); }
.pl-toolbar { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px 10px; margin-bottom:12px; }
.pl-layers { flex:0 1 auto; }
.pl-layers[open] { flex-basis:100%; }
.pl-layers summary { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:6px 13px; border:1px solid #34352e; border-radius:var(--radius-pill); color:#c9cac1; font:12px/1.2 var(--font-mono); cursor:pointer; list-style:none; }
.pl-layers summary::-webkit-details-marker { display:none; }
.pl-layers[open] summary { border-color:#5a5b50; color:var(--text); }
.pl-toggles { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pl-legend { display:flex; flex-wrap:wrap; gap:4px 16px; min-height:22px; margin-bottom:8px; font:12px/1.6 var(--font-mono); color:var(--pl-muted); }
.pl-legend b { font-weight:600; color:var(--text); }
.pl-key { display:inline-flex; align-items:center; gap:6px; }
.pl-key::before { content:""; width:14px; height:0; border-top:2px solid currentColor; }
.pl-key-price::before { border-color:var(--bitcoin-orange); }
.pl-key-fair::before { border-top:2px dashed rgba(237,237,237,.7); }
.pl-key-date::before { display:none; }
.pl-key-date { margin-left:auto; color:var(--pl-dim); }
.pl-chart-wrap { position:relative; }
.pl-chart { height:360px; touch-action:pan-y; }
canvas.pl-chart { display:block; width:100%; cursor:crosshair; }
.pl-chart-small { height:180px; }
.pl-chart-state { position:absolute; inset:0; display:grid; place-items:center; margin:0; color:var(--pl-dim); font:13px/1.6 var(--font-mono); pointer-events:none; }
.pl-band-note, .pl-attribution, .pl-view-note { margin:10px 0 0; font-size:13px; color:var(--pl-muted); }
.pl-attribution { font-size:12px; color:var(--pl-dim); }
.pl-attribution a, .pl-band-note a { color:inherit; }

/* What a mark says: beside it under a pointer, along the bottom when tapped on a phone */
.pl-pop { position:absolute; z-index:5; left:8px; right:8px; bottom:8px; max-width:320px; padding:12px 38px 12px 14px; border:1px solid #45463c; border-radius:14px; background:rgba(16,16,15,.97); box-shadow:0 18px 50px rgba(0,0,0,.6); font-size:13px; line-height:1.55; }
.pl-pop.is-hover { pointer-events:none; padding-right:14px; }
.pl-pop.is-hover .pl-pop-close { display:none; }
.pl-pop h4 { margin:0 0 4px; font-size:15px; font-weight:600; letter-spacing:-.01em; }
.pl-pop p { margin:0; color:#c9cac1; line-height:1.55; }
.pl-pop .pl-pop-meta { margin-bottom:6px; font:11px/1.6 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--bitcoin-orange); }
.pl-pop .pl-pop-figures { margin-top:8px; font:12px/1.7 var(--font-mono); color:var(--pl-muted); }
.pl-pop a { color:var(--bitcoin-orange); }
.pl-pop-close { position:absolute; top:4px; right:4px; width:34px; height:34px; border:0; border-radius:50%; background:transparent; color:#c9cac1; font-size:18px; cursor:pointer; }

/* The tables: on a phone three columns, the rest folded under
   the date; the whole table from 720px */
.pl-table { display:block; width:100%; border-collapse:collapse; font-size:14px; }
.pl-table thead, .pl-table tbody { display:block; }
.pl-table tr { display:grid; grid-template-columns:minmax(0,1fr) 76px 76px; gap:2px 10px; align-items:start; padding:11px 0; border-bottom:1px solid #1f201b; }
.pl-table thead tr { padding:0 0 8px; border-bottom-color:#3a3b33; align-items:end; }
.pl-table th { text-align:left; font:10px/1.4 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--pl-muted); }
.pl-table td { display:block; padding:0; line-height:1.5; }
.pl-table th:nth-child(2), .pl-table th:nth-child(3), .pl-table td:nth-child(2), .pl-table td:nth-child(3) { display:none; }
.pl-table th:nth-child(n+4), .pl-table td:nth-child(n+4) { text-align:right; }
.pl-table td:first-child { font-weight:600; }
.pl-table .pl-num { font-variant-numeric:tabular-nums; white-space:nowrap; }
.pl-table .pl-gain { color:var(--bitcoin-orange); font-weight:600; }
.pl-table .pl-sub { display:block; font-size:12px; font-weight:400; color:var(--pl-dim); white-space:normal; }
.pl-table .pl-sub-wide { display:none; }
.pl-table .pl-empty { grid-column:1 / -1; color:var(--pl-dim); font-weight:400; }
.pl-table .pl-loss { color:var(--btc-orange); font-weight:600; }
/* The cycles: on a phone the cycle, its rise and its fall, the prices and dates folded under them. */
.pl-cycle-table th:nth-child(2), .pl-cycle-table td:nth-child(2), .pl-cycle-table th:nth-child(4), .pl-cycle-table td:nth-child(4) { display:none; }
.pl-cycle-table th:nth-child(3), .pl-cycle-table td:nth-child(3) { display:block; text-align:right; }
.pl-cycle-table tbody th { font:600 15px/1.5 var(--font-sans,inherit); letter-spacing:0; text-transform:none; color:var(--text); }
.pl-tag { display:inline-block; margin-left:8px; padding:1px 8px; border:1px solid rgba(232,181,60,.45); border-radius:var(--radius-pill); color:var(--bitcoin-orange); font:10px/1.7 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; vertical-align:middle; }
.pl-caveat { display:flex; gap:10px; margin:16px 0 0; max-width:720px; font-size:14px; color:var(--pl-muted); }
.pl-caveat i { color:var(--bitcoin-orange); margin-top:2px; }

/* The cycles, drawn from the history once it is in */
.pl-cycles-card { padding:14px 12px 6px; border:1px solid var(--pl-line); border-radius:18px; background:radial-gradient(ellipse 70% 45% at 50% 0%,rgba(232,181,60,.07),transparent 70%),radial-gradient(ellipse 70% 40% at 50% 100%,rgba(247,147,26,.06),transparent 70%),var(--pl-card); }
.pl-cycles { position:relative; margin-bottom:10px; }
.pl-cycles:not(.is-drawn) { min-height:240px; }
.pl-cycles-svg { display:block; width:100%; height:auto; overflow:visible; }
.pl-cycles-axis { stroke:rgba(237,237,237,.25); stroke-width:1; }
.pl-cycles-trail { fill:none; stroke:rgba(247,147,26,.55); stroke-width:1.5; stroke-dasharray:4 5; }
.pl-cycle-figure { font:600 15px/1 var(--font-mono); fill:var(--bitcoin-orange); }
.pl-cycle-figure.is-fall { fill:var(--btc-orange); }
.pl-cycle-years { font:11px/1 var(--font-mono); letter-spacing:.06em; fill:#c9cac1; }
.pl-cycle-note { font:10px/1 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; fill:var(--pl-dim); }
.pl-cycle-now { stroke:var(--text); stroke-width:2; stroke-linecap:round; }
.pl-cycle.is-running .pl-cycle-fall { stroke:var(--btc-orange); stroke-width:1.5; stroke-dasharray:4 3; fill-opacity:.55; }
.pl-cycle.is-running .pl-cycle-now { animation:plPulse 2s ease-in-out infinite; }
/* The first time, each rise grows up from the line and each fall down from it, one cycle after the other. */
.pl-cycles.is-animated .pl-cycle-rise { transform-box:fill-box; transform-origin:50% 100%; animation:plGrow .9s var(--ease-out,ease) both; animation-delay:var(--pl-delay); }
.pl-cycles.is-animated .pl-cycle-fall { transform-box:fill-box; transform-origin:50% 0; animation:plGrow .9s var(--ease-out,ease) both; animation-delay:calc(var(--pl-delay) + .35s); }
.pl-cycles.is-animated .pl-cycle text { animation:plFadeIn .5s ease both; animation-delay:calc(var(--pl-delay) + .6s); }
@keyframes plGrow { from { transform:scaleY(0); } }
@keyframes plFadeIn { from { opacity:0; } }

/* The trend on any date */
.pl-calcs { display:grid; gap:14px; }
.pl-calc { padding:20px 16px; border:1px solid var(--pl-line); border-radius:18px; background:var(--pl-card); color-scheme:dark; }
.pl-page .pl-calc h3 { margin-bottom:14px; font-size:19px; letter-spacing:-.02em; }
.pl-calc-form { display:grid; gap:14px; margin-bottom:18px; }
.pl-field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.pl-field span { font:11px/1.6 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:#babbb4; }
.pl-field select, .pl-field input { width:100%; min-height:48px; padding:10px 14px; border:1px solid #3b3b34; border-radius:8px; background:var(--ink); color:var(--text); font:inherit; font-size:16px; }
.pl-field select:focus, .pl-field input:focus { outline:none; border-color:var(--bitcoin-orange); box-shadow:0 0 0 3px rgba(232,181,60,.15); }
.pl-quick { display:flex; flex-wrap:wrap; gap:8px; }
.pl-calc-result { display:grid; gap:12px; margin:0; padding-top:16px; border-top:1px solid var(--pl-line); }
.pl-calc-result dt { font:11px/1.6 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--pl-muted); }
.pl-calc-result dd { margin:2px 0 0; font-size:20px; font-weight:600; letter-spacing:-.03em; overflow-wrap:anywhere; }
.pl-calc-result .pl-calc-worth { font-size:clamp(26px,8vw,34px); color:var(--bitcoin-orange); }
.pl-calc-line { margin:14px 0 0; padding:10px 12px; border-left:2px solid var(--bitcoin-orange); background:rgba(232,181,60,.05); font-size:14px; line-height:1.55!important; color:#d0d1c8; }
.pl-fine { margin:14px 0 0; font-size:13px; color:var(--pl-dim); }

/* About the model, the credit and the data */
.pl-about { display:grid; gap:22px; }
.pl-about-text p { margin:0 0 14px; color:#c9cac1; font-size:15px; }
.pl-about-text strong { color:var(--text); font-weight:600; }
.pl-more summary { display:inline-flex; align-items:center; gap:8px; min-height:40px; margin-bottom:10px; padding:6px 14px; border:1px solid #34352e; border-radius:var(--radius-pill); color:#c9cac1; font:12px/1.2 var(--font-mono); cursor:pointer; list-style:none; }
.pl-more summary::-webkit-details-marker { display:none; }
.pl-more summary::after { content:"+"; color:var(--bitcoin-orange); font-size:15px; }
.pl-more[open] summary::after { content:"–"; }
.pl-formula { display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid var(--pl-line); border-radius:14px; background:var(--pl-card); }
.pl-formula code { font:600 20px/1.3 var(--font-mono); color:var(--bitcoin-orange); background:none; padding:0; }
.pl-formula span { font-size:13px; color:var(--pl-muted); }
.pl-about-stats { display:grid; grid-template-columns:1fr 1fr; gap:1px; margin:0; align-self:start; border:1px solid var(--pl-line); border-radius:16px; background:var(--pl-line); overflow:hidden; }
.pl-about-stats div { padding:14px; background:var(--pl-card); }
.pl-about-stats dt { font:10px/1.5 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--pl-muted); }
.pl-about-stats dd { margin:6px 0 0; font-size:20px; font-weight:600; letter-spacing:-.03em; }
.pl-notes { display:grid; gap:14px; margin-top:22px; }
.pl-note { padding:18px 16px; border:1px solid var(--pl-line); border-radius:16px; background:var(--pl-card); }
.pl-page .pl-note h3 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font:600 11px/1.5 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; }
.pl-note h3 i { color:var(--bitcoin-orange); font-size:14px; }
.pl-note p { margin:0 0 10px; font-size:14px; line-height:1.65; color:#c9cac1; }
.pl-note p:last-child { margin-bottom:0; }
.pl-note a { color:var(--text); }
.pl-endpoints { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.pl-endpoints li { display:flex; flex-direction:column; gap:2px; font-size:13px; line-height:1.5; color:var(--pl-muted); }
.pl-endpoints a { text-decoration:none; }
.pl-endpoints code { padding:0; background:none; font:12px/1.5 var(--font-mono); color:var(--bitcoin-orange); overflow-wrap:anywhere; }
.pl-endpoints span code { color:#c9cac1; white-space:nowrap; }
.pl-sources { margin:22px 0 0; max-width:860px; font-size:13px; color:var(--pl-dim); }
.pl-sources a { color:var(--pl-muted); }

/* For merchants */
.pl-cta { padding-block:56px; border-top:1px solid #1e1f1a; background:radial-gradient(ellipse 70% 80% at 50% 100%,rgba(232,181,60,.11),transparent 70%); text-align:center; }
.pl-cta .rail-eyebrow { justify-content:center; margin-bottom:14px; }
.pl-cta p:not(.rail-eyebrow) { max-width:560px; margin:0 auto 24px; color:#babbb4; font-size:17px; }

@media (min-width:720px) {
  .pl-hero { padding-block:34px 36px; }
  .pl-top { flex-direction:row; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; }
  .pl-countries { align-self:flex-end; flex:none; }
  .pl-countries a { gap:6px; padding:4px 11px; }
  .pl-instrument { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); grid-template-areas:"now stats" "year year" "actions note"; gap:22px 36px; padding:28px 28px 22px; align-items:start; }
  .pl-now { grid-area:now; }
  .pl-stats { grid-area:stats; }
  .pl-year { grid-area:year; }
  .pl-year-plot { height:150px; }
  .pl-year figcaption { flex-direction:row; gap:12px; min-height:0; }
  .pl-actions { grid-area:actions; grid-template-columns:repeat(3,auto); justify-content:start; }
  .pl-action { padding-inline:16px; }
  .pl-action-icon span { position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
  .pl-share-status { grid-column:1 / -1; }
  .pl-disclaimer-inline { grid-area:note; align-self:center; padding-top:0; border-top:0; text-align:right; }
  .pl-install { flex-direction:row; align-items:center; justify-content:space-between; }
  .pl-tabs { display:none; }
  .pl-panels { display:block; width:min(1200px,calc(100% - 64px)); margin-inline:auto; padding-inline:0; overflow:visible; columns:2; column-gap:14px; transition:none; }
  /* An inline block is never split between columns and starts each column at the same height: as blocks,
     the panels were reported starting at different heights in Safari on an iPad (not yet checked on one). */
  .pl-panel { display:inline-block; width:100%; vertical-align:top; break-inside:avoid; margin-bottom:14px; }
  .pl-section { padding-block:52px; }
  .pl-chart-card { padding:20px 20px 22px; }
  .pl-layers { flex:1 1 auto; }
  .pl-layers summary, .pl-more summary { display:none; }
  .pl-toggles { margin-top:0; justify-content:flex-end; }
  .pl-chart { height:460px; }
  .pl-chart-small { height:210px; }
  .pl-pop { right:auto; bottom:auto; width:320px; }
  .pl-table { display:table; font-size:15px; }
  .pl-table thead { display:table-header-group; }
  .pl-table tbody { display:table-row-group; }
  .pl-table tr, .pl-table thead tr { display:table-row; }
  .pl-table th, .pl-table th:nth-child(2), .pl-table th:nth-child(3) { display:table-cell; padding:10px 14px 10px 0; border-bottom:1px solid #3a3b33; font-size:11px; white-space:nowrap; }
  .pl-table td, .pl-table td:nth-child(2), .pl-table td:nth-child(3) { display:table-cell; padding:13px 14px 13px 0; border-bottom:1px solid #1f201b; vertical-align:top; }
  .pl-table th:nth-child(n+2), .pl-table td:nth-child(n+2) { text-align:right; }
  .pl-table td:first-child { font-weight:400; white-space:nowrap; }
  .pl-table .pl-sub-wide { display:block; }
  .pl-table .pl-sub-narrow { display:none; }
  .pl-calcs { grid-template-columns:1fr 1fr; align-items:start; }
  .pl-calcs-one { grid-template-columns:minmax(0,640px); }
  .pl-cycles-card { padding:22px 22px 10px; }
  .pl-cycle-table th:nth-child(n), .pl-cycle-table td:nth-child(n) { display:table-cell; }
  .pl-cycle-table th:nth-child(n+2), .pl-cycle-table td:nth-child(n+2) { text-align:left; }
  .pl-cycle-table th:nth-child(3), .pl-cycle-table td:nth-child(3), .pl-cycle-table th:nth-child(5), .pl-cycle-table td:nth-child(5) { text-align:right; }
  .pl-calc { padding:26px; }
  .pl-calc-result { grid-template-columns:1.25fr 1fr 1fr; align-items:end; }
  .pl-calc-result .pl-calc-worth { font-size:28px; }
  .pl-about { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:40px; }
  .pl-notes { grid-template-columns:1fr 1.25fr; align-items:start; }
  .pl-cta { padding-block:88px; }
}

@media (min-width:1040px) {
  .pl-hero { padding-block:44px 44px; }
  /* The price over the last year on the left, the two readings beside them. */
  .pl-instrument { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); grid-template-areas:"now stats" "year stats" "actions note"; gap:22px 40px; padding:34px 36px 26px; }
  .pl-year-plot { height:200px; }
  .pl-panels { width:min(1200px,calc(100% - 96px)); columns:4; }
  .pl-chart { height:540px; }
  .pl-calc-form:not(.pl-calc-form-one) { grid-template-columns:1.3fr 1fr; }
}

@media (prefers-reduced-motion:reduce) {
  .pl-meter span, .pl-stat-dot, .pl-stat-fill, .pl-mood span, .pl-now-price { transition:none; }
  .pl-live::before, .pl-stat-dot::after, .pl-cycle.is-running .pl-cycle-now { animation:none; }
  .pl-cycles.is-animated .pl-cycle-rise, .pl-cycles.is-animated .pl-cycle-fall, .pl-cycles.is-animated .pl-cycle text { animation:none; }
  .pl-year-plot svg, .pl-year-now { animation:none; }
}
