:root {
  --tc-ink: #122039;
  --tc-muted: #5f6f84;
  --tc-border: #dce4ef;
  --tc-soft: #f4f7fb;
  --tc-blue: #1769e0;
  --tc-blue-dark: #0d4fae;
  --tc-orange: #f36f32;
  --tc-green: #15836c;
  --tc-shadow: 0 22px 55px rgba(17, 35, 62, .11);
}

.technical-calculators-page,
.technical-calculator-page {
  color: var(--tc-ink);
  background: #fff;
}

.technical-tools-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  width: min(1100px, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  margin: 0 auto 1rem;
  border: 1px solid #cfe0f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1f7ff, #fffaf5);
}

.technical-tools-promo div {
  display: grid;
  gap: .18rem;
}

.technical-tools-promo span {
  color: var(--tc-orange);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.technical-tools-promo strong {
  color: var(--tc-ink);
}

.technical-tools-promo small {
  color: var(--tc-muted);
}

.technical-page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.technical-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2rem;
  color: #6b7a90;
  font-size: .92rem;
}

.technical-breadcrumb a {
  color: var(--tc-blue-dark);
  text-decoration: none;
}

.technical-breadcrumb a:hover {
  text-decoration: underline;
}

.technical-eyebrow,
.technical-section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--tc-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.technical-hub-hero,
.technical-calculator-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 85% 25%, rgba(243, 111, 50, .16), transparent 25rem),
    radial-gradient(circle at 5% 85%, rgba(23, 105, 224, .14), transparent 28rem),
    linear-gradient(145deg, #f7faff 0%, #fff 54%, #fff8f4 100%);
  border-bottom: 1px solid #e7edf5;
}

.technical-hub-hero::after,
.technical-calculator-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: linear-gradient(rgba(18, 32, 57, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 32, 57, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.technical-hub-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.technical-hub-hero h1,
.technical-calculator-hero h1 {
  max-width: 900px;
  margin: .75rem 0 1rem;
  color: #101f38;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.technical-hub-hero p,
.technical-calculator-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--tc-muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.72;
}

.technical-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.technical-trust-row span {
  padding: .55rem .8rem;
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  color: #2e4666;
  background: rgba(255, 255, 255, .75);
  font-size: .84rem;
  font-weight: 700;
}

.technical-hub-summary {
  display: grid;
  justify-items: start;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  background: rgba(255, 255, 255, .83);
  box-shadow: var(--tc-shadow);
  backdrop-filter: blur(10px);
}

.technical-hub-summary strong {
  color: var(--tc-orange);
  font-size: 4.5rem;
  line-height: .9;
}

.technical-hub-summary span {
  margin-top: .4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.technical-hub-summary small {
  margin-top: .65rem;
  color: var(--tc-muted);
  line-height: 1.5;
}

.technical-hub-tools {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.technical-section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.technical-section-heading h2,
.technical-hub-guide h2,
.technical-info-section h2,
.technical-faq h2,
.technical-related h2,
.technical-final-cta h2 {
  margin: .45rem 0 .65rem;
  color: var(--tc-ink);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -.03em;
}

.technical-section-heading p,
.technical-final-cta p {
  color: var(--tc-muted);
  line-height: 1.7;
}

.technical-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.technical-tool-card {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid var(--tc-border);
  border-radius: 22px;
  color: var(--tc-ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 35, 62, .055);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.technical-tool-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(23, 105, 224, .065);
}

.technical-tool-card:hover,
.technical-tool-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(23, 105, 224, .5);
  box-shadow: 0 18px 42px rgba(17, 35, 62, .12);
}

.technical-tool-card:focus-visible {
  outline: 3px solid rgba(23, 105, 224, .3);
  outline-offset: 3px;
}

.technical-tool-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 15px;
  font-size: 1.45rem;
  background: #edf4ff;
}

.technical-tool-card__category {
  color: var(--tc-orange);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.technical-tool-card h3 {
  margin: .5rem 0 .65rem;
  font-size: 1.22rem;
  line-height: 1.2;
}

.technical-tool-card p {
  margin: 0 0 1rem;
  color: var(--tc-muted);
  font-size: .94rem;
  line-height: 1.6;
}

.technical-tool-card > strong {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--tc-blue);
  font-size: .9rem;
}

.technical-tool-card--solar {
  border-color: #c9e9d8;
  background: linear-gradient(145deg, #ffffff 0%, #f3fff8 100%);
}

.technical-tool-card--solar::after {
  background: rgba(21, 131, 108, .09);
}

.technical-tool-card--solar .technical-tool-card__icon {
  background: #e5f8ed;
}

.technical-tool-card--solar .technical-tool-card__category,
.technical-tool-card--solar > strong {
  color: var(--tc-green);
}

.technical-tool-card--solar:hover,
.technical-tool-card--solar:focus-visible {
  border-color: rgba(21, 131, 108, .55);
}

.technical-hub-guide {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--tc-soft);
}

.technical-hub-guide__grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 4rem;
}

.technical-hub-guide ol {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: guide;
}

.technical-hub-guide li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: .1rem 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--tc-border);
  border-radius: 18px;
  background: #fff;
  counter-increment: guide;
}

