/* ============================================ */
/* BUTTONS, PILLS, SLIDERS, WHITESPACE          */
/* ============================================ */
/* === Unified Button Styling === */
button,
.btn-primary,
.btn-secondary {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Primary actions */
.btn-primary,
#calcBtn,
#printReportBtn {
  background-color: #2f9e44;
  color: #fff;
  border: 2px solid #2f9e44;
}

/* Secondary actions */
.btn-secondary,
#sampleBtn,
#resetBtn,
#saveScenarioBtn,
#loadScenarioBtn,
#deleteScenarioBtn {
  background-color: #ffffff;
  color: #2f9e44;
  border: 2px solid #2f9e44;
}

/* Hover states */
.btn-primary:hover,
#calcBtn:hover,
#printReportBtn:hover {
  background-color: #278a3c;
}

.btn-secondary:hover {
  background-color: #f2fbf4;
}

/* Scenario tools button alignment */
.scenario-tools-row button {
  min-width: 160px;
  text-align: center;
}


/* Add black outline to primary action buttons for emphasis */
#calcBtn,
#printReportBtn,
.btn-primary {
  border-color: #000 !important;
}


/* Add green fill to Save a Scenario box to match entry fields */
.scenario-tools {
  background-color: #e9fbe9; /* same family as green entry boxes */
}


/* Credibility line */
.credibility-line{
  text-align:center;
  font-size: 0.90rem;
  font-weight: 600;
  color:#222;
  margin: 12px auto 24px !important;
  max-width: 920px;
  padding: 8px 16px;
  background: #fef9e7;
  border-left: 4px solid #f39c12;
}

/* Calculate button subheading: brighter + larger */
#calcBtn .btn-subtext{
  color: #ffeb3b !important;
  font-size: 0.9rem !important;
  font-weight: 700;
}


}


/* Subtle colored shadow around main sections */
.card.household {
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.18);
}

.card.spouse1 {
  box-shadow: 0 4px 12px rgba(0, 90, 200, 0.18);
}

.card.spouse2 {
  box-shadow: 0 4px 12px rgba(200, 60, 60, 0.18);
}


/* Tab preselect: focus the whole section (card) before its first input */
.card.section-preselect {
  background-color: #fff3b0 !important; /* soft yellow */
}
.card.section-preselect:focus { outline: 3px solid rgba(255, 235, 59, 0.9); outline-offset: 3px; }


/* When a section is preselected, keep standard inputs white so they don't turn yellow */
.card.section-preselect input:not(.green-input):not(.blue-focus),
.card.section-preselect select:not(.blue-focus),
.card.section-preselect textarea:not(.blue-focus) {
  background-color: #fff !important;
}


}


/* Salary increase "sticker" shown in Summary table when a new benefit kicks in */
/* Salary increase marker: compact red double-ended flag INSIDE the cell */
.salary-badge{
display: inline-block;
  position: relative;
  margin-left: 8px;
  padding: 2px 10px;
  background: #c81e1e !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.62rem;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 4px;
  vertical-align: middle;

}


/* Pointed ends (double-ended flag) */
.salary-badge::before,
.salary-badge::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
}

.salary-badge::before{
  left: -8px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 8px solid #c81e1e;
}

.salary-badge::after{
  right: -8px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 8px solid #c81e1e;
}

/* Keep it out of PDFs */
/* Build marker (for cache verification) */
.build-marker{
  text-align:center;
  font-size: 10px;
  color:#888;
  margin: 6px 0 0;
}
@media print{ .build-marker{ display:none !important; } }


/* Compact "Load Sample Scenario" near title */
.sample-btn-top-wrap{
  display: inline-block;
  margin-left: 14px;
  vertical-align: middle;
}

.btn-sample-top{
  padding: 6px 12px !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
}

/* Hide original sample button in actions */
.hidden-sample-btn{
  display:none;
}


/* Sample button positioned beside the hero title */
h1.hero-title,
h1[style*="line-height"]{
  position: relative;
  width: 100%;
}

