@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color: #1a1a2e;
  background: #fafafa;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* Navigation */
.site-header { background: #fff; border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; z-index: 40; }
.header-inner { align-items: center; display: flex; height: 64px; justify-content: space-between; margin: 0 auto; max-width: 1152px; padding: 0 16px; }
.brand { align-items: center; display: flex; height: 64px; text-decoration: none; }
.brand img { height: 80px; object-fit: contain; width: auto; }
.desktop-nav { align-items: center; display: flex; gap: 4px; }
.desktop-nav > a { border-radius: 8px; color: #4b5563; font-size: 14px; font-weight: 500; padding: 8px 12px; text-decoration: none; transition: background .15s, color .15s; white-space: nowrap; }
.desktop-nav > a:hover, .desktop-nav > a.router-link-active { background: #f9fafb; color: #111827; }
.desktop-nav .primary-nav-link { background: #f97316; color: #fff; margin-left: 4px; padding-inline: 16px; }
.desktop-nav .primary-nav-link:hover { background: #ea580c; color: #fff; }
.account-menu { margin-left: 5px; position: relative; }
.account-avatar { align-items: center; background: #ffedd5; border: 0; border-radius: 999px; color: #ea580c; display: flex; font-size: 14px; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.account-dropdown { background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; box-shadow: 0 10px 25px rgb(0 0 0 / 10%); opacity: 0; padding: 8px 0; pointer-events: none; position: absolute; right: 0; top: 42px; transform: translateY(-4px); transition: .15s; width: 192px; }
.account-menu:hover .account-dropdown, .account-menu:focus-within .account-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.account-summary { border-bottom: 1px solid #f9fafb; display: grid; gap: 3px; padding: 8px 16px 10px; }
.account-summary strong { color: #111827; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.account-summary span { color: #6b7280; font-size: 12px; }
.account-dropdown a, .account-dropdown button { background: none; border: 0; color: #374151; display: block; font-size: 14px; padding: 9px 16px; text-align: left; text-decoration: none; width: 100%; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #f9fafb; }
.account-dropdown button { color: #dc2626; }
.mobile-menu-button { align-items: center; background: transparent; border: 0; border-radius: 8px; display: none; flex-direction: column; gap: 5px; height: 42px; justify-content: center; width: 42px; }
.mobile-menu-button:hover { background: #f3f4f6; }
.mobile-menu-button span { background: #374151; display: block; height: 2px; width: 20px; }
.mobile-menu { background: #fff; border-top: 1px solid #f3f4f6; box-shadow: 0 6px 12px rgb(0 0 0 / 7%); display: none; flex-direction: column; padding: 12px 16px; }
.mobile-menu a, .mobile-menu button { background: transparent; border: 0; border-radius: 10px; color: #374151; font-size: 15px; font-weight: 500; min-height: 44px; padding: 12px 16px; text-align: left; text-decoration: none; width: 100%; }
.mobile-menu a:hover, .mobile-menu button:hover { background: #f9fafb; }
.mobile-menu .mobile-primary { background: #f97316; color: #fff; margin-top: 6px; text-align: center; }
.app-main { min-height: calc(100vh - 64px); }

.site-footer { background: #111827; color: #9ca3af; }
.footer-inner { display: grid; gap: 48px; grid-template-columns: 1.5fr repeat(3, 1fr); margin: 0 auto; max-width: 1152px; padding: 48px 16px 40px; }
.footer-brand img { height: 70px; margin: -18px 0 -5px; width: auto; }
.footer-brand p { color: #6b7280; font-size: 12px; line-height: 1.6; max-width: 210px; }
.site-footer h2 { color: #fff; font-size: 12px; letter-spacing: .08em; margin: 0 0 14px; text-transform: uppercase; }
.site-footer a { display: block; font-size: 14px; margin: 0 0 10px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-pending { color: #6b7280; display: block; font-size: 14px; margin: 0 0 10px; }
.footer-bottom { border-top: 1px solid #1f2937; font-size: 12px; margin: 0 auto; max-width: 1120px; padding: 24px 0 30px; }


@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .mobile-menu-button, .mobile-menu { display: flex; }
}
@media (max-width: 700px) {
  .footer-inner { gap: 30px; grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-inline: 16px; }
}
/* Server-rendered pages use a native menu that also works without JavaScript. */
.public-mobile-menu { display: none; }
.public-mobile-menu summary { list-style: none; cursor: pointer; }
.public-mobile-menu summary::-webkit-details-marker { display: none; }
.public-mobile-menu .mobile-menu { position: absolute; left: 0; right: 0; top: 64px; }
@media (max-width: 1020px) { .public-mobile-menu { display: block; } }
