/* Shared website / Text to Speech header and footer. Edit this source,
   then run scripts/website/sync_chrome.py to update the tool copy. */
.site-header { line-height: 1.5; }
.site-header a { text-decoration: none; }
.brand { text-decoration: none; }
.brand img { display: block; }
/* ------------ Header / Nav ------------ */
.site-header {
  height: auto;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--brand-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--brand-ink);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--brand-red); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--brand-red);
  color: white !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); text-decoration: none; }

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
@media (max-width: 800px) {
  .nav-ready .nav-links { display: none; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .nav-ready .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: white;
    border-bottom: 1px solid var(--brand-line);
  }
  .nav-links.is-open li { padding: 12px 0; border-bottom: 1px solid var(--brand-soft); }
  .nav-links.is-open .nav-cta { justify-content: center; margin-top: 12px; }
}


/* ------------ Footer ------------ */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--brand-line);
  color: var(--brand-muted);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--brand-line);
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: var(--brand-muted); }
.footer-col a:hover { color: var(--brand-red); text-decoration: none; }
.footer-brand p { margin: 12px 0 0; }
.footer-bottom {
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Navigation additions for Web Tools / Apps / Resources. */
.nav-links a { text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: -3px 2px 0; }
.nav-dropdown[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.nav-dropdown.current-section > summary { color: var(--brand-red); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: -16px; min-width: 200px; list-style: none; margin: 0; padding: 8px; background: white; border: 1px solid var(--brand-line); border-radius: 12px; box-shadow: 0 12px 32px #0f172a12; }
.nav-menu li { margin: 0; }
.nav-menu a { display: flex; justify-content: space-between; gap: 18px; border-radius: 6px; padding: 10px 12px; }
.nav-menu a:hover, .nav-menu a[aria-current] { background: #fff2f3; color: #bd2534; }

.footer-inner { grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr; gap: 28px; }
.site-footer { line-height: 1.6; background: white; }
.site-footer a { text-decoration: none; }
.footer-brand p { max-width: 220px; }
.footer-bottom a { color: var(--brand-muted); }
.nav-links a[aria-current], .nav-dropdown.current-section > summary { color: var(--brand-red); }
.nav-dropdown > summary { font-family: inherit; }
.nav-toggle { font: inherit; }
.site-header :is(a, button, summary):focus-visible, .site-footer a:focus-visible {
  outline: 3px solid #e6394670; outline-offset: 4px;
}
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: white; color: var(--brand-ink); }
.skip-link:focus { top: 10px; }
#main:focus { outline: none; }
#main { scroll-margin-top: calc(var(--header-height, 73px) + 16px); }
@media (max-width: 800px) {
  .nav { flex-wrap: wrap; }
  .site-header:not(.nav-ready) .nav-links { flex-wrap: wrap; }
  .nav-ready .nav-links.is-open { max-height: calc(100dvh - var(--header-height, 73px)); overflow: auto; }
  .nav-ready .nav-links.is-open .nav-menu li { padding: 0; border: 0; }
  .nav-dropdown > summary { padding: 4px 0; justify-content: space-between; }
  .nav-menu { position: static; border: 0; box-shadow: none; padding: 10px 0 0; }
  .nav-menu a { padding: 10px 12px; }
  .nav-links { width: 100%; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-footer * { transition: none; scroll-behavior: auto; }
}