.technical-hub-guide li::before {
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--tc-blue);
  content: counter(guide, decimal-leading-zero);
  font-weight: 800;
}

.technical-hub-guide li span {
  color: var(--tc-muted);
  line-height: 1.5;
}

.technical-hub-caution {
  padding: 3rem 0 5rem;
  background: var(--tc-soft);
}

.technical-caution-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #f0d8c8;
  border-radius: 22px;
  background: #fffaf6;
}

.technical-caution-card > span {
  font-size: 2rem;
}

.technical-caution-card h2 {
  margin: 0 0 .3rem;
  font-size: 1.2rem;
}

.technical-caution-card p {
  margin: 0;
  color: #735d4e;
  line-height: 1.55;
}

.technical-calculator-hero {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.technical-calculator-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.25rem;
}

.technical-calculator-hero__icon {
  display: grid;
  width: clamp(62px, 8vw, 86px);
  height: clamp(62px, 8vw, 86px);
  place-items: center;
  border: 1px solid rgba(23, 105, 224, .15);
  border-radius: 24px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 14px 34px rgba(17, 35, 62, .1);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.technical-calculator-hero h1 {
  max-width: 950px;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
}

.technical-calculator-workspace {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: #f5f8fc;
}

.technical-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 1.4rem;
  align-items: start;
}

.technical-calc-form,
.technical-result-card {
  border: 1px solid var(--tc-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 15px 42px rgba(17, 35, 62, .075);
}

.technical-calc-form {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.technical-result-card {
  position: sticky;
  top: 88px;
  overflow: hidden;
}

.technical-calc-form__head,
.technical-result-card__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.35rem;
}

.technical-calc-form__head > span,
.technical-result-card__head > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--tc-blue);
  font-weight: 800;
}

.technical-calc-form__head h2,
.technical-result-card__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.technical-calc-form__head p,
.technical-result-card__head p {
  margin: .15rem 0 0;
  color: var(--tc-muted);
  font-size: .88rem;
}

.technical-result-card__head {
  padding: 1.35rem 1.45rem;
  margin: 0;
  border-bottom: 1px solid var(--tc-border);
}

.technical-result-card__head > span {
  background: var(--tc-orange);
}

.technical-calc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.technical-calc-field {
  min-width: 0;
}

.technical-calc-field label {
  display: block;
  margin-bottom: .45rem;
  color: #263a55;
  font-size: .86rem;
  font-weight: 750;
}

.technical-calc-field input,
.technical-calc-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccd7e5;
  border-radius: 13px;
  color: var(--tc-ink);
  background: #fff;
  font: inherit;
}

.technical-calc-field input {
  padding: .75rem 3.5rem .75rem .85rem;
}

.technical-calc-field select {
  padding: .75rem 2.2rem .75rem .85rem;
}

.technical-calc-field input:focus,
.technical-calc-field select:focus {
  border-color: var(--tc-blue);
  outline: 3px solid rgba(23, 105, 224, .13);
}

.technical-calc-input-wrap {
  position: relative;
}

.technical-calc-input-wrap span {
  position: absolute;
  top: 50%;
  right: .8rem;
  max-width: 3.2rem;
  overflow: hidden;
  color: #6b7a90;
  font-size: .8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
}

.technical-calc-field small,
.technical-calc-check small {
  display: block;
  margin-top: .35rem;
  color: #748297;
  font-size: .76rem;
  line-height: 1.4;
}

.technical-calc-check {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  cursor: pointer;
  background: #f9fbfd;
}

.technical-calc-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: .05rem;
  accent-color: var(--tc-blue);
}

.technical-calc-check strong {
  display: block;
  color: #263a55;
  font-size: .88rem;
}

.technical-calc-submit {
  width: 100%;
  margin-top: 1.2rem;
}

.technical-local-note {
  margin: .75rem 0 0;
  color: #68788c;
  font-size: .78rem;
  text-align: center;
}

.technical-result-content {
  padding: 1.45rem;
}

