/* Salary calculator visual refresh */
body {
  background: #f6f8f7;
  color: #17201d;
}

.header {
  border: 1px solid #e2e8e5;
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.07);
}

.hamburger-toggle,
.mobile-close {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-top: 0;
  padding: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hamburger-toggle:hover,
.mobile-close:hover {
  border-color: transparent;
  background: transparent;
  filter: none;
}

.main-container {
  gap: 24px;
  padding-top: 20px;
}

.calculator-container {
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e8e5;
  border-radius: 20px;
  background: white;
  box-shadow: none;
}

.calculator-page-heading {
  padding: 40px;
  background: #075e47;
}

.calculator-page-heading .calculator-title {
  max-width: 760px;
  margin-bottom: 14px;
  color: white;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  text-shadow: none;
}

.calculator-page-heading .calculator-title .emoji-icon {
  display: none !important;
}

.calculator-page-heading .author-byline {
  margin: 0 0 10px;
  color: #bfe1d5;
  font-size: 13px;
}

.calculator-page-heading .author-byline a {
  color: white;
  text-underline-offset: 3px;
}

.calculator-page-heading .subtitle {
  margin: 0;
  color: #d8eee6;
  font-size: 16px;
}

#calculatorForm {
  margin: 32px;
  padding: 28px;
  border: 1px solid #dce5e1;
  border-radius: 16px;
  background: #f8faf9;
}

label {
  color: #26332e;
}

input,
select {
  min-height: 52px;
  border: 1px solid #ccd8d3;
  background: white;
}

input:hover,
select:hover {
  border-color: #98b8ac;
}

input:focus,
select:focus {
  border-color: #087a55;
  box-shadow: 0 0 0 4px rgba(8, 122, 85, 0.12);
}

#calculatorForm button {
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid #087a55;
  border-radius: 10px;
  background: #087a55;
  box-shadow: none;
  font-family: var(--font-primary);
  font-size: 16px;
  letter-spacing: 0;
}

#calculatorForm button:hover {
  border-color: #075e47;
  background: #075e47;
  filter: none;
}

#calculatorForm button:focus-visible,
input:focus-visible,
select:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 3px;
}

.results {
  margin-right: 32px;
  margin-left: 32px;
}

.breakdown {
  padding: 26px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  box-shadow: none;
}

.breakdown-title {
  color: #075e47;
}

.result-item:last-child {
  border: 1px solid #8bd0b5;
  background: #eaf6f0;
}

.result-value.positive {
  color: #075e47;
}

.info-box {
  border-left: 4px solid #087a55;
  background: #eaf6f0;
  color: #215c49;
}

.educational-intro,
.educational-guide,
.faq-container,
.calculator-container > .guide-section {
  margin: 32px;
}

.educational-intro {
  padding: 24px;
  border: 1px solid #d6e8e1;
  border-left: 1px solid #d6e8e1;
  border-radius: 14px;
  background: #f4faf7;
}

.educational-intro h3 {
  color: #075e47;
}

.educational-intro h3 .emoji-icon,
.guide-title .emoji-icon,
.guide-section h4 .emoji-icon,
.faq-container .emoji-icon,
.sidebar .emoji-icon,
.footer .emoji-icon {
  display: none !important;
}

.educational-guide,
.faq-container {
  padding: 0;
  border-top: 1px solid #e2e8e5;
  border-radius: 0;
  background: white;
}

.guide-title {
  margin: 0;
  padding: 32px 0 18px;
  border-bottom: 1px solid #e2e8e5;
  color: #075e47;
  font-size: 28px;
  text-shadow: none;
}

.guide-section {
  margin: 28px 0;
}

.guide-section h4 {
  color: #075e47;
}

/* shared.css zeroes every element's padding via its `*` reset. Pages restore
   the indent for `ul` in their own styles, but none ever did for `ol`, so
   numbered lists rendered with their markers flush against the content edge.
   Restored here so any page joining the calculator system inherits it. */
.guide-section ol,
.educational-guide ol {
  margin: 15px 0;
  padding-left: 28px;
}

.guide-section ol li,
.educational-guide ol li {
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.7;
}

.example-box {
  border-left-color: #087a55;
  background: #f0f7f4;
}

.example-box strong {
  color: #075e47;
}

.faq-question {
  min-height: 48px;
  padding: 10px 0;
}

.faq-question:hover {
  background: transparent;
  color: #075e47;
}

.sidebar-card {
  padding: 24px;
  border: 1px solid #e2e8e5;
  border-radius: 16px;
  box-shadow: none;
}

.sidebar-card h3 {
  color: #075e47;
}

.sidebar-card a {
  color: #087a55;
}

.cta-box {
  border-radius: 16px;
  background: #075e47;
  box-shadow: none;
}

.cta-box .cta-button {
  min-height: 44px;
  border: 1px solid white;
  border-radius: 10px;
  color: #075e47;
}

.footer {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 48px 32px;
  border-radius: 18px;
  background: #075e47;
  color: #f7fffb;
}

.footer p {
  color: #f7fffb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.footer-links a {
  margin: 0;
  color: #d7f3e7;
  opacity: 1;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/*
 * Wide screens have enough outer margin to hold the supporting rail without
 * reducing the calculator body. The 1200px body remains aligned with header.
 */
@media (min-width: 1800px) {
  .main-container {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: absolute;
    top: 0;
    left: calc(100% + 24px);
    width: min(320px, calc((100vw - 1200px) / 2 - 24px));
  }
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
    padding-right: 12px;
    padding-left: 12px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    padding: 8px;
  }

  .header {
    top: 8px;
  }

  .main-container {
    padding: 12px 0 0;
  }

  .calculator-container {
    border-radius: 16px;
  }

  .calculator-page-heading {
    padding: 32px 20px;
  }

  .calculator-page-heading .calculator-title {
    font-size: 32px;
  }

  .calculator-page-heading .subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  #calculatorForm,
  .educational-intro,
  .educational-guide,
  .faq-container,
  .calculator-container > .guide-section {
    margin: 22px 18px;
  }

  #calculatorForm {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .results {
    margin-right: 18px;
    margin-left: 18px;
  }

  .breakdown {
    padding: 18px 14px;
  }

  .result-item {
    padding: 14px 8px;
  }

  .result-item:last-child {
    padding: 18px 12px;
  }

  .result-value.positive {
    font-size: 25px;
  }

  .guide-title {
    font-size: 25px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: 48px;
    padding: 32px 18px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .results,
  .faq-answer,
  .faq-arrow {
    transition: none;
  }
}
