/*
 * Turn2Engineering — Engineering Calculators Hub
 * Target: /wp-content/themes/turn2engineering-child-theme/assets/css/CalculatorsLanding.css
 * Scope: /calculators only. Rank Math owns metadata and structured data.
 * Revision: definitive viewport breakout matching the homepage full-bleed behavior.
 */

/* =========================================================
   1. ASTRA / WORDPRESS PAGE-SHELL CORRECTIONS
   This stylesheet is enqueued only on /calculators, so the
   shell resets below can safely win against Astra on this page.
========================================================= */

html {
  overflow-x: clip;
}

body,
body.t2e-calculators-root {
  overflow-x: clip !important;
  background: #f4f7fb;
}

/* Remove Astra's fixed desktop container, article padding, and sidebar width. */
.site-content,
.site-content > .ast-container,
.site-content > .ast-container-fluid,
.site-content .ast-container,
.site-content #primary,
.site-content .content-area,
.site-content .site-main,
.site-content article.page,
.site-content .ast-article-single,
.site-content .entry-content,
.site-content .wp-block-post-content,
.site-content .wp-block-html,
.site-content .wp-block-group,
body.t2e-calculators-root .site-content,
body.t2e-calculators-root .site-content > .ast-container,
body.t2e-calculators-root .site-content > .ast-container-fluid,
body.t2e-calculators-root #primary,
body.t2e-calculators-root .content-area,
body.t2e-calculators-root .site-main,
body.t2e-calculators-root article.page,
body.t2e-calculators-root .ast-article-single,
body.t2e-calculators-root .entry-content,
body.t2e-calculators-root .wp-block-post-content,
body.t2e-calculators-root .wp-block-html,
body.t2e-calculators-root .wp-block-group {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.site-content #secondary,
.site-content .widget-area,
body.t2e-calculators-root #secondary,
body.t2e-calculators-root .widget-area {
  display: none !important;
}

body.t2e-calculators-root .entry-header,
body.t2e-calculators-root .post-thumb,
body.t2e-calculators-root .ast-breadcrumbs-wrapper,
.site-content .entry-header,
.site-content .post-thumb,
.site-content .ast-breadcrumbs-wrapper {
  display: none !important;
}

body.t2e-calculators-root .entry-content > .t2e-calc-landing,
body.t2e-calculators-root .wp-block-html > .t2e-calc-landing,
body.t2e-calculators-root .wp-block-group > .t2e-calc-landing,
.site-content .entry-content > .t2e-calc-landing,
.site-content .wp-block-html > .t2e-calc-landing,
.site-content .wp-block-group > .t2e-calc-landing {
  margin: 0 !important;
}

/* Modern-selector fallback for cached markup missing the PHP body class. */
@supports selector(body:has(#t2eCalcLanding)) {
  body:has(#t2eCalcLanding) {
    overflow-x: clip !important;
    background: #f4f7fb;
  }

  body:has(#t2eCalcLanding) .site-content,
  body:has(#t2eCalcLanding) .site-content > .ast-container,
  body:has(#t2eCalcLanding) .site-content > .ast-container-fluid,
  body:has(#t2eCalcLanding) #primary,
  body:has(#t2eCalcLanding) .content-area,
  body:has(#t2eCalcLanding) .site-main,
  body:has(#t2eCalcLanding) article.page,
  body:has(#t2eCalcLanding) .ast-article-single,
  body:has(#t2eCalcLanding) .entry-content,
  body:has(#t2eCalcLanding) .wp-block-post-content,
  body:has(#t2eCalcLanding) .wp-block-html,
  body:has(#t2eCalcLanding) .wp-block-group {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}

/* =========================================================
   1.1 DEFINITIVE VIEWPORT BREAKOUT — SAME METHOD AS HOMEPAGE

   Astra/Gutenberg can leave the Custom HTML block inside a centered
   max-width wrapper even after the common shell rules above are reset.
   A child set to width:100% still only fills that constrained parent.

   The calculator landing root therefore uses the same full-bleed escape
   hatch as the homepage: viewport width plus centered negative margins.
   Internal .t2e-shell elements remain intentionally capped for readable
   content; only the page bands/backgrounds extend edge to edge.
========================================================= */

html body.t2e-calculators-root,
html body.t2e-calculators-root #page,
html body.t2e-calculators-root #content,
html body.t2e-calculators-root .site,
html body.t2e-calculators-root .site-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.t2e-calculators-root.ast-page-builder-template .site-content > .ast-container,
body.t2e-calculators-root.ast-narrow-container .site-content > .ast-container,
body.t2e-calculators-root .site-content > .ast-container,
body.t2e-calculators-root .site-content .ast-container,
body.t2e-calculators-root #primary,
body.t2e-calculators-root #main,
body.t2e-calculators-root .site-main,
body.t2e-calculators-root article.page,
body.t2e-calculators-root .ast-article-single,
body.t2e-calculators-root .entry-content,
body.t2e-calculators-root .wp-block-post-content,
body.t2e-calculators-root .entry-content > .wp-block-html,
body.t2e-calculators-root .wp-block-post-content > .wp-block-html,
body.t2e-calculators-root .entry-content > .wp-block-group,
body.t2e-calculators-root .wp-block-post-content > .wp-block-group {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}

/* Progressive fallback when a cached page is missing the custom body class. */
@supports selector(body:has(#t2eCalcLanding)) {
  html body:has(#t2eCalcLanding),
  body:has(#t2eCalcLanding) #page,
  body:has(#t2eCalcLanding) #content,
  body:has(#t2eCalcLanding) .site,
  body:has(#t2eCalcLanding) .site-content,
  body:has(#t2eCalcLanding) .site-content > .ast-container,
  body:has(#t2eCalcLanding) #primary,
  body:has(#t2eCalcLanding) #main,
  body:has(#t2eCalcLanding) article.page,
  body:has(#t2eCalcLanding) .ast-article-single,
  body:has(#t2eCalcLanding) .entry-content,
  body:has(#t2eCalcLanding) .wp-block-post-content,
  body:has(#t2eCalcLanding) .wp-block-html {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }
}

/* High-specificity Astra fallback for optimized/cached stylesheets. */
html body.t2e-calculators-root #page.site #content.site-content > .ast-container,
html body.t2e-calculators-root #page.site #content.site-content #primary.content-area,
html body.t2e-calculators-root #page.site #content.site-content #main.site-main,
html body.t2e-calculators-root #page.site #content.site-content article.page.ast-article-single,
html body.t2e-calculators-root #page.site #content.site-content article.page .entry-content,
html body.t2e-calculators-root #page.site #content.site-content article.page .wp-block-post-content,
html body.t2e-calculators-root #page.site #content.site-content article.page .wp-block-html {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}

/*
 * This is the key correction. width:100% only filled Astra's 1440px parent.
 * 100vw + centered negative margins makes the landing page itself span the
 * browser viewport without changing the global Astra header or footer.
 */
html body #t2eCalcLanding.t2e-calc-landing {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@supports (width: 100dvw) {
  html body #t2eCalcLanding.t2e-calc-landing {
    width: 100dvw !important;
    max-width: 100dvw !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50dvw) !important;
  }
}

#t2eCalcLanding.t2e-calc-landing > .t2e-breadcrumb-band,
#t2eCalcLanding.t2e-calc-landing > section,
#t2eCalcLanding.t2e-calc-landing > .t2e-back-top-wrap {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =========================================================
   2. ROOT, TOKENS, BASE STYLES
========================================================= */

#t2eCalcLanding {
  --t2e-navy-950: #06152a;
  --t2e-navy-900: #0a203c;
  --t2e-navy-800: #123a66;
  --t2e-blue-750: #074f9f;
  --t2e-blue-700: #0758b5;
  --t2e-blue-600: #0c69d4;
  --t2e-blue-500: #1979e8;
  --t2e-cyan-400: #43c7df;
  --t2e-ink: #10243d;
  --t2e-text: #2f455e;
  --t2e-muted: #5a6f87;
  --t2e-line: #ccd9e8;
  --t2e-line-strong: #9fb4cb;
  --t2e-page: #f4f7fb;
  --t2e-surface: #ffffff;
  --t2e-surface-blue: #f2f7ff;
  --t2e-warning-bg: #fff8e8;
  --t2e-warning-line: #e4bd66;
  --t2e-warning-text: #624100;
  --t2e-radius-sm: 10px;
  --t2e-radius: 16px;
  --t2e-radius-lg: 24px;
  --t2e-shadow-sm: 0 4px 15px rgba(7, 30, 59, 0.075);
  --t2e-shadow: 0 14px 34px rgba(7, 30, 59, 0.11);
  --t2e-shadow-lg: 0 24px 56px rgba(4, 22, 45, 0.2);
  --t2e-header-clearance: 0px;

  position: relative;
  isolation: isolate;
  /* Viewport width/margins are enforced by the high-specificity breakout above. */
  min-width: 0 !important;
  padding-top: var(--t2e-header-clearance);
  overflow: clip;
  background: var(--t2e-page);
  color: var(--t2e-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}

body.t2e-calculators-root.ast-theme-transparent-header #t2eCalcLanding,
body.t2e-calculators-root.ast-header-break-point.ast-theme-transparent-header #t2eCalcLanding,
body.ast-theme-transparent-header #t2eCalcLanding {
  --t2e-header-clearance: 108px;
}

#t2eCalcLanding,
#t2eCalcLanding *,
#t2eCalcLanding *::before,
#t2eCalcLanding *::after {
  box-sizing: border-box;
}

#t2eCalcLanding [hidden] {
  display: none !important;
}

#t2eCalcLanding a {
  text-underline-offset: 0.17em;
}

#t2eCalcLanding button,
#t2eCalcLanding input,
#t2eCalcLanding summary {
  font: inherit;
}

#t2eCalcLanding button,
#t2eCalcLanding a,
#t2eCalcLanding input,
#t2eCalcLanding summary {
  -webkit-tap-highlight-color: transparent;
}

#t2eCalcLanding .t2e-shell {
  width: min(100%, 1600px);
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 52px);
}

@media (min-width: 1200px) {
  #t2eCalcLanding .t2e-shell {
    width: min(100%, 1680px);
    max-width: 1680px;
    padding-inline: clamp(36px, 3.4vw, 64px);
  }
}

#t2eCalcLanding .t2e-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#t2eCalcLanding .t2e-skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--t2e-ink) !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: var(--t2e-shadow);
  transform: translateY(-180%);
  transition: transform 140ms ease;
}

#t2eCalcLanding .t2e-skip-link:focus {
  transform: translateY(0);
}

#t2eCalcLanding mark {
  padding: 0 0.09em;
  border-radius: 3px;
  background: #ffea91;
  color: #1f2937;
}

/* =========================================================
   3. BREADCRUMBS
========================================================= */

#t2eCalcLanding .t2e-breadcrumb-band {
  position: relative;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid #dce5ef;
  background: #ffffff;
}

#t2eCalcLanding .t2e-breadcrumbs {
  padding-block: 10px;
  color: var(--t2e-muted);
  font-size: 0.81rem;
  font-weight: 750;
}

#t2eCalcLanding .t2e-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#t2eCalcLanding .t2e-breadcrumbs a,
#t2eCalcLanding .t2e-breadcrumbs a:visited {
  color: var(--t2e-blue-700) !important;
  text-decoration: none !important;
}

#t2eCalcLanding .t2e-breadcrumbs a:hover,
#t2eCalcLanding .t2e-breadcrumbs a:focus-visible {
  text-decoration: underline !important;
}

/* =========================================================
   4. HERO AND CALCULATOR FINDER
========================================================= */

#t2eCalcLanding .t2e-calculator-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: clip;
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 86% 12%, rgba(67, 199, 223, 0.23), transparent 29%),
    radial-gradient(circle at 5% 91%, rgba(25, 121, 232, 0.24), transparent 34%),
    linear-gradient(135deg, var(--t2e-navy-950) 0%, var(--t2e-navy-800) 61%, #0a568f 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#t2eCalcLanding .t2e-calculator-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -60%;
  width: min(760px, 68vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 78px rgba(255, 255, 255, 0.026),
    0 0 0 156px rgba(255, 255, 255, 0.017);
  pointer-events: none;
}

#t2eCalcLanding .t2e-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 520px;
  padding-top: clamp(62px, 6vw, 92px) !important;
  padding-bottom: clamp(56px, 6vw, 86px) !important;
}

#t2eCalcLanding .t2e-hero-copy {
  position: relative !important;
  inset: auto !important;
  min-width: 0;
  margin: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

#t2eCalcLanding .t2e-eyebrow,
#t2eCalcLanding .t2e-finder-kicker,
#t2eCalcLanding .t2e-section-kicker,
#t2eCalcLanding .t2e-resource-label {
  margin: 0 0 7px;
  color: var(--t2e-blue-700);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

#t2eCalcLanding .t2e-calculator-hero .t2e-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d6f8ff;
}

#t2eCalcLanding .t2e-calculator-hero .t2e-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--t2e-cyan-400);
  box-shadow: 0 0 0 7px rgba(67, 199, 223, 0.14);
}

#t2eCalcLanding .t2e-hero-copy h1 {
  position: relative !important;
  inset: auto !important;
  max-width: 780px;
  max-height: none !important;
  margin: 0 !important;
  padding: 0.035em 0 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  color: #ffffff !important;
  font-size: clamp(2.35rem, 5.05vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.035;
  text-wrap: balance;
}

#t2eCalcLanding .t2e-hero-dek {
  max-width: 760px;
  margin: 18px 0 0;
  color: #edf5fc;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  text-wrap: pretty;
}

#t2eCalcLanding .t2e-hero-note {
  max-width: 700px;
  margin: 12px 0 0;
  color: #cbdbea;
  font-size: 0.87rem;
  line-height: 1.55;
}

#t2eCalcLanding .t2e-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 610px);
  margin-top: clamp(22px, 3.5vw, 34px);
}

#t2eCalcLanding .t2e-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

#t2eCalcLanding .t2e-stat strong {
  color: #ffffff;
  font-size: clamp(1.34rem, 2.8vw, 1.82rem);
  font-weight: 900;
  line-height: 1.05;
}

#t2eCalcLanding .t2e-stat span {
  margin-top: 5px;
  color: #d4e3f1;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
}

#t2eCalcLanding .t2e-finder {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--t2e-radius-lg);
  background: rgba(255, 255, 255, 0.985);
  color: var(--t2e-text);
  box-shadow: var(--t2e-shadow-lg);
}

#t2eCalcLanding .t2e-finder-heading {
  margin-bottom: 15px;
}