.technical-result-primary {
  padding: 1.25rem;
  border: 1px solid #cfe0f7;
  border-radius: 19px;
  background: linear-gradient(145deg, #f1f7ff, #fff);
}

.technical-result-primary > span {
  display: block;
  color: var(--tc-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.technical-result-primary > strong {
  display: block;
  margin: .35rem 0;
  color: var(--tc-ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.technical-result-primary p {
  margin: 0;
  color: var(--tc-muted);
  font-size: .87rem;
  line-height: 1.5;
}

.technical-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}

.technical-result-metrics div {
  padding: .85rem;
  border: 1px solid var(--tc-border);
  border-radius: 14px;
}

.technical-result-metrics dt {
  color: var(--tc-muted);
  font-size: .75rem;
}

.technical-result-metrics dd {
  margin: .2rem 0 0;
  color: var(--tc-ink);
  font-size: .96rem;
  font-weight: 800;
}

.technical-result-breakdown {
  padding-top: .2rem;
}

.technical-result-breakdown h3 {
  margin: .7rem 0;
  font-size: .92rem;
}

.technical-result-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed #dce4ef;
  color: var(--tc-muted);
  font-size: .82rem;
}

.technical-result-breakdown > div strong {
  color: var(--tc-ink);
  text-align: right;
}

.technical-result-guidance {
  display: grid;
  gap: .45rem;
  padding: .85rem 1rem;
  margin: 1rem 0 0;
  border-radius: 14px;
  color: #64503f;
  background: #fff7ef;
  font-size: .78rem;
  line-height: 1.45;
}

.technical-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  padding: 0 1.45rem 1rem;
}

.technical-result-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.technical-text-button {
  min-height: 40px;
  border: 1px solid #d6e0ec;
  border-radius: 11px;
  color: var(--tc-blue-dark);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
}

.technical-text-button:hover {
  background: #f5f8fc;
}

.technical-result-disclaimer {
  padding: 1rem 1.45rem;
  margin: 0;
  border-top: 1px solid var(--tc-border);
  color: #6b778a;
  background: #fafbfd;
  font-size: .75rem;
  line-height: 1.5;
}

.technical-result-loading,
.technical-result-error {
  padding: 2rem;
  color: var(--tc-muted);
  text-align: center;
}

.technical-content-stack {
  display: grid;
  gap: 1.2rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.technical-info-section,
.technical-faq,
.technical-related {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--tc-border);
  border-radius: 22px;
  background: #fff;
}

.technical-info-section {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.technical-info-section ul,
.technical-info-section ol {
  display: grid;
  gap: .7rem;
  padding-left: 1.25rem;
  margin: .25rem 0;
  color: #4f6075;
  line-height: 1.6;
}

.technical-info-section--warning {
  border-color: #eed8c9;
  background: #fffaf6;
}

.technical-example {
  grid-column: 2;
  padding: .9rem 1rem;
  border-left: 4px solid var(--tc-blue);
  border-radius: 0 12px 12px 0;
  color: #405470;
  background: #f3f7fc;
  line-height: 1.55;
}

.technical-faq details {
  border-top: 1px solid var(--tc-border);
}

.technical-faq details:last-child {
  border-bottom: 1px solid var(--tc-border);
}

.technical-faq summary {
  padding: 1rem .1rem;
  color: var(--tc-ink);
  cursor: pointer;
  font-weight: 750;
}

.technical-faq details p {
  padding: 0 1.5rem 1rem 0;
  margin: 0;
  color: var(--tc-muted);
  line-height: 1.65;
}

.technical-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.technical-related-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem .75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  color: var(--tc-ink);
  text-decoration: none;
}

.technical-related-card > span {
  grid-row: 1 / 3;
  font-size: 1.45rem;
}

.technical-related-card small {
  color: var(--tc-blue);
}

.technical-related-card:hover {
  border-color: var(--tc-blue);
  background: #f7faff;
}

.technical-final-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
  color: #fff;
  background: linear-gradient(125deg, #10213c, #163f74);
}

.technical-final-cta .technical-page-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.technical-final-cta h2,
.technical-final-cta p,
.technical-final-cta .technical-section-kicker {
  color: #fff;
}

.technical-final-cta p {
  margin: 0;
  opacity: .78;
}

.technical-final-cta .technical-page-shell > div:last-child {
  display: flex;
  gap: .7rem;
}

@media (max-width: 1000px) {
  .technical-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technical-calculator-layout {
    grid-template-columns: 1fr;
  }

  .technical-result-card {
    position: static;
  }

  .technical-final-cta .technical-page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .technical-page-shell {
    width: min(100% - 24px, 1180px);
  }

  .technical-tools-promo {
    grid-template-columns: 1fr;
  }

  .technical-hub-hero__content,
  .technical-hub-guide__grid,
  .technical-info-section {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .technical-hub-summary {
    width: min(100%, 320px);
  }

  .technical-calculator-hero__content {
    grid-template-columns: 1fr;
  }

  .technical-calc-fields,
  .technical-result-metrics,
  .technical-related-grid {
    grid-template-columns: 1fr;
  }

  .technical-example {
    grid-column: 1;
  }

  .technical-caution-card {
    grid-template-columns: auto 1fr;
  }

  .technical-caution-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .technical-tool-card {
    min-height: 245px;
  }

  .technical-final-cta .technical-page-shell > div:last-child {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .technical-tools-grid {
    grid-template-columns: 1fr;
  }

  .technical-hub-hero h1,
  .technical-calculator-hero h1 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .technical-result-actions {
    grid-template-columns: 1fr;
  }

  .technical-result-primary > strong {
    font-size: 1.55rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .technical-breadcrumb,
  .technical-result-actions,
  .technical-final-cta,
  .technical-related,
  .technical-calc-submit {
    display: none !important;
  }

  .technical-calculator-workspace {
    padding: 0;
    background: #fff;
  }

  .technical-calculator-layout {
    grid-template-columns: 1fr 1fr;
  }

  .technical-result-card {
    position: static;
    box-shadow: none;
  }
}
