@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* SiteGuard web — shared by siteguardforms.com.au and siteguardsystems.com.au.
   One family in two widths: Barlow Condensed for headings and the register
   rows, Barlow for reading. Hi-vis orange is used as a fill (buttons, the
   rule under the header, status marks), never as small text on white. */
:root {
  --paper: #FFFFFF;
  --site: #F3F3F1;
  --rule: #D9D8D4;
  --rule-strong: #B9B7B1;
  --ink: #2B2A2F;
  --ink-2: #4A484F;
  --muted: #6B6971;
  --hivis: #FB811C;
  --hivis-deep: #A84F06;
  --hivis-wash: #FFF1E4;
  --ok: #1F6B3A;
  --ok-wash: #E8F4EC;
  --warn-wash: #FFF6D6;
  --f-cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--f-body);
}
img { max-width: 100%; height: auto; }
a { color: var(--hivis-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--f-cond); color: var(--ink); line-height: 1.05; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.small { font-size: 0.9rem; color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header: charcoal bar, hi-vis rule beneath, like site barricade tape. */
.site-header { background: var(--ink); color: #fff; border-bottom: 4px solid var(--hivis); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 760px) { .brand img { height: 38px; } }
.brand-name { font: 600 1.45rem/1 var(--f-cond); letter-spacing: 0.01em; }
.brand-name b { color: var(--hivis); font-weight: 700; }
.nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; align-items: center; padding: 0.5rem 0; }
.nav a { color: #fff; text-decoration: none; font: 500 1.05rem/1 var(--f-cond); padding: 0.45rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--hivis); color: #fff; }
.nav .cart-link { background: var(--hivis); color: var(--ink); padding: 0.45rem 0.8rem; border: 0; font-weight: 700; }
.nav .cart-link:hover { background: #fff; color: var(--ink); }
.nav .cart-link.is-soon, .nav .cart-link.is-soon:hover { background: transparent; color: inherit; border: 1px dashed currentColor; font-weight: 600; cursor: default; }
.forms-soon { font-weight: 600; white-space: nowrap; }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .header-row { gap: 0.5rem; }
  .menu-toggle { display: inline-block; background: none; border: 1px solid #fff6; color: #fff; font: 600 1rem var(--f-cond); padding: 0.4rem 0.7rem; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 1rem; }
  .nav.open { display: flex; }
}

.preview-bar { background: var(--warn-wash); color: var(--ink); text-align: center; padding: 0.55rem var(--gutter); font-size: 0.95rem; border-bottom: 1px solid var(--rule); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: 600 1.1rem/1 var(--f-cond); letter-spacing: 0.01em;
  padding: 0.8rem 1.25rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-hivis { background: var(--hivis); border-color: var(--hivis); color: var(--ink); }
.btn-hivis:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: 0.55rem 0.85rem; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
/* FORMS in beta (Dan, 1 Nov 2026): the shop is browse only; the buttons the
   single-documents script draws never show. */
body[data-browse-only] [data-add-pack], body[data-browse-only] [data-add-doc] { display: none !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Sections */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-grey { background: var(--site); }
.band-ink { background: var(--ink); color: #E9E8E6; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: #FFB877; }
.band-ink .btn-hivis, .band-ink .btn-hivis:hover { color: var(--ink); }
.band-ink .btn-hivis:hover { background: #fff; border-color: #fff; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--rule); }
.crumbs { font-size: 0.95rem; margin-bottom: 1rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule-strong); }

/* Hero: the headline is the document's title block. */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-bottom: 1.6rem; }
.title-block {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink); margin-top: clamp(32px, 5vw, 56px); background: var(--paper);
}
.title-block > div { padding: 0.8rem 1rem; border-right: 1px solid var(--ink); }
.title-block > div:last-child { border-right: 0; }
.title-block dt { font-size: 0.85rem; color: var(--muted); }
.title-block dd { margin: 0; font: 700 2rem/1.1 var(--f-cond); color: var(--ink); }
@media (max-width: 760px) {
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block > div:nth-child(2) { border-right: 0; }
  .title-block > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}

/* Lists of things to choose from: register rows, not a card grid. */
.register { border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto; column-gap: 1.5rem; }
/* Rows share the register's columns (subgrid), so the prices and buttons line
   up from row to row whatever the length of each row's text. */
.register-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
  row-gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.register-row > .btn { justify-self: stretch; text-align: center; }
.register-row h3 { margin: 0 0 0.2rem; font-size: 1.45rem; }
.register-row h3 a { color: var(--ink); text-decoration: none; }
.register-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--hivis); text-decoration-thickness: 3px; }
.register-row p { margin: 0; }
.from { font: 600 1.25rem/1.2 var(--f-cond); color: var(--ink); }
.from span { display: block; font: 400 0.9rem var(--f-body); color: var(--muted); }
@media (max-width: 760px) { .register { grid-template-columns: minmax(0, 1fr); } .register-row > .btn { justify-self: start; } }

/* Three doors (Systems home) */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 2px solid var(--ink); }
.door { padding: 1.5rem; border-right: 1px solid var(--ink); background: var(--paper); }
.door:last-child { border-right: 0; }
.door h3 a { color: var(--ink); }
@media (max-width: 760px) { .door { border-right: 0; border-bottom: 1px solid var(--ink); } .door:last-child { border-bottom: 0; } }

/* Rung table: Domestic / Light / Heavy side by side. */
.rungs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 2px solid var(--ink); }
.rung { display: flex; flex-direction: column; padding: 1.4rem; border-right: 1px solid var(--ink); background: var(--paper); }
.rung:last-child { border-right: 0; }
.rung h3 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.rung .summary { min-height: 3.2em; }
.rung ul { padding-left: 1.1rem; }
.rung .prices { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 1rem; }
@media (max-width: 860px) { .rung { border-right: 0; border-bottom: 1px solid var(--ink); } .rung:last-child { border-bottom: 0; } }

.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: 0 0 0.65rem; flex-wrap: wrap; }
.price-line .label { color: var(--muted); font-size: 0.95rem; }
.price-line .amount { font: 700 1.6rem/1 var(--f-cond); color: var(--ink); }
.price-line .amount small { font: 400 0.9rem var(--f-body); color: var(--muted); }
.gst { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.8rem; }
.choice { display: grid; gap: 0.5rem; }

