/* peptidelabeltemplate.com: "Fog" look. Mobile first, 44 px touch targets, 16 px inputs. No outside fonts. */
:root {
  --ink: #2c3033;
  --ink-2: #4f5458;
  --ink-3: #5f6468;
  --line: #dcdfe0;
  --line-2: #e7e9ea;
  --card: #ffffff;
  --soft: #f4f5f5;
  --accent: #3d4144;
  --accent-2: #2a2d30;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 32, 34, .08), 0 8px 24px -12px rgba(30, 32, 34, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: #eef0f0; background-image: linear-gradient(170deg, #fbfbfb 0%, #eceeef 60%, #e6e8e9 100%);
  background-attachment: fixed; min-height: 100vh; overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #000; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 8px; }
.copy-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

/* ---------- header and nav ---------- */
.site-head { border-bottom: 1px solid var(--line-2); background: rgba(255, 255, 255, .72); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; }
.site-name { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.site-name .logo { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 -8px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.nav-link:hover { background: #e9ebec; color: var(--ink); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-menu[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.nav-panel { position: absolute; left: 0; top: 46px; z-index: 10; min-width: 230px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(30, 32, 34, .3); }
.nav-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-panel a:hover { background: var(--soft); }
.nav-panel a[aria-current="page"] { font-weight: 700; }

/* ---------- page head ---------- */
main { padding: 8px 0 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #9da2a5; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.hero h1 { font-size: 28px; line-height: 1.15; margin: 14px 0 6px; letter-spacing: -.01em; }
.lede { font-size: 17px; color: var(--ink-2); }
.lede p { margin: 0 0 8px; }
.meta-line { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.draft-banner { background: #fff6d6; border: 1px solid #e9d48a; border-radius: 8px; padding: 8px 12px; font-size: 14px; }

/* ---------- the label tool ---------- */
.tool { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; margin: 4px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.vialbox { display: grid; justify-items: center; gap: 6px; text-align: center; background: linear-gradient(180deg, #fff, #f5f6f6); }
.vialstage { width: 100%; max-width: 210px; margin: 0 auto; min-height: 120px; }
.vialstage .vial-svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.vialstage.fade { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: .45; } to { opacity: 1; } }
.actual { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.fit { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 34ch; }
.warn { margin: 4px 0 0; background: #fbeeee; border: 1px solid #e3b9b9; border-left: 4px solid #9b2c2c; border-radius: 8px; padding: 8px 10px; font-size: 14px; text-align: left; color: #5a1b1b; }
.formcard { display: grid; gap: 12px; border-radius: 14px; background: linear-gradient(180deg, #fff 0%, #f7f8f8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(30, 32, 34, .10), 0 3px 6px -2px rgba(30, 32, 34, .08), 0 14px 30px -10px rgba(30, 32, 34, .16); }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f > label, .lbl { font-size: 14px; font-weight: 600; color: #34383b; }
.opt { font-weight: 400; color: var(--ink-3); }
.formcard input:not([type=checkbox]):not([type=radio]), .formcard select, .mini-tool input, .mini-tool select {
  width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 0 12px; font-size: 16px; border: 1px solid #c4c9cb; border-radius: 8px; background: #fff; }
.formcard input:focus, .formcard select:focus, .mini-tool input:focus, .mini-tool select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }
.pair { display: flex; gap: 8px; }
.pair input { flex: 1 1 auto; }
.formcard .pair select { flex: 0 0 auto; width: auto; }
.auto-date input { background: var(--soft) !important; }
.muted { margin: -6px 0 0; font-size: 13px; color: var(--ink-3); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-size: 14px; font-weight: 600; color: #34383b; padding: 0; margin-bottom: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c4c9cb; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); }
.chip:hover span { background: var(--soft); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 140px; padding: 0 22px; border: 0; border-radius: 8px; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #4a4f53, #33373a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 6px rgba(30, 32, 34, .25); }
.primary:hover:not(:disabled) { background: linear-gradient(180deg, #3f4447, #26292b); }
.primary:disabled { background: #e4e6e7; color: #4d5255; box-shadow: none; border: 1px dashed #b9bec1; cursor: not-allowed; }
.dl { position: relative; }
.dl > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dl > summary::-webkit-details-marker { display: none; }
.dl-menu { position: absolute; left: 0; top: 46px; z-index: 5; display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px -10px rgba(30, 32, 34, .3); }
.linkbtn { min-height: 44px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover:not(:disabled) { background: var(--soft); }
.linkbtn:disabled { opacity: .5; cursor: not-allowed; }
.need { margin: -4px 0 0; font-size: 13px; color: var(--ink-3); }
.tip { margin: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.more { border-top: 1px solid var(--line-2); padding-top: 2px; }
.more > summary { list-style: none; display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--accent); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.more[open] > summary::after { transform: rotate(225deg); }
.more-in { display: grid; gap: 12px; padding-top: 6px; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.noscript { margin: 0; font-size: 14px; color: #5a1b1b; }

/* ---------- share row: Share, Embed, Cite, Prefer ---------- */
.share-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #cfd3d5; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ico.fill { fill: currentColor; stroke: none; }
.copied { font-size: 13px; color: var(--ink-2); }
.pop { position: absolute; left: 0; right: 0; top: 100%; z-index: 8; margin-top: 4px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(30, 32, 34, .35); }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pop-head h2 { margin: 0; font-size: 17px; }
.pop-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.pop-x:hover { background: var(--soft); }
.pop .hint { margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
.pop textarea { width: 100%; padding: 8px; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; border: 1px solid #c4c9cb; border-radius: 8px; background: var(--soft); resize: vertical; }
.cite-text { margin: 8px 0; padding: 10px; background: var(--soft); border-radius: 8px; font-size: 14px; }
.pop-actions { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--accent-2); }

/* ---------- article ---------- */
.toc { margin: 14px 0 6px; padding: 12px 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: #e9ebec; color: var(--ink); }
.article section, .faq, .sources { max-width: 72ch; }
main section { scroll-margin-top: 12px; }
main h2 { font-size: 22px; line-height: 1.25; margin: 30px 0 8px; letter-spacing: -.005em; }
main h3 { font-size: 18px; line-height: 1.3; margin: 20px 0 6px; }
main p, main li { color: #33373a; }
main ul, main ol { padding-left: 22px; }
main li { margin: 4px 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { background: var(--soft); font-size: 14px; font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { caption-side: bottom; padding: 8px 12px; font-size: 13px; color: var(--ink-3); text-align: left; }
.mini-tool { display: grid; gap: 10px; margin: 14px 0; max-width: 560px; box-shadow: var(--shadow); }
.mini-tool h3 { margin: 0; }
.mini-tool .hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.mini-out { margin: 0; padding: 10px 12px; background: var(--soft); border-radius: 8px; font-size: 16px; }
.mini-out output { font-weight: 700; }
.err { margin: 0; font-size: 14px; color: #8a1f1f; }
.err:empty { display: none; }

.faq h2 { margin-bottom: 10px; }
.faq-item { margin: 0 0 10px; padding: 12px 16px; background: #f8f9f9; border: 1px solid var(--line); border-radius: 10px; }
.faq-item h3 { margin: 0 0 4px; font-size: 17px; }
.faq-a p { margin: 0 0 6px; color: #3e4245; }
.faq-a p:last-child { margin-bottom: 0; }
.sources ol { font-size: 14px; color: var(--ink-2); }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }

.related { margin: 34px 0 0; }
.related h2 { font-size: 20px; }
.guides { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.g { display: grid; gap: 2px; height: 100%; min-height: 44px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.g:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.g b { font-size: 16px; }
.g span { font-size: 14px; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { margin-top: 24px; padding: 18px 0 28px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.site-foot p { margin: 0 0 6px; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 6px 0; padding: 0; list-style: none; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.foot-strong { font-weight: 700; color: var(--ink); }

/* ---------- embed ---------- */
body.embed { background: #f6f7f7; }
body.embed main { padding: 12px 0; }
.embed-foot { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- print ---------- */
#print-area { display: none; }
.pa-sheet { position: relative; overflow: hidden; }
.pa-cell { position: absolute; }
.pa-label { overflow: hidden; break-after: page; page-break-after: always; }
.pa-label:last-child { break-after: auto; page-break-after: auto; }
.pa-sheet { break-after: page; page-break-after: always; }
.pa-sheet:last-child { break-after: auto; page-break-after: auto; }
.pa-label svg, .pa-cell svg { display: block; }
@media print {
  body.print-labels > *:not(#print-area) { display: none !important; }
  body.print-labels #print-area { display: block !important; }
  body.print-labels { background: #fff !important; margin: 0 !important; padding: 0 !important; min-height: 0; }
  html:has(body.print-labels) { background: #fff !important; }
  body:not(.print-labels) .site-head, body:not(.print-labels) .share-row, body:not(.print-labels) .tool, body:not(.print-labels) .toc, body:not(.print-labels) .related { display: none !important; }
  body:not(.print-labels) { background: #fff; }
}

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .hero h1 { font-size: 34px; }
  .tool { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; }
  .vialstage { max-width: 300px; }
  .guides { grid-template-columns: 1fr 1fr; }
  .pop { right: auto; width: 520px; }
}
@media (max-width: 360px) {
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
