/* Invoice Kit: tradie look. Charcoal + hi-vis yellow, chunky system sans, big tap targets. */
:root {
  --bg: #f1f1ed;
  --paper: #ffffff;
  --ink: #111315;
  --char: #17191b;
  --char-2: #25282b;
  --muted: #4d5358;
  --line: #d6d6cf;
  --yellow: #ffc700;
  --yellow-d: #b78f00;
  --cta: #ffc700;
  --cta-hover: #ffd633;
  --link: #111315;
  --link-hover: #5a4500;
  --trust: #0f5a3f;
  --trust-soft: #e3f1ea;
  --warn-bg: #fff6d6;
  --warn-border: #d6a800;
  --max: 46rem;
  --wide: 70rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: var(--sans);
  --shadow: 0 6px 0 rgba(17, 19, 21, 0.12);
  --radius: 14px;
  --tap: 3rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem; z-index: 40; font-weight: 800; }
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap { width: min(var(--wide), calc(100% - 1.5rem)); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--char);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
  padding: 0.55rem 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; min-height: var(--tap); }
.logo-mark { width: 2.2rem; height: 2.2rem; flex: none; }
.logo-word { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

#site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
#site-nav a {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: 0.7rem 0.9rem; border-radius: 10px; min-height: var(--tap);
  display: inline-flex; align-items: center;
}
#site-nav a:hover { background: var(--char-2); color: #fff; }
#site-nav a[aria-current="page"] { background: var(--char-2); box-shadow: inset 0 -4px 0 var(--yellow); }
#site-nav a.nav-pro { color: var(--yellow); }

.nav-toggle {
  display: none; width: var(--tap); height: var(--tap);
  border: 2px solid #fff; background: transparent; border-radius: 10px; padding: 0; cursor: pointer;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  display: block; width: 1.25rem; height: 3px; background: #fff; margin: 0 auto; position: relative; content: ""; border-radius: 2px;
}
.nav-toggle span:before { position: absolute; top: -7px; left: 0; }
.nav-toggle span:after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span:before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:after { top: 0; transform: rotate(-45deg); }
body.page-invoice-generator .header-cta { display: none; }

