.fiscal-tools-section {
  padding: 42px 0 82px;
  background: #f5f5f5;
}

.fiscal-tools-intro {
  max-width: none;
  margin: 0 0 30px;
  padding: 0 0 24px;
  border-bottom: 1px solid #ddd;
  background: transparent;
}

.fiscal-tools-intro.text-center {
  text-align: left !important;
}

.fiscal-tools-eyebrow {
  display: none;
}

.fiscal-tools-intro h1 {
  margin: 0 0 12px;
  color: #303032;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
}

.fiscal-tools-intro p {
  max-width: 850px;
  margin: 0;
  color: #5c5c5c;
  line-height: 1.75;
}

.fiscal-tool-cards > [class*="col-"] {
  display: flex;
}

.fiscal-tool-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(48, 48, 50, .04);
}

.fiscal-tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  color: #666;
}

.fiscal-tool-status { color: #666; }
.fiscal-tool-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 25px 0 20px;
  place-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #fff;
  color: #007dcf;
  font-size: 24px;
}
.fiscal-tool-icon-text { font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; }
.fiscal-tool-category { margin: 0 0 10px; color: #666; font-size: 11px; font-weight: 400; letter-spacing: .03em; }
.fiscal-tool-card h2 { margin: 0 0 12px; color: #222; font-size: 22px; font-weight: 500; }
.fiscal-tool-card > p:not(.fiscal-tool-category) { margin: 0 0 24px; color: #666; font-size: 14px; line-height: 25px; }
.fiscal-tool-action { align-self: flex-start; margin-top: auto; }
.fiscal-tool-action span { display: none; }
.fiscal-tools-notice { margin: 0; padding: 16px 0 0; border-top: 1px solid #ddd; color: #666; font-size: 12px; line-height: 22px; }

/* Native PHP simulator pages: retain the tested component markup while applying Audinex tokens. */
.audinex-simulator-page {
  background: #f5f5f5;
}

.audinex-simulator-page .simulator-page-section {
  padding-top: 42px;
}

.audinex-simulator-page .ras-simulator {
  --brand: #004d6a;
  --brand-dark: #303032;
  --accent: #007dcf;
  --ink: #303032;
  --muted: #66727a;
  --line: #dbe3e7;
  --pale: #e9f4fa;
  padding: 0 0 20px;
  font-family: "Open Sans", sans-serif;
}

.audinex-simulator-page .ras-intro {
  margin-bottom: 24px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.audinex-simulator-page .ras-intro::after {
  display: none;
}

.audinex-simulator-page .ras-intro .ras-eyebrow {
  display: none;
}

.audinex-simulator-page .ras-intro h1 {
  max-width: none;
  margin: 0 0 12px;
  color: #303032;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
}

.audinex-simulator-page .ras-intro h1 span {
  display: inline;
  color: inherit;
}

.audinex-simulator-page .ras-intro .hub-back-link {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 400;
}

.audinex-simulator-page .hub-back-link:hover {
  color: #007dcf;
}

.audinex-simulator-page .ras-intro > p:last-child {
  color: #5e6d74;
}

.audinex-simulator-page .ras-panel,
.audinex-simulator-page .ras-result {
  box-shadow: 0 8px 20px rgba(48, 48, 50, .05);
}

.audinex-simulator-page .ras-form input:not([type=radio]),
.audinex-simulator-page .ras-form select {
  border-color: #c9d6dc;
}

.audinex-simulator-page .ras-form input:not([type=radio]):focus,
.audinex-simulator-page .ras-form select:focus {
  border-color: #007dcf;
  box-shadow: 0 0 0 3px rgba(0, 125, 207, .14);
}

.audinex-simulator-page .choice-card:hover {
  border-color: #77b8d9;
  background: #f7fbfd;
}

.audinex-simulator-page .choice-card:has(input:checked),
.audinex-simulator-page .yes-no label:has(input:checked) {
  border-color: #77b8d9;
  background: #edf7fb;
}

.audinex-simulator-page .yes-no input {
  accent-color: #007dcf;
}

.audinex-simulator-page .calculate-button {
  border-color: #303032;
  background: #303032;
  font-family: "Open Sans", sans-serif;
}

.audinex-simulator-page .calculate-button:hover {
  background: #004d6a;
}

.audinex-simulator-page .direct-calculation {
  border-color: #bddce9;
  border-left-color: #007dcf;
  background: linear-gradient(135deg, #edf7fb, #fff);
}

.audinex-simulator-page .direct-calculation .formula-list {
  border-color: #c9e0ea;
}

.audinex-simulator-page .accounting-treatment {
  border-color: #c9e0ea;
  border-left-color: #007dcf;
  background: #f4faff;
}

@media (max-width: 767px) {
  .fiscal-tools-section {
    padding: 42px 0 54px;
  }

  .fiscal-tools-intro {
    margin-bottom: 24px;
    padding: 0 0 20px;
  }

  .fiscal-tools-intro h1,
  .audinex-simulator-page .ras-intro h1 {
    font-size: 24px;
  }

  .fiscal-tool-card {
    min-height: 0;
  }

  .audinex-simulator-page .simulator-page-section {
    padding-top: 24px;
  }
}

/* Use the existing Audinex page banner; simulator fields retain their layout. */
.simulator-banner h1 { margin-bottom: .5rem; }
.simulator-hub-description { max-width: none; margin: 0 0 30px; }
.audinex-simulator-page .simulator-page-introduction { margin-bottom: 24px; }
.audinex-simulator-page .simulator-page-introduction .hub-back-link { margin: 0 0 12px; font-size: 13px; font-weight: 400; }
.audinex-simulator-page .simulator-page-introduction p { margin: 0; }
@media (max-width: 767px) {
  .simulator-banner.page-title { padding: 70px 0 55px; }
  .simulator-banner h1 { font-size: 26px; line-height: 1.4; }
}

/* Rental tool title stays beside its icon at every screen width. */
.fiscal-tool-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 25px 0 20px;
}
.fiscal-tool-heading .fiscal-tool-icon {
  flex: 0 0 54px;
  margin: 0;
}
.fiscal-tool-card .fiscal-tool-heading h2 {
  min-width: 0;
  margin: 0;
  line-height: 1.3;
}
