/* The Medics Inc. — shared stylesheet
   Designed for WCAG 2.2 AAA as a target: 7:1 text contrast, visible focus,
   44px targets, no motion by default, readable line length and spacing. */

:root {
  --navy: #0d2740;
  --ink: #14202b;
  --muted: #3a4955;
  --blue: #0f4c8a;
  --blue-logo: #2f6db4;
  --green: #1b5e20;
  --green-logo: #4a9a3a;
  --paper: #ffffff;
  --soft: #f1f6f8;
  --tint-green: #e3f2e1;
  --tint-blue: #e2edf9;
  --line: #5b6b78;
  --line-soft: #c7d3dc;
  --lt-green: #b7e4b0;
  --lt-blue: #b5d3f5;
  --on-dark-muted: #d4e0ea;
  --error: #8f1d1d;
  --error-bg: #fdeeee;
  --focus: #0d2740;
  --max: 1160px;
  --measure: 68ch;
  --font-size: 18px;
}

/* Display options (user-selectable) */
html[data-text="large"] { --font-size: 21px; }
html[data-text="xlarge"] { --font-size: 24px; }
html[data-spacing="wide"] body { line-height: 1.9; letter-spacing: .02em; word-spacing: .08em; }
html[data-spacing="wide"] p { margin-bottom: 1.6em; }

