/* AuroFelix label check — tool-specific layout only.
   Typography (fonts, heading sizes, letter-spacing, labels, inputs, .button, .eyebrow, .tool-*) comes from the
   site stylesheet, including its Chinese rules for html[lang="zh-Hans"], so this page always matches the rest of the site.
   Only small UI text the site has no style for (pills, table headers, hints) is sized here. */
.lc {
  --lc-navy: var(--navy, #102d48);
  --lc-gold: var(--gold, #a87635);
  --lc-gold-light: var(--gold-light, #e4c38d);
  --lc-ink: var(--ink, #263f53);
  --lc-muted: var(--muted, #596d7c);
  --lc-line: var(--line, #dbe2e6);
  --lc-cream: var(--cream, #f7f5ef);
  --lc-white: var(--white, #fff);
  --lc-red: #a8321f; --lc-red-soft: #fbece8;
  --lc-amber: #9a6205; --lc-amber-soft: #fbf1df;
  --lc-green: #1f6e45; --lc-green-soft: #e7f3ec;
  /* Same stacks as the site, used only where a span sits inside a serif heading */
  --lc-sans: Arial, Helvetica, sans-serif;
}
.lc:lang(zh) { --lc-sans: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
.lc *, .lc *::before, .lc *::after { box-sizing: border-box; }

/* Tool area */
.lc-grid { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 36px; }
@media (max-width: 900px) { .lc-grid { grid-template-columns: minmax(0, 1fr); } }
.lc-panel { background: var(--lc-white); border: 1px solid var(--lc-line); padding: 24px; min-width: 0; }
.lc-panel > h2 { margin-bottom: 18px; }

.lc-form { display: flex; flex-direction: column; gap: 16px; }
.lc-form label, .lc-label { display: block; margin: 0 0 6px; }
.lc-form input:not([type="checkbox"]), .lc-form select, .lc-form textarea { width: 100%; margin: 0; }
.lc-form textarea { min-height: 96px; resize: vertical; }
.lc :focus-visible { outline: 2px solid var(--lc-gold); outline-offset: 2px; }
.lc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .lc-row { grid-template-columns: 1fr; } }
.lc-hint, .lc-privacy, .lc-disclaimer, .lc-rule { font-size: 13px; line-height: 1.6; color: var(--lc-muted); }
.lc-hint { display: block; margin-top: 4px; }
.lc-privacy { margin: 0; }
.lc-privacy a { color: var(--lc-gold); }

.lc-drop { border: 1.5px dashed #b9c5cd; padding: 20px 14px; text-align: center; cursor: pointer; background: var(--lc-cream); transition: border-color .15s, background .15s; }
.lc-drop:hover, .lc-drop.is-over { border-color: var(--lc-gold); background: #fbf7ee; }
.lc-drop strong { display: block; color: var(--lc-navy); }
.lc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lc-thumb { position: relative; width: 74px; height: 74px; overflow: hidden; border: 1px solid var(--lc-line); }
.lc-thumb canvas { width: 100%; height: 100%; display: block; }
.lc-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--lc-navy); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }

/* Buttons use the site's .button; these only add states and the outline variant */
.lc-btn { cursor: pointer; }
.lc-btn:disabled { opacity: .55; cursor: not-allowed; }
.lc-btn.is-ghost { background: transparent; color: var(--lc-gold); }
.lc-btn.is-ghost:hover { background: #fbf7ee; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Notes follow the site's .tool-notice look */
.lc-note { background: var(--lc-cream); border-left: 3px solid var(--lc-gold); padding: 12px 16px; margin: 0; font-size: 14px; line-height: 1.6; }
.lc-note.is-error { background: var(--lc-red-soft); border-left-color: var(--lc-red); color: var(--lc-red); }

/* Report */
.lc-rep-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--lc-line); padding-bottom: 16px; }
.lc-rep-title { flex: 1 1 260px; min-width: 0; }
.lc-rep-title .eyebrow { margin-bottom: 6px; }
.lc-rep-title h2 { margin: 0; overflow-wrap: anywhere; }
.lc-badge { display: inline-block; font-family: var(--lc-sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-gold); border: 1px solid var(--lc-gold); padding: 1px 7px; margin-left: 10px; vertical-align: middle; }
.lc-verdict { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 700; }
.lc-verdict i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lc-v-red { background: var(--lc-red-soft); color: var(--lc-red); } .lc-v-red i { background: var(--lc-red); }
.lc-v-amber { background: var(--lc-amber-soft); color: var(--lc-amber); } .lc-v-amber i { background: var(--lc-amber); }
.lc-v-green { background: var(--lc-green-soft); color: var(--lc-green); } .lc-v-green i { background: var(--lc-green); }
.lc-summary { margin: 16px 0 0; max-width: 72ch; }
.lc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 18px 0 0; }
.lc-facts div { min-width: 0; }
.lc-facts dt.eyebrow { margin: 0; }
.lc-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--lc-navy); overflow-wrap: anywhere; }
.lc-sec { margin-top: 28px; }
.lc-sec > h3 { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.lc-count { font-family: var(--lc-sans); font-size: 13px; letter-spacing: normal; color: var(--lc-muted); font-variant-numeric: tabular-nums; }
.lc-findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lc-f { display: grid; grid-template-columns: 4px minmax(0, 1fr); border: 1px solid var(--lc-line); background: var(--lc-white); }
.lc-f > b { background: var(--lc-muted); }
.lc-f.red > b { background: var(--lc-red); } .lc-f.amber > b { background: var(--lc-amber); } .lc-f.green > b { background: var(--lc-green); }
.lc-f > div { padding: 14px 16px; min-width: 0; }
.lc-f-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lc-sev { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
.lc-sev.red { background: var(--lc-red-soft); color: var(--lc-red); } .lc-sev.amber { background: var(--lc-amber-soft); color: var(--lc-amber); } .lc-sev.green { background: var(--lc-green-soft); color: var(--lc-green); }
.lc-area { font-size: 12px; font-weight: 600; color: var(--lc-muted); }
.lc-f h4 { margin: 8px 0 4px; color: var(--lc-navy); }
.lc-f p { margin: 0 0 6px; }
.lc-act { font-size: 14px; background: var(--lc-cream); border-left: 3px solid var(--lc-gold-light); padding: 7px 10px; margin-top: 8px; }

/* Lock and manual-review cards follow the site's .tool-followup look */
.lc-lock { margin-top: 12px; background: var(--lc-cream); padding: 28px; }
.lc-lock > h3 { margin: 0 0 8px; }
.lc-lock > p { margin: 0 0 16px; }
.lc-ghost-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.lc-ghost-rows span { display: block; height: 10px; background: #e9e4d6; }
.lc-check { display: flex !important; gap: 8px; align-items: flex-start; }
.lc-form .lc-check input[type="checkbox"] { width: auto; flex: none; margin: 2px 0 0; }
.lc-check span { flex: 1; min-width: 0; }

.lc-tbl { overflow-x: auto; border: 1px solid var(--lc-line); }
.lc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.lc th, .lc td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--lc-line); vertical-align: top; }
.lc th { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-muted); background: var(--lc-cream); }
.lc tr:last-child td { border-bottom: 0; }
.lc-tag { display: inline-block; font-size: 12px; padding: 0 6px; margin: 1px 4px 1px 0; }
.lc-tag.animal { background: var(--lc-red-soft); color: var(--lc-red); }
.lc-tag.additive, .lc-tag.novel { background: var(--lc-amber-soft); color: var(--lc-amber); }
.lc-tag.allergen { background: #e6edf3; color: var(--lc-navy); }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-chip { font-weight: 700; border: 1px solid var(--lc-navy); color: var(--lc-navy); padding: 1px 9px; }
.lc-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.lc-cta { margin-top: 28px; }
.lc-cta h3 { margin: 0 0 8px; }
.lc-example-note { margin-top: 14px; }
.lc-contains { margin-top: 8px; }
.lc-request { margin-top: 0; }
.lc-disclaimer { border-top: 1px solid var(--lc-line); margin: 24px 0 0; padding-top: 12px; }

.lc-thinking { display: flex; align-items: center; gap: 14px; padding: 40px 0; color: var(--lc-muted); }
.lc-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lc-line); border-top-color: var(--lc-gold); animation: lc-spin 1s linear infinite; flex: none; }
@keyframes lc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lc-spinner { animation: none; } }

/* Guide section (uses the site's .tool-detail-grid, .tool-steps, .tool-checklist) */
.lc-guide { margin-top: 56px; }
.lc-guide-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 18px; }
.lc-guide-foot .tool-scope { margin: 0; max-width: 70ch; }

/* PDF sheet (rendered off-screen, then saved) */
.lc-pdf-holder { position: fixed; left: -10000px; top: 0; width: 760px; background: #fff; }
.lc-pdf { width: 760px; padding: 4px 6px; background: #fff; }
.lc-pdf-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--lc-navy); padding-bottom: 8px; margin-bottom: 16px; color: var(--lc-muted); font-size: 13px; }
.lc-pdf-foot { border-top: 1px solid var(--lc-line); margin-top: 18px; padding-top: 8px; font-size: 12px; color: var(--lc-muted); }
.lc-pdf .lc-tbl { overflow: visible; }
.lc-pdf table { min-width: 0; }
.lc-pdf .tool-detail-grid { display: block; }
.lc-pdf .tool-detail-grid section + section { margin-top: 20px; }
.lc-pdf .lc-guide { margin-top: 0; }

/* Print fallback: only the report */
@media print {
  .header, footer, .skip, .tool-breadcrumb, .tool-page > .eyebrow, .tool-page > h1, .tool-intro, .tool-notice, .lc-guide, .tool-faq, .tool-page > .tool-followup, .lc-grid > .lc-panel:first-child, .lc-actions, .lc-lock form, .lc-cta { display: none !important; }
  .lc-grid { display: block; margin: 0; }
  .lc-panel { border: 0; padding: 0; }
  .lc-f, tr { break-inside: avoid; }
}
