/* Posted. The system is in DESIGN-SYSTEM.md. Fallback metrics come from brand/tools/build_site_assets.py. */
@font-face {
  font-family: "Sofia Sans Extra Condensed"; src: url("../fonts/sofia-sans-extra-condensed-v1.woff2") format("woff2");
  font-weight: 700 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Overpass"; src: url("../fonts/overpass-v1.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Posted Display Narrow"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold");
  font-weight: 700 800; size-adjust: 80.45%; ascent-override: 111.88%; descent-override: 37.29%; line-gap-override: 0%;
}
@font-face {
  font-family: "Posted Display Wide"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 700 800; size-adjust: 65.97%; ascent-override: 136.43%; descent-override: 45.48%; line-gap-override: 0%;
}
@font-face {
  font-family: "Posted Text"; src: local("Arial"), local("ArialMT"), local("Roboto");
  font-weight: 400; size-adjust: 99.89%; ascent-override: 88.4%; descent-override: 38.34%; line-gap-override: 0%;
}
@font-face {
  font-family: "Posted Text"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 700; size-adjust: 98.44%; ascent-override: 89.7%; descent-override: 38.91%; line-gap-override: 0%;
}
:root {
  color-scheme: light dark;
  --ground: #fff;
  --wash: #f3f2ee;
  --ink: #17150f;
  --ink-2: #524e45;
  --rule: #d8d5cc;
  --rule-2: #8a857a;
  --brand: #ffd21f;
  --on-brand: #17150f;
  --action: #17150f;
  --on-action: #fff;
  --action-hover: #3a362b;
  --link: #17150f;
  --caution: #96380a;
  --caution-wash: #fce8da;
  --error: #a3291c;
  --focus: #17150f;
  --radius: .25rem;
  --display: "Sofia Sans Extra Condensed", "Posted Display Narrow", "Posted Display Wide", "Arial Narrow", sans-serif;
  --text: "Overpass", "Posted Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15130e;
    --wash: #1f1c15;
    --ink: #f4f0e6;
    --ink-2: #bdb6a6;
    --rule: #3a352a;
    --rule-2: #857e6d;
    --action: #ffd21f;
    --on-action: #17150f;
    --action-hover: #ffe270;
    --link: #ffd21f;
    --caution: #ffb37a;
    --caution-wash: #3a2416;
    --error: #ff9b8f;
    --focus: #ffd21f;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; hyphens: manual; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: .9375rem/1.47 var(--text); font-variant-numeric: tabular-nums lining-nums;
}
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .125em; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(100% - 4rem, 68.75rem); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* The sign band. Yellow is a ground for ink in both themes. */
.masthead { background: var(--brand); color: var(--on-brand); }
.masthead-inner { min-height: 3.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.wordmark { display: flex; align-items: center; gap: .625rem; min-height: 3.75rem; font: 800 1.75rem/1 var(--display); white-space: nowrap; }
.mark { flex: none; }
.masthead-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.masthead a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-size: .875rem; }
.masthead a[hidden] { display: none; }
.masthead :focus-visible { outline-color: currentColor; }

.intro { background: var(--wash); border-bottom: 1px solid var(--rule); padding-block: 1.5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font: 800 3.5rem/.95 var(--display); text-wrap: balance; }
h2 { font: 700 1.75rem/1.1 var(--display); }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .65fr) 8.75rem auto; gap: .75rem; align-items: start; margin-top: 1rem; }
.field { display: grid; gap: .3125rem; min-width: 0; }
.field label { font-size: .875rem; line-height: 1.25rem; font-weight: 700; }
.procedure-directory { margin-top: .5rem; color: var(--ink-2); }
@media (min-width: 64rem) {
  .intro:has(.procedure-directory) { padding-block: 1rem; }
}
.field input, select {
  width: 100%; min-width: 0; min-height: 3rem; background: var(--ground); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--radius); padding: .6rem .75rem;
}
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.location { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#location-options {
  position: absolute; z-index: 2; top: 100%; inset-inline: 0; margin: .25rem 0 0; padding: .25rem 0;
  max-height: 15rem; overflow-y: auto; list-style: none; background: var(--ground);
  border: 2px solid var(--ink); border-radius: var(--radius);
}
#location-options > li { padding: .65rem .75rem; cursor: pointer; overflow-wrap: anywhere; }
#location-options > li:hover, #location-options > [aria-selected="true"] { background: var(--action); color: var(--on-action); }
.primary, .outline { border-radius: var(--radius); font-weight: 700; }
.primary { min-height: 3rem; border: 1px solid var(--action); background: var(--action); color: var(--on-action); padding: .6rem 1.1rem; margin-top: 1.5625rem; }
.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.error { color: var(--error); grid-column: 1 / -1; font-weight: 700; }

