.resource-rate-content td,.resource-rate-content thead th:not(:first-child){text-align:center}
[data-resource-plan="federal"] .resource-rate-content th:first-child,[data-resource-plan="postal"] .resource-rate-content th:first-child,[data-resource-plan="critical-illness"] .resource-rate-content th:first-child{text-align:center}

/* Shared presentation overrides load after the retained carrier styles. */
.plan-benefit-summary { margin-block: 1.25rem; padding: 1.5rem 1.75rem; background: var(--sky, #e9f1f8); border: 1px solid var(--line, #d5e0ea); border-left: 4px solid var(--eagle, #0e588e); border-radius: .5rem; }
.plan-benefit-summary p:first-child { margin-top: 0; }
.plan-benefit-summary ul:last-child { margin-bottom: 0; }
.native-rate-next { background: transparent; border: 0; border-radius: 0; padding: .5rem 0; box-shadow: none; }
.native-rate-next li { margin-block: .5rem; }
.plan-rate-actions { margin-top: 1.5rem; }
.native-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.native-plan-card { min-width: 0; }
@media (max-width: 1000px) { .native-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .native-grid { grid-template-columns: minmax(0, 1fr); } .plan-benefit-summary { padding: 1.25rem; } }

/* Four columns: benefit/premium pairs, read down the left then the right. */
.disability-rate-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;align-items:start;width:100%;}
.resource-rate-content .disability-rate-columns table {width:100%;max-width:none;margin:0;table-layout:fixed;}
.disability-rate-columns table+table {border-left:2px solid var(--navy,#0b2545);}
@media(max-width:600px){.disability-rate-columns{grid-template-columns:minmax(0,1fr);gap:1.25rem;}.disability-rate-columns table+table{border-left:0;}}

.native-plan-card .plan-card-title{font-family:var(--font,inherit);font-size:1.5rem;font-weight:800;line-height:1.22;margin:0 0 1rem;letter-spacing:-.025em;}
.plan-company-title,.plan-product-title{display:block;}
.plan-company-title{color:var(--navy,#0b2545);margin-bottom:.8rem;}
.plan-product-title{color:var(--eagle,#0e588e);font-size:1.25rem;font-weight:750;}
.native-plan-card .plan-detail-link{margin:0 0 1rem;font-weight:750;}

[data-resource-plan="federal"] .native-premiums,[data-resource-plan="postal"] .native-premiums{max-width:none;}

/* Blue cell backgrounds preserve the carrier spouse/grandchild reference bands. */
.carrier-plans .carrier-rates .spouse-band { box-shadow:none; background:color-mix(in srgb,var(--eagle,#0e588e) 18%,var(--paper,#fff)); color:var(--text,#0d2237); }

.carrier-rates [data-tobacco-filtered] { min-width: 0; table-layout: fixed; width: 100%; }
[data-tobacco-filtered] th { white-space: normal; overflow-wrap: anywhere; }
[data-tobacco-filtered] [hidden] { display: none; }
@media (max-width: 700px) {
  [data-tobacco-filtered] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  [data-tobacco-filtered] tbody tr { display: grid; grid-template-columns: minmax(0,1fr); padding: .75rem; }
  [data-tobacco-filtered] tbody th, [data-tobacco-filtered] tbody td { display: block; width: auto; text-align: start; }
  [data-tobacco-filtered] td::before { content: attr(data-rate-label) " "; font-weight: 700; }
  [data-tobacco-filtered] tbody td[hidden] { display: none; }
}

.plan-benefit-summary .rate-company-heading { color: var(--eagle-deep, #0a4570); font-size: clamp(1.65rem,2.5vw,2rem); font-weight: 800; line-height: 1.2; margin-top: 0; }

.plan-document-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-weight: 700; margin-block: .5rem 1rem; }
.native-plan-card .plan-card-title a { display: block; color: inherit; }

.native-section-links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-block: 1.5rem; }
.native-section-links a.btn { text-decoration: none; padding: .7rem 1.35rem; font-weight: 650; line-height: 1.2; border-radius: var(--r-sm); }

.comparison-company-name { display: block; font-size: clamp(1.2rem,2vw,1.55rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; color: #fff; }

/* Fit comparison columns to the full available reading width. */
.native-comparison-scroll { overflow: visible; max-width: none; }
.native-comparison-scroll > table { table-layout: fixed; width: 100%; }
.native-comparison-scroll > table > thead > tr > th,
.native-comparison-scroll > table > tbody > tr > th,
.native-comparison-scroll > table > tbody > tr > td { min-width: 0; overflow-wrap: anywhere; }

.reference-welcome-photo { float: right; width: min(32%, 22rem); margin: 0 0 1.5rem 2rem; }
.reference-welcome-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: var(--r); mask-image: linear-gradient(to bottom,#000 80%,transparent); }
.reference-welcome-photo ~ .carrier-plans { clear: both; }
@media(max-width:700px) { .reference-welcome-photo { float: none; width: min(100%,22rem); margin: 0 0 1.25rem; } }

@media(max-width:700px) {
  .native-comparison-scroll > table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .native-comparison-scroll > table > tbody > tr { display: block; margin-block: 1rem; }
  .native-comparison-scroll > table > tbody > tr > th,
  .native-comparison-scroll > table > tbody > tr > td { display: block; width: auto; }
  .native-comparison-scroll td[data-comparison-company]::before { content: attr(data-comparison-company); display: block; font-size: 1.2rem; font-weight: 800; color: var(--eagle-deep); margin-bottom: .75rem; }
  .native-comparison-scroll > table > tbody > tr > [hidden] { display: none; }
}


.disability-income-calculator { margin-block: 2rem; }
.income-calculator-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.income-calculator-fields label { display: block; font-weight: 700; margin-bottom: .5rem; }
.income-calculator-fields input, .income-calculator-fields select { box-sizing: border-box; width: 100%; min-height: 44px; }
.disability-income-calculator [data-income-result] { margin-top: 1rem; }
@media (max-width: 48rem) { .income-calculator-fields { grid-template-columns: 1fr; } }
