/* Shared FenceCost components. Tokens live in tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--fc-bg);
  color: var(--fc-ink);
  font-family: var(--fc-sans);
  font-size: var(--fc-t-base);
  line-height: var(--fc-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: inherit;
  font-family: var(--fc-display);
  font-weight: 500;
  text-wrap: balance;
}

h1,
h2 {
  line-height: var(--fc-lh-display);
  letter-spacing: var(--fc-track-display);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: var(--fc-s-4);
}

a:hover {
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fc-gold-soft);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

.fc-main,
.af-page {
  width: 100%;
  min-width: 0;
}

.skip {
  position: absolute;
  z-index: 20;
  top: var(--fc-s-12);
  left: var(--fc-s-12);
  padding: var(--fc-s-8) var(--fc-s-16);
  transform: translateY(-200%);
  border-radius: var(--fc-r-pill);
  background: var(--fc-ink);
  color: var(--fc-on-dark);
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

/* Header and navigation */
.site-header {
  display: flex;
  min-height: 72px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--fc-s-8) var(--fc-s-16);
  border-bottom: var(--fc-border);
}

.logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--fc-s-8);
  color: inherit;
  font-family: var(--fc-display);
  font-size: var(--fc-t-lg);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: var(--fc-s-40);
  height: var(--fc-s-40);
  flex: 0 0 var(--fc-s-40);
}

.tld {
  color: var(--fc-ink-2);
  font-weight: 400;
}

.nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--fc-s-4);
}

.nav-link {
  display: inline-flex;
  min-height: var(--fc-s-40);
  align-items: center;
  padding-inline: var(--fc-s-12);
  border: var(--fc-border);
  border-radius: var(--fc-r-pill);
  font-size: var(--fc-t-xs);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  border-color: var(--fc-rule-strong);
  text-decoration: none;
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: var(--fc-control-h);
  align-items: center;
  justify-content: center;
  gap: var(--fc-s-8);
  padding: var(--fc-s-12) var(--fc-s-20);
  border: var(--fc-border-ink);
  border-radius: var(--fc-r-pill);
  background: var(--fc-ink);
  color: var(--fc-on-dark);
  font-size: var(--fc-t-sm);
  font-weight: 600;
  line-height: var(--fc-lh-tight);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.header-cta {
  min-height: var(--fc-s-40);
  padding: var(--fc-s-4) var(--fc-s-16);
}

.header-cta:hover,
.btn:hover {
  border-color: var(--fc-ink-2);
  background: var(--fc-ink-2);
  color: var(--fc-on-dark);
  text-decoration: none;
}

.header-cta-icon {
  display: grid;
  width: var(--fc-s-32);
  height: var(--fc-s-32);
  flex: 0 0 var(--fc-s-32);
  place-items: center;
  border-radius: var(--fc-r-pill);
  background: var(--fc-gold);
  color: var(--fc-ink);
}

.header-cta-text {
  display: grid;
  gap: var(--fc-s-4);
  text-align: left;
}

.header-cta-text small {
  color: var(--fc-on-dark-muted);
  font-size: var(--fc-t-xs);
}

.btn-ghost {
  background: transparent;
  color: var(--fc-ink);
}

.btn-ghost:hover {
  border-color: var(--fc-ink);
  background: var(--fc-paper);
  color: var(--fc-ink);
}

.fc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fc-s-12);
  margin-top: var(--fc-s-32);
}

.af-page .btn,
.af-page .header-cta {
  font-size: var(--fc-t-xs);
}

.af-cta-link {
  margin-top: var(--fc-s-20);
}

.more {
  margin-top: var(--fc-s-20);
}

/* Breadcrumbs and heading stack */
.crumb,
.crumbs {
  display: flex;
  max-width: var(--fc-wrap);
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fc-s-8);
  margin-inline: auto;
  padding: var(--fc-s-24) var(--fc-gutter) 0;
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.crumb a,
.crumbs a {
  text-decoration: none;
}

.crumb a:hover,
.crumbs a:hover {
  text-decoration: underline;
}