details.doclist { margin: 0.8rem 0 1rem; }
details.doclist summary { cursor: pointer; color: var(--hivis-deep); font-weight: 600; }
details.doclist ol { margin: 0.6rem 0 0; padding-left: 0; list-style: none; font-size: 0.92rem; max-height: 22rem; overflow: auto; border: 1px solid var(--rule); }
details.doclist li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.6rem; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--rule); }
details.doclist li:last-child { border-bottom: 0; }
.code { font: 500 0.92rem/1.3 var(--f-cond); color: var(--ink); letter-spacing: 0.02em; }

/* Plain two-column feature text */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem 3rem; }
.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--measure); }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; background: var(--hivis); color: var(--ink); font: 700 1.2rem var(--f-cond);
}
.steps h3 { margin-bottom: 0.2rem; }

.note { border-left: 4px solid var(--hivis); background: var(--hivis-wash); padding: 0.9rem 1.1rem; max-width: var(--measure); }
.notice-box { border: 2px solid var(--ink); padding: 1.2rem; background: var(--site); max-width: var(--measure); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--ink); }
.form input, .form textarea, .form select {
  font: inherit; padding: 0.7rem 0.75rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { min-height: 8rem; }
.check { display: flex !important; grid-template-columns: none; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { width: auto; margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #A3261C; }

/* Documents finder */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1rem; }
.filters label { display: grid; gap: 0.25rem; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.filters input, .filters select { font: inherit; padding: 0.55rem 0.65rem; border: 1px solid var(--rule-strong); border-radius: 2px; min-width: 12rem; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.doc-table th { text-align: left; font: 600 1rem var(--f-cond); color: var(--ink); border-bottom: 2px solid var(--ink); padding: 0.5rem 0.4rem; }
.doc-table td { border-bottom: 1px solid var(--rule); padding: 0.5rem 0.4rem; vertical-align: top; }
.doc-table td:last-child, .doc-table th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .doc-table thead { display: none; }
  .doc-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
  .doc-table td { border: 0; padding: 0.1rem 0.2rem; }
  .doc-table td:nth-child(1) { grid-column: 1 / -1; }
  .doc-table td:nth-child(2) { grid-column: 1 / -1; }
}

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.cart-table td, .cart-table th { padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cart-table th { font: 600 1rem var(--f-cond); color: var(--ink); border-bottom: 2px solid var(--ink); }
.cart-table td.num, .cart-table th.num { text-align: right; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--hivis-deep); text-decoration: underline; font: inherit; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-left: 4px solid var(--hivis); z-index: 20; max-width: calc(100vw - 32px); }

.sep { border: 0; border-top: 1px solid var(--rule); width: 100%; margin: 0.6rem 0; }
.band-ink .lede { color: #E9E8E6; }
.btn-inv { color: #fff; border-color: #fff; background: transparent; }
.btn-inv:hover { background: #fff; color: var(--ink); }
.mt { margin-top: 1.2rem; }
.mt-lg { margin-top: 2.5rem; }
.faq-q { font-size: 1.5rem; margin-top: 1.4em; }
.form-wide { max-width: var(--measure); }
.table-scroll { overflow-x: auto; }
mark.placeholder { background: var(--warn-wash); color: var(--ink); padding: 0 0.15em; }

/* Footer */
.site-footer { background: var(--ink); color: #CFCDCA; padding: 48px 0 32px; font-size: 0.95rem; border-top: 4px solid var(--hivis); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem 2rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ffffff22; color: #A9A7A4; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
@media print {
  .site-header, .site-footer, .btn, .preview-bar { display: none !important; }
}

/* partners, affiliates and Google reviews (scripts/lib/trust.mjs) */
.partners-strip { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--rule); }
.partners-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.partners-strip-head h2 { margin: 0; font-size: 1.25rem; }
.partner-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.partner-logos a { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; padding: 0.75rem 0.9rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); text-decoration: none; height: 100%; }
.partner-logos a:hover { border-color: var(--ink); }
.partner-logos img, .partner-card-logo img { max-width: 100%; height: auto; max-height: 56px; object-fit: contain; }
.partner-name { font-weight: 600; line-height: 1.25; }
.partner-cat { font-size: 0.85rem; color: var(--muted); margin: 0; }
.partner-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.partner-card { display: grid; gap: 0.75rem; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); background: var(--paper); }
.partner-card h3 { margin: 0; }
.partner-card p { margin: 0.35rem 0 0; }
.fee-note { color: var(--muted); }
.review-block { margin-top: 1.5rem; display: grid; gap: 0.5rem; justify-items: start; }
.review-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); text-decoration: none; }
.review-stars { color: var(--hivis-deep); letter-spacing: 1px; }
.review-link { font-weight: 600; }
.review-compact { margin-top: 0.75rem; }
.site-footer .review-badge { background: transparent; color: inherit; }

/* Intro video (scripts/lib/video.mjs) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro-video { padding-top: 0; }
.intro-video h2 { margin-bottom: 1rem; }
.video-frame { position: relative; max-width: 960px; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--rule-strong); overflow: hidden; }
.video-frame img, .video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.video-frame video { object-fit: contain; background: var(--ink); }
.video-facade { display: block; position: absolute; inset: 0; cursor: pointer; }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--hivis); box-shadow: 0 2px 12px rgba(0,0,0,.35); transition: transform .15s ease; }
.video-play::after { content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--ink); }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: scale(1.08); }
.video-facade:focus-visible { outline: 3px solid var(--hivis); outline-offset: -3px; }
.video-caption { max-width: var(--measure); margin-top: 0.75rem; color: var(--ink-2); }
.video-channel { margin-top: 0.35rem; font-weight: 600; }

/* Planning calendar and inspection planner (scripts/lib/planning.mjs) */
.plan-jump { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 1.5rem; font-weight: 600; }
.plan-filter { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; margin: 1.25rem 0 1.5rem; padding: 1rem 1.1rem; background: var(--site); border: 1px solid var(--rule); }
.band-grey .plan-filter { background: var(--paper); }
.plan-ctl { display: grid; gap: 0.35rem; font-weight: 600; border: 0; padding: 0; margin: 0; }
.plan-ctl select { font: inherit; font-weight: 400; padding: 0.45rem 0.6rem; border: 1px solid var(--rule-strong); background: var(--paper); min-width: 16rem; max-width: 100%; }
.plan-ctl legend { font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.plan-check { display: inline-flex; align-items: center; gap: 0.35rem; margin-right: 1rem; font-weight: 400; }
.plan-month { margin-top: 2rem; }
.plan-month h3 { border-bottom: 2px solid var(--ink); padding-bottom: 0.35rem; margin-bottom: 0; }
.plan-events { list-style: none; margin: 0; padding: 0; }
.plan-event { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.plan-event[hidden], .plan-empty[hidden], .plan-group[hidden], .plan-table tr[hidden] { display: none; }
.plan-when time { display: grid; justify-items: center; padding: 0.35rem 0; border: 1px solid var(--rule-strong); background: var(--paper); }
.plan-day { font: 700 1.6rem/1 var(--f-cond); }
.plan-wd { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-tbc { display: block; font-size: 0.8rem; line-height: 1.2; color: var(--muted); text-align: center; padding: 0.35rem 0; border: 1px dashed var(--rule-strong); }
.plan-what p { margin: 0; }
.plan-title { font-weight: 600; }
.plan-badge { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--rule-strong); background: var(--site); vertical-align: 0.1em; white-space: nowrap; }
.cat-public-holiday .plan-badge { background: var(--hivis-wash); border-color: var(--hivis); }
.cat-rdo .plan-badge { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-initiative .plan-badge { background: var(--ok-wash); border-color: var(--ok); }
.plan-meta, .plan-note { font-size: 0.92rem; color: var(--ink-2); }
.plan-note { margin-top: 0.15rem !important; }
.plan-empty { color: var(--muted); padding: 0.75rem 0; margin: 0; }
.plan-fine { margin-top: 1.5rem; max-width: var(--measure); }
.plan-ics { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plan-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem 1.5rem; margin: 0 0 1.5rem; }
.plan-key div { display: grid; gap: 0.25rem; align-content: start; justify-items: start; }
.plan-key dd { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.plan-basis { display: inline-block; padding: 0.05rem 0.45rem; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--rule-strong); white-space: nowrap; }
.basis-mandatory { background: var(--ink); color: #fff; border-color: var(--ink); }
.basis-standard { background: var(--hivis-wash); border-color: var(--hivis); }
.basis-code-of-practice { background: var(--ok-wash); border-color: var(--ok); }
.plan-group { margin-top: 2rem; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.plan-table th, .plan-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.6rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.plan-table thead th { border-bottom: 2px solid var(--ink); font-size: 0.85rem; white-space: nowrap; }
.plan-table tbody th { font-weight: 600; width: 22%; }
.plan-table td:nth-child(2) { width: 15%; }
.plan-who, .plan-trigger { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
@media (max-width: 760px) {
  .plan-table thead { display: none; }
  .plan-table, .plan-table tbody, .plan-table tr, .plan-table th, .plan-table td { display: block; width: auto !important; }
  .plan-table tr { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .plan-table th, .plan-table td { border: 0; padding: 0.15rem 0; }
  .plan-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .plan-table td:empty { display: none; }
  .plan-ctl select { min-width: 0; width: 100%; }
}
.edu-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 2rem; }
.edu-card h3 { margin: 0.9rem 0 0.3rem; }
.edu-card p { margin: 0; color: var(--ink-2); }
.plan-states ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plan-states a { display: inline-block; padding: 0.45rem 0.8rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font: 600 1.02rem/1 var(--f-cond); }
.plan-states a:hover { background: var(--hivis-wash); }
.plan-states a[aria-current="page"] { background: var(--ink); color: #fff; }
.plan-alt { margin-top: 1.5rem; }
.plan-sub { margin-top: 2.5rem; }
.plan-filter fieldset.plan-ctl { display: block; }
.plan-event { padding: 0.6rem 0; gap: 0.85rem; grid-template-columns: 3.6rem minmax(0, 1fr); }
.plan-when time { padding: 0.25rem 0; }
.plan-day { font-size: 1.35rem; }
.plan-meta, .plan-note { font-size: 0.88rem; }
.plan-what .plan-meta + .plan-meta { margin-top: 0.1rem; }
.plan-sources li { margin-bottom: 0.5rem; }
.plan-bj { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.25rem; }
.plan-bj-l { font-size: 0.78rem; color: var(--muted); min-width: 4.6rem; }
.plan-refs { display: block; font-size: 0.85rem; margin-top: 0.2rem; }
.plan-conf { display: block; font-size: 0.8rem; color: var(--hivis-deep); margin-top: 0.2rem; }
.plan-notes { margin-top: 0.35rem; font-weight: 400; }
.plan-notes summary { cursor: pointer; font-size: 0.85rem; color: var(--hivis-deep); }
.plan-notes p { font-size: 0.85rem; color: var(--ink-2); margin: 0.35rem 0 0; }
.plan-table tbody th { width: 30%; }
.plan-table td:nth-child(3) { width: 14rem; }
.plan-sections { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; }
.plan-sections a { display: grid; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.plan-sections a:hover { background: var(--hivis-wash); }
.plan-sections b { font: 600 1.3rem/1.1 var(--f-cond); }
.plan-sections span { font-size: 0.9rem; color: var(--muted); }
.basis-regulator-guidance { background: #EEF2F8; border-color: #5B6F8F; }
.edu-top { padding-bottom: 0; }
.edu-tabs .edu-count { display: inline-block; min-width: 1.3em; margin-left: 0.3rem; padding: 0 0.3rem; font-size: 0.8rem; text-align: center; background: var(--hivis); color: var(--ink); }
.edu-use { max-width: var(--measure); }
.edu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.edu-head h2 a { color: inherit; text-decoration: none; }
.edu-head h2 a:hover { text-decoration: underline; text-decoration-color: var(--hivis); }
.edu-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.edu-actions button.btn { cursor: pointer; }
.edu-link { margin-top: 0.5rem !important; overflow-wrap: anywhere; color: var(--muted); }
.edu-empty { margin-top: 1rem; padding: 1.25rem 1.4rem; border: 1px dashed var(--rule-strong); background: var(--paper); max-width: 40rem; }
.edu-empty p { margin: 0; }
.edu-empty p + p { margin-top: 0.35rem; }

/* Status switch (data/site-mode.json): header status button, the hidden
   cart, and pre-launch lines (data-status-copy) for the SiteGuard App and
   SiteGuard Audit. */
.nav .nav-status { white-space: nowrap; }
.nav-cart { background: none; border: 1px solid #fff6; color: #fff; font: 600 1rem/1 var(--f-cond); padding: 0.45rem 0.7rem; cursor: pointer; }
.nav-cart[hidden] { display: none; }
.status-line { font-weight: 600; color: var(--ink); }
.door .status-line { display: inline-block; margin: 0; background: var(--hivis-wash); border-left: 4px solid var(--hivis); padding: 0.2rem 0.6rem; font-size: 0.95rem; }
/* Long source titles (some carry a URL) wrap instead of pushing the page sideways at 360 px. */
.plan-sources a { overflow-wrap: anywhere; }
.doors-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* SiteGuard App pages (scripts/lib/app-pages.mjs) */
.lockup { margin: 0 0 1.2rem; }
.lockup img { height: 60px; width: auto; display: block; }
.trade-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.4rem 2rem; }
.trade-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.trade-list a { display: block; font: 600 1.15rem/1.2 var(--f-cond); }
.trade-list .small { display: block; }
details.doclist-titles li { display: block; }
.rung h3 a { color: var(--ink); }

/* Register interest form */
.form fieldset.choice { border: 0; padding: 0; margin: 0; }
.form fieldset.choice legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 0.4rem; }

/* FORMS shop price blocks (WP-S8): the same rules as siteguardforms.com.au's site.css, for scripts/lib/shop.mjs. */
.price-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0.6rem; margin-bottom: 0.7rem; }
.price-opt { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem; border: 1px solid var(--rule-strong); background: var(--paper); }
.price-opt p { margin: 0; }
.price-opt .btn { margin-top: auto; align-self: flex-start; }
.price-opt-best { border: 2px solid var(--hivis); background: var(--hivis-wash); }
.price-tag { display: inline-block; align-self: flex-start; padding: 0.1rem 0.45rem; background: var(--hivis); color: var(--ink); font: 700 0.85rem/1.4 var(--f-cond); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.3rem; }
.price-tag-plain { background: var(--site); }
.price-head { font: 600 1rem/1.2 var(--f-cond); color: var(--ink); }
.price-opt .amount { font: 700 1.6rem/1.1 var(--f-cond); color: var(--ink); }
.price-opt .amount small, .from small { font: 400 0.85rem var(--f-body); color: var(--muted); }
.price-note { font-size: 0.85rem; color: var(--ink-2); }
.price-monthly { font-size: 0.92rem; margin: 0 0 0.5rem; }
.price-monthly small { font-size: 0.85rem; color: var(--muted); }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1.5rem; max-width: none; }
.nav-cart { text-decoration: none; display: inline-block; }
/* Help chat (P11): a button bottom right; the panel above it. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.help-chat { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: calc(100vw - 32px); }
.help-chat-toggle { display: block; margin-left: auto; padding: .6rem 1rem; border: 0; border-radius: 999px; background: #2B2A2F; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.help-chat-panel { width: 22rem; max-width: 100%; max-height: 70vh; overflow-y: auto; margin-bottom: .5rem; padding: 1rem; border: 1px solid #d8d6dc; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.help-chat-title { margin: 0 0 .5rem; font-weight: 700; }
.help-chat-note, .help-chat-sources, .help-chat-fallback, .help-chat-status { font-size: .85rem; color: #555; }
.help-chat-log { list-style: none; margin: 0; padding: 0; }
.help-chat-log li { margin: .5rem 0; padding: .5rem .75rem; border-radius: 6px; }
.help-chat-user { background: #f0eff3; }
.help-chat-assistant { background: #f7f7f7; border-left: 3px solid #2B2A2F; }
.help-chat-log p { margin: 0 0 .25rem; }
.help-chat-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.help-chat-form input { flex: 1 1 10rem; min-width: 0; padding: .5rem; font: inherit; }
.help-chat-form label:not(.sr-only) { flex-basis: 100%; font-size: .85rem; }

/* Module colour identity (scripts/lib/modules.mjs). One set of tokens per
   module, from the Brand Suite Rev06 palette, taken by a card or a page's
   <main> through data-module (the CSP forbids inline style):
     --mod       brand colour
     --mod-tint  --mod at 8% on white (card and page-head background)
     --mod-line  --mod at 30% on white (card border)
     --mod-ink   --mod darkened only as far as needed for 4.5:1 on --mod-tint
                 and on white (small text and links)
     --mod-on    text on a --mod fill (primary buttons), 4.5:1 or better
   test/modules.test.js computes the WCAG ratios from these values. */
[data-module="safety"] { --mod: #C62828; --mod-tint: #FAEEEE; --mod-line: #EEBFBF; --mod-ink: #C62828; --mod-on: #FFFFFF; }
[data-module="quality"] { --mod: #1D5C96; --mod-tint: #EDF2F7; --mod-line: #BBCEE0; --mod-ink: #1D5C96; --mod-on: #FFFFFF; }
[data-module="environmental"] { --mod: #2E7D32; --mod-tint: #EEF5EF; --mod-line: #C0D8C2; --mod-ink: #2E7D32; --mod-on: #FFFFFF; }
[data-module="management"] { --mod: #8A5A00; --mod-tint: #F6F2EB; --mod-line: #DCCEB3; --mod-ink: #8A5A00; --mod-on: #FFFFFF; }
[data-module="forms"] { --mod: #F58220; --mod-tint: #FEF5ED; --mod-line: #FCDABC; --mod-ink: #AD5C17; --mod-on: #2B2A2F; }
[data-module="audit"] { --mod: #6A6E77; --mod-tint: #F3F3F4; --mod-line: #D2D4D6; --mod-ink: #6A6E77; --mod-on: #FFFFFF; }
[data-module="consulting"] { --mod: #6A6E77; --mod-tint: #F3F3F4; --mod-line: #D2D4D6; --mod-ink: #6A6E77; --mod-on: #FFFFFF; }
[data-module="education"] { --mod: #5B3F9E; --mod-tint: #F2F0F7; --mod-line: #CEC5E2; --mod-ink: #5B3F9E; --mod-on: #FFFFFF; }

/* Marks: the single-line label on cards, the full lockup in page heads. */
.mod-label { margin: 0 0 0.9rem; }
.mod-label img { height: 28px; width: auto; display: block; }
.mod-lockup { margin: 0 0 1.1rem; }
.mod-lockup img { height: 84px; width: auto; display: block; }
@media (max-width: 760px) { .mod-lockup img { height: 64px; } }

/* Module cards: App hub, home "What SiteGuard does", Audit cross-links.
   Cards without a module (the SiteGuard App, the Planner) stay white. */
.doors.mod-cards { border: 0; gap: 1rem; }
.mod-cards .door, .mod-cards .door:last-child { border: 1px solid var(--rule); border-top: 5px solid var(--ink); background: var(--paper); }
.mod-cards .door[data-module], .mod-card { background: var(--mod-tint); border: 1px solid var(--mod-line); border-top: 5px solid var(--mod); }
.mod-card { padding: 1.5rem; }
.mod-cards .door[data-module] a, .mod-card a:not(.btn) { color: var(--mod-ink); }
.mod-cards .door[data-module] a:hover, .mod-card a:not(.btn):hover { color: var(--ink); }
.mod-card h2 { margin-top: 0; }
.mod-card > .btn-row { align-self: start; }
a.mod-link { color: var(--mod-ink); font-weight: 600; }
a.mod-link:hover { color: var(--ink); }

/* Module pages and the Audit, Education and Consulting tabs: a tinted page
   head with a 5px rule in the module colour; the body stays white. */
main[data-module] > .page-head { background: var(--mod-tint); border-bottom: 5px solid var(--mod); }
main[data-module] .band:not(.band-ink) + .band:not(.band-ink) { border-top: 1px solid var(--mod-line); }
main[data-module] .register { border-top-color: var(--mod); }
main[data-module] .doc-table th { border-bottom-color: var(--mod); }
main[data-module] .note { border-left-color: var(--mod); background: var(--mod-tint); }
main[data-module] .btn-hivis, main[data-module] .band-ink .btn-hivis { background: var(--mod); border-color: var(--mod); color: var(--mod-on); }
main[data-module] .btn-hivis:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
main[data-module] .band-ink .btn-hivis:hover { background: #fff; border-color: #fff; color: var(--ink); }
main[data-module] .edu-tabs .edu-count { background: var(--mod); color: var(--mod-on); }
main[data-module] .plan-states a:hover { background: var(--mod-tint); }
main[data-module] .plan-states a[aria-current="page"] { background: var(--mod); border-color: var(--mod); color: var(--mod-on); }

/* Status boxes ("Coming soon", "Launching …"): white with a 4px bar in the
   module colour (ink where there is no module), never the hi-vis Forms tint. */
.note.status-line, main[data-module] .note.status-line, .door .status-line {
  background: var(--paper); border-left: 4px solid var(--mod, var(--ink)); border-top: 1px solid var(--mod-line, var(--rule));
  border-right: 1px solid var(--mod-line, var(--rule)); border-bottom: 1px solid var(--mod-line, var(--rule));
}
.plan-cross .status-line { display: inline-block; background: var(--paper); border-left: 4px solid var(--mod, var(--ink)); padding: 0.2rem 0.6rem; }
