/* TGD 30th anniversary — larger emblem, with approved V14 header unchanged. */
.site-header .nav-wrap > .tgd-anniversary-header {
  display: flex;
  flex: 0 0 auto;
  width: clamp(146px, 11.4vw, 180px);
  margin-inline: 6px 8px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 0;
}
.site-header .tgd-anniversary-header img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  border: 0;
}
/* Do not reduce space available to the existing desktop navigation. */
@media (min-width: 768px) and (max-width: 1299px) {
  .site-header .nav-wrap > .tgd-anniversary-header { display: none; }
}
/* Mobile: anniversary emblem in its own row BELOW the original TGD logo.
   Existing header content remains functional and is not replaced. */
@media (max-width: 767px) {
  .site-header .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 5px;
  }
  .site-header .nav-wrap > .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    max-width: calc(100% - 48px);
  }
  .site-header .nav-wrap > .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  .site-header .nav-wrap > .tgd-anniversary-header {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: clamp(132px, 37vw, 175px);
    margin: 0 0 0 4px;
    padding: 0;
  }
  .site-header .tgd-anniversary-header img {
    max-height: 88px;
  }
  .site-header .nav-wrap > .tgd-header-quote {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    align-self: center;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 220px;
    margin: 0 0 6px 0;
    padding: 10px 8px;
    gap: 6px;
    font-size: clamp(10px, 2.85vw, 13px);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Keep the existing navigation container in flow only when opened;
     the site's own visibility and menu behavior remain authoritative. */
  .site-header .nav-wrap > #site-nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
@media (max-width: 375px) {
  .site-header .nav-wrap > .tgd-anniversary-header {
    width: 132px;
    margin-left: 2px;
  }
}

/* Compact CTA icons only on mobile; the approved emblem stays in place. */
@media (max-width: 767px) {
  .site-header .nav-wrap > .tgd-header-quote .tgd-doc-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  .site-header .nav-wrap > .tgd-header-quote .tgd-arrow-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }
  .site-header .nav-wrap > .brand img {
    max-width: 100%;
    height: auto;
  }
}
@media (max-width: 360px) {
  .site-header .nav-wrap { column-gap: 6px; }
  .site-header .nav-wrap > .tgd-anniversary-header {
    width: min(130px, 100%);
  }
  .site-header .nav-wrap > .tgd-header-quote {
    font-size: 10px;
    padding-inline: 5px;
    gap: 4px;
  }
}