.af-hero,
.page-hero {
  width: 100%;
  max-width: var(--fc-wrap);
  margin-inline: auto;
  padding: var(--fc-s-40) var(--fc-gutter) var(--fc-s-48);
}

.fc-fence-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.fc-fence-hero-copy {
  min-width: 0;
}

.fc-fence-photo {
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--fc-border);
  border-radius: var(--fc-r-lg);
}

.fc-fence-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-eyebrow,
.af-label,
.eyebrow {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
  font-weight: 500;
  letter-spacing: var(--fc-track-label);
  line-height: var(--fc-lh-tight);
  text-transform: uppercase;
}

.af-hero h1,
.page-hero h1 {
  max-width: 16ch;
  margin-block: var(--fc-s-12) var(--fc-s-16);
  font-size: clamp(var(--fc-t-2xl), 6vw, var(--fc-t-4xl));
}

.af-lede,
.lede {
  max-width: 62ch;
  color: var(--fc-ink);
  font-size: var(--fc-t-base);
  line-height: var(--fc-lh-body);
}

.af-lede b,
.lede b {
  font-weight: 600;
}

.af-answer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin-top: var(--fc-s-24);
  overflow: hidden;
  border: var(--fc-border-ink);
  border-radius: var(--fc-r-lg);
  background: var(--fc-paper);
}

.af-answer-main {
  padding: var(--fc-s-24);
  border-right: var(--fc-border);
}

.af-answer-main .af-value {
  margin-block: var(--fc-s-12);
  font-family: var(--fc-display);
  font-size: clamp(var(--fc-t-xl), 4vw, var(--fc-t-2xl));
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--fc-track-display);
  line-height: 1;
}

.af-answer-main p,
.af-facts span {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.af-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-facts > div {
  padding: var(--fc-s-16) var(--fc-s-20);
  border-bottom: var(--fc-border);
}

.af-facts > div:nth-child(odd) {
  border-right: var(--fc-border);
}

.af-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.af-facts b {
  display: block;
  font-family: var(--fc-display);
  font-size: var(--fc-t-lg);
  font-weight: 500;
  line-height: var(--fc-lh-tight);
}

/* Shared sections and their labels */
.fc-section,
.af-sec,
.section {
  width: 100%;
  max-width: var(--fc-wrap);
  margin-inline: auto;
  padding: var(--fc-sec-pad) var(--fc-gutter);
  border-top: var(--fc-border);
}

.fc-section,
.af-sec {
  display: grid;
  grid-template-columns: minmax(0, var(--fc-label-col)) minmax(0, var(--fc-content-col));
  gap: var(--fc-gutter);
}

.fc-section-label,
.af-sec-label {
  padding-top: var(--fc-s-8);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
  letter-spacing: var(--fc-track-label);
  line-height: var(--fc-lh-tight);
  text-transform: uppercase;
}

.fc-section-label b,
.af-sec-label b {
  display: block;
  margin-bottom: var(--fc-s-4);
  color: var(--fc-ink);
  font-family: var(--fc-display);
  font-size: var(--fc-t-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fc-section-content,
.af-sec-content {
  min-width: 0;
}

.fc-section h2,
.af-sec h2,
.section h2 {
  max-width: 18ch;
  font-size: clamp(var(--fc-t-xl), 4vw, var(--fc-t-3xl));
  letter-spacing: -0.035em;
}

.fc-section h2.af-small,
.af-sec h2.af-small,
.section h2.af-small {
  font-size: var(--fc-t-2xl);
}

.af-intro {
  max-width: 62ch;
  margin-top: var(--fc-s-12);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-base);
  line-height: var(--fc-lh-body);
}

.af-note,
.af-foot,
.sub {
  margin-top: var(--fc-s-16);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.af-foot {
  color: var(--fc-ink-3);
}

.af-check,
.callout,
.form-closed {
  margin-top: var(--fc-s-16);
  padding: var(--fc-s-12) var(--fc-s-16);
  border: var(--fc-border);
  border-radius: var(--fc-r-sm);
  background: var(--fc-gold-soft);
  font-size: var(--fc-t-xs);
}

.tool-card {
  min-width: 0;
  padding: var(--fc-s-20);
  border: var(--fc-border);
  border-radius: var(--fc-r-lg);
  background: var(--fc-paper);
}

.section-head {
  margin-bottom: var(--fc-s-24);
}

.section-head h2 {
  margin-top: var(--fc-s-8);
}

.section-head > p:not(.eyebrow) {
  margin-top: var(--fc-s-12);
  color: var(--fc-ink-2);
}

.faq {
  display: block;
  border-top: var(--fc-border);
}

.faq:last-child {
  border-bottom: var(--fc-border);
}

.faq summary {
  padding-block: var(--fc-s-16);
  cursor: pointer;
  font-family: var(--fc-display);
  font-size: var(--fc-t-lg);
}

.faq p {
  max-width: 62ch;
  padding-bottom: var(--fc-s-16);
  color: var(--fc-ink-2);
}

.hero-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--fc-s-16);
}

.table-wrap {
  width: 100%;
  min-width: 0;
  margin-top: var(--fc-s-20);
}

.table-wrap > table {
  width: 100%;
}

/* StepList: the number is generated once by this CSS counter. */
.af-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fc-s-20);
  margin-block: var(--fc-s-24);
  padding: 0;
  counter-reset: fc-step;
  list-style: none;
}

