/* Merchfinch brand styles for the public pages only (landing, privacy, DPA). The embedded app uses Polaris and never
   loads this file. Values come from the design system's tokens (docs/brand/system/project/tokens.json). */
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

html, body { margin: 0; }
.mf {
  --goldfinch: #ffc21a; --goldfinch-strong: #f0ae00; --on-goldfinch: #1b1a17;
  --brand-ink: #1b1a17; --on-brand-ink: #fff8e6;
  --surface: #ffffff; --surface-paper: #fff8e6; --surface-raised: #ffffff;
  --ink: #1b1a17; --ink-muted: #5e584c; --link: #8a5a00;
  --border: #e6dfcf; --border-strong: #8a8273; --focus: #1b1a17;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(27,26,23,0.08), 0 4px 12px rgba(27,26,23,0.06);
  --font-display: Poppins, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  min-height: 100vh; margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 24px;
}
.mf *, .mf *::before, .mf *::after { box-sizing: border-box; }
.mf a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.mf a:focus-visible, .mf .mf-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.mf-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--space-6); }
.mf-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.mf-header .mf-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 72px; }
.mf-header img { height: 32px; width: auto; display: block; }
/* The logo link: 44px tall for a finger, inside the 72px header. */
.mf-header .mf-wrap > a:first-child { padding: 6px 0; }
.mf-nav { display: flex; gap: var(--space-6); align-items: center; font-size: 14px; line-height: 20px; }
.mf-nav a { color: var(--ink); text-decoration: none; }
.mf-nav a:hover { text-decoration: underline; }

.mf-display, .mf h1, .mf h2, .mf h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; }
.mf-display { font-size: 56px; line-height: 60px; letter-spacing: -1px; }
.mf h1 { font-size: 40px; line-height: 48px; letter-spacing: -0.5px; }
.mf h2 { font-size: 28px; line-height: 36px; }
.mf h3 { font-size: 20px; line-height: 28px; }
.mf p { margin: 0; }
.mf-muted { color: var(--ink-muted); }
.mf-small { font-size: 14px; line-height: 20px; }

.mf-button {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface-raised);
  color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
}
.mf a.mf-button { text-decoration: none; color: var(--ink); }
.mf-button:hover { background: var(--surface-paper); }
.mf .mf-button--primary { background: var(--goldfinch); border-color: var(--goldfinch); color: var(--on-goldfinch); }
.mf .mf-button--primary:hover { background: var(--goldfinch-strong); border-color: var(--goldfinch-strong); }
/* The App Store button before the listing has an address (D-033): a label, not a link. */
.mf .mf-button--soon, .mf .mf-button--soon:hover { background: transparent; border-style: dashed; color: var(--ink-muted); cursor: default; }

.mf-hero { background: var(--surface-paper); padding: var(--space-16) 0; overflow: hidden; }
.mf-hero .mf-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: center; }
.mf-hero p { margin-top: var(--space-4); font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 30em; }
.mf-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); align-items: center; }

.mf-section { padding: var(--space-16) 0; }
.mf-section > .mf-wrap > h2 { margin-bottom: var(--space-8); }
.mf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.mf-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.mf-card h3 { margin-bottom: var(--space-2); }
.mf-card p { color: var(--ink-muted); }
.mf-paper { background: var(--surface-paper); }
.mf-plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.mf-plan { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); }
.mf-plan h3 { display: flex; align-items: center; gap: var(--space-2); }
.mf-price { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; margin: var(--space-3) 0; }
.mf-plan ul { margin: 0; padding-left: 1.2em; color: var(--ink-muted); }
.mf-badge { display: inline-flex; padding: 2px var(--space-2); border-radius: var(--radius-pill); background: var(--goldfinch); color: var(--on-goldfinch); font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 600; }

