/* sign.au base styles
   The look: black ink on white fluted corflute, printer's crop marks,
   a CMYK bar. Colours are listed once here; change them here only. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --board: #ffffff;
  --page: #eef0ef;
  --grey: #5c6260;
  --highlight: #ffe600;
  --focus: #e6007e;
  --cyan: #00a0e3;
  --magenta: #e6007e;
  --yellow: #ffe600;
  --black: #111111;

  --flute: rgba(17, 17, 17, 0.04);
  --gutter: 16px;
  --wrap: 72rem;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 48em) {
  :root { --gutter: 32px; }
}

/* ---------- Reset and base ---------- */

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  overflow-x: clip;
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; } /* 18px */
}

img, svg { display: block; max-width: 100%; height: auto; }

p, ul, ol, dl, figure { margin: 0 0 1em; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--board);
  font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  margin: 0 0 0.5em;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1, .display { font-size: clamp(2.375rem, 8vw + 0.5rem, 5.5rem); line-height: 0.95; }
h2 { font-size: clamp(1.75rem, 4vw + 0.75rem, 3rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.9rem, 1.625rem); font-stretch: 112%; line-height: 1.1; }

.lede { font-size: 1.1875em; line-height: 1.45; max-width: 36em; }
.small { font-size: 0.875rem; }
.muted { color: var(--grey); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* The yellow "highlighter" swipe, for key dates only */
mark {
  background: linear-gradient(transparent 12%, var(--highlight) 12%, var(--highlight) 88%, transparent 88%);
  color: inherit;
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--board);
  font: inherit;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.0625rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--board); color: var(--ink); }

.btn--outline { background: var(--board); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--board); }

.btn--small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

/* ---------- The corflute board ----------
   White panel with faint vertical flutes and crop marks just outside
   each corner. Use: <div class="board"> ... </div> */

.board {
  position: relative;
  background-color: var(--board);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 7px,
    var(--flute) 7px 8px
  );
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

/* Crop marks: 8 short lines, 4px clear of the board's corners */
.board::before {
  --m: 10px;  /* mark length */
  --o: 14px;  /* mark length + gap */
  content: "";
  position: absolute;
  inset: calc(var(--o) * -1);
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) left 0 top var(--o) / var(--m) 1px,
    linear-gradient(var(--ink), var(--ink)) left var(--o) top 0 / 1px var(--m),
    linear-gradient(var(--ink), var(--ink)) right 0 top var(--o) / var(--m) 1px,
    linear-gradient(var(--ink), var(--ink)) right var(--o) top 0 / 1px var(--m),
    linear-gradient(var(--ink), var(--ink)) left 0 bottom var(--o) / var(--m) 1px,
    linear-gradient(var(--ink), var(--ink)) left var(--o) bottom 0 / 1px var(--m),
    linear-gradient(var(--ink), var(--ink)) right 0 bottom var(--o) / var(--m) 1px,
    linear-gradient(var(--ink), var(--ink)) right var(--o) bottom 0 / 1px var(--m);
  background-repeat: no-repeat;
}

/* Sections stacked on the grey page */
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section + .section { border-top: 2px solid var(--ink); }

/* ---------- Header ---------- */

.site-header {
  background: var(--board);
  border-bottom: 3px solid var(--ink);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "mark cta"
    "nav  nav";
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.75rem 0;
}

.wordmark {
  grid-area: mark;
  justify-self: start;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header__cta { grid-area: cta; }

.site-nav { grid-area: nav; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0 -0.5rem;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.5rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.35em;
}
.site-nav a:hover { text-decoration: underline 2px var(--grey); text-underline-offset: 0.35em; }
.site-nav a:focus-visible { outline-offset: -3px; }
.site-nav a[aria-current="page"] { text-decoration: underline 3px var(--ink); text-underline-offset: 0.35em; }

/* Small phones: slightly smaller menu text so the links fit in two rows */
@media (max-width: 29.99em) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0.45rem 0.4rem 0.6rem; font-size: 0.9375rem; }
}

/* One row (logo, menu, button) only on wide screens; below that the menu gets its own row */
@media (min-width: 64em) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "mark nav cta";
    column-gap: 2.5rem;
    padding-block: 0;
  }
  .site-nav a { padding-block: 1.375rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(2.5rem, 7vw, 5rem);
  background: var(--board);
  font-size: 0.9375rem;
}
.site-footer p { margin-bottom: 0.25em; }

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 2.5rem;
}