.af-steps li {
  min-width: 0;
  padding-top: var(--fc-s-12);
  border-top: var(--fc-border);
  counter-increment: fc-step;
  overflow-wrap: anywhere;
}

.af-steps li::before {
  display: block;
  margin-bottom: var(--fc-s-8);
  color: var(--fc-ink-3);
  content: counter(fc-step, decimal-leading-zero);
  font-family: var(--fc-display);
  font-size: var(--fc-t-lg);
  font-weight: 500;
}

/* PriceTable, RowList and compact data patterns */
.fc-price-table,
.af-table,
.price-table,
.mini-table {
  width: 100%;
  margin-top: var(--fc-s-20);
  border-collapse: collapse;
  font-size: var(--fc-t-sm);
}

.fc-type-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: var(--fc-s-12);
}

.fc-type-thumb {
  display: block;
  width: 76px;
  height: 57px;
  object-fit: cover;
  border: var(--fc-border);
  border-radius: var(--fc-r-sm);
}

.fc-price-table th,
.af-table th,
.price-table th,
.mini-table th {
  padding: 0 var(--fc-s-16) var(--fc-s-12) 0;
  border-bottom: var(--fc-border-ink);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.fc-price-table td,
.af-table td,
.price-table td,
.mini-table td {
  padding: var(--fc-s-16) var(--fc-s-16) var(--fc-s-16) 0;
  border-bottom: var(--fc-border);
  vertical-align: top;
}

.fc-price-table th:nth-child(1),
.af-table th:nth-child(1),
.price-table th:nth-child(1),
.fc-price-table td:nth-child(1),
.af-table td:nth-child(1),
.price-table td:nth-child(1) {
  min-width: 32%;
}

.fc-price-table th:nth-child(2),
.af-table th:nth-child(2),
.price-table th:nth-child(2),
.fc-price-table td:nth-child(2),
.af-table td:nth-child(2),
.price-table td:nth-child(2) {
  width: max-content;
}

.fc-price-table td b,
.fc-price-table .range,
.af-table td b,
.af-table .range,
.price-table td b,
.price-table .range,
.mini-table .range {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fc-price-table td a,
.af-table td a,
.price-table td a,
.fc-price-table th a,
.af-table th a,
.price-table th a,
.mini-table td a {
  text-decoration: none;
}

.fc-price-table td a:hover,
.af-table td a:hover,
.price-table td a:hover,
.fc-price-table th a:hover,
.af-table th a:hover,
.price-table th a:hover,
.mini-table td a:hover {
  text-decoration: underline;
}

.fc-price-table .share,
.af-table .share,
.price-table .share {
  font-weight: 600;
}

.fc-price-table .muted,
.af-table .muted,
.fc-price-table .sub,
.af-table .sub,
.price-table .muted,
.price-table .sub {
  color: var(--fc-ink-3);
}

.af-table .sub,
.price-table .sub {
  display: block;
  margin-top: var(--fc-s-4);
  font-size: var(--fc-t-xs);
}

.af-qa {
  margin-top: var(--fc-s-24);
  border-top: var(--fc-border-ink);
}

.af-qa-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr) minmax(0, var(--fc-s-16));
  align-items: baseline;
  gap: var(--fc-s-16);
  padding-block: var(--fc-s-16);
  border-bottom: var(--fc-border);
  text-decoration: none;
}