.mf-footer { border-top: 1px solid var(--border); padding: var(--space-8) 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mf-footer .mf-wrap { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.mf-footer img { height: 24px; width: auto; display: block; }
/* Each link is 44px tall for a finger. The negative margin gives the space back, so one row of links sits where
   it did; wrapped rows are 24px apart instead of 16px. */
.mf-footer nav { display: flex; gap: 0 var(--space-4); flex-wrap: wrap; margin: -12px 0; }
.mf-footer nav a { padding: 12px 0; }

/* The landing page (app/routes/_index/route.tsx). The hero's grid places the demo's card (mf-try) and its stage
   (mf-stage), which DemoStage renders side by side, beside the intro and the call to action. */
.mf-demo-hero { background: var(--surface-paper); padding: var(--space-12) 0 var(--space-16); }
.mf-demo-hero .mf-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 468px; column-gap: var(--space-12); align-items: start;
  grid-template-areas: "intro stage" "try stage" "cta stage"; grid-template-rows: auto auto 1fr;
}
.mf-demo-intro { grid-area: intro; }
.mf-demo-cta { grid-area: cta; }
.mf-demo-hero h1 { font-size: 52px; line-height: 56px; letter-spacing: -1px; margin-top: var(--space-6); }
.mf .mf-lede { margin-top: var(--space-4); font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 29em; }

/* The fieldset that disables the card until the page's script runs; it adds nothing to the card's look. */
.mf-try-set { grid-area: try; border: 0; padding: 0; margin: 0; min-width: 0; }
.mf-try { margin-top: var(--space-8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); max-width: 460px; }
.mf-try h2 { font-size: 20px; line-height: 28px; }
.mf .mf-try > p { color: var(--ink-muted); font-size: 14px; line-height: 20px; margin-top: var(--space-1); }
.mf-field { margin-top: var(--space-4); }
.mf-field > label, .mf-field > span { display: block; font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: var(--space-2); }
.mf-input { width: 100%; height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font: inherit; color: var(--ink); background: var(--surface); }
.mf-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mf-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.mf-seg button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); padding: 10px 16px; cursor: pointer; }
.mf-seg button + button { border-left: 1px solid var(--border-strong); }
.mf-seg button[aria-pressed="true"] { background: var(--brand-ink); color: var(--on-brand-ink); }
.mf-seg button:focus-visible, .mf-swatch:focus-visible, .mf-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mf-swatches { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.mf-swatch { appearance: none; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.mf-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--brand-ink); }
.mf-custom { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mf-custom input { width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.mf-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-8); }
.mf .mf-free { margin-top: var(--space-3); color: var(--ink-muted); font-size: 14px; line-height: 20px; }

/* The stage: the document on a Goldfinch sheet. This is the one loud thing on the page. */
.mf-stage { grid-area: stage; background: var(--goldfinch); border-radius: 28px; padding: var(--space-4) var(--space-6); position: sticky; top: var(--space-6); }
.mf-stage-tabs { min-height: 42px; margin-bottom: var(--space-4); }
.mf-stage .mf-seg { background: rgba(255,255,255,.55); border-color: var(--brand-ink); }
.mf-stage .mf-seg button + button { border-left-color: var(--brand-ink); }
.mf-sheet { display: block; width: 100%; height: auto; aspect-ratio: 910 / 1287; background: #fff; border-radius: 6px; box-shadow: 0 2px 4px rgba(27,26,23,.12), 0 18px 40px rgba(27,26,23,.22); transition: opacity .18s ease; }
.mf-stage--loading .mf-sheet { opacity: .55; }
/* The live demo draws its PDF on a canvas laid exactly over the picture, which keeps the box. */
.mf-sheet-box { position: relative; }
.mf-sheet-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mf-sheet-box canvas[hidden] { display: none; }
.mf-caption { margin-top: var(--space-3); min-height: 20px; font-size: 14px; line-height: 20px; color: var(--on-goldfinch); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.mf-link { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--on-goldfinch); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* The demo's message row is always there, so a message doesn't move the page. */
.mf .mf-stage-msg { margin-top: var(--space-2); min-height: 18px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--on-goldfinch); }
/* Read by screen readers, not shown. */
.mf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mf-video .mf-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.mf .mf-video p { color: var(--ink-muted); margin-top: var(--space-3); }
.mf-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--brand-ink); }

.mf-prints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); align-items: end; }
.mf-print figure { margin: 0 0 var(--space-4); height: 330px; position: relative; }
.mf-print figure img { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; background: #fff; border-radius: 6px; box-shadow: var(--shadow-card); }
.mf-print figure img.mf-print-label { height: 62%; left: auto; right: 0; box-shadow: 0 2px 4px rgba(27,26,23,.12), 0 10px 24px rgba(27,26,23,.18); }
.mf .mf-print p { color: var(--ink-muted); margin-top: var(--space-2); }

.mf-setup .mf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-12); align-items: center; }
.mf-setup ol { list-style: none; margin: var(--space-6) 0 0; padding: 0; counter-reset: s; display: grid; gap: var(--space-4); }
.mf-setup li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); }
.mf-setup li::before { content: counter(s); width: 40px; height: 40px; border-radius: 999px; background: var(--goldfinch); color: var(--on-goldfinch); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.mf-setup li p { color: var(--ink-muted); }
.mf-setup img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-card); display: block; }

