/* ================================================================
   LabTatva — Public Directory Design System
   Palette: Deep Teal-Amber with clean whites
   ================================================================ */
:root {
  --ink:        #111827;
  --ink-soft:   #374151;
  --muted:      #6B7280;
  --muted-lite: #9CA3AF;
  --line:       #E5E7EB;
  --line-soft:  #F3F4F6;
  --surface:    #FFFFFF;
  --canvas:     #F9FAFB;
  --teal:       #9A4805;
  --teal-dark:  #783703;
  --teal-xdark: #5C2802;
  --teal-alpha: rgba(154, 72, 5, 0.12);
  --mint:       #FFF7ED;
  --gold:       #92400E;
  --gold-lite:  #FDE68A;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.06);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        180ms;

  font-family: "DM Sans", system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }

/* ───────────────────────────── Header ───────────────────────────────── */
.site-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 36px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.wordmark {
  color: #230B40;
  font-family: "Playfair Display", "Bodoni MT", "Didot", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  position: relative;
  text-decoration: none;
}
.wordmark span {
  color: #FBB040;
  font-weight: 700;
}
.wordmark::after {
  content: "TM";
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #FBB040;
  margin-left: 2px;
  line-height: 1;
  vertical-align: super;
  display: inline-block;
}
nav { display: flex; gap: 6px; margin-right: auto; }
nav a {
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
nav a:hover { background: var(--canvas); color: var(--ink); }
nav a.active { background: var(--teal-alpha); color: var(--teal); }

.site-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
}
.site-tools-trigger:hover,
.site-tools-trigger[aria-expanded="true"] { background: var(--canvas); color: var(--ink); }
.site-tools-trigger.active { background: var(--teal-alpha); color: var(--teal); }
.site-tools-trigger:focus-visible,
.site-tools-dropdown a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.site-tools-chevron { font-size: 18px; line-height: 1; }
.site-tools-trigger[aria-expanded="true"] .site-tools-chevron { transform: rotate(180deg); }
.site-tools-dropdown {
  position: fixed;
  z-index: 110;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.site-tools-heading { margin: 0 8px 12px; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.site-tools-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.site-tools-dropdown a { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: 14px; font-weight: 600; line-height: 1.4; }
.site-tools-dropdown a:hover { background: var(--mint); color: var(--teal-dark); }
.site-tools-dropdown .site-tools-all { margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 16px; color: var(--teal); }
@media (max-width: 620px) {
  .site-header nav .site-tools-trigger { min-height: 44px; background: var(--canvas); font-size: 12px; padding: 7px 10px; }
  .site-tools-dropdown { padding: 14px; }
  .site-tools-list { grid-template-columns: 1fr; }
}

.header-action {
  background: #FBB040;
  color: #230B40 !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(251, 176, 64, 0.35);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.header-action:hover {
  background: #FFA012;
  color: #230B40 !important;
  transform: translateY(-1px);
}

/* ───────────────────────────── Hero ─────────────────────────────────── */
.directory-hero {
  min-height: calc(88vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hero-image, .hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
/* Static fallback image — hidden once video loads */
.hero-image {
  object-fit: cover;
  object-position: center 40%;
}
.hero-image-fallback {
  /* Shown only when video is not playing */
  opacity: 1;
  transition: opacity 600ms ease;
}
.hero-video-playing .hero-image-fallback {
  opacity: 0;
  pointer-events: none;
}

/* Video background */
.hero-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 92%;
  position: absolute;
  width: 100%;
  z-index: 0;
  /* Start invisible — fade in once playing */
  opacity: 0;
  transition: opacity 800ms ease;
}
.hero-video-playing .hero-video {
  opacity: 1;
}

/* Blur layer — sits between video and gradient overlay */
.hero-blur {
  /* A full-viewport backdrop-filter forces an expensive GPU readback on
     mobile. The shade below provides the required text contrast without the
     extra compositing pass. */
  background: transparent;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

/* Gradient overlay for text legibility */
.hero-shade {
  z-index: 2;
  background: rgba(70, 26, 3, .72);
}

/* Stack hero children correctly */
.hero-image, .hero-image-fallback, .hero-shade { z-index: 3; }
.hero-image-fallback { z-index: 1; }
.hero-shade { z-index: 3; }
.hero-content { z-index: 4; position: relative; }

/* Reduced-motion: always use static image, never play video */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-blur  { display: none; }
  .hero-image-fallback { opacity: 1 !important; }
}
.hero-content {
  color: #fff;
  margin: 0 auto;
  max-width: 1120px;
  padding: 60px 24px;
  position: relative;
  text-align: left;
  width: 100%;
}
.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.hero-content .eyebrow {
  color: #FCD34D;
  display: block;
  margin: 0 0 12px 0;
  letter-spacing: 0.12em;
}
h1 {
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 14px 0;
  max-width: 960px;
  text-align: left;
}
.industry-cycle {
  color: #FCD34D;
  display: block;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 14px;
  min-height: 28px;
}
#industryCycleWord { display: inline-block; }
#industryCycleWord.is-changing { animation: word-fade 400ms var(--ease); }
@keyframes word-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen-reader-only { clip: rect(0,0,0,0); height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; white-space: nowrap; }
.hero-copy {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 32px 0;
  max-width: 860px;
  text-align: left;
  opacity: .95;
}
.hero-copy strong { color: #FCD34D; font-weight: 700; }

/* ───────────────────────────── Search Bar ───────────────────────────── */
.directory-search {
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr auto;
  max-width: 1120px;
  margin: 0;
  overflow: visible;
  position: relative;
  text-align: left;
}
.search-field {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 14px 18px 13px;
  position: relative;
  transition: background var(--dur) var(--ease);
}
.search-field:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.search-field:focus-within { background: #FAFBFF; }
.field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}
.search-field input,
.search-field select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  outline: 0;
  padding: 0;
}
.search-field input::placeholder { color: var(--muted-lite); }
.search-field select {
  cursor: pointer;
  width: 100%;
  appearance: none;
}

.search-actions {
  align-items: stretch;
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.search-button {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  min-height: 56px;
  padding: 14px 26px;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
}
.search-button:hover { background: var(--teal-dark); }

.more-filters-toggle {
  align-items: center;
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  padding: 14px 18px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.more-filters-toggle:hover,
.more-filters-toggle.active {
  background: var(--mint);
  color: var(--teal);
}
.filter-count-badge {
  background: var(--teal);
  border-radius: 20px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  padding: 2px 5px;
  text-align: center;
}

/* Advanced filters */
.advanced-filters-panel {
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding: 18px 20px 14px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: panel-reveal 200ms var(--ease) both;
}
@keyframes panel-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.advanced-filters-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
}
.adv-field {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-right: 1px solid var(--line) !important;
  padding: 10px 14px !important;
}
.adv-field:focus-within {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 2px var(--teal-alpha);
}
.panel-actions { display: flex; justify-content: flex-end; }
.compact { font-size: 12px; padding: 6px 14px !important; }

/* Autocomplete dropdown */
.autocomplete-dropdown {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  left: -1px;
  list-style: none;
  margin: 0;
  max-height: 296px;
  overflow-y: auto;
  padding: 6px 0;
  position: absolute;
  right: -1px;
  top: calc(100% + 6px);
  z-index: 2000;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.autocomplete-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  transition: background var(--dur) var(--ease);
}
.autocomplete-item:hover,
.autocomplete-item.selected {
  background: var(--mint);
}
.autocomplete-item .label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.autocomplete-item:hover .label,
.autocomplete-item.selected .label { color: var(--teal-dark); }
.autocomplete-item .sublabel {
  color: var(--muted);
  font-size: 11px;
}

/* ───────────────────────────── Results ──────────────────────────────── */
.results-section {
  margin: 0 auto;
  max-width: 1280px;
  padding: 56px 24px 80px;
}
.industry-discovery {
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  padding-bottom: 32px;
}
.industry-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.industry-heading h2 { font-size: 28px; line-height: 1.15; margin: 0; }
.industry-heading p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; max-width: 800px; text-align: right; }

.industry-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.industry-tabs::-webkit-scrollbar { display: none; }
.industry-tab {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 9px 16px;
  transition: all var(--dur) var(--ease);
}
.industry-tab .tab-icon { font-size: 15px; }
.industry-tab:hover { border-color: var(--teal); color: var(--teal); background: var(--mint); }
.industry-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.industry-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(198, 93, 6, .30);
}

.results-toolbar {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.results-toolbar h2 { font-size: 30px; line-height: 1.15; margin-bottom: 0; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 3px; }
.toolbar-right { text-align: right; }

/* Filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-chip {
  align-items: center;
  background: var(--mint);
  border: 1px solid #FBBF24;
  border-radius: 100px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  padding: 5px 10px 5px 12px;
}
.chip-remove {
  align-items: center;
  background: rgba(198,93,6,.15);
  border: 0;
  border-radius: 50%;
  color: var(--teal-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 18px;
  transition: background var(--dur) var(--ease);
}
.chip-remove:hover { background: rgba(198,93,6,.30); }

/* Lab cards grid */
.labs-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
}
.lab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lab-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 28px rgba(198,93,6,.14), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-3px);
}
.lab-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  text-decoration: none;
}
.card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.topline-left {
  align-items: center;
  display: flex;
  gap: 12px;
}
.lab-select-wrap {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  user-select: none;
}
.lab-select-checkbox {
  accent-color: var(--teal);
  cursor: pointer;
  height: 16px;
  width: 16px;
}
.lab-select-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--dur) var(--ease);
}
.lab-select-wrap:hover .lab-select-label { color: var(--teal); }
.lab-select-wrap.is-unavailable { cursor: not-allowed; }
.lab-select-wrap.is-unavailable .lab-select-label { color: var(--muted); }
.lab-select-checkbox:disabled { cursor: not-allowed; }
.lab-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
}
.lab-card.is-selected .lab-select-label {
  color: var(--teal-dark);
  font-weight: 700;
}

