/* TranslateMyLabs one-pagers. Black + one blue. Letter size, 96 dpi (816 x 1056 px). */
:root {
  --blue: #1f4ef5;
  --blue-tint: #eef2ff;
  --ink: #0b0b0f;
  --muted: #565b66;
  --rule: #dfe3ea;
}

#docs { margin: 12px 0; }
.doc-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.doc-tabs button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

.doc-frame { width: 100%; overflow-x: auto; }
.doc {
  --fs: 12;
  box-sizing: border-box;
  width: 816px; height: 1056px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 44px 52px 36px;
  background: #fff; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--fs) * 1px); line-height: 1.42;
  border: 1px solid var(--rule); box-shadow: 0 2px 14px rgba(0,0,0,.08);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc * { box-sizing: border-box; }

/* header */
.doc-head { display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; display: block; }
.wordmark { font-weight: 800; font-size: 1.55em; letter-spacing: -0.02em; line-height: 1; }
.wordmark b { color: var(--blue); font-weight: 800; }
.doc-meta { text-align: right; }
.doc-kind { font-weight: 700; font-size: .78em; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.doc-date { font-size: .82em; color: var(--muted); margin-top: 2px; }

/* title + lede */
.doc-title { font-size: 2.05em; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; margin: 20px 0 8px; }
.lede { margin: 0 0 4px; font-size: 1.08em; }
.callout { background: var(--blue-tint); border-left: 4px solid var(--blue); padding: 10px 14px; margin: 12px 0 2px; border-radius: 0 6px 6px 0; }
.callout p { margin: 0; }

/* sections */
.sec { margin-top: 16px; break-inside: avoid; }
.sec h2 { display: flex; align-items: center; gap: 8px; font-size: .84em; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 7px; }
.sec h2::before { content: ""; width: 22px; height: 4px; background: var(--blue); border-radius: 2px; flex: none; }
.sec p { margin: 0 0 6px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.item { border-top: 1px solid var(--rule); padding-top: 6px; }
.item strong { display: block; font-weight: 700; margin-bottom: 1px; }
.item span { color: var(--muted); font-size: .94em; display: block; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .3em 0 .3em 26px; border-top: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 13px; height: 13px;
  border: 2px solid var(--blue); border-radius: 3px; }
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding: .5em 0 .5em 20px; border-top: 1px solid var(--rule); }
.bullets li::before { content: ""; position: absolute; left: 3px; top: calc(.5em + .42em); width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.bullets.avoid li::before { background: var(--ink); border-radius: 1px; }

/* doctor table */
.tbl { width: 100%; border-collapse: collapse; font-size: .94em; }
.tbl th { text-align: left; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--ink); padding: 4px 6px; }
.tbl td { border-bottom: 1px solid var(--rule); padding: .4em 6px; vertical-align: top; }
.flag { display: inline-block; min-width: 22px; text-align: center; font-weight: 800; color: #fff; background: var(--blue);
  border-radius: 4px; padding: 0 5px; font-size: .9em; }
.flag.l { background: var(--ink); }
.empty-note { color: var(--muted); font-style: italic; margin: 0; }

/* footer */
.doc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; font-size: .74em; color: var(--muted); }
.doc-foot b { color: var(--ink); }

/* printing: only the one chosen doc, full size, no screen effects */
#print-root { display: none; }
@media print {
  @page { size: Letter; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  body.printing .doc { zoom: 1 !important; border: 0; box-shadow: none; width: 8.5in; height: 11in; }
}
