/* gurva.in's header links and footer in the app (the same brand chrome as the website). Only on the start and
   sign-in screens: the class hides the header (class-v2.css) and the footer below. */
.top-nav { display: none; }
@media (min-width: 900px) {
  .top { align-items: center; }
  .top-nav { display: flex; gap: 1.4rem; margin-left: auto; }
  .top-nav a { color: var(--brand-ink-strong, #1E1B4B); font-weight: 600; text-decoration: none; padding: 0.4rem 0; }
  .top-nav a:hover { color: var(--accent-ink-text, #C2410C); }
  .top-nav + .lang-toggle { margin-left: 1rem; }
}
/* the header is the logo and the links, as on gurva.in: the brand line lives in the footer, not faint beside the logo */
.top > .topic { display: none; }
/* the lockup large enough for the Sanskrit motto to read (logo 1A, the Owner's master) */
[data-brand="v2"] .top > .wordmark { width: 228px; height: 64px; }
@media (max-width: 899px) { [data-brand="v2"] .top > .wordmark { width: 178px; height: 50px; } }
body:has(#lesson:not([hidden])) > .foot, body:has(.v2-room) > .foot { display: none; }
.foot .wrap { width: 100%; margin: 0 auto; box-sizing: border-box; }
.foot .btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.foot .btn-primary { background: #C2410C; color: #fff; }
.foot .btn-primary:hover { background: #9A3412; }
.foot .btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.foot .btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.foot { margin-top: 3rem; font-family: "Plus Jakarta Sans", "Mukta", system-ui, sans-serif; }
.foot { background: #090D16; color: #C9C7E6; padding: 3rem 0 0; font-size: 0.98rem; }
.foot a { color: #fff; text-decoration: none; }
.foot > .wrap { max-width: none; padding-left: clamp(1.25rem, 4vw, 4.5rem); padding-right: clamp(1.25rem, 4vw, 4.5rem); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot-top { display: grid; gap: 1.75rem; padding-bottom: 2.25rem; border-bottom: 1px solid #23264A; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr auto; gap: 3rem; align-items: end; } .foot-reach { justify-self: end; } .foot-reach .foot-cta, .foot-reach .foot-contact { justify-content: flex-end; } }
.foot .logo { display: inline-flex; margin-left: -0.6rem; border-radius: 0.6rem; }
.foot .logo img { height: 3.2rem; width: auto; }
.foot .brand-line { color: #FDBA74; font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0 0.35rem; }
.foot-about { margin: 0; max-width: 30rem; color: #ABA8CF; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.foot-contact a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.45rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid #2E3160; font-weight: 600; white-space: nowrap; }
.foot-contact a span { color: #FDBA74; font-weight: 700; font-size: 0.85rem; }
.foot-contact a:hover { background: rgba(255, 255, 255, 0.12); border-color: #4C4F8A; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; padding: 2.25rem 0; }
.foot-learn { grid-column: 1 / -1; }
.foot-learn ul { columns: 2; column-gap: 1.25rem; }
.foot-learn li { break-inside: avoid; }
@media (min-width: 900px) {
  .foot-nav { grid-template-columns: 2fr 1fr 1fr 0.9fr; gap: 2.5rem; }
  .foot-learn { grid-column: auto; }
}
.foot-h { font: 700 0.98rem/1.3 "Plus Jakarta Sans", "Mukta", system-ui, sans-serif; color: #fff; letter-spacing: 0; margin: 0 0 0.6rem; }
.foot-nav a { display: inline-block; padding: 0.4rem 0; color: #C9C7E6; line-height: 1.35; }
.foot-nav a:hover { color: #fff; }
.foot-nav a[aria-current="page"] { color: #FDBA74; }
.foot a:focus-visible { outline-color: #FDBA74; }
.foot-bar { border-top: 1px solid #23264A; padding: 1.25rem 0 1.75rem; }
.foot .legal-line { margin: 0; color: #8E8BB8; font-size: 0.86rem; line-height: 1.6; max-width: none; }
.foot .legal-line b { color: #D8D6F0; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .foot a { transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s; } }
/* With the footer showing (outside the class), the page scrolls like gurva.in instead of being one fixed screen. */
body:not(:has(#lesson:not([hidden]))):not(:has(.v2-room)) { height: auto; min-height: 100dvh; }
body:not(:has(#lesson:not([hidden]))):not(:has(.v2-room)) > main:not([hidden]) { flex: 1 0 auto; overflow: visible; }
/* On phones the gurva.in links sit behind a Menu button, as on the website. */
.top-menu { margin-left: auto; position: relative; align-self: center; }
.top-menu + .lang-toggle { margin-left: 0.6rem; }
.top-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border: 1.5px solid var(--border, #E2E8F0); border-radius: 999px; font-weight: 700; color: var(--brand-ink-strong, #1E1B4B); background: var(--card, #fff); }
.top-menu summary::-webkit-details-marker { display: none; }
.top-menu nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: flex; flex-direction: column; min-width: 12rem; padding: 0.5rem; background: var(--card, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 14px; box-shadow: 0 12px 28px var(--shadow-deep, rgba(15, 23, 42, 0.14)); }
.top-menu nav a { padding: 0.7rem 0.8rem; color: var(--brand-ink-strong, #1E1B4B); font-weight: 600; text-decoration: none; border-radius: 8px; }
.top-menu nav a:hover { background: var(--nav-hover, #EEF2FF); }
@media (min-width: 900px) { .top-menu { display: none; } }
body:has(#lesson:not([hidden])) .top-menu { display: none; }
/* "Gurva is AI and can make mistakes": above the footer's legal line */
.foot .ai-line { margin: 0 0 10px; font-size: 0.95rem; }
.foot .ai-line a { color: #D8D6F0; text-decoration: underline; text-underline-offset: 3px; }