.af-qa-row .q,
.af-qa-row .a,
.af-qa-row .d {
  min-width: 0;
  overflow-wrap: anywhere;
}

.af-qa-row .q {
  font-family: var(--fc-display);
  font-size: var(--fc-t-base);
  font-weight: 500;
  line-height: var(--fc-lh-tight);
}

.af-qa-row .a {
  font-family: var(--fc-display);
  font-size: var(--fc-t-lg);
  font-weight: 500;
  line-height: var(--fc-lh-tight);
}

.af-qa-row .d {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.af-qa-row .go {
  color: var(--fc-ink-3);
}

.af-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--fc-s-24);
  border-top: var(--fc-border-ink);
}

.af-grid3 > div {
  min-width: 0;
  padding: var(--fc-s-16) var(--fc-s-16) var(--fc-s-16) 0;
  border-bottom: var(--fc-border);
}

.af-grid3 > div + div {
  padding-left: var(--fc-s-16);
  border-left: var(--fc-border);
}

.af-grid3 h3 {
  font-size: var(--fc-t-lg);
}

.af-grid3 p {
  margin-top: var(--fc-s-8);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.af-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fc-s-8);
  margin-top: var(--fc-s-20);
}

.af-pills a {
  padding: var(--fc-s-8) var(--fc-s-12);
  border: var(--fc-border);
  border-radius: var(--fc-r-pill);
  background: var(--fc-paper);
  font-size: var(--fc-t-xs);
  text-decoration: none;
}

.af-pills a:hover {
  border-color: var(--fc-rule-strong);
}

.af-faq,
.af-qa,
.af-wording {
  margin-top: var(--fc-s-24);
  border-top: var(--fc-border-ink);
}

.af-faq details,
.af-wording {
  border-bottom: var(--fc-border);
}

.af-faq summary,
.af-wording summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--fc-s-16);
  padding-block: var(--fc-s-16);
  cursor: pointer;
  font-family: var(--fc-display);
  font-size: var(--fc-t-lg);
  font-weight: 500;
  list-style: none;
}

.af-faq summary::-webkit-details-marker,
.af-wording summary::-webkit-details-marker {
  display: none;
}

.af-faq summary::after {
  color: var(--fc-ink-3);
  content: "+";
}

.af-faq details[open] summary::after {
  content: "−";
}

.af-faq p {
  max-width: 62ch;
  padding: 0 0 var(--fc-s-16);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-base);
}

.af-wording summary {
  font-family: var(--fc-sans);
  font-size: var(--fc-t-xs);
}

.af-wording blockquote {
  margin: 0 0 var(--fc-s-12);
  padding-left: var(--fc-s-16);
  border-left: 2px solid var(--fc-gold);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.af-rule-group {
  padding-block: var(--fc-s-12);
  border-bottom: var(--fc-border);
}

.af-rule-group h3 {
  margin-bottom: var(--fc-s-8);
  font-size: var(--fc-t-base);
}

.af-pale-tag {
  display: inline-block;
  margin-left: var(--fc-s-8);
  padding: var(--fc-s-4) var(--fc-s-8);
  border-radius: var(--fc-r-pill);
  background: var(--fc-gold);
  font-size: var(--fc-t-xs);
  text-transform: uppercase;
}

/* Input, Select and SegmentedControl */
.af-field {
  min-width: 0;
}

.af-field > label,
.quote-form > fieldset > label:not(.check-row) {
  display: block;
  margin-bottom: var(--fc-s-8);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
  font-weight: 500;
}

.af-field input[type="text"],
.af-field input[type="number"],
.af-field input[type="email"],
.af-field input[type="tel"],
.af-field input[type="search"],
.af-field select,
.quote-form input[type="text"],
.quote-form input[type="number"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form input[type="search"],
.quote-form select {
  width: 100%;
  min-width: 0;
  height: var(--fc-control-h);
  padding: var(--fc-s-12) var(--fc-control-pad-x);
  border: var(--fc-border-strong);
  border-radius: var(--fc-r-md);
  background-color: var(--fc-bg);
  color: var(--fc-ink);
  font-size: var(--fc-t-sm);
}

.af-field select,
.quote-form select,
.job-adder-followup select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--fc-select-pad-right);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right var(--fc-control-pad-x) center;
  background-repeat: no-repeat;
  background-size: var(--fc-s-16);
}

