@font-face {
  font-family: "Archivo SemiCondensed";
  src: url("/static/fonts/archivo/ArchivoSemiCondensed-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #eeeeee;
  --surface: #eef3e8;
  --ink: #252d28;
  --muted: #526157;
  --accent: #315c4f;
  --line: #a4b3a5;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { position: relative; margin: 0; min-height: 100vh; isolation: isolate; }
/* One continuous portrait textile, proportionally cropped with no repetition. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/images/gauze-gray-open-ripples.webp") center / cover no-repeat;
  filter: grayscale(1);
  opacity: .55;
  z-index: -2;
  pointer-events: none;
}
#gauze-material {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #eeeeee20 0%, #eeeeee15 58%, #eeeeeeea 100%);
  pointer-events: none;
}
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
h1, h2 { margin: 0; line-height: 1.1; font-family: "Archivo SemiCondensed", Arial, "Helvetica Neue", Helvetica, sans-serif; }
h1 { font-size: clamp(1.9rem, 4.1vw, 3.4rem); text-transform: uppercase; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.small { font-size: .79rem; line-height: 1.5; color: var(--muted); }
.skip-link { position: fixed; left: 1rem; top: -6rem; padding: 1rem; background: var(--surface); z-index: 20; }
.skip-link:focus { top: 1rem; }
/* Navigation and page title share the stationary masthead. */
.site-header { position: relative; z-index: 10; isolation: isolate; }
.site-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  width: min(100% - 4rem, 1080px);
  min-height: 80px;
  margin: auto;
  position: relative;
}
.site-nav a { padding: .8rem .3rem; text-align: center; text-decoration: none; font-size: 1rem; font-weight: 600; }
main { position: relative; width: min(100% - 6rem, 960px); margin: auto; }
.hero { padding: 3.2rem 0 2.1rem; text-align: center; }
.card { background: var(--surface); border: 1px solid #94a799; border-radius: 7px; padding: 2rem 2.2rem; margin-bottom: 1.6rem; scroll-margin-top: 1.5rem; }
.detector-content, .guidance-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.3rem; align-items: center; }
.detector-card { display: flex; flex-direction: column; min-height: 320px; }
.detector-card h2 { margin-bottom: 1.25rem; }
.detector-content { flex: 1; }
.detector-copy { font-size: 1rem; }
.scan-feedback { height: 10.5rem; padding-top: .6rem; overflow: auto; color: #111; font-size: .9rem; font-style: italic; }
.scan-feedback::before { content: ""; display: block; width: 2rem; border-top: 1px solid currentColor; margin-bottom: .8rem; }
.scan-feedback > p { margin-bottom: .65rem; }
.scan-feedback .small { color: inherit; }
.scan-feedback:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#status { font-size: inherit; color: inherit; margin: 0 0 .65rem; }
#status:empty { display: none; }
.result-text { font-weight: 400; font-size: 1rem; line-height: 1.4; margin: 0 0 .65rem; }
.result .small { font-size: .76rem; }
.upload-form { min-width: 0; width: 100%; max-width: 300px; justify-self: end; text-align: center; }
.upload-frame { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; background: #647267; border-radius: 4px; overflow: hidden; }
.upload-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/images/upload-f11.webp") center / cover no-repeat;
  filter: grayscale(1);
  opacity: .65;
  z-index: 0;
  pointer-events: none;
}
.upload-frame::after { content: ""; position: absolute; inset: 0; background: #15231d80; z-index: 0; pointer-events: none; }
.upload-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.upload-frame label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; color: #fff; font-weight: 700; font-size: 1.2rem; z-index: 2; pointer-events: none; }
.upload-frame:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.upload-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #edf0e9; z-index: 1; }
.upload-frame:has(img:not([hidden])) label { opacity: 0; }
.upload-frame[aria-busy=true] { outline: 1px dashed var(--accent); outline-offset: 3px; }
.upload-form > .small { margin: .65rem 0 .35rem; font-size: .71rem; }
.upload-actions { height: 1.8rem; }
.text-button { background: none; padding: .2rem 0; border: 0; text-decoration: underline; text-underline-offset: .2em; font-size: .8rem; }
.result { margin-top: .4rem; }
.guidance-card { grid-template-columns: 1.16fr 1fr; align-items: center; padding-top: 2.3rem; padding-bottom: 2.3rem; }
.guidance-card h2 { margin-bottom: 1.25rem; max-width: 25ch; }
.appearance-list { padding-left: 1.1rem; margin: 1rem 0 1.25rem; font-size: 1rem; }
.appearance-list li { padding-left: .15rem; margin-bottom: .65rem; }
.inline-link, .guide-links { font-size: .86rem; font-weight: 500; }
.guide-links { margin: 1.2rem 0 0; line-height: 1.9; }
.reference-figure { margin: 0; min-width: 0; }
.reference-figure > a { display: block; background: #fff; }
.reference-figure img { display: block; width: 100%; height: auto; }
figcaption { margin: .6rem 0 0; color: var(--muted); font-size: .64rem; text-align: right; line-height: 1.5; }
.text-card { padding-top: 2.3rem; padding-bottom: 2.3rem; }
.text-card h2 { margin-bottom: 1.25rem; }
.care-list, .collaboration-list { padding-left: 1.15rem; margin: 0 0 1.35rem; }
.care-list li, .collaboration-list li { padding-left: .15rem; margin-bottom: .5rem; }
#care .care-list, .care-caution { max-width: 82ch; }
.care-caution { font-size: 1rem; }
.site-footer { padding: .7rem 0 2.5rem; font-size: .77rem; font-weight: 700; color: #303d34; }
.site-footer a, .site-footer a:hover { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem 1.75rem; }
.document { max-width: 740px; padding-bottom: 3rem; }
.document .hero { padding-top: 2.5rem; text-align: left; }
.document .hero h1 { text-transform: none; }
.document .card { padding: 2rem; }
.document h2 { margin-bottom: 1rem; }
.document section + section { margin-top: 2rem; }
.document li { margin: .5rem 0; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: .85rem; }
@media (prefers-reduced-motion: no-preference) { html, .home main { scroll-behavior: smooth; } }
@media (max-width: 760px) {
  main { width: calc(100% - 2rem); }
  .site-nav { width: calc(100% - 1.4rem); min-height: 70px; }
  .site-nav a { font-size: clamp(.78rem, 3.36vw, .82rem); padding: .8rem .2rem; }
  .hero { padding: 2.8rem .5rem 1.8rem; }
  .document .hero { padding-top: 2rem; }
  .card { padding: 1.5rem; gap: 1.5rem; }
  .detector-card { gap: 0; }
  .upload-frame { aspect-ratio: 1; }
}
@media (max-width: 540px) {
  .detector-content, .guidance-card { grid-template-columns: 1fr; }
  .upload-form { width: 100%; max-width: 300px; margin: auto; justify-self: center; }
  .upload-frame { aspect-ratio: 1; }
  .guidance-card .reference-figure { max-width: 400px; }
  .card { border-radius: 6px; }
  .hero h1 { max-width: 16ch; margin: auto; }
  .site-footer nav { gap: .6rem 1.2rem; }
  .document .card { padding: 1.5rem; }
}

.evaluation-detail { margin: 1rem 0 1.3rem; font-size: .86rem; color: var(--muted); }
.evaluation-detail summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.evaluation-detail p { margin-top: .8rem; }
.research-list { padding-left: 1.2rem; }

.guidance-context { font-size: 1rem; line-height: 1.5; margin: 0 0 .85rem; }
.guidance-intro { font-size: 1rem; }
