/* Delta Sales — Site-wide additions on top of the Instrument design system */

/* Body wrapper applies the .in tokens to entire pages */
html, body { margin: 0; padding: 0; background: #0c0d0a; }
* { box-sizing: border-box; }

/* PAGE HERO — used on every interior page (smaller than home hero) */
.in-pagehero {
  padding: 72px 28px 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  background:
    linear-gradient(180deg, rgba(182,255,92,0.04) 0%, transparent 100%);
}
.in-pagehero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.in-pagehero > * { position: relative; z-index: 1; }
.in-pagehero .crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 22px;
}
.in-pagehero .crumbs a { color: var(--fg-3); text-decoration: none; cursor: pointer; }
.in-pagehero .crumbs a:hover { color: var(--phos); }
.in-pagehero .crumbs .sep { color: var(--line-2); }
.in-pagehero .crumbs .here { color: var(--phos); }

.in-pagehero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.in-pagehero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--fg);
}
.in-pagehero h1 em {
  font-style: normal;
  color: var(--phos);
  text-shadow: 0 0 24px rgba(182,255,92,0.3);
}
.in-pagehero .lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 540px;
  margin: 0;
}

/* RIGHT-SIDE FACT TABLE */
.in-facttable {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11.5px;
}
.in-facttable .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid var(--line);
}
.in-facttable .row:last-child { border-bottom: none; }
.in-facttable .row .k {
  padding: 10px 14px;
  background: var(--bg-3);
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10.5px;
  border-right: 1px solid var(--line);
}
.in-facttable .row .v {
  padding: 10px 14px;
  color: var(--fg);
  letter-spacing: 0;
}
.in-facttable .row .v .ph {
  color: var(--phos);
  text-shadow: 0 0 8px rgba(182,255,92,0.3);
}

/* LONGFORM PROSE + TWO-COLUMN BODY */
.in-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 56px 28px;
  border-bottom: 1px solid var(--line);
}
.in-body .side {
  position: sticky; top: 16px;
  align-self: start;
}
.in-body .side .label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--phos); padding-top: 8px;
  border-top: 1px solid var(--phos);
  margin-bottom: 18px;
}
.in-body .side ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.in-body .side ul a {
  display: block;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-2);
  text-decoration: none;
  padding: 6px 0;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
}
.in-body .side ul a:hover { color: var(--phos); border-left-color: var(--line-2); }
.in-body .side ul a.active { color: var(--phos); border-left-color: var(--phos); }

.in-prose { max-width: 760px; min-width: 0; overflow-wrap: break-word; }
.in-prose h2 {
  font-family: var(--display); font-weight: 600;
  font-size: 30px; line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--fg);
}
.in-prose h2:not(:first-child) { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.in-prose h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 18px; line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--fg);
}
.in-prose p {
  font-size: 15px; line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 14px;
}
.in-prose ul {
  font-size: 14.5px;
  color: var(--fg-2);
  margin: 0 0 18px;
  padding-left: 22px;
  line-height: 1.65;
}
.in-prose ul li { margin-bottom: 4px; }
.in-prose strong { color: var(--fg); font-weight: 600; }
.in-prose .pull {
  border-left: 2px solid var(--phos);
  padding: 6px 0 6px 18px;
  margin: 24px 0;
  font-family: var(--display);
  font-size: 18px;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* SPEC GRID — used on service detail pages */
.in-specgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 24px 0 32px;
}
.in-specgrid .cell {
  background: var(--bg-2);
  padding: 18px 20px;
  font-family: var(--mono);
}
.in-specgrid .cell .k {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 6px;
}
.in-specgrid .cell .v {
  font-size: 16px; color: var(--phos);
  text-shadow: 0 0 8px rgba(182,255,92,0.25);
  letter-spacing: 0.01em;
}
.in-specgrid .cell .v small {
  color: var(--fg-3); font-size: 11px; margin-left: 3px;
  text-shadow: none; letter-spacing: 0.04em;
}

/* INSTRUMENT TABLE */
.in-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  margin: 16px 0 28px;
}
.in-table th, .in-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.in-table th:last-child, .in-table td:last-child { border-right: none; }
.in-table tr:last-child td { border-bottom: none; }
.in-table th {
  background: var(--bg-3);
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.in-table td { color: var(--fg-2); }
.in-table td.ph { color: var(--phos); }
.in-table td.k { color: var(--fg); font-weight: 500; }

/* CONTACT + QUOTE FORM */
.in-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}
.in-form .full { grid-column: 1 / -1; }
.in-form label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: block;
  margin-bottom: 6px;
}
.in-form input, .in-form select, .in-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.in-form input:focus, .in-form select:focus, .in-form textarea:focus {
  border-color: var(--phos);
  box-shadow: 0 0 0 1px var(--phos), 0 0 16px rgba(182,255,92,0.15);
}
.in-form textarea { min-height: 140px; resize: vertical; font-family: var(--mono); }
.in-form .check {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.in-form .check input[type="checkbox"] {
  width: 16px; height: 16px; margin: 2px 0 0;
  accent-color: #b6ff5c;
}
.in-form .actions {
  grid-column: 1 / -1;
  display: flex; gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.in-form .submitted {
  grid-column: 1 / -1;
  border: 1px solid var(--phos);
  background: rgba(182,255,92,0.08);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg);
  letter-spacing: 0.04em;
  display: flex; gap: 10px; align-items: center;
}
.in-form .submitted::before {
  content: "●"; color: var(--phos);
  text-shadow: 0 0 8px var(--phos);
}

/* TWO COLUMN — form + info */
.in-twocol {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding: 56px 28px;
  border-bottom: 1px solid var(--line);
}
.in-twocol .info-block {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.in-twocol .info-block h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--phos);
  margin: 0 0 14px;
  font-weight: 500;
}
.in-twocol .info-block p {
  font-size: 14px; color: var(--fg-2);
  margin: 0 0 8px; line-height: 1.6;
}
.in-twocol .info-block p b { color: var(--fg); font-weight: 500; }

