/* Mid-size screens have room for a two-panel hero with a wider text column. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .tally-site .tally-home .hero-title { grid-column: span 7; }
  .tally-site .tally-home .hero-side { grid-column: span 5; }
  .tally-site .tally-home .hero h1 { font-size: clamp(48px, 5vw, 60px); }
  .tally-site .tally-home .hero-side { gap: 16px; }
}

.tally-site .tally-home .hero-case-link {
  grid-column: 1 / -1;
  width: fit-content;
  padding-block: 8px;
  border-top: 0;
}

.tally-site .request-fast-contact { display: none; }

@media (max-width: 800px) {
  .tally-site .request-intake { padding-block-start: 16px; }
  .tally-site .request-intake .request-layout { row-gap: 16px; }
  .tally-site .request-intake .request-intro .lede { margin-top: 8px; }
  .tally-site .request-card { --field-line: #747671; padding: 16px; }
  [data-theme="dark"] .tally-site .request-card { --field-line: #81848a; }
  .tally-site .request-fast-contact { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; }
  .tally-site #request-description-hint { min-block-size: 0; }
  .tally-site .request-form-inputs { gap: 12px; }
  .tally-site .request-card .request-field { gap: 4px; }
  .tally-site .request-card .request-contact { padding-block-start: 8px; }
  .tally-site #request-contact-hint { margin-block-end: 8px; }
  .tally-site .request-card .request-fields { gap: 8px 12px; }
  .tally-site .request-card :is(input:not([type="radio"]), textarea) { font-size: 16px; }
  .tally-site .request-card input:not([type="radio"]) { min-height: 44px; }
  .tally-site .request-card .request-scenarios label { min-height: 44px; padding-block: 6px; font-size: var(--f-sm); }
  .tally-site .request-submit .link { min-block-size: 44px; }
  .tally-site .blog-control-query input { min-block-size: 44px; font-size: 16px; }
}

@media (min-width: 320px) and (max-width: 480px) {
  .tally-site .request-card :is(.request-fields, .request-scenarios) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally-site .request-card .request-fields .request-field { align-content: end; }
  .tally-site .request-card .request-fields label { font-size: var(--f-sm); }
}

@media (min-width: 320px) and (max-width: 359px) {
  .tally-site .request-card .request-scenarios label { padding-inline: 6px; gap: 5px; }
}

@media (max-width: 760px) {
  .tally-site .tally-home .hero > .grid { row-gap: 0; }
  .tally-site .tally-home .hero-title { border-bottom: 0; border-radius: 4px 4px 0 0; padding-block: 18px 8px; }
  .tally-site .tally-home .hero-title::before { clip-path: inset(0 0 50%); }
  .tally-site .tally-home .hero h1 { font-size: clamp(31px, 8.25vw, 51px); line-height: 1.04; }
  .tally-site .tally-home .hero-side { border-top: 0; border-radius: 0 0 4px 4px; gap: 12px; padding-block: 4px 16px; }
  .tally-site .tally-home .hero-side::before { clip-path: inset(50% 0 0); }
  .tally-site .tally-home .hero-side p { font-size: 16px; line-height: 1.45; max-width: 42ch; }
  .tally-site .tally-home .hero-side .watch { padding-top: 10px; }
  .tally-site .tally-home .hero-art { margin-top: 12px; }
  .tally-site .chamber-labels { font-size: 11px; letter-spacing: 0; text-transform: none; padding-inline: 8px; gap: 6px; }
  .tally-site .tally-home .readout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 8px;
    padding-block: 0 10px;
  }
  .tally-site .tally-home .readout p { grid-column: 1 / -1; grid-row: 2; }
  .tally-site .tally-home .readout .go { min-height: 44px; grid-column: 2; grid-row: 1; }
  .tally-site .bar .theme,
  .tally-site .bar .menu summary { min-height: 44px; }
  .tally-site .bar .theme { width: 44px; }
}

@media (max-width: 752px) {
  .evidence-page .signal-controller .controller-symbol {
    inline-size: min(100%, 5.6rem);
    min-inline-size: 0;
  }
  .knowledge :is(.blog-contents, .technical-index) { padding-block-end: 6px; }
  .knowledge :is(.blog-contents, .technical-index) a { overflow-wrap: anywhere; }
}