.expired-badge {
  align-items: center;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  color: #B45309;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  padding: 2px 8px;
}
.lab-validity.is-expired {
  color: #92400E;
  font-weight: 600;
}

/* Floating Batch RFQ Drawer */
.batch-rfq-drawer {
  background: var(--ink);
  bottom: 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  color: #fff;
  left: 0;
  padding: 16px 24px;
  position: fixed;
  right: 0;
  z-index: 1000;
  animation: drawer-slide-up 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawer-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.batch-drawer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
}
.batch-drawer-left {
  align-items: center;
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.batch-count-badge {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
}
.batch-info { display: flex; flex-direction: column; gap: 2px; }
.batch-title { font-size: 15px; font-weight: 700; }
.batch-subtitle { color: rgba(255,255,255,.7); font-size: 12px; }

.batch-drawer-chips {
  display: flex;
  gap: 8px;
  max-width: 520px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.batch-drawer-chips::-webkit-scrollbar { display: none; }
.batch-chip {
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}
.batch-chip button {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.batch-chip button:hover { color: #fff; }

.batch-drawer-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.batch-clear-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.batch-clear-btn:hover { color: #fff; text-decoration: underline; }
.batch-submit-btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}
.card-body { flex: 1; }
.lab-name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  margin-top: 0;
}
.lab-location {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 5px;
  margin-bottom: 18px;
}
.lab-facts {
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
}
.fact-row { display: flex; gap: 8px; }
.fact-row dt { color: var(--muted-lite); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; min-width: 90px; text-transform: uppercase; }
.fact-row dd { color: var(--ink-soft); font-size: 12px; margin: 0; }
.card-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
}
.review-summary { color: var(--muted); font-size: 12px; }
.view-listing-cta {
  align-items: center;
  color: var(--teal);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  transition: gap var(--dur) var(--ease);
}
.lab-card:hover .view-listing-cta { gap: 8px; }

/* Loading skeleton */
.labs-skeleton {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.skeleton-card {
  background: linear-gradient(90deg, var(--line-soft) 25%, #EDEFF1 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  height: 280px;
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.empty-results {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 50px 36px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  max-width: 640px;
}
.empty-icon { font-size: 36px; margin-bottom: 4px; }
.empty-results h2 { font-size: 26px; margin-bottom: 0; }
.empty-results p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* Pagination */
.pagination-bar {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
}
.pagination-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  transition: all var(--dur) var(--ease);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--mint);
}
.pagination-btn:disabled { cursor: not-allowed; opacity: .4; }
.pagination-info { color: var(--muted); font-size: 14px; min-width: 120px; text-align: center; }

/* ───────────────────────────── Buttons ──────────────────────────────── */
.primary-button {
  background: var(--teal);
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.secondary-button {
  background: var(--surface);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--teal);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.secondary-button:hover { background: var(--mint); }

/* ───────────────────────────── How It Works ─────────────────────────── */
.process-section {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1280px;
  padding: 72px 24px 80px;
}
.section-intro { margin: 0 auto; max-width: 720px; text-align: center; }
.section-intro h2 { font-size: 32px; margin-bottom: 10px; }
.process-grid-4col {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
}
@media (max-width: 992px) {
  .process-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .process-grid-4col {
    grid-template-columns: 1fr;
  }
}
.how-it-works-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.how-it-works-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.how-it-works-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 8px;
}
.how-it-works-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* ───────────────────────────── High-Converting Revenue Section for Labs ─────────────────────────── */
.lab-owner-revenue-section {
  background: linear-gradient(135deg, #230B40 0%, #3B1266 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  margin: 0 auto 80px;
  max-width: 1160px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(35, 11, 64, 0.3);
  text-align: center;
}
.lab-owner-revenue-section .eyebrow {
  color: #FCD34D;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lab-owner-revenue-section h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 14px 0;
}
.lab-owner-subtitle {
  color: #E5E7EB;
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 40px auto;
}
.owner-revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}
@media (max-width: 900px) {
  .owner-revenue-grid {
    grid-template-columns: 1fr;
  }
}
.owner-revenue-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.owner-revenue-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 176, 64, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.revenue-card-badge {
  display: inline-block;
  background: #FBB040;
  color: #230B40;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.owner-revenue-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}
.owner-revenue-card p {
  color: #D1D5DB;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.owner-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.owner-primary-btn {
  background: #FBB040;
  color: #230B40;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: 0 4px 14px rgba(251, 176, 64, 0.35);
}
.owner-primary-btn:hover {
  background: #FFA012;
  transform: translateY(-2px);
}
.owner-secondary-link {
  color: #FCD34D;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}
.owner-secondary-link:hover {
  color: #FFFFFF;
}
.owner-trust-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #E5E7EB;
  font-weight: 600;
}

/* ───────────────────────────── Footer ───────────────────────────────── */
.site-footer {
  background: #0B0F17;
  color: #9CA3AF;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 0 28px;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}
.footer-col .wordmark { color: #FFF; font-size: 24px; display: inline-block; margin-bottom: 2px; }
.site-footer > .wordmark { color: #FFF; }
.brand-subtext {
  font-size: 13px;
  font-weight: 700;
  color: #FBB040;
  letter-spacing: 0.04em;
  margin-top: 2px;
  margin-bottom: 14px;
}
.brand-tagline { font-size: 13px; line-height: 1.6; color: #9CA3AF; margin-bottom: 16px; }
.footer-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.geo-trust-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
}
.bengaluru-prominent {
  font-size: 13px;
  font-weight: 600;
  color: #F3F4F6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.love-heart {
  animation: love-breathe 2.8s ease-in-out infinite;
  display: inline-block;
  line-height: 1;
  transform-origin: center;
  will-change: transform;
}
@keyframes love-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .love-heart { animation: none; }
}
.footer-title {
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #9CA3AF;
  font-size: 13px;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--teal); }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}
.disclaimer-text {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 10px;
}
.disclaimer-one-line {
  font-size: clamp(9px, .72vw, 11px);
  letter-spacing: -.01em;
  max-width: none;
  white-space: nowrap;
}
.copyright-text {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
}
.single-line-disclaimer {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ───────────────────────────── Profile Page ─────────────────────────── */
.profile-page {
  margin: 0 auto;
  max-width: 1280px;
  min-height: calc(100vh - 200px);
  padding: 36px 24px 80px;
}
.back-link {
  align-items: center;
  color: var(--teal);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 32px;
  transition: gap var(--dur) var(--ease);
}
.back-link:hover { gap: 10px; }
.preview-notice {
  background: var(--mint);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin: -10px 0 28px;
  max-width: 760px;
  padding: 12px 16px;
}
.profile-loading { color: var(--muted); font-size: 15px; padding: 48px 0; }
.profile-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 36px;
  justify-content: space-between;
  padding-bottom: 36px;
}
.profile-header h1 { font-size: 40px; margin-bottom: 10px; max-width: 720px; }
.profile-location, .muted-copy { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.profile-actions { align-items: end; display: flex; flex-direction: column; gap: 12px; }
.large-score {
  background: var(--mint);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}
.profile-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
  padding-top: 32px;
}
.profile-main { display: grid; gap: 20px; }
.profile-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-gallery img {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: block;
  object-fit: cover;
  width: 100%;
}
.profile-gallery img:only-child { grid-column: span 3; max-width: 560px; }
.profile-panel, .sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
}
.profile-panel h2, .sidebar-panel h2 { font-size: 22px; margin-bottom: 18px; }
.profile-panel > p:not(.eyebrow):not(.provenance-note),
.sidebar-panel > p:not(.eyebrow):not(.provenance-note) { color: var(--muted); line-height: 1.6; }
.profile-panel > a { color: var(--teal); font-size: 14px; font-weight: 700; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.detail-list div { border-bottom: 1px solid var(--line); display: grid; gap: 6px; padding: 14px 14px 14px 0; }
.detail-list dt { color: var(--muted-lite); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-list dd { color: var(--ink-soft); font-size: 14px; margin: 0; }
.provenance-note {
  border-left: 2px solid var(--gold-lite);
  color: #6B7280;
  font-size: 12px;
  line-height: 1.55;
  margin: 20px 0 0;
  padding-left: 12px;
}
.profile-sidebar { align-content: start; display: grid; gap: 20px; }
.sidebar-panel { padding: 22px; }
.score-components {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
}
.methodology-link {
  color: var(--teal);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 18px;
}
.operating-hours {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 14px;
}
.operating-hours div { display: flex; font-size: 13px; gap: 12px; justify-content: space-between; }
.operating-hours dt { color: var(--muted); }
.operating-hours dd { margin: 0; text-align: right; }
.map-panel iframe {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: block;
  height: 210px;
  margin-top: 14px;
  width: 100%;
}
.map-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 12px 0; }
.map-link { color: var(--teal); font-size: 13px; font-weight: 700; }
.review-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
}
.review-item { border-bottom: 1px solid var(--line); display: grid; gap: 7px; padding-bottom: 14px; }
.review-item strong { font-size: 14px; }
.review-item p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.review-item span { color: var(--teal); font-size: 12px; font-weight: 700; }
.operating-facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}
.operating-facts div {
  background: var(--canvas);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 16px;
}
.operating-facts strong { font-size: 20px; line-height: 1.1; }
.operating-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.certification-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
}
.certification-list div { display: grid; gap: 3px; }
.certification-list strong { font-size: 14px; }
.certification-list span { color: var(--muted); font-size: 12px; }
.profile-page .empty-results { margin-top: 20px; }

/* ───────────────────────────── Methodology ──────────────────────────── */
.methodology-page { margin: 0 auto; max-width: 1020px; min-height: calc(100vh - 190px); padding: 48px 24px 80px; }
.methodology-heading { max-width: 720px; }
.methodology-heading h1 { font-size: 44px; margin-bottom: 14px; }
.methodology-heading > p:not(.eyebrow), .methodology-boundary p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.65; }
.methodology-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; }
.methodology-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); border-top: 3px solid var(--teal); padding: 26px; }
.methodology-grid span { color: var(--teal); font-size: 26px; font-weight: 700; }
.methodology-grid h2, .methodology-boundary h2 { font-size: 22px; margin: 16px 0 10px; }
.methodology-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.methodology-boundary { border-top: 1px solid var(--line); margin-top: 48px; max-width: 720px; padding-top: 34px; }

