/* greenposhq.com — shared stylesheet. System fonts only, no external requests.
   Colours follow the GreenPOS marketing "Editorial" palette (client/src/index.css, .mkt). */

:root {
  --paper: #f7f4ee;
  --card: #fbf9f5;
  --ink: #14201a;
  --muted: #4f5953;
  --hairline: #e4ded3;
  --forest: #1f4d3a;
  --forest-ink: #f7f4ee;
  --brass: #7a5c2e;
  --tint: #eef1ea;
  --note: #f3ede1;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 44rem;
  --wide: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121714;
    --card: #171d19;
    --ink: #ede8df;
    --muted: #b1aba0;
    --hairline: #2a312d;
    --forest: #92b9a0;
    --forest-ink: #121714;
    --brass: #c9ab78;
    --tint: #1a221d;
    --note: #1f2420;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-top: 0.25rem; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; }
.site-nav a:hover { color: var(--forest); text-decoration: underline; }
.site-nav a.nav-cta { background: var(--forest); color: var(--forest-ink); padding: 0.45rem 0.85rem; border-radius: 4px; font-weight: 600; }
.site-nav a.nav-cta:hover { text-decoration: none; opacity: 0.92; }

/* Breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 1.25rem 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li + li::before { content: "/"; margin: 0 0.4rem 0 0.15rem; color: var(--hairline); }
.crumbs a { color: var(--muted); }

/* Article */
.article { max-width: var(--measure); margin: 0 auto; padding: 1.25rem 0 3rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.75rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); line-height: 1.2; margin: 2.75rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.75rem 0 0.5rem; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 0 0 1.25rem; }
.meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 1.5rem; }
p { margin: 0 0 1.05rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin: 0 0 0.45rem; }
li > ul, li > ol { margin-top: 0.45rem; }
strong { font-weight: 650; }
.ui { font-weight: 600; white-space: normal; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--tint); padding: 0.05em 0.3em; border-radius: 3px; overflow-wrap: anywhere; }

/* Boxes */
.note { background: var(--note); border-left: 3px solid var(--brass); padding: 0.85rem 1rem; margin: 0 0 1.5rem; font-size: 0.95rem; border-radius: 0 4px 4px 0; }
.note p:last-child { margin-bottom: 0; }
.callout { background: var(--tint); border: 1px solid var(--hairline); padding: 1rem 1.1rem; margin: 1.5rem 0; border-radius: 4px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 650; margin: 0 0 0.4rem; }

.toc { border: 1px solid var(--hairline); background: var(--card); border-radius: 4px; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; font-size: 0.95rem; }
.toc p { margin: 0 0 0.4rem; font-weight: 650; }
.toc ol { margin: 0; }
.toc li { margin: 0 0 0.2rem; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--hairline); border-radius: 4px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hairline); min-width: 9rem; }
th { font-weight: 650; background: var(--tint); }
tr:last-child td { border-bottom: 0; }

/* Checklist */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--forest); border-radius: 3px; }

/* FAQ */
.faq details { border-top: 1px solid var(--hairline); padding: 0.75rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; font-weight: 650; list-style-position: outside; }
.faq details p { margin: 0.6rem 0 0; }

/* CTA + offer */
.cta { margin: 2.75rem 0 1rem; padding: 1.4rem 1.25rem; background: var(--forest); color: var(--forest-ink); border-radius: 6px; }
.cta h2 { color: var(--forest-ink); border: 0; margin: 0 0 0.5rem; padding: 0; font-size: 1.5rem; }
.cta p { margin: 0 0 1rem; opacity: 0.95; }
.btn { display: inline-block; background: var(--forest-ink); color: var(--forest); font-weight: 650; text-decoration: none; padding: 0.7rem 1.1rem; border-radius: 4px; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.offer { border: 1px solid var(--brass); background: var(--card); border-radius: 6px; padding: 1.1rem 1.25rem; margin: 0 0 2rem; }
.offer-title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.35rem; }
.offer-price { font-size: 1.05rem; margin: 0 0 0.5rem; }
.offer-price s { color: var(--muted); }
.offer small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* Related + hub cards */
.related h2 { margin-top: 2rem; }
.cards { display: grid; grid-template-columns: 1fr; gap: 0.85rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--hairline); background: var(--card); border-radius: 4px; padding: 1rem 1.1rem; margin: 0; }
.card a { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; text-decoration: none; color: var(--ink); }
.card a:hover { color: var(--forest); text-decoration: underline; }
.card p { margin: 0.4rem 0 0; font-size: 0.93rem; color: var(--muted); }
.card .num { display: block; font-family: var(--serif); color: var(--brass); font-size: 0.9rem; margin-bottom: 0.2rem; }

/* Hub hero */
.hero { max-width: var(--measure); margin: 0 auto; padding: 2rem 0 0.5rem; }
@media (min-width: 1024px) { .hero { padding-top: 3rem; } }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 2rem; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { padding-top: 2.25rem; padding-bottom: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-grid h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); border: 0; margin: 0 0 0.75rem; padding: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0 0 0.4rem; }
.foot-grid a { color: var(--ink); }
.foot-grid p { margin: 0 0 0.5rem; }
.foot-base { border-top: 1px solid var(--hairline); margin-top: 1.75rem; padding-top: 1rem; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.foot-base p { margin: 0; }

@media print {
  .site-header, .site-footer, .cta, .offer, .related { display: none; }
  body { background: #fff; color: #000; }
}
