/* Refunds skin. Loaded after bailouts.css, which stays as the component structure: this file swaps the
   palette and type for the penguin brand (navy, mint, envelope cream), rounds the shapes, hides the old
   guilloché engraving, and adds the home hero (penguin perched on the launch card).
   Type: Baloo 2 (display), Nunito Sans (text), Martian Mono at wdth 87.5 (figures). */
:root{
  --ink:#0b0d15; --ink2:#10131f; --ink3:#151a2b;
  --ivory:#eef1f6; --ivory-d:rgba(238,241,246,.7); --ivory-f:rgba(238,241,246,.46); --rule-d:rgba(255,255,255,.08);
  --paper:#0d1019; --sheet:#151a2b; --sheet2:#121726;
  --tp:#eef1f6; --tp-d:#aab3c5; --tp-f:#8a93a8; --rule-p:rgba(255,255,255,.07); --rule-p2:rgba(255,255,255,.12);
  --green:#8fe2c1; --green-l:#b8f0da; --brass:#8fe2c1; --brass-d:#8fe2c1; --red:#f19a96; --stamp:#8fe2c1;
  --mint:#8fe2c1; --mint2:#5fcfa5; --cream:#f2e8d2; --coral:#f19a96;
  --serif:"Baloo 2",ui-rounded,system-ui,sans-serif;
  --sans:"Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r:18px; --r-s:12px;
}
html,body{background:var(--ink)}
body{font-size:15px;background-image:radial-gradient(1000px 560px at 50% -140px,rgba(95,207,165,.10),transparent 70%),radial-gradient(760px 420px at 88% 22%,rgba(241,154,150,.045),transparent 70%);background-repeat:no-repeat}
::selection{background:rgba(143,226,193,.3)}

/* type: friendly rounded headlines instead of engraved capitals */
h1,h2,h3,.ttl,.tk b,.sec-label b,.foot-mark,.pvn .n,.pempty h4,.veil-in h4,.tbl .cn b,.whyline,.flow h4,.drop b,.result h4,.brand,.cseal b,.stage-center b{font-family:var(--serif);font-weight:800;text-transform:none;letter-spacing:-.015em}
h2{line-height:1.05}
.pempty h4,.veil-in h4,.drop b,.result h4,.flow h4{font-size:19px}
.tbl .cn b{font-size:17px}
.whyline{font-size:22px}
h1 em,h2 em,h3 em,.whyline em{font-style:normal;color:var(--mint)}
.prose li::before,.terms p::before{content:"•";font-family:var(--sans)}

/* the old engraving: gone */
.stage,.ribbon-band,.ribbon-div,svg.band,.guil,.micro,.tryart,.wire,.seal-rot,.seal-rot-r,.mseal-rot,.hero::after,.hero-home::after{display:none!important}
.hero,.hero-home{background:transparent}
.hero-home{min-height:0}