/* MAP placeholder */
.in-mapholder {
  height: 220px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(135deg, transparent 49%, rgba(182,255,92,0.06) 49.5% 50.5%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(182,255,92,0.06) 49.5% 50.5%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 24px),
    var(--bg-3);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
}
.in-mapholder::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  background: var(--phos);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--phos);
  top: 45%; left: 55%;
  animation: in-pulse 2.4s ease-in-out infinite;
}

/* TIMELINE for About */
.in-timeline {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  margin: 32px 0;
}
.in-timeline .item {
  display: contents;
}
.in-timeline .yr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--phos);
  text-shadow: 0 0 8px rgba(182,255,92,0.25);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  letter-spacing: 0.06em;
}
.in-timeline .body {
  padding: 16px 0 16px 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  position: relative;
}
.in-timeline .body::before {
  content: ""; position: absolute;
  left: -5px; top: 22px;
  width: 9px; height: 9px;
  background: var(--phos);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--phos);
}
.in-timeline .body h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.in-timeline .body p {
  font-size: 14px; color: var(--fg-2);
  margin: 0; line-height: 1.55;
}

/* CARD GRID — for sub-services like equipment items */
.in-cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 24px 0 32px;
}
.in-cardgrid .card {
  background: var(--bg-2);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  transition: background .15s;
}
.in-cardgrid .card:hover { background: var(--bg-3); }
.in-cardgrid .card .tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--phos);
  margin-bottom: 10px;
}
.in-cardgrid .card h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.in-cardgrid .card p {
  font-size: 13.5px;
  color: var(--fg-2);
  margin: 0 0 14px;
  flex: 1;
  line-height: 1.55;
}
.in-cardgrid .card a {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--phos);
  text-decoration: none; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.in-cardgrid .card a::after { content: "→"; transition: transform .15s; }
.in-cardgrid .card a:hover::after { transform: translateX(3px); }

/* CTA BAND (smaller, used inside pages) */
.in-band {
  background: var(--bg-2);
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--phos);
  border-bottom: 1px solid var(--line);
}
.in-band h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.in-band p {
  font-size: 14px; color: var(--fg-2);
  margin: 0;
}
.in-band .actions { display: flex; gap: 10px; }

/* SECTION-NUM ALT — for inner sections */
.in-secthead.alt {
  grid-template-columns: 1fr;
  gap: 8px;
}
.in-secthead.alt .num { display: inline-block; }
.in-secthead.alt h2 { font-size: 32px; }

/* TIER comparison table for XRF */
.in-comparetable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin: 32px 0;
}
.in-comparetable th, .in-comparetable td {
  padding: 12px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.in-comparetable th:first-child, .in-comparetable td:first-child {
  text-align: left;
  color: var(--fg);
  font-weight: 500;
}
.in-comparetable th:last-child, .in-comparetable td:last-child { border-right: none; }
.in-comparetable thead th {
  background: var(--bg-3);
  color: var(--fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.in-comparetable thead th.featured {
  color: var(--phos);
  text-shadow: 0 0 8px rgba(182,255,92,0.3);
}
.in-comparetable .yes { color: var(--phos); text-shadow: 0 0 6px rgba(182,255,92,0.3); }
.in-comparetable .no { color: var(--fg-3); }
.in-comparetable tbody tr:hover td { background: rgba(255,255,255,0.015); }


/* ─── RESPONSIVE LAYER ─── */
/* Grid children safety: prevent intrinsic min-width from causing overflow */
.in-body > *, .in-twocol > *, .in-pagehero-grid > *, .in-band > * { min-width: 0; }
.in-cardgrid .card, .in-specgrid > * { min-width: 0; }

@media (max-width: 1024px) {
  .in-body { grid-template-columns: 1fr; gap: 24px; padding: 40px 22px; }
  .in-body .side { position: static; }
  .in-body .side ul { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; }
  .in-body .side ul a { border-left: 0; padding: 6px 0; margin-left: 0; border-bottom: 1px solid transparent; }
  .in-body .side ul a:hover, .in-body .side ul a.active { border-bottom-color: var(--phos); border-left-color: transparent; }
  .in-cardgrid { grid-template-columns: repeat(2, 1fr); }
  .in-specgrid { grid-template-columns: repeat(2, 1fr); }
  .in-twocol { grid-template-columns: 1fr; gap: 32px; padding: 40px 22px; }
  .in-band { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .in-pagehero-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .in-body { padding: 32px 18px; gap: 18px; }
  .in-cardgrid { grid-template-columns: 1fr; }
  .in-specgrid { grid-template-columns: 1fr; }
  .in-form { grid-template-columns: 1fr; }
  .in-form .actions { grid-column: 1; flex-direction: column; align-items: stretch; }
  .in-form .actions .in-btn { justify-content: center; text-align: center; width: 100%; }
  .in-twocol { padding: 32px 18px; gap: 24px; }
  .in-band { padding: 24px 18px; }
  .in-band .actions { flex-direction: column; align-items: stretch; }
  .in-band .actions .in-btn { justify-content: center; text-align: center; }
  .in-timeline { grid-template-columns: 70px 1fr; }
  .in-facttable .row { grid-template-columns: 110px 1fr; font-size: 13px; }
  .in-facttable .row > * { padding: 10px 12px; }
  .in-prose h2 { font-size: 24px; }
  .in-prose { font-size: 15px; }
  .in-pagehero { padding-left: 18px; padding-right: 18px; }
  .in-pagehero .crumbs { font-size: 10px; flex-wrap: wrap; }
}
