/* Little Haven — moonlit surroundings, luminous lilac reading surfaces. */
:root {
  color-scheme: light;
  --lh-surface: rgb(var(--c-surface));
  --lh-surface-soft: rgb(var(--c-surface-soft));
  --lh-surface-deep: rgb(var(--c-surface-deep));
  --lh-ink: rgb(var(--c-ink));
  --lh-muted: rgb(var(--c-muted));
  --lh-accent: rgb(var(--c-accent));
  --lh-border: rgb(var(--c-border));
  --lh-night: rgb(var(--c-night));
  --lh-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --lh-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --lh-bg: var(--lh-night);
  --lh-bg-2: rgb(var(--c-bg-2));
  --lh-card: var(--lh-surface);
  --lh-card-2: var(--lh-surface-soft);
  --lh-deep: rgb(var(--c-deep));
  --lh-royal: rgb(var(--c-accent));
  --lh-neon: rgb(var(--c-neon));
  --lh-lavender: rgb(var(--c-surface-deep));
  --lh-soft: var(--lh-surface-soft);
  --lh-white: rgb(var(--c-white));
  --lh-shadow: 0 12px 30px rgb(var(--c-night) / 0.1686);
  --lh-glow: 0 0 18px rgb(var(--c-violet-400-6) / 0.3412);
  /* A box you type in. It has to be lighter than the card behind it, or a
     field and a paragraph look the same and nobody can tell where to type. */
  --lh-field: rgb(var(--c-white));
  --lh-field-edge: rgb(var(--c-border));
  --lh-radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--lh-night); }