.quote-form textarea {
  width: 100%;
  min-width: 0;
  padding: var(--fc-s-12) var(--fc-control-pad-x);
  border: var(--fc-border-strong);
  border-radius: var(--fc-r-md);
  background-color: var(--fc-bg);
  color: var(--fc-ink);
  font-size: var(--fc-t-sm);
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.af-field input[readonly] {
  background: var(--fc-paper);
}

.af-field input:focus-visible,
.af-field select:focus-visible,
.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible {
  border-color: var(--fc-gold);
  outline: 3px solid var(--fc-gold-soft);
}

.af-segment {
  display: flex;
  width: 100%;
  min-width: 0;
  height: var(--fc-control-h);
  overflow: hidden;
  border: var(--fc-border-strong);
  border-radius: var(--fc-r-md);
}

.af-segment button {
  min-width: 0;
  flex: 1 1 0;
  padding-inline: var(--fc-s-8);
  border: 0;
  border-right: var(--fc-border);
  background: transparent;
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
  cursor: pointer;
}

.af-segment button:last-child {
  border-right: 0;
}

.af-segment button[aria-pressed="true"] {
  background: var(--fc-ink);
  color: var(--fc-on-dark);
}

/* Chip toggle and shared EstimateCard */
.af-est {
  width: 100%;
  min-width: 0;
  margin-top: var(--fc-s-20);
  overflow: hidden;
  border: var(--fc-border-ink);
  border-radius: var(--fc-r-xl);
  background: var(--fc-paper);
}

.af-est-in {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1.6fr) minmax(0, 1.3fr) minmax(80px, 0.75fr);
  gap: var(--fc-s-16);
  padding: var(--fc-s-24);
}

.af-field label {
  display: block;
}

.af-field.wide {
  grid-column: auto;
}

.af-x {
  display: block;
  padding: 0 var(--fc-s-24) var(--fc-s-20);
}

.af-x-label {
  display: block;
  margin-bottom: var(--fc-s-8);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.fc-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--fc-s-8);
  min-width: 0;
}

.af-chip {
  position: relative;
  display: inline-flex;
  min-height: var(--fc-chip-h);
  flex: 0 0 auto;
  align-items: center;
  gap: var(--fc-s-8);
  padding: var(--fc-s-8) var(--fc-s-12);
  border: var(--fc-border-strong);
  border-radius: var(--fc-r-pill);
  background: var(--fc-bg);
  color: var(--fc-ink);
  font-size: var(--fc-t-xs);
  line-height: var(--fc-lh-tight);
  cursor: pointer;
}

.af-chip:has(input[type="checkbox"]:checked) {
  border-color: var(--fc-gold);
  background: var(--fc-gold);
}

.af-chip input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.af-chip:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid var(--fc-gold-soft);
  outline-offset: 2px;
}

.af-chip .q {
  color: var(--fc-ink-2);
}

.job-adders-followups {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fc-s-12);
  margin-top: var(--fc-s-8);
}

.job-adders-followups:empty {
  display: none;
}

.job-adder-followup {
  display: flex;
  align-items: center;
  gap: var(--fc-s-8);
}

.job-adder-followup[hidden] {
  display: none;
}

.job-adder-followup label {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.job-adder-followup select {
  width: auto;
  max-width: 100%;
  height: var(--fc-control-h);
  padding: var(--fc-s-12) var(--fc-select-pad-right) var(--fc-s-12) var(--fc-control-pad-x);
  border: var(--fc-border-strong);
  border-radius: var(--fc-r-sm);
  background-color: var(--fc-bg);
  font-size: var(--fc-t-xs);
}

.af-out {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 1.55fr);
  border-top: var(--fc-border);
}