/* The ledger. A 2px ink rule opens each group. A 1px rule closes each row. */
.results { padding-block: .5rem 3rem; }
@media (scripting: enabled) {
  .results[data-loading] { min-height: 100vh; }
}
.results-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.context { font-weight: 700; }
.meta, .index-date, .group-note { color: var(--ink-2); font-size: .875rem; line-height: 1.43; }
.jump-nav { display: flex; align-items: center; gap: 1.25rem; overflow-x: auto; min-height: 2.75rem; }
.jump-nav > * { flex: none; font-size: .875rem; min-height: 2.75rem; display: inline-flex; align-items: center; }
.jump-nav [aria-disabled="true"] { color: var(--ink-2); }
.price-group { margin-top: 2.5rem; border-top: 2px solid var(--ink); padding-top: .875rem; }
#results > .price-group:first-child { margin-top: .25rem; }
.group-note { margin-top: .25rem; }
.result { border-bottom: 1px solid var(--rule); padding-block: 1.25rem; }
.result-grid { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr) 13rem; gap: 2rem; align-items: start; }
.result-grid p + p { margin-top: .25rem; }
.type-label { font-size: .8125rem; line-height: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.rate { width: fit-content; margin-block: .375rem; font: 800 2.5rem/1 var(--display); }
.exact .rate { font-size: 3.25rem; }
.stale .rate { color: var(--ink-2); font-size: 2.5rem; }
/* The cents sit raised and underlined, the way a posted price shows them. The point stays in the text. */
.cents { position: relative; top: -.71em; margin-left: .06em; font-size: .48em; text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .16em; }
.point { font-size: 0; }
.rate-to { margin-inline: .35em; font: 700 .9375rem/1 var(--text); }
/* The sign plate. One per search or landing page: the lowest ranked fee. */
#exact > .result:first-of-type .rate, .landing-table .posted-fee .rate {
  padding: .14em .3em .1em; background: var(--brand); color: var(--on-brand);
  border: 3px solid var(--brand); border-radius: .5625rem; box-shadow: inset 0 0 0 2px var(--on-brand);
}
.scope { font-size: .9375rem; line-height: 1.47; }
.stale-reason { display: inline-block; margin-top: .4rem; padding: .125rem .375rem; color: var(--caution); background: var(--caution-wash); border-radius: .1875rem; }
.result .identity .meta { margin-top: .25rem; overflow-wrap: anywhere; }
.result .freshness { margin-top: .65rem; }
.result-actions { display: grid; justify-items: start; }
.result-actions > a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; }
.outline {
  display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem;
  border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink); padding: .45rem .8rem;
}
.outline:hover { color: var(--ground); background: var(--ink); }
.quote-body { margin-top: 1rem; padding: 1.25rem; background: var(--wash); border-top: 2px solid var(--ink); }
.quote-body textarea {
  display: block; margin-block: .75rem; resize: vertical; width: 100%; min-height: 9rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--ground); color: var(--ink); padding: .75rem;
}
.copy-status:not(:empty) { display: block; margin-top: .5rem; color: var(--ink-2); font-size: .875rem; }
.quote-checklist { border: 0; padding: 0; margin: .85rem 0 0; }
.quote-checklist legend { font-size: .875rem; font-weight: 700; }
.check-options { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.check-options label { display: flex; align-items: center; gap: .35rem; min-height: 2.75rem; font-size: .875rem; }
.check-options input { width: 1rem; height: 1rem; accent-color: var(--action); margin: 0; }
.source-details { margin-top: .75rem; }
.source-details summary { min-height: 2.75rem; padding-block: .7rem; color: var(--link); font-size: .875rem; }
.fingerprint { font: .8125rem/1.5 var(--mono); overflow-wrap: anywhere; }
.stale-group > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; }
.stale-group > summary::-webkit-details-marker { display: none; }
.stale-group .chevron { display: block; width: .5rem; height: .5rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -.2rem .5rem 0 0; flex: none; }
.stale-group[open] .chevron { transform: rotate(225deg); margin-top: .2rem; }
.no-exact { padding: .75rem 1rem; margin-block: .85rem; background: var(--caution-wash); color: var(--caution); }
.empty { display: grid; justify-items: start; gap: .7rem; margin-top: 1.2rem; }
.benchmark-rates { margin: .75rem 0 0; }
.benchmark-rates > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr); gap: .35rem 1rem;
  padding: .55rem 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.benchmark-rates dd { display: grid; grid-template-columns: minmax(7rem, 1fr) auto; gap: .35rem .75rem; margin: 0; font-weight: 700; }
.benchmark-rates a { font-size: .875rem; font-weight: 400; }
.show-more { margin-top: 1rem; }
.charge-details { margin-top: .5rem; overflow-wrap: anywhere; }
.charge-details summary { color: var(--link); padding-block: .5rem; }
.charge-details ul { list-style: none; padding: 0; margin: .25rem 0 .65rem; }
.charge-details li { border-top: 1px solid var(--rule); padding-block: .375rem; }

