:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #f3f5f6;
  --ink: #17212b;
  --muted: #5e6b75;
  --navy: #18324a;
  --navy-deep: #0f2538;
  --navy-soft: #eaf0f4;
  --accent: #b94d16;
  --accent-dark: #963c11;
  --accent-soft: #fff1e8;
  --success: #17614a;
  --success-soft: #edf7f2;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --line: #d8e0e5;
  --line-strong: #aebcc6;
  --shadow: 0 12px 34px rgba(15, 37, 56, .08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: linear-gradient(180deg, #eef2f4 0, #f7f8f8 260px, #f3f5f6 100%); color: var(--ink); line-height: 1.5; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
.page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 72px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 2px 22px; }
.brand { display: inline-grid; gap: 0; color: var(--navy-deep); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .02em; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.site-nav a { padding: 8px 11px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 750; font-size: .9rem; }
.site-nav a:hover { background: var(--navy-soft); color: var(--navy-deep); }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.hero { padding: 28px 4px 20px; max-width: 860px; }
.eyebrow { margin: 0 0 8px; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 850; }
h1 { margin: 0; color: var(--navy-deep); font-size: clamp(2.25rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.045em; }
h2,h3,h4 { color: var(--navy-deep); }
h2,h3 { margin-top: 0; }
.hero-lead { max-width: 760px; margin: 16px 0 0; color: #3f4f5a; font-size: clamp(1.02rem, 2vw, 1.18rem); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #cfe0d7; border-radius: 999px; background: var(--success-soft); color: #244b3d; font-size: .84rem; font-weight: 700; }
.trust-strip b { color: var(--success); font-size: .82rem; }
.calculator,.results,.method-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; margin-top: 18px; }
.calculator { border-top: 4px solid var(--navy); }
.results { border-top: 4px solid var(--accent); }
.method-note { box-shadow: none; background: #f8fafb; }
.section-heading { display: grid; gap: 4px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.section-heading p:not(.step-label) { margin: 0; color: var(--muted); max-width: 720px; }
.step-label { width: fit-content; margin: 0; padding: 4px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 850; }
.results .step-label { background: var(--accent-soft); color: var(--accent-dark); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
label, fieldset { display: grid; gap: 6px; font-weight: 720; color: #283743; }
label small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.currency-input {
  position: relative;
  display: block;
  width: min(100%, 13.5rem);
}
.currency-input::before {
  content: "$";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #4b5c68;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.currency-input > input[type="number"] {
  width: 100%;
  max-width: 100%;
  padding-left: 29px;
}
input,select,button { font: inherit; }
input,select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
input:hover,select:hover { border-color: #7f93a1; }
input:focus,select:focus,button:focus-visible,summary:focus-visible,a:focus-visible { outline: 3px solid rgba(185, 77, 22, .25); outline-offset: 2px; }
input:focus,select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 77, 22, .08); }
button { min-height: 44px; border: 1px solid #8fa0ac; border-radius: var(--radius-sm); padding: 10px 14px; background: #fff; color: var(--navy-deep); cursor: pointer; font-weight: 760; transition: transform .08s ease, border-color .12s ease, background .12s ease; }
button:hover { border-color: var(--navy); background: var(--navy-soft); }
button:active { transform: translateY(1px); }
button.primary { min-height: 50px; margin-top: 22px; padding-inline: 22px; background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 7px 16px rgba(150, 60, 17, .18); font-weight: 850; }
button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.unit-toggle { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; border: 0; padding: 0; }
.unit-toggle legend { width: 100%; margin-bottom: 2px; font-weight: 760; }
.unit-toggle button { min-width: 116px; }
.unit-toggle button.active,.mode-toggle button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { width: fit-content; cursor: pointer; color: var(--navy); font-weight: 780; }
.advanced { margin-top: 14px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-soft); border: 1px solid #e4e9ed; }
.hidden { display: none !important; }
.plan-area-builder { margin-top: 18px; }
.mode-toggle { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 22px 0 8px; }
.mode-toggle legend { width: 100%; margin-bottom: 5px; color: #283743; font-weight: 780; }
.mode-toggle button { flex: 0 1 auto; }
.geometry-fields { margin-top: 16px; }
.helper-text { margin: 6px 0 14px; padding: 10px 12px; border-left: 3px solid #8ca2b2; background: #f5f8fa; color: #4c5d68; line-height: 1.45; }
.area-section { border: 1px solid #d6e0e6; border-radius: var(--radius-md); padding: 16px; margin: 12px 0; background: #fbfcfd; }
.area-section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) auto; gap: 10px; align-items: end; }
.area-section-title { margin: 0 0 12px; font-size: 1rem; }
.area-section-head .remove-section { margin-bottom: 1px; }
.section-dimensions { margin-top: 12px; }
.section-area-preview { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--navy-soft); color: #425563; }
.section-area-preview strong { color: var(--navy-deep); }
.irregular-area-summary { margin-top: 14px; padding: 14px; border: 1px solid #cad8e1; border-radius: var(--radius-md); background: #f8fbfc; line-height: 1.6; }
.irregular-area-summary dl { max-width: 460px; }
.irregular-result-summary { margin-top: 20px; }
.irregular-result-summary table { min-width: 520px; }
.primary-result { display: grid; gap: 4px; padding: 24px; border: 0; border-radius: 14px; margin: 0 0 20px; background: var(--navy-deep); color: #fff; box-shadow: 0 10px 24px rgba(15, 37, 56, .16); }
.primary-result span { color: #c8d5de; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 800; }
.primary-result strong { color: #fff; font-size: clamp(2.25rem,6vw,3.8rem); line-height: 1.05; letter-spacing: -.035em; }
.primary-result small { color: #dbe4ea; font-weight: 650; }
.result-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 18px; }
.result-grid > article,.results > article:not(.irregular-result-summary) { padding: 18px; border: 1px solid #e0e6ea; border-radius: var(--radius-md); background: #fff; }
.result-grid h3,.results > article h3 { margin-bottom: 14px; font-size: 1.04rem; }
dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 16px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; font-weight: 800; text-align: right; color: #243441; }
.plan { width: min(100%, 360px); min-width: 48px; min-height: 48px; border: 2px solid var(--navy); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 12px; background: #f8fafb; margin-inline: auto; transition: width .2s ease, aspect-ratio .2s ease; text-align: center; }
.section { min-height: 54px; margin-top: 12px; border: 1px solid #91a4b2; border-radius: var(--radius-sm); display: grid; place-items: center; padding: 8px 12px; background: #fbfcfd; text-align: center; color: #425563; }
.table-wrap { overflow-x: auto; border: 1px solid #e0e6ea; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; background: #fff; }
th,td { border-bottom: 1px solid #e4e9ed; padding: 11px 12px; text-align: right; } th:first-child,td:first-child { text-align: left; }
th { background: #f1f5f7; color: #334956; font-size: .82rem; text-transform: uppercase; letter-spacing: .035em; }
tbody tr:last-child td { border-bottom: 0; }
.errors { margin-top: 12px; color: #8a231d; font-weight: 650; }
.warning { padding: 11px 13px; border-left: 4px solid #a46b13; border-radius: 0 8px 8px 0; background: #fff8e9; color: #5d481d; margin: 8px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.cta { background: linear-gradient(135deg, #eef3f6, #f8fafb); border: 1px solid #cedae2; padding: 20px; border-radius: var(--radius-md); }
.cta h3 { margin-bottom: 7px; }
.cta p { color: #40525e; }
.cta button { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.cta small { display: block; margin-top: 9px; color: var(--muted); }
.calculation-record { margin-top: 18px; padding: 14px; border: 1px solid #e0e6ea; border-radius: var(--radius-sm); background: #fafbfc; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.measurement-diagram-host { margin: 10px 0 16px; }
@media (min-width: 761px) {
  .process-panel > .grid.geometry-fields label.currency-field,
  .linear-project-card .grid.geometry-fields label.currency-field,
  .calculator > .grid.geometry-fields label.currency-field,
  .kerb-ordering-block .grid.geometry-fields label.currency-field,
  .advanced.grid label.currency-field {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    gap: 8px;
  }

  .process-panel > .grid.geometry-fields label.currency-field > .currency-input,
  .linear-project-card .grid.geometry-fields label.currency-field > .currency-input,
  .calculator > .grid.geometry-fields label.currency-field > .currency-input,
  .kerb-ordering-block .grid.geometry-fields label.currency-field > .currency-input,
  .advanced.grid label.currency-field > .currency-input {
    flex: 0 0 9.5rem;
    width: 9.5rem;
    max-width: 9.5rem;
    margin: 0;
  }

  input[type="number"] {
    width: min(100%, 13.5rem);
    justify-self: start;
  }
  [data-plan-area-panel="rectangle"] {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(280px,360px);
    gap: 24px 30px;
    align-items: start;
  }
  [data-plan-area-panel="rectangle"] > .grid {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
    padding-top: 4px;
  }
  [data-plan-area-panel="rectangle"] > .measurement-diagram-host {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  [data-plan-area-panel="rectangle"] > .measurement-diagram-host .measurement-diagram {
    width: 100%;
  }
}
.measurement-diagram { margin: 0; width: min(100%, 360px); }
.measurement-diagram-svg { display: block; width: 100%; height: auto; border: 1px solid #d6e0e6; border-radius: var(--radius-md); background: #fff; }
.measurement-diagram figcaption { display: grid; gap: 3px; margin-top: 7px; color: #465963; font-size: .9rem; line-height: 1.35; }
.measurement-diagram figcaption small { color: var(--muted); }
.measurement-shape { fill: #f3f7f9; stroke: var(--navy); stroke-width: 2.25; vector-effect: non-scaling-stroke; }
.measurement-dimension-line { stroke: #536c7b; stroke-width: 1.8; fill: none; vector-effect: non-scaling-stroke; }
.measurement-perpendicular { stroke-dasharray: 6 5; }
.measurement-right-angle { stroke: #536c7b; stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.measurement-dimension-label { fill: #314854; font-size: 13px; font-weight: 700; }
.measurement-centre { fill: var(--navy); }
.measurement-arrow-head { fill: #536c7b; }
.measurement-target { transition: opacity .12s ease; }
.measurement-target.is-active-measurement .measurement-dimension-line { stroke: var(--accent); stroke-width: 4; }
.measurement-target.is-active-measurement .measurement-right-angle { stroke: var(--accent); stroke-width: 2.6; }
.measurement-target.is-active-measurement .measurement-dimension-label { fill: var(--accent-dark); font-weight: 850; text-decoration: underline; }
.measurement-target.is-active-measurement .measurement-arrow-head { fill: var(--accent); }
.measurement-diagram[data-active-measurement]:not([data-active-measurement=""]) .measurement-target:not(.is-active-measurement) { opacity: .42; }
.section-measurement-diagram { margin-top: 12px; }
.section-measurement-diagram .measurement-diagram { width: min(100%, 330px); }
.method-note h2 { font-size: 1.2rem; margin-bottom: 7px; }
.method-note p { color: #52626d; margin-bottom: 0; }
@media (max-width: 760px) {
  .page { width: min(100% - 20px, 1080px); padding-top: 12px; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 12px; }
  .site-nav { justify-content: flex-start; }
  .hero { padding-top: 22px; }
  .grid,.result-grid { grid-template-columns: 1fr; }
  .calculator,.results,.method-note { padding: 18px; border-radius: 15px; }
  .area-section-head { grid-template-columns: 1fr; }
  .area-section-head .remove-section { justify-self: start; }
  .mode-toggle button { flex: 1 1 100%; }
  .unit-toggle button { flex: 1 1 0; min-width: 0; }
  .measurement-diagram, .section-measurement-diagram .measurement-diagram { width: min(100%, 320px); }
  .primary-result { padding: 20px; }
  .result-grid dl {
    grid-template-columns: 1fr;
    gap: 3px 0;
  }
  .result-grid dl dt,
  .result-grid dl dd {
    grid-column: 1;
    min-width: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .result-grid dl dd {
    margin-bottom: 10px;
  }
}
@media (max-width: 430px) {
  .trust-strip span { flex: 1 1 calc(50% - 8px); justify-content: flex-start; }
  .site-nav a { padding: 7px 9px; font-size: .84rem; }
  .calculator,.results,.method-note { padding: 15px; }
  .section-heading { margin-bottom: 16px; }
}
@media print {
  body { background: white; }
  .site-header,.calculator,.hero,.method-note,.actions,.cta { display: none !important; }
  .results { border: 0; box-shadow: none; padding: 0; }
  .calculation-record { color: #111; }
  details#methodology { display: block; }
  details#methodology > div { display: block !important; }
  .measurement-diagram { display: none !important; }
}

/* Design System v0.1 — tablet/desktop density refinements.
   Presentation only: no calculator behavior or science. */

.plan-area-live-preview {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.plan-area-live-preview strong {
  color: var(--navy-deep);
  font-size: 1rem;
}

.plan-area-live-preview small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.measurement-diagram[data-preview-state="live"] .measurement-diagram-svg {
  background: #fbfdfe;
  border-color: #b9cbd6;
  box-shadow: inset 0 0 0 1px rgba(24, 50, 74, .03);
}

.measurement-diagram[data-preview-state="live"] figcaption span {
  color: var(--navy-deep);
  font-weight: 700;
}

.confirmed-geometry-summary,
.confirmed-geometry-detail {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.confirmed-geometry-summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--navy-deep);
  font-weight: 800;
}

.confirmed-geometry-detail {
  min-height: 0;
  margin-top: 8px;
  padding: 0 2px;
  color: var(--muted);
  font-size: .9rem;
}

@media (min-width: 761px) {
  /* Keep the plan-area controls visually grouped instead of spanning the page. */
  .plan-area-builder {
    max-width: 760px;
  }

  [data-plan-area-panel="rectangle"] {
    grid-template-columns: minmax(210px, 240px) minmax(260px, 290px);
    gap: 12px 30px;
    justify-content: start;
    max-width: 560px;
  }

  [data-plan-area-panel="rectangle"] > .grid {
    width: 100%;
  }

  [data-plan-area-panel="rectangle"] > .measurement-diagram-host {
    width: 290px;
    grid-row: 1 / span 2;
  }

  [data-plan-area-panel="rectangle"] > .measurement-diagram-host .measurement-diagram {
    width: 290px;
  }

  [data-plan-area-panel="rectangle"] > .plan-area-live-preview {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 240px;
    margin-top: 0;
  }

  /* Material inputs are short values, so arrange them as compact cards/columns. */
  .calculator > .grid.geometry-fields {
    grid-template-columns: repeat(auto-fit, minmax(200px, 230px));
    justify-content: start;
    align-items: start;
    gap: 18px 28px;
    max-width: 790px;
    margin-top: 24px;
  }

  .calculator > .grid.geometry-fields input[type="number"] {
    width: 100%;
    max-width: none;
  }

  /* Known-area mode needs one compact field, not a half-page track. */
  [data-plan-area-panel="known_area"] > .grid {
    grid-template-columns: minmax(200px, 230px);
    justify-content: start;
  }

  /* Advanced assumptions should use the same compact density when opened. */
  .advanced.grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
    justify-content: start;
    align-items: start;
    gap: 16px 22px;
  }

  .advanced.grid input[type="number"] {
    width: 100%;
    max-width: none;
  }

  /* Irregular mode: pair each live project preview with the values that describe it. */
  [data-plan-area-panel="irregular"] > .helper-text {
    max-width: 760px;
    margin-bottom: 12px;
    padding: 8px 10px;
    font-size: .92rem;
  }

  .area-section {
    position: relative;
    display: grid;
    grid-template-columns: 240px minmax(300px, 1fr);
    grid-template-areas:
      "title title"
      "diagram controls"
      "diagram dimensions"
      "diagram preview";
    gap: 10px 24px;
    max-width: 760px;
    padding: 16px;
  }

  .area-section-title {
    grid-area: title;
    margin: 0;
    padding-right: 72px;
    line-height: 1.3;
  }

  .section-measurement-diagram {
    grid-area: diagram;
    align-self: start;
    margin: 0;
    width: 240px;
  }

  .section-measurement-diagram .measurement-diagram {
    width: 240px;
  }

  .area-section-head {
    grid-area: controls;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
  }

  .area-section-head label {
    min-width: 0;
  }

  .area-section-head select {
    min-height: 42px;
  }

  .area-section-head .remove-section {
    position: absolute;
    top: 11px;
    right: 11px;
    min-height: 0;
    margin: 0;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .area-section-head .remove-section:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .section-dimensions.grid {
    grid-area: dimensions;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    gap: 12px 16px;
    margin: 0;
  }

  .section-dimensions.grid input[type="number"] {
    width: 100%;
    max-width: none;
  }

  .section-area-preview {
    grid-area: preview;
    margin: 2px 0 0;
    padding: 9px 0 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: .9rem;
  }

  .section-area-preview[data-valid="true"] {
    color: #425563;
  }

  .section-area-preview[data-valid="true"] strong {
    color: var(--navy-deep);
  }
}

/* Design System v0.2 — site-wide compact form controls.
   Presentation only: keep values easy to scan without oversized numeric boxes. */
label {
  gap: 4px;
}

input,
select {
  min-height: 42px;
  padding: 8px 10px;
  font-weight: 600;
}

@media (min-width: 761px) {
  input[type="number"] {
    width: min(100%, 9.5rem);
    justify-self: start;
  }

  .calculator > .grid.geometry-fields {
    grid-template-columns: repeat(auto-fit, minmax(145px, 165px));
    gap: 14px 18px;
    max-width: 560px;
    margin-top: 20px;
  }

  .calculator > .grid.geometry-fields input[type="number"],
  .advanced.grid input[type="number"] {
    width: min(100%, 9.5rem);
    max-width: 9.5rem;
  }

  [data-plan-area-panel="known_area"] > .grid {
    grid-template-columns: minmax(145px, 165px);
  }

  .advanced.grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 185px));
    gap: 14px 18px;
  }

  .section-dimensions.grid input[type="number"] {
    width: min(100%, 9rem);
    max-width: 9rem;
  }
}

@media (max-width: 760px) {
  input,
  select {
    min-height: 44px;
    padding: 9px 10px;
  }
}

.site-footer {
  margin: 36px 0 0;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .74);
  font-size: .86rem;
}

.site-footer p {
  margin: 0;
  font-weight: 650;
  letter-spacing: .01em;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  background: rgba(255, 255, 255, .1);
}

.trust-page {
  max-width: 880px;
  margin-top: 18px;
}

.trust-page > section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.trust-page > section:first-of-type {
  border-top: 0;
}

.trust-page h2 {
  margin: 0 0 8px;
}

.trust-page p,
.trust-page li {
  line-height: 1.65;
}

.trust-page ul {
  padding-left: 1.25rem;
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr;
    padding: 22px 16px 24px;
    gap: 14px;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin: 0 -6px;
  }

  .site-footer a {
    padding-inline: 6px;
  }
}


/* JobsiteMeasure content pages */
.content-page {
  max-width: 900px;
}

.content-hero h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
}

.content-page > section,
.guide-card,
.source-register {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.content-page > section:first-child {
  margin-top: 0;
}

.content-page h2 {
  margin-bottom: 8px;
}

.content-page h3 {
  margin: 18px 0 6px;
}

.content-page p,
.content-page li {
  line-height: 1.68;
}

.content-page ul,
.content-page ol {
  padding-left: 1.35rem;
}

.content-page .lede-box {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.content-page .formula-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.content-page .formula-lines code {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  white-space: normal;
  font: inherit;
  font-weight: 750;
}

.content-page table {
  min-width: 680px;
}

.content-page .table-wrap {
  margin-top: 12px;
}

.guide-grid,
.content-pathways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  margin-top: 0;
}

.guide-card h2,
.guide-card h3,
.guide-card p {
  margin-top: 0;
}

.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-card a {
  font-weight: 800;
}

.content-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: #cad8e1 !important;
  background: linear-gradient(135deg, #eef3f6, #fff) !important;
}

.content-cta p {
  flex: 1 1 460px;
  margin: 0;
}

.content-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.content-cta a:hover {
  background: var(--navy-deep);
  color: #fff;
}

.review-note {
  color: var(--muted);
  font-size: .9rem;
}

.methodology-source-link {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.methodology-source-link a {
  font-weight: 750;
}

.content-pathways {
  margin-top: 18px;
}

.content-pathways article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.content-pathways h2 {
  margin-bottom: 7px;
  font-size: 1.2rem;
}

.content-pathways p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .content-page > section,
  .guide-card,
  .source-register {
    padding: 17px;
  }

  .guide-grid,
  .content-pathways {
    grid-template-columns: 1fr;
  }
}