.af-out > div {
  min-width: 0;
  padding: var(--fc-s-20) var(--fc-s-24);
}

.af-out .std {
  border-right: var(--fc-border);
}

.af-out .with {
  border-right: var(--fc-border);
}

.af-out .af-label {
  color: var(--fc-ink-2);
}

.af-out .af-value {
  margin-block: var(--fc-s-8);
  font-family: var(--fc-display);
  font-size: clamp(var(--fc-t-xl), 3vw, var(--fc-t-2xl));
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--fc-track-display);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.af-out .af-small {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
  line-height: var(--fc-lh-tight);
}

.af-out .with.off .af-value {
  color: var(--fc-ink-3);
}

.af-out .cta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: var(--fc-s-8);
  background: var(--fc-ink);
  color: var(--fc-on-dark);
}

.af-out .cta .btn,
.af-band .btn,
.quote-band .btn {
  border-color: var(--fc-gold);
  background: var(--fc-gold);
  color: var(--fc-ink);
}

.af-out .cta .btn:hover,
.af-band .btn:hover,
.quote-band .btn:hover {
  border-color: var(--fc-on-dark);
  background: var(--fc-on-dark);
  color: var(--fc-ink);
}

.af-out .cta small {
  color: var(--fc-on-dark-muted);
  font-size: var(--fc-t-xs);
  line-height: var(--fc-lh-tight);
}

.job-adders-cap {
  margin: var(--fc-s-12) var(--fc-s-20) 0;
  padding: var(--fc-s-12) var(--fc-s-16);
  border-radius: var(--fc-r-sm);
  background: var(--fc-gold-soft);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.job-adders-notes {
  display: grid;
  gap: var(--fc-s-8);
  margin: var(--fc-s-12) 0 0;
  padding: 0 var(--fc-s-24) var(--fc-s-16) var(--fc-s-40);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

/* Full-bleed dark band; section content remains in the page Container. */
.af-band,
.quote-band {
  width: 100%;
  margin-inline: 0;
  background: var(--fc-ink);
  color: var(--fc-on-dark);
}

.quote-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: var(--fc-gutter);
  max-width: var(--fc-wrap);
  margin-inline: auto;
  padding: var(--fc-sec-pad) var(--fc-gutter);
}

.quote-band-inner .eyebrow,
.quote-band-inner > div > p:last-child {
  color: var(--fc-on-dark-muted);
}

.quote-band-inner h2 {
  max-width: 18ch;
  margin-block: var(--fc-s-8);
  color: var(--fc-on-dark);
  font-family: var(--fc-display);
  font-size: var(--fc-t-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: var(--fc-lh-tight);
}

.af-band .af-sec,
.quote-band .af-sec {
  border-top: 0;
}

.af-band .af-sec-label,
.af-band .af-intro,
.quote-band .af-sec-label,
.quote-band .af-intro {
  color: var(--fc-on-dark-muted);
}

.af-band .af-sec-label b,
.quote-band .af-sec-label b {
  margin-bottom: var(--fc-s-4);
  color: var(--fc-on-dark);
  font-family: var(--fc-sans);
  font-size: var(--fc-t-xs);
  letter-spacing: var(--fc-track-label);
  text-transform: uppercase;
}

.af-band .af-steps li,
.quote-band .af-steps li {
  border-color: var(--fc-band-rule);
  color: var(--fc-on-dark-muted);
}

.af-band .af-steps li::before,
.quote-band .af-steps li::before {
  color: var(--fc-gold);
}

.af-band .af-cta-link,
.quote-band .af-cta-link {
  margin-top: var(--fc-s-20);
}

/* Additional content structures used by rule and methodology pages */
.prose {
  max-width: 62ch;
}

.prose p,
.guide-body p {
  margin-top: var(--fc-s-16);
}

.prose ul,
.prose ol,
.guide-body ul,
.guide-body ol {
  margin-top: var(--fc-s-12);
  padding-left: var(--fc-s-24);
}

.prose li + li,
.guide-body li + li {
  margin-top: var(--fc-s-8);
}

.src-list {
  display: grid;
  gap: var(--fc-s-12);
  margin-top: var(--fc-s-20);
  padding: 0;
  list-style: none;
}

.src-list li {
  display: grid;
  gap: var(--fc-s-8) var(--fc-s-16);
  padding-block: var(--fc-s-16);
  border-bottom: var(--fc-border);
}

.src-list b {
  font-size: var(--fc-t-sm);
  font-weight: 600;
}

.src-list span,
.src-list em {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-sm);
  font-style: normal;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: var(--fc-s-8);
  margin-top: var(--fc-s-24);
  padding: var(--fc-s-8) var(--fc-s-16);
  border-radius: var(--fc-r-pill);
  background: var(--fc-gold-soft);
  font-size: var(--fc-t-xs);
}

.pc {
  display: grid;
  gap: var(--fc-s-12);
  margin-top: var(--fc-s-32);
}

.pc > div {
  padding: var(--fc-s-20);
  border-top: var(--fc-border);
}

.pc ul {
  margin-top: var(--fc-s-12);
  padding-left: var(--fc-s-20);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-sm);
}