#t2eCalcLanding .t2e-finder-kicker {
  color: var(--t2e-blue-700);
}

#t2eCalcLanding .t2e-finder-heading h2 {
  margin: 0;
  color: var(--t2e-ink) !important;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

#t2eCalcLanding .t2e-search-form {
  position: relative;
  margin: 0;
}

#t2eCalcLanding .t2e-search-form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--t2e-ink);
  font-size: 0.84rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-search-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 58px;
  padding: 5px;
  border: 2px solid #b5c6d9;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(7, 30, 59, 0.055);
}

#t2eCalcLanding .t2e-search-control:focus-within {
  border-color: var(--t2e-blue-600);
  box-shadow: 0 0 0 4px rgba(12, 105, 212, 0.14);
}

#t2eCalcLanding .t2e-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: #57708a;
}

#t2eCalcLanding .t2e-search-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#t2eCalcLanding #calcSearch,
body.t2e-calculators-root #t2eCalcLanding #calcSearch[type="search"] {
  min-width: 0;
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--t2e-ink) !important;
  font-size: 0.96rem !important;
  font-weight: 700;
  line-height: 1.3 !important;
  -webkit-appearance: none;
  appearance: none;
}

#t2eCalcLanding #calcSearch::placeholder {
  color: #687c91 !important;
  opacity: 1;
}