@media (min-width: 721px) {
  .header-top { display: contents; }
  .logo { order: 1; }
  #site-nav { order: 2; flex: 1; justify-content: center; }
  .header-actions { order: 3; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.35rem; padding: 0.7rem 1.4rem; border-radius: 12px;
  font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.15;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer; text-align: center;
  transition: transform 0.05s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { background: var(--cta-hover); color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: #f3efe0; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding-left: 0.8rem; padding-right: 0.8rem; text-decoration: underline; text-decoration-color: var(--yellow-d); text-underline-offset: 3px; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.btn-small { font-size: 0.97rem; min-height: 3rem; padding: 0.55rem 1rem; }
.btn-big { font-size: 1.3rem; min-height: 4.1rem; padding: 0.9rem 1.8rem; box-shadow: 0 5px 0 var(--ink); }
.on-dark .btn-primary, .site-header .btn-primary { border-color: #000; box-shadow: 0 4px 0 #000; }
.on-dark .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid #0a64ff; outline-offset: 2px;
}

main { padding: 0 0 4rem; }
.page-pad { padding-top: 1.6rem; }
main.page-home { width: 100%; max-width: none; padding: 0 0 3.5rem; }
.prose { max-width: var(--max); }
.page-tools .prose, .page-invoice-generator .prose, .page-quote-generator .prose, .page-guides .prose, .page-invoice-template .prose { max-width: var(--wide); }
.gen-intro { max-width: 46rem; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.02em; font-weight: 900; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.45rem, 4vw, 1.85rem); margin: 2.2rem 0 0.7rem; padding-top: 0.2rem; }
h2:before { content: ""; display: block; width: 2.6rem; height: 6px; background: var(--yellow); margin-bottom: 0.55rem; border-radius: 2px; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
p, li { color: var(--ink); }
.byline, .meta { color: var(--muted); font-size: 0.92rem; }
.byline { margin: 0 0 1.2rem; }

a { color: var(--link); text-decoration: underline; text-decoration-color: var(--yellow-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-color: var(--ink); }

.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.4rem 0; }
.prose blockquote { margin: 1.2rem 0; padding: 0.4rem 0 0.4rem 1rem; border-left: 6px solid var(--yellow); color: var(--muted); background: #fff; border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: #fff; margin: 1rem 0 1.5rem; border: 2px solid var(--ink); }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--char); color: #fff; font-weight: 800; }
.prose tr:nth-child(even) td { background: #f7f7f3; }
.prose code, footer code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: #fff1b8; padding: 0.05em 0.3em; border-radius: 4px; }
.prose pre { overflow: auto; background: var(--char); color: #f6f1e8; padding: 1rem; border-radius: 10px; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; }

/* Lists of pages (cards) */
ul.page-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
ul.page-index > li { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.95rem 1.05rem; margin: 0; box-shadow: var(--shadow); }
.page-index p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.page-index a { text-decoration: none; }
.page-index a:hover strong { text-decoration: underline; text-decoration-color: var(--yellow-d); text-decoration-thickness: 3px; }
.pill { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--ink); color: var(--yellow); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.more, .catalogue { margin-top: 2.5rem; }
.catalogue h2, .more h2 { margin-top: 0; }
.more ul.page-index { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.5rem; }
.more ul.page-index > li { padding: 0.55rem 0.8rem; box-shadow: none; border-width: 1px; }
.more .page-index p, .more .pill, .more .meta { display: none; }
.catalogue { width: min(var(--wide), calc(100% - 1.5rem)); margin-left: auto; margin-right: auto; }

/* Hero (home) */
.hero { background: var(--char); color: #fff; padding: 2rem 0 0; position: relative; }
.hero:after { content: ""; display: block; height: 18px; margin-top: 2.2rem; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, #111 18px 36px); }
.hero-inner { width: min(var(--wide), calc(100% - 1.5rem)); margin: 0 auto; }
.hero-kicker { display: inline-block; margin: 0 0 0.9rem; padding: 0.3rem 0.7rem; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 6px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.02; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: -0.03em; max-width: 14ch; }
.hero h1 .h1-big { display: block; }
.hero h1 .h1-sub { display: block; margin-top: 0.8rem; font-size: clamp(0.95rem, 3.2vw, 1.2rem); line-height: 1.3; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--yellow); max-width: 34rem; }
.hero-lead { font-size: 1.15rem; color: #d9dcde; margin: 0 0 1.5rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: #d9dcde; font-size: 0.97rem; font-weight: 600; }
.trust-row li { color: #d9dcde; position: relative; padding-left: 1.4rem; margin: 0; }
.trust-row li:before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.9rem; height: 0.5rem; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg); }

.section { width: min(var(--wide), calc(100% - 1.5rem)); margin: 2rem auto 0; }
.section > h2:first-child { margin-top: 0; }

/* Hero art: decorative mock invoice, wide screens only */
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-inner { position: relative; }
  .hero-art { display: block; position: absolute; right: 1rem; top: 1.5rem; width: 20rem; transform: rotate(4deg); }
  .mock-inv { background: #fff; color: var(--ink); border-radius: 8px; border-top: 10px solid var(--yellow); padding: 1.2rem 1.3rem 1.4rem; box-shadow: 0 12px 0 rgba(255,199,0,0.25), 0 20px 40px rgba(0,0,0,0.5); display: grid; gap: 0.6rem; position: relative; font-size: 0.95rem; }
  .mock-inv b { font-size: 1.15rem; font-weight: 900; letter-spacing: 0.02em; }
  .mock-inv i { display: block; height: 3px; background: var(--ink); }
  .mock-inv span { border-bottom: 1px dashed #bbb; padding-bottom: 0.4rem; color: #333; }
  .mock-inv em { font-style: normal; font-weight: 900; font-size: 1.1rem; display: flex; justify-content: space-between; }
  .mock-inv u { text-decoration: none; }
  .mock-inv strong { position: absolute; right: 1rem; bottom: 3.2rem; border: 4px solid #0f7a3f; color: #0f7a3f; padding: 0.1rem 0.6rem; font-size: 1.5rem; font-weight: 900; transform: rotate(-12deg); border-radius: 6px; letter-spacing: 0.06em; opacity: 0.9; }
}

/* Tiles */
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.6rem 0 0; }
a.tile {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.15rem; align-items: center;
  background: #fff; color: var(--ink); text-decoration: none; border: 3px solid var(--ink);
  border-radius: var(--radius); padding: 1.1rem 1.1rem; box-shadow: 0 6px 0 var(--ink); min-height: 6rem;
}
a.tile:hover { background: #fffbe5; color: var(--ink); }
a.tile:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }
.tile-icon { grid-row: span 2; width: 3.4rem; height: 3.4rem; background: var(--yellow); border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); }
.tile-icon svg { width: 2rem; height: 2rem; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.tile-title:after { content: " \2192"; }
.tile-text { color: var(--muted); font-size: 0.97rem; line-height: 1.35; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } a.tile { grid-template-columns: 1fr; row-gap: 0.4rem; padding: 1.3rem; } .tile-icon { grid-row: auto; } }

/* Trade chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.chips li { margin: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1.1rem; background: var(--char); color: #fff; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--char); }
.chips a:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.chips a.chip-all { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.trade-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.2rem 0 2rem; }
.trade-grid a { display: block; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; box-shadow: var(--shadow); min-height: 6rem; }
.trade-grid a:hover { background: #fffbe5; }
.trade-grid strong { display: block; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; }
.trade-grid strong:after { content: " \2192"; }
.trade-grid span { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 0 1rem; margin: 0 0 0.6rem; }
.faq summary { cursor: pointer; font-weight: 800; min-height: 3.2rem; display: flex; align-items: center; list-style: none; padding: 0.6rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; margin-left: auto; font-size: 1.6rem; font-weight: 900; color: var(--yellow-d); padding-left: 0.8rem; }
.faq details[open] summary:after { content: "\2212"; }
.faq details p { margin: 0 0 0.9rem; }

/* Boxes */
.promo-tools { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 0 0 1.4rem; color: var(--muted); }
.aff-box { background: #fff; border: 2px solid var(--line); border-left: 8px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.15rem 1.1rem; margin: 1.5rem 0; max-width: 46rem; }
.aff-box .aff-label { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.aff-box p { margin: 0 0 0.7rem; }
.aff-box .aff-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.aff-box.is-highlighted { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Generator */
.generator { margin-top: 0.4rem; }
.gen-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; position: sticky; top: 4.6rem; z-index: 8; background: rgba(241, 241, 237, 0.96); padding: 0.65rem 0; backdrop-filter: blur(8px); }
.save-status { margin: 0; color: var(--muted); font-size: 0.9rem; }
.gen-warnings { background: var(--warn-bg); border: 2px solid var(--warn-border); border-radius: 12px; padding: 0.85rem 1rem; margin: 0 0 1rem; }
.gen-warnings p { margin: 0 0 0.4rem; }
.gen-warnings ul { margin: 0; }
.gen-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr); gap: 1.4rem; align-items: start; }
.gen-form fieldset { border: 2px solid var(--ink); background: #fff; border-radius: var(--radius); margin: 0 0 1rem; padding: 1rem 1rem 1.1rem; }
.gen-form legend { font-weight: 900; font-size: 1.15rem; padding: 0.15rem 0.7rem; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; }
.field { margin: 0.8rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field label, .gst-toggle > label { display: block; font-weight: 800; margin-bottom: 0.25rem; }
.field-hint { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.88rem; }
.gst-toggle { margin-top: 0.5rem; }
.gst-toggle input, .gst-choice input, .check-cell input { width: 1.5rem; height: 1.5rem; accent-color: var(--ink); margin-right: 0.5rem; vertical-align: middle; }
.gst-toggle > label { display: inline; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; min-height: 3rem; padding: 0.6rem 0.75rem;
  border: 2px solid #8a8f94; border-radius: 10px; background: #fff; color: var(--ink);
}
input[type="file"] { padding: 0.55rem; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 5rem; }
.line-table-wrap { overflow-x: auto; margin-top: 0.6rem; }
.line-editor { width: 100%; border-collapse: collapse; }
.line-editor th { text-align: left; font-size: 0.82rem; color: var(--muted); padding: 0.2rem 0.3rem; }
.line-editor td { padding: 0.3rem; vertical-align: middle; }
.line-editor .line-desc { min-width: 10rem; }
.line-editor .line-qty { width: 4.6rem; }
.line-editor .line-price { width: 6.5rem; }
.check-cell { display: flex; justify-content: center; }

.preview-label { margin: 0 0 0.7rem; font-size: 1.05rem; }
.invoice-sheet { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--yellow); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 1.4rem 1.3rem 1.6rem; color: var(--ink); min-height: 20rem; }
.sheet-top { display: flex; justify-content: space-between; gap: 1rem; }
.sheet-logo { max-width: 8rem; max-height: 4.2rem; object-fit: contain; display: block; margin-bottom: 0.6rem; }
.sheet-biz { font-weight: 800; margin: 0 0 0.15rem; }
.sheet-abn, .sheet-small { margin: 0 0 0.15rem; color: var(--muted); font-size: 0.92rem; white-space: pre-wrap; }
.sheet-heading { font-size: 1.7rem; margin: 0 0 0.6rem; letter-spacing: -0.03em; text-align: right; text-transform: uppercase; }
.sheet-meta dl { margin: 0; }
.sheet-meta div { display: flex; justify-content: flex-end; gap: 0.7rem; margin: 0.1rem 0; font-size: 0.92rem; }
.sheet-meta dt { color: var(--muted); }
.sheet-meta dd { margin: 0; font-weight: 700; }
.sheet-to { margin: 1.2rem 0 1rem; }
.sheet-to h3, .sheet-pay h3, .sheet-notes h3 { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; }
.sheet-lines { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1rem; font-size: 0.95rem; }
.sheet-lines th { text-align: left; border-bottom: 2px solid var(--ink); padding: 0.4rem 0.3rem; color: var(--ink); font-size: 0.8rem; text-transform: uppercase; }
.sheet-lines td { border-bottom: 1px solid #e6e6e0; padding: 0.45rem 0.3rem; vertical-align: top; }
.sheet-lines th:nth-child(2), .sheet-lines td:nth-child(2),
.sheet-lines th:nth-child(3), .sheet-lines td:nth-child(3),
.sheet-lines th:nth-child(4), .sheet-lines td:nth-child(4) { text-align: right; white-space: nowrap; }
.sheet-totals { display: flex; flex-direction: column; align-items: flex-end; }
.sheet-totals table { border-collapse: collapse; min-width: 16rem; }
.sheet-totals th, .sheet-totals td { padding: 0.25rem 0 0.25rem 1rem; }
.sheet-totals th { font-weight: 500; text-align: left; color: var(--muted); }
.sheet-totals td { text-align: right; }
.sheet-total th, .sheet-total td { font-weight: 900; font-size: 1.05rem; color: var(--ink); padding-top: 0.5rem; }
.sheet-pay, .sheet-notes { margin-top: 1.1rem; }
.sheet-disclaimer { margin-top: 0.6rem; font-style: italic; }
.gen-form .gst-mode { margin-top: 0.5rem; }
.gen-form .gst-mode-legend { margin-bottom: 0.35rem; }

/* Footer */
.site-footer { background: var(--char); color: #c4c8cb; padding: 2rem 0 3rem; font-size: 0.92rem; border-top: 4px solid var(--yellow); }
.site-footer p { max-width: 52rem; color: #c4c8cb; }
.site-footer a { color: #fff; text-decoration-color: var(--yellow); }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; margin: 0 0 1.1rem; }
.site-footer .footer-nav a { font-weight: 700; padding: 0.55rem 0.7rem; min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; background: var(--char-2); border-radius: 8px; color: #fff; }
.site-footer .footer-#site-nav a:hover { background: var(--yellow); color: var(--ink); }
.site-footer .footer-contact { margin: 0 0 1rem; color: #fff; font-weight: 700; }

.crumbs { margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: #9a9a92; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* GST calculator */
.gst-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr); gap: 1.4rem; align-items: start; margin: 1.2rem 0 1.6rem; }
.gst-mode { border: 0; margin: 0; padding: 0; }
.gst-mode-legend { font-size: 1rem; font-weight: 800; padding: 0; margin: 0 0 0.45rem; }
.gst-choice { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin: 0.35rem 0; min-height: 2.75rem; }
.gst-result { padding: 1.2rem 1.2rem 1.3rem; }
.gst-result-heading { margin: 0 0 0.8rem; }
.gst-result .sheet-totals-table { width: 100%; border-collapse: collapse; }
.gst-result .sheet-totals-table th, .gst-result .sheet-totals-table td { padding: 0.4rem 0; border-bottom: 1px solid #e6e6e0; }
.gst-result .sheet-totals-table th { text-align: left; font-weight: 500; color: var(--muted); }
.gst-result .sheet-totals-table td { text-align: right; font-weight: 700; }
.gst-result .sheet-total th, .gst-result .sheet-total td { border-bottom: 0; font-weight: 900; color: var(--ink); padding-top: 0.7rem; font-size: 1.05rem; }
.gst-result .aff-actions { margin: 1rem 0 0; }
.late-reminder { margin-top: 1rem; }
.late-reminder label { display: block; font-weight: 800; margin-bottom: 0.25rem; }
.late-reminder textarea { min-height: 7rem; font-size: 0.95rem; }
.late-reminder .aff-actions { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* 404 */
.not-found { text-align: center; max-width: 36rem; margin: 0 auto; padding: 2.5rem 0 3.5rem; }
.not-found h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0.4rem 0 0.85rem; text-transform: uppercase; }
.not-found .hero-kicker { color: var(--ink); }
.not-found p { color: var(--muted); margin: 0 0 1.4rem; }
.not-found .hero-actions { justify-content: center; }

/* Growth blocks */
.cta-strip { background: var(--char); color: #fff; border-radius: var(--radius); padding: 0.9rem 1rem; margin: 0 0 1.4rem; border-left: 8px solid var(--yellow); }
.cta-strip p { margin: 0; color: #fff; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.cta-strip strong { flex: 1 1 100%; font-size: 1.1rem; font-weight: 900; }
.cta-strip .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.cta-strip .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.cta-strip .btn-primary { border-color: #000; box-shadow: 0 3px 0 #000; }
.aff-inline { font-size: 0.97rem; }
.aff-inline p:last-child { margin-bottom: 0; }
.related { margin: 2rem 0 1rem; }
.dl-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1rem 0 1.5rem; }
.dl-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.dl-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.dl-card p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.95rem; }
.dl-card .dl-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.big-cta { margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Pro pack promo */
.pro-box { background: #fff; border: 3px solid var(--ink); border-left: 10px solid var(--yellow); border-radius: var(--radius); padding: 0.9rem 1.1rem 1rem; margin: 0 0 1.4rem; max-width: 46rem; }
.pro-box p { margin: 0 0 0.6rem; }
.pro-box p:last-child { margin-bottom: 0; }
.pro-box h2 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.pro-box h2:before { display: none; }
.pro-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pro-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.home-pro { width: min(var(--wide), calc(100% - 1.5rem)); margin: 2rem auto 0; }
.home-pro .pro-box { max-width: none; background: var(--yellow); border: 3px solid var(--ink); border-left-width: 3px; box-shadow: 0 6px 0 var(--ink); padding: 1.3rem 1.3rem 1.4rem; }
.home-pro .pro-label { color: var(--ink); background: #fff; display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; border: 2px solid var(--ink); }
.home-pro .pro-box p { color: var(--ink); font-size: 1.05rem; max-width: 46rem; }
.home-pro .pro-box h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); text-transform: uppercase; }
.home-pro .pro-price { font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin: 0.3rem 0 0.7rem; }
.home-pro .pro-price span { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.home-pro .btn-primary { background: var(--ink); color: var(--yellow); box-shadow: 0 4px 0 rgba(0,0,0,0.35); }
.home-pro .btn-primary:hover { background: #000; color: #fff; }
.home-pro a { text-decoration-color: var(--ink); }
.buy-card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.2rem 0 1.8rem; box-shadow: 0 6px 0 var(--yellow); }
.buy-card p { margin: 0 0 0.6rem; }
.buy-price { font-size: 1.7rem; line-height: 1.2; }
.buy-price span { display: block; font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.buy-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 0 !important; }
.buy-actions { margin: 0.8rem 0; }
.pack-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1rem 0 1.8rem; }
.pack-gallery figure { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.6rem; }
.pack-gallery img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
.pack-gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* Trade pages: example invoices */
.ex-invoices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 1rem 0 1.5rem; }
.ex-card { background: #fff; border: 2px solid var(--ink); border-top: 8px solid var(--yellow); border-radius: 8px; padding: 0.9rem 1rem 1rem; }
.ex-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; text-transform: uppercase; }
.ex-card p { margin: 0.2rem 0; font-size: 0.95rem; }
.ex-card .ex-total { font-size: 1.15rem; font-weight: 900; border-top: 2px solid var(--ink); padding-top: 0.4rem; margin-top: 0.5rem; display: flex; justify-content: space-between; }
.ex-card .ex-row { display: flex; justify-content: space-between; }
.note-box { background: var(--warn-bg); border: 2px solid var(--warn-border); border-radius: 12px; padding: 0.8rem 1rem; margin: 1rem 0; }
.note-box p { margin: 0.2rem 0; }
.trade-hero { background: var(--char); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.2rem 1.4rem; margin: 0 0 1.4rem; border-bottom: 10px solid var(--yellow); }
.trade-hero h1 { color: #fff; text-transform: uppercase; margin-bottom: 0.5rem; }
.trade-hero p { color: #d9dcde; margin: 0 0 1rem; }
.trade-hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.trade-hero .hero-actions { margin-top: 0.4rem; }
.trade-hero .crumbs, .trade-hero .crumbs [aria-current="page"], .trade-hero .crumbs a { color: #c4c8cb; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--char); border-top: 3px solid var(--yellow); }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 5rem; }
  body.page-invoice-generator .sticky-cta, body.page-quote-generator .sticky-cta { display: none; }
  body.page-invoice-generator, body.page-quote-generator { padding-bottom: 0; }
}

@media (max-width: 900px) {
  .gst-calc { grid-template-columns: 1fr; }
  .gen-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .header-inner { gap: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  #site-nav { display: none; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0 0.5rem; width: 100%; }
  #site-nav.is-open { display: flex; }
  #site-nav a { font-size: 1.15rem; padding: 0.85rem 1rem; min-height: 3.4rem; background: var(--char-2); }
  #site-nav a.nav-pro { background: var(--yellow); color: var(--ink); }
  body.nav-open { overflow: hidden; }
  .hero { padding-top: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .prose table { display: block; overflow-x: auto; font-size: 0.9rem; }
  .prose th, .prose td { padding: 0.5rem 0.5rem; }
  .prose td:first-child { min-width: 9.5rem; }
  .gen-toolbar { top: 4.3rem; }
  .gen-toolbar .btn { flex: 1 1 8rem; }
  .line-editor thead { display: none; }
  .line-editor, .line-editor tbody, .line-editor tr, .line-editor td { display: block; width: 100%; }
  .line-editor tr { border: 2px solid var(--line); border-radius: 10px; padding: 0.5rem; margin: 0 0 0.6rem; }
  .line-editor td { padding: 0.35rem 0; }
  .line-editor td:before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.15rem; font-weight: 700; }
  .line-editor .line-qty, .line-editor .line-price, .line-editor .line-desc { width: 100%; min-width: 0; }
  .sheet-top { flex-direction: column; }
  .sheet-heading { text-align: left; }
  .sheet-meta div { justify-content: flex-start; }
  .cta-strip .btn { width: 100%; }
  .big-cta .btn, .buy-actions .btn, .pro-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media print {
  body { background: #fff !important; padding: 0 !important; }
  .site-header, .site-footer, .skip, .gen-toolbar, .gen-form, .gen-warnings, .promo-tools, .aff-box, .more, .faq, .byline, .preview-label, .hero, .catalogue, .sticky-cta,
  .cta-strip, .related, .dl-grid, .pro-box, .buy-card, .home-pro, .tiles, .trade-hero,
  .page-invoice-generator article > h1, .page-invoice-generator article > p, .page-invoice-generator article > h2,
  .page-quote-generator article > h1, .page-quote-generator article > p, .page-quote-generator article > h2 { display: none !important; }
  main, .wrap, .prose, .gen-layout, .gen-preview-col, .generator, article { display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #invoice-sheet, #quote-sheet { box-shadow: none; border: 0; border-radius: 0; padding: 0; width: auto; }
  @page { size: A4; margin: 12mm; }
}
