/* Forged Solutions · sheet examples (orders W6a, W6b) and two phone fixes. Loaded after site.css. */

/* ── The frame ── */
.xmp { margin: 22px 0 26px; padding: 20px 18px 18px; min-width: 0; border: 1px solid rgba(209,173,106,.22); border-radius: 18px; background: linear-gradient(180deg, rgba(255,106,43,.07), rgba(255,255,255,0) 120px), #0b0c0f; box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset; }
.xmp--bare { margin: 18px 0 24px; padding: 0; border: 0; background: none; box-shadow: none; }
.xmp__k { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.xmp__demo { padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,106,43,.55); color: var(--ember); letter-spacing: .1em; }
.xmp__t { margin: 12px 0 6px; font: 600 21px/1.15 var(--f-cap); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.xmp__line { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.xmp__body { min-width: 0; }
.xmp__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; }
.xmp--bare .xmp__go { margin-top: 0; }
.xmp__go .btn { min-height: 44px; }
.xmp__also { font-size: 14px; color: var(--muted); }
.xmp__lnk { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 14px/1 var(--f-body); cursor: pointer; transition: border-color .25s, color .25s; }
.xmp__lnk:hover, .xmp__lnk:focus-visible { border-color: var(--brass); color: var(--brass-2); }

/* ── Fields ── */
.xf { display: grid; gap: 6px; min-width: 0; }
.xf__l { font: 500 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.xf__box { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); min-width: 0; }
.xf__box:focus-within { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(209,173,106,.14); }
.xf__box i { font-style: normal; color: var(--muted); }
.xf input { flex: 1; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--f-body); font-variant-numeric: tabular-nums; outline: none; }
.xf input:disabled { cursor: not-allowed; opacity: 1; }
.xf input::placeholder { color: rgba(236,230,218,.34); -webkit-text-fill-color: rgba(236,230,218,.34); }

/* ── FORGEDcommerce: tax and profit ── */
.xc__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.xc__zips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.xc__zips button { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--ink-2); font: 500 13px/1 var(--f-mono); cursor: pointer; transition: border-color .25s; }
.xc__zips button:hover, .xc__zips button:focus-visible { border-color: var(--brass); }
.xc__zips b { font-weight: 500; color: var(--brass-2); }
.xc__note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.xc__out dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.xc__r { padding: 11px 12px; background: #0e0f12; min-width: 0; }
.xc__r:nth-child(3) { grid-column: 1 / -1; }
.xc__r dt { font: 500 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.xc__r dd { margin: 5px 0 0; font: 600 22px/1.1 var(--f-cap); color: var(--ink); font-variant-numeric: tabular-nums; }
.xc__r.is-tot dd { color: var(--brass-2); }
.xc__r:nth-child(3) dd { color: var(--ember); }
.xc__math { margin: 10px 0 0; font: 400 13px/1.5 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.xc__err { margin: 14px 0 0; font-size: 15px; color: var(--ember); }

/* ── FORGEDgateway: card and Bitcoin ── */
.xg { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 12px; }
.xg__pane { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0e0f12; }
.xg__h { margin: 0; font: 500 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.xg__amt { margin: 0; font: 600 26px/1.1 var(--f-cap); color: var(--ink); font-variant-numeric: tabular-nums; }
.xg__amt span { display: block; margin-top: 5px; font: 500 14px/1.2 var(--f-mono); color: var(--ink-2); }
.xg__hosted { display: grid; gap: 10px; padding: 12px; border: 1px dashed rgba(209,173,106,.4); border-radius: 12px; background: rgba(209,173,106,.035); }
.xg__hosted .xf__box { padding: 0 10px; }
.xg__cap { margin: 0; font-size: 13px; line-height: 1.35; color: var(--brass-2); }
.xg__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.xg__fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.xg__qr { justify-self: center; width: 136px; height: 136px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(209,173,106,.3), 0 10px 30px -12px rgba(0,0,0,.9); }
.xg__exp { margin: 0; text-align: center; font: 500 15px/1.2 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.xg__exp.is-paid { color: #7fdc9a; }
.xg__pay { width: 100%; justify-content: center; white-space: normal; text-align: center; padding-inline: 12px; }
.xg__st { margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ── FORGEDtools: one live calculator ── */
.xt__slot { min-width: 0; max-width: 100%; min-height: 120px; }
.xt__slot.tools__slot { border: 1px solid var(--line); border-radius: 14px; background: var(--plate); }
.xt__slot > * { display: block; max-width: 100%; --tk-sticky-top: 0px; }
.xt__load { margin: 0; padding: 48px 16px; text-align: center; font: 500 13px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.xt__more { margin: 16px 0 8px; font-size: 14px; color: var(--ink-2); }
.xt__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Sheet: keep the picture in view beside a longer text column; scroll inside on phones ── */
@media (min-width: 1101px) {
  .sheet__media { align-items: start; }
  .sheet__media > img, .sheet__media > .sheet__glyph { position: sticky; top: 26px; }
}
.sheet__media:has(.sheet__glyph) { overflow: clip; } /* hidden made it a scroll box, which stopped the sticky glyph */
.sheet__in { overscroll-behavior: contain; }
@media (max-width: 1100px) { /* single column: let it shrink to the sheet so nothing scrolls sideways */
  .sheet__body { grid-template-columns: minmax(0, 1fr); }
  .sheet__text { min-width: 0; overflow-wrap: break-word; }
}
@media (max-width: 640px) {
  .sheet, .sheet__in { max-height: 100vh; max-height: 100svh; }
  .xmp { margin-left: -8px; margin-right: -8px; padding: 18px 14px 16px; }
  .xmp--bare { margin-left: 0; margin-right: 0; padding: 0; }
  .xmp__line { font-size: 15px; }
}

/* ── Phone fixes (W6a item 7) ── */
/* (a) Ask Forged waits until the hero buttons have scrolled away (site.js sets html.hero-on). */
@media all {
  html.hero-on .ask:not(:has(.ask__panel:not([hidden]))),
  html.busy-on .ask:not(:has(.ask__panel:not([hidden]))) { opacity: 0; visibility: hidden; translate: 0 16px; pointer-events: none; }
}
/* (b) The fixed grain overlay (body::before, an SVG noise tile) drew a grey square at the top left in
   WebKit on phones. Phones and touch screens go without it. */
@media (max-width: 1100px), (pointer: coarse) {
  body::before { content: none; }
}