#t2eCalcLanding #calcSearch::-webkit-search-cancel-button {
  display: none;
}

#t2eCalcLanding .t2e-clear-search,
#t2eCalcLanding .t2e-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px !important;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

#t2eCalcLanding .t2e-clear-search {
  margin-right: 5px;
  padding: 0 11px !important;
  border: 1px solid #c3d1df !important;
  background: #f1f5f9 !important;
  color: #344b63 !important;
}

#t2eCalcLanding .t2e-search-submit {
  min-width: 112px;
  padding: 0 16px !important;
  border: 1px solid var(--t2e-blue-600) !important;
  background: var(--t2e-blue-600) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(12, 105, 212, 0.22);
}

#t2eCalcLanding .t2e-clear-search:hover,
#t2eCalcLanding .t2e-clear-search:focus-visible {
  border-color: #839ab2 !important;
  background: #e6edf4 !important;
  color: var(--t2e-ink) !important;
}

#t2eCalcLanding .t2e-search-submit:hover,
#t2eCalcLanding .t2e-search-submit:focus-visible {
  border-color: var(--t2e-blue-750) !important;
  background: var(--t2e-blue-750) !important;
  color: #ffffff !important;
}

#t2eCalcLanding .t2e-search-help {
  margin: 8px 2px 0;
  color: var(--t2e-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

#t2eCalcLanding .t2e-suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% - 13px);
  left: 0;
  right: 0;
  max-height: min(410px, 54vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #aabfd4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(4, 22, 45, 0.23);
}

#t2eCalcLanding .t2e-suggestion,
#t2eCalcLanding .t2e-suggestion:visited {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 13px;
  border-bottom: 1px solid #e3ebf3;
  color: var(--t2e-ink) !important;
  text-decoration: none !important;
}