/* shapes */
.btn{border-radius:var(--r-s);font:700 14px/1 var(--sans);letter-spacing:0;height:44px}
.btn-solid{background:var(--mint);color:#0b1712;box-shadow:0 10px 28px -10px rgba(95,207,165,.55)}
.btn-solid:hover{background:#a9ecd1}
.btn-line{border-color:var(--rule-p2);background:var(--ink3);color:var(--ivory)}
.btn-line:hover{border-color:rgba(255,255,255,.22);background:#1b2135}
.btn-mini{border-radius:9px}
.kbar{border-radius:var(--r-s);background:var(--ink2);height:38px}
kbd{border-radius:6px}
.doc,.panel,.exhibit,.sheet,.notice,.banner,.cmd,.try-box,.alloc,.pvn,.art,.formdoc,.drop,.result,.audit,.flow,.prose,.terms,.toast,.pempty,.field input,.field textarea,.field select,.steps,.costline,.tscroll,.cfigs,.chip,.pill,.meter,.sharebar,.coinbar,.veil,.veil-in{border-radius:var(--r)}
.field input,.field textarea,.field select,.cmd,.drop,.costline,.chip,.pill{border-radius:var(--r-s)}
.doc,.panel,.sheet,.notice,.try-box,.alloc,.art,.pvn,.formdoc,.result,.audit,.exhibit{background:linear-gradient(180deg,var(--ink3),#121726);border-color:var(--rule-p2)}
.paper,.paper.sec,.sec{background:transparent}
.stamp-in{border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--sheet),inset 0 0 0 3px currentColor}
.stamp-in b{font-family:var(--serif);font-weight:800;letter-spacing:.06em}
.cseal{border-radius:12px;background:var(--ink3)}
.skel{border-radius:6px}
canvas.spin-ros{width:26px!important;height:26px!important;border-radius:50%;border:3px solid rgba(143,226,193,.18);border-top-color:var(--mint);animation:rf-spin .8s linear infinite}
@keyframes rf-spin{to{transform:rotate(360deg)}}

/* nav */
.nav{height:72px;border-bottom:0;padding:0 28px;max-width:1240px;margin:0 auto;width:100%;background:transparent!important}
.brand{gap:10px;font-size:25px;letter-spacing:-.01em;color:var(--ivory)}
.brand i{font-style:normal;color:var(--mint)}
.nav .mark{width:34px;height:34px;border-radius:50%;box-shadow:none;background:var(--ink3);object-fit:cover}
.links{gap:26px;font-size:14.5px;font-weight:700}
.links a::after{display:none}
.nav .btn{height:40px;padding:0 16px;font-size:14px}
.kbar input{font-size:12px}

/* home hero: the penguin perched on the launch card */
.rf-hero{text-align:center;padding:40px 24px 0}
.rf-pill{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:99px;background:rgba(143,226,193,.08);border:1px solid rgba(143,226,193,.22);color:var(--mint);font:500 11.5px/1 var(--mono);font-variation-settings:"wdth" 87.5;letter-spacing:.12em;text-transform:uppercase}
.rf-pill b{width:6px;height:6px;border-radius:50%;background:var(--mint);box-shadow:0 0 10px var(--mint)}
.rf-hero h1{font-size:clamp(44px,5.4vw,70px);line-height:1;letter-spacing:-.03em;margin-top:18px}
.rf-hero h1 span{color:var(--mint)}
.rf-sub{color:var(--ivory-d);font-size:18px;line-height:1.55;max-width:620px;margin:16px auto 0}
.rf-stage{position:relative;max-width:1000px;margin:176px auto 0;padding:0 24px}
.rf-perch{position:absolute;left:50%;top:-173px;width:196px;height:auto;transform:translateX(-50%);z-index:3;filter:drop-shadow(0 18px 24px rgba(0,0,0,.45));pointer-events:none}
.rf-app{position:relative;display:grid;grid-template-columns:1fr 1fr;background:linear-gradient(180deg,var(--ink3),#121726);border:1px solid var(--rule-p2);border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.rf-pane{padding:28px 28px 24px;min-width:0}
.rf-pane+.rf-pane{border-left:1px solid var(--rule-p);background:rgba(0,0,0,.12)}
.rf-h{font-size:24px;line-height:1.1}
.rf-p{color:var(--ivory-d);line-height:1.55;margin:8px 0 18px;font-size:15px}
.rf-p b{color:var(--mint)}
.rf-go{width:100%;height:54px;font-size:16.5px;border-radius:14px}
.rf-or{display:flex;align-items:center;gap:12px;color:var(--ivory-f);font-size:12.5px;margin:20px 0 12px}
.rf-or::before,.rf-or::after{content:"";flex:1;height:1px;background:var(--rule-p2)}
.rf-pane .cmd{background:var(--ink2)}
.rf-pane .cmd-meta{margin-top:8px;font-size:12.5px}
.rf-rules{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.rf-rules span{height:30px;line-height:30px;padding:0 12px;border-radius:99px;background:var(--ink2);border:1px solid var(--rule-p);color:var(--ivory-d);font-size:12.5px;font-weight:600}
.rf-rules span b{color:var(--ivory)}
.rf-deskh{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.rf-live{font:500 11px/1 var(--mono);font-variation-settings:"wdth" 87.5;color:var(--mint);letter-spacing:.1em}
.rf-desk .liveline{background:var(--ink2);border:1px solid var(--rule-p);border-radius:14px;padding:14px 16px;margin-bottom:14px;font-size:13px}
.rf-lab{font:700 11.5px/1 var(--sans);color:var(--tp-f);text-transform:uppercase;letter-spacing:.08em;margin:2px 0 10px}
.rf-desk #latest{max-height:300px;overflow:auto}
.rf-desk #latest .tscroll,.rf-desk #latest .doc{border:0;background:transparent}
.rf-desk .lnk{display:inline-block;margin-top:12px;font-size:13px;color:var(--mint)}
.hero-home .strip{max-width:1000px;margin:28px auto 0;border:1px solid var(--rule-p);border-radius:18px;background:rgba(21,26,43,.6)!important;overflow:hidden}

/* how-it-works steps with the penguin */
.rf-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:8px 0 26px}
.rf-step{position:relative;overflow:hidden;min-height:196px;padding:22px;border:1px solid var(--rule-p);border-radius:var(--r);background:linear-gradient(180deg,var(--ink3),#121726)}
.rf-step .n{font:500 11.5px/1 var(--mono);font-variation-settings:"wdth" 87.5;color:var(--mint);letter-spacing:.12em}
.rf-step h3{font-size:22px;margin:10px 0 6px}
.rf-step p{color:var(--ivory-d);line-height:1.5;font-size:14.5px;max-width:250px}
.rf-step img{position:absolute;right:-12px;bottom:-16px;width:118px;height:auto}

/* footer */
footer{border-top:1px solid var(--rule-p);background:transparent}
.foot-brand img{border-radius:20px;background:var(--ink3)}
.foot-mark{font-size:26px}
.foot-mark i{font-style:normal;color:var(--mint)}

@media (max-width:900px){
  .rf-app{grid-template-columns:1fr}
  .rf-pane+.rf-pane{border-left:0;border-top:1px solid var(--rule-p)}
  .rf-steps{grid-template-columns:1fr}
  .rf-stage{margin-top:140px}
  .rf-perch{width:150px;top:-132px}
  .rf-sub{font-size:16px}
  .nav .btn{white-space:nowrap}
}

/* phone nav: wraps under the brand like the old layout did (the desktop overrides above would keep it on one line) */
@media (max-width:820px){
  .nav{height:auto;flex-wrap:wrap;gap:0 12px;padding:10px 16px 0}
  .brand{font-size:21px;height:36px}
  .nav .mark{width:30px;height:30px}
  .kbar,.nav-r .wbtn{display:none}
  .links{gap:18px;font-size:13px}
  .rf-hero{padding-top:28px}
}

/* the refund desk shows the latest refunds compactly: wallet, refund, loss, when */
.rf-r{float:right;text-transform:none;letter-spacing:0;font-weight:600;color:var(--ivory-f);font-size:11.5px}
.rf-desk .tbl{width:100%}
.rf-desk .tbl th:nth-child(5),.rf-desk .tbl td:nth-child(5),.rf-desk .tbl th:nth-child(6),.rf-desk .tbl td:nth-child(6){display:none}
.rf-desk .tbl th,.rf-desk .tbl td{padding:9px 8px;font-size:12px}

/* the rosette seal is gone: heroes run one column, and the home headline is not squeezed on phones */
.seal{display:none!important}
.hero-in,.hero-sm .hero-in,.hero-coin .hero-in{grid-template-columns:minmax(0,1fr)!important}
.rf-hero h1{max-width:none!important}
/* coin hero: no room reserved for the old 3D stage */
.hero-coin .hero-in{min-height:0!important;padding-bottom:30px}
@media (max-width:820px){.hero-coin .hero-in{padding:22px 16px 24px!important}}

/* ---- boxed cards -------------------------------------------------------------------------------------------
   In the old layout these were columns separated by rules, so they had padding on one side only (or none). The
   skin above gives them a card background, which left text flush against the card edge and neighbouring cards
   touching. Every boxed block now carries its own padding, and grids of them get a gap instead of shared rules. */
.articles{gap:16px;border-top:0}
.art,.art+.art{padding:26px 28px 28px;border:1px solid var(--rule-p)}
.art .exhibit{margin-top:auto;min-height:0;padding:14px 16px 15px;border:1px solid var(--rule-p);border-radius:var(--r-s);background:rgba(0,0,0,.22)}
.art>p:last-of-type{margin-bottom:22px}
.alloc{margin-top:16px;padding:26px 32px 12px;border:1px solid var(--rule-p)}
.alloc tr:last-child td{border-bottom:0}
.prov{gap:16px;border-top:0}
.pvn,.pvn:nth-child(2n){padding:30px 32px 32px;border:1px solid var(--rule-p)}
.audit{margin-top:16px}
.try-box{padding:40px 44px;gap:48px;border:1px solid var(--rule-p)}
.try-box .form{border-radius:var(--r);border-color:var(--rule-p)}
/* the totals strip: the first figure carries a SOL amount and its dollar value, so it gets the room */
.hero-home .strip{grid-template-columns:1.55fr repeat(4,minmax(0,1fr))}
.hero-home .strip>div{padding:14px 20px 15px}
@media (max-width:820px){
  .art,.art+.art{padding:22px 20px 22px;border:1px solid var(--rule-p)}
  .alloc{padding:20px 20px 6px}
  .pvn,.pvn:nth-child(2n){padding:24px 20px 26px;border:1px solid var(--rule-p)}
  .try-box{padding:24px 20px 22px;gap:24px}
  .hero-home .strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-home .strip>div{padding:11px 16px 12px}
  /* stacked registers: the two long values get a full row instead of being clipped in half a row */
  .tbl.stack td[data-k="Unrealized loss"],.tbl.stack td[data-k="Paid out"],.tbl.stack td[data-k="Received"],.tbl.stack td[data-k="Status"]{grid-column:1/-1}
  .rf-desk .tbl.stack td{padding:0}
  /* the note beside "Latest refunds" sits under it instead of floating into it */
  .rf-r{float:none;display:block;margin-top:6px}
}

/* the header mark is the "r" logo. The image element is moved out of its own box and the logo drawn behind it, so
   pages the server still holds in memory (their <img> names the old picture) show the logo too. */
.nav .mark{border-radius:0;box-shadow:none;background:url(img/refunds/mark.svg) center/contain no-repeat;object-fit:none;object-position:-999px -999px}

/* home: the statement and the register sit in the page column, like every section under them */
@media (min-width:1141px){
  body[data-page="home"] .ledger{max-width:1344px;margin-left:auto;margin-right:auto;padding-left:40px;padding-right:40px}
  body[data-page="home"] .term{grid-template-columns:minmax(0,1fr) 440px 268px}
  /* the narrower panels: the loss bar keeps its room (it was running into the wallet), and the coin's name gives way first */
  body[data-page="home"] .hgrid{grid-template-columns:24px minmax(0,1fr) minmax(0,2.1fr) 44px 56px}
  body[data-page="home"] .lgrid{grid-template-columns:44px 62px minmax(78px,1fr) 48px minmax(0,1.5fr) 84px}
  body[data-page="home"] .coinbar{gap:14px}
  body[data-page="home"] .cstat.hide-l{display:none}
  body[data-page="home"] .mint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* too narrow for three columns once it is in the column: use the two-column layout the smaller screens get */
@media (min-width:1141px) and (max-width:1279px){
  body[data-page="home"] .term{height:auto;min-height:0;max-height:none;grid-template-columns:minmax(0,1fr) 420px;
    grid-template-rows:auto 440px 190px 330px;grid-template-areas:"chart pay" "chart hold" "log hold" "tape tape"}
}

/* the register of coins is one wide table: in the narrower column it scrolls inside its own box, never the page */
#coins{overflow-x:auto}
@media (min-width:821px) and (max-width:1300px){
  #coins .tbl th,#coins .tbl td{padding-left:9px;padding-right:9px}
}

/* scrolling lists fade out at the bottom instead of ending on half a row */
.tbody,.lbody,.hbody,.rf-desk #latest{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 26px),transparent)}
.tbody,.lbody,.hbody{padding-bottom:16px}
/* the rule under the holders wraps onto a second line instead of being cut with an ellipsis */
.hnote{flex:0 0 auto;height:auto;min-height:32px;gap:6px;padding:7px 14px;line-height:1.4;white-space:normal}
.hnote .tag{padding:3px 5px}
.hnote span:last-child{overflow:visible;text-overflow:clip}

/* launch card: both halves end at the same height. The refund list shows five rows and a fading sixth, and the
   chips on the left sit on the card's bottom line, level with the link on the right. */
.rf-desk #latest{max-height:236px}
@media (min-width:901px){
  .rf-pane{display:flex;flex-direction:column}
  .rf-pane>*{flex:none}
  .rf-rules{margin-top:auto;padding-top:20px}
  .rf-desk .lnk{align-self:flex-start;margin-top:auto;padding-top:12px}
}
@media (max-width:900px){
  .rf-desk #latest{max-height:300px}
}

/* hero pill removed from index.html (2026-11-23); hides the cached copy until the next restart */
.rf-hero > .rf-pill{display:none}

/* why.html: four-step flywheel */
.flow.f4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1140px){.flow.f4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){.flow.f4{grid-template-columns:1fr}}
/* nav: the Why link reads "Why" and the gaps are a little tighter so the nav fits its 1240px column */
.links .nav-long{display:none}
@media (min-width:821px){.links{gap:20px}.nav{gap:24px}}
@media (min-width:1141px) and (max-width:1320px){.kbar{width:190px}.kbar .kmod{display:none}}
