:root {
  color-scheme: light;
  --navy: #10243a;
  --text: #263c50;
  --muted: #526678;
  --teal: #076c68;
  --teal-dark: #06524f;
  --teal-soft: #e5f1ef;
  --paper: #f7f9fa;
  --border: #dbe5e9;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 20px 55px rgba(16, 36, 58, .09);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color: var(--text); background: var(--white); font-family: var(--sans); line-height: 1.55; overflow-wrap: break-word; }
body { margin: 0; }
img { max-width: 100%; vertical-align: middle; }
a { color: var(--teal-dark); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #087a72; outline-offset: 4px; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5vw, 4.05rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.22rem; letter-spacing: -.015em; }
h1 em { font-weight: inherit; font-style: italic; color: var(--teal-dark); }
small, .small { font-size: .86rem; }
.numeric { font-variant-numeric: tabular-nums; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { margin-bottom: .9rem; color: var(--teal-dark); font-size: .86rem; font-weight: 750; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.muted, small, .unknown { color: var(--muted); }
.unknown { font-size: .9rem; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; top: .5rem; left: .5rem; z-index: 4; padding: .6rem; background: white; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 750; font-size: 1.28rem; white-space: nowrap; letter-spacing: -.055em; text-decoration: none; }
.brand span span { color: var(--teal); }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.desktop-nav a, .mobile-nav a { text-decoration: none; color: var(--navy); font-size: .89rem; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav [aria-current], .mobile-nav [aria-current] { color: var(--teal); text-decoration: underline; }
.mobile-nav { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; min-height: 46px; padding: .65rem 1.05rem; border: 1px solid transparent; text-align: center; font-weight: 720; font-size: .93rem; line-height: 1.35; text-decoration: none; }
.btn-primary { color: white; background: var(--teal-dark); }
.btn-primary:hover { background: var(--navy); }
.btn-secondary { color: var(--teal-dark); border-color: #a9c8c5; background: var(--white); }
.btn-secondary:hover { background: var(--teal-soft); }
.review-banner { border-bottom: 1px solid #dce9e9; background: #eef6f5; color: #345d60; font-size: .86rem; }
.review-banner .wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-banner span:first-child { font-weight: 750; }
.hero { background: #f6f9f8; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(350px, .85fr); gap: clamp(30px, 6vw, 94px); align-items: center; padding-block: clamp(56px, 7.3vw, 112px); }
.hero-copy > p:not(.eyebrow) { max-width: 33rem; color: var(--muted); font-size: clamp(1.06rem, 1.9vw, 1.25rem); margin-bottom: 1.55rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ledger { margin: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--white); padding: clamp(19px, 3vw, 34px); box-shadow: var(--shadow); }
.ledger-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; line-height: 1.3; }
.ledger-head > div { flex: 1; min-width: 0; }
.ledger-head > div > span, .ledger-main > span { display: block; color: var(--muted); font-size: .87rem; }
.ledger-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 9px; font-size: 1.25rem; flex: none; }
.period { border: 1px solid var(--border); border-radius: 5px; padding: .35rem .55rem; font-size: .85rem; white-space: nowrap; }
.ledger-main { margin-top: 1.4rem; }
.ledger-amount { color: var(--navy); font-weight: 760; letter-spacing: -.065em; line-height: 1.14; font-size: 2.65rem; font-variant-numeric: tabular-nums; }
.ledger-chart { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(8px, 2vw, 22px); margin: 1.35rem 0 1rem; text-align: center; }
.ledger-chart > div { display: grid; gap: .38rem; font-size: .86rem; font-weight: 700; }
.ledger-chart .bar { display: block; height: 50px; margin-inline: auto; width: 70%; border-radius: 5px 5px 0 0; background: #87bfb7; }
.ledger-chart > div:first-child .bar { background: var(--teal); }
.ledger-chart small { font-weight: 500; }
.ledger-end { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--border); padding-top: .9rem; color: var(--muted); font-size: .87rem; }
.ledger-end strong { color: var(--navy); }
.ledger figcaption { color: var(--muted); font-size: .8rem; margin-top: .55rem; }
.proof { border-bottom: 1px solid var(--border); }
.proof .wrap { display: flex; justify-content: center; gap: clamp(20px, 6vw, 82px); min-height: 65px; align-items: center; }
.proof span { font-size: .92rem; color: var(--muted); font-weight: 640; }
.proof span::before { content: '✓'; color: var(--teal); font-weight: 750; margin-right: .55rem; }
.section-space { padding-block: clamp(36px, 5vw, 75px); }
.no-top { padding-top: 0; }
.section-head { max-width: 48rem; margin-bottom: 1.45rem; }
.section-head p:not(.eyebrow), .page-intro p:not(.eyebrow) { color: var(--muted); }
.feature-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(21px, 4vw, 42px); border: 1px solid #c6ddda; border-radius: 10px; background: #edf6f4; }
.feature-band p:last-child { margin: 0; max-width: 43rem; }
.feature-band .btn { flex-shrink: 0; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(25px, 6vw, 88px); }
.home-bottom { background: var(--paper); border-block: 1px solid var(--border); }
.page-intro { padding-block: clamp(35px, 5vw, 65px); background: #f4f8f8; border-bottom: 1px solid var(--border); }
.page-intro h1 { font-size: clamp(2.35rem, 4.4vw, 3.7rem); }
.page-intro p:not(.eyebrow) { max-width: 49rem; font-size: 1.09rem; margin-bottom: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.2rem; color: var(--muted); font-size: .88rem; }
.comparison, .explorer-layout { padding-top: 2rem; }
.callout { padding: .85rem 1rem; border: 1px solid #c8dfdc; border-left: 3px solid #429d91; border-radius: 5px; background: #f2f9f7; color: #254c51; }
.lower { margin-top: 1.5rem; }
.filter-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)) auto; align-items: end; gap: 13px; margin-block: 1.5rem 1.15rem; }
label, legend { color: var(--navy); font-size: .9rem; font-weight: 700; }
label { display: block; min-width: 0; }
input:not([type=radio]), select, textarea { display: block; margin-top: .35rem; max-width: 100%; width: 100%; min-height: 44px; border: 1px solid #aebfc9; border-radius: 6px; background-color: var(--white); padding: .45rem .65rem; color: var(--navy); font-weight: 500; }
select { appearance: none; padding-right: 1.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526678' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .55rem center; text-overflow: ellipsis; }
textarea { resize: vertical; }
.link-button { appearance: none; border: 0; background: none; padding: .45rem 0; color: var(--teal-dark); text-decoration: underline; text-underline-offset: .17em; font-size: .9rem; font-weight: 700; min-height: 36px; }
.filter-reset { align-self: end; min-height: 44px; white-space: nowrap; }
.result-count { font-weight: 750; color: var(--navy); margin-bottom: .6rem; }
.table-shell { overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .9rem .95rem; text-align: left; vertical-align: top; }
thead th { background: #f0f5f6; color: var(--navy); font-size: .88rem; font-weight: 750; }
tbody tr:not(:last-child) { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: #f9fbfb; }
tbody th { min-width: 155px; font-weight: 750; }
tbody td strong { white-space: nowrap; color: var(--navy); }
table small, .fact-list small { display: block; margin-top: .23rem; font-weight: 450; line-height: 1.4; }
.status { display: inline-block; width: fit-content; padding: .2rem .55rem; border-radius: 4px; background: #e8f1f5; color: #264c62; font-size: .83rem; font-weight: 720; white-space: normal; }
.status.conflict { background: #faeedf; color: #663b16; }
.after-table { margin-top: 1.3rem; }
.panel { border: 1px solid var(--border); border-radius: 10px; background: white; padding: clamp(18px, 2.4vw, 30px); min-width: 0; }
.directory, .medication-grid, .profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.directory h2, .med-card h2 { font-size: 1.85rem; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.fact-list { margin: 0 0 1.1rem; }
.fact-list > div { display: grid; grid-template-columns: minmax(104px,.8fr) minmax(0,1.25fr); gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; color: var(--navy); }
.med-card h2 span { display: block; color: var(--muted); margin-top: .25rem; font: 600 .92rem var(--sans); letter-spacing: normal; }
.med-price { margin: 1rem 0; }
.med-price strong { display: block; color: var(--navy); font-size: 2.1rem; line-height: 1.13; letter-spacing: -.05em; }
.med-price span { color: var(--muted); font-size: .9rem; }
.reading { max-width: 49rem; }
.reading h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.4em; }
.reading h2:first-child { margin-top: 0; }
.correction { display: grid; gap: .9rem; margin-top: 1.2rem; }
.correction > button { justify-self: start; }
#copy { margin-top: .7rem; }
.explorer-layout { display: grid; grid-template-columns: minmax(270px,320px) minmax(0,1fr); gap: 24px; align-items: start; }
.controls { display: grid; gap: 1rem; background: #f8fafb; }
.controls h2 { font-family: var(--sans); font-size: 1.2rem; margin: 0; letter-spacing: -.02em; }
.controls p:last-child { margin: 0; }
fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: .35rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: .5rem .16rem; text-align: center; border: 1px solid #aebfc9; background: white; border-radius: 5px; cursor: pointer; }
.segmented input:checked + span { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.segmented input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.plan-block { display: grid; gap: .6rem; padding-top: .65rem; margin-top: .55rem; border-top: 1px solid var(--border); }
.plan-block:first-child { margin-top: 0; }
.plan-title { display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.plan-title .link-button { min-height: 24px; padding: 0; }
.full { width: 100%; }
.empty { border: 1px dashed #b8cdcc; border-radius: 8px; padding: clamp(16px, 3vw, 32px); background: #fafcfc; }
.empty h2 { font-size: 1.65rem; }
.empty p, .result p:last-child { margin-bottom: 0; }
.result { margin-bottom: 1rem; }
.result h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.result .card-heading { margin-bottom: .5rem; }
.result .card-heading h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-block: 1rem; }
.stats > div { border: 1px solid var(--border); border-radius: 6px; padding: .62rem .68rem; background: #f7faf9; }
.stats small { display: block; }
.stats strong { font-size: clamp(1.01rem, 2vw, 1.45rem); color: var(--navy); font-variant-numeric: tabular-nums; }
.result .fact-list { margin-block: .7rem; }
.timeline { margin: 1rem 0; }
.timeline th, .timeline td { padding: .56rem .63rem; }
.timeline table { font-size: .88rem; }
.timeline caption { text-align: left; padding: .7rem; font-weight: 700; color: var(--navy); }
.site-footer { background: #f5f8f9; border-top: 1px solid var(--border); padding-block: 2rem 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.footer-grid p { margin-top: .7rem; color: var(--muted); }
.footer-grid nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem 1rem; align-content: start; }
.footer-grid nav a { font-size: .88rem; }
.footer-end { display: flex; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--border); padding-top: .8rem; margin-top: 1rem; color: var(--muted); font-size: .82rem; }
@media (max-width: 1050px) {
 .wrap { width: calc(100% - 58px); }
 .filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .filter-reset { justify-self: start; }
 .desktop-nav { gap: 14px; }
 .header-inner { gap: 12px; }
}
@media (max-width: 850px) {
 .header-inner { min-height: 64px; flex-wrap: wrap; gap: 6px 12px; padding-block: .3rem; }
 .desktop-nav, .header-cta { display: none; }
 .mobile-nav { display: block; position: relative; margin-left: auto; }
 .mobile-nav summary { cursor: pointer; font-weight: 700; padding: .48rem .6rem; border: 1px solid var(--border); border-radius: 6px; }
 .mobile-nav nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; display: grid; gap: .4rem; width: 220px; padding: .6rem; border: 1px solid var(--border); border-radius: 6px; background: white; box-shadow: var(--shadow); }
 .mobile-nav a { padding: .55rem; }
 .hero-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 22px; }
 .directory, .medication-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .explorer-layout { grid-template-columns: minmax(225px, .65fr) minmax(0,1fr); gap: 15px; }
}
@media (max-width: 700px) {
 .wrap { width: calc(100% - 34px); }
 .hero-grid, .explorer-layout, .two-col, .profile-grid { grid-template-columns: minmax(0,1fr); }
 .hero-grid { padding-block: 38px; }
 .hero h1 br { display: none; }
 .ledger { max-width: 470px; width: 100%; }
 .feature-band { align-items: flex-start; flex-direction: column; }
 .proof .wrap { justify-content: flex-start; gap: 4px 17px; flex-wrap: wrap; padding-block: .55rem; min-height: 0; }
 .proof span { font-size: .82rem; }
 .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 table.responsive, .responsive tbody, .responsive tr, .responsive th, .responsive td { display: block; width: 100%; }
 .responsive thead { clip-path: inset(50%); position: absolute; overflow: hidden; width: 1px; height: 1px; }
 .responsive tbody tr { padding: .65rem .9rem; }
 .responsive tbody th, .responsive tbody td { padding: .4rem 0; }
 .responsive tbody th { border-bottom: 1px solid var(--border); margin-bottom: .25rem; }
 .responsive tbody td::before { display: block; content: attr(data-label); color: var(--muted); font-size: .85rem; font-weight: 630; }
 .footer-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .footer-grid nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .footer-end { flex-wrap: wrap; gap: .25rem; }
}
@media (max-width: 480px) {
 .directory, .medication-grid { grid-template-columns: minmax(0,1fr); }
 .review-banner .wrap { padding-block: .25rem; }
 .actions .btn { flex: 1 1 auto; }
 .ledger-head { gap: 8px; }
 .stats > div { padding: .4rem; }
 .timeline th, .timeline td { padding: .48rem .32rem; }
}
.quick-totals { margin-top: .35rem; color: var(--teal-dark); font-size: .87rem; }
.quick-totals summary { cursor: pointer; font-weight: 700; }
