/* Services: texstarchiroaustin.fit — numbered accordion, navy tokens */

#main {
  background: var(--dna-bg);
  color: var(--dna-ink);
}

#main h1,
#main h2,
#main h3 {
  text-wrap: balance;
}

#main p,
#main figcaption {
  text-wrap: pretty;
}

#main h2,
#main h3,
#main p,
#main figure {
  margin: 0;
}

#main .tex36-band-inner {
  width: min(var(--tex36-max), calc(100% - (2 * var(--tex36-pad))));
  margin-inline: auto;
  display: grid;
  gap: 1.65rem;
}

#main .tex36-head {
  display: grid;
  gap: 0.7rem;
  max-width: 38rem;
  justify-items: start;
}

#main .tex36-head p,
#main .tex36-lead,
#main .tex36-svcrow .service-item-body,
#main .tex36-mod p,
#main .tex36-still figcaption {
  color: var(--dna-ink-soft);
}

#main .tex36-band {
  padding: 3.75rem 0;
  border-top: 1px solid var(--dna-line);
  background: var(--dna-bg);
}

#main .tex36-band-alt { background: var(--dna-surface); }
#main .tex36-band-quiet { background: var(--dna-surface-2); }

#main .tex36-kicker {
  color: var(--dna-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#main .tex36-call,
#main .tex36-textlink {
  text-decoration: none;
}

#main .tex36-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 0;
  background: var(--dna-accent);
  color: var(--dna-accent-ink);
  font-weight: 700;
}

#main .tex36-call:hover { background: var(--dna-accent-2); }

#main .tex36-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dna-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

#main .tex36-num {
  margin: 0;
  color: var(--dna-accent-2);
  font-family: Syne, "Avenir Next", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Split mast: copy column, full-bleed table still */
#main .tex36-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  background: var(--dna-bg);
}

#main .tex36-mast-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.1rem;
  padding: clamp(2.25rem, 4.5vw, 4rem) clamp(1.25rem, 3vw, 2.25rem);
  padding-left: max(var(--tex36-pad), calc((100vw - var(--tex36-max)) / 2));
}

#main .tex36-mast h1 {
  max-width: 16ch;
  font-size: clamp(2.05rem, 3.3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

#main .tex36-lead { max-width: 38rem; }

#main .tex36-mast-actions,
#main .tex36-reachline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
}

#main .tex36-mast-visual {
  margin: 0;
  position: relative;
  min-height: 24rem;
  background: var(--dna-surface);
}

#main .tex36-mast-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* Numbered condition accordion */
.dna-svc-accordion #main .tex36-catalog {
  display: grid;
  gap: 0;
}

.dna-svc-accordion #main .tex36-svcrow {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0;
  align-items: start;
  margin: 0;
  padding: 0.35rem 0;
  border-top: 1px solid var(--dna-line);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.dna-svc-accordion #main .tex36-catalog .tex36-svcrow:last-child {
  border-bottom: 1px solid var(--dna-line);
}

.dna-svc-accordion #main .tex36-svcrow .tex36-num {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.dna-svc-accordion #main .tex36-svcrow h3 {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  cursor: pointer;
}

.dna-svc-accordion #main .tex36-svcrow h3::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--dna-accent-2);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
}

.dna-svc-accordion #main .tex36-svcrow.is-open h3::after { content: "−"; }

.dna-svc-accordion #main .tex36-svcrow .service-item-body {
  grid-column: 2;
  grid-row: 2;
  max-width: 62ch;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.dna-svc-accordion #main .tex36-svcrow.is-open .service-item-body {
  max-height: 24rem;
  padding-top: 0.15rem;
  padding-bottom: 0.75rem;
}

.dna-svc-accordion #main .tex36-svcrow .service-item-body p { margin: 0; }

/* Trial ledger, then a matched pair of stills */
#main .tex36-trial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

#main .tex36-mods { display: grid; min-width: 0; }

#main .tex36-mod {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.28rem;
  align-items: start;
  padding: 0.9rem 0 1rem;
  border-top: 1px solid var(--dna-line);
}

#main .tex36-mods .tex36-mod:last-child { border-bottom: 1px solid var(--dna-line); }

#main .tex36-mod .tex36-num {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  font-size: 1.15rem;
  line-height: 1.25;
}

#main .tex36-mod h3 {
  grid-column: 2;
  grid-row: 1;
  min-height: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

#main .tex36-mod p {
  grid-column: 2;
  grid-row: 2;
  max-width: 46ch;
}

#main .tex36-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  min-width: 0;
  align-items: start;
}

#main .tex36-still {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.5rem;
  margin: 0;
}

#main .tex36-still img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--dna-surface-2);
}

#main .tex36-still figcaption { font-size: 0.92rem; }

#main .tex36-close { justify-items: start; }

@media (max-width: 860px) {
  #main .tex36-mast,
  #main .tex36-trial-grid {
    grid-template-columns: 1fr;
  }

  #main .tex36-mast-copy {
    padding: 2.25rem var(--tex36-pad) 1.6rem;
  }

  #main .tex36-mast h1 { max-width: 18ch; }

  #main .tex36-mast-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  #main .tex36-stills { grid-template-columns: 1fr; }
}

#conditions,
#trial {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

@media (max-width: 640px) {
  #main .tex36-band { padding: 2.75rem 0; }
  #main .tex36-mast h1 { max-width: none; }
  #main .tex36-mast-visual { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .dna-svc-accordion #main .tex36-svcrow .service-item-body { transition: none; }
}
