/* Denver Dental Referral Kit — shared screen and US Letter print styles. */
:root {
  color-scheme: light;
  --ink: #142c40;
  --navy: #102b40;
  --navy-dark: #0a2133;
  --body: #344c5b;
  --muted: #4c626e;
  --canvas: #fbfcfd;
  --white: #fff;
  --leaf: #e8f4ef;
  --teal: #086a63;
  --teal-dark: #06524c;
  --mint: #92e5d6;
  --line: #d4e3e3;
  --focus: #a63a13;
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 1.15rem;
  --reading: 67ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  min-width: 0;
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 1rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.12; }
h1, h2 {
  font-family: var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 6vw, 4.85rem); }
h2 { font-size: clamp(1.9rem, 4.25vw, 3rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.25rem); }
p + p, ul + p, ol + p { margin-top: .7em; }
li + li { margin-top: .35rem; }
a {
  color: var(--teal-dark);
  font-weight: 650;
  text-underline-offset: .19em;
  text-decoration-thickness: .085em;
}
a:hover { text-decoration-thickness: .155em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button { font: inherit; }

.wrap {
  width: min(72rem, calc(100% - 2 * clamp(1rem, 5vw, 3.25rem)));
  margin-inline: auto;
}
.muted { color: var(--muted); }
.skip {
  position: absolute;
  z-index: 10;
  top: .6rem;
  left: .6rem;
  padding: .6rem .9rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid currentColor;
  border-radius: .4rem;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.shell-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-row, .foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.5rem;
}
.header-row { min-height: 4.5rem; padding-block: .55rem; }
.brand {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-icon {
  display: inline-grid;
  flex: 0 0 2.15rem;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .6rem .6rem .6rem .2rem;
  background: var(--teal);
  color: var(--white);
  font-size: .9rem;
  font-weight: 780;
}
.brand-icon:is(img, svg) { object-fit: contain; }
.page-nav, .language {
  display: flex;
  gap: .15rem .65rem;
  align-items: center;
  flex-wrap: wrap;
}
.page-nav a, .language a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .18rem .2rem;
  font-size: .9rem;
}
.language a, a.language {
  padding-inline: .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--leaf);
  color: var(--teal-dark);
  text-decoration: none;
}
.language a:hover, a.language:hover { border-color: var(--teal); }

