/*
 * The site header and footer, identical on every page (home, docs, dashboard, connect,
 * AI agents, terms, privacy). Written by scripts/site-chrome.mjs; self-contained values so a
 * page's own styles can't change its size or spacing.
 */
html { scrollbar-gutter: stable; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .84); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid #e7e1d7; }
.site-header .site-wrap { box-sizing: border-box; width: min(1440px, 100% - 64px); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: #14120f; text-decoration: none; white-space: nowrap; font: 700 17px/1 "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; letter-spacing: -.01em; }
.site-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #e11d2a; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(225, 29, 42, .6); }
.site-mark svg { width: 24px; height: 24px; display: block; }
.site-nav { display: flex; align-items: center; gap: 26px; font: 500 15px/1 "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; color: #4b473f; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #14120f; }
.site-nav .site-btn { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; white-space: nowrap; cursor: pointer; border: 1px solid #d9d2c5; background: transparent; color: #14120f; font: inherit; font-weight: 600; }
[hidden].site-btn, .site-nav [hidden] { display: none !important; }
.site-nav .site-btn.primary { background: #14120f; border-color: #14120f; color: #fff; }
.site-nav .site-btn.primary:hover { background: #2a2721; color: #fff; }

/* Signed in (set by /chrome.js): the account and its menu take the place of Sign in and the buttons. */
.site-header.signed-in .site-nav > a[href="/dashboard"], .site-header.signed-in .site-nav > .site-btn { display: none !important; }
.site-nav .account { position: relative; }
.site-nav .account-btn { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid #d9d2c5; background: #fff; color: #14120f; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.site-nav .account-btn:hover, .site-nav .account-btn[aria-expanded="true"] { border-color: #726d64; }
.site-nav .account-btn svg { width: 14px; height: 14px; color: #726d64; }
.site-nav .avatar { width: 30px; height: 30px; border-radius: 50%; background: #15130f; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.site-nav .account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 252px; box-sizing: border-box; background: #fff; border: 1px solid #e7e1d7; border-radius: 16px; box-shadow: 0 1px 2px rgba(20, 18, 15, .05), 0 24px 48px -24px rgba(20, 18, 15, .22); padding: 8px; display: grid; gap: 2px; z-index: 60; }
.site-nav .account-who { display: grid; gap: 3px; padding: 10px 12px 13px; margin-bottom: 6px; border-bottom: 1px solid #e7e1d7; line-height: 1.25; }
.site-nav .account-who strong { font-size: 15px; font-weight: 600; color: #14120f; }
.site-nav .account-who span { font-size: 13.5px; font-weight: 400; color: #726d64; overflow-wrap: anywhere; }
.site-nav .account-menu a, .site-nav .account-menu button { display: flex; align-items: center; width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 0; background: none; color: #14120f; font: inherit; font-weight: 500; font-size: 15px; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer; }
.site-nav .account-menu a:hover, .site-nav .account-menu button:hover { background: #f6f3ee; }
.site-nav .account-menu .danger { color: #d31b27; }

.site-footer { border-top: 1px solid #e7e1d7; background: #f6f3ee; padding: 56px 0 28px; font: 400 15px/1.5 "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; color: #4b473f; }
.site-footer .site-wrap { box-sizing: border-box; width: min(1440px, 100% - 64px); margin-inline: auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer .site-brand { color: #14120f; }
.site-foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; }
.site-foot-brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.site-foot-brand p { margin: 0; max-width: 300px; color: #726d64; }
.site-foot-app { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px; background: #14120f; color: #fff !important; line-height: 1.1; font-weight: 600; font-size: 16px; }
.site-foot-app:hover { background: #2a2721; }
.site-foot-app svg { width: 22px; height: 22px; flex: none; }
.site-foot-app small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
.site-foot-col { display: grid; gap: 10px; align-content: start; }
.site-foot-col h2 { margin: 0 0 6px; font: 500 12px/1.4 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #726d64; }
.site-foot-col a { width: fit-content; }
.site-foot-col a:hover { color: #14120f; }
.site-foot-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid #e7e1d7; font-size: 13.5px; color: #726d64; }

@media (max-width: 900px) and (min-width: 681px) {
  .site-foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .site-header .site-wrap, .site-footer .site-wrap { width: min(1440px, 100% - 40px); }
}
@media (max-width: 680px) {
  .site-nav { gap: 18px; }
  .site-nav .hide-sm { display: none; }
  .site-nav .account-btn { padding: 0 8px 0 5px; gap: 6px; }
  .site-nav .account-name { display: none; }
  /* A page action (Sign out) takes the button's place on phones. */
  .site-nav .site-btn:not([hidden]):not(.primary) ~ .site-btn.primary { display: none; }
  .site-footer { padding: 40px 0 24px; }
  .site-foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 32px; }
  .site-foot-brand { grid-column: 1 / -1; }
  .site-foot-bottom { flex-direction: column; }
}
