:root {
  --bg: #fff1f0;
  --panel-bg: rgba(255, 255, 255, 0.6);
  --card-color: rgba(255, 255, 255, 0.9);
  --text-color: #333;
  --accent-color: #d4351c;
  --accent-hover: #b8264a;
  --border: #e5d3d1;
  --accent: #990f3d;
  --accent-alt: #b8264a;
  --error: #cc0000;
  --text: #33302e;
  --muted: #66605c;
  --ft-pink: #fff1f0;
  --ft-pink-dark: #e5d3d1;
  --highlight: rgba(254, 249, 248, 0.8);
  --radius: 4px;
  --gap: 1.5rem;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0 0 2rem;
  font-size: 16px;
}
header, footer { padding: 1.5rem 1rem; }
header { 
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 3px solid var(--accent);
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.region-info {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.4;
}

#region-toggle {
  cursor: pointer;
}

.region-link {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
}

.region-link:hover {
  color: var(--accent-hover);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.region-link {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
}

.region-link:hover {
  color: var(--accent-hover);
}

.header-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.header-controls select {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-stack);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.header-controls select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
}
footer { text-align: center; font-size: 14px; color: var(--muted); }

h1 { 
  margin: 0 0 0.5rem; 
  font-size: clamp(1.75rem, 4vw, 2.5rem); 
  line-height: 1.1; 
  color: var(--accent);
  font-family: var(--font-stack);
  font-weight: 700;
}
h2 { 
  margin: 0 0 1rem; 
  font-size: 1.125rem; 
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.period-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.period-btn {
  background: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0;
  border-radius: 0;
  border-right: 1px solid var(--border);
}

.period-btn:last-child {
  border-right: none;
}

.period-btn:hover {
  background: var(--highlight);
}

.period-btn.active {
  background: var(--accent);
  color: white;
}

.period-btn.active:hover {
  background: var(--accent-alt);
}
header p { 
  margin: 0.5rem 0 0; 
  font-size: 1rem; 
  color: var(--muted); 
  line-height: 1.4;
  font-weight: 400;
}

main { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; display: grid; gap: 1rem; }
.panel { 
  background: var(--panel-bg); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow);
}

/* Introduction panel styling */
.intro-panel {
  background: var(--highlight);
  border: 2px solid var(--accent);
  margin-bottom: 1rem;
}

/* Synopsis panel styling */
.synopsis-panel {
  background: var(--highlight);
  border: 1px solid var(--accent);
  margin-bottom: 0;
  padding: 1rem 1.5rem;
}

.synopsis-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.guide-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.guide-link:hover {
  text-decoration: underline;
}

/* Detailed guide panel styling */
.detailed-guide {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  margin: 2rem auto 1rem;
  max-width: 1100px;
}

.guide-content h2 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.intro-content h3,
.guide-content h3 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.key-insights ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0;
}

.key-insights li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.key-insights li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.how-to-use ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.how-to-use li {
  margin-bottom: 0.5rem;
}

.threshold-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.threshold-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.threshold-item strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.threshold-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

.tip {
  background: rgba(212, 53, 28, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .threshold-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Footer disclaimer styling */
footer {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.footer-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclaimer {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.disclaimer h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
}

.disclaimer p {
  margin-bottom: 1rem;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

.daily-breakdown-explanation {
  background: var(--highlight);
  border: 1px solid var(--ft-pink-dark);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.daily-breakdown-explanation p {
  margin: 0 0 0.5rem 0;
}

.daily-breakdown-explanation p:last-child {
  margin-bottom: 0;
}

/* Daily breakdown table specific styles */
#daily-breakdown-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--accent);
}

#daily-breakdown-table tbody tr[style*="highlight"] td:first-child {
  color: var(--text);
}

#daily-breakdown-table tbody tr td:last-child {
  font-weight: 500;
}

/* Highlight zero-tax days */
#daily-breakdown-table tbody tr[style*="highlight"] {
  background-color: var(--highlight) !important;
  border-left: 3px solid var(--accent);
}

.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }

.input-with-selector {
  display: flex;
  position: relative;
}

.input-with-selector input[type="text"] {
  flex: 1;
  border-radius: 0 0.375rem 0.375rem 0;
  border-left: none;
}

.input-selector {
  width: auto;
  min-width: 45px;
  border-radius: 0.375rem 0 0 0.375rem;
  border-right: none;
  background-color: var(--ft-pink);
  border-color: #d1d5db;
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-selector:disabled {
  background-color: var(--ft-pink);
  color: var(--text);
  cursor: not-allowed;
  opacity: 1;
}

.input-selector:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
}