/* ───────────────────────────── RFQ/Forms ────────────────────────────── */
.rfq-page { margin: 0 auto; max-width: 1280px; min-height: calc(100vh - 190px); padding: 36px 24px 80px; }
.rfq-layout { display: grid; gap: 60px; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.1fr); }
.rfq-intro { padding-top: 18px; }
.rfq-intro h1 { font-size: 40px; line-height: 1.1; margin-bottom: 16px; max-width: 450px; }
.rfq-intro > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 450px; }
.rfq-steps { border-top: 1px solid var(--line); display: grid; gap: 16px; margin: 34px 0 0; max-width: 440px; padding-top: 20px; }
.rfq-steps div { display: grid; gap: 12px; grid-template-columns: 28px 1fr; }
.rfq-steps dt { color: var(--teal); font-size: 13px; font-weight: 700; }
.rfq-steps dd { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.rfq-form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.rfq-form-panel h2 { font-size: 26px; margin-bottom: 8px; }
.account-tabs { display: flex; margin-bottom: 24px; }
.account-tabs button { min-height: 44px; }
.account-tabs .secondary-button { border-left: 0; border-radius: 0; }
.rfq-field { display: grid; gap: 7px; }
.rfq-field small { color: var(--muted); font-size: 12px; }
#accountPanel h2 { margin-bottom: 10px; }
#accountPanel > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-page { margin: 0 auto; max-width: 1280px; min-height: calc(100vh - 70px); padding: 46px 24px 80px; }
.dashboard-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 28px; }
.dashboard-heading h1 { font-size: 38px; margin-bottom: 8px; }
.dashboard-heading > div { min-width: 0; }
.dashboard-heading .muted-copy { margin: 0; overflow-wrap: anywhere; }
.verification-banner { align-items: center; background: var(--mint); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); display: flex; justify-content: space-between; margin: 0 0 28px; padding: 14px 18px; }
.verification-banner a { color: var(--teal-dark); font-weight: 700; }
.dashboard-metrics { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 48px; }
.dashboard-metrics div { display: grid; gap: 6px; padding: 22px 18px 22px 0; }
.dashboard-metrics strong { font-family: "Fraunces", Georgia, serif; font-size: 30px; }
.dashboard-metrics span { color: var(--muted); font-size: 13px; }
.dashboard-section { margin-top: 42px; }
.dashboard-section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 18px; }
.dashboard-section-heading h2 { font-size: 26px; margin: 0; }
.workspace-list { border-top: 1px solid var(--line); }
.workspace-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 18px 0; }
.workspace-row h3 { font-size: 16px; margin: 0 0 5px; }
.workspace-row p, .workspace-empty { color: var(--muted); font-size: 13px; margin: 0; }
.workspace-row > div:last-child { align-items: center; display: flex; gap: 16px; }
.quiet-button { background: transparent; border: 0; color: #8a3a19; cursor: pointer; font-weight: 700; padding: 6px; }
.selected-lab { background: var(--mint); border-left: 3px solid var(--teal); color: var(--teal-dark); font-size: 14px; font-weight: 700; line-height: 1.4; margin: 19px 0 25px; padding: 12px 16px; border-radius: var(--radius-sm); }
.rfq-form-panel form { display: grid; gap: 18px; }
.rfq-form-panel label { color: var(--ink-soft); display: grid; font-size: 13px; font-weight: 700; gap: 7px; }
.rfq-form-panel label > span { color: var(--muted); font-size: 12px; font-weight: 500; }
.rfq-form-panel input:not([type="checkbox"]), .rfq-form-panel textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  outline: 0;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rfq-form-panel input:focus, .rfq-form-panel textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-alpha);
}
.form-grid { display: grid; gap: 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stacked-fields { display: grid; gap: 12px; }
.consent { align-items: start; grid-template-columns: 18px 1fr; line-height: 1.45; }
.consent input { margin: 2px 0 0; }
.form-status { border-left: 3px solid var(--gold); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; margin: 0; padding: 10px 14px; }
.form-status:empty { display: none; }
.form-status.success { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.form-status.error { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.form-status.pending { background: var(--mint); border-color: var(--teal); color: var(--teal-dark); }
.rfq-form-panel button[disabled] { cursor: not-allowed; opacity: .5; }
.asset-upload-section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.asset-upload-section h2 { font-size: 20px; margin-bottom: 18px; }
.rfq-form-panel .asset-upload-form { border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 18px; }
.asset-list { display: grid; gap: 8px; }
.asset-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding: 10px 0; }
.asset-row span, .asset-empty { color: var(--muted); font-size: 14px; }
.dashboard-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-analytics { margin-bottom: 24px; }
.quote-builder { border-top: 1px solid var(--line); display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; }
.quote-line-items { display: grid; gap: 8px; }
.quote-line-item { display: grid; gap: 8px; grid-template-columns: minmax(180px, 2fr) minmax(80px, .6fr) minmax(90px, .7fr) minmax(110px, .8fr) auto; }
.quote-line-item input { min-width: 0; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: -4px 0 0; }
.rfq-review-page { margin: 0 auto; max-width: 1080px; min-height: calc(100vh - 140px); padding: 54px 24px 72px; }
.rfq-review-page h1 { font-size: 38px; margin-bottom: 13px; }
.review-intro { color: var(--muted); line-height: 1.55; max-width: 730px; }
.review-queue { display: grid; gap: 18px; margin-top: 25px; }
.rfq-review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; }
.rfq-review-card h2 { font-size: 22px; margin: 0; }
.rfq-review-card .eyebrow { margin-bottom: 8px; }
.rfq-review-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 0; }
.rfq-review-facts div { border-top: 1px solid var(--line); display: grid; gap: 5px; padding: 12px 16px 12px 0; }
.rfq-review-facts dt { color: var(--muted); font-size: 12px; }
.rfq-review-facts dd { font-size: 14px; line-height: 1.45; margin: 0; white-space: pre-wrap; }
.rfq-review-action { border-top: 1px solid var(--line); display: grid; gap: 12px; margin-top: 21px; padding-top: 18px; }
.rfq-review-action textarea { border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; padding: 10px; resize: vertical; }
.rfq-review-action div { display: flex; flex-wrap: wrap; gap: 10px; }
.review-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--muted); margin: 0; padding: 30px; }