.site-footer__name { font-weight: 800; font-stretch: 112%; }

.site-footer__privacy { color: var(--grey); max-width: 40em; }

@media (min-width: 48em) {
  .site-footer__inner { grid-template-columns: 1fr 1fr 2fr; }
}

/* The four process inks, equal shares, so no single colour leads */
.cmyk-bar { display: flex; height: 8px; }
.cmyk-bar span { flex: 1; }
.cmyk-bar span:nth-child(1) { background: var(--cyan); }
.cmyk-bar span:nth-child(2) { background: var(--magenta); }
.cmyk-bar span:nth-child(3) { background: var(--yellow); }
.cmyk-bar span:nth-child(4) { background: var(--black); }

/* ---------- Phone action bar ---------- */

.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--board);
  border-top: 3px solid var(--ink);
}

body:has(.action-bar) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }

@media (min-width: 48em) {
  .action-bar { display: none; }
  body:has(.action-bar) { padding-bottom: 0; }
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

/* ---------- Home: hero ---------- */

.hero-wrap { padding-top: clamp(2rem, 5vw, 3.5rem); }

.hero {
  display: grid;
  gap: 2.5rem;
}
.hero h1 { font-size: clamp(2.375rem, 7vw + 0.5rem, 5rem); }
.hero .lede { margin-bottom: 0.6em; }
.hero__beat { font-weight: 700; text-wrap: balance; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 0;
}

.hero__sign {
  container-type: inline-size;
  width: 100%;
  max-width: 17rem;
  margin: 0;
}
.hero__sign figcaption { margin-top: 1.25rem; font-size: 0.9375rem; line-height: 1.45; }
.hero__sign figcaption span { display: block; margin-top: 0.25em; }

@media (min-width: 60em) {
  .hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
  .hero__sign { max-width: 22rem; justify-self: end; }
}

/* ---------- Mock corflute sign (drawn, not a photo) ----------
   Sized from its container's width (cqi) so it scales like a real sign. */

.mock-sign {
  display: flex;
  flex-direction: column;
  aspect-ratio: 594 / 841;
  padding: 8cqi 7cqi 6cqi;
  background-color: var(--board);
  background-image: repeating-linear-gradient(90deg, transparent 0 5px, var(--flute) 5px 6px);
  border: 1px solid #c4c9c7;
  box-shadow: 7px 7px 0 #d3d7d5; /* board thickness, hard edge */
  color: var(--ink);
  overflow: hidden;
}
.mock-sign :where(p) { margin: 0; }

.mock-sign__tag {
  align-self: flex-start;
  padding: 1.5cqi 3.5cqi;
  background: var(--ink);
  color: var(--board);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 9cqi;
  line-height: 1.1;
}

.mock-sign__name {
  margin-top: 9cqi;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 17.5cqi;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.mock-sign__sub {
  margin-top: 5cqi;
  font-weight: 700;
  font-stretch: 105%;
  font-size: 6.5cqi;
  line-height: 1.15;
}

.mock-sign__slogan {
  margin-top: auto;
  padding-left: 3cqi;
  border-left: 1.5cqi solid var(--ink);
  font-weight: 500;
  font-size: 7cqi;
  line-height: 1.15;
}

.mock-sign__fine {
  margin-top: auto;
  padding-top: 3cqi;
  border-top: 0.6cqi solid var(--ink);
  font-size: 3.3cqi;
  line-height: 1.35;
  font-weight: 500;
}

/* ---------- Sample candidate sign (election hero) ----------
   Deliberately not in the website's style: its own colours, condensed caps.
   Aubergine, coral and cream match no real Victorian party's branding. */

.cand-sign {
  --cand-dark: #2b1033;
  --cand-bright: #ff5a7e;
  --cand-light: #fff1de;
  display: flex;
  flex-direction: column;
  aspect-ratio: 594 / 841;
  background: var(--cand-light);
  box-shadow: 7px 7px 0 #d3d7d5; /* board thickness, hard edge */
  color: var(--cand-dark);
  font-stretch: 75%;
  text-transform: uppercase;
  overflow: hidden;
}
.cand-sign :where(p) { margin: 0; }

.cand-sign__top {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--cand-bright);
}

.cand-sign__portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 100%;
}

