/* Small offline-friendly polish without breaking Google Sites layout */
:root {
  color-scheme: light;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #fafafa;
}

/* Hide Google Sites chrome that looks odd on a standalone mirror */
[aria-label="Google Sites"],
[aria-label="Report abuse"],
[aria-label="Back to site"],
[aria-label="Search"],
[aria-label="Site actions"] {
  display: none !important;
}

body.sf-nav--open {
  overflow: hidden;
  touch-action: none;
}

/* Simple hamburger navigation */
.sf-nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sf-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sf-nav__title,
.sf-nav__home {
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sf-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0, 0, 0, 0.35);
}

.sf-nav__panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(340px, 86vw);
  z-index: 9998;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  transform: translateX(-100%);
  transition: transform 180ms ease;
  overflow: auto;
  padding: 14px;
}

.sf-nav__panel[data-open="true"] {
  transform: translateX(0);
}

.sf-nav__panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 12px 2px;
  border-bottom: 1px solid #e5e7eb;
}

.sf-nav__panelTitle {
  font-weight: 800;
  color: #111827;
}

.sf-nav__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sf-nav__list {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.sf-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.sf-nav__link:hover {
  background: #fff;
}

.sf-nav__link.is-active {
  border-color: #111827;
  background: #ffffff;
}

.sf-nav__btn:focus-visible,
.sf-nav__close:focus-visible,
.sf-nav__link:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.6);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sf-nav__panel {
    transition: none;
  }
}