/* ───────────────────────────── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .directory-search { grid-template-columns: 1fr 1fr; }
  .search-field { border-bottom: 1px solid var(--line); }
  .primary-field { grid-column: span 2; }
  .search-button { border-radius: 0 0 var(--radius-md) 0; grid-column: span 1; }
  .more-filters-toggle { border-radius: 0 0 0 var(--radius-md); }
  .advanced-filters-grid { grid-template-columns: repeat(2, 1fr); }
  .labs-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
  .rfq-layout { gap: 36px; grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-owner-section { grid-template-columns: 1fr; }
  .owner-actions { border-left: 0; border-top: 2px solid rgba(198,93,6,.15); padding-left: 0; padding-top: 24px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  .wordmark { font-size: 20px; }
  nav { display: none; }
  .directory-hero { min-height: 520px; }
  .hero-shade { background: rgba(70, 25, 4, .78); }
  .hero-content { padding: 60px 18px 32px; }
  h1 { font-size: 36px; }
  .directory-search { grid-template-columns: 1fr; }
  .search-field { border-right: 0; }
  .search-button { border-radius: 0 0 var(--radius-md) 0; }
  .more-filters-toggle { border-radius: 0 0 0 var(--radius-md); }
  .advanced-filters-grid { grid-template-columns: 1fr; }
  .results-section, .process-section { padding-left: 18px; padding-right: 18px; }
  .results-toolbar { align-items: start; flex-direction: column; gap: 8px; }
  .labs-grid { grid-template-columns: 1fr; }
  .labs-skeleton { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .lab-owner-section { padding: 36px 18px; }
  .site-footer { padding: 36px 18px 28px; }
  .footer-container { max-width: none; padding: 0; width: 100%; }
  .footer-top-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
  .footer-col { min-width: 0; }
  .footer-links a { overflow-wrap: anywhere; }
  .single-line-disclaimer {
    line-height: 1.5;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .disclaimer-one-line {
    font-size: 11px;
    white-space: normal;
  }
  .single-line-heading { white-space: normal; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .contact-fields { grid-template-columns: minmax(0, 1fr) !important; }
  .methodology-hero-title, .methodology-section-title { white-space: normal !important; }
  .methodology-table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
  .profile-page { padding-left: 18px; padding-right: 18px; }
  .profile-header { align-items: start; flex-direction: column; }
  .profile-header h1 { font-size: 32px; }
  .profile-actions { align-items: start; }
  .detail-list { grid-template-columns: 1fr; }
  .profile-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-gallery img:only-child { grid-column: span 2; }
  .methodology-page { padding-left: 18px; padding-right: 18px; }
  .methodology-heading h1 { font-size: 32px; }
  .methodology-grid { grid-template-columns: 1fr; }
  .operating-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-page { padding-left: 18px; padding-right: 18px; }
  .dashboard-heading, .workspace-row { align-items: start; flex-direction: column; gap: 14px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-line-item { grid-template-columns: 1fr 1fr; }
  .quote-line-item input:first-child { grid-column: span 2; }
  .rfq-page { padding-left: 18px; padding-right: 18px; }
  .rfq-form-panel { padding: 22px; }
  .two-columns { grid-template-columns: 1fr; }
  .rfq-review-page { padding-left: 18px; padding-right: 18px; }
  .rfq-review-facts { grid-template-columns: 1fr; }
  .industry-heading { align-items: start; flex-direction: column; gap: 8px; }
  .pagination-bar { flex-direction: column; gap: 12px; }
}

/* ──────────────────────── Trust Bar ──────────────────────── */
.trust-stats-bar {
  background: var(--ink);
  color: #FFF;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-stats-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.trust-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
}
.stat-label {
  font-size: 13px;
  color: var(--muted-lite);
  margin-top: 4px;
}

