/* MOM-277 long-tail pages — additive only. Loaded after app.css, uses the same tokens,
   so the guide pages read as the same product without restyling the tool. */

.guide-hero{padding:42px 0 8px}
.kicker{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin:0 0 14px}
.kicker::before{content:"";width:22px;height:2px;background:var(--accent);border-radius:2px}
.guide-hero h1{max-width:25ch;font-size:clamp(1.95rem,4.6vw,3rem);line-height:1.06;letter-spacing:-.022em;margin:0 0 16px}
.guide-hero .sub{font-size:18px;max-width:64ch;margin:0 0 22px}
.cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 14px}
.cta-row .btn{flex:0 1 auto}
.cta-row .aside{font-size:14px;color:var(--muted);margin:0}
.guide-hero .trust{border-top:1px solid var(--line);padding-top:16px;margin-top:24px}

/* The product shot is a screenshot, not an embedded app: give it a head bar that says so and
   links to the real converter, so a buyer is never invited to click a picture. */
.shot-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}
.shot-head .tag{font-size:11.5px;letter-spacing:.04em;text-transform:uppercase}
.shot-head a{font-size:14px;font-weight:600;color:var(--accent);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.shot-head a:hover{text-decoration:underline}
.head-link{font-size:14px;font-weight:600;color:var(--accent);text-decoration:none;padding:10px 2px;min-height:44px;display:inline-flex;align-items:center}
.head-link:hover{text-decoration:underline}

.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:24px 0 8px}
.fact{background:#fff;padding:16px 18px}
.fact > b{display:block;font-size:17px;letter-spacing:-.01em;margin:0 0 4px}
.fact span{font-size:14px;color:var(--muted);line-height:1.5}
@media(max-width:700px){.facts{grid-template-columns:1fr}}

.prose{max-width:70ch}
.prose h2{font-size:23px;line-height:1.25;letter-spacing:-.012em;margin:34px 0 10px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:17px;margin:22px 0 6px}
.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:22px}
.prose li{margin:7px 0}
.prose li b{font-weight:600}
.prose .tight li{margin:4px 0}
.prose a{color:var(--accent)}
.lede{font-size:18px;color:var(--ink)}

.callout{border-left:3px solid var(--accent);background:#F4F8F5;border-radius:0 10px 10px 0;padding:14px 18px;margin:20px 0}
.callout p{margin:0;font-size:15.5px}
.callout b{font-weight:600}
.callout.warn{border-left-color:#B4762A;background:#FBF6EC}
.callout .label{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}

.steps.numbered{counter-reset:s;display:block;margin:18px 0 6px;padding:0;list-style:none}
.steps.numbered li{counter-increment:s;position:relative;padding:0 0 16px 44px;margin:0;border-left:1px solid var(--line);margin-left:14px}
.steps.numbered li:last-child{border-left:1px solid transparent;padding-bottom:0}
.steps.numbered li::before{content:counter(s);position:absolute;left:-14px;top:0;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.steps.numbered > li > b{display:block;font-size:16.5px;margin:2px 0 4px}
.steps.numbered p{margin:0;color:var(--muted);font-size:15px;max-width:60ch}

/* D-2 (MOM-335): this wrapper had overflow:hidden, so at 390 and 320 px the content table (349–365 px
   wide, because app.css keeps the first column on one line) was cut mid-word instead of being readable.
   It is a scroll container now — a longer future cell can never be silently cropped — and at phone
   widths the cells wrap and the padding tightens so the table fits without scrolling at all. */
.sample{border:1px solid var(--line);border-radius:10px;overflow-x:auto;margin:16px 0 18px;background:#fff}
.sample:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sample table{font-size:13.5px}
.sample th,.sample td{padding:9px 12px}
.sample caption{caption-side:bottom;text-align:left;padding:9px 12px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
@media(max-width:560px){
  /* The two-column facts table does not survive a 240–310 px content box as a grid: at 320 px every
     cell wraps to three or four lines and the label/value relationship is lost. Below 560 px each row
     becomes a labelled block instead — same text, same order, no horizontal scrolling. */
  .sample table{font-size:13.5px;display:block}
  .sample thead{display:none}
  .sample tbody{display:block}
  .sample tr{display:block;padding:11px 12px;border-bottom:1px solid var(--line)}
  .sample tr:last-child{border-bottom:0}
  .sample th,.sample td{display:block;padding:0;border-bottom:0;white-space:normal}
  .sample td:first-child{font-weight:600;margin:0 0 3px}
}
.mono-cell{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}

.srcs{margin:14px 0 0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.srcs li{padding:9px 0;border-top:1px solid var(--line)}
.srcs li:first-child{border-top:0}
.srcs a{color:var(--accent);word-break:break-word}

.related{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline}
.related a{font-weight:600;color:var(--accent)}

/* Links introduced by this change: the home by-format list, the guide-page caption links and
   the two proof links in the service block. Scoped to what MOM-277/MOM-298 add so inherited
   site links keep their current styling. */
#by-format a,.proof figcaption a,#service .note a[href="/sample.qbo"],#service .note a[href="/qbo-import-checklist.pdf"]{color:var(--accent);text-underline-offset:2px}
#by-format a:hover,.proof figcaption a:hover,#service .note a[href="/sample.qbo"]:hover,#service .note a[href="/qbo-import-checklist.pdf"]:hover{text-decoration-thickness:2px}
#by-format a{font-weight:600}

footer .foot-links{margin-top:8px}
