/* Product integration for the approved identity. Palette values are generated
   in brand-tokens.css; this file owns website component layout only. */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: max-content;
  padding: 18px;
  border-radius: 6px;
  background: var(--guidasha-night);
  text-decoration: none;
}
/* Complete outlined wordmark: 200 px wide with at least half-cap-height space. */
.brand-artwork { display: block; width: 200px; }
.brand-artwork img { display: block; width: 100%; height: auto; }
.site-nav, .nav { background: var(--guidasha-night); }
.site-nav { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 24px; }
.site-nav .nav-links { justify-self: center; }
.site-footer { background: var(--guidasha-night); }
@media (max-width: 980px) {
  .site-nav { grid-template-columns: minmax(0, 1fr) auto; }
}
/* A compact footer signature builds recognition of the standalone G.
   14 px clear space exceeds one quarter of the symbol's rendered height. */
.site-footer .brand--symbol { padding: 14px; }
.site-footer .brand--symbol .brand-artwork { width: 52px; }
.site-footer .brand--symbol .brand-artwork img { aspect-ratio: 460 / 404; }
/* Legal pages have a separate fixed header with four navigation choices. */
@media (max-width: 980px) {
  .legal-page .nav { display: grid; grid-template-columns: 1fr; row-gap: 9px; }
  .legal-page .nav-links { justify-content: center; flex-wrap: wrap; }
  .legal-page main { padding-top: 190px; }
}

/* Keep the full name visible on phones, with native disclosure navigation. */
.mobile-nav { display: none; }
@media (max-width: 640px) {
  .site-header .site-nav,
  .site-header .nav {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: calc(100vw - 24px);
    padding: 8px 10px;
  }
  .site-header .brand { padding: 16.2px; }
  .site-header .brand-artwork { width: 180px; }
  .site-header .nav-links,
  .site-header .nav-action { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--guidasha-dark-outline-variant);
    border-radius: 50%;
    color: var(--guidasha-soft-white);
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary:hover,
  .mobile-nav[open] summary {
    background: var(--guidasha-dark-surface-container);
    color: var(--guidasha-periwinkle);
  }
  .mobile-nav summary:focus-visible {
    outline: 3px solid var(--guidasha-lavender);
    outline-offset: 4px;
  }
  .mobile-nav-panel {
    position: absolute;
    z-index: 1;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 4px;
    width: min(280px, calc(100vw - 48px));
    max-height: calc(100vh - 128px);
    max-height: calc(100dvh - 128px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--guidasha-dark-outline-variant);
    border-radius: 20px;
    background: var(--guidasha-night);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
  }
  .mobile-nav-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--guidasha-soft-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
  }
  .mobile-nav-panel a:hover,
  .mobile-nav-panel a[aria-current="page"] {
    background: var(--guidasha-dark-surface-container);
  }
  .mobile-nav-panel .mobile-nav-action {
    margin-top: 4px;
    background: var(--guidasha-periwinkle);
    color: var(--guidasha-dark-on-primary);
  }
  .mobile-nav-panel .mobile-nav-action:hover,
  .mobile-nav-panel .mobile-nav-action[aria-current="page"] {
    background: var(--guidasha-lavender);
  }
}
@media (min-width: 375px) and (max-width: 640px) {
  .site-header .brand { padding: 18px; }
  .site-header .brand-artwork { width: 200px; }
}
