/* DentalHIPAA.org: plain reference-publication style. Light only, Helvetica, black/grey + one blue, square corners, 2px rules. */
:root {
  --ink: #111111;
  --text: #1f1f1f;
  --muted: #5c5c5c;
  --rule: #111111;
  --hair: #d6d6d6;
  --tint: #f3f3f1;
  --accent: #1846a3;
  --accent-dark: #0f3279;
  --accent-tint: #edf2fa;
  --link: var(--accent);
  --link-hover: var(--accent-dark);
  --focus: #ffbf47;
  --wrap: 1120px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; text-decoration: none; }

/* ---------- header ---------- */
.site-header { border-top: 6px solid var(--accent); border-bottom: 2px solid var(--rule); }
.topbar { max-width: var(--wrap); margin: 0 auto; padding: 18px 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; line-height: 1.15; }
.brand .mark { display: block; width: 40px; height: 40px; flex: none; }
.brand .words { display: flex; flex-direction: column; }
.brand:hover { color: var(--ink); }
.brand b { font-size: 1.4rem; letter-spacing: -0.02em; }
.brand .words span { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.top-cta { display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.site-nav { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: 10px 0 9px; border-bottom: 4px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--hair); }
.site-nav a[aria-current] { font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 72px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.layout > main { max-width: 700px; }
.aside { position: sticky; top: 24px; font-size: .95rem; }
main.narrow { max-width: 640px; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: 2.6rem; margin: 0 0 .35em; font-weight: 700; }
h2 { font-size: 1.55rem; margin: 2.4em 0 .7em; padding-top: .55em; border-top: 2px solid var(--rule); }
h3 { font-size: 1.15rem; margin: 1.8em 0 .4em; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .35em 0; }
li::marker { color: var(--muted); }
strong { color: var(--ink); }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--ink); margin-bottom: 1em; }
.meta { font-size: .88rem; color: var(--muted); margin: 0 0 1.6em; }
.cite { color: var(--muted); font-size: .86em; white-space: nowrap; }
.small { font-size: .9rem; color: var(--muted); }
code { font-family: Menlo, Consolas, monospace; font-size: .88em; }

/* ---------- blocks ---------- */
.note { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: 14px 18px; margin: 1.6em 0; }
.note p:last-child { margin-bottom: 0; }
.cta { border: 2px solid var(--rule); border-left: 6px solid var(--accent); padding: 20px 22px; margin: 2.4em 0; }
.cta p { margin: 0 0 .8em; }
.cta p:last-child { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; padding: 12px 20px; border: 2px solid var(--accent); border-radius: 0; line-height: 1.2; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn.secondary { background: #fff; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn.small { padding: 7px 12px; font-size: .9rem; color: #fff; }
.btn.secondary.small { color: var(--accent); }
.btn.disabled { background: #fff; color: var(--muted); border: 2px dashed #9a9a9a; cursor: not-allowed; font-weight: 400; }

/* numbered list with big numerals (the four documents) */
ol.steps { list-style: none; padding: 0; counter-reset: s; border-top: 1px solid var(--hair); }
ol.steps > li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 12px; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--hair); }
ol.steps > li::before { content: counter(s); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--accent); }

/* rule-separated link list (guide pages) */
ul.index { list-style: none; padding: 0; border-top: 1px solid var(--hair); }
ul.index li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hair); }
ul.index a { font-weight: 700; }
ul.index span { display: block; color: var(--muted); font-size: .95rem; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--rule); padding: 8px 10px 8px 0; vertical-align: bottom; }
td { border-bottom: 1px solid var(--hair); padding: 10px 10px 10px 0; vertical-align: top; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* FAQ */
dl.faq { border-top: 1px solid var(--hair); }
dl.faq dt { font-weight: 700; color: var(--ink); padding-top: 14px; }
dl.faq dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }

/* ---------- aside ---------- */
.offer { border: 2px solid var(--rule); border-top: 6px solid var(--accent); padding: 18px; margin-bottom: 28px; }
.offer h2 { font-size: 1.1rem; border: 0; padding: 0; margin: 0 0 .3em; }
.offer .price { font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: .2em 0 .1em; }
.offer .price span { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.offer ul { padding-left: 1.1em; margin: .6em 0 1em; }
.offer li { margin: .2em 0; }
.offer .btn { display: block; text-align: center; }
.offer .free { margin: .9em 0 0; font-size: .9rem; }
.toc h2 { font-size: .8rem; text-transform: none; border: 0; padding: 0; margin: 0 0 .5em; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--accent); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.toc a:hover { color: var(--link); }

/* pack page */
.pack-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-bottom: 1em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--rule); border-bottom: 1px solid var(--hair); margin: 1.6em 0 0; }
.facts div { padding: 14px 12px 14px 0; }
.facts b { display: block; font-size: 1.8rem; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.facts span { font-size: .85rem; color: var(--muted); }
table.contents td:first-child { width: 34%; }
.readable { max-width: 760px; }
pre.tree { background: var(--tint); padding: 18px 20px; overflow-x: auto; font: .85rem/1.6 Menlo, Consolas, monospace; color: var(--ink); border-left: 4px solid var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 6px solid var(--accent); background: var(--tint); font-size: .88rem; color: var(--muted); }
.site-footer .cols { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: .9rem; margin: 0 0 .6em; padding: 0; border: 0; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3em 0; }
.site-footer a { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout, .pack-top { grid-template-columns: 1fr; gap: 0; }
  .aside { position: static; margin-top: 40px; }
  .toc { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .lede { font-size: 1.1rem; }
  .wrap { padding-top: 24px; }
  .top-cta .hide-sm { display: none; }
  .topbar { flex-wrap: nowrap; padding-top: 14px; }
  .brand .words span { display: none; }
  .brand .mark { width: 32px; height: 32px; }
  .brand b { font-size: 1.2rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  td:first-child { white-space: normal; }
}
@media print {
  .site-header, .site-footer, .aside { display: none; }
  .layout { display: block; }
  a { color: inherit; }
}

/* sources */
.sources { margin-top: 3em; }
.sources ol { font-size: .92rem; padding-left: 1.4em; }
.sources li { margin: .3em 0; }
.cite a { color: var(--muted); text-decoration-color: #b5b5b5; }
.cite a:hover { color: var(--link); }
figure.sample { margin: 0; }
figure.sample img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); }
figure.sample figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1.2em 0 1.6em; }
@media (max-width: 700px) { .samples { grid-template-columns: 1fr; } }