html[data-theme="dark"] .tag.commercial { color: #b7e4b0; }
html[data-theme="contrast"] .tag.commercial { color: #8cff8c; }
html[data-theme="dark"] {
  --ink: #f2f6f9; --muted: #d4e0ea; --paper: #0b1824; --soft: #10263a; --blue: #b5d3f5; --green: #b7e4b0;
  --tint-green: #16301f; --tint-blue: #14304a; --line: #9fb2c1; --line-soft: #34495a; --navy: #f2f6f9;
  --focus: #ffd54a; --error: #ffb4b4; --error-bg: #3a1414; color-scheme: dark;
}
html[data-theme="contrast"] {
  --ink: #ffffff; --muted: #ffffff; --paper: #000000; --soft: #000000; --blue: #ffff00; --green: #8cff8c;
  --tint-green: #000000; --tint-blue: #000000; --line: #ffffff; --line-soft: #ffffff; --navy: #ffffff;
  --focus: #ffff00; --error: #ffb4b4; --error-bg: #000000; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--font-size); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
p { margin: 0 0 1.2em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: .5em; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.25; color: var(--navy); margin: 0 0 .6em; max-width: 30ch; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.4em; }
h3 { font-size: 1.25rem; margin-top: 1.2em; }
h4 { font-size: 1.05rem; }
.section > .container > h2:first-child, .section-head h2, .card h2, .card h3, .grid h3 { margin-top: 0; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
strong { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2em 0; }

/* Focus: double ring so it stays visible on any background */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--paper); border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: #ffd54a; box-shadow: 0 0 0 6px #0d2740; }
html[data-theme="dark"] .dark :focus-visible, html[data-theme="contrast"] .dark :focus-visible { box-shadow: 0 0 0 6px #000; }

.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: #0d2740; color: #fff; padding: .8rem 1.2rem; min-height: 44px; font-weight: 700; border-radius: 0 0 4px 4px; }
.skip-link:focus { top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header (not sticky, so focused items are never covered) */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.nav-wrap { display: flex; align-items: center; gap: 1rem; padding-block: .75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; color: var(--navy); font-weight: 800; letter-spacing: .1em; font-size: .9rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 6px; }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.menu-toggle, .tool-btn { min-height: 44px; min-width: 44px; padding: .4rem .9rem; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; border-radius: 4px; }
.menu-toggle { display: none; }
.tool-btn[aria-expanded="true"] { background: var(--soft); }

/* Tablet and phone: one menu panel */
.nav-mobile { flex-basis: 100%; border-top: 1px solid var(--line-soft); }
.nav-links { display: flex; flex-wrap: wrap; gap: .1rem .15rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.nav-links li { margin: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .65rem; font-size: .82rem; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--blue-logo); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--green-logo); font-weight: 800; }
@media (max-width: 999px) {
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding-top: .5rem; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
}

/* Desktop: one row with dropdown groups and a Contact button */
.nav-desktop { display: none; }
.nav-primary { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.nav-primary > li { position: relative; margin: 0; }
.nav-link, .sub-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .25rem .95rem; font: inherit; font-size: .95rem; font-weight: 650; color: var(--ink); background: none; border: 0; border-bottom: 3px solid transparent; text-decoration: none; cursor: pointer; }
.nav-link:hover, .sub-toggle:hover { border-bottom-color: var(--blue-logo); }
.nav-link[aria-current="page"], .sub-toggle.is-current { border-bottom-color: var(--green-logo); font-weight: 800; }
.sub-toggle[aria-expanded="true"] { background: var(--soft); border-bottom-color: var(--blue-logo); }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 1.4rem; margin-left: .6rem; font-size: .95rem; font-weight: 750; color: #fff; background: var(--blue); border: 2px solid var(--blue); border-radius: 4px; text-decoration: none; }
.nav-cta:hover { background: #0b3a6b; border-color: #0b3a6b; }
.nav-cta[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--green-logo); }
.sub { position: absolute; left: 0; top: 100%; z-index: 50; min-width: 17.5rem; margin: 0; padding: .5rem; list-style: none; background: var(--paper); border: 2px solid var(--line); border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.18); max-width: none; }
.sub[hidden] { display: none; }
.sub li { margin: 0; }
.sub a { display: flex; align-items: center; min-height: 44px; padding: .35rem .85rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 4px; }
.sub a:hover { background: var(--tint-blue); }
.sub a[aria-current="page"] { font-weight: 800; background: var(--tint-green); }
html[data-theme="dark"] .nav-cta { color: #0b1824; }
html[data-theme="contrast"] .nav-cta { background: #000; color: #ffff00; border-color: #ffff00; }
@media (min-width: 1000px) {
  .nav-wrap { flex-wrap: nowrap; }
  .nav-desktop { display: block; margin-left: auto; }
  .nav-mobile { display: none; }
  .header-tools { margin-left: 0; }
}

/* Display options panel */
.display-panel { background: var(--soft); border-block: 1px solid var(--line-soft); padding-block: 1rem; }
.display-panel[hidden] { display: none; }
.display-panel fieldset { border: 0; padding: 0; margin: 0 1.5rem 0 0; display: inline-block; vertical-align: top; }
.display-panel legend { font-weight: 700; padding: 0; margin-bottom: .25rem; }
.display-panel label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-right: .9rem; cursor: pointer; }
.display-panel input { width: 1.4rem; height: 1.4rem; accent-color: var(--blue); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; font: inherit; font-weight: 750; font-size: .95rem; border: 2px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; border-radius: 4px; cursor: pointer; }
.button:hover { background: #0b3a6b; border-color: #0b3a6b; }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: var(--tint-blue); }
.dark .button, .hero .button { background: #fff; color: #0d2740; border-color: #fff; }
.dark .button:hover, .hero .button:hover { background: var(--lt-blue); border-color: var(--lt-blue); }
.dark .button.secondary, .hero .button.secondary { background: transparent; color: #fff; border-color: #fff; }
.dark .button.secondary:hover, .hero .button.secondary:hover { background: rgba(255,255,255,.16); }
html[data-theme="contrast"] .button, html[data-theme="contrast"] .hero .button, html[data-theme="contrast"] .dark .button { background: #000; color: #ffff00; border-color: #ffff00; }
html[data-theme="dark"] .button, html[data-theme="dark"] .hero .button, html[data-theme="dark"] .dark .button { color: #0b1824; }
html[data-theme="dark"] .button.secondary, html[data-theme="dark"] .hero .button.secondary, html[data-theme="dark"] .dark .button.secondary { color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }

/* Hero and page headers */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero h1, .hero h2, .hero h3, .dark h1, .dark h2, .dark h3 { color: #fff; }
.hero-inner { position: relative; padding-block: 5rem 5.5rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; }
.hero-art { width: 100%; opacity: .95; }
.hero .lead { color: #e8eff5; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; padding-block: 3.5rem; } .hero-art { max-width: 420px; } }
.hero, .dark { background: #0d2740; color: #fff; }
html[data-theme="dark"] .hero, html[data-theme="dark"] .dark { background: #071320; }
html[data-theme="contrast"] .hero, html[data-theme="contrast"] .dark { background: #000; border-block: 2px solid #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--green); margin: 0 0 .75rem; }
.hero .eyebrow, .dark .eyebrow { color: var(--lt-green); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.dark .lead, .dark p, .dark li { color: #eaf1f6; }
.dark a:not(.button) { color: var(--lt-blue); }
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line-soft); padding-block: 3.5rem 3rem; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { display: inline-block; min-height: 24px; }

/* Sections */
.section { padding-block: 4rem; }
.section.soft { background: var(--soft); }
.section.dark { padding-block: 4rem; }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.dark .section-head p { color: #eaf1f6; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }
.art-panel { background: var(--soft); border: 1px solid var(--line-soft); border-radius: 8px; padding: 1.5rem; display: grid; place-items: center; }
.art-panel svg { width: min(100%, 420px); height: auto; background: #0d2740; border-radius: 6px; padding: .5rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.four, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.four, .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 2px solid var(--line-soft); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.section.soft .card { background: var(--paper); }
.tag { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .7rem; border-radius: 99px; margin-bottom: .9rem; border: 2px solid currentColor; }
.tag.commercial { color: #14481a; background: var(--tint-green); }
.tag.research { color: var(--blue); background: var(--tint-blue); }
.callout { border-left: 6px solid var(--green-logo); background: var(--tint-green); padding: 1.1rem 1.4rem; border-radius: 0 6px 6px 0; margin: 1.8rem 0; max-width: var(--measure); color: var(--ink); }
.callout.blue { border-left-color: var(--blue-logo); background: var(--tint-blue); }
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: .25rem; }
.prose { max-width: var(--measure); }
.prose h2:first-child { margin-top: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.stat { border: 2px solid rgba(255,255,255,.55); border-radius: 8px; padding: 1.25rem; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 1.5rem; color: #fff; }
.stat span { color: #eaf1f6; }
html[data-theme="dark"] .stat, html[data-theme="contrast"] .stat { border-color: #fff; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--green); }
.job { border: 2px solid var(--line-soft); border-radius: 8px; padding: 1.75rem; margin-bottom: 1.5rem; background: var(--paper); }
.job h3 { margin-top: 0; max-width: none; }
.job h4 { margin: 1.2rem 0 .4rem; max-width: none; }

/* Forms */
.form-card { background: var(--soft); border: 2px solid var(--line-soft); border-radius: 8px; padding: 1.75rem; max-width: 760px; }
.field { margin-bottom: 1.4rem; position: relative; }
.field label, .field .label, fieldset legend.label { display: block; font-weight: 700; margin-bottom: .3rem; }
.req { color: var(--error); font-weight: 800; }
.hint { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .4rem; max-width: 60ch; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], select, textarea, input[type="file"] {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 4px;
}
textarea { min-height: 10rem; resize: vertical; }
input[type="file"] { padding: .55rem; }
input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin: .2rem .6rem 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.check { display: flex; align-items: flex-start; }
.check label { margin: 0; font-weight: 500; min-height: 44px; }
.phone-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, .8fr); gap: .75rem; }
@media (max-width: 640px) { .phone-row { grid-template-columns: 1fr; } }
.phone-preview { font-size: .9rem; color: var(--muted); margin-top: .4rem; min-height: 1.5em; }
[aria-invalid="true"] { border-color: var(--error); border-width: 3px; background: var(--error-bg); }
.error-text { display: block; color: var(--error); font-weight: 700; margin-top: .35rem; }
.error-text::before { content: "Error: "; }
.error-summary { border: 3px solid var(--error); background: var(--error-bg); color: var(--ink); padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1.5rem; }
.error-summary h2 { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--error); max-width: none; }
.error-summary ul { margin: 0; }
.form-status { margin-bottom: 1.5rem; }
.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.status-box { padding: 1rem 1.25rem; border-radius: 6px; border: 3px solid; }
.status-box.ok { border-color: var(--green); background: var(--tint-green); color: var(--ink); }
.status-box.fail { border-color: var(--error); background: var(--error-bg); color: var(--ink); }
.status-box.warn { border-color: #6b4e00; background: #fff4d1; color: #1a1400; }
html[data-theme="dark"] .status-box.warn, html[data-theme="contrast"] .status-box.warn { background: #2b2200; color: #fff; border-color: #ffd54a; }
.status-box strong { display: block; }

/* Combobox */
.combo { position: relative; }
.combo input { padding-right: 2.6rem; }
.combo-toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 2px); max-height: 16rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; background: var(--paper); border: 2px solid var(--line); border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.2); max-width: none; }
.combo-list[hidden] { display: none; }
.combo-list li { margin: 0; padding: .65rem .8rem; min-height: 44px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--blue); color: #fff; }
html[data-theme="contrast"] .combo-list li[aria-selected="true"] { background: #ffff00; color: #000; }
.combo-list li.none { cursor: default; color: var(--muted); }

/* Footer */
.site-footer { background: #0d2740; color: #eaf1f6; padding-block: 3.5rem 2rem; font-size: .92rem; }
html[data-theme="dark"] .site-footer { background: #071320; }
html[data-theme="contrast"] .site-footer { background: #000; border-top: 3px solid #fff; }
.site-footer h2 { font-family: inherit; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lt-green); margin: 0 0 .75rem; max-width: none; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.site-footer p { color: #eaf1f6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; }
.footer-brand img { width: 52px; height: 52px; }
.compliance { border-top: 1px solid rgba(255,255,255,.35); margin-top: 2rem; padding-top: 1.75rem; }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1rem 0 1.25rem; max-width: none; }
@media (max-width: 560px) { .badges { grid-template-columns: 1fr; } }
.badge { height: 100%; border: 2px solid #b5d3f5; border-radius: 6px; padding: .8rem .95rem; margin: 0; }
.badge a { display: flex; gap: .9rem; align-items: flex-start; text-decoration: none; min-height: 44px; }
.badge a:hover .badge-name { text-decoration: underline; }
.badge-name { display: block; font-weight: 800; letter-spacing: .06em; color: #fff; }
.badge-text { display: block; font-size: .85rem; color: #d4e0ea; margin-top: .25rem; }
.footer-note { font-size: .85rem; color: #d4e0ea; max-width: 90ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.35); margin-top: 1.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #d4e0ea; }
.footer-bottom p { margin: 0; max-width: none; color: #d4e0ea; }

/* Tables */
table { border-collapse: collapse; width: 100%; max-width: 900px; margin-bottom: 1.5rem; }
th, td { border: 1px solid var(--line); padding: .7rem .85rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--soft); }
caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }

.notice { border: 2px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; background: var(--soft); max-width: var(--measure); margin: 1.5rem 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .skip-link, .display-panel { display: none; } body { font-size: 12pt; } a { color: #000; } }
@media (forced-colors: active) { .button, .card, .badge { border: 2px solid CanvasText; } }

.hint-inline { font-weight: 400; color: var(--muted); font-size: .9em; }

.tool-btn.icon-btn { width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.tool-btn.icon-btn svg { display: block; }

.badge-icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 4px 6px; min-width: 56px; height: 56px; }
.badge-icon img { height: 48px; width: auto; display: block; }
.badge-body { min-width: 0; }

/* CV upload */
.dropzone { border: 2px dashed var(--line); border-radius: 8px; background: var(--paper); padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.dropzone.over { background: var(--tint-blue); border-style: solid; border-color: var(--blue); }
.dropzone input[type="file"] { width: auto; flex: 1 1 10rem; min-width: 0; max-width: 100%; border: 0; padding: 0; min-height: 48px; background: transparent; }
.dropzone input[type="file"]::file-selector-button { min-height: 44px; margin-right: .9rem; padding: .5rem 1.1rem; font: inherit; font-weight: 750; color: var(--blue); background: transparent; border: 2px solid var(--blue); border-radius: 4px; cursor: pointer; }
.dropzone input[type="file"]::file-selector-button:hover { background: var(--tint-blue); }
.drop-text { color: var(--muted); font-size: .92rem; }
.file-line { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-top: .5rem; }
.file-line .hint { margin: 0; }
.link-button { min-height: 44px; padding: .25rem .5rem; background: none; border: 0; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-button[hidden] { display: none; }
[aria-invalid="true"] .dropzone, .dropzone:has(input[aria-invalid="true"]) { border-color: var(--error); border-width: 3px; background: var(--error-bg); }
.dropzone input[aria-invalid="true"] { border: 0; background: transparent; }
.progress { margin: 0 0 1.25rem; }
.progress[hidden] { display: none; }
.progress-bar { height: 14px; border: 2px solid var(--line); border-radius: 99px; background: var(--paper); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--blue); }
.progress-label { display: block; margin-top: .4rem; font-weight: 650; }
/* phone row: keep the three inputs on one line */
.phone-row .hint { min-height: 2.9em; }
.phone-row .field { margin-bottom: .6rem; }