body { margin: 0; min-height: 100vh; font: 16px/1.65 var(--lh-sans); color: var(--lh-ink); background: var(--lh-night); }
img, svg, video, canvas { max-width: 100%; }
.moonlit-site .lh-icon { display: inline-block; width: 1.15rem; height: 1.15rem; min-width: 1.15rem; flex: 0 0 1.15rem; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.moonlit-site .lh-icon--chevron-down { width: .85rem; height: .85rem; min-width: .85rem; flex-basis: .85rem; transition: transform .18s ease; }
.nav-dropdown[open] > summary .lh-icon--chevron-down { transform: rotate(180deg); }
img, video { height: auto; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, summary { cursor: pointer; }
a { color: rgb(var(--c-violet-700-2)); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: rgb(var(--c-accent)); }
a, button, input, summary, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgb(var(--c-accent)); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--lh-ink); font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 600; line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 2.4vw, 2.5rem); margin: 0 0 .8rem; }
h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4rem; }
strong { font-weight: 650; }
small { font-size: .88rem; }
hr { border: 0; border-top: 1px solid rgb(var(--c-violet-400-4) / 0.4118); margin: 1.5rem 0; }
::selection { color: rgb(var(--c-pure-white)); background: rgb(var(--c-accent)); }
.sr-only, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: var(--lh-surface-soft); padding: .7rem 1.2rem; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: .6rem; }
.moon-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgb(var(--c-night)) url('../dna_portal/moonlit/moonlit-room.webp') center top / cover no-repeat; }
.moon-stars { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.moon-star { position: absolute; width: 14px; height: 14px; color: rgb(var(--c-violet-100)); filter: drop-shadow(0 0 5px rgb(var(--c-violet-400-6))); animation: moon-twinkle 5.8s ease-in-out infinite; }
.moon-star::before, .moon-star::after { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.moon-star::after { inset: 3px; transform: rotate(45deg); opacity: .6; }
.moon-stars > .moon-star:nth-child(1) { top: 22%; left: 4.5%; animation-delay: -1.6s; }
.moon-stars > .moon-star:nth-child(2) { top: 67%; left: 7.7%; width: 10px; height: 10px; animation-duration: 7.1s; animation-delay: -3.2s; }
.moon-stars > .moon-star:nth-child(3) { top: 43%; left: 1.3%; animation-duration: 6.2s; animation-delay: -.7s; }
.moon-stars > .moon-star:nth-child(4) { top: 29%; right: 5%; animation-delay: -4.1s; }
.moon-stars > .moon-star:nth-child(5) { top: 72%; right: 2.2%; animation-duration: 6.8s; animation-delay: -2.3s; }
.moon-stars > .moon-star:nth-child(6) { top: 51%; right: 8.1%; width: 11px; height: 11px; animation-duration: 8s; animation-delay: -5.2s; }
@keyframes moon-twinkle { 0%,100% { opacity: .2; transform: scale(.68); } 42% { opacity: .45; } 52% { opacity: 1; transform: scale(1.12); } 66% { opacity: .4; transform: scale(.8); } }
.specimen-spark { animation: moon-glint 6.6s ease-in-out infinite; }
@keyframes moon-glint { 0%,100% { opacity: .35; } 50% { opacity: 1; } 65% { opacity: .6; } }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; padding: .6rem max(2.2vw, 1rem); color: rgb(var(--c-surface-soft)); background: linear-gradient(180deg,rgb(var(--c-night) / 0.9804),rgb(var(--c-night) / 0.9804)); border-bottom: 1px solid rgb(var(--c-violet-300-2)); box-shadow: 0 3px 0 rgb(var(--c-night)),0 4px 0 rgb(var(--c-muted)),0 8px 25px rgb(var(--c-black) / 0.3333); }
.brand { display: inline-flex; align-items: center; gap: .8rem; flex-shrink: 0; color: rgb(var(--c-surface-soft)); text-decoration: none; }
.brand:hover { color: rgb(var(--c-pure-white)); }
.brand-logo { width: 61px; height: 61px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 0 6px rgb(var(--c-violet-400-9) / 0.3765)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; text-align: center; }
.brand-title { font: 500 clamp(1.65rem,2.3vw,2.15rem)/1.05 var(--lh-serif); font-size-adjust: 0.46; letter-spacing: -.025em; white-space: nowrap; }
.brand-tagline { margin-top: .35rem; font: .75rem/1.2 var(--lh-sans); letter-spacing: .32em; padding-left: .32em; color: rgb(var(--c-surface-deep)); }
.main-nav { display: flex; gap: .25rem; align-items: center; }
.main-nav > a, .nav-dropdown > summary { display: flex; gap: .5rem; align-items: center; padding: .65rem .7rem; min-height: 44px; color: rgb(var(--c-violet-100-2)); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.main-nav > a:not(.nav-order):hover, .nav-dropdown > summary:hover, .nav-dropdown[open] > summary { color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-300-5) / 0.0863); border-radius: 5px; }
.main-nav :focus-visible, .site-footer :focus-visible { outline-color: rgb(var(--c-violet-200)); }
.main-nav > [aria-current='page']:not(.nav-order) { color: rgb(var(--c-violet-100)); box-shadow: inset 0 -2px rgb(var(--c-violet-300-4)); }
.main-nav > a.nav-staff { margin-inline: .2rem; padding-block: .4rem; min-height: 36px; border: 1px solid rgb(var(--c-neon) / .6); border-radius: 999px; color: rgb(var(--c-white)); font-weight: 600; box-shadow: 0 0 10px rgb(var(--c-neon) / .3); }
.main-nav > a.nav-staff:hover, .main-nav > a.nav-staff[aria-current="page"] { background: rgb(var(--c-neon) / .18); border-radius: 999px; box-shadow: 0 0 14px rgb(var(--c-neon) / .5); }
.nav-dropdown-panel a[aria-current='page'] { color: rgb(var(--c-deep)); background: rgb(var(--c-surface-deep)); box-shadow: inset 3px 0 rgb(var(--c-violet-500-4)); font-weight: 650; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; user-select: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown-panel { position: absolute; top: calc(100% + .5rem); left: 0; width: 250px; padding: .55rem; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 8px; background: rgb(var(--c-surface)); color: var(--lh-ink); box-shadow: 0 14px 40px rgb(var(--c-black) / 0.4); max-height: min(70vh,650px); overflow-y: auto; }
.nav-dropdown-panel-end { left: auto; right: 0; }
.nav-dropdown-panel a, .nav-dropdown-panel .logout-button { display: block; width: 100%; padding: .65rem .75rem; min-height: 44px; font: 500 .9rem/1.4 var(--lh-sans); text-decoration: none; color: rgb(var(--c-violet-700-4)); border: 0; border-radius: 4px; background: transparent; text-align: left; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel .logout-button:hover { background: rgb(var(--c-surface-deep)); color: rgb(var(--c-violet-900-2)); }
.logout-form { margin: 0; }
.main-nav .nav-order { margin-left: .6rem; padding: .6rem 1.1rem; font-size: .9rem; }
.mobile-menu-btn, .mobile-nav-overlay { display: none; }
.page-main { width: min(1240px, calc(100% - 15vw)); margin: 2.7rem auto 3.8rem; position: relative; z-index: 3; }
.page-main:focus { outline: none; }
.page-shell { min-width: 0; padding: clamp(1.2rem,2.6vw,2.5rem); background: linear-gradient(125deg,rgb(var(--c-surface)),rgb(var(--c-surface)) 55%,rgb(var(--c-surface))); color: var(--lh-ink); border: 5px solid rgb(var(--c-bg-2)); border-radius: 14px 14px 9px 9px; box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)), inset 0 0 0 1px rgb(var(--c-violet-400-8)),0 0 0 5px rgb(var(--c-night)),0 0 0 6px rgb(var(--c-violet-400-8)),0 18px 60px rgb(var(--c-black) / 0.4667); }
.page-shell > * { min-width: 0; }
.page-title, .moon-heading { color: var(--lh-ink); }
.card-subtitle, .moon-lead { color: var(--lh-muted); font-size: 1.06rem; max-width: 70ch; }
.moon-kicker, .section-kicker, .lh-kicker { color: rgb(var(--c-violet-600-6)); font: 650 .73rem/1.5 var(--lh-sans); letter-spacing: .17em; text-transform: uppercase; margin-bottom: .65rem; }
.moon-panel, .lh-card, .lh-section, .content-card:not(.page-shell), .card-large { background: var(--lh-surface-soft); color: var(--lh-ink); border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 9px; padding: clamp(1.15rem,2vw,1.8rem); box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)), inset 0 0 0 4px rgb(var(--c-violet-300-2) / 0.3765),0 6px 15px rgb(var(--c-violet-700-3) / 0.0824); }
.moon-panel, .lh-section { margin-block: 1.5rem; }
.page-shell, .moon-panel, .haven-welcome { position: relative; }
.page-shell::before, .page-shell::after, .moon-panel::before, .moon-panel::after, .haven-welcome::before, .haven-welcome::after { content: ''; position: absolute; width: 56px; height: 56px; background: url('../dna_portal/moonlit/ornate-corner-v2.webp') center / contain no-repeat; pointer-events: none; }
.page-shell::before, .moon-panel::before, .haven-welcome::before { top: 5px; left: 5px; }
.page-shell::after, .moon-panel::after, .haven-welcome::after { bottom: 5px; right: 5px; transform: rotate(180deg); }
body[data-page='home'] .page-shell::before, body[data-page='home'] .page-shell::after { display: none; }
.moon-actions, .lh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.2rem; }
.lh-card-grid, .featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.section-head { margin-bottom: 1.5rem; }
.moon-specimen { position: relative; overflow: hidden; margin: 0; border: 5px double rgb(var(--c-violet-300-2)); border-radius: 46% 46% 8px 8px; background: rgb(var(--c-night)); box-shadow: 0 0 0 4px rgb(var(--c-bg-2)),0 0 0 5px rgb(var(--c-violet-400-4)),0 15px 30px rgb(var(--c-black) / 0.2667); }
.moon-specimen img { display: block; width: 100%; object-fit: cover; }
.moon-specimen figcaption { padding: .75rem; text-align: center; color: rgb(var(--c-surface)); font: .8rem var(--lh-serif); font-size-adjust: 0.46; letter-spacing: .08em; }
.moon-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; color: rgb(var(--c-violet-500-4)); margin: 1.1rem auto; width: min(340px,80%); }
.moon-divider::before, .moon-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,transparent,rgb(var(--c-violet-400-5))); }
.moon-divider::after { transform: rotate(180deg); }
.moon-divider span { font-size: 1.4rem; line-height: 1; }
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-small, .button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .7rem 1.25rem; font: 600 .95rem/1.35 var(--lh-sans); text-align: center; text-decoration: none; border: 1px solid rgb(var(--c-violet-500-5)); border-radius: 999px; max-width: 100%; white-space: normal; cursor: pointer; transition: background .18s,color .18s,box-shadow .18s,transform .18s; }
.btn, .btn-primary, .button-primary { color: rgb(var(--c-pure-white)); background: linear-gradient(180deg,rgb(var(--c-status-rerun)) 0%,rgb(var(--c-deep)) 65%,rgb(var(--c-violet-600-4))); border: 1px solid rgb(var(--c-violet-200)); box-shadow: 0 0 0 1px rgb(var(--c-accent)),0 0 16px rgb(var(--c-violet-400-6) / 0.3373),inset 0 1px 5px rgb(var(--c-violet-200) / 0.502); }
.btn:hover, .btn-primary:hover, .button-primary:hover { color: rgb(var(--c-pure-white)); background: linear-gradient(180deg,rgb(var(--c-violet-500-4)),rgb(var(--c-violet-600-4))); box-shadow: 0 0 0 1px rgb(var(--c-violet-400-9)),0 0 22px rgb(var(--c-violet-400-6) / 0.502),inset 0 1px 5px rgb(var(--c-violet-100)); transform: translateY(-1px); }
.btn-secondary, .btn-ghost, .btn-small, .button-secondary { color: rgb(var(--c-violet-700-3)); background: rgb(var(--c-surface-soft)); border-color: rgb(var(--c-violet-400-5)); box-shadow: inset 0 1px rgb(var(--c-pure-white) / 0.5333); }
.btn-secondary:hover, .btn-ghost:hover, .btn-small:hover, .button-secondary:hover { color: rgb(var(--c-violet-700-3)); background: rgb(var(--c-surface-deep)); border-color: rgb(var(--c-violet-600-4)); }
button:disabled, input:disabled, select:disabled, .btn[aria-disabled='true'] { cursor: not-allowed; opacity: .58; box-shadow: none; transform: none; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']):not([type='button']):not([type='range']):not([type='color']), select, textarea { color: var(--lh-ink); background: var(--lh-field); border: 1px solid var(--lh-field-edge); border-radius: 7px; padding: .7rem .85rem; min-height: 46px; line-height: 1.4; box-shadow: inset 0 1px 3px rgb(var(--c-ink) / 0.051); }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--lh-muted); opacity: 1; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']):not([type='button']):not([type='range']):not([type='color']):focus, select:focus, textarea:focus { outline: none; border-color: var(--lh-accent); box-shadow: 0 0 0 3px rgb(var(--c-accent) / 0.2); }
input[type='checkbox'], input[type='radio'] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: rgb(var(--c-violet-600-4)); vertical-align: middle; flex-shrink: 0; }
input[type='file'] { font-size: .88rem; }
input[type='file']::file-selector-button { border: 0; padding: .4rem .7rem; margin-right: .7rem; background: rgb(var(--c-surface-deep)); border-radius: 4px; color: rgb(var(--c-violet-700-3)); cursor: pointer; }
label { font-weight: 600; }
fieldset { min-width: 0; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 8px; padding: 1rem; }
legend { padding: 0 .5rem; font-weight: 650; }
.helptext, .help-text, .field-help { color: var(--lh-muted); font-size: .88rem; }
.errorlist { color: rgb(var(--c-rose-600)); background: rgb(var(--c-rose-100)); border-left: 3px solid rgb(var(--c-rose-500-4)); padding: .7rem .7rem .7rem 1.7rem; border-radius: 4px; }
.form-error-summary { max-width: 100%; padding: 1.1rem 1.3rem; margin: 1rem 0; border: 2px solid rgb(var(--c-rose-500-4)); border-radius: 8px; background: rgb(var(--c-rose-100)); color: rgb(var(--c-rose-700)); }
.form-error-summary h2 { color: rgb(var(--c-rose-700)); font-size: 1.4rem; }
.form-error-summary a { color: rgb(var(--c-rose-600-2)); font-weight: 650; }
[aria-invalid='true'] { border-color: rgb(var(--c-rose-500-4)) !important; box-shadow: 0 0 0 2px rgb(var(--c-rose-500-4) / 0.1216) !important; }
.messages { list-style: none; padding: 0; }
.messages li, .message { border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 7px; padding: .85rem 1rem; margin-bottom: .7rem; background: rgb(var(--c-violet-100-2)); color: rgb(var(--c-violet-700-3)); }
.messages .success { background: rgb(var(--c-grey-100)); color: rgb(var(--c-green-600)); border-color: rgb(var(--c-green-400)); }
.messages .error, .messages .warning { background: rgb(var(--c-rose-100)); color: rgb(var(--c-rose-600-2)); border-color: rgb(var(--c-rose-400-5)); }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .65rem; font-size: .78rem; font-weight: 650; line-height: 1.45; background: rgb(var(--c-surface)); color: rgb(var(--c-violet-700-3)); border: 1px solid rgb(var(--c-violet-300-2)); }
.status-accepted_provide_details, .status-awaiting_mail { background: rgb(var(--c-amber-100)); color: rgb(var(--c-amber-600-3)); border-color: rgb(var(--c-amber-300-3)); }
.status-samples_received, .status-in_progress { background: rgb(var(--c-teal-100)); color: rgb(var(--c-teal-600-2)); border-color: rgb(var(--c-teal-300-4)); }
.status-completed { background: rgb(var(--c-green-100)); color: rgb(var(--c-green-600)); border-color: rgb(var(--c-green-400)); }
.status-needs_attention, .status-cancelled { background: rgb(var(--c-rose-100)); color: rgb(var(--c-rose-700)); border-color: rgb(var(--c-rose-400-5)); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; color: var(--lh-ink); }
th, td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid rgb(var(--c-violet-400-4) / 0.4392); vertical-align: top; }
th { background: rgb(var(--c-surface-deep)); color: rgb(var(--c-ink)); font-size: .81rem; font-weight: 650; letter-spacing: .015em; }
tbody tr:nth-child(even) { background: rgb(var(--c-surface-soft) / 0.2392); }
.moon-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; border-radius: 6px; scrollbar-color: rgb(var(--c-violet-400-5)) rgb(var(--c-surface)); }
.moon-table-scroll > table { min-width: 640px; }
.moon-table-scroll:focus-visible { outline-offset: -3px; }
details:not(.nav-dropdown) > summary { padding-block: .7rem; }
dialog { color: var(--lh-ink); background: var(--lh-surface-soft); border: 2px solid rgb(var(--c-border)); border-radius: 12px; max-width: min(640px,calc(100vw - 2rem)); }
dialog::backdrop { background: rgb(var(--c-night) / 0.7922); }
.site-footer { position: relative; z-index: 3; margin-top: 3rem; padding: 2.2rem max(8vw,1.5rem) 1.5rem; background: linear-gradient(180deg,rgb(var(--c-night)),rgb(var(--c-night))); border-top: 3px double rgb(var(--c-violet-400-8)); color: rgb(var(--c-surface-deep)); display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 1.8rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-logo { width: 55px; height: 55px; object-fit: contain; border-radius: 50%; }
.footer-brand strong { display: block; color: rgb(var(--c-violet-100-2)); font: 1.5rem var(--lh-serif); font-size-adjust: 0.46; }
.footer-brand span { display: block; font-size: .8rem; margin-top: .4rem; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .1rem 1.2rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: rgb(var(--c-surface-deep)); font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: rgb(var(--c-pure-white)); text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--c-violet-100)); border: 1px solid rgb(var(--c-border)); border-radius: 50%; }
.social-btn:hover { color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-700-3)); }
.social-icon-vector { width: 20px; height: 20px; }
.footer-text { grid-column: 1/-1; border-top: 1px solid rgb(var(--c-border) / 0.3333); padding-top: 1.2rem; font-size: .75rem; color: rgb(var(--c-violet-300-2)); text-align: center; margin: 0; }
.footer-preferences { grid-column: 1/-1; text-align: center; }
/* Homepage: three clear doorways, with all labels rendered as accessible HTML. */
body[data-page='home'] .page-shell { background: transparent; box-shadow: none; border: 0; padding: 0; }
.haven-welcome { position: relative; text-align: center; border: 4px solid rgb(var(--c-bg-2)); border-radius: 12px; background: radial-gradient(ellipse at 50% 0,rgb(var(--c-surface-soft)),var(--lh-surface) 76%); box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)),0 0 0 5px rgb(var(--c-night)),0 0 0 6px rgb(var(--c-violet-400-8)); padding: 2.5rem 1.6rem 2.2rem; }
.haven-welcome h1 { font-size: clamp(2.6rem,5.3vw,5.3rem); line-height: 1.03; letter-spacing: -.035em; }
.haven-welcome h1 em { display: block; font-style: normal; color: rgb(var(--c-deep)); }
.haven-welcome .moon-lead { margin-inline: auto; font: clamp(1.05rem,1.7vw,1.4rem)/1.5 var(--lh-serif); font-size-adjust: 0.46; color: rgb(var(--c-violet-700)); }
.haven-welcome .moon-actions { justify-content: center; }
.haven-triad { display: grid; grid-template-columns: 1fr .93fr 1fr; align-items: stretch; gap: 1.1rem; margin: 2.2rem .4rem 1.4rem; }
.haven-path { position: relative; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--lh-ink); overflow: hidden; background: linear-gradient(135deg,rgb(var(--c-surface)),rgb(var(--c-surface-deep))); border: 4px solid rgb(var(--c-bg-2)); border-radius: 48% 48% 10px 10px; box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)),0 0 0 4px rgb(var(--c-bg-2)),0 0 0 5px rgb(var(--c-violet-400-4)),0 10px 20px rgb(var(--c-black) / 0.2667); transition: transform .2s,box-shadow .2s; }
.haven-path:hover { color: var(--lh-ink); transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(var(--c-violet-100)),0 0 0 4px rgb(var(--c-violet-700-4)),0 0 0 5px rgb(var(--c-violet-300-3)),0 0 24px rgb(var(--c-status-rerun) / 0.4); }
.haven-path > img { width: 100%; height: clamp(180px,23vw,310px); object-fit: cover; object-position: center 36%; display: block; }
.haven-path-copy { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; padding: 1.4rem 1rem; border-top: 2px solid rgb(var(--c-violet-400-4)); }
.haven-path h2 { font-size: clamp(1.65rem,2.8vw,2.6rem); }
.haven-path p { color: rgb(var(--c-violet-700)); margin: 0 0 .7rem; font-size: .93rem; }
.haven-path .path-action { margin-top: auto; color: rgb(var(--c-deep)); font-size: .86rem; font-weight: 650; padding: .45rem 0; }
.haven-seal { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; border: 4px double rgb(var(--c-violet-400-4)); border-radius: 48% 48% 10px 10px; background: radial-gradient(ellipse at 50% 40%,rgb(var(--c-violet-700-3)),rgb(var(--c-bg-2)) 72%); box-shadow: 0 0 0 3px rgb(var(--c-bg-2)),0 0 0 4px rgb(var(--c-border)); padding: 2rem .7rem 1.3rem; text-align: center; }
.haven-seal > img { width: 95%; filter: drop-shadow(0 0 10px rgb(var(--c-violet-400-9) / 0.3608)); }
.haven-seal p { color: rgb(var(--c-surface-deep)); font: 1.15rem/1.55 var(--lh-serif); font-size-adjust: 0.46; padding: .5rem; margin-top: .7rem; }
.haven-seal .moon-star { right: 8%; top: 18%; }
.haven-seal .moon-star:nth-of-type(2) { left: 12%; top: 71%; animation-delay: -3s; }
.haven-research { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--lh-ink); text-decoration: none; padding: 1.3rem 2rem; background: linear-gradient(100deg,rgb(var(--c-surface-deep)),rgb(var(--c-surface)) 50%,rgb(var(--c-surface-deep))); border: 4px solid rgb(var(--c-ink)); border-radius: 8px; box-shadow: 0 0 0 1px rgb(var(--c-violet-300-2)),0 0 0 4px rgb(var(--c-bg-2)),0 0 0 5px rgb(var(--c-border)); }
.haven-research h2 { margin: 0; }
.haven-research p { color: rgb(var(--c-violet-700)); font-size: .92rem; margin: .3rem 0 0; }
.research-glyph { width: 45px; flex: 0 0 45px; height: 54px; color: rgb(var(--c-violet-600-6)); }
.path-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgb(var(--c-violet-200)); border-radius: 50%; background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-pure-white)); font: 1.5rem var(--lh-serif); font-size-adjust: 0.46; box-shadow: 0 0 12px rgb(var(--c-violet-600-8) / 0.549); }
.haven-section { margin-top: 3.4rem; }
.haven-section > .section-head { text-align: center; background: var(--lh-surface); padding: 1.5rem; border: 3px double rgb(var(--c-border)); border-radius: 8px; }
.home-tests .lh-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-tests .test-card-link { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s; padding: 1.3rem; }
.home-tests .test-card-link:hover { transform: translateY(-3px); }
.home-tests .test-card-link img { width: 100%; height: 165px; object-fit: contain; background: rgb(var(--c-ink)); border-radius: 6px; margin-bottom: 1rem; }
.home-tests .test-card-link h3 { font-size: 1.4rem; }
.home-tests .test-card-link p { color: rgb(var(--c-muted)); font-size: .92rem; }
.home-tests .test-card-link strong { margin-top: auto; padding-top: .5rem; color: rgb(var(--c-violet-600-4)); }
.home-process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.process-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 1rem; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 50%; color: rgb(var(--c-violet-600-4)); font: 1.4rem var(--lh-serif); font-size-adjust: 0.46; }
.home-process .lh-card p, .featured-grid p { color: var(--lh-muted); font-size: .95rem; }
.rabbitry-program + .rabbitry-program { border-top: 1px solid rgb(var(--c-violet-300-2)); padding-top: 1.1rem; margin-top: 1.1rem; }
.haven-help { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.haven-help h2 { font-size: 1.7rem; }
.home-assurance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.home-assurance h3 { font-size: 1.4rem; }
.home-assurance p { color: var(--lh-muted); font-size: .92rem; margin-bottom: .35rem; }
.home-assurance a { font-size: .85rem; }
@media (min-width: 981px) {
  .haven-welcome { padding: 1.6rem 1.8rem; }
  .haven-welcome h1 { font-size: clamp(3.1rem,4.5vw,4.65rem); margin-bottom: .65rem; }
  .haven-welcome .moon-divider { margin-block: .65rem; }
  .haven-welcome .moon-lead { font-size: 1.17rem; }
  .haven-welcome .moon-actions { margin-top: 1rem; }
  .haven-triad { margin-top: 1.8rem; }
  .haven-path > img { height: 230px; }
  .haven-path-copy { padding: 1rem; }
  .haven-path h2 { font-size: 2.2rem; }
  .haven-seal > img { width: min(85%,260px); }
}
.haven-seal > img, .brand-logo, .footer-logo { filter: saturate(.58) drop-shadow(0 0 8px rgb(var(--c-violet-400-9) / 0.4392)); }
@media (min-width: 1700px) { .page-main { width: min(1340px, calc(100% - 24vw)); } }
@media (max-width: 1180px) { .site-header { gap: .6rem; } .main-nav > a,.nav-dropdown > summary { padding-inline: .5rem; font-size: .83rem; } .brand-title { font-size: 1.65rem; } .brand-logo { width: 49px; height: 49px; } .main-nav .nav-order { margin-left: .25rem; } .page-main { width: calc(100% - 10vw); } }
@media (max-width: 980px) {
  .site-header { min-height: 76px; padding: .65rem 1.2rem; }
  .mobile-menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 6px; background: rgb(var(--c-ink)); color: rgb(var(--c-violet-100-2)); padding: .6rem .8rem; }
  .menu-icon { display: grid; gap: 4px; width: 17px; }
  .menu-icon i { height: 1px; background: currentColor; }
  .main-nav { display: none; position: absolute; top: 100%; right: 0; width: min(380px,100vw); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 1rem; background: rgb(var(--c-bg-2)); border: 1px solid rgb(var(--c-violet-400-4)); box-shadow: -15px 25px 45px rgb(var(--c-black) / 0.4667); z-index: 2; }
  .mobile-nav-open .main-nav { display: flex; flex-direction: column; align-items: stretch; }
  .main-nav > a, .nav-dropdown > summary { font-size: 1rem; min-height: 48px; padding: .8rem; }
  .nav-dropdown-panel { position: static; width: 100%; max-height: none; margin-bottom: .5rem; box-shadow: none; }
  .main-nav .nav-order { margin: .7rem 0; }
  .mobile-nav-open .mobile-nav-overlay:not([hidden]) { display: block; position: fixed; inset: 76px 0 0; z-index: 1; border: 0; background: rgb(var(--c-violet-900) / 0.549); }
  html.mobile-nav-open { overflow: hidden; }
  .page-main { width: calc(100% - 3rem); margin-top: 2rem; }
  .moon-stars > .moon-star { display: none; }
  .moon-stars > .moon-star:nth-child(1), .moon-stars > .moon-star:nth-child(4) { display: block; top: 20%; width: 9px; height: 9px; }
  .moon-stars > .moon-star:nth-child(1) { left: .1%; }
  .moon-stars > .moon-star:nth-child(4) { right: .1%; top: 63%; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 2rem; }
  .footer-social { grid-column: 1/-1; justify-content: center; }
  .lh-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-tests .lh-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .haven-triad { gap: .8rem; }
  .haven-seal p { font-size: .9rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  body { font-size: 16px; }
  .moon-scene { background: radial-gradient(ellipse at 50% 0,rgb(var(--c-violet-700-3)),rgb(var(--c-night)) 70%); }
  .page-main { width: calc(100% - 1.35rem); margin: 1.35rem auto 2.5rem; }
  .page-shell { border-width: 3px; padding: 1.65rem .85rem 1.1rem; border-radius: 9px; box-shadow: 0 0 0 1px rgb(var(--c-violet-300-2)),0 0 0 3px rgb(var(--c-bg-2)); }
  .page-shell::before, .page-shell::after, .moon-panel::before, .moon-panel::after { width: 30px; height: 30px; }
  .brand-title { font-size: 1.7rem; }
  .brand-tagline { font-size: .65rem; }
  .brand-logo { width: 47px; height: 47px; }
  .brand { gap: .6rem; }
  .site-header { padding-inline: .85rem; }
  .moon-actions, .lh-actions { gap: .65rem; }
  .moon-actions > a, .lh-actions > a { flex: 1 1 150px; }
  .lh-card-grid, .featured-grid, .home-process-grid { grid-template-columns: 1fr; }
  .home-assurance { grid-template-columns: 1fr; }
  .haven-welcome { padding: 1.8rem 1rem; }
  .haven-welcome h1 { font-size: clamp(2.3rem,8.9vw,3.6rem); }
  .haven-welcome .moon-kicker { font-size: .65rem; }
  .haven-triad { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 1.7rem .2rem 1.2rem; }
  .haven-seal { display: none; }
  .haven-path > img { height: 195px; object-position: 50% 25%; }
  .haven-path-copy { padding: 1rem .6rem; }
  .haven-path h2 { font-size: 1.6rem; }
  .haven-path p { font-size: .84rem; }
  .haven-path .path-action { font-size: .8rem; }
  .haven-research { padding: 1.1rem .9rem; gap: .8rem; }
  .haven-research h2 { font-size: 1.65rem; }
  .haven-research p { font-size: .85rem; }
  .research-glyph { width: 28px; flex-basis: 28px; }
  .haven-section { margin-top: 2rem; }
  .home-tests .lh-card-grid { gap: .8rem; }
  .home-tests .test-card-link { padding: .9rem; }
  .home-tests .test-card-link img { height: 120px; }
  .home-tests .test-card-link h3 { font-size: 1.17rem; }
  .home-tests .test-card-link p { font-size: .84rem; }
  .haven-help { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.7rem 1.3rem; }
  .footer-brand { justify-content: center; }
  .footer-links a { font-size: .85rem; min-height: 44px; }
  .footer-social { grid-column: auto; }
  .footer-text { grid-column: auto; }
  .moon-table-scroll { border: 1px solid rgb(var(--c-violet-400-4)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .moon-star { opacity: .65; transform: none; }
}
@media print {
  html, body { background: rgb(var(--c-pure-white)) !important; color: rgb(var(--c-black)) !important; }
  .site-header,.site-footer,.moon-scene,.moon-stars,.skip-link,.moon-portal-nav,.no-print { display: none !important; }
  .page-main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .page-shell { background: rgb(var(--c-pure-white)) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .page-shell::before, .page-shell::after, .moon-panel::before, .moon-panel::after { display: none; }
  .moon-table-scroll { overflow: visible; border: 0; }
  .moon-table-scroll > table { min-width: 0; }
  .btn,.btn-primary,.btn-secondary { box-shadow: none; }
  a { color: rgb(var(--c-black)); }
}

/* Notices the site raises for you.

   The views raise these 139 times and nothing was showing them, so a
   confirmation like "Order marked samples received" was written and thrown
   away. They read as a calm note at the top of the page, with the colour
   carrying the tone and the wording carrying the meaning. */
.site-messages {
  width: min(100%, 980px);
  margin: 0 auto 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.site-message {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--lh-border);
  border-left: 4px solid var(--lh-accent);
  border-radius: 10px;
  background: var(--lh-surface-soft);
  color: var(--lh-ink);
  font-weight: 700;
  line-height: 1.5;
}

.site-message.is-success { border-left-color: rgb(var(--c-green-500)); }
.site-message.is-warning { border-left-color: rgb(var(--c-amber-400-3)); }
.site-message.is-error   { border-left-color: rgb(var(--c-red-600)); }

/* The lab-is-paused notice, shown once per browser session. */
.testing-pause-dialog {
  max-width: min(92vw, 520px);
  padding: 1.4rem;
  border: 1px solid var(--lh-border);
  border-radius: 16px;
  background: var(--lh-surface-soft);
  color: var(--lh-ink);
  box-shadow: var(--lh-shadow);
}

.testing-pause-dialog::backdrop {
  background: rgb(var(--c-night) / 0.8);
}

.testing-pause-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.testing-pause-text h2 {
  margin: 0 0 0.6rem;
  color: var(--lh-ink);
  font-family: var(--lh-serif); font-size-adjust: 0.46;
}

.testing-pause-text p {
  margin: 0;
  color: var(--lh-ink);
  line-height: 1.6;
}

.testing-pause-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--lh-border);
  border-radius: 999px;
  background: var(--lh-surface);
  color: var(--lh-ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* The picture of the smallest usable blood spot, inside the collection steps. */
.rabbit-amount-figure {
  margin: 0.85rem 0 0;
  padding: 0;
}

.rabbit-amount-figure img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
}

.rabbit-amount-figure figcaption {
  margin-top: 0.45rem;
  color: var(--lh-muted);
  font-weight: 700;
}

/* The way into the guided walkthrough, at the top of the order page. */
.walkthrough-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin: 1rem 0 0;
}

.walkthrough-entry span {
  color: var(--lh-muted);
  font-weight: 650;
}