#t2eCalcLanding .t2e-suggestion:last-child {
  border-bottom: 0;
}

#t2eCalcLanding .t2e-suggestion strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.91rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#t2eCalcLanding .t2e-suggestion small {
  color: var(--t2e-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

#t2eCalcLanding .t2e-suggestion:hover,
#t2eCalcLanding .t2e-suggestion.is-active,
#t2eCalcLanding .t2e-suggestion[aria-selected="true"] {
  background: #eaf4ff;
  color: var(--t2e-ink) !important;
}

/* =========================================================
   5. CATEGORY NAVIGATION AND RESULTS TOOLBAR
========================================================= */

#t2eCalcLanding .t2e-category-nav {
  border-bottom: 1px solid #d8e2ed;
  background: #ffffff;
}

#t2eCalcLanding .t2e-category-nav > .t2e-shell {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(22px, 4vw, 38px);
}

#t2eCalcLanding .t2e-category-head,
#t2eCalcLanding .t2e-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 430px);
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

#t2eCalcLanding .t2e-category-head h2,
#t2eCalcLanding .t2e-section-intro h2,
#t2eCalcLanding .t2e-directory-intro h2,
#t2eCalcLanding .t2e-guide-grid h2,
#t2eCalcLanding .t2e-faq-intro h2,
#t2eCalcLanding .t2e-hub-cta h2 {
  margin: 0;
  color: var(--t2e-ink) !important;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

#t2eCalcLanding .t2e-category-head > p,
#t2eCalcLanding .t2e-section-intro > p,
#t2eCalcLanding .t2e-directory-intro > p,
#t2eCalcLanding .t2e-faq-intro > p {
  margin: 0;
  color: var(--t2e-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

#t2eCalcLanding .t2e-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 11px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

#t2eCalcLanding .t2e-category-chip,
#t2eCalcLanding .t2e-category-chip:visited {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #b5c6d9;
  border-radius: 999px;
  background: #f9fbfd;
  color: var(--t2e-ink) !important;
  font-size: 0.81rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  scroll-snap-align: start;
}

#t2eCalcLanding .t2e-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8eef5;
  color: #4f667e;
  font-size: 0.69rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-category-chip:hover,
#t2eCalcLanding .t2e-category-chip:focus-visible {
  border-color: #6b9ed4;
  background: #f0f7ff;
  color: var(--t2e-ink) !important;
}

#t2eCalcLanding .t2e-category-chip.is-active,
#t2eCalcLanding .t2e-category-chip[aria-current="true"] {
  border-color: var(--t2e-blue-700);
  background: var(--t2e-blue-700);
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(7, 88, 181, 0.13);
}

#t2eCalcLanding .t2e-category-chip.is-active .t2e-chip-count,
#t2eCalcLanding .t2e-category-chip[aria-current="true"] .t2e-chip-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

#t2eCalcLanding .t2e-results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 2px;
  padding: 9px 12px;
  border: 1px solid #d0dce9;
  border-radius: 12px;
  background: #f4f7fb;
}

#t2eCalcLanding .t2e-results-toolbar p {
  margin: 0;
  color: var(--t2e-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

#t2eCalcLanding .t2e-results-toolbar strong {
  color: var(--t2e-ink);
  font-weight: 900;
}

#t2eCalcLanding .t2e-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

#t2eCalcLanding .t2e-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px !important;
  border: 1px solid #9fb3c8 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: var(--t2e-ink) !important;
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 900;
  line-height: 1.1;
}

#t2eCalcLanding .t2e-toolbar-button:hover,
#t2eCalcLanding .t2e-toolbar-button:focus-visible,
#t2eCalcLanding .t2e-toolbar-button[aria-pressed="true"] {
  border-color: var(--t2e-blue-700) !important;
  background: #eaf4ff !important;
  color: var(--t2e-ink) !important;
}

#t2eCalcLanding .t2e-no-results-host {
  margin-top: 12px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px dashed #9db1c6;
  border-radius: 15px;
  background: #f8fbff;
  text-align: center;
}

#t2eCalcLanding .t2e-no-results-host h3 {
  margin: 0;
  color: var(--t2e-ink) !important;
  font-size: 1.2rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-no-results-host p {
  max-width: 650px;
  margin: 7px auto 0;
  color: var(--t2e-muted);
  font-size: 0.88rem;
}

#t2eCalcLanding .t2e-no-results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

#t2eCalcLanding .t2e-no-results-actions button,
#t2eCalcLanding .t2e-no-results-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px !important;
  border: 1px solid var(--t2e-blue-700) !important;
  border-radius: 10px !important;
  background: var(--t2e-blue-700) !important;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none !important;
}

#t2eCalcLanding .t2e-no-results-actions .is-secondary {
  background: #ffffff !important;
  color: var(--t2e-blue-700) !important;
}

#t2eCalcLanding .t2e-noscript-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--t2e-warning-line);
  border-radius: 10px;
  background: var(--t2e-warning-bg);
  color: var(--t2e-warning-text);
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================================================
   6. FEATURED CALCULATORS
