/* ThinkLeo — Educational Resources Marketing Site (playful theme v2) */
/* Self-hosted fonts (SIL OFL 1.1, see assets/fonts/OFL-*.txt) */
@font-face { font-family: "Fredoka"; src: url("../assets/fonts/fredoka-latin-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito-latin-var.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
:root {
  /* thinkleo palette (original) — all text pairs checked for WCAG AA */
  --ink: #1E1B3A;          /* headings / text on bright fills */
  --tangerine: #FF8A3D;    /* warm primary (fills, ink text) */
  --tangerine-700: #B4430E;/* warm primary for text on white */
  --grape: #5B3FD9;        /* playful secondary (white text) */
  --grape-700: #4329B8;
  --mint: #20C48D;         /* CTA accent (ink text) */
  --mint-700: #0B7A55;
  --sun: #FFC83D;
  --bubble: #FF6FA8;
  --bubble-700: #B5245F;
  --cream: #FFF8EF;
  --sky: #E2F1FF; --butter: #FFF0D2; --leaf: #DDF6EA; --lilac: #EEE8FF; --blush: #FFE5EE;
  /* legacy names remapped so older rules inherit the new theme */
  --blue: var(--grape);
  --blue-dark: var(--grape-700);
  --blue-light: var(--lilac);
  --green: var(--mint);
  --green-dark: var(--mint-700);
  --orange: var(--tangerine);
  --orange-light: var(--butter);
  --navy: var(--ink);
  --text: #36324F;
  --text-muted: #5D5878;
  --border: #E7E1F3;
  --bg: #ffffff;
  --bg-grey: var(--cream);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 0 rgba(30, 27, 58, 0.08), 0 8px 22px rgba(30, 27, 58, 0.06);
  --shadow-hover: 0 8px 0 rgba(30, 27, 58, 0.08), 0 16px 32px rgba(91, 63, 217, 0.16);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fredoka", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* —— Header —— */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo span { color: var(--green); }

.header-search {
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-grey);
  transition: border-color 0.2s;
}
.header-search:focus-within {
  border-color: var(--blue);
  background: #fff;
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  color: var(--text);
}
.header-search button {
  border: none;
  background: var(--blue);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
}
.header-search button:hover { background: var(--blue-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--blue-light); }

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-dark); color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Grade nav */
.grade-nav {
  background: var(--blue);
  overflow-x: auto;
}
.grade-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
}
.grade-nav a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.grade-nav a:hover,
.grade-nav a.active {
  color: #fff;
  border-bottom-color: var(--green);
  background: rgba(255,255,255,0.08);
}

/* —— Hero —— */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, #fff 55%, #eafaf1 100%);
  padding: 56px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 800;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.hero-card:nth-child(2) { margin-top: 24px; }
.hero-card:nth-child(3) { margin-top: -12px; }
.hero-thumb {
  height: 72px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.hero-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
}

/* —— Sections —— */
.section { padding: 48px 0; }
.section-grey { background: var(--bg-grey); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.55rem;
  color: var(--navy);
  font-weight: 800;
}
.section-head a { font-weight: 700; font-size: 0.95rem; }

/* Value props */
.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.prop {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.prop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.prop h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 800;
}
.prop p { color: var(--text-muted); font-size: 0.95rem; }

