/* Teacher Tools hub - Orchard Elementary palette */
:root {
  --purple: #581c64;
  --purple-deep: #461650;
  --purple-ink: #35113c;
  --green: #027538;
  --green-soft: #e8f5ee;
  --blue: #174b7d;
  --gold: #f8ba47;
  --ink: #242424;
  --muted: #474747;
  --soft: #737373;
  --line: #e5e5e5;
  --cream: #faf8f6;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(53, 17, 60, 0.12);
  --radius: 18px;
  --max: 960px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); }
a:hover { color: var(--green); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 246, 0.92);
  border-bottom: 1px solid rgba(88, 28, 100, 0.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}
.brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--purple);
  line-height: 1.2;
}
.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav .btn-ghost {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--purple);
}
.nav .btn-ghost:hover {
  background: rgba(88, 28, 100, 0.08);
  color: var(--purple);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

.hero-block { margin-bottom: 1.75rem; }
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.hero-block h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--purple-ink);
  line-height: 1.15;
}
.subtitle {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
}
.lede {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tool-card {
  display: grid;
  grid-template-rows: 8px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(36, 36, 36, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card:hover {
  border-color: rgba(88, 28, 100, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}
.tool-card-accent { height: 8px; }
.accent-purple { background: linear-gradient(90deg, var(--purple), var(--blue)); }
.accent-green { background: linear-gradient(90deg, var(--green), var(--blue)); }
.tool-card-body { padding: 1.25rem 1.3rem 1.45rem; }
.tool-card-body h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--purple);
}
.tool-card-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.tool-link {
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}
.tool-card:hover .tool-link { color: var(--purple); }

.back-row {
  margin: 2rem 0 0;
  text-align: center;
}
.back-row a {
  font-weight: 700;
  text-decoration: none;
}
.back-row a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #292929;
  color: rgba(255, 255, 255, 0.82);
  padding: 1.5rem 1.25rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

/* Buttons used in gate */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--purple-ink);
}
.btn-primary:hover { filter: brightness(1.05); }

/* === Password gate (adapted from lunch-choice) === */
html.gate-locked,
body.gate-locked {
  overflow: hidden;
}
body.gate-locked .app-shell {
  visibility: hidden;
  pointer-events: none;
}
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.75rem);
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(248, 186, 71, 0.16), transparent 50%),
    linear-gradient(165deg, #35113c 0%, #581c64 45%, #461650 100%);
  color: #fff;
  overflow: auto;
}
.gate-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.gate-brand { max-width: 28rem; }
.gate-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8ba47;
}
.gate-brand h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
}
.gate-form {
  width: min(100%, 22rem);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
  backdrop-filter: blur(8px);
  margin-left: auto;
}
.gate-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
}
.gate-form-row {
  display: flex;
  gap: 0.5rem;
}
.gate-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #242424;
  background: #ffffff;
  caret-color: #581c64;
}
.gate-form .btn { flex-shrink: 0; }
.gate-error {
  margin: 0.5rem 0 0;
  color: #ffd0d0;
  font-size: 0.9rem;
}
.gate-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 1.25rem 0 0.5rem;
  width: 100%;
}
.gate-date {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
}
.gate-menu-panel {
  width: min(100%, 36rem);
  background: rgba(255, 255, 255, 0.98);
  color: #242424;
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}
.gate-menu-label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #027538;
}
.gate-intro {
  margin: 0;
  color: #474747;
  font-size: 1.05rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .gate-form {
    width: 100%;
    margin-left: 0;
  }
}