/* Cannabis Distillation Equipment — B/R Instrument
   Forest lab palette with distillate-amber accent */

:root {
  --void: #0a1210;
  --forest: #132820;
  --canopy: #1e3d32;
  --leaf: #3d6b58;
  --distillate: #d4a84b;
  --distillate-deep: #b8892e;
  --mist: #eef3f0;
  --paper: #f7f9f8;
  --white: #ffffff;
  --ink: #121a17;
  --muted: #5a6b63;
  --line: #d0dbd5;
  --radius: 12px;
  --shadow: 0 10px 32px rgba(10, 18, 16, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 18, 16, 0.12);
  --nav-h: 74px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; }
a:hover { color: var(--distillate-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  color: var(--forest);
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }
.text-muted { color: var(--muted) !important; }

/* ---- Nav ---- */
.site-nav {
  background: var(--void);
  min-height: var(--nav-h);
  border-bottom: 1px solid rgba(212, 168, 75, 0.18);
}

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--distillate) 0%, var(--distillate-deep) 100%);
  color: var(--void);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  letter-spacing: -0.03em;
}

.site-nav .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-nav .brand-text small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--distillate);
}

.site-nav .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.07);
}

.site-nav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
}

.site-nav .dropdown-item {
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
}

.site-nav .dropdown-item:hover {
  background: var(--mist);
  color: var(--forest);
}

.site-nav .nav-cta {
  background: var(--distillate) !important;
  color: var(--void) !important;
  font-weight: 700 !important;
  margin-left: 0.35rem;
  padding: 0.5rem 1.05rem !important;
}

.site-nav .nav-cta:hover {
  background: #e0b85a !important;
  color: var(--void) !important;
}

.site-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.25);
}

.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(212,168,75,0.18), transparent 55%),
    linear-gradient(145deg, var(--void) 0%, var(--forest) 55%, var(--canopy) 100%);
  color: #fff;
  padding: 5.25rem 0 4.25rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(212,168,75,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212,168,75,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
  pointer-events: none;
}

/* distillate purity bar — signature */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--distillate), transparent);
  border-radius: 2px;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--distillate);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--distillate);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.4rem);
  color: #fff;
  margin: 0 0 1.1rem;
  max-width: 15ch;
}

.hero-sub {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--distillate);
  color: var(--void) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary-lab:hover {
  background: #e0b85a;
  transform: translateY(-1px);
  color: var(--void) !important;
}

.btn-ghost-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.15s, background 0.15s;
}

.btn-ghost-lab:hover {
  border-color: var(--distillate);
  background: rgba(212,168,75,0.1);
  color: #fff !important;
}

/* ---- Stats ---- */
.stats-bar {
  margin-top: -1.75rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.stats-bar .container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: 1.35rem 1rem;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---- Sections ---- */
.section { padding: 4.25rem 0; }
.section-muted { background: var(--paper); }
.section-dark {
  background: var(--forest);
  color: rgba(255,255,255,0.88);
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark .text-muted { color: rgba(255,255,255,0.65) !important; }

.section-label { margin-bottom: 2.25rem; max-width: 40rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--distillate-deep);
  margin-bottom: 0.55rem;
}

.section-dark .eyebrow { color: var(--distillate); }

.section-label h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-label p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ---- Equipment cards ---- */
.equip-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}

.equip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.equip-card .card-media {
  aspect-ratio: 16/10;
  background: var(--mist);
  overflow: hidden;
}

.equip-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equip-card .card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-left: 3px solid var(--distillate);
  margin-left: 0;
}

.equip-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.55rem;
}

.equip-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 0;
}

.equip-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 1.15rem;
}

.equip-card-btn {
  align-self: flex-start;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--mist);
  color: var(--forest);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

/* ---- Process ---- */
.process-step {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--distillate);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Feature split ---- */
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  max-height: 23rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--distillate);
}

/* ---- Page header (inner pages) ---- */
.page-hero {
  background: linear-gradient(145deg, var(--void), var(--forest) 70%);
  color: #fff;
  padding: 3.25rem 0 2.75rem;
  border-bottom: 3px solid var(--distillate);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  color: rgba(255,255,255,0.82);
  max-width: 40rem;
  margin: 0;
  font-size: 1.08rem;
}

