@layer footer {
  body.gt-footer-page { padding-bottom: 0; }
  .gt-page-top { height: 0; scroll-margin-top: 0; outline: none; }
  .gt-footer {
    --footer-bg: #102735;
    --footer-ink: #eef3f6;
    --footer-muted: #b7c3cb;
    --footer-quiet: #9eafb9;
    --footer-line: #2e4350;
    background: var(--footer-bg);
    color: var(--footer-ink);
    border-top: 1px solid #3a5362;
    font-size: .875rem;
    line-height: 1.6;
    text-align: left;
  }
  .gt-footer__inner {
    width: min(1312px, calc(100% - 2 * var(--gt-gutter, 24px)));
    margin-inline: auto;
    padding-block: clamp(32px, 3.2vw, 44px) calc(28px + env(safe-area-inset-bottom));
  }
  /* Reserve only the space required by the controls actually present. */
  .gt-footer-page:has(.gt-assistant-trigger) .gt-footer__inner {
    padding-bottom: calc(var(--gt-assistant-bottom, 22px) + 72px + env(safe-area-inset-bottom));
  }
  .gt-footer-page:has(.gt-assistant-trigger) .gt-footer a {
    scroll-margin-block: calc(var(--gt-header-height, 84px) + 16px) calc(var(--gt-assistant-bottom, 22px) + 72px + env(safe-area-inset-bottom));
  }
  .gt-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    max-width: 100%;
    color: var(--footer-muted);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    overflow-wrap: anywhere;
    transition: color 160ms ease, border-color 160ms ease;
  }
  .gt-footer p { margin: 0; }
  .gt-footer__brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--footer-line);
  }
  .gt-footer__brand { flex-shrink: 0; }
  .gt-footer__brand img { width: 248px; height: auto; filter: brightness(0) invert(1); }
  .gt-footer__signature { text-align: right; font-size: .875rem; line-height: 1.6; }
  .gt-footer__signature span { display: block; margin-top: 4px; color: var(--footer-quiet); font-size: .8125rem; }
  .gt-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    padding-block: 32px;
  }
  .gt-footer__grid > * { min-width: 0; }
  .gt-footer h2 {
    margin: 0 0 12px;
    color: var(--footer-ink);
    font-size: .8125rem;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: .015em;
    text-wrap: balance;
  }
  .gt-footer__contact > a, .gt-footer__location-links > a { display: flex; width: fit-content; }
  .gt-footer .gt-footer__email { color: var(--footer-ink); font-size: clamp(1rem, 1.35vw, 1.125rem); font-weight: 450; letter-spacing: -.015em; }
  .gt-footer .gt-footer__project {
    justify-content: space-between;
    width: min(100%, 230px);
    gap: 24px;
    margin-top: 8px;
    min-height: 48px;
    padding-block: 10px;
    border-bottom: 1px solid #718794;
    color: var(--footer-ink);
    font-weight: 550;
  }
  .gt-footer__explore ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; max-width: 264px; margin: 0; padding: 0; list-style: none; }
  .gt-footer__location address { margin: 0 0 8px; padding-top: calc((44px - 1.6em) / 2); font: inherit; color: var(--footer-muted); }
  .gt-footer__reach {
    max-width: 34ch;
    margin: 2px 0 10px;
    color: var(--footer-quiet);
    font-size: .8125rem;
    line-height: 1.55;
  }
  .gt-footer__install {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, 230px);
    min-height: 44px;
    margin-top: 10px;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 1px solid #566f7d;
    background: transparent;
    color: var(--footer-muted);
    font: inherit;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease;
  }
  .gt-footer__install[hidden] { display: none; }
  .gt-footer__install:is(:hover, :focus-visible) {
    border-color: #d8e6ee;
    color: #fff;
  }
  .gt-footer__install:focus-visible {
    outline: 2px solid #9ed7ff;
    outline-offset: 4px;
    border-radius: 2px;
  }
  .gt-footer__install-note {
    max-width: 34ch;
    margin-top: 8px;
    color: var(--footer-quiet);
    font-size: .75rem;
    line-height: 1.55;
  }
  .gt-footer__arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .gt-footer__legal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 12px;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-quiet);
    font-size: .8125rem;
  }
  .gt-footer__legal-row nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .gt-footer__protection { padding-block: 16px; border-bottom: 1px solid var(--footer-line); color: var(--footer-quiet); font-size: .75rem; line-height: 1.65; overflow-wrap: anywhere; }
  .gt-footer__protection p { margin: 0; max-width: 100ch; }
  .gt-footer__protection strong { color: #d8e6ee; font-weight: 600; }
  .gt-footer__protection a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
  .gt-footer__colophon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 20px; font-size: .75rem; }
  .gt-footer__legal-row a, .gt-footer__colophon a { color: var(--footer-quiet); }
  .gt-footer__colophon a:last-child { white-space: nowrap; }
  /* Keep interaction states after all variants so every link responds equally. */
  .gt-footer a:is(:hover, :focus-visible, [aria-current="page"]) { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .gt-footer a:focus-visible { outline: 2px solid #9ed7ff; outline-offset: 4px; border-radius: 2px; box-shadow: none; }
  .gt-footer .gt-footer__project:is(:hover, :focus-visible) { border-color: #d8e6ee; text-decoration: none; }
  .gt-footer a:active { color: #c6e6f9; }
  @media (min-width: 561px) and (max-width: 980px) {
    .gt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
    .gt-footer__location { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; gap: 0 40px; padding-top: 24px; border-top: 1px solid var(--footer-line); }
    .gt-footer__location h2 { grid-column: 1 / -1; margin-bottom: 8px; }
    .gt-footer__location address { margin: 0; }
  }
  @media (max-width: 980px) {
    .gt-footer__legal-row { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 560px) {
    .gt-footer__brand-row { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 24px; }
    .gt-footer__brand img { width: 232px; }
    .gt-footer__signature { text-align: left; }
    .gt-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px; }
    .gt-footer__explore, .gt-footer__location { border-top: 1px solid var(--footer-line); padding-top: 24px; }
    .gt-footer__explore ul { max-width: none; }
    .gt-footer__legal-row { gap: 8px; }
    .gt-footer__legal-row nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { .gt-footer a, .gt-footer__install { transition: none; } }
  @media (forced-colors: active) {
    .gt-footer__brand { background: #102735; forced-color-adjust: none; }
    .gt-footer .gt-footer__project { border-color: LinkText; }
    .gt-footer a:focus-visible { outline-color: Highlight; }
  }
  @media print {
    .gt-footer { background: #fff; color: #000; border-color: #777; break-inside: avoid; }
    .gt-footer__inner, .gt-footer-page:has(.gt-assistant-trigger) .gt-footer__inner { padding-block: 20px; }
    .gt-footer__brand img { filter: none; }
    .gt-footer__grid, .gt-footer__legal-row, .gt-footer__colophon { display: none; }
    .gt-footer__signature span { color: #333; }
  }
}
