/* The "Buy me a coffee" buttons (written in by scripts/build-support.js): one just under the page header,
   the card just above the "Related tools" strip, and the thank-you note /support.js shows after a
   download or a print. Each button is a plain link to our Razorpay payment page, drawn in the style of
   Razorpay's own payment button; nothing here loads from Razorpay. */
.mh-support{ box-sizing:border-box; width:100%; max-width:var(--mh-w,760px); margin:10px auto 26px; padding:0 16px; container-type:inline-size;
  font-family:"Hanken Grotesk",system-ui,-apple-system,sans-serif; line-height:1.5; text-align:left; color:#221a12; }
.mh-support[hidden]{ display:none !important; }
.mh-support *, .mh-nudge *, .mh-toppay *{ box-sizing:border-box; }
.mh-support-card{ display:flex; align-items:flex-start; gap:18px; padding:18px 20px; border-radius:18px;
  background:#fffbe8; border:1.5px solid #efdf9c; border-left:5px solid #f2c200; box-shadow:0 10px 24px -18px rgba(34,26,18,.55); }
.mh-support-cup{ flex:none; width:68px; height:68px; margin-top:2px; overflow:visible; }
.mh-support-cup .c{ transform:translate(2.6px,2.4px); }
.mh-support-cup .c *{ fill:#ffdd00; stroke:none; }
.mh-support-cup .i *{ fill:none; stroke:#16233b; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.mh-support-steam{ opacity:.7; }
.mh-support-tx{ min-width:0; flex:1; }
.mh-support h2{ margin:0 0 4px; font-family:"Fraunces",Georgia,serif; font-weight:800; font-size:21px; line-height:1.3; letter-spacing:-.01em; color:#221a12; }
.mh-support p{ margin:0; font-size:15px; color:#4a3e30; }
.mh-support-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin:14px 0 8px; }
.mh-support-why{ font-size:14px; font-weight:700; color:#0e386d !important; text-decoration:none; }
.mh-support-why:hover{ text-decoration:underline; }
.mh-support p.mh-support-fine{ font-size:12.5px; color:#6f6152; }
.mh-support p.mh-support-soon{ margin-top:12px; font-weight:700; color:#6f6152; }
.mh-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* the button, in the style of Razorpay's own payment button */
.mh-rzp{ display:inline-flex; align-items:center; justify-content:center; gap:12px; height:52px; padding:0 22px 0 18px; border-radius:10px;
  background:#072654; color:#fff !important; text-decoration:none !important; white-space:nowrap;
  font-family:"Hanken Grotesk",system-ui,-apple-system,sans-serif; line-height:1.15;
  box-shadow:0 6px 14px -8px rgba(7,38,84,.7); transition:transform .15s, background .15s; }
.mh-rzp:hover{ background:#0b3270; transform:translateY(-2px); }
.mh-rzp:active{ transform:translateY(1px); }
.mh-rzp:focus-visible{ outline:3px solid #f2c200; outline-offset:3px; }
.mh-rzp svg{ flex:none; width:20px; height:22px; }
.mh-rzp > span:not(.mh-sr){ display:flex; flex-direction:column; gap:3px; text-align:left; }
.mh-rzp b{ font-size:18px; font-weight:800; letter-spacing:-.005em; color:#fff; }
.mh-rzp small{ font-size:11px; font-weight:500; letter-spacing:.01em; color:rgba(255,255,255,.72); }
.mh-rzp-embed{ display:inline-flex; margin:0; }

/* phones: the mug sits smaller and the card's button runs the full width */
@container (max-width:470px){
  .mh-support-card{ gap:12px; padding:14px 14px 12px; }
  .mh-support-cup{ width:48px; height:48px; }
  .mh-support-row .mh-rzp{ flex:1 1 100%; }
}

/* the button just under the page header: larger on a computer, small on a phone */
.mh-toppay{ display:flex; justify-content:center; padding:14px 16px 4px; }
.mh-toppay .mh-rzp{ height:60px; }
@media (max-width:480px){
  .mh-toppay{ padding-top:10px; }
  .mh-toppay .mh-rzp{ height:40px; padding:0 14px 0 12px; gap:8px; border-radius:7px; }
  .mh-toppay .mh-rzp svg{ width:14px; height:16px; }
  .mh-toppay .mh-rzp > span:not(.mh-sr){ gap:1px; }
  .mh-toppay .mh-rzp b{ font-size:13.5px; }
  .mh-toppay .mh-rzp small{ font-size:8.5px; }
}

/* the thank-you note after a download or a print */
.mh-nudge{ position:fixed; z-index:9000; right:20px; bottom:20px; width:min(380px, calc(100vw - 32px)); padding:16px 44px 16px 18px; border-radius:16px;
  background:#fffbe8; border:1.5px solid #efdf9c; border-left:5px solid #f2c200; box-shadow:0 20px 44px -18px rgba(34,26,18,.5);
  font-family:"Hanken Grotesk",system-ui,-apple-system,sans-serif; line-height:1.45; color:#221a12; text-align:left;
  opacity:0; transform:translateY(16px); transition:opacity .25s, transform .3s cubic-bezier(.2,.9,.3,1.2); }
.mh-nudge.on{ opacity:1; transform:none; }
.mh-nudge p{ margin:0 0 12px; font-size:15px; color:#4a3e30; }
.mh-nudge p b{ color:#221a12; }
.mh-nudge .mh-rzp{ height:48px; }
.mh-nudge-x{ position:absolute; top:8px; right:8px; width:32px; height:32px; border:0; border-radius:50%; background:transparent; color:#6f6152;
  font:400 24px/1 system-ui,sans-serif; cursor:pointer; }
.mh-nudge-x:hover{ background:#f3e7b8; color:#221a12; }
@media (max-width:600px){
  .mh-nudge{ left:16px; right:16px; top:12px; bottom:auto; width:auto; transform:translateY(-16px); }
  .mh-nudge .mh-rzp{ width:100%; }
}

/* on a dark page (support.js adds is-dark when the page behind the buttons is dark) */
.mh-support.is-dark .mh-support-card, .mh-nudge.is-dark{ background:#24211a; border-color:#4a4226; border-left-color:#f2c200; box-shadow:0 10px 24px -18px rgba(0,0,0,.8); }
.mh-support.is-dark h2, .mh-nudge.is-dark p b{ color:#f4efe3; }
.mh-support.is-dark p, .mh-nudge.is-dark p{ color:#d3cab8; }
.mh-support.is-dark p.mh-support-fine, .mh-support.is-dark p.mh-support-soon{ color:#a99f8c; }
.mh-support.is-dark .mh-support-why{ color:#9fc3f5 !important; }
.mh-support.is-dark .mh-support-cup .i *{ stroke:#ece6d8; }
.mh-nudge.is-dark .mh-nudge-x{ color:#d3cab8; }
.mh-nudge.is-dark .mh-nudge-x:hover{ background:#3a3424; color:#fff; }
.is-dark .mh-rzp, .mh-toppay.is-dark .mh-rzp{ box-shadow:0 0 0 1px rgba(255,255,255,.28); }

/* someone opening an invitation or a scratch card they were sent sees that, not a request for a tip;
   an instrument on its full-screen stage keeps the whole screen; an installed app shows only the app */
body.viewing .mh-support, body.is-view .mh-support, html.mh-stage-on .mh-support, .is-app .mh-support,
body.viewing .mh-toppay, body.is-view .mh-toppay, html.mh-stage-on .mh-toppay, .is-app .mh-toppay{ display:none !important; }
@media (display-mode:standalone){ .mh-support, .mh-nudge, .mh-toppay{ display:none !important; } }
@media (prefers-reduced-motion:reduce){ .mh-rzp, .mh-nudge{ transition:none; } .mh-rzp:hover, .mh-rzp:active{ transform:none; } }
@media print{ .mh-support, .mh-nudge, .mh-toppay{ display:none !important; } }