========================================================= */

#t2eCalcLanding .t2e-featured {
  padding-block: clamp(30px, 5vw, 58px);
  background: var(--t2e-page);
}

#t2eCalcLanding .t2e-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#t2eCalcLanding .t2e-featured-card,
#t2eCalcLanding .t2e-featured-card:visited {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #cad8e7;
  border-radius: 15px;
  background: linear-gradient(155deg, #ffffff 0%, #eef6ff 100%);
  color: var(--t2e-ink) !important;
  text-decoration: none !important;
  box-shadow: var(--t2e-shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#t2eCalcLanding .t2e-featured-category {
  color: var(--t2e-blue-700);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#t2eCalcLanding .t2e-featured-card strong {
  margin-top: 7px;
  color: var(--t2e-ink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.3;
}

#t2eCalcLanding .t2e-featured-card > span:not(.t2e-featured-category):not(.t2e-featured-link) {
  margin-top: 7px;
  color: var(--t2e-muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.5;
}

#t2eCalcLanding .t2e-featured-link {
  margin-top: auto;
  padding-top: 15px;
  color: var(--t2e-blue-700);
  font-size: 0.78rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-featured-card:hover,
#t2eCalcLanding .t2e-featured-card:focus-visible {
  transform: translateY(-2px);
  border-color: #70a5dd;
  background: #f4f9ff;
  color: var(--t2e-ink) !important;
  box-shadow: 0 14px 28px rgba(7, 30, 59, 0.13);
}

/* =========================================================
   7. COMPLETE CALCULATOR DIRECTORY
========================================================= */

#t2eCalcLanding .t2e-directory {
  scroll-margin-top: 90px;
  padding-block: clamp(8px, 2vw, 18px) clamp(34px, 6vw, 70px);
  background: var(--t2e-page);
}

#t2eCalcLanding .t2e-directory-intro {
  max-width: 880px;
  margin-bottom: 18px;
}

#t2eCalcLanding .t2e-directory-intro > p:last-child {
  margin-top: 8px;
}

#t2eCalcLanding .t2e-calc-section {
  scroll-margin-top: 88px;
  margin-top: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--t2e-line);
  border-radius: var(--t2e-radius);
  background: var(--t2e-surface);
  box-shadow: var(--t2e-shadow-sm);
}

#t2eCalcLanding .t2e-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

#t2eCalcLanding .t2e-section-heading {
  min-width: 0;
}

#t2eCalcLanding .t2e-section-kicker {
  margin-bottom: 4px;
  color: var(--t2e-blue-700);
}

#t2eCalcLanding .t2e-section-heading h3 {
  margin: 0;
  color: var(--t2e-ink) !important;
  font-size: clamp(1.22rem, 2.5vw, 1.68rem);
  font-weight: 900;
  letter-spacing: -0.023em;
  line-height: 1.18;
  text-wrap: balance;
}

#t2eCalcLanding .t2e-section-heading > p:last-child {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--t2e-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

#t2eCalcLanding .t2e-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#t2eCalcLanding .t2e-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c6d8ec;
  border-radius: 999px;
  background: #edf5ff;
  color: #35536f;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

#t2eCalcLanding .t2e-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px !important;
  border: 1px solid #aebfd1 !important;
  border-radius: 9px !important;
  background: #f6f9fc !important;
  color: var(--t2e-ink) !important;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-section-toggle:hover,
#t2eCalcLanding .t2e-section-toggle:focus-visible {
  border-color: #6a9dd2 !important;
  background: #edf5ff !important;
  color: var(--t2e-ink) !important;
}

#t2eCalcLanding .t2e-toggle-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 150ms ease;
}

#t2eCalcLanding .t2e-calc-section.is-collapsed .t2e-toggle-chevron {
  transform: rotate(-45deg) translate(-1px, -1px);
}

#t2eCalcLanding .t2e-calc-section.is-collapsed .t2e-section-header {
  margin-bottom: 0;
}

#t2eCalcLanding .t2e-calc-section.is-collapsed .t2e-section-body {
  display: none;
}

#t2eCalcLanding .t2e-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#t2eCalcLanding .t2e-calc-item {
  min-width: 0;
}

#t2eCalcLanding .t2e-calc-card,
#t2eCalcLanding .t2e-calc-card:visited {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid #d1deeb;
  border-radius: 11px;
  background: #fbfdff;
  color: var(--t2e-ink) !important;
  text-align: left;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(7, 30, 59, 0.035);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

#t2eCalcLanding .t2e-calc-title {
  min-width: 0;
  color: inherit;
  font-size: 0.87rem;
  font-weight: 850;
  line-height: 1.35;
}

#t2eCalcLanding .t2e-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf3fd;
  color: var(--t2e-blue-700);
  font-size: 0.93rem;
  font-weight: 900;
  transition: transform 140ms ease, background-color 140ms ease;
}

#t2eCalcLanding .t2e-calc-card:hover,
#t2eCalcLanding .t2e-calc-card:focus-visible {
  transform: translateY(-1px);
  border-color: #78a8d8;
  background: #f0f7ff;
  color: var(--t2e-ink) !important;
  box-shadow: 0 8px 18px rgba(7, 30, 59, 0.1);
}

#t2eCalcLanding .t2e-calc-card:hover .t2e-card-arrow,
#t2eCalcLanding .t2e-calc-card:focus-visible .t2e-card-arrow {
  transform: translateX(2px);
  background: #d9ebff;
}

/* =========================================================
   8. RELATED RESOURCES
========================================================= */

