.expanded-tool-page {
  background: #f5f8fc;
  color: #08264b;
}

.expanded-tool-page [hidden] {
  display: none !important;
}

.expanded-tool-page .section {
  padding: 64px 0;
}

.expanded-header-search input:focus,
.expanded-header-search button:focus {
  outline: 3px solid rgba(13, 69, 145, 0.18);
  outline-offset: 2px;
}

.expanded-tool-hero {
  background: #0d3f7f;
  color: #fff;
  overflow: hidden;
}

.expanded-hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  min-height: 430px;
  padding-bottom: 54px;
  padding-top: 42px;
}

.expanded-breadcrumb {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 28px;
}

.expanded-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.expanded-kicker {
  color: #ffc400;
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.expanded-tool-hero h1 {
  color: #fff;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
}

.expanded-tool-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 760px;
}

.expanded-hero-actions,
.expanded-form-actions,
.expanded-result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expanded-hero-actions {
  margin-top: 30px;
}

.expanded-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.1;
  min-height: 42px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.expanded-btn:hover,
.expanded-btn:focus {
  box-shadow: 0 10px 24px rgba(7, 27, 52, 0.14);
  transform: translateY(-1px);
}

.expanded-btn--accent {
  background: #ffc400;
  border-color: #ffc400;
  color: #071b34;
}

.expanded-btn--accent:hover,
.expanded-btn--accent:focus {
  background: #ffd545;
  color: #071b34;
}

.expanded-btn--light,
.expanded-btn--secondary {
  background: #fff;
  border-color: #fff;
  color: #0d4591;
}

.expanded-btn--ghost {
  background: #fff;
  border-color: #b7cce7;
  color: #0d4591;
}

.expanded-btn--outline {
  background: #fff;
  border-color: #b7cce7;
  color: #0d4591;
}

.expanded-btn--secondary {
  border-color: #d8e3ef;
  color: #173d67;
}

.expanded-btn--green {
  background: #15935d;
  border-color: #15935d;
  color: #fff;
}

.expanded-btn--green:hover,
.expanded-btn--green:focus {
  background: #12814f;
  color: #fff;
}

.expanded-hero-media {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  margin: 0;
  overflow: hidden;
}

.expanded-hero-media img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.expanded-hero-media figcaption {
  background: #fff;
  color: #08264b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  padding: 14px 16px;
}

.expanded-tool-core {
  background: #f5f8fc;
}

.expanded-tool-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.expanded-card {
  background: #fff;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(7, 27, 52, 0.06);
}

.expanded-form,
.expanded-results {
  padding: 26px;
}

.expanded-results {
  position: sticky;
  top: 18px;
}

.expanded-card-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.expanded-card-head h2,
.expanded-info-grid h2,
.expanded-section-head h2 {
  color: #08264b;
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
}

.expanded-card-head p,
.expanded-section-note,
.expanded-info-grid p,
.expanded-faq-list p {
  color: #405978;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.expanded-card-head p {
  margin: 8px 0 0;
}

.expanded-link-btn {
  background: #edf4fd;
  border: 1px solid #c6d8ee;
  border-radius: 7px;
  color: #0d4591;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 12px;
}

.expanded-alert {
  background: #fff4e6;
  border: 1px solid #ffd699;
  border-radius: 7px;
  color: #8a4b00;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.expanded-form-section {
  border-top: 1px solid #e0e9f5;
  padding-top: 22px;
}

.expanded-form-section + .expanded-form-section,
.expanded-advanced,
.expanded-form-actions {
  margin-top: 24px;
}

.expanded-form-section h3 {
  color: #08264b;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.expanded-section-note {
  margin: 6px 0 16px;
}

.expanded-field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expanded-field-wide {
  grid-column: 1 / -1;
}

.expanded-field-grid label,
.expanded-summary-label {
  display: grid;
  gap: 7px;
}

.expanded-field-grid label span,
.expanded-summary-label span {
  color: #183c64;
  font-size: 13px;
  font-weight: 900;
}

.expanded-field-grid em {
  color: #6b7e96;
  font-style: normal;
  font-weight: 800;
}