.nearby {
  margin-top: var(--fc-s-24);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fc-s-8);
}

.guide-body {
  max-width: 62ch;
  overflow-wrap: anywhere;
}

.guide-body h2 {
  margin-top: var(--fc-s-48);
  font-size: var(--fc-t-2xl);
}

.guide-body .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.src-local,
.src-national {
  color: var(--fc-ink-2);
}

/* Quote form reuses the shared controls and estimate card without nested cards. */
.quote-form {
  display: grid;
  width: 100%;
  max-width: var(--fc-wrap);
  gap: var(--fc-s-24);
  margin-inline: auto;
  padding: 0 var(--fc-gutter) var(--fc-s-64);
}

.quote-form fieldset {
  min-width: 0;
  margin: 0;
  padding: var(--fc-s-24) 0;
  border: 0;
  border-top: var(--fc-border);
}

.quote-form fieldset legend {
  display: block;
  width: 100%;
  margin-bottom: var(--fc-s-16);
  padding: 0;
}

.quote-form fieldset legend h2 {
  margin-top: var(--fc-s-8);
  font-size: var(--fc-t-xl);
}

.quote-form > fieldset > label:not(.check-row) {
  margin: var(--fc-s-16) 0 var(--fc-s-8);
}

.quote-form .check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--fc-s-8);
  margin-block: var(--fc-s-16);
  color: var(--fc-ink-2);
  font-size: var(--fc-t-sm);
  line-height: var(--fc-lh-body);
}

.quote-form .check-row input {
  width: auto;
  flex: 0 0 auto;
  margin-top: var(--fc-s-4);
  accent-color: var(--fc-gold);
}

.fc-main #lengths input[type="number"] {
  width: 100%;
  min-width: 0;
  height: var(--fc-control-h);
  padding: var(--fc-s-12) var(--fc-control-pad-x);
  border: var(--fc-border-strong);
  border-radius: var(--fc-r-md);
  background: var(--fc-bg);
  color: var(--fc-ink);
}

.quote-form button[type="submit"] {
  margin-top: var(--fc-s-20);
}

.job-standard-note,
.estimate-out {
  color: var(--fc-ink-2);
  font-size: var(--fc-t-xs);
}

.estimate-out {
  line-height: var(--fc-lh-body);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

/* Footer uses the same Container and gutter as the rest of the site. */
.site-footer {
  width: 100%;
  margin-top: 0;
  background: var(--fc-ink);
  color: var(--fc-on-dark);
}

.fc-footer-inner,
.footer-inner {
  padding-top: var(--fc-s-80);
  padding-bottom: max(var(--fc-s-48), env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--fc-s-32);
}

.footer-grid > div {
  min-width: 0;
}

.footer-grid .logo {
  color: var(--fc-on-dark);
  font-size: var(--fc-t-lg);
}

.footer-grid .logo .tld {
  color: var(--fc-on-dark-muted);
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--fc-on-dark-muted);
  font-size: var(--fc-t-sm);
}