.cand-sign__vote {
  position: absolute;
  top: 6cqi;
  left: 6cqi;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.5cqi;
  font-weight: 900;
  font-size: 12cqi;
  line-height: 1;
}

.cand-sign__box {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  background: var(--cand-light);
  border: 1.2cqi solid var(--cand-dark);
}

.cand-sign__band {
  padding: 4cqi 6cqi 4.5cqi;
  background: var(--cand-dark);
  color: var(--cand-light);
}

.cand-sign__name {
  font-weight: 900;
  font-size: 21cqi;
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.cand-sign__district {
  margin-top: 3cqi;
  color: var(--cand-bright);
  font-weight: 800;
  font-size: 6cqi;
  line-height: 1.1;
}

.cand-sign__slogan {
  padding: 3cqi 6cqi 2cqi;
  font-weight: 800;
  font-size: 6.5cqi;
  line-height: 1.1;
}

.cand-sign__fine {
  padding: 1.5cqi 6cqi 4cqi;
  font-stretch: 100%;
  text-transform: none;
  font-size: 2.7cqi;
  line-height: 1.35;
  font-weight: 500;
}

/* ---------- Construction signs page ---------- */

.plain-list { padding-left: 1.25rem; }
.plain-list li { margin-bottom: 0.35em; }
.plain-list li::marker { color: var(--grey); }

.construction-note { margin-top: 2.5rem; }

/* Sample builder site sign (drawn, not a photo). Wording only: no standard safety
   symbols. Sized from its container's width (cqi), like the election sample sign. */
.site-sign {
  --ss-ink: #111111;
  --ss-brand: #22303a;
  --ss-amber: #f2b600;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3cqi;
  aspect-ratio: 594 / 841;
  padding: 0 6cqi 5cqi;
  background: #ffffff;
  border: 1px solid #c4c9c7;
  box-shadow: 7px 7px 0 #d3d7d5; /* board thickness, hard edge */
  color: var(--ss-ink);
  overflow: hidden;
}
.site-sign :where(p, ul, dl, dd) { margin: 0; }

.site-sign__hole {
  position: absolute;
  z-index: 1;
  width: 2.6cqi;
  height: 2.6cqi;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 0 0 0.4cqi #9aa09e;
}
.site-sign__hole--tl { top: 2.2cqi; left: 2.2cqi; }
.site-sign__hole--tr { top: 2.2cqi; right: 2.2cqi; }
.site-sign__hole--bl { bottom: 2.2cqi; left: 2.2cqi; }
.site-sign__hole--br { bottom: 2.2cqi; right: 2.2cqi; }

.site-sign__brand {
  margin: 0 -6cqi;
  padding: 6cqi 6cqi 3.5cqi;
  background: var(--ss-brand);
  color: #ffffff;
}
.site-sign__name {
  font-weight: 900;
  font-stretch: 125%;
  font-size: 9.5cqi;
  line-height: 1;
  text-transform: uppercase;
}
.site-sign__trade {
  margin-top: 1cqi !important;
  color: var(--ss-amber);
  font-weight: 800;
  font-size: 3.4cqi;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.site-sign__danger { border: 0.8cqi solid var(--ss-ink); text-align: center; text-transform: uppercase; }
.site-sign__danger-word {
  padding: 1cqi;
  background: var(--ss-ink);
  color: #ffffff;
  font-weight: 900;
  font-size: 6.5cqi;
  letter-spacing: 0.1em;
}
.site-sign__danger-text { padding: 1.6cqi 2cqi 0; font-weight: 900; font-stretch: 112%; font-size: 6.2cqi; line-height: 1.05; }
.site-sign__danger-sub { padding: 0.8cqi 2cqi 1.6cqi; font-weight: 700; font-size: 3.4cqi; }

.site-sign__rules { padding: 0; list-style: none; font-weight: 700; font-size: 3.3cqi; line-height: 1.25; }
.site-sign__rules li { padding-left: 2cqi; border-left: 1cqi solid var(--ss-amber); }
.site-sign__rules li + li { margin-top: 1.2cqi; }

.site-sign__contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5cqi;
  padding: 1.8cqi 2.2cqi;
  background: var(--ss-amber);
}
.site-sign__contacts dt { font-weight: 700; font-size: 2.5cqi; text-transform: uppercase; }
.site-sign__contacts dd { font-weight: 900; font-size: 3.5cqi; font-variant-numeric: tabular-nums; white-space: nowrap; }

.site-sign__fill { display: grid; gap: 2cqi; margin-top: auto !important; }
.site-sign__fill div { display: flex; align-items: flex-end; gap: 1.4cqi; }
.site-sign__fill dt { font-weight: 700; font-size: 2.8cqi; white-space: nowrap; }
.site-sign__fill dd { flex: 1; min-height: 3cqi; border-bottom: 0.35cqi solid var(--ss-ink); }
.site-sign__fill dd.short { flex: 0 0 16cqi; }

/* Sample for-lease sign (Real estate page). Drawn, not a photo; fictional agency.
   Brown and gold: not any party's colours. Sized from its container (cqi). */
.lease-sign {
  --ls-brand: #4e3526;
  --ls-gold: #c9a227;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 594 / 841;
  padding: 0 7cqi;
  background: #ffffff;
  border: 1px solid #c4c9c7;
  box-shadow: 7px 7px 0 #d3d7d5;
  color: #111111;
  overflow: hidden;
}
.lease-sign :where(p) { margin: 0; }

.lease-sign__hole {
  position: absolute;
  z-index: 1;
  width: 2.6cqi;
  height: 2.6cqi;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 0 0 0.4cqi #9aa09e;
}
.lease-sign__hole--tl { top: 2.2cqi; left: 2.2cqi; }
.lease-sign__hole--tr { top: 2.2cqi; right: 2.2cqi; }
.lease-sign__hole--bl { bottom: 2.2cqi; left: 2.2cqi; }
.lease-sign__hole--br { bottom: 2.2cqi; right: 2.2cqi; }

.lease-sign__agency {
  margin: 0 -7cqi;
  padding: 7cqi 7cqi 4cqi;
  background: var(--ls-brand);
  color: #ffffff;
  text-align: center;
}
.lease-sign__name { font-weight: 800; font-stretch: 112%; font-size: 9cqi; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.lease-sign__trade { margin-top: 1.2cqi !important; color: var(--ls-gold); font-weight: 700; font-size: 3.4cqi; letter-spacing: 0.4em; text-transform: uppercase; }

.lease-sign__big {
  margin-top: 9cqi !important;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 18.5cqi;
  line-height: 0.88;
  text-transform: uppercase;
  text-align: center;
}
.lease-sign__what {
  margin-top: 5cqi !important;
  font-weight: 700;
  font-size: 6.5cqi;
  text-align: center;
}
.lease-sign__arrow { margin: 7cqi auto 0; width: 62cqi; height: 16cqi; }
.lease-sign__arrow svg { display: block; width: 100%; height: 100%; fill: var(--ls-brand); }

.lease-sign__call {
  margin: auto -7cqi 0 !important;
  padding: 4cqi 7cqi 6cqi;
  background: var(--ls-gold);
  color: #111111;
  font-weight: 700;
  font-size: 4.2cqi;
  text-align: center;
}
.lease-sign__call span { display: block; font-weight: 900; font-size: 7cqi; font-variant-numeric: tabular-nums; }

/* ---------- Home: heading-left, text-right sections ---------- */

.split { display: grid; gap: 0.5rem 4rem; }
.split h2 { margin-bottom: 0.25em; }
.split .lede { margin-bottom: 1.25em; }

@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}

/* ---------- Home: what we print ---------- */

.print { display: grid; gap: 2.5rem; }

@media (min-width: 60em) {
  .print { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
}

.sizes-figure {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

/* One grid: column widths are the real mm widths (set inline from site.json).
   Row 1 holds the boards, standing on a shared ground line; row 2 the labels. */
.sizes {
  display: grid;
  align-items: end;
  column-gap: 0.75rem;
}

.sizes::after {
  content: "";
  grid-row: 1;
  grid-column: 1 / -1;
  align-self: end;
  height: 3px;
  margin-inline: -0.75rem;
  background: var(--ink);
}

.size__board {
  grid-row: 1;
  background-color: var(--board);
  background-image: repeating-linear-gradient(90deg, transparent 0 4px, var(--flute) 4px 5px);
  border: 3px solid var(--ink);
}

.size__label {
  grid-row: 2;
  margin: 0.625rem 0 0;
  text-align: center;
  line-height: 1.2;
}

.size__id {
  display: block;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.size__mm {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--grey);
  white-space: nowrap;
}

.sizes-figure figcaption { margin-top: 1rem; text-align: center; }

.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec > div {
  display: grid;
  gap: 0.125rem 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--grey);
}
.spec dt { font-weight: 800; font-stretch: 112%; }
.spec dd { margin: 0; }

@media (min-width: 36em) {
  .spec > div { grid-template-columns: 8.5rem 1fr; }
}

/* ---------- Home: how ordering works ---------- */

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 1rem;
  padding-block: 1.25rem;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 3.25rem;
  line-height: 0.85;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; }

/* On desktop the steps share rows (subgrid), so headings and text line up
   across all three even when a heading wraps onto two lines. */
@media (min-width: 60em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); column-gap: 2rem; }
  .steps li { grid-row: span 3; grid-template-columns: 1fr; grid-template-rows: subgrid; padding-top: 1rem; }
  .steps li::before { grid-row: auto; font-size: 4.5rem; margin-bottom: 1rem; }
}