.breadcrumb-lab {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb-lab a { color: var(--distillate); }
.breadcrumb-lab a:hover { color: #e0b85a; }

/* ---- Content body ---- */
.content-wrap { padding: 3rem 0 4rem; }

.prose {
  max-width: 48rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.25rem 0;
  border: 1px solid var(--line);
}

.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
}

.spec-table th {
  background: var(--mist);
  color: var(--forest);
  font-weight: 600;
}

/* ---- Blog / process notes ---- */
.post-hero {
  background:
    linear-gradient(160deg, var(--void) 0%, var(--forest) 72%, #1a4034 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
  border-bottom: 3px solid var(--distillate);
  position: relative;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(212,168,75,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212,168,75,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}

.post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.post-hero .breadcrumb-lab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.post-hero .breadcrumb-lab a { color: var(--distillate); }
.post-hero .breadcrumb-lab a:hover { color: #e0b85a; }

.post-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--distillate);
  margin: 0 0 0.65rem;
}

.post-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  margin: 0;
  max-width: 20ch;
  line-height: 1.2;
}

.post-hero-lead {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 36rem;
  line-height: 1.6;
}

.post-hero-index h1 { max-width: none; }

.post-layout {
  padding: 2.75rem 0 3.5rem;
  background: var(--paper);
}

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.5rem;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-aside { order: 2; }
}

.post-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.15rem 2.35rem;
  border-left: 3px solid var(--distillate);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 46rem;
}

.post-body > *:first-child { margin-top: 0; }

.post-body p {
  margin: 0 0 1.15rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 1.75rem 0 0.65rem;
  color: var(--forest);
}

.post-body h2 { font-size: 1.4rem; }
.post-body h3 { font-size: 1.18rem; }

.post-body a {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-color: rgba(61, 107, 88, 0.35);
  text-underline-offset: 2px;
}
.post-body a:hover {
  color: var(--distillate-deep);
  text-decoration-color: var(--distillate);
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.post-body li { margin-bottom: 0.4rem; }

.post-body strong { color: var(--forest); font-weight: 650; }

.post-figure {
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.post-figure img,
.post-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

.post-body p img {
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0.5rem 0;
}

.post-body .spec-table {
  font-size: 0.92rem;
  margin: 1.25rem 0 1.5rem;
}

.post-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.aside-card h2 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.aside-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.aside-card li {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.aside-card a {
  color: var(--forest);
  font-weight: 600;
}
.aside-card a:hover { color: var(--distillate-deep); }

.aside-cta {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.aside-card-muted {
  background: var(--mist);
  box-shadow: none;
}

.aside-card-muted p { margin: 0; font-size: 0.95rem; }

/* Blog index cards */
.blog-index-section {
  padding: 2.5rem 0 4rem;
  background: var(--paper);
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 767px) {
  .blog-card-grid { grid-template-columns: 1fr; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid var(--distillate);
  min-height: 11rem;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #c5d4cb;
  color: inherit;
}

.blog-card-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--distillate-deep);
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  color: var(--forest);
  line-height: 1.3;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.blog-card-more {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--leaf);
}

.blog-card:hover .blog-card-more { color: var(--distillate-deep); }

/* ---- Contact ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.form-card .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--forest);
}

.form-card .form-control,
.form-card .form-select {
  border-radius: 8px;
  border-color: var(--line);
  padding: 0.65rem 0.85rem;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(61, 107, 88, 0.15);
}

/* ---- CTA band ---- */
.cta-band {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,168,75,0.2), transparent 50%),
    var(--void);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--void);
  color: rgba(255,255,255,0.72);
  padding: 3.25rem 0 1.75rem;
  font-size: 0.95rem;
}

.site-footer h4,
.site-footer h5 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}
.site-footer a:hover { color: var(--distillate); }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 0.4rem; }

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ---- Product masthead ---- */
.product-bar {
  background: var(--void);
  border-bottom: 1px solid rgba(212, 168, 75, 0.18);
  padding: 0.65rem 0;
}

.product-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-bar .breadcrumb-lab { margin: 0; font-size: 0.8rem; }