.btn-sample-top{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  padding: 10px 14px !important;
  font-size: 0.8rem !important;
  border-radius: 12px !important;
  border-width: 2px !important;
  box-shadow: 0 4px 14px rgba(47,158,68,0.20);
}


/* Sample button under GOLD STANDARD line */
.sample-btn-under-gold{
  display:flex;
  justify-content:center;
  margin: 10px 0 6px;
}
.btn-sample-under-gold{
  background: #c81e1e;
  color: #ffeb3b;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-sample-under-gold:hover{
  filter: brightness(1.05);
}


/* Household mini buttons above Monthly Expenses (absolute so they don't shift layout) */
.card.household{ position: relative; }

.house-quick-actions{
  position: absolute;
  left: 18px;
  top: 40px;              /* clearly above "Monthly Expenses" label */
  display: flex;
  gap: 6px;
  z-index: 10;
}

.btn-sample-mini{
  background: #c81e1e;
  color: #ffeb3b;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 1px 4px;        /* ~50% height, ~35–40% width */
  font-size: 0.65rem;     /* readable */
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.btn-clear-mini{
  background: #2f9e44;
  color: #ffeb3b;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 1px 4px;        /* ~50% height, ~35–40% width */
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sample-mini:hover,
.btn-clear-mini:hover{
  filter: brightness(1.05);
}

@media print{
  .house-quick-actions{ display:none !important; }
  #benFranklinContainer{ display:none !important; }
  #philosophyModal{ display:none !important; }
}


/* Household quick-action links (text only, no boxes) */
.card.household{ position: relative; }

.house-quick-links{
  position: absolute;
  left: 18px;
  top: 56px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  white-space: nowrap;
  margin-bottom: 4px;
}

.link-sample{
  color: #c81e1e;
  text-decoration: underline;
  cursor: pointer;
}

.link-clear{
  color: #2f9e44;
  text-decoration: underline;
  cursor: pointer;
}

.link-sep{
  margin: 0 6px;
  color: #555;
}

@media print{
  .house-quick-links{ display:none !important; }
}


/* Hide legacy action-bar buttons now represented as Household links */
#resetBtn,
#calcBtn,
#printReportBtn {
  display: none !important;
}



/* Household action links (above What If) - stacked groups */
.house-action-links{
  margin: 10px 0 14px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.house-action-group{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.house-action-calc{
  color: #000;
  text-decoration: underline;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.house-action-pdf{
  color: #2f9e44;
  text-decoration: underline;
  font-weight: 800;
}

.house-action-sub{
  font-size: 0.78rem;
  color: #555;
  font-style: italic;
  line-height: 1.15;
  max-width: 95%;
}

@media print{
  .house-action-links{ display:none !important; }
}

/* === Tighten vertical whitespace (override) === */
.house-action-links{
  margin: 4px 0 4px !important;
  padding-top: 0 !important;
  gap: 8px !important;
}

.house-action-group{
  gap: 2px !important;
}

.house-action-sub{
  margin-top: 2px !important;
}

.card{
  padding-bottom: 10px !important;
}

/* Pull "What If" upward */
.card.household .house-subheading{
  margin-top: 8px !important;
}

/* Reduce extra bottom breathing room inside spouse cards */
.card.spouse1,
.card.spouse2{
  padding-bottom: 10px !important;
}


#pdfLinkHouse:focus,
#pdfLinkHouse:focus-visible{
  background-color: #2f9e44 !important;
  color: #ffeb3b !important;
  outline: none !important;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(248,113,113,0.7);
  text-decoration: none !important;
}


/* === Permanent pill-style action links === */
.house-action-calc,
.house-action-pdf{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

/* <span class="calc-word">CALCULATE</span> NOW: blue fill, yellow text, red border */
.house-action-calc{
  background: #2563eb;      /* blue */
  color: #ffeb3b;
  border: 3px solid #b91c1c;
}

/* Generate PDF: green fill, yellow text, red border */
.house-action-pdf{
  background: #2f9e44;
  color: #ffeb3b;
  border: 3px solid #b91c1c;
}

/* Hover / focus override (both turn yellow with black text) */
.house-action-calc:hover,
.house-action-calc:focus,
.house-action-calc:focus-visible,
.house-action-pdf:hover,
.house-action-pdf:focus,
.house-action-pdf:focus-visible{
  background: #ffeb3b !important;
  color: #000 !important;
  outline: none !important;
}


/* Household quick link: Get Report (blue) */
.link-report{ color:#2563eb; text-decoration: underline; cursor:pointer; }

/* Position CALCULATE NOW centrally (override) */
.card.household .house-action-links{
  margin-top: 6px !important;
  margin-bottom: 16px !important;
}

/* Focus highlight for the "Show ..." label (keyboard) */
label[for="ss_drop_25"][tabindex="0"]:focus,
label[for="ss_drop_25"][tabindex="0"]:focus-visible{
  background-color: #fff8b3;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(248,113,113,0.7);
  outline: none;
}


/* Centered content inside CALCULATE NOW pill */
.house-action-calc{
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.house-action-calc .calc-main{
  font-size: 1rem;
}

.house-action-calc .calc-sub{
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
  color: #ffffff;
}


/* Prevent wrapping inside CALCULATE button subtext */
.house-action-calc .calc-sub{
  white-space: nowrap;
}


/* ===  sliders: bold green === */
.slider-row input[type="range"]{
  height: 8px;                              /* bolder track */
  background: #2f9e44;                     /* same green as title */
  border-radius: 8px;
}

.slider-row input[type="range"]::-webkit-slider-runnable-track{
  height: 8px;
  background: #2f9e44;
  border-radius: 8px;
}

.slider-row input[type="range"]::-webkit-slider-thumb{
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f9e44;
  border: 3px solid #14532d;               /* darker green edge */
  box-shadow: 0 0 6px rgba(47,158,68,0.6);
  cursor: pointer;
  margin-top: -6px;
}

.slider-row input[type="range"]::-moz-range-track{
  height: 8px;
  background: #2f9e44;
  border-radius: 8px;
}

.slider-row input[type="range"]::-moz-range-thumb{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f9e44;
  border: 3px solid #14532d;
  box-shadow: 0 0 6px rgba(47,158,68,0.6);
  cursor: pointer;
}


/* === Stronger card shadows (subtle but more visible) === */
.card{
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.card.household{
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.card.spouse1{
  box-shadow: 0 8px 22px rgba(37,99,235,0.22);
}

.card.spouse2{
  box-shadow: 0 8px 22px rgba(185,28,28,0.22);
}


/* Ensure CALCULATE button subtext turns black on hover/focus */
.house-action-calc:hover .calc-sub,
.house-action-calc:focus .calc-sub,
.house-action-calc:focus-visible .calc-sub{
  color: #000 !important;
}


/* Darken borders for What If entry boxes to match other inputs */
.card.household input[id^="s1_dies"],
.card.household input[id^="s2_dies"],
.card.household input[id*="dies"]{
  border-color: #4b5563 !important;
  border-width: 2px !important;
}


/* Force What If inputs to match standard entry box borders */
.card.household .house-whatif input[type="number"],
.card.household .house-whatif input[type="text"]{
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #374151 !important;
}


/* === Summary flags: green for increases, red for reductions === */
.salary-badge{
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #2f9e44;      /* GREEN for increases */
  color: #ffffff;
  font-weight: 800;
  font-size: 0.62rem;
  line-height: 1.1;
  white-space: nowrap;
  border: 2px solid #1f6f32;
  vertical-align: middle;
}

.salary-badge.badge-negative{
  background: #b91c1c;      /* RED for reductions */
  border-color: #7f1d1d;
  color: #ffffff;
}


@media print {
  .salary-badge{
    display: inline-block !important;
  }
}
/* your new CSS goes here */