/* Browse chips / entry points */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.browse-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}
.browse-tile:hover {
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.browse-tile .tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Resource cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.resource-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.card-thumb {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb svg { width: 70%; height: 70%; }

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chip-editable {
  background: var(--orange);
  color: #fff;
}
.chip-free {
  background: var(--green);
  color: #fff;
}
.chip-new {
  background: var(--blue);
  color: #fff;
}
.chip-grade {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.chip-subject {
  background: #f0f0f0;
  color: var(--text-muted);
}

.card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-body h3 {
  font-size: 0.98rem;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* —— Page banner —— */
.page-banner {
  background: var(--blue);
  color: #fff;
  padding: 36px 0;
}
.page-banner h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-banner p { opacity: 0.9; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 10px;
  opacity: 0.85;
}
.breadcrumb a { color: #fff; text-decoration: underline; }

/* —— Browse layout —— */
.browse-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px 0 56px;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 120px;
}
.filters h3 {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 12px;
  margin-top: 18px;
}
.filters h3:first-child { margin-top: 0; }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 6px; }
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}
.filter-list input { accent-color: var(--blue); width: 16px; height: 16px; }

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.results-toolbar .count {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.results-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.pill button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

/* Category big tiles on browse */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding: 36px 0 56px;
}
.cat-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}
.cat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.cat-card h3 {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.cat-card p { color: var(--text-muted); font-size: 0.9rem; }

/* —— Resource detail —— */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  padding: 36px 0 48px;
  align-items: start;
}
.preview-box {
  background: var(--bg-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.preview-box .preview-svg { width: 55%; height: auto; }
.detail-info h1 {
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.detail-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.02rem;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  background: var(--bg-grey);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.detail-stats dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.detail-stats dd {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #0d5cad 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 22px;
  font-size: 1.05rem;
}
.cta-band .btn-green { box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .logo { color: #fff; margin-bottom: 10px; display: inline-block; }
.footer-brand .logo span { color: var(--green); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.7;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 200;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Muted note */
.note-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
  .props { grid-template-columns: 1fr; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
}

/* ===== Member area ===== */
.resource-card { position: relative; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }

.save-btn {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); transition: transform 0.1s;
}
.save-btn:hover { transform: scale(1.08); }
.save-btn svg, .save-detail svg { width: 18px; height: 18px; fill: none; stroke: #e74c6f; stroke-width: 2; }
.save-btn.saved svg, .save-detail.saved svg { fill: #e74c6f; }
.save-detail.saved { border-color: #e74c6f; color: #c0395a; }

.user-menu-wrap { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 4px 12px 4px 4px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}
.user-btn:hover { border-color: var(--blue); }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { font-size: 0.7rem; color: var(--text-muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.avatar-lg { width: 46px; height: 46px; font-size: 1.2rem; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 6px; z-index: 150;
}
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--navy); font: inherit; font-weight: 700; font-size: 0.92rem; background: none; border: none; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--blue-light); text-decoration: none; }
.user-menu button { border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: #c0392b; }

/* Auth */
.auth-wrap { background: linear-gradient(135deg, var(--blue-light) 0%, #fff 55%, #eafaf1 100%); padding: 56px 20px; }
.auth-card {
  max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-hover); padding: 32px;
}
.auth-card h1 { color: var(--navy); font-weight: 800; font-size: 1.6rem; }
.auth-sub { color: var(--text-muted); margin-bottom: 20px; }
.auth-alt { margin-top: 16px; text-align: center; font-size: 0.95rem; }
form label { display: block; font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 14px; }
form input, form select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-weight: 400; color: var(--text); background: #fff;
}
form input:focus, form select:focus { outline: none; border-color: var(--blue); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.form-msg { min-height: 1.2em; font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.form-msg.err { color: #c0392b; }
.form-msg.ok { color: var(--green-dark); }

/* Dashboard layout */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 32px 20px 56px; align-items: start; }
.dash-sidebar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 120px;
}
.side-user { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.side-user strong { display: block; color: var(--navy); }
.side-user span { font-size: 0.82rem; color: var(--text-muted); }
.dash-sidebar ul { list-style: none; }
.dash-sidebar a, .dash-sidebar button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--navy); font: inherit; font-weight: 700; background: none; border: none; cursor: pointer; text-align: left;
}
.dash-sidebar a:hover, .dash-sidebar button:hover { background: var(--bg-grey); text-decoration: none; }
.dash-sidebar a.active { background: var(--blue-light); color: var(--blue-dark); }
.dash-sidebar button { color: #c0392b; margin-top: 6px; }
.side-icon { width: 22px; text-align: center; }
.dash-title { color: var(--navy); font-weight: 800; font-size: 1.8rem; margin-bottom: 16px; }
.dash-sub { color: var(--text-muted); margin-bottom: 16px; }
.dash-section { margin-top: 32px; }
.dash-section .section-head h2 { font-size: 1.25rem; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash-stats > * {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); color: inherit; text-decoration: none;
}
.dash-stats a:hover { border-color: var(--blue); text-decoration: none; }
.dash-stats strong { display: block; font-size: 1.7rem; color: var(--blue); font-weight: 800; }
.dash-stats span { color: var(--text-muted); font-weight: 700; font-size: 0.88rem; }
.empty-state {
  grid-column: 1 / -1; border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--text-muted);
}
.empty-state p { margin-bottom: 12px; }

/* Downloads */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 8px 16px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: var(--blue); color: #fff; }
.dl-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dl-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px 10px 10px;
}
.dl-thumb { height: 60px; border-radius: var(--radius-sm); overflow: hidden; }
.dl-thumb svg { width: 100%; height: 100%; }
.dl-info a { font-weight: 800; color: var(--navy); display: block; }
.dl-info span, .dl-row time { font-size: 0.85rem; color: var(--text-muted); }

/* Account */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2 { color: var(--navy); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.membership-card { background: linear-gradient(135deg, #eafaf1, #fff); }
.membership-card h2 { font-size: 1.5rem; margin: 10px 0 4px; }
.plan-list { margin: 12px 0 18px 18px; color: var(--text-muted); }

@media (max-width: 900px) {
  .dash-layout, .account-grid { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
}
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 60px 1fr; }
  .dl-row time { grid-column: 2; }
  .user-name { display: none; }
}
.side-user .avatar { color: #fff; font-size: 1.2rem; }

/* ===== Admin + uploads ===== */
.chip-trending { background: #e74c6f; color: #fff; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-box .preview-svg .thumb-img { border-radius: var(--radius-sm); max-height: 340px; }
.admin-wrap { padding: 24px 20px 56px; display: flex; flex-direction: column; gap: 20px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.admin-toolbar input, .admin-toolbar select {
  padding: 9px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: #fff;
}
.admin-toolbar input { min-width: 200px; flex: 1 1 200px; max-width: 280px; }
.admin-toolbar .spacer { flex: 1; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; padding: 8px 10px; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-grey); }
.admin-table a { color: var(--navy); }
.row-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; }
.row-thumb svg { width: 100%; height: 100%; }
.row-badges .chip { margin: 1px; }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-left: 6px; }
.empty-cell { text-align: center; color: var(--text-muted); padding: 28px; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-danger { background: #fff; color: #c0392b; border-color: #f1c4bf; }
.btn-danger:hover { background: #fdecea; }
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; font-weight: 400; resize: vertical;
}
form textarea:focus { outline: none; border-color: var(--blue); }
fieldset { border: none; margin-bottom: 14px; }
legend { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; }
legend small, form label small { font-weight: 400; color: var(--text-muted); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
form label.check {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; font-weight: 700; cursor: pointer; background: #fff;
}
form label.check input { display: inline; width: auto; margin: 0; accent-color: var(--blue); }
form label.check:has(input:checked) { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }
#remove-thumb-wrap { margin-bottom: 14px; }
.field-err { display: block; color: #c0392b; font-size: 0.82rem; font-weight: 700; margin-top: 4px; min-height: 0; }
.invalid input, .invalid select, .invalid textarea { border-color: #e74c3c; }
.thumb-preview {
  height: 180px; border: 2px dashed var(--border); border-radius: var(--radius); margin: -4px 0 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--text-muted); font-size: 0.88rem; padding: 8px; text-align: center;
}
.thumb-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

/* Protected pages stay hidden until the session check passes */
body[data-auth]:not(.auth-ok) main { visibility: hidden; }

/* =====================================================================
   thinkleo playful theme v2 — chunky, rounded, colorful (original design)
   ===================================================================== */
body { background: var(--bg); color: var(--text); }
h1, h2, h3, h4, .logo-word, .dash-title, .section-head h2, .page-banner h1, .detail-info h1,
.auth-card h1, .panel h2, .cta-band h2, .hero h1, .browse-tile, .cat-card h3, .prop h3, .card-body h3 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1px; color: var(--ink);
}
a { color: var(--grape); }
a:hover { color: var(--grape-700); }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--sun); color: var(--ink); }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 0; box-shadow: 0 3px 0 var(--lilac); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--grape); font-size: 1.85rem; line-height: 1; }
.logo:hover { color: var(--grape-700); opacity: 1; }
.logo-mark { width: 44px; height: 44px; flex: none; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .logo-mark { transform: rotate(-14deg) scale(1.1); }
.logo-word { font-weight: 700; color: inherit; }
.header-search { border: 2.5px solid var(--border); border-radius: 999px; background: var(--cream); }
.header-search:focus-within { border-color: var(--grape); box-shadow: 0 0 0 4px var(--lilac); }
.header-search input { background: transparent; color: var(--ink); }
.header-search input::placeholder { color: var(--text-muted); }
.header-search button { background: var(--grape); color: #fff; border-radius: 999px; font-family: var(--font-display); font-weight: 600; margin: 3px; }
.header-search button:hover { background: var(--grape-700); }
.grade-nav { background: var(--grape); }
.grade-nav a { color: #fff; font-weight: 800; border-radius: 999px; margin: 6px 2px; padding: 6px 14px; transition: background 0.2s, color 0.2s, transform 0.2s; }
.grade-nav a:hover { background: rgba(255,255,255,0.18); text-decoration: none; transform: translateY(-1px); }
.grade-nav a.active { background: var(--sun); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(30,27,58,0.18); }

/* ---------- chunky buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 600; border-radius: 999px; border: 2.5px solid var(--ink);
  padding: 10px 22px; box-shadow: 0 4px 0 var(--ink); transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-lg { padding: 14px 30px; font-size: 1.12rem; }
.btn-sm { padding: 5px 14px; box-shadow: 0 3px 0 var(--ink); border-width: 2px; }
.btn-sm:hover { box-shadow: 0 4px 0 var(--ink); }
.btn-green { background: var(--mint); color: var(--ink); }
.btn-green:hover { background: #3DD69F; color: var(--ink); }
.btn-primary { background: var(--grape); color: #fff; }
.btn-primary:hover { background: var(--grape-700); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--sun); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--grape); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--lilac); color: var(--grape-700); box-shadow: none; }
.btn-danger { background: #fff; color: #B42318; border-color: #B42318; box-shadow: 0 3px 0 #B42318; }
.btn-danger:hover { background: #FFE9E6; box-shadow: 0 4px 0 #B42318; }
.btn:disabled, .btn:disabled:hover { transform: none; box-shadow: 0 2px 0 var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, var(--butter) 0, transparent 40%), radial-gradient(circle at 10% 90%, var(--sky) 0, transparent 45%), var(--cream); padding: 64px 0 96px; color: var(--ink); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 0.85rem; color: var(--grape-700); margin-bottom: 14px; box-shadow: 0 3px 0 var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 700; color: var(--ink); }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--grape); z-index: 0; }
.hero h1 .hl::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.04em; height: 0.36em; background: var(--sun); border-radius: 999px; z-index: -1; transform: rotate(-1.5deg); }
.hero p.lead { color: var(--text); font-size: 1.15rem; }
.hero .note-muted { color: var(--text-muted); }
.hero-art { gap: 18px; }
.hero-card { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.hero-card img { width: 72px; height: 72px; }
.hero-card strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.hero-card:nth-child(1) { transform: rotate(-3deg); }
.hero-card:nth-child(2) { transform: rotate(2.5deg); }
.hero-card:nth-child(3) { transform: rotate(2deg); }
.hero-card:nth-child(4) { transform: rotate(-2.5deg); }
.hero-card:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle { position: absolute; width: 56px; height: 56px; opacity: 0.95; animation: tw-float 6s ease-in-out infinite; }
.d1 { top: 8%; left: 3%; width: 46px; }
.d2 { top: 12%; right: 6%; width: 40px; animation-delay: -1.5s; }
.d3 { bottom: 20%; left: 42%; width: 80px; animation-delay: -3s; }
.d4 { bottom: 16%; left: 4%; width: 60px; animation-delay: -2s; }
.d5 { top: 6%; left: 46%; width: 50px; animation-delay: -4s; }
.d6 { bottom: 24%; right: 3%; width: 38px; animation-delay: -0.8s; }
@keyframes tw-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(8deg); } }

/* ---------- wavy dividers (data-URI SVG; allowed by img-src data:) ---------- */
.wave-bottom::after, .cta-band::before, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 40px; background-repeat: repeat-x; background-size: 240px 40px; pointer-events: none;
}
.wave-bottom::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 Q30 0 60 20 T120 20 T180 20 T240 20 V40 H0Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.section { position: relative; padding: 56px 0; }
.section-grey { background: var(--cream); }
.section-grey::before, .section-grey::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; background-repeat: repeat-x; background-size: 200px 28px; pointer-events: none; }
.section-grey::before { top: -27px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 28'%3E%3Cpath d='M0 28 Q50 0 100 14 T200 14 V28Z' fill='%23FFF8EF'/%3E%3C/svg%3E"); }
.section-grey::after { bottom: -27px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 28'%3E%3Cpath d='M0 0 Q50 28 100 14 T200 14 V0Z' fill='%23FFF8EF'/%3E%3C/svg%3E"); }
.section-grey + .cta-band { margin-top: 0; }

/* ---------- section heads ---------- */
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
.section-head a { font-family: var(--font-display); font-weight: 600; color: var(--grape); }

/* ---------- tints (subject pastels) ---------- */
.tint-sky { background: var(--sky); } .tint-butter { background: var(--butter); } .tint-leaf { background: var(--leaf); }
.tint-lilac { background: var(--lilac); } .tint-blush { background: var(--blush); }

/* ---------- value props ---------- */
.prop { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1); }
.prop:hover { transform: translateY(-4px) rotate(-0.6deg); }
.prop-icon { width: 72px; height: 72px; border-radius: 22px; display: flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink); }
.prop-icon img { width: 48px; height: 48px; }
.prop h3 { font-size: 1.3rem; }

/* ---------- subject / grade tiles ---------- */
.browse-grid { gap: 16px; }
.browse-tile { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); color: var(--ink); font-size: 1.08rem; font-weight: 600; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s; }
.browse-tile:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 9px 0 var(--ink); color: var(--grape-700); text-decoration: none; }
.browse-tile .tile-icon, .cat-icon { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--ink); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.browse-tile .tile-icon img, .cat-icon img { width: 42px; height: 42px; }
.browse-tile:hover .tile-icon, .cat-card:hover .cat-icon { transform: scale(1.12) rotate(6deg); }
.cat-card { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); text-decoration: none; }
.group-title { font-size: 1.6rem; margin: 0; color: var(--ink); }
.group-title.first { margin-top: 36px; }
.cat-grid-gap { padding-top: 16px; padding-bottom: 24px; }
.cat-grid-top { padding-top: 16px; }

/* ---------- resource cards ---------- */
.resource-card { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); overflow: hidden; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s; }
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 9px 0 var(--ink); }
.card-thumb { border-bottom: 2.5px solid var(--ink); }
.resource-card:hover .card-thumb svg { transform: scale(1.06) rotate(-2deg); }
.card-thumb svg { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.card-body h3 { font-size: 1.08rem; font-weight: 600; }
.card-link:hover h3 { color: var(--grape-700); }
.chip { border-radius: 999px; font-weight: 800; border: 2px solid var(--ink); }
.chip-editable { background: var(--tangerine); color: var(--ink); }
.chip-free { background: var(--mint); color: var(--ink); }
.chip-new { background: var(--grape); color: #fff; }
.chip-trending { background: var(--bubble); color: var(--ink); }
.chip-grade { background: var(--lilac); color: var(--grape-700); border-color: transparent; }
.chip-subject { background: var(--butter); color: var(--tangerine-700); border-color: transparent; }
.save-btn { border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform 0.2s cubic-bezier(.34,1.56,.64,1); }
.save-btn:hover { transform: scale(1.12) rotate(-6deg); }
.save-btn svg, .save-detail svg { stroke: var(--bubble-700); stroke-width: 2.4; }
.save-btn.saved svg, .save-detail.saved svg { fill: var(--bubble); }
.save-btn.saved { animation: tw-pop 0.35s ease; }
.save-detail.saved { border-color: var(--ink); color: var(--bubble-700); background: var(--blush); }
@keyframes tw-pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- page banner ---------- */
.page-banner { position: relative; background: var(--grape); color: #fff; padding-bottom: 54px; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; right: 4%; top: 18%; width: 64px; height: 64px; background: url("../assets/icons/doodle-star.svg") center/contain no-repeat; animation: leo-bob 5s ease-in-out infinite; }
@keyframes leo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 32'%3E%3Cpath d='M0 16 Q30 0 60 16 T120 16 T180 16 T240 16 V32 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x; background-size: 240px 32px; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.page-banner p { color: #fff; opacity: 1; }
.page-banner .banner-kicker { font-family: var(--font); font-size: 1.1rem; font-weight: 700; color: #fff; opacity: 1; }
.breadcrumb { color: #fff; }
.breadcrumb a { color: #fff; }

/* ---------- filters & search ---------- */
.filters { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); background: #fff; }
.filters h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.filter-list label { border-radius: 10px; padding: 3px 6px; transition: background 0.15s; }
.filter-list label:hover { background: var(--lilac); }
.filter-list input { accent-color: var(--grape); width: 18px; height: 18px; }
.results-toolbar select, form input, form select, form textarea, .admin-toolbar input, .admin-toolbar select { border: 2.5px solid var(--border); border-radius: 14px; }
form input:focus, form select:focus, form textarea:focus, .results-toolbar select:focus { border-color: var(--grape); box-shadow: 0 0 0 4px var(--lilac); outline: none; }
.pill { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; }
.pill button { color: var(--ink); }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* ---------- resource detail ---------- */
.preview-box { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 0 var(--ink); }
.detail-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.detail-stats { border: 2.5px dashed var(--border); border-radius: var(--radius); background: var(--cream); }
.detail-stats dd { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* ---------- CTA band & footer ---------- */
.cta-band { position: relative; background: var(--tangerine); color: var(--ink); padding: 72px 0 64px; overflow: hidden; }
.cta-band::before { top: -1px; transform: scaleY(-1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 Q30 0 60 20 T120 20 T180 20 T240 20 V40 H0Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.cta-band h2 { color: var(--ink); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
.cta-band p { color: var(--ink); opacity: 1; }
.cta-band .btn-green { box-shadow: 0 5px 0 var(--ink); }
.site-footer { position: relative; background: #241B57; color: #E4E0F5; padding-top: 64px; }
.site-footer::before { top: -1px; transform: scaleY(-1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 Q30 0 60 20 T120 20 T180 20 T240 20 V40 H0Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.cta-band + .site-footer::before, main:has(> .cta-band:last-child) + .site-footer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 Q30 0 60 20 T120 20 T180 20 T240 20 V40 H0Z' fill='%23FF8A3D'/%3E%3C/svg%3E"); }
.footer-brand .logo, .footer-brand .logo-word { color: #fff; }
.footer-brand p, .footer-col a, .footer-bottom { color: #E4E0F5; }
.footer-col h4 { color: var(--sun); font-family: var(--font-display); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.footer-bottom { border-top-color: rgba(255,255,255,0.15); }

/* ---------- member area ---------- */
.user-btn { border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-weight: 800; }
.user-btn:hover { border-color: var(--ink); background: var(--cream); }
.avatar { background: var(--tangerine); color: var(--ink); font-family: var(--font-display); font-weight: 700; border: 2px solid var(--ink); }
.side-user .avatar { color: var(--ink); }
.user-menu { border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); border-radius: 18px; overflow: hidden; }
.user-menu a, .user-menu button { font-weight: 700; }
.auth-wrap { position: relative; background: radial-gradient(circle at 12% 18%, var(--butter) 0, transparent 35%), radial-gradient(circle at 88% 82%, var(--leaf) 0, transparent 38%), var(--cream); }
.auth-card { border: 2.5px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); }
.auth-card h1 { font-size: 2rem; font-weight: 700; }
.auth-card::before { content: ""; display: block; width: 56px; height: 56px; margin-bottom: 8px; background: url("../assets/logo-mark.svg") center/contain no-repeat; }
.dash-sidebar, .panel, .dash-stats > *, .dl-row, .empty-state { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); }
.dash-sidebar a, .dash-sidebar button { border-radius: 14px; font-weight: 800; }
.dash-sidebar a.active { background: var(--sun); color: var(--ink); }
.dash-sidebar button { color: #B42318; }
.dash-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.dash-stats > *:nth-child(1) { background: var(--sky); }
.dash-stats > *:nth-child(2) { background: var(--blush); }
.dash-stats > *:nth-child(3) { background: var(--leaf); }
.dash-stats a { transition: transform 0.25s cubic-bezier(.34,1.56,.64,1); }
.dash-stats a:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--ink); }
.dash-stats strong { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 2.2rem; }
.dash-stats span { color: var(--text); }
.empty-state { background: var(--cream); border-style: dashed; box-shadow: none; }
.membership-card { background: linear-gradient(135deg, var(--leaf), #fff 70%); }
.seg { border: 2.5px solid var(--ink); }
.seg button { font-weight: 800; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.active { background: var(--grape); color: #fff; }
.dl-thumb { border: 2px solid var(--ink); }
.form-msg.ok { color: var(--mint-700); }
form label.check { border: 2px solid var(--border); }
form label.check:has(input:checked) { background: var(--lilac); border-color: var(--grape); color: var(--grape-700); }

/* ---------- admin ---------- */
.table-wrap { border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); background: #fff; }
.admin-table th { background: var(--lilac); color: var(--grape-700); font-weight: 800; }
.admin-table tr:hover td { background: var(--cream); }
.row-thumb { border: 2px solid var(--ink); border-radius: 10px; }
.thumb-preview { border: 2.5px dashed var(--border); border-radius: var(--radius-sm); }
.toast { background: var(--ink); color: #fff; border-radius: 999px; font-weight: 800; box-shadow: 0 5px 0 var(--grape); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 80px; }
  .d3, .d5 { display: none; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.55rem; }
  .logo-mark { width: 36px; height: 36px; }
  .hero h1 .hl { white-space: normal; }
  .hero-art { gap: 12px; }
  .hero-card { padding: 12px; }
  .hero-card img { width: 52px; height: 52px; }
  .doodle { width: 34px !important; }
  .d4, .d6 { display: none; }
  .btn-lg { padding: 12px 22px; font-size: 1.02rem; }
  .page-banner::before { width: 40px; height: 40px; top: 10%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .browse-tile:hover, .resource-card:hover, .prop:hover, .cat-card:hover, .hero-card:hover, .dash-stats a:hover { transform: none; }
}
/* wordmark color (overrides legacy .logo span accent) */
.logo .logo-word { color: var(--grape); }
.logo:hover .logo-word { color: var(--grape-700); }
.footer-brand .logo .logo-word { color: #fff; }
.admin-wrap > *, .table-wrap { min-width: 0; max-width: 100%; }
.dash-layout > *, .admin-wrap { min-width: 0; }

/* ---------- smart search: autocomplete combobox ---------- */
.header-search.has-ac { position: relative; overflow: visible; }
.header-search.has-ac input { border-radius: 999px 0 0 999px; }
.ac-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 2px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-hover);
  padding: 6px; max-height: min(70vh, 460px); overflow-y: auto; text-align: left;
}
.ac-group + .ac-group { border-top: 1.5px dashed var(--border); margin-top: 4px; padding-top: 4px; }
.ac-group-label { font: 700 0.72rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 8px 10px 4px; }
.ac-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; color: var(--ink); font-size: 0.95rem; }
.ac-opt[aria-selected="true"] { background: var(--lilac); outline: 2px solid var(--grape); outline-offset: -2px; }
.ac-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-text mark { background: var(--butter); color: inherit; border-radius: 4px; padding: 0 1px; font-weight: 700; }
.ac-meta { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.ac-icon { width: 22px; height: 22px; border-radius: 8px; flex: none; background: var(--sky); position: relative; }
.ac-icon::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: var(--ink); }
.ac-i-search::after { content: "\2315"; }
.ac-i-spark { background: var(--butter); } .ac-i-spark::after { content: "?"; }
.ac-i-subject { background: var(--leaf); } .ac-i-subject::after { content: "S"; }
.ac-i-grade { background: var(--blush); } .ac-i-grade::after { content: "G"; }
.ac-i-trend { background: var(--butter); } .ac-i-trend::after { content: "\2197"; }
.ac-i-res::after { content: ""; }
.ac-i-res.subj-math { background: var(--tangerine); } .ac-i-res.subj-literacy { background: var(--grape); }
.ac-i-res.subj-science { background: var(--mint); } .ac-i-res.subj-social { background: var(--sun); } .ac-i-res.subj-classroom { background: var(--bubble); }

/* ---------- smart search: chips, did-you-mean, empty recs ---------- */
.nl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.nl-label { font-weight: 700; color: var(--text-muted); font-size: 0.9rem; }
.nl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  background: var(--lilac); color: var(--ink); border: 2px solid #D9CEFF; }
.nl-chip.nl-grade { background: var(--blush); border-color: #FFC9DC; }
.nl-chip.nl-subject { background: var(--leaf); border-color: #BDEBD4; }
.nl-chip.nl-type { background: var(--sky); border-color: #C3E1FF; }
.nl-chip.nl-intent, .nl-chip.nl-badge { background: var(--butter); border-color: #FFE0A6; }
.nl-chip button { border: 0; background: rgba(30, 27, 58, 0.08); color: var(--ink); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; line-height: 1; }
.nl-chip button:hover, .nl-chip button:focus-visible { background: var(--ink); color: #fff; }
.did-you-mean { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--butter); color: var(--ink); font-size: 1rem; }
.did-you-mean a { font-weight: 800; color: var(--grape); text-decoration: underline; }
.dym-note { color: var(--text-muted); font-size: 0.88rem; }
.empty-recs { margin-top: 24px; }
.empty-recs h2 { font-size: 1.25rem; margin-bottom: 12px; }
.rec-reason { margin: 0; padding: 8px 14px 12px; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.rec-tip { margin: -6px 0 0; padding: 0 14px 12px; font-size: 0.8rem; color: var(--ink); }

/* ---------- Ask for ideas ---------- */
.ideas-panel { margin-top: 28px; background: linear-gradient(135deg, var(--lilac), var(--sky)); }
.ideas-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ideas-head h2 { margin: 0; font-size: 1.3rem; }
.ideas-mode { font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--text-muted); border: 1.5px solid var(--border); }
.ideas-mode.on { color: #fff; background: var(--grape); border-color: var(--grape); }
.ideas-sub { margin: 6px 0 12px; color: var(--ink); }
.ideas-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.ideas-form textarea { flex: 1 1 260px; min-height: 52px; resize: vertical; border: 2px solid var(--border); border-radius: 14px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
.ideas-form textarea:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 4px #fff; }
.ideas-out { margin-top: 14px; }
.ideas-intro { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.ideas-note { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 10px; }

/* ---------- admin search insights ---------- */
.insights-panel { margin-top: 24px; }
.insights-range { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.insights-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.stat-tile { background: var(--cream); border: 2px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-num { font: 700 1.6rem/1.1 var(--font-display); color: var(--grape); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.insights-grid > * { min-width: 0; }
.insights-col h3 { font-size: 1rem; margin: 0 0 6px; }
.insights-list { margin: 0; padding-left: 22px; }
.insights-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.insights-list li::marker { color: var(--text-muted); }
.insights-list .insights-empty { color: var(--text-muted); list-style: none; margin-left: -22px; display: block; }
.insights-n { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }
.insights-q { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.insights-hint { color: var(--text-muted); font-size: 0.85rem; margin: 6px 0 0; }

/* ---------- learner progress: shared ---------- */
.page-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head-row .dash-title { margin-bottom: 4px; }
.progress-form-panel { margin-bottom: 22px; }
.hint { display: block; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; margin-top: 4px; }
.kid-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 2.5px solid var(--ink); background: #fff; object-fit: cover; }
.kid-initial { display: inline-grid; place-items: center; font: 700 1.05rem/1 var(--font-display); color: var(--ink); background: var(--butter); }
.status-chip { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; white-space: nowrap; }
.st-completed { background: var(--leaf); } .st-partial { background: var(--butter); } .st-too_hard { background: var(--blush); }
.st-too_easy { background: var(--sky); } .st-not_yet, .st-assigned { background: var(--lilac); } .st-taught { background: var(--sky); } .st-reteach { background: var(--blush); }
.danger-text { color: #B42318; }
.privacy-note { margin-top: 26px; font-size: 0.85rem; color: var(--text-muted); background: var(--cream); border: 2px dashed var(--border); border-radius: 16px; padding: 12px 16px; }
.progress-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px; }
.cta-panel { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--butter), var(--blush)); }
.cta-panel h2 { margin: 0 0 4px; }
.cta-panel p { margin: 0; }
.cta-panel > div { flex: 1 1 240px; }
.card-actions { padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; }

/* check-in buttons */
.checkin-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.checkin-opts.small { margin: 8px 0 6px; gap: 6px; }
.checkin-opts .btn { border: 2px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); font-weight: 700; }
.checkin-opts.small .btn { padding: 5px 10px; font-size: 0.8rem; box-shadow: 0 2px 0 var(--ink); }
.checkin-opts .btn:hover, .checkin-opts .btn:focus-visible { transform: translateY(-1px); }
.checkin-opts .opt-completed { background: var(--leaf); } .checkin-opts .opt-partial { background: var(--butter); }
.checkin-opts .opt-too_hard, .checkin-opts .opt-reteach { background: var(--blush); } .checkin-opts .opt-too_easy { background: var(--sky); }
.checkin-opts .opt-not_yet, .checkin-opts .opt-taught { background: var(--lilac); }
.check-list { display: grid; gap: 10px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 0 var(--ink); }
.check-text { flex: 1; min-width: 0; }
.check-text p { margin: 0; }
.check-text a { font-weight: 800; color: var(--grape); }
.check-note { width: 100%; max-width: 420px; border: 2px solid var(--border); border-radius: 12px; padding: 6px 10px; font: inherit; font-size: 0.85rem; }

/* dialogs */
.tw-dialog { border: 3px solid var(--ink); border-radius: 24px; padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: 0 8px 0 var(--ink); color: var(--ink); background: #fff; }
.tw-dialog::backdrop { background: rgba(30, 27, 58, 0.45); }
.dlg-body { padding: 24px; }
.dlg-body h2 { font-size: 1.3rem; margin: 0 0 6px; }
.dlg-sub { color: var(--text-muted); margin: 0 0 14px; }
.dlg-kicker { margin: 0 0 2px; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grape); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.checkin-head { display: flex; gap: 14px; align-items: center; }
.checkin-head .kid-avatar { width: 56px; height: 56px; }
.res-name { color: var(--grape); }
.checkin-note { display: block; font-weight: 700; font-size: 0.9rem; }
.checkin-note textarea { display: block; width: 100%; margin-top: 6px; border: 2px solid var(--border); border-radius: 12px; padding: 8px 10px; font: inherit; resize: vertical; }
.pick-list { display: grid; gap: 8px; }
.pick-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 16px; cursor: pointer; }
.pick-opt:has(input:checked) { border-color: var(--grape); background: var(--lilac); }
.pick-opt input { accent-color: var(--grape); width: 18px; height: 18px; }
.pick-opt small { display: block; color: var(--text-muted); font-weight: 600; }

/* ---------- My Children ---------- */
.children-list { display: grid; gap: 22px; }
.child-card { padding: 20px; }
.child-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.child-head .kid-avatar { width: 64px; height: 64px; }
.child-info { flex: 1 1 200px; min-width: 0; }
.child-info h2 { margin: 0; font-size: 1.35rem; }
.child-info p { margin: 2px 0 6px; color: var(--text-muted); font-weight: 700; }
.child-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.child-stats { text-align: center; background: var(--leaf); border: 2px solid var(--ink); border-radius: 16px; padding: 6px 14px; }
.child-stats strong { display: block; font: 700 1.4rem/1.1 var(--font-display); }
.child-stats span { font-size: 0.75rem; font-weight: 700; }
.child-btns { display: flex; gap: 6px; }
.next-up { margin-top: 18px; }
.next-up h2 { display: flex; align-items: center; gap: 10px; }
.next-up h2 .kid-avatar { width: 32px; height: 32px; }
.next-meta { color: var(--text-muted); font-weight: 700; font-size: 0.85rem; }
.child-history { margin-top: 14px; }
.child-history summary, .seq-details summary { cursor: pointer; font-weight: 800; color: var(--grape); }
.history-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.history-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.h-note { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }
.h-date { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }
.interest-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interest-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--border); font-weight: 700; font-size: 0.85rem; cursor: pointer; background: #fff; }
.interest-chip input:checked + span { background: var(--butter); border-color: var(--ink); }
.interest-chip input:focus-visible + span, .avatar-opt input:focus-visible + * { outline: 3px solid var(--grape); outline-offset: 2px; }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-opt { position: relative; cursor: pointer; }
.avatar-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatar-opt img, .avatar-opt .kid-avatar { width: 52px; height: 52px; border-radius: 50%; border: 3px solid transparent; display: block; }
.avatar-opt .kid-avatar { font-size: 0.85rem; }
.avatar-opt input:checked + img, .avatar-opt input:checked + .kid-avatar { border-color: var(--grape); box-shadow: 0 0 0 3px var(--lilac); }

/* ---------- My Classes ---------- */
.classes-list { display: grid; gap: 22px; }
.class-card { padding: 20px; }
.class-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.class-head > div:nth-child(2) { flex: 1 1 200px; }
.class-head h2 { margin: 0; font-size: 1.3rem; }
.class-head p { margin: 2px 0 0; color: var(--text-muted); font-weight: 700; }
.class-badge { width: 56px; height: 56px; border-radius: 18px; background: var(--sun); border: 2.5px solid var(--ink); display: grid; place-items: center; font: 700 0.95rem/1 var(--font-display); text-align: center; padding: 4px; }
.subject-plan { border-top: 2px dashed var(--border); padding-top: 16px; margin-top: 16px; }
.subject-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.subject-head h3 { margin: 0; font-size: 1.1rem; }
.teach-next-title { margin: 12px 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grape); }
.seq-progress { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; max-width: 420px; }
.seq-bar { flex: 1; height: 14px; border-radius: 999px; background: var(--lilac); border: 2px solid var(--ink); overflow: hidden; }
.seq-fill { display: block; height: 100%; background: var(--mint); border-right: 2px solid var(--ink); }
.seq-fill.w-0 { border-right: 0; }
.seq-count { font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.seq-details { margin-top: 12px; }
.seq-list { margin: 10px 0 0; padding-left: 24px; display: grid; gap: 6px; }
.seq-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.seq-title { display: flex; flex-direction: column; }
.seq-title small { color: var(--text-muted); font-size: 0.78rem; }
.seq-list select { border: 2px solid var(--border); border-radius: 10px; padding: 4px 8px; font: inherit; font-size: 0.85rem; background: #fff; }
.teach-summary { display: grid; gap: 12px; }
.teach-row { background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: 0 4px 0 var(--ink); }
.teach-row > span { margin-left: 8px; color: var(--text-muted); font-weight: 700; font-size: 0.85rem; }
.teach-subjects { display: grid; gap: 6px; margin-top: 8px; }
.teach-subj { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.85rem; font-weight: 700; }
.teach-subj a { color: var(--grape); }
@media (max-width: 640px) { .teach-subj { grid-template-columns: 1fr; } }

/* admin sequencing fields */
.seq-fields { margin-top: 14px; background: var(--cream); border: 2px dashed var(--border); border-radius: 16px; padding: 12px 14px; }
.seq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seq-fields select[multiple] { width: 100%; min-height: 110px; }
.seq-fill.w-0 { width: 0%; }
.seq-fill.w-5 { width: 5%; }
.seq-fill.w-10 { width: 10%; }
.seq-fill.w-15 { width: 15%; }
.seq-fill.w-20 { width: 20%; }
.seq-fill.w-25 { width: 25%; }
.seq-fill.w-30 { width: 30%; }
.seq-fill.w-35 { width: 35%; }
.seq-fill.w-40 { width: 40%; }
.seq-fill.w-45 { width: 45%; }
.seq-fill.w-50 { width: 50%; }
.seq-fill.w-55 { width: 55%; }
.seq-fill.w-60 { width: 60%; }
.seq-fill.w-65 { width: 65%; }
.seq-fill.w-70 { width: 70%; }
.seq-fill.w-75 { width: 75%; }
.seq-fill.w-80 { width: 80%; }
.seq-fill.w-85 { width: 85%; }
.seq-fill.w-90 { width: 90%; }
.seq-fill.w-95 { width: 95%; }
.seq-fill.w-100 { width: 100%; }

/* ---------- social sign-in (original styling; brand glyphs only) ---------- */
[hidden] { display: none !important; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 9px 12px;
  border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.1; color: var(--ink); background: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-social img { flex: 0 0 22px; }
.btn-social:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); text-decoration: none; color: var(--ink); }
.btn-social:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-social-apple { background: #111; color: #fff; }
.btn-social-apple:hover { color: #fff; }
.btn-social-facebook { background: #1877f2; color: #fff; }
.btn-social-facebook:hover { color: #fff; }
.btn-social-linkedin { background: #0a66c2; color: #fff; }
.btn-social-linkedin:hover { color: #fff; }
.btn-social-wechat { background: #07c160; color: #fff; }
.btn-social-wechat:hover { color: #fff; }
.social-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--text-muted); font-size: 0.88rem; font-weight: 700; }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 2px; background: var(--lilac, var(--border)); border-radius: 2px; }
.social-badge { font-family: var(--font-display); font-weight: 600; color: var(--grape); font-size: 1.1rem; margin-bottom: 12px; }
.social-hint { color: var(--text-muted); font-size: 0.88rem; margin: -6px 0 14px; }
.social-cancel { margin-top: 8px; }
.social-complete input[readonly] { background: var(--blue-light); }
@media (max-width: 420px) { .social-grid { grid-template-columns: 1fr; } }

/* ---------- ThinkLeo brand: wordmark + Leo the giraffe mascot ---------- */
.logo .logo-word .logo-leo { color: var(--tangerine, #FF8A3D); }
.footer-brand .logo .logo-word .logo-leo { color: #FFC83D; }
.hero-art.hero-mascot { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.hero-leo { width: 100%; max-width: 430px; height: auto; filter: drop-shadow(0 10px 0 rgba(30,27,58,0.06)); animation: leo-bob 5s ease-in-out infinite; }
@keyframes leo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.leo-bubble { position: absolute; top: 2%; right: 0; margin: 0; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px 20px 20px 6px; padding: 8px 14px; font-family: var(--font-display); font-weight: 600; color: var(--grape-700); box-shadow: 0 4px 0 var(--ink); transform: rotate(3deg); }
.leo-empty { display: flex; flex-direction: column; align-items: center; text-align: center; }
.leo-empty img, .progress-empty img { width: 120px; height: auto; }
.leo-search-empty { display: block; width: 110px; height: auto; margin: 0 auto 8px; }
@media (max-width: 900px) { .leo-bubble { right: 8%; } }
@media (prefers-reduced-motion: reduce) { .hero-leo { animation: none; } }

/* ---------- Verification: banner, login tabs, phone codes, account status ---------- */
.verify-banner { background: var(--butter); border-bottom: 2px solid var(--ink); }
.verify-banner-inner { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.verify-banner-icon { flex: 0 0 auto; }
.verify-banner-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.verify-banner-text strong { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.1rem; }
.verify-banner-text .form-msg { margin: 0; min-height: 0; }
.verify-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.verify-banner.pulse { animation: tw-pulse 0.6s ease-in-out 2; }
@keyframes tw-pulse { 50% { background: var(--sun); } }
@media (prefers-reduced-motion: reduce) { .verify-banner.pulse { animation: none; } }
.verify-locked p { color: var(--text-muted); }

.auth-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 18px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 999px; }
.auth-tab { flex: 1; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--grape-700); font: inherit; font-weight: 800; cursor: pointer; }
.auth-tab:hover { background: #fff; }
.auth-tab.is-active { background: var(--grape); color: #fff; box-shadow: 0 2px 0 rgba(30, 27, 58, 0.25); }
.auth-tab:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.auth-forgot { margin-top: 12px; text-align: center; font-size: 0.92rem; }

.phone-row { display: flex; gap: 10px; }
.phone-row .phone-country { flex: 0 0 42%; }
.phone-row .phone-number { flex: 1 1 auto; }
@media (max-width: 420px) { .phone-row { flex-direction: column; gap: 0; } .phone-row .phone-country { flex-basis: auto; } }
.code-sent { margin-bottom: 12px; color: var(--text); }
.code-boxes { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
form .code-boxes input.code-box {
  width: 100%; max-width: 54px; height: 60px; margin: 0; padding: 0; text-align: center;
  font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--cream);
}
form .code-boxes input.code-box:focus { border-color: var(--grape); background: #fff; box-shadow: 0 0 0 3px var(--lilac); }
.code-links { display: flex; justify-content: space-between; margin-top: 10px; }

.verify-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.verify-row p { margin: 2px 0 0; word-break: break-all; }
.verify-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.chip-ok { background: var(--leaf); color: var(--mint-700); }
.chip-warn { background: var(--butter); color: var(--tangerine-700); }
#verify-panel .phone-flow { margin-top: 14px; }

.verify-card { text-align: center; }
.verify-icon { display: block; margin: 0 auto 12px; }
.verify-card.is-loading .verify-icon { animation: tw-bob 1s ease-in-out infinite; }
@keyframes tw-bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .verify-card.is-loading .verify-icon { animation: none; } }
.verify-card.is-ok h1 { color: var(--mint-700); }
.verify-actions { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 12px; }

/* ---------- Billing: pricing, checkout, account billing, receipts, admin panel ---------- */
.pricing-wrap, .checkout-wrap, .receipt-wrap { padding: 32px 20px 56px; }
.pricing-toggles { display: flex; justify-content: center; margin-bottom: 24px; }
.seg-btn.is-on { background: var(--grape); color: #fff; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.plan-card h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: 0; }
.plan-card .btn { margin-top: auto; text-align: center; }
.plan-best { background: var(--lilac); border-color: var(--grape); box-shadow: var(--shadow-hover); }
.plan-flag { position: absolute; top: -14px; right: 18px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 0.85rem; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--grape-700); margin: 0; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.pay-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 8px; color: var(--text-muted); font-weight: 700; }
.pay-logo { display: inline-block; vertical-align: middle; border-radius: 6px; }
.pricing-fine, .co-secure { text-align: center; color: var(--text-muted); font-size: 0.92rem; }
.billing-off { max-width: 640px; margin: 0 auto; text-align: center; }
.co-step { margin-bottom: 22px; }
.co-step h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font-size: 1rem; }
.co-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.co-plan { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: #fff; font: inherit; cursor: pointer; color: var(--text); }
.co-plan.is-on { border-color: var(--grape); background: var(--lilac); box-shadow: 0 0 0 3px rgba(91, 63, 217, 0.18); }
.co-plan strong { color: var(--ink); font-size: 1.05rem; }
.co-methods { display: grid; gap: 12px; }
.co-method { display: grid; grid-template-columns: minmax(150px, auto) 1fr auto; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 14px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--text); cursor: pointer; }
.co-method:hover, .co-method:focus-visible { border-color: var(--mint-700); box-shadow: var(--shadow); }
.co-method:disabled { opacity: 0.6; cursor: progress; }
.co-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.co-label, .co-amount { display: flex; flex-direction: column; }
.co-label strong, .co-amount strong { color: var(--ink); }
.co-label small, .co-amount small { color: var(--text-muted); }
.co-amount { text-align: right; }
.co-trial { margin: 0 0 16px; }
.co-result { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 700; border: 2px solid var(--ink); }
.co-result.ok { background: var(--leaf); } .co-result.info { background: var(--sky); } .co-result.err { background: var(--blush); }
.billing-panel h3, .admin-billing h3 { font-family: var(--font-display); margin: 18px 0 10px; }
.bill-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.bill-facts dt { font-weight: 800; color: var(--ink); }
.bill-facts dd { margin: 0; }
.bill-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bill-trialing, .sw-on { background: var(--leaf); color: var(--ink); }
.bill-active { background: var(--mint); color: var(--ink); }
.bill-past_due { background: var(--butter); color: var(--ink); }
.bill-canceled, .bill-expired, .bill-none, .sw-off { background: var(--blush); color: var(--ink); }
.receipt { max-width: 640px; margin: 0 auto; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.receipt-head h1 { margin: 0; font-family: var(--font-display); }
.receipt-total { font-size: 1.3rem; text-align: right; }
.no-print { text-align: center; margin-top: 18px; }
@media print { .site-header, .site-footer, .no-print { display: none !important; } }
.admin-billing { margin-top: 24px; }
.pay-switch { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--butter); }
.pay-switch strong { font-family: var(--font-display); font-size: 1.3rem; }
.sw-confirm { margin-top: 14px; padding: 18px; border: 2px dashed var(--grape); border-radius: var(--radius-sm); background: var(--lilac); display: grid; gap: 10px; justify-items: start; }
.sw-grand { display: grid; gap: 6px; }
.sw-grand input[type="number"] { width: 80px; }
.billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 12px; }
.billing-settings { display: grid; gap: 10px; }
.price-grid { display: grid; grid-template-columns: auto 2fr 1fr 1fr; gap: 6px 8px; align-items: center; }
.price-grid input { width: 100%; min-width: 0; }
.prov-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.free-flag { margin: 6px 0 10px; }
@media (max-width: 640px) { .co-method { grid-template-columns: 1fr; } .co-amount { text-align: left; } .pay-switch { flex-direction: column; align-items: flex-start; } }

/* =====================================================================
   launch header: inline on desktop; logo + search/menu icons on phones
   with collapsible search and menu (js/header.js toggles the classes)
   ===================================================================== */
.header-icons, .mobile-menu { display: none; }
.header-top { padding-left: 20px; padding-right: 20px; }
.icon-btn {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2.5px solid var(--border); background: #fff; color: var(--grape);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--grape); background: var(--lilac); }
.icon-btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }

@media (min-width: 761px) and (max-width: 960px) {
  .header-top { flex-wrap: nowrap; gap: 12px; }
  .header-search { min-width: 0; }
  .header-actions { gap: 6px; flex: none; }
  .header-actions .btn { padding: 9px 14px; }
}

@media (max-width: 760px) {
  .header-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 8px; padding: 10px 16px; }
  .header-top .logo { grid-column: 1; grid-row: 1; min-width: 0; justify-self: start; }
  .site-header.has-js .header-icons { display: flex; gap: 8px; grid-column: 2; grid-row: 1; }
  .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; min-width: 0; }
  .header-actions { grid-column: 1 / -1; grid-row: 3; margin-left: 0; gap: 8px; }
  .header-actions .btn { flex: 1; }
  .header-actions .btn-ghost { display: inline-flex; border: 2.5px solid var(--border); }
  .mobile-menu { grid-column: 1 / -1; grid-row: 4; }
  .site-header.has-js .header-search,
  .site-header.has-js .header-actions { display: none; }
  .site-header.has-js.search-open .header-search { display: flex; }
  .site-header.has-js.menu-open .header-actions { display: flex; }
  .site-header.has-js.menu-open .mobile-menu { display: block; }
  .mobile-menu ul { list-style: none; border-top: 2px dashed var(--border); padding-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .mobile-menu a { display: block; padding: 10px 8px; font-weight: 800; color: var(--ink); border-radius: 12px; }
  .mobile-menu a:hover { background: var(--lilac); text-decoration: none; }
  .header-actions .user-menu-wrap { width: 100%; }
  .header-actions .user-btn { width: 100%; }
  .header-actions .user-name { display: block; max-width: none; flex: 1; text-align: left; }
  .header-actions .user-menu { position: static; margin-top: 8px; box-shadow: none; }
}

/* grade bar: one scrollable row with edge fades (classes set by js/header.js) */
.grade-nav { position: relative; overflow: hidden; }
.grade-nav ul { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.grade-nav ul::-webkit-scrollbar { display: none; }
.grade-nav li { flex: none; }
.grade-nav::before, .grade-nav::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 1;
}
.grade-nav::before { left: 0; background: linear-gradient(to right, var(--grape) 15%, rgba(91, 63, 217, 0)); }
.grade-nav::after { right: 0; background: linear-gradient(to left, var(--grape) 15%, rgba(91, 63, 217, 0)); }
.grade-nav.fade-left::before, .grade-nav.fade-right::after { opacity: 1; }
.grade-nav a:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }

/* footer on phones: brand on top, link columns side by side */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
}

/* ---------- info pages (about, contact, FAQ, privacy, terms) ---------- */
.prose { max-width: 800px; padding-top: 36px; padding-bottom: 72px; }
.prose h2 { font-size: 1.45rem; margin: 30px 0 10px; }
.prose h3 { font-size: 1.12rem; margin: 20px 0 6px; }
.prose p, .prose li { line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--grape); font-weight: 700; }
.prose .updated { color: var(--text-muted); font-size: 0.92rem; }
.contact-card { border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: var(--cream); padding: 22px 24px; margin: 6px 0 26px; }
.contact-card p { margin: 0 0 6px; }
.contact-card .contact-email { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; word-break: break-all; }
.faq details { border: 2.5px solid var(--border); border-radius: 18px; background: #fff; padding: 12px 18px; margin-bottom: 10px; }
.faq details[open] { border-color: var(--grape); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p:last-child { margin-bottom: 4px; }
@media (min-width: 561px) and (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 520px; }
}
/* keep the side gutter on containers whose vertical padding shorthand reset it */
.container.detail-layout, .container.browse-layout { padding-left: 20px; padding-right: 20px; }

/* ---------- worksheet page: learning box; learning paths; curriculum guide ---------- */
.learning-box { margin: 18px 0; padding: 16px 18px; border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--cream); box-shadow: 0 4px 0 var(--ink); }
.learning-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.learning-box dl { display: grid; gap: 8px; margin: 0; }
.learning-box dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; }
.learning-box dt { font-weight: 700; color: var(--text-muted); }
.learning-box dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.learning-box .lb-goal { font-weight: 700; color: var(--ink); }
.learning-box .lb-stars, .path-meta { color: var(--tangerine-700); letter-spacing: 1px; }
.learning-box .note-muted { margin: 10px 0 0; }
@media (max-width: 520px) { .learning-box dl > div { grid-template-columns: 1fr; gap: 2px; } }
.path-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.path-tabs a { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 700; }
.path-tabs a[aria-current="page"] { background: var(--grape); color: #fff; }
.path-subject { margin: 28px 0 8px; }
.path { margin: 0 0 14px; padding: 14px 18px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; }
.path h3 { margin: 0 0 8px; font-size: 1.05rem; }
.path h3 small { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }
.path ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.path-meta { font-size: 0.85rem; margin-left: 4px; }
.path-meta .chip { letter-spacing: 0; }
.path-goal { display: block; font-size: 0.9rem; color: var(--text-muted); }
.path-grade { margin: 22px 0 10px; }
.prose-block { max-width: 760px; }
.curriculum-table { width: 100%; border-collapse: collapse; }
.curriculum-table th, .curriculum-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 700; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--grape); margin-right: 4px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.learning-box .lb-codes { list-style: none; margin: 6px 0 0; padding: 0; font-size: .92em; color: var(--text-muted); }
.learning-box .lb-codes li { margin: 2px 0; }
.learning-box .lb-codes b { color: var(--ink); margin-right: 4px; }
.theme-grid { font-size: .92rem; }
.theme-grid td, .theme-grid th { vertical-align: top; min-width: 9em; }
.theme-grid tbody th { white-space: nowrap; }
.path .cm-code { font-size: .9em; }
.path .cm-code b { color: var(--ink); margin-right: 4px; }
#find { scroll-margin-top: 90px; }
.path ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* curriculum and teaching-style filters */
.year-filter { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 14px; font-weight: 700; font-size: .92rem; }
.year-filter[hidden] { display: none; }
.year-filter select { padding: 7px 9px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; }
.chip-style { background: #E3F4F3; color: #0B5F5E; border-color: transparent; }
.chip-style-guided { background: #E8EEFA; color: #22407F; }
.chip-style-play { background: #FDEAF2; color: #9C2A5B; }
.chip-style-investigation { background: #FCEDE3; color: #8F3F12; }
.pill-suggest { cursor: pointer; background: #fff; border-style: dashed; font: inherit; font-weight: 800; }
.group-lead { max-width: 760px; color: var(--ink-soft, #4a4760); margin: 6px 0 0; }
.cur-badge { font-size: 1rem; letter-spacing: .5px; }
.cat-note { font-size: .85rem; color: #666; margin: 2px 0 0; }

/* grade bar: Early Childhood to 8th Grade fit on one line on desktop (it scrolls sideways on smaller screens) */
@media (min-width: 1180px) {
  .grade-nav ul { justify-content: space-between; padding: 0 4px; }
  .grade-nav a { padding: 6px 9px; margin: 6px 0; font-size: 0.86rem; }
}