.model-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--distillate);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.masthead {
  background: var(--white);
  padding: 2.5rem 0 2.75rem;
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .masthead-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.gallery-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 23rem;
  object-fit: contain;
  padding: 0.6rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.2rem; }

.gallery-thumb[aria-current="true"] {
  border-color: var(--distillate);
  box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.25);
}

.masthead h1 {
  font-size: clamp(1.85rem, 3.1vw, 2.5rem);
  margin: 0.35rem 0 0.75rem;
}

.masthead-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.keyspec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin: 0 0 1.6rem;
}

.keyspec > div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.keyspec > div:nth-child(odd) { padding-right: 1.15rem; }
.keyspec > div:nth-child(even) { padding-left: 1.15rem; border-left: 1px solid var(--line); }

.keyspec dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.keyspec dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.masthead-meta {
  margin: 1.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-outline-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--forest);
  background: transparent;
}

.btn-outline-lab:hover {
  border-color: var(--leaf);
  color: var(--forest);
  background: var(--paper);
}

/* in-page section nav */
.section-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav ul::-webkit-scrollbar { display: none; }

.section-nav a {
  display: block;
  padding: 0.85rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.section-nav a:hover { color: var(--forest); border-bottom-color: var(--distillate); }

.section-nav .btn-primary-lab { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

@media (max-width: 767px) {
  .section-nav .btn-primary-lab { display: none; }
}

.section-anchor { scroll-margin-top: calc(var(--nav-h) + 3.5rem); }

/* spec tables laid out in two columns rather than one long strip */
.spec-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 0 2.5rem;
}

.spec-columns .spec-table { margin-top: 0; }

.spec-table th[scope="row"] {
  width: 42%;
  background: var(--paper);
  font-weight: 600;
}

.spec-table thead th {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-table tbody tr:nth-child(even) td { background: var(--paper); }

/* ---- Product pages ---- */
.page-hero .post-kicker { margin-bottom: 0.6rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.hero-facts span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--distillate);
  border: 1px solid rgba(212, 168, 75, 0.35);
  background: rgba(212, 168, 75, 0.08);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}

@media (max-width: 991px) {
  .product-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.9rem 1.9rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 575px) {
  .panel { padding: 1.35rem 1.25rem 1.5rem; }
}
.panel > *:first-child { margin-top: 0; }
.panel > *:last-child { margin-bottom: 0; }

.panel h2 {
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
}

.panel h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.panel p {
  color: var(--ink);
  margin: 0 0 1rem;
}

.panel p:last-child { margin-bottom: 0; }

.panel-note {
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--leaf);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 0;
  font-size: 0.96rem;
}

.panel-note strong { color: var(--forest); }

/* tick lists */
.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tick-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.97rem;
  line-height: 1.55;
}

.tick-list li:last-child { margin-bottom: 0; }

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.42rem;
  width: 0.4rem;
  height: 0.72rem;
  border: solid var(--distillate-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tick-list strong { color: var(--forest); font-weight: 650; }

/* feature columns */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
}

.feature-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.25rem 1.25rem;
}

.feature-item h3 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* numbered procedure */
.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0.15rem 0 0 3.15rem;
  min-height: 2.2rem;
  font-size: 0.97rem;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--distillate-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-list strong {
  display: block;
  color: var(--forest);
  font-weight: 650;
}

/* model cards */

/* figures */
.product-figure {
  margin: 0 0 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
  background: var(--mist);
}

.product-figure.figure-contain img {
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0.75rem;
}

/* text beside a supporting figure, rather than a figure stranded in white space */

@media (max-width: 767px) {
  .panel-split { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .panel-split .product-figure { max-width: 17rem; }
}

.product-figure figcaption {
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.panel .product-figure {
  box-shadow: none;
  margin: 1.25rem 0 0;
}

/* related links */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}

.link-list a::after {
  content: "\2192";
  color: var(--distillate-deep);
  font-weight: 700;
}

.link-list a:hover {
  background: var(--white);
  border-color: #c5d4cb;
  color: var(--distillate-deep);
}

/* aside spec sheet */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .equip-card,
  .link-list a,
  .btn-primary-lab { transition: none; }
}