.footer-grid p {
  margin-top: var(--fc-s-12);
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--fc-on-dark);
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 72ch;
  margin-top: var(--fc-s-40);
  padding-top: var(--fc-s-24);
  border-top: 1px solid var(--fc-band-rule);
  color: var(--fc-on-dark-muted);
  font-size: var(--fc-t-xs);
  line-height: var(--fc-lh-body);
}

@media (min-width: 821px) {
  .nav {
    display: flex;
  }
}

@media (min-width: 768px) {
  .src-list li {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr) max-content;
    align-items: start;
  }

  .pc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .af-est-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-est-in .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding-block: var(--fc-s-8);
  }

  .crumb,
  .crumbs {
    padding-top: var(--fc-s-16);
  }

  .af-hero,
  .page-hero {
    padding-block: var(--fc-s-32);
  }

  .fc-fence-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--fc-s-20);
  }

  .af-answer {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-answer-main {
    border-right: 0;
    border-bottom: var(--fc-border);
  }

  .af-sec {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--fc-s-12);
  }

  .af-sec-label {
    display: flex;
    align-items: baseline;
    gap: var(--fc-s-8);
  }

  .af-sec-label b {
    margin: 0;
    font-size: var(--fc-t-xl);
  }

  .af-qa-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--fc-s-8) var(--fc-s-12);
  }

  .af-qa-row .a {
    grid-column: 2;
    grid-row: 1;
  }

  .af-qa-row .d {
    grid-column: 1 / -1;
  }

  .af-qa-row .go {
    display: none;
  }

  .af-est-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--fc-s-16);
  }

  .af-out {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-out .std {
    border-bottom: var(--fc-border);
  }

  .af-out .with {
    border-right: 0;
    border-bottom: var(--fc-border);
  }

  .af-out .cta {
    grid-column: 1 / -1;
  }

  .af-grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-grid3 > div + div {
    padding-left: 0;
    border-left: 0;
  }

.fc-price-table thead,
.af-table thead,
.price-table thead {
    display: none;
  }

.fc-price-table,
.af-table,
.price-table {
    display: block;
    table-layout: fixed;
  }

.fc-price-table tbody,
.af-table tbody,
.price-table tbody,
.fc-price-table tr,
.af-table tr,
.price-table tr {
    display: block;
    width: 100%;
  }

.fc-price-table tr,
.af-table tr,
.price-table tr {
    padding-block: var(--fc-s-12);
    border-bottom: var(--fc-border);
  }

.fc-price-table td,
.af-table td,
.price-table td {
    display: block;
    width: 100%;
    padding: var(--fc-s-4) 0;
    border: 0;
  }

.fc-price-table td:nth-child(2),
.af-table td:nth-child(2),
.price-table td:nth-child(2) {
    width: 100%;
  }

.fc-price-table td:first-child,
.af-table td:first-child,
.price-table td:first-child {
    font-weight: 600;
  }

.fc-price-table td[data-label]::before,
.af-table td[data-label]::before,
.price-table td[data-label]::before {
    display: block;
    margin-bottom: var(--fc-s-4);
    color: var(--fc-ink-3);
    content: attr(data-label);
    font-size: var(--fc-t-xs);
    font-weight: 400;
    text-transform: uppercase;
  }

}

@media (max-width: 767px) {
  .af-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-band-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-est-in {
    gap: var(--fc-s-12);
  }

  .af-est-in .wide {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--fc-s-24);
  }
}

@media (max-width: 600px) {
  .af-out {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-out .std,
  .af-out .with {
    border-right: 0;
    border-bottom: var(--fc-border);
  }

  .af-out .cta {
    grid-column: auto;
  }

  .af-out .af-value {
    white-space: normal;
  }

  .af-grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-qa-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .af-table .range {
    white-space: normal;
  }

  .job-adder-followup {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .job-adder-followup select {
    width: min(100%, 320px);
  }
}

@media (max-width: 480px) {
  .af-est-in .af-field:has(select.fc-select) {
    grid-column: 1 / -1;
  }
}
