/* strata-calculator.css: the strata fees calculator. Its own file, not
   styles.css (which can be served a day stale). Built on the site's own
   tokens and the council calculator's patterns (27 November 2026): breadcrumb,
   eyebrow card, monospace labels, the .cr-picker-input field style, the
   site's .toggle-group buttons and the large teal result figure. Light mode
   follows automatically through the same variables. */
.sc-main { max-width: 1040px; margin: 0 auto; padding: 26px 20px 64px; }
.sc-crumb { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; letter-spacing: .02em; }
.sc-crumb a { color: var(--text-muted); }
.sc-eyebrow { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.sc-hero { padding: 24px 26px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card, 12px); }
.sc-hero h1 { font-family: var(--font-display, inherit); margin: 0 0 10px; line-height: 1.2; }
.sc-intro { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 68ch; margin: 0; }

.sc-grid { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 900px) { .sc-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } .sc-result { position: sticky; top: 84px; } }

.sc-form fieldset { margin: 0 0 16px; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card, 12px); min-width: 0; }
.sc-form legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.sc-form legend + * { clear: both; }
.sc-toggle { margin: 0 0 14px; flex-wrap: wrap; }
.sc-toggle .toggle-btn { min-height: 44px; }
.sc-block[hidden] { display: none; }
.sc-block { display: grid; gap: 14px 16px; }
@media (min-width: 600px) { #sc-one, #sc-ins-sep, #sc-split { grid-template-columns: 1fr 1fr; } }

.sc-field label, .sc-pair label { display: block; margin: 0 0 6px; font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.sc-field input, .sc-select, .sc-inst input, .sc-special input[type="text"], .sc-pair input {
  width: 100%; height: 46px; box-sizing: border-box; padding: 0 14px; font-family: inherit; font-size: 16px;
  background: var(--bg-page); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; }
.sc-select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.sc-field input:focus, .sc-select:focus, .sc-inst input:focus, .sc-special input:focus, .sc-pair input:focus { outline: none; border-color: var(--teal-vivid, var(--teal)); }
.sc-field input::placeholder, .sc-inst input::placeholder, .sc-special input::placeholder, .sc-pair input::placeholder { color: var(--text-muted); }
.sc-narrow { max-width: 240px; }
.sc-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin: 12px 0; }
.sc-pair > label:first-child { grid-column: 1 / -1; margin-bottom: 0; }
.sc-pair label[for$="total"], .sc-pair label[for$="itotal"] { align-self: center; margin: 0; text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 14px; }
.sc-inst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-special { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: center; margin: 10px 0; }
@media (max-width: 599px) { .sc-special { grid-template-columns: 1fr 1fr; } .sc-special .sc-tick { grid-column: 1 / -1; } .sc-inst { grid-template-columns: 1fr 1fr; } }
.sc-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--text-secondary); }
.sc-tick input { accent-color: var(--teal); width: 18px; height: 18px; }
.sc-help { font-size: 13px; color: var(--text-muted); margin: 6px 0; line-height: 1.55; }

.sc-more { margin: 0 0 16px; padding: 4px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card, 12px); }
.sc-more > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--teal); list-style: none; }
.sc-more > summary::-webkit-details-marker { display: none; }
.sc-more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; line-height: 1; }
.sc-more[open] > summary::before { content: '\2212'; }
.sc-more[open] { padding-bottom: 18px; }

.sc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--teal-vivid, var(--teal)); color: #0a0f1c; font-weight: 700; font-size: 15px; border: 0; border-radius: 10px; cursor: pointer; font-family: inherit; text-decoration: none; }
.sc-btn:hover { opacity: .92; }
#sc-b-go { margin-top: 6px; }

.sc-result { padding: 24px 26px; background: var(--bg-card); border: 1px solid var(--teal-vivid, var(--teal)); border-radius: var(--radius-card, 12px); box-shadow: 0 2px 16px rgba(0, 200, 200, .08); }
.sc-chip { display: inline-block; padding: 2px 8px; border: 1px solid var(--teal); border-radius: 6px; font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.sc-total { margin: 14px 0 4px; font-family: var(--mono, monospace); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.sc-per { font-family: inherit; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.sc-sub { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.sc-lines { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.sc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sc-lines dt { color: var(--text-secondary); }
.sc-lines dd { margin: 0; text-align: right; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sc-cash { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.sc-note, .sc-notes { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.sc-notes { padding-left: 18px; }
.sc-check-h { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 18px 0 8px; font-weight: 500; }
.sc-check ul { padding-left: 18px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.sc-next { display: grid; gap: 10px; margin-top: 18px; }
.sc-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 600; }

#sc-building-check { margin-top: 22px; }
.sc-building-address, .sc-building-fields { display: grid; gap: 12px 16px; }
.sc-building-address > .sc-btn { justify-self: start; }
.sc-building-address [role="status"]:empty, #sc-building-check [data-building-status]:empty { margin: 0; }
.sc-building-address-results { list-style: none; margin: 0; padding: 0; }
.sc-building-address-results li { margin-bottom: 6px; }
.sc-building-address-results button { white-space: normal; text-align: left; }
.sc-building-questions { min-width: 0; margin: 16px 0; padding: 0; border: 0; }
.sc-building-questions legend { font-weight: 600; }
.sc-building-questions .sc-help { margin-bottom: 12px; }
.sc-building-result h2 { margin: 18px 0 8px; font-size: 1.125rem; }
.sc-building-result h3 { margin: 16px 0 8px; font-size: 1rem; }
.sc-building-result li { margin-bottom: 4px; }
@media (min-width: 650px) { .sc-building-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sc-about { max-width: 760px; margin-top: 12px; }
.sc-about h2 { font-family: var(--font-display, inherit); font-size: var(--t-section, 1.625rem); line-height: 1.25; font-weight: 700; color: var(--text-primary); margin: 36px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.sc-about h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text-primary); }
.sc-about p { font-size: var(--t-body, 1rem); color: var(--text-secondary); line-height: 1.75; max-width: 68ch; margin: 0 0 16px; }
.sc-about a { color: var(--teal); }
.sc-terms { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc-terms th { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.sc-terms th, .sc-terms td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.sc-terms td:first-child { color: var(--text-primary); font-weight: 600; }

.sc-extra-panel {
  padding: 16px;
  min-width: 0;
}

.sc-extra-panel h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.sc-extra-panel fieldset {
  border: 1px solid var(--border);
  margin: 12px 0;
  padding: 12px;
  min-width: 0;
}

.sc-extra-panel :is(button, select, input:not([type="checkbox"])) {
  min-height: 44px;
}

.sc-extra-panel :is(button, select, input) {
  max-width: 100%;
}

.sc-extra-panel .sc-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.sc-extra-panel [data-address-find] {
  justify-self: start;
}

.sc-address-results {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sc-address-results li {
  margin-block: 6px;
}

.sc-address-results button {
  white-space: normal;
  text-align: left;
}

.sc-contrib-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 44px;
  margin-block: 12px;
}