.mf-faq details { border-top: 1px solid var(--border); padding: var(--space-4) 0; max-width: 760px; }
.mf-faq details:last-of-type { border-bottom: 1px solid var(--border); }
.mf-faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 26px; }
.mf .mf-faq details p { color: var(--ink-muted); margin-top: var(--space-2); max-width: 44em; }
.mf .mf-faq .mf-faq-more { margin-top: var(--space-6); }

.mf-close { background: var(--goldfinch); padding: var(--space-16) 0; }
.mf-close .mf-wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.mf-close h2 { font-size: 36px; line-height: 44px; letter-spacing: -0.5px; max-width: 14em; }
.mf .mf-close .mf-button--soon, .mf .mf-close .mf-button--soon:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

@media (max-width: 900px) {
  .mf-demo-hero .mf-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "try" "cta" "stage"; grid-template-rows: none; }
  .mf-video .mf-wrap, .mf-setup .mf-wrap, .mf-prints { grid-template-columns: minmax(0, 1fr); }
  .mf-demo-hero h1 { font-size: 38px; line-height: 44px; }
  .mf-stage { position: static; max-width: 468px; margin-top: var(--space-12); }
  .mf-print figure { height: 280px; }
  .mf-close h2 { font-size: 28px; line-height: 36px; }
}
/* On a phone the caption's two parts stack and the message row holds two lines, so neither "Made just now by the
   app." nor the longest message wraps into new space when a document is drawn. The caption keeps both rows' height
   before the Download button mounts, so the page doesn't move when its script runs. */
@media (max-width: 420px) {
  .mf-caption { flex-direction: column; align-items: flex-start; gap: var(--space-1); min-height: 44px; }
  .mf .mf-stage-msg { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .mf-sheet { transition: none; } }

/* merchfinch.com (public/merchfinch/index.html): the parent brand and its apps. */
.mf-tiles { position: relative; height: 320px; }
.mf-tiles img { position: absolute; width: 200px; height: 200px; border-radius: 44px; box-shadow: var(--shadow-card); }
.mf-tiles img:nth-child(1) { left: 40px; top: 20px; transform: rotate(-6deg); }
.mf-tiles img:nth-child(2) { left: 210px; top: 100px; transform: rotate(5deg); }
.mf-apps { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.mf-app { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); align-items: start; }
.mf-app > img { width: 72px; height: 72px; border-radius: 16px; display: block; }
.mf-app h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.mf-app p { margin: 0 0 var(--space-3); color: var(--ink-muted); }
.mf-app a { color: var(--link); text-decoration: underline; font-weight: 600; }
/* The card's own link, 44px tall for a finger; the negative margin keeps it where it was. */
.mf-app div > a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.mf-badge--quiet { background: transparent; border: 1px solid var(--border-strong); color: var(--ink); }
/* The live app's card on merchfinch.com (D-036): each app has its own row, and the live one shows the top of a real invoice, which
   links to the demo. The sheet is cut off at the bottom of its goldfinch stage, like a page coming out of a printer. */
.mf-app--live { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 380px); }
.mf-app p { max-width: 60ch; }
.mf-app-figure { margin: 0 0 0 var(--space-2); }
.mf-app-shot { display: block; height: 264px; overflow: hidden; background: var(--goldfinch); border-radius: 20px; padding: var(--space-6) var(--space-6) 0; }
.mf-app-shot img { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px 6px 0 0; box-shadow: 0 2px 4px rgba(27,26,23,.12), 0 18px 40px rgba(27,26,23,.22); }
.mf .mf-app-shot:focus-visible { border-radius: 20px; }
.mf-app-figure figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Long-form pages: privacy and DPA. */
.mf-doc { max-width: 760px; margin: 0 auto; padding: var(--space-12) var(--space-6) var(--space-16); }
.mf-doc h1 { margin-bottom: var(--space-2); }
.mf-doc h2 { font-size: 20px; line-height: 28px; margin: var(--space-8) 0 var(--space-2); }
.mf-doc p, .mf-doc li { line-height: 26px; }
.mf-doc p + p { margin-top: var(--space-3); }
.mf-doc h3 { font-size: 16px; line-height: 24px; margin: var(--space-6) 0 var(--space-1); }
.mf-doc ul, .mf-doc ol { padding-left: 1.2em; }
.mf-doc li + li { margin-top: var(--space-2); }
.mf-doc table { border-collapse: collapse; width: 100%; margin: var(--space-3) 0; font-size: 14px; line-height: 20px; }
.mf-doc th, .mf-doc td { border: 1px solid var(--border); padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; }