.hero {
  border-bottom: .32rem solid var(--teal);
  background: linear-gradient(115deg, var(--navy-dark), var(--navy) 72%, #153e4d);
  color: #e7f3f3;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5.15rem);
  padding-block: clamp(2.7rem, 7vw, 5.7rem);
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero h1 { margin-bottom: 1.15rem; }
.hero .source-note { color: #c5d4de; }
html[lang="es-US"] .hero h1 { font-size: clamp(2.2rem, 4.65vw, 4.2rem); }
.hero a:not(.button) { color: var(--mint); }
.hero a:focus-visible, .hero button:focus-visible, .foot a:focus-visible {
  outline-color: #ffde9c;
}
.eyebrow {
  display: block;
  margin-bottom: .66rem;
  color: var(--teal-dark);
  font-size: .875rem;
  font-weight: 780;
  letter-spacing: .105em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--mint); }
.intro {
  max-width: 55ch;
  font-size: clamp(1.075rem, 2vw, 1.24rem);
  line-height: 1.57;
}
.hero-image {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffff43;
  border-radius: var(--radius);
  background: #092436;
  box-shadow: 0 1.3rem 2.8rem #05152566;
}
.hero-image img, img.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-image figcaption {
  padding: .62rem .92rem;
  color: #e5f2f2;
  font-size: .875rem;
  line-height: 1.45;
}
.actions, .sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .78rem;
  align-items: center;
}
.actions { margin-top: 1.42rem; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .64rem 1rem;
  border: 1px solid var(--teal);
  border-radius: .58rem;
  background: var(--teal);
  color: var(--white);
  font-weight: 740;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.button.secondary { background: var(--white); color: var(--teal-dark); }
.button.secondary:hover { background: var(--leaf); }
.hero .button:not(.secondary) { border-color: var(--mint); background: var(--mint); color: var(--navy-dark); }
.hero .button:not(.secondary):hover { border-color: #b4f3e7; background: #b4f3e7; }
.hero .button.secondary { background: transparent; color: var(--white); border-color: #ffffff8a; }
.hero .button.secondary:hover { background: #ffffff1a; }

.band {
  padding-block: 1.25rem;
  background: var(--leaf);
  border-bottom: 1px solid #c2ded5;
}
.band h2 { font: 760 clamp(1.15rem, 2.7vw, 1.45rem)/1.28 var(--sans); letter-spacing: -.02em; }
.band h2 + p { margin-top: .35rem; max-width: var(--reading); }
.band .eyebrow { margin-bottom: .32rem; }
.section {
  padding-block: clamp(2.35rem, 6.25vw, 4.6rem);
  scroll-margin-block-start: .5rem;
}
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 1.45rem; }
.section-head h2 { margin-bottom: .48rem; }
.section > h2 { margin-bottom: .65rem; }
.lede { max-width: var(--reading); font-size: 1.075rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  padding-left: 0;
}
.card, .step, .sheet-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.card, .step { padding: clamp(1rem, 3vw, 1.5rem); }
.card { box-shadow: 0 .33rem .9rem #112f4410; }
.card p, .step p { margin-top: .48rem; }
.card h3 + ul, .step h3 + ul { margin-top: .45rem; }
.cards > li, .sheet-grid > li { margin: 0; }
.cards > :is(.card, .step) { list-style: none; }
.card .button { margin-top: .6rem; }
.step { border-top: .23rem solid var(--teal); }
.card > .step {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: .55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--teal-dark);
  font-size: .875rem;
  font-weight: 800;
}
.callout, .quote {
  max-width: var(--reading);
  padding: .9rem clamp(.85rem, 3vw, 1.35rem);
  border: 1px solid #c4ddd6;
  border-inline-start: .25rem solid var(--teal);
  border-radius: .68rem;
  background: var(--leaf);
  color: var(--ink);
}
.section .callout, .section .quote { margin-top: 1.15rem; }
.callout.urgent {
  color: #5a221d;
  border-color: #e3bcaf;
  border-inline-start-color: #9e3c2d;
  background: #fff2ed;
}
.callout.urgent :is(a, h2, h3, strong) { color: #722b21; }
.callout p + p { margin-top: .4rem; }
.quote {
  background: var(--white);
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.48;
}
.quote p { font: inherit; }
.resource-list {
  display: grid;
  max-width: var(--reading);
  gap: 0;
  padding: 0;
  list-style: none;
}
.resource-list li {
  padding-block: .72rem;
  border-top: 1px solid var(--line);
  margin: 0;
}
.resource-list li:last-child { border-bottom: 1px solid var(--line); }
.resource-list li p { margin-top: .18rem; }
.resource-list a { overflow-wrap: anywhere; }
.resource-subhead { margin-block: 1.55rem .7rem; }
.source-note {
  max-width: var(--reading);
  margin-top: 1rem;
  color: var(--muted);
  font-size: .875rem;
}

/* Expanded field guide. Native link, list, and disclosure semantics stay intact. */
.jump-list, .jump-list > :is(ul, ol) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  margin-block: 0;
  padding: 0;
  list-style: none;
}
.jump-list > :is(ul, ol) { flex: 1 1 22rem; }
.jump-list li { min-width: 0; max-width: 100%; margin: 0; }
.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: .42rem .8rem;
  border: 1px solid var(--line);
  border-radius: .52rem;
  background: var(--white);
  font-size: .91rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.jump-list a:hover {
  border-color: var(--teal);
  background: var(--leaf);
}

.field-notes {
  --field-columns: minmax(9.5rem, 1fr) minmax(0, 2.45fr);
  display: grid;
  grid-template-columns: var(--field-columns);
  max-width: 55rem;
  margin-block: 1rem 0;
  border-block: 1px solid var(--line);
}
.field-notes > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: var(--field-columns);
  min-width: 0;
}
.field-notes :is(dt, dd) {
  min-width: 0;
  margin: 0;
  padding: .77rem .25rem;
  overflow-wrap: anywhere;
}
.field-notes dt {
  color: var(--ink);
  font-weight: 760;
  line-height: 1.45;
}
.field-notes dd { padding-inline-start: 1.15rem; }
.field-notes > :is(dt, dd):nth-child(n + 3),
.field-notes > div + div { border-top: 1px solid var(--line); }

.scenario-grid, .handout-pair {
  display: grid;
  gap: 1rem;
  margin-block: 1rem 0;
  padding: 0;
}
.scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.scenario, .handout-pair > :is(article, section, div, li) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .56rem;
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.7vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.scenario { border-block-start: .22rem solid var(--teal); }
.scenario :is(h3, p), .handout-pair :is(h3, p) {
  margin: 0;
  overflow-wrap: anywhere;
}
.scenario ul { margin-block: 0; padding-inline-start: 1.15rem; }
.scenario .eyebrow, .handout-pair .eyebrow { margin-bottom: 0; }
.handout-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.handout-pair > :is(article, section, div, li) { border-color: #bddcd3; background: var(--leaf); }
.handout-pair :is(article, section, li) > .actions {
  margin-top: auto;
  padding-top: .5rem;
}
.handout-pair :is(article, section, div, li) > .button {
  margin-top: auto;
  max-width: 100%;
}

.faq-list {
  display: grid;
  gap: .65rem;
  max-width: 56rem;
}
.faq-list details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--white);
}
.faq-list summary {
  min-height: 44px;
  padding: .8rem 1rem .8rem 2.1rem;
  border-radius: .69rem;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.45;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.faq-list summary::marker { color: var(--teal); }
.faq-list summary:hover { background: var(--leaf); }
.faq-list summary:focus-visible { outline-offset: -4px; }
.faq-list details[open] { border-color: #a6cec1; }
.faq-list details[open] > summary {
  border-bottom: 1px solid #c7ded6;
  border-radius: .69rem .69rem 0 0;
  background: var(--leaf);
  color: var(--teal-dark);
}
.faq-list details > :not(summary) {
  margin: .7rem 1rem;
  overflow-wrap: anywhere;
}
.faq-list details > :last-child:not(summary) { margin-bottom: .95rem; }

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #c4ddd6;
  border-radius: var(--radius);
  background: var(--leaf);
}
.visit img { width: 100%; border-radius: .75rem; }
.visit figcaption { margin-top: .35rem; font-size: .875rem; color: var(--muted); }
.visit-info :is(h2, h3) { margin-bottom: .45rem; }
.visit-info address { font-style: normal; }
.visit-info .actions { margin-top: .8rem; }
.foot { padding-block: 1.75rem; background: var(--navy-dark); color: #ecf6f5; }
.foot h2, .foot h3, .foot .brand { color: var(--white); }
.foot a { color: var(--mint); }
.foot .foot-row { align-items: flex-start; }
.foot small { display: block; margin-top: .6rem; font-size: .875rem; }
.foot p { max-width: var(--reading); }

.sheet {
  width: min(58rem, calc(100% - 2rem));
  margin-block: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(1.15rem, 5vw, 2.65rem);
  border: 1px solid var(--line);
  border-top: .4rem solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 .65rem 2rem #112f4410;
}
.sheet-head { margin-bottom: 1rem; }
.sheet-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.55rem);
  margin-bottom: .35rem;
  text-wrap: pretty;
}
.sheet-head p { max-width: var(--reading); }
.sheet-actions { margin-block: .9rem; }
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.sheet-section { padding: .9rem 1rem; }
.sheet-section :is(h2, h3) {
  margin-bottom: .36rem;
  font: 760 1.14rem/1.24 var(--sans);
  letter-spacing: -.02em;
}
.sheet-section :is(ul, ol) { margin-block: .4rem 0; padding-inline-start: 1.2rem; }
.sheet-section .quote { font-size: 1.03rem; }
.sheet .callout { max-width: none; margin-block: .8rem; }
.sheet-foot {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.5;
}

@media (max-width: 46rem) {
  .hero-grid, .visit { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 1.6rem; }
  .hero-image img, img.hero-image { aspect-ratio: 16 / 10; }
  .header-row { gap: .1rem .75rem; }
}
@media screen and (max-width: 48rem) {
  .scenario-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 36rem) {
  .field-notes { --field-columns: minmax(0, 1fr); }
  .field-notes dt { padding-block: .64rem .1rem; }
  .field-notes dd { padding-block: .05rem .68rem; padding-inline-start: .25rem; }
  .field-notes > dd:nth-child(n + 3) { border-top: 0; }
  .handout-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .page-nav { order: 2; width: 100%; margin-top: -.15rem; }
  .actions .button, .sheet-actions .button { max-width: 100%; }
}

@page { size: letter; margin: .44in .48in; }
@media print {
  :root { color-scheme: light; }
  body {
    min-width: 0;
    background: #fff !important;
    color: #111;
    font-size: 11pt;
    line-height: 1.31;
  }
  .no-print, .skip, .shell-header, .foot, .sheet-actions { display: none !important; }
  .sheet {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
  }
  .sheet :is(h1, h2, h3, a, strong, .muted, .eyebrow) { color: #111; }
  .sheet-head { margin-bottom: .12in; }
  .sheet-head h1 { font-size: 24pt; margin-bottom: .05in; }
  .sheet-head .eyebrow { margin-bottom: .03in; font-size: 9pt; }
  .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .085in .15in; }
  .sheet-section {
    padding: .075in .095in;
    border: 1px solid #858585;
    background: #fff;
    border-radius: .065in;
    break-inside: avoid;
  }
  .sheet-section :is(h2, h3) { font-size: 12pt; margin-bottom: .027in; }
  .sheet-section :is(ul, ol) { padding-inline-start: .17in; margin-block: .055in 0; }
  .sheet li + li { margin-top: .045in; }
  .sheet .callout, .sheet .quote {
    margin-block: .085in;
    padding: .07in .095in;
    border-color: #747474;
    background: #fff;
    color: #111;
    font-size: 11pt;
    break-inside: avoid;
  }
  .sheet-foot {
    margin-top: .105in;
    padding-top: .06in;
    color: #111;
    font-size: 9.5pt;
    break-inside: avoid;
  }
  .sheet :is(p, li) { widows: 2; orphans: 2; }
}