.method { background: var(--wash); border-top: 1px solid var(--rule); padding-block: 2rem; }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: .85rem 2rem; }
.method-grid > div + div { font-size: 1rem; line-height: 1.55; max-width: 68ch; }
.method p + p, .method h2 + p { margin-top: .5rem; }
#national-method { margin-top: .5rem; }
#national-method > a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (max-width: 63.9375rem) {
  form { grid-template-columns: minmax(0, 1fr) 8.75rem auto; }
  .procedure { grid-column: 1 / -1; }
  .result-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: .75rem 2rem; }
  .result-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
}
@media (max-width: 39.9375rem) {
  html { scroll-padding-top: 4rem; }
  .wrap { width: calc(100% - 2rem); }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.5rem; }
  .intro { padding-block: 1.25rem; }
  form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procedure, .primary { grid-column: 1 / -1; }
  .procedure select { padding-inline: .5rem .25rem; text-overflow: ellipsis; }
  .primary { margin-top: 0; }
  .masthead-inner { min-height: 3.25rem; }
  .wordmark { min-height: 3.25rem; font-size: 1.5rem; gap: .5rem; }
  .mark { width: 1.5rem; height: 1.5rem; }
  .masthead-links { gap: 0 .75rem; }
  .masthead a { font-size: .8125rem; }
  .jump-nav { position: sticky; top: 0; z-index: 1; background: var(--ground); gap: .45rem; min-height: 3.25rem; border-bottom: 1px solid var(--rule); padding: .125rem .2rem; }
  .jump-nav > * { border: 1px solid var(--rule-2); border-radius: var(--radius); min-height: 2.75rem; padding-inline: .5rem; }
  .price-group { margin-top: 1.75rem; }
  #results > .price-group:first-child { margin-top: .75rem; }
  .result { padding-block: 1rem; }
  .result-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .result-actions { display: grid; gap: .15rem; justify-items: start; margin-top: .25rem; }
  .result-actions button { width: 100%; }
  .rate, .stale .rate { font-size: 2.25rem; }
  .exact:not(.stale) .rate { font-size: 2.75rem; }
  .quote-body { padding: 1rem; }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 33.75rem) {
  .benchmark-rates > div { grid-template-columns: 1fr; }
}

/* Procedure and state ledgers use the same Posted masthead, bands and price type. */
.masthead a.wordmark { font: 800 1.75rem/1 var(--display); text-decoration: none; }
/* The crumbs flow as one line of text, so a long procedure name wraps and its separator stays beside it. */
.breadcrumbs { padding-block: .5rem; }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; line-height: 2.75rem; }
.breadcrumbs li { display: inline; }
.breadcrumbs li > span { margin-inline: .6rem; }
.breadcrumbs a { padding-block: .7rem; }
.landing-intro { padding-block: 1.5rem 2rem; }
.landing-intro h1 { max-width: 34ch; }
.landing-deck { margin-block: .75rem 1rem; max-width: 64ch; }
.landing-cta { display: inline-flex; align-items: center; margin: 0; text-decoration: none; }
.landing-section { padding-block: 1.5rem; }
.landing-section > p { margin-top: .5rem; max-width: 70ch; }
.landing-section h2 + .group-note { margin-bottom: .75rem; }
.coverage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); column-gap: 1.5rem; padding: 0; list-style: none; }
.coverage-list li { border-bottom: 1px solid var(--rule); }
.coverage-list a { display: flex; align-items: center; min-height: 2.75rem; }
.procedure-links { border-top: 1px solid var(--rule); }
.procedure-links > h2 { margin-bottom: 1rem; }
.procedure-family + .procedure-family { margin-top: 1.5rem; }
.procedure-family .coverage-list { margin-block: .5rem 0; border-top: 2px solid var(--ink); }
.ledger-scroll { overflow-x: auto; }
.landing-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.landing-table th, .landing-table td { text-align: left; vertical-align: top; padding: .875rem 1.5rem .875rem 0; border-bottom: 1px solid var(--rule); }
.landing-table th:last-child, .landing-table td:last-child { padding-right: 0; }
.landing-table thead th { padding-block: .625rem; font-size: .875rem; line-height: 1.25rem; }
.landing-table thead th:nth-child(2) { width: 15rem; }
.landing-table thead th:nth-child(3) { width: 13rem; }
.landing-table tbody th { overflow-wrap: anywhere; }
.fee-name { display: block; font-size: 1.0625rem; line-height: 1.4; }
.landing-table th .meta { margin-top: .25rem; font-weight: 400; }
.landing-table .amount { font-weight: 700; white-space: nowrap; }
.landing-table .rate { display: block; margin-block: 0 .25rem; white-space: nowrap; }
.landing-table .stale-reason { display: block; width: fit-content; }
.landing-table a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; }
.landing-table time { white-space: nowrap; }
@media (max-width: 63.9375rem) {
  .landing-table thead th:nth-child(2) { width: 11rem; }
  .landing-table thead th:nth-child(3) { width: 12.5rem; }
}
@media (max-width: 39.9375rem) {
  /* A landing title is longer than the search heading. This size holds it to three lines at 375 px. */
  .landing-intro h1 { font-size: 2.25rem; }
  /* A phone shows each row as a block: hospital, then price, then source and dates. */
  .landing-table, .landing-table tbody, .landing-table tr, .landing-table th, .landing-table td { display: block; }
  .landing-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .landing-table tbody tr { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
  .landing-table tbody th, .landing-table td { padding: 0; border: 0; }
  .landing-table td { margin-top: .625rem; }
  .landing-table td:last-child { margin-top: .5rem; }
}