#t2eCalcLanding .t2e-resource-bridge {
  position: relative;
  overflow: hidden;
  padding-block: clamp(38px, 6vw, 72px);
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 5%, rgba(67, 199, 223, 0.16), transparent 30%),
    linear-gradient(135deg, var(--t2e-navy-950), var(--t2e-navy-800));
}

#t2eCalcLanding .t2e-section-intro-light h2,
#t2eCalcLanding .t2e-resource-bridge .t2e-section-intro h2 {
  color: #ffffff !important;
}

#t2eCalcLanding .t2e-section-intro-light > p,
#t2eCalcLanding .t2e-resource-bridge .t2e-section-intro > p {
  color: #d1e0ee;
}

#t2eCalcLanding .t2e-resource-bridge .t2e-eyebrow {
  color: #aeeefa;
}

#t2eCalcLanding .t2e-resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

#t2eCalcLanding .t2e-resource-card,
#t2eCalcLanding .t2e-resource-card:visited {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

#t2eCalcLanding .t2e-resource-label {
  color: #aeeefa;
}

#t2eCalcLanding .t2e-resource-card strong {
  margin-top: 3px;
  color: #ffffff;
  font-size: 0.97rem;
  font-weight: 900;
  line-height: 1.3;
}

#t2eCalcLanding .t2e-resource-card > span:last-child {
  margin-top: 8px;
  color: #d1dfed;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.48;
}

#t2eCalcLanding .t2e-resource-card:hover,
#t2eCalcLanding .t2e-resource-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(174, 238, 250, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

/* =========================================================
   9. USAGE GUIDE AND ENGINEERING LIMITATION
========================================================= */

#t2eCalcLanding .t2e-usage-guide {
  padding-block: clamp(38px, 6vw, 72px);
  background: #ffffff;
}

#t2eCalcLanding .t2e-guide-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

#t2eCalcLanding .t2e-guide-grid > div:first-child > p:last-child {
  margin: 12px 0 0;
  color: var(--t2e-muted);
  font-size: 0.94rem;
}

#t2eCalcLanding .t2e-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: t2e-step;
}

#t2eCalcLanding .t2e-step-list li {
  position: relative;
  min-height: 80px;
  padding: 15px 15px 15px 62px;
  border: 1px solid var(--t2e-line);
  border-radius: 13px;
  background: var(--t2e-surface-blue);
  counter-increment: t2e-step;
}

#t2eCalcLanding .t2e-step-list li::before {
  content: counter(t2e-step);
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--t2e-blue-700);
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-step-list strong {
  display: block;
  color: var(--t2e-ink);
  font-size: 0.91rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-step-list span {
  display: block;
  margin-top: 3px;
  color: var(--t2e-muted);
  font-size: 0.81rem;
  line-height: 1.48;
}

#t2eCalcLanding .t2e-engineering-note {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border: 1px solid var(--t2e-warning-line);
  border-left-width: 5px;
  border-radius: 12px;
  background: var(--t2e-warning-bg);
  color: var(--t2e-warning-text);
}

#t2eCalcLanding .t2e-engineering-note strong {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 900;
}

#t2eCalcLanding .t2e-engineering-note p {
  margin: 4px 0 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* =========================================================
   10. FAQ
========================================================= */

#t2eCalcLanding .t2e-faq {
  padding-block: clamp(36px, 6vw, 68px);
  border-top: 1px solid #d8e2ed;
  background: var(--t2e-page);
}

#t2eCalcLanding .t2e-faq-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
}

#t2eCalcLanding .t2e-faq-intro > p:last-child {
  margin-top: 10px;
}

#t2eCalcLanding .t2e-faq-list {
  display: grid;
  gap: 9px;
}

#t2eCalcLanding .t2e-faq-list details {
  border: 1px solid var(--t2e-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(7, 30, 59, 0.045);
}

#t2eCalcLanding .t2e-faq-list summary {
  position: relative;
  display: block;
  min-height: 54px;
  padding: 15px 48px 15px 15px;
  color: var(--t2e-ink);
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

#t2eCalcLanding .t2e-faq-list summary::-webkit-details-marker {
  display: none;
}

#t2eCalcLanding .t2e-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf3fd;
  color: var(--t2e-blue-700);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

#t2eCalcLanding .t2e-faq-list details[open] summary::after {
  content: "−";
}

#t2eCalcLanding .t2e-faq-list details[open] summary {
  border-bottom: 1px solid #e2eaf2;
}

#t2eCalcLanding .t2e-faq-list details p {
  margin: 0;
  padding: 13px 15px 16px;
  color: var(--t2e-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

#t2eCalcLanding .t2e-faq-list summary:hover,
#t2eCalcLanding .t2e-faq-list summary:focus-visible {
  background: #f5f9fe;
}

/* =========================================================
   11. CTA AND BACK TO TOP
========================================================= */

#t2eCalcLanding .t2e-hub-cta {
  padding-block: clamp(30px, 5vw, 52px);
  background: linear-gradient(135deg, var(--t2e-blue-750), var(--t2e-blue-500));
  color: #ffffff;
}

#t2eCalcLanding .t2e-hub-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

#t2eCalcLanding .t2e-hub-cta .t2e-eyebrow {
  color: #d8f8ff;
}

#t2eCalcLanding .t2e-hub-cta h2 {
  color: #ffffff !important;
}

#t2eCalcLanding .t2e-hub-cta p {
  max-width: 830px;
  margin: 8px 0 0;
  color: #e3effb;
  font-size: 0.88rem;
}

#t2eCalcLanding .t2e-cta-link,
#t2eCalcLanding .t2e-cta-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 17px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #ffffff;
  color: var(--t2e-blue-750) !important;
  font-size: 0.83rem;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(4, 22, 45, 0.18);
}

#t2eCalcLanding .t2e-cta-link:hover,
#t2eCalcLanding .t2e-cta-link:focus-visible {
  background: #eef7ff;
  color: var(--t2e-blue-750) !important;
}