/* ---------- Price tables (home and Prices page) ---------- */

.price-flag {
  max-width: 36em;
  padding-left: 0.75rem;
  border-left: 4px solid var(--ink);
  font-weight: 700;
}

.price-tables {
  display: grid;
  gap: 2rem 3rem;
  margin-block: 1.75rem;
}

@media (min-width: 48em) {
  .price-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table caption {
  padding-bottom: 0.5rem;
  text-align: left;
}
.price-table__size {
  margin-right: 0.5rem;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.75rem;
  line-height: 1;
}
.price-table__dims { font-size: 0.9375rem; color: var(--grey); }

.price-table th,
.price-table td {
  padding: 0.625rem 0 0.625rem 0.75rem;
  text-align: right;
}
.price-table th:first-child { padding-left: 0; text-align: left; }

.price-table thead th {
  width: 30%;
  border-bottom: 2px solid var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  font-stretch: 112%;
}
.price-table thead th:first-child { width: 40%; }

.price-table tbody tr { border-bottom: 1px solid #c4c9c7; }
.price-table tbody th { font-weight: 500; }
.price-table td { font-weight: 700; }

.price-table__gst { margin: 0.5rem 0 0; color: var(--grey); }

/* One price column: keep each price close to its quantity */
.price-table--single { max-width: 22rem; }
.price-table--single thead th:first-child { width: 60%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Home: election teaser ---------- */

.teaser { display: grid; gap: 2rem; }
.teaser p { max-width: 36em; }

.dates { margin: 0; align-self: start; border: 3px solid var(--ink); background: var(--board); }
.dates > div { padding: 1rem 1.25rem; }
.dates > div + div { border-top: 1px solid var(--grey); }
.dates dt { font-size: 0.9375rem; color: var(--grey); }
.dates dd { margin: 0; font-weight: 900; font-stretch: 112%; font-size: 1.375rem; line-height: 1.2; }

@media (min-width: 60em) {
  .teaser { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
}

/* ---------- Inner pages ---------- */

.page-head { padding-bottom: 0; }
.page-head + .section { border-top: 0; padding-top: 1.5rem; }
.page-cta { margin-top: 2rem; }

.spec--compact { max-width: 40rem; margin-top: 1rem; }

/* ---------- Election sign rules page ---------- */

.rules-head { display: grid; gap: 2rem; }
.rules-head .dates { align-self: end; }

@media (min-width: 60em) {
  .rules-head { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
}

.rules { padding-block: 2rem clamp(2.5rem, 7vw, 5rem); }

.rule {
  display: grid;
  gap: 0.5rem 4rem;
  padding-block: 2rem;
  border-top: 2px solid var(--ink);
}
.rule h2 { font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem); }

@media (min-width: 60em) {
  .rule { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}

.rule__body { max-width: 40em; }
.rule__body ul { padding-left: 1.25rem; }
.rule__body li { margin-bottom: 0.35em; }
.rule__body li::marker { color: var(--grey); }
.rule__source { margin: 1.25rem 0 0; color: var(--grey); }
.rule__source + p { margin-top: 1.5rem; }
.rule__source a { color: var(--ink); }

.disclaimer {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 3px solid var(--ink);
  background: var(--board);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.125rem;
}
.disclaimer p { margin: 0; }

/* ---------- Prices: calculator ---------- */

.calc h2 { margin-bottom: 1rem; }

.calc__grid { display: grid; gap: 2rem; }

@media (min-width: 60em) {
  .calc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
}

.choice { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.choice legend { margin-bottom: 0.5rem; padding: 0; font-weight: 800; font-stretch: 112%; }
.choice__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Radio buttons drawn as big tap targets; the real input stays for keyboards and screen readers */
.choice label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.25rem;
  border: 3px solid var(--ink);
  background: var(--board);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.25rem;
  line-height: 1.1;
  cursor: pointer;
}
.choice label span { font-weight: 600; font-stretch: 100%; font-size: 0.8125rem; }
.choice label:hover { background: var(--page); }
.choice input:checked + label { background: var(--ink); color: var(--board); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }

.calc__board { margin: 0 0 1.5rem; }
.field-note { margin: 0 0 0.75rem; max-width: 32rem; }

/* A single checkbox with its label beside it, big enough to tap */
.field--check { display: flex; align-items: flex-start; gap: 0.75rem; max-width: 32rem; }
.field--check input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--ink);
}
.field--check label { font-weight: 700; cursor: pointer; }
.board-note { font-weight: 700; }

.calc__qty label { display: block; margin-bottom: 0.5rem; font-weight: 800; font-stretch: 112%; }
.calc__qty input {
  width: 9rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--board);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calc__qty input[aria-invalid="true"] { border-color: var(--focus); }
.calc__error { margin: 0.5rem 0 0; font-weight: 700; }

.calc__result {
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
}
.calc__result p { margin-bottom: 0.5rem; }

@media (min-width: 60em) {
  .calc__result { padding: 0 0 0 2.5rem; border-top: 0; border-left: 3px solid var(--ink); }
}

.calc__big {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.5rem, 5vw + 1rem, 3.75rem);
  line-height: 1;
}
.calc__big--quote { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
.calc__each { font-size: 1.125rem; }
.calc__total { font-size: 1.375rem; font-weight: 700; }
.calc__notes { margin-block: 1.25rem; color: var(--grey); }
.calc__notes p { margin-bottom: 0.25rem; }

[hidden] { display: none !important; }

/* ---------- Get a quote ---------- */

.quote { display: grid; gap: 2.5rem; align-items: start; }

@media (min-width: 60em) {
  .quote { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3.5rem; }
  .quote__prep { position: sticky; top: 1.5rem; }
}

.quote__prep h2 { font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem); }
.quote__prep .spec > div { grid-template-columns: 1fr; }

.form-heading {
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  font-size: clamp(1.375rem, 1.5vw + 0.9rem, 1.75rem);
}
form > .form-heading:first-of-type { margin-top: 0; }

.field { margin: 0 0 1.5rem; }
.field > label,
.field.choice legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
  font-stretch: 112%;
}
.field__optional { font-weight: 500; font-stretch: 100%; color: var(--grey); }
.field__hint { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--grey); }
.field__error {
  margin: 0 0 0.5rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--focus);
  font-weight: 700;
}

/* :where() keeps this rule light, so .input--short and .input--date can narrow fields */
.field input:where(:not([type="radio"], [type="checkbox"])),
.field textarea {
  display: block;
  width: 100%;
  max-width: 32rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--board);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input.input--short { max-width: 9rem; font-variant-numeric: tabular-nums; }
.field input.input--date { max-width: 14rem; }
.field--error input:where(:not([type="radio"], [type="checkbox"])),
.field--error textarea { border-color: var(--focus); }
.field--error .choice__options label { border-color: var(--focus); }

.choice__options label span { white-space: nowrap; }

.error-summary {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 3px solid var(--ink);
  border-left: 12px solid var(--focus);
  background: var(--board);
}
.error-summary h2 { margin-bottom: 0.5rem; font-size: 1.375rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { font-weight: 700; }

.prefill-note {
  padding-left: 0.75rem;
  border-left: 4px solid var(--ink);
  font-weight: 700;
}

.form-submit { margin-top: 2rem; }

.thanks .spec { max-width: 36rem; margin-block: 1.5rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