.expanded-field-grid input,
.expanded-field-grid select,
.expanded-summary-label textarea {
  background: #fff;
  border: 1px solid #bfd0e5;
  border-radius: 7px;
  color: #08264b;
  font: inherit;
  font-size: 15px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.expanded-summary-label textarea {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 210px;
  resize: vertical;
}

.expanded-field-grid input:focus,
.expanded-field-grid select:focus,
.expanded-summary-label textarea:focus {
  border-color: #0d4591;
  box-shadow: 0 0 0 3px rgba(13, 69, 145, 0.14);
  outline: none;
}

.expanded-advanced {
  background: #f8fbff;
  border: 1px solid #d9e5f4;
  border-radius: 8px;
  padding: 14px;
}

.expanded-advanced summary {
  color: #0d4591;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.expanded-advanced .expanded-field-grid {
  margin-top: 16px;
}

.expanded-copy-status {
  color: #0d4591;
  font-size: 14px;
  font-weight: 900;
  min-width: 72px;
}

.expanded-result-note {
  background: #eef6ff;
  border-left: 4px solid #0d4591;
  border-radius: 7px;
  color: #405978;
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.expanded-result-note strong {
  color: #08264b;
}

.expanded-preview-card {
  background: #f7fbff;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.expanded-preview-head {
  display: grid;
  gap: 4px;
  padding: 14px 16px 0;
}

.expanded-preview-head span {
  color: #5a6f89;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.expanded-preview-head strong {
  color: #08264b;
  font-size: 14px;
  line-height: 1.35;
}

.expanded-preview-svg {
  display: block;
  height: auto;
  min-height: 190px;
  width: 100%;
}

.expanded-preview-svg rect {
  fill: #f5f9ff;
}

.expanded-preview-svg path {
  fill: rgba(255, 255, 255, 0.1);
  stroke: #0d4591;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.expanded-result-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.expanded-result-metrics div {
  background: #f6f9fd;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  min-height: 90px;
  padding: 14px;
}

.expanded-result-metrics span,
.expanded-result-list dt {
  color: #60748d;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.expanded-result-metrics strong {
  color: #08264b;
  display: block;
  font-size: 26px;
  line-height: 1.1;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.expanded-result-list {
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  margin: 0 0 18px;
  overflow: hidden;
}

.expanded-result-list div {
  display: grid;
  gap: 10px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 11px 14px;
}

.expanded-result-list div + div {
  border-top: 1px solid #e4edf7;
}

.expanded-result-list dd {
  color: #17395f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.expanded-result-actions {
  margin-top: 16px;
}

.expanded-copy-status {
  color: #2d6b4c;
  font-size: 13px;
  font-weight: 800;
  margin: 10px 0 0;
}

.expanded-info-section,
.expanded-faq-section {
  background: #fff;
}

.expanded-info-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expanded-info-grid article {
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  padding: 24px;
}

.expanded-info-grid ul {
  color: #405978;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin: 14px 0 0;
  padding-left: 20px;
}

.expanded-related-section {
  background: #f5f8fc;
}

.expanded-section-head {
  margin-bottom: 20px;
}

.expanded-section-head span {
  color: #0d4591;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.expanded-related-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expanded-related-links a {
  background: #fff;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  color: #0d4591;
  font-size: 15px;
  font-weight: 900;
  min-height: 72px;
  padding: 18px;
  text-decoration: none;
}

.expanded-related-links a:hover,
.expanded-related-links a:focus {
  border-color: #8fb2df;
  box-shadow: 0 12px 28px rgba(7, 27, 52, 0.08);
}

.expanded-faq-list {
  display: grid;
  gap: 12px;
}

.expanded-faq-list details {
  background: #fff;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  padding: 18px 20px;
}

.expanded-faq-list summary {
  color: #08264b;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.expanded-faq-list p {
  margin: 12px 0 0;
}

@media (max-width: 1180px) {
  .expanded-tool-grid {
    grid-template-columns: 1fr;
  }

  .expanded-results {
    position: static;
  }
}

@media (max-width: 980px) {
  .expanded-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .expanded-tool-hero h1 {
    font-size: 44px;
  }

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

@media (max-width: 720px) {
  .expanded-tool-page .section {
    padding: 42px 0;
  }

  .expanded-hero-grid {
    gap: 28px;
    padding-bottom: 36px;
    padding-top: 28px;
  }

  .expanded-tool-hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .expanded-tool-hero p {
    font-size: 16px;
  }

  .expanded-form,
  .expanded-results {
    padding: 18px;
  }

  .expanded-card-head {
    display: grid;
  }

  .expanded-field-grid,
  .expanded-result-metrics,
  .expanded-info-grid,
  .expanded-related-links {
    grid-template-columns: 1fr;
  }

  .expanded-result-list div {
    grid-template-columns: 1fr;
  }

  .expanded-result-metrics strong {
    font-size: 24px;
  }

  .expanded-btn {
    width: 100%;
  }

  .expanded-copy-status {
    min-height: 20px;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .expanded-tool-hero h1 {
    font-size: 32px;
  }

  .expanded-breadcrumb {
    font-size: 12px;
  }

  .expanded-card-head h2,
  .expanded-info-grid h2,
  .expanded-section-head h2 {
    font-size: 24px;
  }
}