#t2eCalcLanding .t2e-back-top-wrap {
  padding-block: 18px 26px;
  background: #ffffff;
}

#t2eCalcLanding .t2e-back-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--t2e-blue-700) !important;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none !important;
}

#t2eCalcLanding .t2e-back-top:hover,
#t2eCalcLanding .t2e-back-top:focus-visible {
  text-decoration: underline !important;
}

/* =========================================================
   12. SHARED FOCUS, STATES, AND ASTRA RESILIENCE
========================================================= */

#t2eCalcLanding a:focus-visible,
#t2eCalcLanding button:focus-visible,
#t2eCalcLanding input:focus-visible,
#t2eCalcLanding summary:focus-visible {
  outline: 3px solid #57a6f5 !important;
  outline-offset: 3px !important;
}

#t2eCalcLanding .t2e-calculator-hero a:focus-visible,
#t2eCalcLanding .t2e-resource-bridge a:focus-visible,
#t2eCalcLanding .t2e-hub-cta a:focus-visible {
  outline-color: #aeeefa !important;
}

body.t2e-calculators-root #t2eCalcLanding a,
body.t2e-calculators-root #t2eCalcLanding button {
  opacity: 1 !important;
}

body.t2e-calculators-root #t2eCalcLanding .t2e-category-chip,
body.t2e-calculators-root #t2eCalcLanding .t2e-toolbar-button,
body.t2e-calculators-root #t2eCalcLanding .t2e-section-toggle,
body.t2e-calculators-root #t2eCalcLanding .t2e-clear-search,
body.t2e-calculators-root #t2eCalcLanding .t2e-search-submit {
  text-decoration: none !important;
}

/* Desktop collision guard: later Astra rules must never pull the hero under
   the breadcrumb/header or reintroduce a constrained content container. */
@media (min-width: 901px) {
  body #page .site-content,
  body #page .site-content > .ast-container,
  body #page .site-content > .ast-container-fluid,
  body #page .site-content #primary,
  body #page .site-content .content-area,
  body #page .site-content .site-main,
  body #page .site-content article.page,
  body #page .site-content .ast-article-single,
  body #page .site-content .entry-content,
  body #page .site-content .wp-block-html {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  body #page #t2eCalcLanding.t2e-calc-landing {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  @supports (width: 100dvw) {
    body #page #t2eCalcLanding.t2e-calc-landing {
      width: 100dvw !important;
      max-width: 100dvw !important;
      margin-left: calc(50% - 50dvw) !important;
      margin-right: calc(50% - 50dvw) !important;
    }
  }

  body #page #t2eCalcLanding .t2e-breadcrumb-band {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  body #page #t2eCalcLanding .t2e-calculator-hero,
  body #page #t2eCalcLanding .t2e-hero-grid,
  body #page #t2eCalcLanding .t2e-hero-copy,
  body #page #t2eCalcLanding .t2e-hero-copy h1 {
    top: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }
}

/* =========================================================
   13. RESPONSIVE LAYOUTS
========================================================= */

@media (max-width: 1180px) {
  #t2eCalcLanding .t2e-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 34px;
  }

  #t2eCalcLanding .t2e-featured-grid,
  #t2eCalcLanding .t2e-calc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #t2eCalcLanding .t2e-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.t2e-calculators-root.ast-theme-transparent-header #t2eCalcLanding,
  body.t2e-calculators-root.ast-header-break-point.ast-theme-transparent-header #t2eCalcLanding,
  body.ast-theme-transparent-header #t2eCalcLanding {
    --t2e-header-clearance: 88px;
  }

  #t2eCalcLanding .t2e-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding-top: clamp(46px, 7vw, 66px) !important;
    padding-bottom: clamp(42px, 7vw, 64px) !important;
  }

  #t2eCalcLanding .t2e-hero-copy {
    text-align: center;
  }

  #t2eCalcLanding .t2e-hero-copy h1,
  #t2eCalcLanding .t2e-hero-dek,
  #t2eCalcLanding .t2e-hero-note,
  #t2eCalcLanding .t2e-hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  #t2eCalcLanding .t2e-finder {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  #t2eCalcLanding .t2e-category-head,
  #t2eCalcLanding .t2e-section-intro,
  #t2eCalcLanding .t2e-guide-grid,
  #t2eCalcLanding .t2e-faq-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #t2eCalcLanding .t2e-featured-grid,
  #t2eCalcLanding .t2e-calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #t2eCalcLanding .t2e-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #t2eCalcLanding .t2e-engineering-note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.t2e-calculators-root.ast-theme-transparent-header #t2eCalcLanding,
  body.t2e-calculators-root.ast-header-break-point.ast-theme-transparent-header #t2eCalcLanding,
  body.ast-theme-transparent-header #t2eCalcLanding {
    --t2e-header-clearance: 76px;
  }

  #t2eCalcLanding .t2e-shell {
    padding-inline: 12px;
  }

  #t2eCalcLanding .t2e-breadcrumbs {
    padding-block: 8px;
    font-size: 0.75rem;
  }

  #t2eCalcLanding .t2e-hero-copy h1 {
    font-size: clamp(2.12rem, 11.5vw, 3.1rem);
    line-height: 1.01;
  }

  #t2eCalcLanding .t2e-hero-dek {
    font-size: 0.98rem;
  }

  #t2eCalcLanding .t2e-hero-note {
    font-size: 0.79rem;
  }

  #t2eCalcLanding .t2e-hero-stats {
    gap: 7px;
  }

  #t2eCalcLanding .t2e-stat {
    min-height: 72px;
    padding: 9px 6px;
  }

  #t2eCalcLanding .t2e-stat strong {
    font-size: 1.28rem;
  }

  #t2eCalcLanding .t2e-stat span {
    font-size: 0.67rem;
  }

  #t2eCalcLanding .t2e-finder {
    padding: 17px;
    border-radius: 18px;
  }

  #t2eCalcLanding .t2e-search-control {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 55px;
  }

  #t2eCalcLanding .t2e-search-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
  }

  #t2eCalcLanding .t2e-search-icon {
    width: 34px;
  }

  #t2eCalcLanding #calcSearch,
  body.t2e-calculators-root #t2eCalcLanding #calcSearch[type="search"] {
    height: 44px !important;
    padding-inline: 5px !important;
    font-size: 0.9rem !important;
  }

  #t2eCalcLanding .t2e-clear-search {
    margin-right: 0;
    padding-inline: 9px !important;
  }

  #t2eCalcLanding .t2e-suggestions {
    top: calc(100% - 10px);
  }

  #t2eCalcLanding .t2e-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #t2eCalcLanding .t2e-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #t2eCalcLanding .t2e-section-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #t2eCalcLanding .t2e-section-actions {
    justify-content: space-between;
  }

  #t2eCalcLanding .t2e-calc-section {
    padding: 14px;
    border-radius: 14px;
  }

  #t2eCalcLanding .t2e-featured-grid,
  #t2eCalcLanding .t2e-calc-grid,
  #t2eCalcLanding .t2e-resource-grid {
    grid-template-columns: 1fr;
  }

  #t2eCalcLanding .t2e-featured-card {
    min-height: 158px;
  }

  #t2eCalcLanding .t2e-resource-card {
    min-height: 145px;
  }

  #t2eCalcLanding .t2e-hub-cta-inner {
    grid-template-columns: 1fr;
  }

  #t2eCalcLanding .t2e-cta-link {
    justify-self: start;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  #t2eCalcLanding .t2e-shell {
    padding-inline: 10px;
  }

  #t2eCalcLanding .t2e-finder {
    padding: 14px;
  }

  #t2eCalcLanding .t2e-category-chip {
    min-height: 42px;
    padding-inline: 11px;
  }

  #t2eCalcLanding .t2e-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #t2eCalcLanding .t2e-section-count,
  #t2eCalcLanding .t2e-section-toggle {
    width: 100%;
  }
}



