/* Contact: texstarchiroaustin.fit — split-left rooms, tabs around one phone field */

#main {
  background: var(--dna-bg);
  color: var(--dna-ink);
}

#main h1,
#main h2,
#main h3,
#main p,
#main span {
  margin: 0;
}

#main h1,
#main h2,
#main h3 {
  text-wrap: balance;
}

#main p,
#main li {
  text-wrap: pretty;
}

.tex36-contact {
  padding: 3.25rem 0 4.25rem;
}

.tex36-contact-head,
#main [data-contact-root] {
  width: min(var(--tex36-max), calc(100% - (2 * var(--tex36-pad))));
  margin-inline: auto;
}

.tex36-contact-head {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.tex36-contact-head p,
.tex36-locality,
.tex36-tabdetail,
.tex36-formnote,
.tex36-placehours span:first-child {
  color: var(--dna-ink-soft);
}

.tex36-contact-head a,
.tex36-reachitem a {
  color: var(--dna-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

#main [data-contact-root] {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2.5rem;
  align-items: start;
}

.tex36-info,
.tex36-book,
.tex36-tabbox,
.tex36-tabpanel,
.tex36-form,
.tex36-field,
.tex36-place,
.tex36-reachitem {
  min-width: 0;
}

.tex36-info {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 1.25rem;
}

.tex36-info > h2 {
  max-width: 22ch;
}

.tex36-placegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.5rem;
  align-items: stretch;
  width: 100%;
}

.tex36-place {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.4rem;
  align-content: start;
  padding: 0.85rem 0 0 0.8rem;
  border-top: 1px solid var(--dna-line);
  border-left: 3px solid transparent;
}

.tex36-place.is-current {
  border-left-color: var(--dna-accent);
}

.tex36-placelabel {
  color: var(--dna-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tex36-place h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tex36-placehours {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 0.75rem;
  row-gap: 0.3rem;
  align-content: start;
  justify-content: start;
}

.tex36-placehours p {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  column-gap: 0.75rem;
  align-items: baseline;
}

.tex36-placehours span:last-child {
  color: var(--dna-ink);
  font-weight: 700;
}

.tex36-reachline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  width: 100%;
  padding-top: 0.35rem;
}

.tex36-reachitem {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.tex36-tabbox {
  display: grid;
  align-content: start;
  background: var(--dna-surface);
  border: 1px solid var(--dna-line);
}

.tex36-tablist {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tex36-tab {
  min-height: 48px;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--dna-line);
  background: transparent;
  color: var(--dna-ink);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.tex36-tab + .tex36-tab {
  box-shadow: inset 1px 0 0 var(--dna-line);
}

.tex36-tab:nth-child(odd) {
  box-shadow: none;
}

.tex36-tab[aria-selected="true"] {
  background: var(--dna-accent);
  color: var(--dna-accent-ink);
}

.tex36-tabpanel {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem 1.25rem;
}

.tex36-tabpanel h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.tex36-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.tex36-form[hidden],
.tex36-error[hidden],
.tex36-success[hidden] {
  display: none;
}

.tex36-formnote {
  max-width: 36ch;
}

.tex36-field {
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.tex36-field span {
  color: var(--dna-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tex36-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--dna-ink) 42%, transparent);
  background: var(--dna-bg);
  color: var(--dna-ink);
}

.tex36-field input[aria-invalid="true"] {
  border-color: var(--dna-accent-2);
}

.tex36-error {
  color: var(--dna-ink);
  font-weight: 700;
}

.tex36-form button {
  min-height: 48px;
  padding: 0.55rem 1rem;
  border: 0;
  background: var(--dna-accent);
  color: var(--dna-accent-ink);
  font-weight: 700;
  cursor: pointer;
}

.tex36-form button:hover {
  background: var(--dna-accent-2);
}

.tex36-success {
  color: var(--dna-ink);
  font-family: Syne, "Avenir Next", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tex36-success:focus {
  outline: none;
}

.tex36-success:focus-visible {
  outline: 2px solid var(--dna-accent-2);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  #main [data-contact-root] {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .tex36-contact {
    padding: 2.25rem 0 3rem;
  }

  .tex36-contact-head {
    margin-bottom: 1.75rem;
  }

  .tex36-placegrid,
  .tex36-reachline,
  .tex36-tablist {
    grid-template-columns: 1fr;
  }

  .tex36-tab + .tex36-tab,
  .tex36-tab:nth-child(odd) {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tex36-form button:hover {
    background: var(--dna-accent);
  }
}