@media (max-width: 800px) {
  .mf-display { font-size: 40px; line-height: 44px; }
  .mf-hero { padding: var(--space-12) 0; }
  .mf-hero .mf-wrap, .mf-cards, .mf-plans, .mf-apps { grid-template-columns: 1fr; }
  .mf-tiles { height: 220px; }
  .mf-app--live { grid-template-columns: 72px minmax(0, 1fr); }
  .mf-app-figure { grid-column: 1 / -1; margin: var(--space-2) 0 0; }
  .mf-tiles img { width: 140px; height: 140px; border-radius: 31px; }
  .mf-tiles img:nth-child(1) { left: 0; }
  .mf-tiles img:nth-child(2) { left: 120px; top: 70px; }
  .mf-nav { display: none; }
}

/* Guides and About on merchfinch.com (D-037). Generated pages: app/lib/guides, written by
   scripts/build-site.mjs. The g- classes are used nowhere else. */
.mf-nav a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--goldfinch-strong); }
.g-head { background: var(--surface-paper); padding: var(--space-12) 0 var(--space-12); }
/* 44px tall for a finger; the negative margin keeps it where it was. */
.g-head .g-back { display: inline-block; padding: 12px 0; margin: -12px 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.mf .g-head h1 { margin-top: var(--space-3); font-size: 48px; line-height: 54px; letter-spacing: -0.8px; max-width: 17em; text-wrap: balance; }
.g-head .g-standfirst { margin-top: var(--space-4); font-size: 20px; line-height: 30px; color: var(--ink); max-width: 34em; text-wrap: pretty; }
.g-head .g-meta { margin-top: var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: var(--space-16); align-items: start; padding-top: var(--space-12); padding-bottom: var(--space-16); }
.g-body { font-size: 17px; line-height: 28px; max-width: 680px; }
.mf .g-body > * + * { margin-top: var(--space-4); }
.mf .g-body li > p + p { margin-top: var(--space-2); }
.mf .g-body h2 { margin-top: var(--space-12); font-size: 28px; line-height: 36px; scroll-margin-top: var(--space-6); }
.mf .g-body h3 { margin-top: var(--space-8); font-size: 20px; line-height: 28px; }
.g-body ul, .g-body ol { padding-left: 1.3em; margin-bottom: 0; }
.g-body li + li { margin-top: var(--space-2); }
/* A label in the Shopify admin, marked the way you would mark it on paper. */
.g-body .g-ui { font-weight: 600; background: linear-gradient(transparent 55%, #ffe08a 55%, #ffe08a 92%, transparent 92%); padding: 0 1px; }
.g-disclosure { font-size: 14px; line-height: 22px; color: var(--ink-muted); border-left: 3px solid var(--goldfinch); padding-left: var(--space-4); }

.g-choose { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; margin-top: var(--space-6); }
.g-choose thead th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); padding: 0 var(--space-4) var(--space-2) 0; border-bottom: 2px solid var(--ink); }
.g-choose tbody th, .g-choose td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.g-choose tbody th { font-weight: 600; width: 38%; }
.g-choose td { font-weight: 400; }
.g-choose tr.g-here th, .g-choose tr.g-here td { background: var(--surface-paper); }
.g-choose tr.g-here th { box-shadow: inset 3px 0 0 var(--goldfinch); padding-left: var(--space-3); }
.g-choose .g-jump { display: block; font-size: 13px; line-height: 18px; font-weight: 600; margin-top: 2px; }

.g-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.g-steps li { counter-increment: step; position: relative; padding-left: 44px; }
.g-steps li + li { margin-top: var(--space-3); }
.g-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-ink); color: var(--on-brand-ink); font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 28px; text-align: center; }

.g-note { background: var(--surface-paper); border-radius: var(--radius-lg); padding: var(--space-6); margin-top: var(--space-6); }
.mf .g-body .g-note h3 { margin-top: 0; font-size: 18px; line-height: 26px; }
.mf .g-note > * + * { margin-top: var(--space-3); }

