@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #fbfbf8;
  --sidebar: #f0f1ef;
  --white: #ffffff;
  --ink: #1d211f;
  --muted: #606863;
  --line: #d9ddda;
  --line-strong: #b8c0bb;
  --accent: #087f77;
  --accent-dark: #05635d;
  --accent-soft: #e4f2ef;
  --code: #eef0ee;
  --max-content: 880px;
  --topbar-height: 58px;
  --sidebar-width: 264px;
  --shadow: 0 10px 28px rgba(29, 33, 31, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behaviour: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.96);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.docs-label {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top-phone {
  margin-left: auto;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-decoration: none;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-height));
}
.toc {
  position: relative;
  padding: 34px 24px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.toc details {
  position: sticky;
  top: calc(var(--topbar-height) + 26px);
}
.toc summary {
  margin-bottom: 13px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}
.toc summary::-webkit-details-marker { display: none; }
.toc nav { display: grid; gap: 3px; }
.toc-link {
  position: relative;
  display: block;
  padding: 8px 10px 8px 16px;
  border-radius: 4px;
  color: #4f5752;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.toc-link::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  background: transparent;
  content: "";
}
.toc-link:hover { background: rgba(255, 255, 255, 0.65); color: var(--ink); }
.toc-link.active { background: var(--white); color: var(--accent-dark); }
.toc-link.active::before { background: var(--accent); }
.toc-note {
  position: sticky;
  top: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  color: var(--muted);
  font-size: 11px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.back-link {
  position: sticky;
  top: 360px;
  display: block;
  margin-top: 38px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.content-column { min-width: 0; }
main {
  width: min(100% - 64px, var(--max-content));
  margin: 0 auto;
}
.doc-section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}
.overview { padding-top: 86px; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; letter-spacing: -0.025em; line-height: 1.18; }
h1 { max-width: 790px; margin-bottom: 24px; font-size: clamp(2.45rem, 5vw, 4.6rem); font-weight: 650; }
h2 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { margin-bottom: 7px; font-size: 1rem; }
p { margin: 0 0 1em; }
.lead { max-width: 760px; color: #444b47; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }

.scope-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: var(--shadow);
}
.scope-panel > div { min-height: 126px; padding: 22px; }
.scope-panel > div + div { border-left: 1px solid var(--line); }
.scope-panel strong { display: block; font-size: 14px; line-height: 1.45; }
.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.07em;
}
.fence-rule {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 65px;
  margin-top: 38px;
  padding: 0 10%;
  border-bottom: 4px double var(--ink);
  overflow: hidden;
}
.fence-rule i {
  position: relative;
  display: block;
  width: 3px;
  height: 42px;
  background: var(--ink);
}
.fence-rule i:nth-child(3n + 2) { height: 55px; }
.fence-rule i::before {
  position: absolute;
  top: -9px;
  left: -4px;
  width: 11px;
  height: 11px;
  background: var(--ink);
  content: "";
  transform: rotate(45deg);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 34px;
}
.section-number {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}
.section-heading .eyebrow { margin-bottom: 7px; }

.service-list { margin: 0; }
.service-block {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) 1.5fr;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--white);
}
.service-block:first-child { border-radius: 5px 5px 0 0; }
.service-block:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 5px 5px; }
.service-block dt, .service-block dd { margin: 0; padding: 25px 27px; }
.service-block dt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-right: 1px solid var(--line);
  font-weight: 650;
}
.service-block dd { color: #4d5550; font-size: 14px; }
.service-block code {
  padding: 3px 6px;
  border: 1px solid #cdd3cf;
  border-radius: 3px;
  background: var(--code);
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 23px;
  padding: 0 0 35px;
}
.process-list li:not(:last-child) .step-index::after {
  position: absolute;
  top: 39px;
  bottom: -44px;
  left: 50%;
  width: 1px;
  background: var(--line-strong);
  content: "";
}
.step-index {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.process-list p { max-width: 670px; margin: 0; color: var(--muted); font-size: 14px; }

.note-box {
  margin: 0 0 28px;
  padding: 21px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 14px;
}
.note-box p { margin: 5px 0 0; color: #3f514d; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 20px 42px 20px 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute;
  right: 8px;
  color: var(--accent-dark);
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 19px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 740px; padding: 0 42px 20px 0; color: var(--muted); font-size: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 52px;
}
.contact-details { color: #4d5550; font-size: 14px; }
.contact-details address { margin: 28px 0; color: var(--ink); font-style: normal; }
.contact-details a { font-weight: 600; }
.response-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.enquiry-form {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 17px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 650;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fdfdfb;
  color: var(--ink);
  outline: 0;
}
input, select { min-height: 43px; padding: 8px 11px; }
textarea { min-height: 120px; padding: 10px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 11px; }
.check-row input { width: 16px; min-height: 16px; margin: 2px 0 0; accent-color: var(--accent-dark); }
.enquiry-form button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--accent-dark);
  border-radius: 3px;
  background: var(--accent-dark);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.enquiry-form button:hover { background: var(--accent); }
.enquiry-form button:focus-visible { outline: 3px solid #9ed5cf; outline-offset: 2px; }
.form-status { margin: 13px 0 0; color: var(--accent-dark); font-size: 12px; font-weight: 600; }
.form-status.error { color: #a2332e; }
.form-footnote { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.policy-content p { max-width: 760px; }
.policy-content h3 { margin-top: 28px; }
.policy-address { display: grid; gap: 8px; margin-top: 24px; font-style: normal; }

.footer {
  width: min(100% - 64px, var(--max-content));
  margin: 0 auto;
  padding: 42px 0 48px;
  color: var(--muted);
  font-size: 12px;
}
.footer > div strong { color: var(--ink); font-size: 13px; }
.footer > div p { margin-top: 5px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 23px 0; }
.footer nav a { font-weight: 600; text-decoration: none; }
.copyright { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 10px; }

@media (max-width: 760px) {
  :root { --topbar-height: 54px; }
  .topbar { gap: 9px; padding: 0 15px; }
  .brand { max-width: calc(100% - 140px); font-size: 12px; line-height: 1.2; }
  .brand-mark { flex: 0 0 auto; width: 24px; height: 24px; }
  .docs-label { display: none; }
  .top-phone { font-size: 10px; }
  .site-shell { display: block; }
  .toc { position: sticky; top: var(--topbar-height); z-index: 20; padding: 9px 16px 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .toc details { position: static; }
  .toc summary { display: block; margin: 0; padding: 3px 0 7px; cursor: pointer; }
  .toc nav { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .toc-link { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); font-size: 11px; }
  .toc-link::before { display: none; }
  .toc-link.active { border-color: var(--accent); background: var(--accent-soft); }
  .toc-note, .back-link { display: none; }
  main, .footer { width: min(100% - 34px, var(--max-content)); }
  .doc-section { padding: 56px 0; }
  .overview { padding-top: 48px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .scope-panel { grid-template-columns: 1fr; }
  .scope-panel > div { min-height: 0; padding: 18px; }
  .scope-panel > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .fence-rule { padding: 0 4%; }
  .service-block { grid-template-columns: 1fr; }
  .service-block dt { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-block dt, .service-block dd { padding: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .enquiry-form { padding: 20px; }
  .footer { padding-bottom: 38px; }
}

@media (min-width: 761px) {
  .toc summary { pointer-events: none; }
}

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

@media print {
  .topbar, .toc, .enquiry-form, .footer nav { display: none; }
  .site-shell { display: block; }
  main, .footer { width: 100%; }
  .doc-section { break-inside: avoid; padding: 28px 0; }
}
