/* TTC Network v1.2.11 — Mobile sections follow their own Gallery, like TTC Project Showcase.
 * The gallery/card model, desktop sticky navigator, and lightbox are NOT changed.
 */
.ttcn .ttcn__mobile-heading { display: none; }

@media (max-width: 849px) {
  /* No independent tab strip at the beginning on phones and tablets. */
  .ttcn .ttcn__sidebar { display: none !important; }
  .ttcn .ttcn__layout { display: block; width: 100%; }
  .ttcn .ttcn__feed { width: 100%; min-width: 0; }
  .ttcn .ttcn-group { scroll-margin-top: 85px; }

  /* The heading belongs to its Card group: Gallery ends, next heading begins. */
  .ttcn .ttcn__mobile-heading {
    display: block;
    position: relative;
    width: 100%;
    background: var(--ttcn-primary, var(--primary-color, #e8aa29));
    color: #fff;
    padding: 21px max(20px, calc((100vw - 760px)/2)) 22px;
  }
  .ttcn .ttcn__mobile-heading-inner { max-width: 760px; margin: 0 auto; }
  .ttcn .ttcn__mobile-heading-title {
    margin: 0 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: clamp(19px, 4vw, 24px);
    line-height: 1.26;
    font-weight: 750;
    overflow-wrap: anywhere;
  }
  .ttcn .ttcn__mobile-heading-desc {
    margin: 8px 0 0 !important;
    max-width: 670px;
    color: #fff !important;
    font-size: 13px;
    line-height: 1.5;
  }
  .ttcn .ttcn__content { padding: 23px 20px 48px; }
  .ttcn .ttcn__content-inner { max-width: 760px; margin: 0 auto; padding: 0; }
  .ttcn .ttcn__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
  /* Animate individual headings, never their parent or any sticky ancestor. */
  .ttcn.ttcn--reveal.has-reveal .ttcn__mobile-heading-inner {
    opacity: 0;
    transform: translateY(9px);
    transition: opacity .36s ease, transform .36s ease;
  }
  .ttcn.ttcn--reveal.has-reveal .ttcn__mobile-heading-inner.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 549px) {
  .ttcn .ttcn__mobile-heading { padding: 19px 16px 20px; }
  .ttcn .ttcn__mobile-heading-title { font-size: 20px; }
  .ttcn .ttcn__mobile-heading-desc { font-size: 12px; line-height: 1.55; }
  .ttcn .ttcn__content { padding: 17px 16px 32px; }
  .ttcn .ttcn__grid { grid-template-columns: minmax(0,1fr); gap: 16px; max-width: 480px; margin: 0 auto; }
  .ttcn .ttcn-tile:nth-child(even) { top: 0; }
  .ttcn .ttcn-tile__surface, .ttcn button.ttcn-tile__surface { aspect-ratio: 1.12; }
  .ttcn .ttcn-tile__title { font-size: 16px; top: 50px; }
  .ttcn .ttcn-tile__side { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ttcn .ttcn__mobile-heading-inner { opacity: 1 !important; transform: none !important; transition: none !important; }
}