.checkbox-container {
  margin-top: 0.5rem;
  text-align: right;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
input[type=text] { 
  padding: 0.75rem; 
  font-size: 1rem; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  transition: border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-stack);
}
input[type=text]:focus { 
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
}
select { 
  padding: 0.75rem; 
  font-size: 1rem; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  transition: border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-stack);
  cursor: pointer;
}
select:focus { 
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
}
fieldset { 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1rem; 
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.5);
}
legend { 
  padding: 0 0.5rem; 
  font-weight: 600; 
  font-size: 0.875rem; 
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
label { font-weight: 500; font-size: 1rem; margin-bottom: 0.25rem; }
small { color: var(--muted); }

button { 
  cursor: pointer; 
  background: var(--accent);
  color: white; 
  border: none; 
  padding: 0.75rem 1.5rem; 
  font-size: 1rem; 
  border-radius: var(--radius); 
  margin-right: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  font-family: var(--font-stack);
}
button.secondary { 
  background: var(--muted);
  color: white;
}
button:hover { 
  background: var(--accent-alt);
}
button.secondary:hover { 
  background: var(--text);
}

.help-btn {
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
  min-width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 50% !important;
  font-weight: 600 !important;
}

.help-btn:hover {
  background: var(--accent) !important;
  color: white !important;
}

.error { 
  background: #fff5f5;
  color: var(--error); 
  padding: 1rem; 
  border-radius: var(--radius); 
  margin-top: 1rem; 
  border: 1px solid #fed7d7;
  font-size: 0.875rem;
}

.summary-grid { 
  display: grid; 
  gap: 1rem; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.summary-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.summary-with-chart {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.chart-summary-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.chart-in-summary {
  width: 100%;
}

.chart-in-summary h3,
.chart-container h3 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  align-self: start;
  width: 90%;
  min-width: 240px;
  max-width: 300px;
}

.chart-container canvas,
.chart-container svg {
  max-width: 100%;
  height: auto;
  width: 100%;
  min-width: 240px;
}

/* Responsive chart sizing */
@media (max-width: 480px) {
  .chart-container {
    min-width: 220px;
    max-width: 260px;
    justify-self: center;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .chart-container {
    min-width: 240px;
    max-width: 280px;
    justify-self: center;
  }
  
  .chart-summary-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }
}

@media (min-width: 768px) {
  .chart-container {
    max-width: 300px;
    min-width: 240px;
    flex-shrink: 0;
  }
}

.chart-tooltip {
  font-family: var(--font-stack);
  z-index: 1000;
}
.summary-card { 
  background: var(--panel-bg);
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1rem; 
  display: flex; 
  flex-direction: column;
  justify-content: space-between;
}
.summary-card.colored {
  background: var(--card-color);
  color: white;
  border-color: var(--card-color);
}
.summary-card.colored h3 {
  color: rgba(255, 255, 255, 0.9);
}
.summary-card.colored .value {
  color: white;
}
.summary-card h3 { 
  margin: 0 0 0.5rem; 
  font-size: 0.6875rem; 
  font-weight: 600; 
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.summary-card .value { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: var(--text);
  font-family: var(--font-stack);
  text-align: right;
}
.summary-card.small .value { font-size: 1.25rem; }

.data-table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td { 
  border-bottom: 1px solid var(--border); 
  padding: 0.75rem; 
  text-align: left; 
}
.data-table th { 
  background: var(--ft-pink);
  font-size: 0.75rem; 
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.data-table tbody tr:nth-child(even) { 
  background: rgba(250, 250, 250, 0.5);
}
.data-table tbody tr:hover {
  background: var(--highlight);
}

/* Right align monetary columns */
#income-tax-table th:nth-child(2),
#income-tax-table td:nth-child(2),
#income-tax-table th:nth-child(3),
#income-tax-table td:nth-child(3),
#income-tax-table th:nth-child(4),
#income-tax-table td:nth-child(4),
#income-tax-table th:nth-child(5),
#income-tax-table td:nth-child(5),
#ni-table th:nth-child(2),
#ni-table td:nth-child(2),
#ni-table th:nth-child(3),
#ni-table td:nth-child(3),
#ni-table th:nth-child(4),
#ni-table td:nth-child(4),
#ni-table th:nth-child(5),
#ni-table td:nth-child(5),
#student-loan-table th:nth-child(2),
#student-loan-table td:nth-child(2),
#student-loan-table th:nth-child(3),
#student-loan-table td:nth-child(3),
#student-loan-table th:nth-child(4),
#student-loan-table td:nth-child(4),
#student-loan-table th:nth-child(5),
#student-loan-table td:nth-child(5) {
  text-align: right;
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
  .header-content { 
    padding: 0.75rem; 
    gap: 0.5rem;
  }
  .header-top {
    gap: 1rem;
  }
  .header-controls { 
    flex-shrink: 0;
  }
  .header-controls select { min-width: auto; }
  
  header, footer { padding: 0; }
  h1 { font-size: 1.5rem; margin-bottom: 0; }
  .region-info { font-size: 0.8125rem; }
  h2 { font-size: 0.75rem; margin-bottom: 0.75rem; }
  header p { font-size: 0.875rem; }
  
  main { margin: 1rem auto; padding: 0 0.75rem; gap: 1rem; }
  .panel { padding: 1rem; }
  
  .summary-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .chart-summary-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }
  
  
  .chart-container {
    min-width: auto;
  }
  
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .summary-card { padding: 0.75rem; }
  .summary-card h3 { font-size: 0.6875rem; }
  .summary-card .value { font-size: 1.25rem; }
  
  .data-table { font-size: 0.75rem; }
  .data-table th, .data-table td { padding: 0.5rem; }
  .data-table th { font-size: 0.6875rem; }
}

/* Mobile table optimizations */
@media (max-width: 600px) {
  /* Hide less critical columns on very small screens */
  .data-table th:nth-child(2),
  .data-table td:nth-child(2) {
    display: none;
  }
  
  /* Make remaining columns more prominent */
  .data-table th:first-child,
  .data-table td:first-child {
    width: 50%;
  }
  
  .data-table th:last-child,
  .data-table td:last-child {
    width: 40%;
    font-weight: 600;
  }
}

/* Improve form layout on mobile */
@media (max-width: 480px) {
  fieldset label {
    margin-bottom: 0.5rem;
    display: block;
  }
  
  fieldset input[type="radio"] {
    margin-right: 0.5rem;
  }
}

@media (min-width: 768px) {
  .header-content { padding: 1.25rem 1rem; }
  header, footer { padding: 0; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1rem; margin-bottom: 1rem; }
  header p { font-size: 1.125rem; }
  
  main { margin: 2rem auto; padding: 0 1rem; gap: 2rem; }
  .panel { padding: 2rem; }
  
  .summary-layout {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
  }
  
  .chart-summary-row {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  
  .summary-grid { gap: 1rem; grid-template-columns: repeat(4, 1fr); }
  .summary-card { padding: 1rem; }
  
  .data-table { font-size: 1rem; }
  .data-table th, .data-table td { padding: 1rem; }
  .data-table th { font-size: 0.75rem; }
}

@media (min-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .summary-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* Improve form layout on mobile */
@media (max-width: 480px) {
  fieldset label {
    margin-bottom: .25rem;
    display: block;
  }
  
  fieldset input[type="radio"] {
    margin-right: .4rem;
  }
}

/* Dark mode disabled temporarily while considering color scheme
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2e1a17;
    --panel-bg: rgba(61, 43, 39, 0.7);
    --border: #4a3530;
    --text: #f7f3f0;
    --muted: #c7b8b3;
    --highlight: rgba(61, 43, 39, 0.8);
    --ft-pink: #4a3530;
    --ft-pink-dark: #5c453f;
  }
  
  .data-table th { 
    background: var(--ft-pink);
    color: var(--text);
  }
  .data-table tbody tr:nth-child(even) { 
    background: rgba(61, 43, 39, 0.5);
  }
  .data-table tbody tr:hover {
    background: rgba(74, 56, 51, 0.7);
  }
  
  input[type=text] { 
    background: rgba(61, 43, 39, 0.6); 
    color: var(--text);
    border-color: var(--border);
  }
  input[type=text]:focus {
    background: rgba(61, 43, 39, 0.9);
  }
  
  select { 
    background: rgba(61, 43, 39, 0.6); 
    color: var(--text);
    border-color: var(--border);
  }
  select:focus {
    background: rgba(61, 43, 39, 0.9);
  }
  
  fieldset {
    background: rgba(61, 43, 39, 0.5);
  }
  
  header {
    background: rgba(61, 43, 39, 0.5);
  }
  
  .header-controls select {
    background: rgba(61, 43, 39, 0.8);
    color: var(--text);
    border-color: var(--border);
  }
  .header-controls select:focus {
    background: rgba(61, 43, 39, 0.95);
  }
}
*/

/* Childcare Benefits Alert Styling - Horizontal Box */
.childcare-benefits-alert {
  margin: 1rem 0;
  border-radius: var(--radius);
  padding: 1rem;
  border-left: 4px solid;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.childcare-benefits-alert-warning {
  border-left-color: #f59e0b;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.childcare-benefits-alert-critical {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

.childcare-benefits-alert-info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert-text {
  flex: 1;
  color: var(--text);
  line-height: 1.4;
}

.alert-text strong {
  font-weight: 600;
}

.alert-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-stack);
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
}

.alert-btn:hover {
  background: var(--accent-hover);
}

.alert-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.alert-btn:active {
  transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .alert-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .alert-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Childcare cliff highlight in thresholds section */
.childcare-cliff-highlight {
  border: 2px solid #dc2626 !important;
  background: rgba(220, 38, 38, 0.05) !important;
}

/.childcare-cliff-highlight strong {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

/* Modal content styling for childcare benefits */
.modal-content {
  max-height: 70vh;
  overflow-y: auto;
}

.benefits-overview {
  margin-bottom: 1.5rem;
}

.benefit-scheme {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.benefit-scheme h5 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
  font-weight: 600;
}

.benefit-scheme ul {
  margin: 0;
  padding-left: 1.25rem;
}

.benefit-scheme li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.mitigation-strategies {
  margin-bottom: 1.5rem;
}

.strategy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.strategy h5 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strategy p {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.strategy-example {
  background: rgba(212, 53, 28, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.strategy-example strong {
  color: var(--accent);
}

.policy-context {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.policy-context h4 {
  margin: 0 0 0.75rem 0;
  color: var(--accent);
}

.policy-context p {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.policy-context p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for mobile */
