/* LAC model styles stay local to this page. */
.lac-page { background: #fcfcfa; color: #172b2a; }
.lac-shell { max-width: 1180px; padding: 44px 28px 80px; margin: auto; }
.lac-shell h1, .lac-shell h2, .lac-shell h3 { color: #172b2a; letter-spacing: -.035em; line-height: 1.2; }
.lac-shell h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 12px 0 18px; }
.lac-shell h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 6px 0 14px; }
.lac-shell h3 { font-size: 19px; margin: 0 0 18px; }
.lac-shell p { color: #53615e; }
.lac-hero > p:not(.lac-eyebrow) { max-width: 710px; font-size: 17px; }
.lac-eyebrow { color: #43695e !important; font-size: 11px; letter-spacing: .14em; font-weight: 700; margin: 0; }
.model-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #68766f; font-size: 12px; margin: 25px 0; }
.model-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; border-block: 1px solid #d9e0d9; padding: 14px 0; margin: 28px 0 36px; }
.lac-shell a { color: #27654f; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.model-nav a { font-size: 13px; text-decoration: none; font-weight: 600; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.model-actions, .scenario-buttons { display: flex; gap: 8px; }
.lac-shell button { font: inherit; font-size: 13px; font-weight: 600; background: #fff; color: #264b3e; border: 1px solid #cdd8ce; padding: 10px 16px; border-radius: 5px; cursor: pointer; }
.lac-shell button:hover { background: #edf2eb; }
.lac-shell button:disabled { opacity: .5; cursor: not-allowed; }
.lac-shell :focus-visible { outline: 3px solid #3c8069; outline-offset: 3px; }
.scenario-bar { display: flex; gap: 22px; align-items: center; margin-top: 18px; }
.scenario-buttons { flex-shrink: 0; padding: 4px; background: #eaf0e8; border-radius: 7px; }
.scenario-buttons button { border: 0; background: transparent; min-width: 65px; }
.scenario-buttons button[aria-pressed="true"] { background: #244d3e; color: #fff; }
.scenario-bar p { font-size: 13px; margin: 0; }
.lac-shell .model-note { font-size: 12px; line-height: 1.65; color: #627068; }
.driver-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; background: #f0f3ec; border: 1px solid #dce3d8; border-radius: 8px; padding: 24px; margin: 22px 0; }
.model-field { min-width: 0; }
.model-field label { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 9px; }
.model-field label span { display: block; font-size: 11px; color: #65766b; font-weight: 400; margin-top: 3px; }
.model-field input { display: block; width: 100%; min-width: 0; border: 1px solid #b8c9b9; border-radius: 4px; background: #fff; color: #153e2e; font: inherit; font-size: 18px; font-weight: 600; padding: 11px 10px; font-variant-numeric: tabular-nums; }
.model-field input[aria-invalid="true"] { border-color: #ac4932; background: #fff6f0; }
.model-field small { display: block; color: #68746a; font-size: 11px; line-height: 1.6; margin-top: 8px; }
.field-error { display: block; font-size: 12px; color: #a13b27; margin-top: 4px; }
.input-group { border-bottom: 1px solid #dde3da; }
.lac-shell summary { padding: 17px 0; font-weight: 600; font-size: 14px; cursor: pointer; color: #2e493c; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 10px 0 28px; }
.results-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; margin: 30px 0 16px; }
.result-card { padding: 24px; border: 1px solid #d8e0d7; border-radius: 7px; background: #fff; }
.result-card p { font-size: 12px; margin: 0 0 14px; }
.result-card strong { display: block; font-size: clamp(28px, 3.6vw, 43px); letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result-card small { display: block; font-size: 11px; line-height: 1.6; color: #67746b; margin-top: 12px; }
.primary-result { background: #244d3e; border-color: #244d3e; color: #fff; }
.primary-result p, .primary-result small { color: #d3e3d8; }
.model-notice { border-left: 3px solid #8eaa90; padding: 12px 16px; background: #f0f3ec; font-size: 12px; line-height: 1.8; color: #546453; }
.model-notice strong { color: #304933; }
.model-warning, .validation-summary { background: #fff1e6; color: #823b20 !important; padding: 14px; font-size: 13px; border-radius: 5px; }
.analysis-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 26px; align-items: start; }
.analysis-panel { background: #fff; border: 1px solid #dce2d9; border-radius: 7px; padding: 26px; min-width: 0; }
.lac-shell > .analysis-panel { margin-top: 28px; }
.analysis-panel > p { font-size: 13px; }
.reference-results { margin: 24px 0 0; }
.reference-results > div { border-top: 1px solid #e2e7df; padding: 14px 0; }
.reference-results dt { font-size: 12px; color: #667566; }
.reference-results dd { margin: 5px 0 0; color: #254f3c; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-scroll { overflow: auto; max-width: 100%; }
.model-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.model-table caption { font-size: 11px; text-align: left; color: #697469; padding: 0 0 12px; }
.model-table th, .model-table td { text-align: right; padding: 11px 12px; border-bottom: 1px solid #e4e8e1; white-space: nowrap; }
.model-table th { color: #526553; font-weight: 500; }
.model-table th:first-child, .model-table td:first-child { text-align: left; }
#equity-bridge th { white-space: normal; }
#equity-bridge tr:last-child { font-weight: 700; background: #f0f4ed; }
.model-table thead { background: #f2f5ef; }
.sensitivity-table { min-width: 510px; }
.sensitivity-table td { font-size: 15px; padding: 18px 14px; }
.sensitivity-table .current-cell { outline: 2px solid #38644a; outline-offset: -3px; font-weight: 700; }
.cash-flow-chart { width: 100%; overflow-x: auto; }
.cash-flow-chart svg { width: 100%; min-width: 540px; display: block; }
.cash-flow-chart text { font-family: inherit; font-size: 10px; fill: #63705f; }
.schedule-details { margin-top: 12px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }
.method-grid p, .method-details li { font-size: 13px; color: #536352; line-height: 1.8; }
.method-details li { margin: 10px 0; }
.source-list { padding-left: 20px; font-size: 12px; line-height: 1.7; }
.source-list li { padding: 7px 0; }
.source-list span { display: block; color: #6b7667; }
.lar-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; margin-top: 24px; }
.lar-output { background: #f0f3ec; padding: 18px; border-radius: 5px; }
.lar-output p { font-size: 12px; margin: 0 0 12px; }
.lar-output strong { display: block; font-size: 28px; }
.lar-output small { font-size: 11px; color: #60705d; }
.background-reading { margin-top: 28px; }
.background-reading > summary { border-block: 1px solid #dce2d9; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.comparison-table td, .comparison-table th { padding: 12px; border: 1px solid #dce2d9; text-align: left; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .driver-grid, .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: 1fr; }
  .lar-grid { grid-template-columns: 1fr 1fr; }
  .lar-output { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .lac-shell { padding: 30px 18px 60px; }
  .section-heading, .scenario-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .driver-grid { padding: 18px; gap: 20px 14px; }
  .model-field label { font-size: 12px; }
  .model-field input { font-size: 16px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card { padding: 20px; }
  .result-card strong { font-size: 36px; }
  .analysis-panel { padding: 20px 16px; }
  .method-grid { grid-template-columns: 1fr; gap: 12px; }
  .field-grid { grid-template-columns: 1fr; }
  .model-nav { gap: 10px 18px; }
  .model-meta { gap: 8px 15px; }
}
@media print {
  .site-header, .model-actions, .scenario-bar, .lf-chat-section, footer { display: none; }
  .lac-shell { max-width: none; padding: 0; }
  .analysis-panel, .result-card { break-inside: avoid; }
}