/* Where a guide mentions the app: said plainly to be ours, with a real document. */
.g-app { margin-top: var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(0, 1fr) 232px; overflow: hidden; }
.g-app-text { padding: var(--space-6); font-size: 16px; line-height: 24px; }
.g-app-text .g-ours { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.mf .g-body .g-app-text h3 { margin-top: var(--space-1); font-size: 20px; line-height: 28px; }
.g-app-text p { margin-top: var(--space-2); color: var(--ink-muted); }
.g-app-text .g-app-links { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 0 var(--space-6); align-items: center; font-weight: 600; color: var(--ink); }
.g-app-text .g-app-links a { padding: 10px 0; }
.g-app-text .g-soon { font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.g-app-shot { position: relative; background: var(--goldfinch); overflow: hidden; min-height: 200px; }
.g-app-shot img { position: absolute; top: var(--space-6); left: var(--space-6); width: calc(100% - 2 * var(--space-6)); height: auto; border-radius: 4px 4px 0 0; box-shadow: 0 2px 4px rgba(27,26,23,.12), 0 14px 30px rgba(27,26,23,.22); }

.g-faq h3 + p { margin-top: var(--space-2); }
.g-more { list-style: none; padding-left: 0 !important; }
.g-more li { border-top: 1px solid var(--border); padding: var(--space-3) 0; margin: 0 !important; }
.g-more li:last-child { border-bottom: 1px solid var(--border); }
.g-more a { font-weight: 600; }
/* The facts page about an app (merchfinch.com/apps/invoices) and the line that points to it from a guide. */
.g-facts { margin-top: var(--space-6); font-size: 15px; color: var(--ink-muted); }
.g-facts a { display: inline-block; padding: 10px 0; font-weight: 600; }
.g-head .g-app-links { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 0 var(--space-6); align-items: center; font-weight: 600; color: var(--ink); }
.g-head .g-app-links a { padding: 10px 0; }
.g-head .g-soon { font-weight: 400; font-size: 14px; color: var(--ink-muted); }

.g-toc { position: sticky; top: var(--space-6); font-size: 14px; line-height: 20px; }
.g-toc p { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.g-toc ol { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-left: 2px solid var(--border); }
.mf .g-toc li a { display: block; padding: 6px 0 6px var(--space-4); color: var(--ink-muted); text-decoration: none; }
.mf .g-toc li a:hover { color: var(--ink); text-decoration: underline; }

/* The list of guides. */
.mf-wrap.g-list { padding-top: var(--space-12); padding-bottom: var(--space-16); }
/* About: the guide's column without the side list. */
.mf-wrap.g-plain { padding-top: var(--space-12); padding-bottom: var(--space-16); }
.g-group + .g-group { margin-top: var(--space-12); }
.mf .g-group h2 { font-size: 22px; line-height: 30px; padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.mf .g-row h3 { font-size: 22px; line-height: 30px; }
.mf .g-row h3 a { color: var(--ink); text-decoration-color: var(--goldfinch-strong); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.g-row p { margin-top: var(--space-2); color: var(--ink-muted); max-width: 40em; }
.g-row .g-when { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: right; }

@media (max-width: 860px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: var(--space-8); }
  .g-toc { display: none; }
  .mf .g-head h1 { font-size: 32px; line-height: 38px; letter-spacing: -0.4px; }
  .g-head { padding: var(--space-8) 0; }
  .g-head .g-standfirst { font-size: 18px; line-height: 27px; }
  .g-app { grid-template-columns: 1fr; }
  .g-app-shot { min-height: 190px; }
  /* The chooser as stacked blocks. It stays a table to a screen reader: the roles are written in the markup
     (app/lib/guides/parts.tsx), and the column headings are hidden from the eye only, not removed. The short labels
     before each cell are for the eye, so they are given an empty spoken form where a browser supports one. */
  .g-choose, .g-choose tbody, .g-choose tr, .g-choose tbody th, .g-choose td { display: block; width: 100% !important; }
  .g-choose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .g-choose tr { border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
  .g-choose tbody th, .g-choose td { border: 0; padding: 0 0 2px; }
  .g-choose td[data-l]::before { content: attr(data-l) ": "; content: attr(data-l) ": " / ""; color: var(--ink-muted); font-size: 13px; }
  .g-choose tr.g-here { padding-left: var(--space-3); box-shadow: inset 3px 0 0 var(--goldfinch); background: var(--surface-paper); }
  .g-choose tr.g-here th, .g-choose tr.g-here td { background: none; }
  .g-choose tr.g-here th { box-shadow: none; padding-left: 0; }
  /* A finger needs about 44px; the space around the link grows by a few pixels to make room. */
  .g-choose .g-jump { padding: 13px 0; margin: -8px 0 -10px; }
  .g-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .g-row .g-when { text-align: left; }
}

.mf .g-body .g-app { margin-top: var(--space-8); }
.mf .g-body .g-note, .mf .g-body .g-choose { margin-top: var(--space-6); }
