/* SiteShell chrome — mirrors prototype SiteShell.tsx */

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 5rem; /* pb-20 — room for phone tab bar */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 3.5rem; /* h-14 */
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.site-header__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  color: inherit;
  text-decoration: none;
}

.site-header__logo,
.site-footer__logo {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.site-footer__logo {
  width: 1.75rem;
  height: 1.75rem;
}

.site-header__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-header__link {
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-header__link:hover,
.site-header__link.is-active {
  color: var(--primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__login {
  display: none;
  align-items: center;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.site-header__menu,
.site-drawer__close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-header__menu:hover,
.site-drawer__close:hover {
  background: var(--muted);
}

.pr-shell-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Expiry under sticky header, above content */
.pr-widget-slot[data-pr-slot="expiry"] {
  position: relative;
  z-index: 30;
}

/* Drawer */
.site-drawer[hidden] {
  display: none;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.site-drawer__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--ink) 40%, transparent);
}

.site-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 20rem;
  max-width: 85%;
  height: 100%;
  padding: var(--space-4);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-card);
}

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.site-drawer__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.site-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
}

.site-drawer__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.site-drawer__link:hover {
  background: var(--muted);
}

.site-drawer__link.is-active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.site-drawer__icon {
  color: var(--primary);
}

.site-drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-drawer__session {
  display: block;
  width: 100%;
  margin: 0;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.site-drawer__cta {
  margin-top: 0;
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--sun);
  color: var(--sun-foreground);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

html.pr-shell-drawer-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-6);
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: var(--space-8) var(--page-px);
  font-size: var(--text-sm);
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
}

.site-footer__blurb {
  margin: var(--space-2) 0 0;
  color: var(--muted-foreground);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.site-footer__nav a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--primary);
}

.site-footer__pay-title {
  margin: 0;
  font-weight: 600;
  color: var(--foreground);
}

.pr-shell-payments {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted-foreground);
}

.pr-shell-payments li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.pr-shell-pay {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.pr-shell-pay--mastercard {
  height: 44px;
}

/* Phone tab bar */
.site-tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-tabs__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: var(--space-2) 0;
  color: var(--muted-foreground);
  font-size: 0.625rem;
  font-weight: 600;
  text-decoration: none;
}

.site-tabs__link.is-active {
  color: var(--primary);
}

.site-tabs__icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 40rem) {
  /* sm — header owns sign-in; the drawer copy stays hidden */
  .site-header__login {
    display: inline-flex;
  }

  .site-drawer__session {
    display: none;
  }
}

@media (min-width: 48rem) {
  /* md — hide tabs, drop shell bottom padding */
  .site-shell {
    padding-bottom: 0;
  }

  .site-tabs {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  /* lg — desktop nav */
  .site-header__nav {
    display: flex;
  }
}
