/* Cartdini's shared navigation and footer. Scoped to the public site shell. */
html { scroll-padding-top: 8rem; }
body > .site-header {
  --shell-ink: #12251e;
  position: sticky; top: 1rem; z-index: 80;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  width: calc(100% - 3rem); max-width: 1380px; min-height: 78px; height: auto;
  margin: 1rem auto; padding: .75rem 1rem .75rem 1.5rem; gap: 1.5rem;
  border: 1px solid #ffffff1f; border-radius: 18px;
  background: #12251ef5; color: #f7fff1;
  box-shadow: 0 8px 28px #10281c18, inset 0 1px 0 #ffffff0a;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.site-brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.075em; font-weight: 800; }
.site-mark { display: inline-flex; align-items: center; justify-content: center; color: #c2fa72; font-size: 2.25rem; font-weight: 400; line-height: 1; letter-spacing: 0; }
body > .site-header > .site-navigation { display: flex; flex: 0 1 auto; flex-wrap: wrap; min-width: 0; order: 0; align-items: center; justify-content: center; width: auto; gap: .15rem; font-size: .875rem; font-weight: 500; }
.site-header .site-nav-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem .85rem; color: #e3ece5; border-radius: 9px; white-space: nowrap; transition: background .18s, color .18s; }
.site-header .site-nav-link:hover, .site-header .site-nav-link[aria-current], .site-resources[open] > summary { background: #ffffff0d; color: #c2fa72; }
.site-header .site-account { margin-left: .5rem; color: #b6c5bb; }
.site-header-actions { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.site-download { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 46px; padding: .7rem 1rem; border: 1px solid #c2fa72; border-radius: 10px; background: #c2fa72; color: #12251e; font-size: .875rem; font-weight: 750; white-space: nowrap; transition: background .18s, box-shadow .18s; }
.site-download:hover { background: #d6ff9e; box-shadow: 0 0 0 4px #c2fa7212; }
.site-download svg, .site-footer-demo svg { width: 19px; height: 19px; flex-shrink: 0; }
.site-resources { position: relative; }
.site-resources summary { list-style: none; cursor: pointer; }
.site-resources summary::-webkit-details-marker { display: none; }
.site-resources summary > svg { width: 15px; height: 15px; transition: transform .18s; }
.site-resources[open] summary > svg { transform: rotate(180deg); }
.site-resource-panel { position: absolute; top: calc(100% + 1.25rem); left: 50%; transform: translateX(-50%); width: 342px; padding: 1.25rem; border: 1px solid #35483d; border-radius: 16px; background: #14271f; box-shadow: 0 18px 48px #09180d40; }
.site-nav-caption { margin: 0 0 .7rem; color: #92a78f; font-size: .75rem; font-weight: 650; letter-spacing: .12em; }
.site-resource-panel > a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .85rem .65rem; border-radius: 8px; }
.site-resource-panel > a:hover, .site-resource-panel > a[aria-current] { background: #ffffff08; }
.site-resource-panel > a > span { color: #f4f9ef; font-size: 1rem; font-weight: 600; }
.site-resource-panel > a > small { color: #adbdaf; font-size: .875rem; font-weight: 400; grid-column: 1; }
.site-resource-panel > a > svg { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #c2fa72; width: 18px; height: 18px; }
.site-resource-bottom { display: flex; gap: 1.2rem; margin-top: .6rem; padding: 1rem .65rem 0; border-top: 1px solid #ffffff18; }
.site-resource-bottom a { font-size: .875rem; color: #c2fa72; text-underline-offset: 4px; }
.site-resource-bottom a:hover { text-decoration: underline; }
.site-menu-toggle { display: none; background: #ffffff08; border: 1px solid #ffffff29; border-radius: 9px; width: 44px; height: 44px; padding: 12px; color: #f5ffea; cursor: pointer; }
.site-menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .2s; }
.site-header[data-menu-open] .site-menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-header[data-menu-open] .site-menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.site-header :focus-visible, .site-footer :focus-visible { outline: 2px solid #c2fa72; outline-offset: 4px; }
.site-header .site-download:focus-visible { outline-color: white; }
.skip-link { z-index: 100; }
.docs-nav, .guide-nav, .blog-toc { top: 8rem; }
.site-footer {
  display: block; margin: 0; padding: 0 6%; background: #10241b; color: #f2faed;
  border: 0; border-top: 1px solid #a8cf6c35; border-radius: 0; overflow: hidden;
}
.site-footer-main { display: grid; grid-template-columns: 1.55fr 1fr 1.2fr .9fr; gap: 3rem; max-width: 1380px; margin: auto; padding: 4.5rem 0 3.5rem; }
.site-footer-intro > p { margin: 1.75rem 0 1.25rem; font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.3; font-weight: 500; letter-spacing: -.035em; }
.site-footer-intro > p > span { color: #a7b9a7; }
.site-footer a.site-brand { color: #f2faed; font-size: 1.9rem; text-decoration: none; }
.site-footer a.site-footer-demo { display: inline-flex; align-items: center; gap: .85rem; color: #c2fa72; font-size: .9375rem; text-decoration: none; min-height: 44px; }
.site-footer a.site-footer-demo:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.site-footer-group h2 { margin: .45rem 0 1.15rem; color: #a4b89c; font-size: .75rem; letter-spacing: .14em; font-weight: 650; line-height: 1.5; }
.site-footer .site-footer-group a { display: inline-flex; align-items: center; min-height: 40px; padding: .25rem 0; font-size: .9375rem; line-height: 1.45; text-decoration: none; color: #e1ecdd; transition: color .18s; }
.site-footer .site-footer-group a:hover { color: #c2fa72; text-decoration: underline; text-underline-offset: 5px; }
.site-footer .site-footer-group .site-back-top { margin-top: 1.4rem; color: #a4b89c; font-size: .875rem; }
.site-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; max-width: 1380px; margin: auto; padding: 1.5rem 0 1.75rem; border-top: 1px solid #a7be9229; color: #afbfaa; font-size: .8125rem; }
.site-footer-bottom p { margin: 0; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; max-width: none; }
.site-footer .footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: #d1deca; font-size: .875rem; text-decoration: none; }
.site-footer .footer-links a:hover { color: #c2fa72; text-decoration: underline; text-underline-offset: 4px; }
.site-footer-note { color: #bcd39e; }
@media (max-width: 1060px) {
  body > .site-header { flex-wrap: wrap; gap: 0; padding: .8rem 1rem; }
  body > .site-header > .site-navigation { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; order: 3; width: 100%; padding-top: .8rem; margin-top: .8rem; border-top: 1px solid #ffffff1c; }
  .site-header[data-nav-ready] > .site-navigation { display: none; }
  .site-header[data-menu-open] > .site-navigation { display: flex; max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header[data-nav-ready] .site-menu-toggle { display: block; }
  .site-header .site-nav-link { display: flex; font-size: 1rem; padding: .8rem .75rem; min-height: 48px; }
  .site-header .site-account { margin: 0; }
  .site-resources summary { justify-content: space-between; }
  .site-resource-panel { position: static; width: auto; transform: none; box-shadow: none; margin: 0 .4rem .5rem; padding: 1rem; border-radius: 10px; background: #ffffff04; }
  .site-footer-main { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 3rem; }
  .site-footer-intro { grid-column: 1 / -1; }
  .site-footer-intro > p { margin-top: 1.25rem; }
  .site-footer-note { display: none; }
}
@media (max-width: 600px) {
  body > .site-header { top: .6rem; width: calc(100% - 1.2rem); margin: .6rem auto; min-height: 70px; padding: .65rem .75rem; border-radius: 14px; }
  .site-header .site-brand { font-size: 1.6rem; gap: .35rem; }
  .site-header .site-mark { font-size: 1.9rem; }
  .site-header-actions { gap: .45rem; }
  .site-download { padding: .55rem .7rem; min-height: 42px; gap: .55rem; }
  .site-download svg { width: 16px; }
  .site-menu-toggle { width: 42px; height: 42px; padding: 11px; }
  .site-footer { padding: 0 6%; }
  .site-footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 1.3rem; padding: 2.75rem 0 2.5rem; }
  .site-footer-intro { grid-column: 1 / -1; }
  .site-footer-group h2 { margin-bottom: .6rem; }
  .site-footer .site-footer-group a { min-height: 44px; font-size: .875rem; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.4rem 0; }
}
@media (max-width: 360px) {
  .site-header .site-brand { font-size: 1.4rem; }
  .site-header .site-mark { font-size: 1.65rem; }
  .site-download { gap: .35rem; padding-inline: .6rem; }
  .site-download svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-footer * { transition: none !important; }
}