/* Show every category at once on tablet and desktop; retain swipe scrolling on phones. */
@media (min-width: 700px) {
  #t2eCalcLanding .t2e-category-chips {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
    scroll-snap-type: none;
  }
}

/* =========================================================
   13.1 FINAL SCREEN-ONLY FULL-BLEED GUARD
   Kept late in the stylesheet so no responsive or Astra rule can restore
   the former 1440px desktop box. Print rules below intentionally reset it.
========================================================= */

@media screen {
  html body #page.site #content.site-content #t2eCalcLanding.t2e-calc-landing {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}

@media screen and (min-width: 1px) {
  @supports (width: 100dvw) {
    html body #page.site #content.site-content #t2eCalcLanding.t2e-calc-landing {
      width: 100dvw !important;
      max-width: 100dvw !important;
      margin-left: calc(50% - 50dvw) !important;
      margin-right: calc(50% - 50dvw) !important;
    }
  }
}

/* =========================================================
   14. REDUCED MOTION, FORCED COLORS, PRINT
========================================================= */

@media (prefers-reduced-motion: reduce) {
  #t2eCalcLanding *,
  #t2eCalcLanding *::before,
  #t2eCalcLanding *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  #t2eCalcLanding .t2e-calculator-hero,
  #t2eCalcLanding .t2e-resource-bridge,
  #t2eCalcLanding .t2e-hub-cta {
    forced-color-adjust: auto;
    background: Canvas;
    color: CanvasText;
  }

  #t2eCalcLanding .t2e-calculator-hero *,
  #t2eCalcLanding .t2e-resource-bridge *,
  #t2eCalcLanding .t2e-hub-cta * {
    color: CanvasText !important;
  }

  #t2eCalcLanding a,
  #t2eCalcLanding button,
  #t2eCalcLanding input,
  #t2eCalcLanding summary {
    border: 1px solid ButtonText !important;
  }
}

@media print {
  body.t2e-calculators-root,
  #t2eCalcLanding {
    overflow: visible !important;
    background: #ffffff !important;
  }

  #t2eCalcLanding {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000000 !important;
  }

  #t2eCalcLanding .t2e-calculator-hero,
  #t2eCalcLanding .t2e-category-nav,
  #t2eCalcLanding .t2e-featured,
  #t2eCalcLanding .t2e-resource-bridge,
  #t2eCalcLanding .t2e-usage-guide,
  #t2eCalcLanding .t2e-faq,
  #t2eCalcLanding .t2e-hub-cta,
  #t2eCalcLanding .t2e-back-top-wrap,
  #t2eCalcLanding .t2e-section-toggle,
  #t2eCalcLanding .t2e-breadcrumb-band {
    display: none !important;
  }

  #t2eCalcLanding .t2e-directory {
    padding: 0 !important;
  }

  #t2eCalcLanding .t2e-calc-section {
    break-inside: avoid;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #999999;
    box-shadow: none;
  }

  #t2eCalcLanding .t2e-section-body,
  #t2eCalcLanding .t2e-calc-section.is-collapsed .t2e-section-body {
    display: block !important;
  }

  #t2eCalcLanding .t2e-calc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  #t2eCalcLanding .t2e-calc-card {
    min-height: 0;
    padding: 5px;
    border: 0;
    box-shadow: none;
  }

  #t2eCalcLanding .t2e-card-arrow,
  #t2eCalcLanding .t2e-section-count {
    display: none !important;
  }
}