/* ──────────────────────── Benefits Grid ──────────────────────── */
.buyer-benefits-section {
  padding: 64px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.text-center { text-align: center; }
.single-line-heading {
  white-space: nowrap;
  font-size: clamp(18px, 2.8vw, 32px);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.single-line-copy {
  text-align: center;
  max-width: 800px !important;
  margin: 8px auto 0 !important;
  color: var(--muted);
  line-height: 1.6;
  white-space: normal;
}
.benefits-grid {
  max-width: 1280px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  align-items: center;
  background: var(--mint);
  border: 1px solid #FED7AA;
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 14px;
  min-height: 28px;
  padding: 5px 10px;
  text-transform: uppercase;
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ──────────────────────── Disciplines Grid ──────────────────────── */
.disciplines-grid-section {
  padding: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.discipline-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.discipline-cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--dur) var(--ease);
}
.discipline-cat-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.discipline-mark {
  align-items: center;
  background: var(--mint);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  overflow: hidden;
}
.discipline-mark svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 28px;
}
.discipline-mark-electrical svg,
.discipline-mark-medical svg {
  fill: currentColor;
  stroke: currentColor;
}
.discipline-mark-chemical { background:#E0F2FE; color:#0369A1; }
.discipline-mark-mechanical { background:#EDE9FE; color:#6D28D9; }
.discipline-mark-biological { background:#DCFCE7; color:#15803D; }
.discipline-mark-electrical { background:#FEF3C7; color:#92400E; }
.discipline-mark-ndt { background:#FCE7F3; color:#BE185D; }
.discipline-mark-calibration { background:#CCFBF1; color:#0F766E; }
.discipline-mark-civil { background:#FFEDD5; color:#C2410C; }
.discipline-mark-medical { background:#FEE2E2; color:#DC2626; }
}
.discipline-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.discipline-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ──────────────────────── FAQ Accordion ──────────────────────── */
.faq-section {
  padding: 64px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-accordion {
  max-width: 800px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color var(--dur) var(--ease);
}
.faq-item[open] { border-color: var(--teal); }
.faq-item summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  font-size: 18px;
  color: var(--teal);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "－"; }
.faq-answer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ──────────────────────── Account Portal ──────────────────────── */
.account-tabs {
  display: flex;
  background: var(--surface-2, rgba(0,0,0,0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}
.account-tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.account-tab-btn.active, .account-tab-btn[aria-selected="true"] {
  background: var(--canvas, #FFF);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.account-trust-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.trust-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-feature-item .feature-icon {
  font-size: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  line-height: 1;
}
.trust-feature-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.trust-feature-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.full-width {
  width: 100%;
  display: block;
  text-align: center;
}
.verification-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  margin-top: 6px;
}

/* Final mobile overrides stay at the end of this file so later component
   declarations cannot restore desktop-only sizing. */
@media (max-width: 620px) {
  :root {
    --teal: #9A4805;
    --teal-dark: #783703;
    --teal-xdark: #5C2802;
    --teal-alpha: rgba(154, 72, 5, 0.12);
  }
  .wordmark span { color: #A95005; }
  .wordmark::after { color: #A95005; }
  .site-footer .wordmark span,
  .site-footer .wordmark::after { color: #FBB040; }
  .single-line-disclaimer { color: #AEB4BF; }
  .site-header {
    align-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 8px;
    padding-top: 8px;
  }
  .site-header nav {
    display: flex;
    flex-basis: 100%;
    gap: 4px;
    margin: 0;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a {
    background: var(--canvas);
    flex: 0 0 auto;
    font-size: 12px;
    padding: 7px 10px;
    white-space: nowrap;
  }
  .site-header .header-action {
    margin-left: auto;
    padding: 9px 13px;
  }
  .primary-field { grid-column: auto; }
  .search-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .more-filters-toggle,
  .search-button { justify-content: center; min-width: 0; padding-left: 12px; padding-right: 12px; }
  .directory-search input,
  .directory-search select { font-size: 16px; }
  .empty-icon svg { height: 42px; width: 42px; }
  .single-line-heading { white-space: normal; }
  .methodology-hero-title, .methodology-section-title { white-space: normal !important; }
  .methodology-pillar { overflow: hidden; }
}
