/* ==========================================================================
   Budgeting Made Simple — the app  (/budget/)        black, gold and white
   Complete on its own: this page does not load the website's stylesheet.

   Made to be easy at 7 and at 70: big type, big boxes, big buttons, one thing
   to do at a time, Back and Next always at the bottom of the screen.
   The "AA" button in the top bar makes everything bigger still (html.bud-big).
   Gold text is always a solid colour, so no letter can ever be cut off.
   ========================================================================== */

@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 800;font-display:swap;src:url(/fonts/fraunces-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 800;font-display:swap;src:url(/fonts/fraunces-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:500 800;font-display:swap;src:url(/fonts/fraunces-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/jakarta-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/jakarta-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --ink:#07080c; --ink-2:#0f1218; --ink-3:#161a23; --ink-4:#1f2531;
  --gold-100:#fdf3cf; --gold-200:#f8e39a; --gold-300:#f1cf5a; --gold:#d4af37; --gold-600:#b08d2a; --gold-700:#8a6b1c; --gold-800:#5c4610;
  --paper:#faf7f0; --paper-2:#f4efe3; --line:#e6dfce; --line-2:#cfc4a8;
  --text:#12141a; --muted:#565d68; --on-dark:#f6f2e7; --on-dark-2:rgba(246,242,231,.78); --on-dark-3:rgba(246,242,231,.58);
  --good:#0a7a54; --bad:#b3261e;
  --foil:linear-gradient(180deg,#fbe9a6 0%,#f1cf5a 22%,#d4af37 56%,#b08d2a 100%);
  --hair:rgba(212,175,55,.34);
  --display:'Fraunces','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --sans:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --bar-h:60px;
}

/* === Base =============================================================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:106.25%;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--bar-h) + 12px)}
html.bud-big{font-size:125%}
html.bud-lock,html.bud-lock body{overflow:hidden}          /* a pop-up box is open: the page behind it stays put */
body{font-family:var(--sans);font-size:1rem;line-height:1.55;color:var(--on-dark);background:var(--ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
img,svg{display:block;max-width:100%}
a{color:inherit}
ul,ol{list-style:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
h1,h2,h3,h4{font-family:var(--display);font-weight:650;line-height:1.1;letter-spacing:-.02em}
b,strong{font-weight:700}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--gold-300);outline-offset:3px;border-radius:8px}
::selection{background:var(--gold-300);color:var(--ink)}
.ic{flex-shrink:0}
.bud-skip{position:absolute;left:12px;top:-90px;z-index:100;padding:12px 18px;border-radius:12px;font-weight:700;color:var(--ink);background:var(--gold-300)}
.bud-skip:focus{top:10px}

.bud{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(70% 40% at 86% 0%,rgba(30,58,104,.42),transparent 70%),radial-gradient(46% 26% at 0% 8%,rgba(212,175,55,.09),transparent 70%),var(--ink)}
.bud>main{flex:1 0 auto}
.bud-wrap{width:100%;max-width:780px;margin-inline:auto;padding-inline:18px}

/* === Top bar ============================================================ */
.bud-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:var(--bar-h);
  padding:calc(6px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));
  background:rgba(7,8,12,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.09)}
.bud-brand{display:flex;align-items:center;gap:10px;min-height:48px;min-width:44px;text-align:left}
.bud-brand img{width:38px;height:38px;flex-shrink:0}
.bud-brand{flex:0 1 auto}
.bud-brand span{min-width:0;font-family:var(--display);font-weight:650;font-size:1.0625rem;line-height:1.1;letter-spacing:-.02em;color:#fff}      /* on a narrow phone the name takes two short lines */
.bud-brand b{font-style:italic;font-weight:650;color:var(--gold-300)}
.bud-bar-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.bud-size{display:inline-flex;flex-wrap:wrap;align-items:baseline;align-content:center;justify-content:center;gap:1px;width:48px;height:44px;border-radius:14px;font-family:var(--display);font-weight:650;line-height:1;color:var(--on-dark);border:1.5px solid rgba(255,255,255,.22)}
.bud-size span{font-size:.8rem}
.bud-size b{font-size:1.2rem}
.bud-size[aria-pressed="true"]{color:var(--ink);background:var(--foil);border-color:transparent}
.bud-lang{display:inline-flex;padding:3px;border-radius:999px;border:1.5px solid rgba(255,255,255,.22)}
.bud-lang a,.bud-lang span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 9px;border-radius:999px;font-size:.8rem;font-weight:800;letter-spacing:.04em;text-decoration:none;color:var(--on-dark-2)}
.bud-lang .is-on{color:var(--ink);background:var(--foil)}

/* === Buttons ============================================================ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:14px 24px;border-radius:999px;border:2px solid transparent;
  font-family:var(--sans);font-size:1.0625rem;font-weight:800;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:transform .15s,box-shadow .2s,background-color .2s,border-color .2s}
.btn:active{transform:translateY(1px) scale(.99)}
.btn-lg{min-height:60px;font-size:1.125rem}
.btn-xl{min-height:68px;padding:16px 30px;font-size:1.25rem}
.btn-block{width:100%}
.btn-gold{color:#1c1503;background:var(--foil);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -2px 0 rgba(92,70,16,.35),0 2px 0 #7a5d15,0 16px 34px -14px rgba(212,175,55,.75)}
.btn-gold:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -2px 0 rgba(92,70,16,.4),0 2px 0 #7a5d15,0 20px 40px -12px rgba(212,175,55,.85)}
.btn-ghost{color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.3)}
.btn-ghost:hover{background:rgba(255,255,255,.12);border-color:var(--gold-300)}
.btn-outline{color:var(--text);background:#fff;border-color:var(--line-2)}
.btn-outline:hover{border-color:var(--ink)}
.btn-dark{color:#fff;background:linear-gradient(180deg,#1b2130,#0b0e15);border-color:var(--gold-600)}
.btn[disabled]{opacity:.6;cursor:wait}
.bud-link{min-height:44px;padding:10px 4px;font-size:1rem;font-weight:700;color:var(--gold-300);text-decoration:underline;text-underline-offset:4px}
.bud-link:hover{color:var(--gold-100)}
.bud-center{text-align:center;margin-top:14px}

/* === Cards and tiles ==================================================== */
.bud-card{color:var(--text);background:#fff;border-radius:24px;padding:20px}
.bud-card p{color:var(--muted)}
.bud-tile{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border-radius:17px;color:var(--gold-700);background:linear-gradient(160deg,#fffdf5,#f6edd2);border:1px solid #ead9a6}
.bud-tile-gold{color:#1c1503;background:var(--foil);border-color:transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.bud-tile-xl{width:88px;height:88px;border-radius:28px;margin:0 auto 14px}

/* === Start screen ======================================================= */
.bud-hero{padding:26px 0 8px;text-align:center}
.bud-hero-art{width:clamp(120px,34vw,180px);height:auto;margin:0 auto 14px;filter:drop-shadow(0 22px 28px rgba(0,0,0,.55))}
.bud-hero h1{font-size:clamp(2.5rem,11.5vw,4.25rem);line-height:1;letter-spacing:-.03em;color:#fff;outline:none}
.bud-hero h1 em{font-style:italic;color:var(--gold-300)}
.bud-sub{margin:16px auto 0;max-width:22em;font-size:1.25rem;line-height:1.4;color:var(--on-dark-2)}
.bud-start{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:24px}
.bud-start .btn{width:100%;max-width:420px}
.bud-noscript{margin-top:14px;font-weight:700;color:var(--gold-200)}
.bud-why{padding:30px 0 34px}
.bud-why h2{margin-bottom:16px;font-size:clamp(1.5rem,6vw,2rem);color:var(--gold-300)}
/* four plain lines: a drawing, a word, a sentence */
.bud-why-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.bud-why-card{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center;padding:14px 16px}
.bud-why-card .bud-tile{grid-row:1 / span 2}
.bud-why-n{display:none}
.bud-why-card h3{align-self:end;font-size:1.25rem;color:var(--text)}
.bud-why-card p{align-self:start;font-size:1rem;line-height:1.35}
.bud-more{display:grid;gap:12px;margin-top:22px}
.bud-big-btn{display:flex;align-items:center;gap:14px;width:100%;min-height:84px;padding:14px 16px;border-radius:22px;text-align:left;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1.5px solid var(--hair)}
.bud-big-btn:hover{border-color:var(--gold-300)}
.bud-big-btn b{display:block;font-size:1.125rem;line-height:1.25;color:#fff}
.bud-big-btn small{display:block;margin-top:3px;font-size:.9375rem;line-height:1.35;color:var(--on-dark-2)}

/* === Start screen, once there is a budget: the daily question ============
   "Did you save money today?"  Two big buttons, one line of progress. The first-time
   screen (coin, big title, Why Budget) steps back so the question comes first. */
.bud.has-budget .bud-hero{padding-top:16px}
.bud.has-budget .bud-hero-art{width:clamp(64px,18vw,88px);margin-bottom:6px}
.bud.has-budget .bud-hero h1{font-size:clamp(1.625rem,7.4vw,2.25rem)}
.bud.has-budget .bud-sub,.bud.has-budget .bud-why h2,.bud.has-budget .bud-why-grid{display:none}
.bud.has-budget .bud-why{padding-top:18px}
.bud.has-budget .bud-start{margin-top:16px}
.bud-save{max-width:520px;margin:16px auto 0;padding:20px 18px 18px;text-align:center}
.bud-save h2{font-size:clamp(1.5rem,6.6vw,1.875rem);line-height:1.15;color:var(--text)}
.bud-save-ask{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.bud-save-ask .btn{padding-inline:8px}
.bud-save .bud-save-how{margin-top:12px;font-size:1.0625rem;font-weight:700;color:var(--text)}
.bud-save-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.bud-amt{min-width:0;min-height:58px;padding:10px 4px;border-radius:16px;font-family:var(--display);font-weight:650;font-size:1.3125rem;line-height:1;color:#1c1503;background:var(--foil);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.bud-save-other{display:flex;gap:8px;margin-top:10px}
.bud-save-other .btn{flex:0 0 auto;min-height:58px;padding-inline:20px}
.bud-save .bud-save-done{margin-top:12px;font-family:var(--display);font-weight:650;font-size:1.5rem;line-height:1.2;color:var(--good)}
.bud-save .bud-save-done.is-no{font-family:var(--sans);font-size:1.125rem;font-weight:700;color:var(--muted)}
.bud-save-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 24px;margin-top:2px}
.bud-save .bud-link{color:var(--gold-700)}
.bud-save-prog{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);text-align:left}
.bud-save-line{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px}
.bud-save-line b{font-size:1.125rem;color:var(--text);font-variant-numeric:tabular-nums}
.bud-save-line span{font-size:.9375rem;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.bud-save-line span.is-done{font-weight:800;color:var(--good)}
.bud-save-bar{height:16px;margin-top:8px;border-radius:8px;background:var(--paper-2);overflow:hidden}
.bud-save-bar span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#0a7a54,#31b98a);transition:width .3s}
.bud-save .bud-save-streak{margin-top:8px;font-size:1rem;font-weight:800;color:var(--gold-700)}
/* one short tip a day */
.bud-tip{margin-bottom:12px;padding:14px 16px;border-radius:18px;font-size:1.0625rem;line-height:1.45;color:var(--on-dark);background:rgba(212,175,55,.1);border:1px solid var(--hair)}
.bud-tip b{display:block;margin-bottom:2px;font-size:.8125rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-300)}

/* === Steps: frame ======================================================= */
.bud-app{padding:16px 0 22px}
.bud-progress{margin-bottom:18px}
.bud-progress ol{display:flex;align-items:flex-start}
.bud-progress li{position:relative;flex:1 1 0;min-width:0;display:flex;justify-content:center}
.bud-progress li+li::before{content:"";position:absolute;z-index:0;top:21px;right:50%;width:100%;height:2px;background:rgba(255,255,255,.16)}
.bud-progress li.is-on::before,.bud-progress li.is-done::before{background:var(--gold)}
.bud-step{position:relative;z-index:1;display:grid;place-items:center;min-width:44px;min-height:44px}
.bud-step b{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-family:var(--display);font-weight:650;font-size:1.125rem;line-height:1;color:var(--on-dark-2);background:#12151d;border:2px solid rgba(255,255,255,.22);transition:background-color .2s,border-color .2s,color .2s,transform .2s}
li.is-done .bud-step b{color:var(--gold-200);background:#241d09;border-color:var(--gold-600)}
li.is-on .bud-step b{color:#1c1503;background:var(--foil);border-color:transparent;transform:scale(1.1);box-shadow:0 10px 26px -10px rgba(212,175,55,.8)}
.bud-welcome{margin:0 0 16px;padding:12px 16px;border-radius:16px;font-size:1rem;font-weight:600;line-height:1.4;color:var(--gold-200);background:rgba(212,175,55,.1);border:1px solid var(--hair)}

/* the gold dot in the row above already says which step this is: here just "Step 2 of 6" and the title */
.bud-head{margin:2px 0 18px}
.bud-num{display:none}
.bud-kicker{margin-bottom:4px;font-size:.8125rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;line-height:1.3;color:var(--on-dark-3)}
.bud-head h2{font-size:clamp(1.875rem,8vw,2.5rem);line-height:1.06;color:var(--gold-300);outline:none}
.bud-lead{margin-top:10px;font-size:1.1875rem;line-height:1.45;color:var(--on-dark)}
.bud-hint{margin-top:10px;font-size:.9375rem;line-height:1.4}
.bud-hint-dark{margin:0 0 12px;font-size:1rem;color:var(--on-dark-2)}
#bud-m-note{margin:10px 0 0}

/* === Boxes to type in =================================================== */
.bud input[type="text"],.bud input[type="tel"],.bud textarea,.bud select{
  width:100%;min-height:58px;padding:14px 16px;border-radius:16px;border:2px solid var(--line-2);font-family:var(--sans);font-size:1.1875rem;font-weight:600;line-height:1.3;color:var(--text);background:var(--paper);
  outline:none;-webkit-appearance:none;appearance:none;transition:border-color .2s,box-shadow .2s,background-color .2s}
.bud input::placeholder,.bud textarea::placeholder{color:#8d919a;font-weight:500}
.bud input[type="text"]:focus,.bud input[type="tel"]:focus,.bud textarea:focus,.bud select:focus{border-color:var(--gold);background:#fff;box-shadow:0 0 0 4px rgba(212,175,55,.28)}
.bud textarea{min-height:110px;resize:vertical}
.bud select{padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a6b1c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.bud label{display:block;margin-bottom:8px;font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--text)}
.bud label small{font-weight:500;color:var(--muted)}
.bud-money{position:relative;flex:1 1 auto;min-width:0}
.bud-money>span{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:1.1875rem;font-weight:800;color:var(--gold-700);pointer-events:none}
.bud .bud-money input{padding-left:34px;font-weight:800;font-variant-numeric:tabular-nums}
.bud-money-lg>span{left:20px;font-family:var(--display);font-size:1.75rem}
.bud .bud-money-lg input{min-height:72px;padding:14px 18px 14px 46px;font-family:var(--display);font-size:2rem;border-radius:20px}

/* === Step 1: the golden rule =========================================== */
/* the one thing this app teaches, as big as the screen allows */
.bud-gold-rule{display:grid;justify-items:center;gap:2px;padding:26px 18px 24px;border-radius:26px;text-align:center;color:#1c1503;background:var(--foil);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 20px 40px -18px rgba(212,175,55,.75)}
.bud-gold-rule span{font-size:1.25rem;font-weight:800;line-height:1.3}
.bud-gold-rule b{font-family:var(--display);font-weight:650;font-size:clamp(4rem,21vw,6.5rem);line-height:.95;letter-spacing:-.04em;white-space:nowrap}
.bud-income{margin-top:14px}
.bud-income label{font-size:1.25rem;line-height:1.3;margin-bottom:12px}
/* the rule in this person's own dollars */
.bud-income .bud-rule-amt{margin-top:14px;padding:14px 16px;border-radius:16px;font-family:var(--display);font-weight:650;font-size:clamp(1.375rem,6vw,1.75rem);line-height:1.2;text-align:center;color:#0a6b4a;background:#e2f6ec}

/* === Step 2: list it ==================================================== */
.bud-block{margin-top:24px}
.bud-block-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-bottom:10px}
.bud-block-head h3{font-size:1.625rem;color:var(--gold-300)}
.bud-total{font-family:var(--display);font-weight:650;font-size:1.625rem;line-height:1;color:#fff;font-variant-numeric:tabular-nums}
.bud-grp{margin-top:12px;padding:0;overflow:hidden}
/* A box you tap: its drawing, its name, an arrow. Once it has numbers, its total shows under the name.
   (the name wrapper steps aside with display:contents, so the name sits in the grid itself) */
.bud-grp-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"tile name chev" "tile total chev";align-content:center;align-items:center;column-gap:12px;row-gap:1px;width:100%;min-height:78px;padding:12px 16px;text-align:left;color:var(--text)}
.bud-grp-head>.bud-tile{grid-area:tile}
.bud-grp-name{display:contents}
.bud-grp-name b{grid-area:name;display:block;min-width:0;font-size:1.1875rem;line-height:1.25;color:var(--text)}
.bud-group-total{grid-area:total;justify-self:start;min-width:0;max-width:100%}
.bud-group-total:empty{display:none}
.bud-grp-chev{grid-area:chev}
.bud-grp-sub{display:block;font-size:.875rem;font-weight:600;line-height:1.35;color:var(--muted)}      /* "(minimums only)" on its own short line */
.bud-group-total{font-family:var(--display);font-weight:650;font-size:1.25rem;font-variant-numeric:tabular-nums;color:var(--good);white-space:nowrap}
.bud-grp-chev{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--gold-700);background:var(--paper-2);transition:transform .25s}
.bud-grp.is-open .bud-grp-chev{transform:rotate(180deg)}
.bud-grp.is-open .bud-grp-head{border-bottom:1px solid var(--line)}
.bud-grp-body{padding:4px 16px 12px}
.bud-grp-in{margin-top:0}
.bud-row{padding:14px 0;border-top:1px solid var(--line)}
.bud-row.is-custom{background:linear-gradient(90deg,rgba(212,175,55,.09),rgba(212,175,55,0))}
.bud-grp-body>.bud-row:first-child{border-top:0}
.bud .bud-row-name{margin-bottom:8px;font-size:1.125rem}
.bud-row-fields{display:flex;align-items:center;gap:8px;min-width:0}
.bud .bud-name{margin-bottom:8px}
/* a line the person added: its name and its Remove button side by side, the amount underneath */
.bud-row-top{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:8px}
.bud .bud-row-top .bud-name{flex:1 1 auto;min-width:0;margin-bottom:0}
.bud .bud-due{flex:0 0 122px;width:122px;padding-left:12px;font-size:1.0625rem;color:var(--text)}
.bud-due-btn{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:16px;color:var(--gold-700);background:var(--paper);border:2px solid var(--line-2)}      /* optional: add the day a bill is due */
.bud-due-btn:hover{border-color:var(--gold)}
.bud-x{display:grid;place-items:center;flex:0 0 52px;width:52px;height:58px;border-radius:16px;color:var(--muted);border:2px solid var(--line-2)}
.bud-x:hover{color:var(--bad);border-color:var(--bad)}
.bud-add{display:inline-flex;align-items:center;gap:8px;min-height:52px;margin-top:6px;padding:10px 16px;border-radius:999px;font-size:1.0625rem;font-weight:800;color:var(--gold-800);background:var(--paper-2);border:2px dashed var(--line-2)}
.bud-add:hover{border-color:var(--gold)}

/* === Step 3: sort it ==================================================== */
.bud-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bud-def{padding:16px}
.bud-def b{display:block;font-size:.875rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-700)}
.bud-def p{margin:6px 0 12px;font-size:1rem;line-height:1.4}
.bud-def strong{display:block;font-family:var(--display);font-weight:650;font-size:clamp(1.5rem,6.6vw,2.125rem);line-height:1.05;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bud-def b+strong{margin-top:8px}
.bud-list{margin-top:12px;padding:4px 18px}
.bud-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:14px 0;border-top:1px solid var(--line)}
.bud-item:first-child{border-top:0}
.bud-item-main{display:flex;flex-direction:column;min-width:0}
.bud-item-main b{font-size:1.125rem;line-height:1.3;overflow-wrap:anywhere}
.bud-item-main span{font-size:1rem;color:var(--muted);font-variant-numeric:tabular-nums}
.bud-seg{display:inline-flex;padding:4px;border-radius:999px;background:var(--paper-2);border:1.5px solid var(--line)}
.bud .bud-seg label{position:relative;margin:0;cursor:pointer}
.bud-seg input{position:absolute;opacity:0;width:1px;height:1px}
.bud-seg span{display:block;padding:13px 18px;border-radius:999px;font-size:1rem;font-weight:800;line-height:1.2;color:var(--muted);transition:background-color .2s,color .2s}
.bud-seg input:checked+span{color:var(--gold-200);background:var(--ink-2)}
.bud-seg input:focus-visible+span{outline:3px solid var(--gold);outline-offset:2px}
.bud-empty{padding:24px 0;text-align:center}
.bud-empty p{margin-bottom:14px;font-size:1.0625rem}
.bud-empty-line{padding:8px 0}

/* === Step 4: add it up ================================================== */
.bud-math{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px}
.bud-math-tile{grid-column:2;display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0;padding:18px 20px;border-radius:20px;background:#fff}
.bud-math-tile span{font-size:.875rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;line-height:1.3;color:var(--muted)}
.bud-math-tile b{font-family:var(--display);font-weight:650;font-size:clamp(1.75rem,8vw,2.5rem);line-height:1.05;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}
.bud-math i{grid-column:1;align-self:center;justify-self:center;font-style:normal;font-family:var(--display);font-weight:650;font-size:2.25rem;line-height:1;color:var(--gold-300)}
.bud-math-result{background:var(--foil)}
.bud-math-result span{color:#3a2c0a}
.bud-math-result.is-good{background:#e2f6ec}
.bud-math-result.is-good b,.bud-math-result.is-good span{color:#0a6b4a}
.bud-math-result.is-bad{background:#fde8e6}
.bud-math-result.is-bad b,.bud-math-result.is-bad span{color:#8f1d16}
.bud-msg{margin-top:14px;padding:16px 18px;border-radius:18px;font-size:1.125rem;font-weight:700;line-height:1.45;color:var(--on-dark-2);background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.16)}
.bud-msg.is-good{color:#0a6b4a;background:#e2f6ec;border-color:#8fd4b7}
.bud-msg.is-bad{color:#8f1d16;background:#fde8e6;border-color:#eeaaa3}
.bud-msg.is-even{color:#4a3808;background:#fff6d9;border-color:#e6d28f}
/* How this budget measures up to the rule (Steps 4 and 5): a bar from 0 to 30% with the 10-20% zone in gold */
.bud-nb{white-space:nowrap}
.bud-rule{margin-top:14px}
.bud-rule h3{font-size:1.375rem;line-height:1.2;color:var(--text)}
.bud-rule-bar{position:relative;height:22px;margin-top:14px;border-radius:11px;overflow:hidden;background:linear-gradient(90deg,var(--paper-2) 0 33.333%,rgba(212,175,55,.55) 33.333% 66.667%,var(--paper-2) 66.667%)}
.bud-rule-zone{position:absolute;z-index:1;left:33.333%;width:33.334%;top:0;bottom:0;border-left:2px solid rgba(18,20,26,.55);border-right:2px solid rgba(18,20,26,.55)}      /* the two edges stay visible over the fill */
.bud-rule-fill{position:relative;display:block;height:100%;min-width:4px;border-radius:11px;background:linear-gradient(90deg,#b08d2a,#e3c24e);transition:width .25s}
.bud-rule-fill.is-in,.bud-rule-fill.is-past{background:linear-gradient(90deg,#0a7a54,#31b98a)}
.bud-rule-fill.is-none{display:none}
.bud-rule-scale{position:relative;height:1.5em;margin-top:4px;font-size:.875rem;font-weight:800;color:var(--muted)}
.bud-rule-scale span{position:absolute;transform:translateX(-50%)}
.bud-rule-scale span:first-child{left:33.333%}
.bud-rule-scale span:last-child{left:66.667%}
.bud-rule .bud-rule-you{margin-top:6px;font-size:1.1875rem;font-weight:800;line-height:1.35;color:var(--text)}
.bud-rule .bud-rule-you.is-in,.bud-rule .bud-rule-you.is-past{color:var(--good)}
.bud-rule .bud-rule-you.is-none{color:var(--bad)}
.bud-rule-tip{margin-top:2px;font-size:1.0625rem;line-height:1.4}

/* === Step 5: cut back =================================================== */
.bud-found{margin-bottom:12px;padding:18px 20px;border-radius:20px;text-align:center;font-family:var(--display);font-weight:650;font-size:clamp(1.375rem,6vw,1.875rem);line-height:1.2;color:var(--on-dark-2);border:2px dashed var(--hair)}
.bud-found.is-on{color:#1c1503;background:var(--foil);border:2px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 18px 36px -16px rgba(212,175,55,.7)}
/* each expense is three short lines: its name and amount / minus, slider, plus / what it was and what that saves */
.bud-cut-item{display:block;padding:16px 0}
.bud-cut-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bud-cut-top b{min-width:0;font-size:1.1875rem;line-height:1.3;overflow-wrap:anywhere}
.bud-cut-top .bud-money{flex:0 0 138px}
.bud-stepper{display:flex;align-items:center;gap:10px;margin-top:10px}
.bud-stepper input[type="range"]{flex:1 1 auto;min-width:0;height:40px;accent-color:var(--gold-600);cursor:pointer}
.bud-pm{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;color:#1c1503;background:var(--foil);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.bud-pm-minus{order:0}
.bud-pm[disabled]{opacity:.3;cursor:default}
.bud-pm-plus{color:var(--text);background:var(--paper-2);box-shadow:none;border:2px solid var(--line-2)}
.bud-cut-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 12px;margin-top:6px;font-size:1rem;font-variant-numeric:tabular-nums}
.bud-was{color:var(--muted)}
.bud-saves{font-weight:800;color:var(--good)}

/* === Step 6: check in =================================================== */
.bud-banner{margin-bottom:12px;padding:18px 20px;border-radius:20px;text-align:center;font-family:var(--display);font-weight:650;font-size:clamp(1.25rem,5.4vw,1.625rem);line-height:1.25;color:#1c1503;background:var(--foil);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 18px 36px -16px rgba(212,175,55,.7)}
/* on a phone: the bill and what was planned on one line, one box for what was spent, the difference under it */
.bud-check-row{display:grid;grid-template-columns:minmax(42%,1fr) minmax(0,auto);align-items:baseline;gap:8px 12px;padding:16px 0;border-top:1px solid var(--line)}
.bud-check-head{display:none}
.bud-check-head+.bud-check-row{border-top:0}
.bud-c-name{grid-column:1;grid-row:1;font-size:1.125rem;line-height:1.3;overflow-wrap:anywhere}
.bud-c-plan{grid-column:2;grid-row:1;text-align:right;font-size:1.0625rem;font-weight:800;font-variant-numeric:tabular-nums}
.bud-c-plan::before,.bud-c-acttotal::before{content:attr(data-label) ": ";font-size:.9375rem;font-weight:600;color:var(--muted)}
.bud-c-act{grid-column:1 / -1;grid-row:2}
.bud-c-diff{grid-column:1 / -1;grid-row:3;text-align:right;font-size:1.0625rem;font-weight:800;line-height:1.3}
.bud-c-diff:empty{display:none}
.bud-c-acttotal{font-size:1.0625rem;font-weight:800;font-variant-numeric:tabular-nums}
.bud-c-acttotal:empty{display:none}
.bud-c-diff.is-good{color:var(--good)}
.bud-c-diff.is-bad{color:var(--bad)}
.bud-c-diff.is-even{color:var(--muted)}
.bud-check-total{border-top:2px solid var(--ink-3)}

/* === Budget sheet (last screen) ========================================= */
/* one big number (what is left each month), then the two that make it, then the money found if any */
.bud-summary{padding:4px 20px}
.bud-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.bud-summary dl>div{display:flex;flex-direction:column;justify-content:flex-end;padding:14px 8px 14px 0;border-top:1px solid var(--line)}      /* numbers line up even when one label takes two lines */
.bud-summary dl>div:nth-child(2){padding-left:16px;border-left:1px solid var(--line)}
.bud-summary dt{font-size:.8125rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;line-height:1.35;color:var(--muted)}
.bud-summary dd{margin-top:4px;font-family:var(--display);font-weight:650;font-size:clamp(1.375rem,6.4vw,1.875rem);line-height:1.1;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bud-summary dl>.bud-s-res{order:-1;grid-column:1 / -1;padding:20px 0 18px;border-top:0;text-align:center}
.bud-s-res dd{font-size:clamp(2.75rem,13vw,4rem);line-height:1}
.bud-summary .bud-s-rule{margin-top:8px;font-size:1rem;font-weight:700;line-height:1.35;color:var(--muted)}
.bud-s-res.is-good dd{color:var(--good)}
.bud-s-res.is-bad dd{color:var(--bad)}
.bud-summary dl>.bud-s-found{grid-column:1 / -1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;padding-right:0}
.bud-s-found dd{margin-top:0;font-size:1.5rem;color:var(--gold-700)}
.bud-sheet{margin-top:12px}
.bud-sheet h3{font-size:1.5rem;color:var(--text)}
.bud-sh-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;padding-bottom:6px;border-bottom:2px solid var(--gold-600)}
.bud-sh-h b{font-family:var(--display);font-weight:650;font-size:1.25rem;color:var(--gold-800)}
.bud-sh-h .bud-link{min-height:40px;padding:6px 2px;font-size:.9375rem;color:var(--gold-700)}
.bud-sh-g{margin-top:12px;font-size:.8125rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.bud-sh-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:1.0625rem}
.bud-sh-row span:first-child{min-width:0;overflow-wrap:anywhere}
.bud-sh-row small{display:block;font-size:.8125rem;color:var(--muted)}
.bud-sh-row b{white-space:nowrap;font-variant-numeric:tabular-nums}
.bud-sh-total{border-bottom:0;font-weight:800}
.bud-sh-total b{font-family:var(--display);font-size:1.25rem}
.bud-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.bud-actions .btn{flex:1 1 150px}
.bud-actions .btn-gold{flex:1 1 100%}
.bud-actions .btn small{font-size:.8em;font-weight:700;opacity:.75}
.bud-cta{margin-top:22px;padding:24px 20px;border-radius:24px;text-align:center;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1.5px solid var(--hair)}
.bud-cta p{margin-bottom:16px;font-family:var(--display);font-weight:600;font-size:clamp(1.25rem,5.4vw,1.625rem);line-height:1.3;color:#fff}
.bud-cta-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.bud-cta-btns .btn{flex:1 1 220px}

/* === Under every screen ================================================= */
/* quiet on purpose: it is there when wanted, and out of the way of the step above it */
.bud-foot{padding:18px 0 22px;border-top:1px solid rgba(255,255,255,.09)}
.bud-privacy{display:flex;align-items:flex-start;gap:8px;font-size:.9375rem;line-height:1.45;color:var(--on-dark-2)}
.bud-privacy .ic{width:18px;height:18px;margin-top:2px;color:var(--gold-300)}
.bud-saved{font-weight:700;color:var(--gold-200)}
.bud-saved.is-bad{color:#ff9d94}
.bud-foot-links{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:2px}
.bud-foot-links .bud-link{min-height:40px;padding:8px 0;font-size:.9375rem;font-weight:600;color:var(--on-dark-2);text-decoration-color:rgba(246,242,231,.4)}
.bud-foot-links .bud-link:hover{color:var(--gold-200)}
/* the start screen already has big "Put this app on my phone" and "Message us" buttons: no second copy under them */
.bud[data-step="0"] .bud-foot-links [data-open],.bud[data-step="0"] #bud-install-open2{display:none}
.bud-disclaimer{margin-top:6px;font-size:.8125rem;line-height:1.5;color:var(--on-dark-3)}
.bud-from{margin-top:8px;font-size:.8125rem;color:var(--on-dark-3)}
.bud-from a{color:var(--on-dark-2);font-weight:700}

/* === Back / Next, always at the bottom of the screen ===================== */
.bud-bottom{position:sticky;bottom:0;z-index:25;padding:10px 0 calc(10px + env(safe-area-inset-bottom));background:rgba(7,8,12,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.12)}
.bud-bottom .bud-wrap{display:flex;gap:10px}
.bud-bottom .btn{white-space:nowrap}
#bud-back{flex:0 0 auto;padding-inline:20px}
#bud-back .ic{transform:rotate(180deg)}
/* the big button may hold a long label ("Ver mi presupuesto"): it takes the room that is left and wraps inside it, never past the screen */
#bud-next{flex:1 1 0;min-width:0;padding-inline:14px;white-space:normal;line-height:1.15;text-align:center}
#bud-next .ic{flex-shrink:0}

/* === Pop-up boxes ======================================================= */
.bud-modal{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:rgba(4,5,7,.78);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);overflow-y:auto}
.bud-modal-box{position:relative;width:min(480px,100%);padding:26px 22px;border-radius:26px;color:var(--text);background:#fff}
.bud-modal-box h3{margin-bottom:8px;font-size:1.625rem;color:var(--text);outline:none}
.bud-modal-box p{font-size:1.0625rem;color:var(--muted)}
.bud-modal-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.bud-modal-btns .btn{flex:1 1 150px}
.bud-sheet-modal{place-items:end center;padding:0}
.bud-sheet-modal .bud-modal-box{width:min(560px,100%);max-height:94vh;max-height:94dvh;overflow-y:auto;padding:26px 20px calc(22px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0}
.bud-close{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:var(--text);background:var(--paper-2)}
.bud-sheet-modal h3{padding-right:52px}
.bud-sheet-lead{margin-bottom:18px}
.bud-sheet-modal label{margin-top:16px}
.bud-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.bud-chip{min-height:46px;padding:10px 16px;border-radius:999px;font-size:1rem;font-weight:700;line-height:1.2;color:var(--text);background:var(--paper);border:2px solid var(--line-2)}
.bud-chip.is-on{color:#1c1503;background:linear-gradient(180deg,#fdf3cf,#f6e3a1);border-color:var(--gold)}
.bud-hp{position:absolute!important;left:-9999px;width:1px!important;height:1px!important;min-height:0!important;opacity:0}
.bud-msg-err{margin-top:14px;padding:13px 16px;border-radius:14px;font-size:1.0625rem;font-weight:700;line-height:1.4;color:#8f1d16!important;background:#fde8e6;border:1.5px solid #eeaaa3}
#bud-msg-send{margin-top:18px}
.bud-fine{margin-top:14px;font-size:.8125rem!important;line-height:1.5;color:var(--muted)}
.bud-fine strong{display:block;margin-bottom:4px;font-size:.9375rem;color:var(--text)}
.bud-fine a{color:var(--gold-700);font-weight:700}
.bud-msg-ok{padding:10px 0 4px;text-align:center}
.bud-msg-ok h3{font-size:2rem}
.bud-msg-ok p{margin:6px 0 22px;font-size:1.1875rem}
#bud-install-now{margin-bottom:8px}
.bud-inst-done{padding:13px 16px;border-radius:14px;font-weight:700;color:#0a6b4a!important;background:#e2f6ec;border:1.5px solid #8fd4b7}
.bud-inst{margin-top:18px;padding:16px;border-radius:20px;background:var(--paper);border:1.5px solid var(--line)}
.bud-inst h4{margin-bottom:10px;font-family:var(--sans);font-size:1.0625rem;font-weight:800;letter-spacing:0;color:var(--gold-800)}
.bud-inst ol{counter-reset:s;display:grid;gap:12px}
.bud-inst-note{margin-top:12px;font-size:.9375rem;line-height:1.45;color:var(--muted)}
/* on a computer (a class looking at a big screen): a code to scan */
.bud-qr{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 22px;margin-top:6px;padding:16px;border-radius:20px;background:var(--paper);border:1.5px solid var(--line)}
.bud-qr img{width:220px;height:220px;border-radius:10px;background:#fff}
.bud-qr img{max-width:100%}
.bud-qr p{flex:1 1 200px;min-width:0;font-size:1.125rem;line-height:1.4;color:var(--text)}
.bud-qr-url{font-weight:800;overflow-wrap:anywhere}      /* the address may break anywhere in a narrow window */
.bud-qr p b{display:block;margin-bottom:6px;font-family:var(--display);font-weight:650;font-size:1.5rem;line-height:1.2}
#bud-remind-add{margin-top:4px;text-decoration:none}
#bud-remind-sheet .bud-link{color:var(--gold-700);font-size:1rem}
.bud-inst li{counter-increment:s;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;font-size:1.0625rem;line-height:1.4;color:var(--text)}
.bud-inst li::before{content:counter(s);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-family:var(--display);font-weight:650;font-size:1.125rem;color:#1c1503;background:var(--foil)}
.bud-inst-ic{display:inline-grid;place-items:center;width:30px;height:30px;margin:0 2px;border-radius:9px;vertical-align:middle;color:var(--text);background:#fff;border:1.5px solid var(--line-2)}

/* === Wider screens ====================================================== */
@media (min-width:700px){
  .bud-why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bud-more{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bud-math{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:10px}
  .bud-math-tile{grid-column:auto;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px}
  .bud-math-tile b{text-align:left;font-size:2.125rem}
  .bud-math i{grid-column:auto}
  .bud-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,330px);align-items:center;gap:8px 14px}
  .bud .bud-row-name,.bud .bud-name,.bud-row-top{margin-bottom:0}
  .bud-grp-head{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"tile nm total chev";row-gap:0}
  .bud-grp-name{display:block;grid-area:nm;min-width:0}
  .bud-group-total{justify-self:end}
  .bud-check-head{display:grid;border-top:0;font-size:.8125rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .bud-check-row{grid-template-columns:minmax(0,1.5fr) 110px 210px minmax(0,1fr);align-items:center}
  .bud-c-name,.bud-c-plan,.bud-c-act,.bud-c-diff{grid-column:auto;grid-row:auto}
  .bud-c-plan,.bud-c-diff{text-align:left}
  .bud-c-diff:empty{display:block}
  .bud-c-plan::before,.bud-c-acttotal::before{content:none}
  .bud-check-head+.bud-check-row{border-top:1px solid var(--line)}
  .bud-sheet-modal{place-items:center;padding:16px}
  .bud-sheet-modal .bud-modal-box{border-radius:28px;padding-bottom:26px}
  .bud-start .btn{width:auto;min-width:300px}
  .bud-hero{padding-top:40px}
  .bud-qr img{width:280px;height:280px}                 /* a class reads it off a big screen */
}

/* === Small phones ======================================================= */
@media (max-width:400px){
  .bud-brand span{font-size:.9375rem}
  .bud-size{width:44px}
  .bud-lang a,.bud-lang span{min-width:40px;padding:0 6px}
  .bud-seg span{padding:13px 14px}
}
@media (max-width:359px){
  .bud-brand span{display:none}
  .bud-step,.bud-step b{min-width:0;width:36px;height:36px;min-height:36px}
  .bud-step b{font-size:1rem}
  .bud-progress li+li::before{top:17px}
  .bud-two,.bud-summary dl{grid-template-columns:minmax(0,1fr)}
  .bud-summary dl>div:nth-child(2){padding-left:0;border-left:0}
  .bud-wrap{padding-inline:14px}
  #bud-back span{display:none}
  .bud-cut-top .bud-money{flex-basis:124px}
  .bud-grp-head{padding-inline:12px;column-gap:10px}
  .bud-grp-name b{font-size:1.0625rem}
}
/* the bigger-text setting on a narrow phone: one column where two would be cramped */
@media (max-width:520px){
  html.bud-big .bud-two,html.bud-big .bud-summary dl{grid-template-columns:minmax(0,1fr)}
  html.bud-big .bud-summary dl>div:nth-child(2){padding-left:0;border-left:0}
  html.bud-big .bud-brand span{display:none}
  html.bud-big #bud-back span{display:none}
  html.bud-big .bud-hero h1{font-size:clamp(1.9rem,11.5vw,4.25rem)}       /* "Presupuesto" must fit a 320px phone */
  html.bud-big .bud-gold-rule b{font-size:clamp(3.1rem,19vw,6.5rem)}        /* and so must "10–20%" */
  html.bud-big .bud-save-ask{grid-template-columns:minmax(0,1fr)}
  html.bud-big .bud-save-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.bud-big .bud-save-other{flex-wrap:wrap}
  html.bud-big .bud-save-other .btn{flex:1 1 100%}
  html.bud-big .bud-grp-head>.bud-tile{display:none}                       /* the words get the room the drawing had */
  html.bud-big .bud-grp-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name chev" "total chev"}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;scroll-behavior:auto!important}
}

/* === Paper =============================================================== */
.bud-print{display:none}
@media print{
  html,html.bud-big{font-size:100%}
  body,.bud{background:#fff!important}
  #bud-root>*:not(#bud-print),.bud-skip{display:none!important}
  #bud-root>#bud-print{display:block!important;padding:0;color:#000;font-family:var(--sans);font-size:10.5pt;line-height:1.4}
  .bud-pt-title{font-family:var(--display);font-weight:650;font-size:22pt;line-height:1.1;color:#000}
  #bud-print p{color:#333}
  .bud-pt-meta{margin:3pt 0 12pt;font-size:9.5pt}
  .bud-pt-h{margin:14pt 0 4pt;padding-bottom:3pt;border-bottom:1.5pt solid #8a6b1c;font-family:var(--display);font-weight:650;font-size:13pt;color:#5c4610;break-after:avoid}
  .bud-pt{width:100%;border-collapse:collapse}
  .bud-pt th,.bud-pt td{padding:3.5pt 6pt 3.5pt 0;border-bottom:.5pt solid #ccc;text-align:left;vertical-align:top;font-weight:400;color:#000}
  .bud-pt thead th{font-size:8pt;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#555}
  .bud-pt td:last-child,.bud-pt thead th:last-child,.bud-pt-out td:nth-last-child(2),.bud-pt-out thead th:nth-last-child(2){text-align:right;padding-right:0}
  .bud-pt-out td:nth-last-child(2),.bud-pt-out thead th:nth-last-child(2){padding-right:10pt}
  .bud-pt tr.is-total th,.bud-pt tr.is-total td{font-weight:700;border-bottom:1pt solid #000}
  .bud-pt tr{break-inside:avoid}
  .bud-pt-sum{max-width:320pt}
  .bud-pt-small{margin-top:10pt;font-size:8pt;line-height:1.45}
}
