:root {
  --primary: #0c4129;
  --primary-2: #17613f;
  --accent: #d4a72c;
  --mint: #e8f5ee;
  --mint-2: #f4faf7;
  --ink: #173228;
  --muted: #64746c;
  --line: #dce7e1;
  --white: #fff;
  --surface: #f7f9f8;
  --shadow: 0 14px 38px rgba(12, 65, 41, .09);
  --radius: 18px;
  --container: 1180px;
}

/* Approved books catalogue */
.approved-catalogue-intro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(199, 168, 107, 0.35);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(199, 168, 107, 0.22), transparent 28%),
    linear-gradient(135deg, #1e1e2e 0%, #29283b 62%, #343143 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(30, 30, 46, 0.16);
}

.approved-catalogue-intro::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.approved-catalogue-intro .eyebrow {
  color: #dbc690;
}

.approved-catalogue-intro h1 {
  max-width: 760px;
  margin: 0.4rem 0 0.75rem;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
}

.approved-catalogue-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.75;
}

.approved-catalogue-intro .button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.approved-book-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.approved-book-stat {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-height: 104px;
  padding: 1.15rem;
  border: 1px solid rgba(44, 42, 41, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 30, 46, 0.06);
}

.approved-stat-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: rgba(199, 168, 107, 0.16);
  color: #82682f;
  font-size: 1.1rem;
}

.approved-book-stat strong {
  display: block;
  color: #1e1e2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.approved-book-stat small {
  display: block;
  margin-top: 0.35rem;
  color: #6c6965;
  font-size: 0.82rem;
}

.approved-book-browser {
  margin-bottom: 1.25rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid rgba(44, 42, 41, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(30, 30, 46, 0.07);
}

.approved-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.approved-type-tab {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(44, 42, 41, 0.13);
  border-radius: 999px;
  background: #fff;
  color: #4a4744;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.approved-type-tab span {
  min-width: 27px;
  padding: 0.13rem 0.4rem;
  border-radius: 999px;
  background: #f1ede5;
  color: #625e58;
  font-size: 0.72rem;
  text-align: center;
}

.approved-type-tab:hover,
.approved-type-tab.active {
  border-color: #c7a86b;
  background: #1e1e2e;
  color: #fff;
  transform: translateY(-1px);
}

.approved-type-tab.active span {
  background: #c7a86b;
  color: #1e1e2e;
}

.approved-search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  gap: 0.75rem;
  align-items: end;
}

.approved-search-row .form-field {
  margin: 0;
}

.approved-search-row label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.approved-search-row input,
.approved-search-row select {
  width: 100%;
  min-height: 45px;
  border: 1px solid rgba(44, 42, 41, 0.14);
  border-radius: 10px;
  background: #fcfbf8;
}

.approved-search-row input:focus,
.approved-search-row select:focus {
  border-color: #c7a86b;
  outline: 3px solid rgba(199, 168, 107, 0.16);
}

.approved-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-height: 0;
  margin-top: 0.85rem;
}

.approved-active-filters > span {
  color: #77716a;
  font-size: 0.78rem;
}

.approved-active-filters > strong,
.approved-filter-chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  background: rgba(138, 154, 130, 0.16);
  color: #43513e;
  font-size: 0.76rem;
  font-weight: 700;
}

.book-results-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0 0.8rem;
}

.book-results-head h2 {
  margin: 0;
  color: #1e1e2e;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.book-results-head p {
  margin: 0;
  color: #77716a;
  font-size: 0.9rem;
}

.approved-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.approved-book-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  min-height: 280px;
  border: 1px solid rgba(44, 42, 41, 0.09);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 30, 46, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.approved-book-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #c7a86b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.approved-book-card:hover {
  border-color: rgba(199, 168, 107, 0.55);
  box-shadow: 0 18px 42px rgba(30, 30, 46, 0.13);
  transform: translateY(-5px);
}

.approved-book-card:hover::before {
  transform: scaleX(1);
}

.approved-book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.15rem 0.8rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 6px, transparent 6px),
    linear-gradient(155deg, #8a9a82, #5c7055);
  color: #fff;
}

.approved-book-cover::after {
  content: "";
  position: absolute;
  inset: 11px 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  pointer-events: none;
}

.approved-book-card.is-teacher-guide .approved-book-cover {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 6px, transparent 6px),
    linear-gradient(155deg, #c7a86b, #8e713a);
}

.approved-book-cover-label,
.approved-book-cover-grade,
.approved-book-cover-subject {
  position: relative;
  z-index: 1;
}

.approved-book-cover-label {
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.approved-book-cover-grade {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.05;
}

.approved-book-cover-subject {
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25;
}

.approved-book-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1rem;
}

.approved-book-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.6rem;
  color: #756b57;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.approved-book-kicker span {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #f4f0e7;
}

.approved-book-content h3 {
  margin: 0 0 0.55rem;
  color: #242334;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.35;
}

.approved-book-publisher {
  margin: 0 0 0.8rem;
  color: #5c6857;
  font-size: 0.82rem;
  font-weight: 800;
}

.approved-book-details {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  color: #6b6660;
  font-size: 0.76rem;
  line-height: 1.45;
}

.approved-book-details div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.45rem;
}

.approved-book-details dt {
  color: #393633;
  font-weight: 800;
}

.approved-book-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.approved-book-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(44, 42, 41, 0.08);
}

.approved-book-price {
  color: #1e1e2e;
  font-size: 0.9rem;
  font-weight: 900;
}

.approved-book-source {
  color: #817a72;
  font-size: 0.68rem;
}

.book-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.book-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(44, 42, 41, 0.13);
  border-radius: 9px;
  background: #fff;
  color: #373338;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition: 0.22s ease;
}

.book-pagination button:hover,
.book-pagination button.active {
  border-color: #1e1e2e;
  background: #1e1e2e;
  color: #fff;
}

@media (max-width: 1100px) {
  .approved-search-row {
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  }

  .approved-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .approved-catalogue-intro {
    grid-template-columns: 1fr;
  }

  .approved-catalogue-intro .button {
    justify-self: start;
  }

  .approved-book-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approved-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .approved-book-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .approved-book-stats,
  .approved-search-row {
    grid-template-columns: 1fr;
  }

  .approved-book-stat {
    min-height: 82px;
  }

  .approved-book-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .approved-book-cover {
    padding: 1rem 0.6rem;
  }

  .approved-book-cover-grade {
    font-size: 1.05rem;
  }

  .approved-book-content {
    padding: 0.9rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approved-book-card,
  .approved-book-card::before,
  .approved-type-tab {
    transition: none;
  }

  .approved-book-card:hover,
  .approved-type-tab:hover {
    transform: none;
  }
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--primary); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid rgba(212, 167, 44, .65); outline-offset: 3px; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 999; padding: 10px 16px; border-radius: 8px; color: white; background: var(--primary); }
.skip-link:focus { top: 14px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--mint-2); }
.section-dark { color: white; background: var(--primary); }
.section-dark h2, .section-dark h3 { color: white; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--primary-2); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 26px; height: 2px; content: ""; background: var(--accent); }
.section-heading { max-width: 700px; margin-bottom: 36px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.lead { max-width: 700px; color: var(--muted); font-size: 1.12rem; }
.section-dark .lead, .section-dark .eyebrow { color: #d6e8df; }
.muted { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary-2); font-weight: 800; }
.text-link:hover { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(12,65,41,.09); background: rgba(255,255,255,.9); box-shadow: 0 5px 24px rgba(12,65,41,.07); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.nav-wrap { position:relative;display: flex; min-height: 74px; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--primary); font-weight: 900; line-height: 1.05; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: white; background: var(--primary); box-shadow: 0 8px 18px rgba(12,65,41,.2); }
.brand-mark svg { width: 25px; }
.brand small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.main-nav { display: flex; margin-left: auto; padding: 5px; align-items: center; gap: 3px; border: 1px solid rgba(12,65,41,.08); border-radius: 13px; background: rgba(244,250,247,.78); }
.main-nav a { position: relative; padding: 9px 14px; border-radius: 9px; color: #365248; font-size: .88rem; font-weight: 750; transition: color .2s, background .2s, box-shadow .2s; }
.main-nav a:hover { color: var(--primary); background: white; }
.main-nav a.active { color: white; background: var(--primary); box-shadow: 0 5px 14px rgba(12,65,41,.18); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > a span { font-size: .72rem; transition: transform .2s; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 13px); left: 50%; z-index: 85; display: grid; width: 300px; padding: 9px; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 45px rgba(12,65,41,.16); opacity: 0; visibility: hidden; transform: translate(-50%,8px); transition: .2s; }
.nav-dropdown-menu::before { position: absolute; top: -8px; left: 50%; width: 15px; height: 15px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); content: ""; background: white; transform: translateX(-50%) rotate(45deg); }
.nav-dropdown-menu a { position: relative; z-index: 1; display: block; padding: 12px 13px; color: var(--ink); background: white; box-shadow: none; }
.nav-dropdown-menu a:hover { color: var(--primary); background: var(--mint-2); }
.nav-dropdown-menu strong, .nav-dropdown-menu small { display: block; }
.nav-dropdown-menu small { margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.nav-dropdown:hover > a span, .nav-dropdown:focus-within > a span { transform: rotate(180deg); }
.nav-dropdown-mega { position: static; }
.nav-mega-menu { top:calc(100% - 3px);left:50%;width:min(1180px,calc(100vw - 40px));padding:22px;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(250px,.9fr);gap:18px;transform:translate(-50%,10px); }
.nav-dropdown:hover .nav-mega-menu,.nav-dropdown:focus-within .nav-mega-menu { transform:translate(-50%,0); }
.nav-mega-menu::before { left:38%; }
.nav-mega-menu section { display:grid;align-content:start;gap:3px; }
.nav-mega-menu .nav-mega-label { display:block;padding:5px 12px 9px;color:#8a6b18;font-size:.68rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase; }
.nav-mega-menu aside { padding:22px;border-radius:12px;color:#dcebe2;background:linear-gradient(145deg,#0c4129,#17613f); }
.nav-mega-menu aside h3 { margin:4px 0 9px;color:#fff;font-size:1.35rem; }
.nav-mega-menu aside p { margin-bottom:18px;color:#d4e4da;font-size:.82rem;line-height:1.65; }
.nav-mega-menu aside .nav-mega-label { padding:0;color:#e6c25a; }
.notes-hero { background:radial-gradient(circle at 82% 18%,rgba(212,167,44,.2),transparent 22rem),linear-gradient(120deg,#0c4129,#17613f); }
.notes-intro-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:34px; }
.notes-intro-grid article { padding:25px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(12,65,41,.07); }
.notes-intro-grid strong { display:grid;width:38px;height:38px;margin-bottom:16px;place-items:center;border-radius:10px;color:#735811;background:#f7edcf; }
.notes-intro-grid h2 { margin-bottom:8px;font-size:1.2rem; }
.notes-intro-grid p { margin:0;color:var(--muted);font-size:.9rem; }
.notes-search-panel { margin-bottom:28px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#f7faf8;box-shadow:0 16px 38px rgba(12,65,41,.08); }
.notes-filter-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:end; }
.text-notes-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px; }
.text-subject-block { display:grid;min-width:0;padding:30px;border:1px solid rgba(12,65,41,.12);border-radius:18px;background:#fff;box-shadow:0 16px 40px rgba(12,65,41,.08);grid-template-columns:auto minmax(0,1fr) auto;gap:24px;align-items:center;transition:.25s ease; }
.text-subject-block:hover { border-color:var(--accent);box-shadow:0 24px 54px rgba(12,65,41,.14);transform:translateY(-4px); }
.text-subject-icon { display:grid;width:70px;height:70px;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(145deg,var(--primary),#20734f);font-family:Georgia,"Times New Roman",serif;font-size:1.5rem;font-weight:800;box-shadow:0 12px 26px rgba(12,65,41,.2); }
.text-subject-copy h2 { margin:8px 0;font-size:1.7rem; }
.text-subject-copy>p { max-width:720px;margin-bottom:12px;color:var(--muted); }
.text-subject-stat { display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:.8rem; }
.text-subject-stat strong { color:var(--primary);font-size:1rem; }
.notes-hero-simple { padding-block:58px; }
.notes-hero-simple h1 { max-width:none;font-size:clamp(2.3rem,5vw,3.7rem); }
.notes-hero-simple p { max-width:620px; }
.notes-library-simple { padding-block:60px 90px; }
.notes-simple-heading { margin-bottom:18px; }
.notes-simple-heading h2 { margin:0;font-size:1.7rem; }
.notes-simple-heading p { margin:4px 0 0;color:var(--muted); }
.notes-filter-bar { display:grid;margin-bottom:28px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fbf9;grid-template-columns:minmax(250px,1fr) minmax(150px,.32fr) minmax(180px,.4fr) auto;gap:10px; }
.text-notes-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.text-subject-box { display:flex;min-height:280px;padding:24px;border:1px solid #dfe7e2;border-radius:14px;color:var(--ink);background:#fff;box-shadow:0 10px 28px rgba(12,65,41,.06);flex-direction:column;transition:border-color .2s,box-shadow .2s,transform .2s; }
.text-subject-box:hover { border-color:#91ad9d;box-shadow:0 18px 38px rgba(12,65,41,.11);transform:translateY(-4px); }
.text-subject-box-head { display:flex;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px; }
.text-subject-box-head>span { padding:6px 10px;border-radius:999px;color:#725812;background:#f7edcf;font-size:.72rem;font-weight:850; }
.text-subject-box-head>b { display:grid;width:42px;height:42px;place-items:center;border-radius:10px;color:#fff;background:var(--primary);font-family:Georgia,"Times New Roman",serif;font-size:1.15rem; }
.text-subject-box h2 { margin:0 0 9px;font-size:1.45rem; }
.text-subject-box>p { display:-webkit-box;margin:0 0 18px;color:var(--muted);font-size:.86rem;line-height:1.65;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3; }
.text-subject-box-meta { display:flex;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);gap:16px;color:var(--muted);font-size:.74rem; }
.text-subject-box>strong { margin-top:18px;color:var(--primary);font-size:.8rem; }
.text-subject-row { display:grid;padding:22px 24px;border:1px solid #dfe7e2;border-radius:12px;color:var(--ink);background:#fff;grid-template-columns:52px minmax(0,1fr) auto;gap:18px;align-items:center;transition:border-color .2s,background .2s,transform .2s; }
.text-subject-row:hover { border-color:#9eb8aa;background:#f8fbf9;transform:translateY(-2px); }
.text-subject-letter { display:grid;width:48px;height:48px;place-items:center;border-radius:10px;color:#fff;background:var(--primary);font-family:Georgia,"Times New Roman",serif;font-size:1.25rem;font-weight:800; }
.text-subject-row h2 { margin:0 0 4px;font-size:1.3rem; }
.text-subject-row p { margin:0 0 5px;color:var(--muted);font-size:.88rem; }
.text-subject-row small { color:#76847c;font-size:.75rem; }
.text-subject-row>strong { color:var(--primary);font-size:.82rem;white-space:nowrap; }
.text-note-card { display:flex;min-width:0;padding:25px;border:1px solid rgba(12,65,41,.12);border-radius:15px;background:#fff;box-shadow:0 14px 34px rgba(12,65,41,.075);flex-direction:column;transition:.25s ease; }
.text-note-card:hover { border-color:var(--accent);box-shadow:0 22px 48px rgba(12,65,41,.13);transform:translateY(-5px); }
.text-note-card-top,.text-note-tags { display:flex;gap:7px;flex-wrap:wrap; }
.text-note-card-top span,.text-note-tags span { padding:5px 9px;border-radius:999px;color:#3f5e50;background:#edf5f0;font-size:.7rem;font-weight:800; }
.text-note-card-top span:last-child,.text-note-tags span:nth-child(2) { color:#725812;background:#f7edcf; }
.text-note-strand { margin:18px 0 6px;color:#718077;font-size:.73rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase; }
.text-note-card h2 { margin-bottom:10px;font-size:1.35rem;line-height:1.35; }
.text-note-card h2 a { color:var(--ink); }
.text-note-card>p:not(.text-note-strand) { display:-webkit-box;color:var(--muted);overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3; }
.text-note-card-footer { display:flex;margin-top:auto;padding-top:18px;border-top:1px solid var(--line);align-items:center;justify-content:space-between;gap:12px;font-size:.76rem; }
.text-note-card-footer span { color:var(--muted); }
.text-note-card-footer a { color:var(--primary);font-weight:850; }
.text-note-reader-section { padding-top:48px; }
.text-note-layout { max-width:1180px;margin:auto; }
.text-note-header { max-width:900px;margin:0 auto 44px;text-align:center; }
.text-note-header .breadcrumbs { justify-content:center;color:var(--muted); }
.text-note-header .text-note-tags { margin:22px 0 14px;justify-content:center; }
.text-note-header h1 { font-size:clamp(2.2rem,5vw,4rem); }
.text-note-header>p { max-width:780px;margin:0 auto;color:var(--muted);font-size:1.12rem; }
.text-note-byline { margin-top:18px;color:#718077;font-size:.82rem;font-weight:700; }
.text-note-main { display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:start; }
.text-note-toc { position:sticky;top:100px;display:grid;max-height:calc(100vh - 130px);padding:20px;border:1px solid var(--line);border-radius:13px;background:#f8fbf9;overflow:auto;gap:8px; }
.text-note-toc strong { margin-bottom:5px;color:var(--primary); }
.text-note-toc nav { display:grid;gap:3px; }
.text-note-toc nav a { padding:7px 9px;border-radius:7px;color:#587066;font-size:.76rem;line-height:1.35; }
.text-note-toc nav a:hover { color:var(--primary);background:#e7f2eb; }
.text-note-toc>a { margin-top:10px;color:var(--primary);font-size:.8rem;font-weight:800; }
.text-note-content { min-width:0;padding:clamp(25px,5vw,62px);border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 18px 50px rgba(12,65,41,.08);font-family:Georgia,"Times New Roman",serif;font-size:1.04rem;line-height:1.82; }
.text-note-content h2 { margin:2.2em 0 .65em;padding-bottom:.35em;border-bottom:2px solid #ead9a9;color:var(--primary);font-size:1.75rem;scroll-margin-top:100px; }
.text-note-content h2:first-child { margin-top:0; }
.text-note-content h3 { margin:1.7em 0 .45em;color:#294c3c;font-size:1.25rem; }
.text-note-content p { margin:0 0 1em;color:#353b37; }
.text-note-content ul { margin:0 0 1.4em;padding:18px 22px 18px 42px;border-left:4px solid var(--accent);border-radius:0 10px 10px 0;background:#fbf8ef; }
.text-note-content li { margin:.35em 0; }
.text-note-content .revision-question { padding:.55em .8em;margin-bottom:.45em;border-radius:7px;background:#f7faf8; }
.text-note-pagination { display:grid;margin:35px 0;grid-template-columns:1fr 1fr;gap:20px; }
.text-note-pagination a { display:grid;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.text-note-pagination a:last-child { text-align:right; }
.text-note-pagination small { color:var(--muted); }
.text-note-pagination strong { color:var(--primary); }
.text-note-missing { padding:80px 20px;text-align:center; }
.subject-notes-header { max-width:850px;margin:0 auto 48px;text-align:center; }
.subject-notes-header .breadcrumbs { justify-content:center; }
.subject-notes-header h1 { font-size:clamp(2.5rem,6vw,4.5rem); }
.subject-notes-header>p { color:var(--muted);font-size:1.1rem; }
.subject-notes-header .text-subject-stat { margin-top:20px;justify-content:center; }
.subject-strand-list { display:grid;gap:28px; }
.subject-grade-list { display:grid;gap:42px; }
.subject-grade-block>header { display:flex;margin-bottom:18px;align-items:end;justify-content:space-between;gap:20px; }
.subject-grade-block>header h2 { margin:3px 0 0;font-size:2rem; }
.subject-grade-block>header>strong { color:var(--muted);font-size:.8rem; }
.subject-strand-block { padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden; }
.subject-strand-block>header { display:flex;margin:0;padding:18px 20px;border-bottom:1px solid var(--line);align-items:center;justify-content:space-between;gap:20px;background:#f7faf8; }
.subject-strand-block>header h3 { margin:0;color:var(--primary);font-family:Georgia,"Times New Roman",serif;font-size:1.25rem; }
.subject-strand-block>header span { color:#806419;font-size:.74rem;font-weight:850;text-transform:uppercase; }
.subject-chapter-list { display:grid;gap:0; }
.subject-chapter-list>a { display:grid;padding:16px 20px;border-bottom:1px solid #edf1ee;color:var(--ink);background:#fff;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;transition:.2s; }
.subject-chapter-list>a:last-child { border-bottom:0; }
.subject-chapter-list>a:hover { color:var(--primary);background:#f8fbf9; }
.subject-chapter-list>a>span { display:grid;width:38px;height:38px;place-items:center;border-radius:9px;color:#775b14;background:#f7edcf;font-size:.75rem;font-weight:900; }
.subject-chapter-list strong,.subject-chapter-list small { display:block; }
.subject-chapter-list small { display:-webkit-box;margin-top:3px;color:var(--muted);font-size:.76rem;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1; }
.subject-chapter-list b { color:var(--accent);font-size:1.2rem; }
.copy-protected-note { -webkit-user-select:none;user-select:none;-webkit-touch-callout:none; }
.copy-protected-note img { pointer-events:none;-webkit-user-drag:none;user-drag:none; }
.note-copy-notice { position:fixed;right:24px;bottom:92px;z-index:220;max-width:360px;padding:14px 18px;border:1px solid rgba(255,255,255,.2);border-radius:10px;color:#fff;background:#153d2c;box-shadow:0 16px 38px rgba(0,0,0,.22);font-size:.84rem;font-weight:750;opacity:0;pointer-events:none;transform:translateY(12px);transition:.2s; }
.note-copy-notice.show { opacity:1;transform:translateY(0); }
@media print {
  .text-note-page .site-header,.text-note-page .site-footer,.text-note-page .text-note-main,.text-note-page .text-note-pagination,.text-note-page .whatsapp-float { display:none!important; }
  .text-note-page .text-note-header::after { display:block;margin-top:30px;padding:20px;border:2px solid #222;content:"These notes are available for online reading at cbcteacher.co.ke. Printing is disabled."; }
}
.text-note-admin-editor { width:100%;min-height:560px;padding:24px;border:1px solid var(--line);border-radius:12px;color:#27332d;background:#fff;font:1rem/1.7 Georgia,"Times New Roman",serif;resize:vertical; }
.text-note-admin-editor:focus { border-color:var(--primary);outline:3px solid rgba(12,65,41,.1); }
.notes-admin-layout { display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.45fr);gap:22px;align-items:start; }
.notes-admin-library { position:sticky;top:88px;max-height:calc(100vh - 112px);overflow:hidden; }
.notes-admin-library>.input { margin-bottom:14px; }
.notes-admin-summary { display:flex;margin-bottom:12px;padding:12px;border-radius:9px;background:#f1f6f3;gap:22px;color:var(--muted);font-size:.75rem; }
.notes-admin-summary strong { color:var(--primary);font-size:1rem; }
.notes-admin-list { max-height:calc(100vh - 310px);overflow:auto; }
.notes-admin-item { display:grid;padding:12px 2px;border-bottom:1px solid var(--line);gap:8px; }
.notes-admin-item>button { padding:0;border:0;color:var(--ink);background:transparent;text-align:left;cursor:pointer; }
.notes-admin-item>button strong,.notes-admin-item>button small { display:block; }
.notes-admin-item>button strong { font-size:.85rem;line-height:1.35; }
.notes-admin-item>button small { margin-top:3px;color:var(--muted);font-size:.68rem; }
.notes-admin-item>div { display:flex;gap:12px; }
.notes-admin-item>div a,.notes-admin-item>div button { padding:0;border:0;color:var(--primary);background:transparent;font-size:.68rem;font-weight:800;cursor:pointer; }
.notes-admin-item>div button:last-child { color:#9f2f2f; }
.notes-admin-editor .admin-section-title { margin-top:28px; }
.notes-admin-editor .admin-section-title:first-of-type { margin-top:0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-nav-auth { display: none; }
.menu-toggle, .icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--primary); background: white; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 3px 0; background: currentColor; }

.btn { display: inline-flex; min-height: 46px; padding: 11px 20px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--primary); box-shadow: 0 8px 20px rgba(12,65,41,.18); }
.btn-primary:hover { background: var(--primary-2); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--mint); }
.btn-light { color: var(--primary); background: white; }
.btn-gold { color: #302606; background: #f2cf65; }
.btn-sm { min-height: 38px; padding: 8px 13px; font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero { position: relative; overflow: hidden; padding: 88px 0 76px; background: linear-gradient(135deg, #f8fcfa 0%, #edf8f2 52%, #fffaf0 100%); }
.hero::after { position: absolute; right: -120px; bottom: -170px; width: 420px; height: 420px; border: 75px solid rgba(212,167,44,.09); border-radius: 50%; content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 58px; }
.hero h1 span { color: var(--primary-2); }
.hero-copy > p { max-width: 660px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #415f53; font-size: .88rem; font-weight: 700; }
.hero-trust span::before { margin-right: 7px; color: var(--accent); content: "✓"; font-weight: 900; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 28px 38px rgba(12,65,41,.14)); }
.floating-note { position: absolute; right: -8px; bottom: 5%; padding: 13px 16px; border: 1px solid white; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); font-size: .86rem; font-weight: 800; }
.floating-note strong { display: block; color: var(--primary); font-size: 1.25rem; }

.stats { position: relative; z-index: 2; margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--primary); font-family: Georgia, serif; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: .88rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 26px rgba(12,65,41,.055); }
.category-card { position: relative; min-height: 170px; padding: 24px; overflow: hidden; }
.category-card::after { position: absolute; right: -16px; bottom: -20px; width: 76px; height: 76px; border-radius: 24px; content: ""; background: var(--mint); transform: rotate(18deg); }
.category-icon { display: grid; width: 45px; height: 45px; margin-bottom: 22px; place-items: center; border-radius: 13px; color: white; background: var(--primary); font-weight: 900; }
.category-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.category-card:hover { border-color: #b9d7c8; transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card { transition: .2s; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature-panel { padding: 34px; border-radius: 24px; background: var(--mint); }
.feature-list { display: grid; margin: 24px 0; gap: 13px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.check { display: grid; width: 25px; height: 25px; flex: 0 0 auto; margin-top: 2px; place-items: center; border-radius: 50%; color: white; background: var(--primary); font-size: .78rem; }
.audience-card { padding: 34px; }
.audience-card.teacher { color: white; background: var(--primary); }
.audience-card.teacher h2, .audience-card.teacher h3 { color: white; }
.audience-card.student { background: #fffaf0; }

.ceo-section { padding-top: 20px; background: linear-gradient(180deg,#fff 0%,#f4faf7 100%); }
.ceo-card { display: grid; grid-template-columns: 360px 1fr; border: 1px solid #cfe0d7; border-radius: 26px; background: white; box-shadow: 0 22px 55px rgba(12,65,41,.1); overflow: hidden; }
.ceo-identity { display: flex; min-height: 520px; padding: 42px 34px; flex-direction: column; justify-content: space-between; color: white; background: linear-gradient(145deg,#082f1f,#17613f); }
.ceo-portrait { width: 230px; height: 290px; margin: 10px auto 35px; border: 5px solid rgba(255,255,255,.18); border-radius: 115px 115px 28px 28px; background: white; box-shadow: 0 20px 38px rgba(0,0,0,.22); overflow: hidden; }
.ceo-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.ceo-nameplate .eyebrow { color: #d7e9df; }
.ceo-nameplate h2 { margin-bottom: 7px; color: white; }
.ceo-nameplate p { margin: 0; color: #bfd6ca; font-weight: 700; }
.ceo-story { padding: 48px clamp(30px,5vw,70px); align-self: center; }
.ceo-story .lead { color: var(--primary); font-family: Georgia,serif; font-size: 1.35rem; line-height: 1.5; }
.ceo-story p { color: #40594e; }
.ceo-story blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--accent); color: var(--primary); background: var(--mint-2); font-family: Georgia,serif; font-size: 1.12rem; font-style: italic; }
.ceo-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ceo-highlights span { padding: 7px 11px; border: 1px solid #cfe1d7; border-radius: 20px; color: #36584a; background: #f4faf7; font-size: .76rem; font-weight: 800; }

/* Teacher Boen professional CV */
.boen-cv-page { background:#fff; }
.boen-cv-hero { position:relative;min-height:680px;padding:86px 0;overflow:hidden;color:#fff;background:linear-gradient(125deg,#071f15 0%,#0c4129 52%,#17613f 100%); }
.boen-cv-hero::after { position:absolute;right:-120px;bottom:-220px;width:560px;height:560px;border:1px solid rgba(212,167,44,.2);border-radius:50%;content:"";box-shadow:0 0 0 65px rgba(212,167,44,.04),0 0 0 130px rgba(212,167,44,.025); }
.boen-cv-grid-bg { position:absolute;inset:0;opacity:.08;background-image:linear-gradient(rgba(255,255,255,.25) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.25) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(90deg,#000,transparent 72%); }
.boen-cv-hero-grid { position:relative;z-index:2;display:grid;grid-template-columns:360px minmax(0,1fr);gap:clamp(48px,7vw,105px);align-items:center; }
.boen-cv-photo-wrap { position:relative;max-width:340px;margin:auto; }
.boen-cv-photo-wrap figure { position:relative;z-index:2;width:310px;height:410px;margin:0;border:8px solid rgba(255,255,255,.12);border-radius:155px 155px 28px 28px;background:#fff;box-shadow:0 30px 70px rgba(0,0,0,.38);overflow:hidden;animation:boenPortraitIn .85s ease both; }
.boen-cv-photo-wrap img { width:100%;height:100%;object-fit:cover;object-position:50% 30%; }
.boen-cv-photo-ring { position:absolute;top:-28px;left:-28px;width:310px;height:310px;border:1px solid rgba(212,167,44,.55);border-radius:50%;animation:boenRing 18s linear infinite; }
.boen-cv-photo-ring::before,.boen-cv-photo-ring::after { position:absolute;border-radius:50%;content:"";background:#e7bf4b;box-shadow:0 0 20px rgba(231,191,75,.65); }
.boen-cv-photo-ring::before { top:32px;right:18px;width:10px;height:10px; }
.boen-cv-photo-ring::after { bottom:20px;left:52px;width:7px;height:7px; }
.boen-cv-verified { position:absolute;right:-12px;bottom:42px;z-index:3;padding:10px 14px;border:1px solid rgba(255,255,255,.25);border-radius:9px;color:#2e2508;background:#f2cf65;box-shadow:0 14px 28px rgba(0,0,0,.2);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;animation:boenBadgeIn .7s .45s ease both; }
.boen-cv-intro .breadcrumbs { color:#b9d1c4; }
.boen-cv-intro .breadcrumbs a { color:#e4efe8; }
.boen-cv-kicker { display:block;margin:18px 0 12px;color:#e2c062;font-size:.73rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;animation:boenCopyIn .7s .1s ease both; }
.boen-cv-intro h1 { margin:0;color:#fff;font-size:clamp(4rem,9vw,7.4rem);line-height:.88;letter-spacing:-.055em;animation:boenCopyIn .75s .18s ease both; }
.boen-cv-intro h1 em { color:#e2c062;font-weight:400; }
.boen-cv-role { margin:22px 0 12px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.35rem,3vw,2rem);animation:boenCopyIn .75s .26s ease both; }
.boen-cv-summary { max-width:760px;color:#c7d9cf;font-size:1.02rem;line-height:1.75;animation:boenCopyIn .75s .34s ease both; }
.boen-cv-contact { display:flex;margin:28px 0;gap:12px;flex-wrap:wrap;animation:boenCopyIn .75s .42s ease both; }
.boen-cv-contact a,.boen-cv-contact>span { display:flex;padding:9px 13px;border:1px solid rgba(255,255,255,.13);border-radius:9px;color:#e4eee8;background:rgba(255,255,255,.055);align-items:center;gap:9px;font-size:.78rem; }
.boen-cv-contact span span,.boen-cv-contact>span b { display:grid;width:25px;height:25px;place-items:center;border-radius:7px;color:#e2c062;background:rgba(212,167,44,.1);font-size:.62rem; }
.boen-cv-contact strong { font-weight:750; }
.boen-cv-actions { display:flex;gap:12px;flex-wrap:wrap;animation:boenCopyIn .75s .5s ease both; }
.boen-cv-metrics { position:relative;z-index:3;margin-top:-1px;color:#fff;background:#082f1f; }
.boen-cv-metrics .container { display:grid;grid-template-columns:repeat(4,minmax(0,1fr)); }
.boen-cv-metrics article { padding:30px 28px;border-right:1px solid rgba(255,255,255,.1); }
.boen-cv-metrics article:last-child { border-right:0; }
.boen-cv-metrics strong,.boen-cv-metrics span { display:block; }
.boen-cv-metrics strong { color:#e2c062;font-family:Georgia,"Times New Roman",serif;font-size:2.2rem; }
.boen-cv-metrics span { margin-top:4px;color:#bdd1c6;font-size:.74rem;font-weight:750; }
.boen-cv-section-number { display:block;margin-bottom:8px;color:#d1aa3c;font-family:Georgia,"Times New Roman",serif;font-size:3rem;line-height:1;opacity:.55; }
.boen-cv-two-column { display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:clamp(45px,8vw,110px);align-items:start; }
.boen-cv-two-column h2 { font-size:clamp(2rem,4vw,3.2rem); }
.boen-cv-profile-copy .lead { color:var(--primary);font-family:Georgia,"Times New Roman",serif;font-size:1.28rem;line-height:1.55; }
.boen-cv-profile-copy>p { color:#486055;line-height:1.8; }
.boen-cv-principles { display:flex;margin-top:24px;gap:8px;flex-wrap:wrap; }
.boen-cv-principles span { padding:7px 10px;border:1px solid #d7e3dc;border-radius:999px;color:#3d5c4e;background:#f7faf8;font-size:.72rem;font-weight:800; }
.boen-cv-heading { display:flex;margin-bottom:40px;align-items:end;justify-content:space-between;gap:40px; }
.boen-cv-heading h2 { max-width:700px;margin:0;font-size:clamp(2rem,4vw,3.3rem); }
.boen-cv-heading>p { max-width:500px;margin:0;color:var(--muted); }
.boen-strength-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
.boen-strength-grid article { display:grid;padding:24px;border:1px solid #dce6e0;border-radius:13px;background:#fff;grid-template-columns:54px minmax(0,1fr);gap:18px;transition:.25s; }
.boen-strength-grid article:hover { border-color:#a9c0b4;box-shadow:0 16px 34px rgba(12,65,41,.1);transform:translateY(-4px); }
.boen-strength-icon { display:grid;width:52px;height:52px;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(145deg,#0c4129,#21815a);font-size:.68rem;font-weight:900;letter-spacing:.04em; }
.boen-strength-grid h3 { margin:1px 0 7px;font-size:1.12rem; }
.boen-strength-grid p { min-height:62px;margin:0;color:var(--muted);font-size:.82rem;line-height:1.6; }
.boen-strength-grid b { display:block;height:5px;margin-top:18px;border-radius:5px;background:#e8efeb;overflow:hidden; }
.boen-strength-grid b i { display:block;width:var(--skill);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),var(--accent));transform-origin:left;animation:boenSkill 1.2s ease both; }
.boen-project-list { display:grid;gap:15px; }
.boen-project-list article { display:grid;padding:28px;border:1px solid var(--line);border-radius:14px;background:#fff;grid-template-columns:55px minmax(0,1fr) 130px;gap:25px;align-items:start;transition:.25s; }
.boen-project-list article:hover { border-color:#c3a75c;box-shadow:0 18px 40px rgba(12,65,41,.1);transform:translateX(5px); }
.boen-project-index { color:#d1aa3c;font-family:Georgia,"Times New Roman",serif;font-size:1.7rem; }
.boen-project-list small { color:#7d8b83;font-size:.7rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase; }
.boen-project-list h3 { margin:5px 0 8px;font-size:1.35rem; }
.boen-project-list p { margin:0;color:var(--muted); }
.boen-project-list ul { display:flex;margin:15px 0 0;padding:0;gap:8px;flex-wrap:wrap;list-style:none; }
.boen-project-list li { padding:6px 9px;border-radius:7px;color:#496157;background:#edf5f0;font-size:.7rem;font-weight:750; }
.boen-project-list article>strong { padding:12px;border-left:2px solid #e2c062;color:#496157;font-size:.72rem;line-height:1.45;text-transform:uppercase; }
.boen-cv-experience .boen-cv-heading h2,.boen-cv-experience .eyebrow { color:#fff; }
.boen-timeline { position:relative;display:grid;max-width:1000px;margin:auto;gap:0; }
.boen-timeline::before { position:absolute;top:0;bottom:0;left:109px;width:1px;content:"";background:linear-gradient(#d4a72c,rgba(212,167,44,.1)); }
.boen-timeline article { position:relative;display:grid;padding:0 0 55px;grid-template-columns:85px minmax(0,1fr);gap:50px; }
.boen-timeline article::before { position:absolute;top:5px;left:102px;width:15px;height:15px;border:4px solid #0b3826;border-radius:50%;content:"";background:#e2c062;box-shadow:0 0 0 3px rgba(226,192,98,.3); }
.boen-time strong,.boen-time span { display:block; }
.boen-time strong { color:#e2c062;font-family:Georgia,"Times New Roman",serif;font-size:1.35rem; }
.boen-time span { color:#9eb8aa;font-size:.7rem; }
.boen-timeline h3 { margin:0;color:#fff;font-size:1.55rem; }
.boen-timeline h4 { margin:5px 0 14px;color:#bfd2c7;font-size:.86rem;font-weight:700; }
.boen-timeline ul { margin:0;padding-left:19px;color:#aebfb6;font-size:.85rem;line-height:1.75; }
.boen-current-role { display:inline-block;margin-bottom:7px;padding:5px 8px;border-radius:6px;color:#2c250d;background:#e2c062;font-size:.62rem;font-weight:900;text-transform:uppercase; }
.boen-cv-credential-grid { display:grid;grid-template-columns:minmax(240px,.55fr) minmax(0,1.45fr);gap:60px; }
.boen-credential-cards { display:grid;gap:12px; }
.boen-credential-cards article,.boen-credential-card { display:grid;padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff;grid-template-columns:58px minmax(0,1fr);gap:17px;align-items:center;transition:border-color .2s,box-shadow .2s,transform .2s; }
.boen-credential-card:hover { border-color:#c7a86b;box-shadow:0 14px 32px rgba(12,65,41,.1);transform:translateY(-3px); }
.boen-credential-cards article>span,.boen-credential-card>span { display:grid;width:56px;height:56px;place-items:center;border-radius:12px;color:#fff;background:var(--primary);font-size:.66rem;font-weight:900; }
.boen-credential-card>span.boen-credential-logo { padding:5px;border:1px solid #e4e9e6;background:#fff;overflow:hidden; }
.boen-credential-logo img { width:100%;height:100%;object-fit:contain; }
.boen-credential-cards small { color:#806419;font-size:.68rem;font-weight:850;text-transform:uppercase; }
.boen-credential-cards h3 { margin:3px 0;font-size:1.2rem; }
.boen-credential-cards p { margin:0;color:var(--muted); }
.boen-contribution-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px; }
.boen-contribution-grid article { padding:25px;border:1px solid #dce6e0;border-radius:13px;background:#fff; }
.boen-contribution-grid span { color:var(--primary);font-family:Georgia,"Times New Roman",serif;font-size:2.2rem; }
.boen-contribution-grid h3 { margin:10px 0 7px;font-size:1rem; }
.boen-contribution-grid p { margin:0;color:var(--muted);font-size:.8rem;line-height:1.6; }
.boen-cv-closing { padding:65px 0;color:#fff;background:radial-gradient(circle at 82% 20%,rgba(212,167,44,.22),transparent 20rem),var(--primary); }
.boen-cv-closing .container { display:flex;align-items:center;justify-content:space-between;gap:40px; }
.boen-cv-closing h2 { max-width:760px;margin:5px 0 0;color:#fff;font-size:clamp(2rem,4vw,3.2rem); }
.boen-cv-closing .container>div:last-child { display:flex;gap:10px;flex-wrap:wrap; }
@keyframes boenPortraitIn { from{opacity:0;transform:translateX(-30px) scale(.96)} to{opacity:1;transform:none} }
@keyframes boenBadgeIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }
@keyframes boenCopyIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }
@keyframes boenRing { to{transform:rotate(360deg)} }
@keyframes boenSkill { from{transform:scaleX(0)} to{transform:scaleX(1)} }

.level-card { padding: 25px; }
.level-number { display: inline-block; margin-bottom: 16px; padding: 5px 10px; border-radius: 20px; color: var(--primary); background: var(--mint); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.level-card ul { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.resource-card { display: flex; min-height: 100%; padding: 22px; flex-direction: column; }
.resource-top { display: flex; justify-content: space-between; gap: 12px; }
.file-badge { display: inline-grid; min-width: 42px; height: 42px; padding: 0 7px; place-items: center; border-radius: 11px; color: white; background: var(--primary); font-size: .69rem; font-weight: 900; }
.save-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--primary); background: white; font-size: 1.15rem; }
.save-button.saved { color: white; background: var(--primary); }
.resource-card h3 { margin-top: 18px; font-family: Inter, sans-serif; font-size: 1.08rem; line-height: 1.4; }
.resource-card p { color: var(--muted); font-size: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { padding: 4px 8px; border-radius: 7px; color: #496257; background: var(--surface); font-size: .72rem; font-weight: 700; }
.resource-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.resource-actions .btn { flex: 1; }
.resource-card h3 {
  display: -webkit-box;
  min-height: 3.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.resource-card > p {
  display: -webkit-box;
  min-height: 4.85em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.resource-catalogue-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.resource-catalogue-stats > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg,#fff,#f5faf7);
  box-shadow: 0 8px 22px rgba(12,65,41,.055);
}
.resource-catalogue-stats strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading,Georgia,serif);
  font-size: 1.65rem;
  line-height: 1;
}
.resource-catalogue-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.resource-source-note {
  margin-bottom: 13px;
  padding: 13px 15px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: #415b50;
  background: #fff9e8;
  font-size: .82rem;
  line-height: 1.55;
}
.resource-active-filters {
  display: flex;
  min-height: 33px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
}
.resource-active-filters strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: #315344;
  background: var(--mint);
}
.resource-pagination {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.resource-pagination button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-weight: 800;
}
.resource-pagination button:hover,
.resource-pagination button.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}
.resource-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.resource-pagination span { color: var(--muted); }
.resource-detail-list {
  display: grid;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.resource-detail-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.resource-detail-list dt { color: var(--muted); font-weight: 700; }
.resource-detail-list dd { margin: 0; color: var(--ink); font-weight: 750; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .resource-catalogue-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .resource-catalogue-stats { grid-template-columns: 1fr; }
  .resource-detail-list > div { grid-template-columns: 1fr; gap: 2px; }
}

.page-hero { padding: 70px 0; background: linear-gradient(120deg, var(--primary), #17613f); }
.page-hero h1 { max-width: 820px; color: white; font-size: clamp(2.4rem, 5vw, 4.3rem); }
.page-hero p { max-width: 700px; color: #d7e9df; font-size: 1.1rem; }
.breadcrumbs { margin-bottom: 18px; color: #c5ddd1; font-size: .85rem; }
.breadcrumbs a:hover { color: white; }

.filters-layout { display: grid; grid-template-columns: 280px 1fr; align-items: start; gap: 28px; }
.filters { position: sticky; top: 98px; padding: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .84rem; font-weight: 800; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #cbd9d1; border-radius: 10px; color: var(--ink); background: white; }
.textarea { min-height: 135px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(23,97,63,.1); outline: none; }
.search-bar { display: flex; gap: 10px; margin-bottom: 22px; }
.search-bar .input { min-height: 52px; }
.results-head { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; gap: 20px; }
.results-head p { margin: 0; color: var(--muted); }
.empty-state { display: none; padding: 45px; grid-column: 1 / -1; text-align: center; }
.empty-state.visible { display: block; }

.blog-card { overflow: hidden; }
.blog-image { aspect-ratio: 16/9; overflow: hidden; background: var(--mint); }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-card:hover .blog-image img { transform: scale(1.035); }
.blog-body { padding: 23px; }
.blog-kicker { display: flex; margin-bottom: 13px; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.blog-card h3 { font-family: Inter, sans-serif; font-size: 1.2rem; }
.blog-card p { color: var(--muted); font-size: .9rem; }
.article-preview { margin: 17px 0; padding: 14px 15px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--mint-2); }
.article-preview strong { display: block; margin-bottom: 4px; color: var(--primary); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.article-preview p { margin: 0; color: #40594e; }
.article { max-width: 790px; margin: auto; }
.article-header { margin-bottom: 35px; }
.article-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.article-content h2 { margin-top: 2rem; font-size: 2rem; }
.article-content h3 { margin-top: 1.7rem; }
.article-content p, .article-content li { color: #344d43; font-size: 1.04rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--line); }

.auth-shell { min-height: calc(100vh - 78px); padding: 60px 0; background: var(--mint-2); }
.auth-grid { display: grid; max-width: 1000px; margin: auto; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.auth-side { display: flex; padding: 45px; flex-direction: column; justify-content: flex-end; color: white; background: linear-gradient(145deg, var(--primary), #1c704b); }
.auth-side h1, .auth-side h2 { color: white; font-size: 2.6rem; }
.auth-form { padding: 45px; }
.auth-provider-grid { display:grid;margin:24px 0 18px;grid-template-columns:1fr 1fr;gap:10px; }
.auth-provider { display:flex;min-height:48px;padding:10px 13px;align-items:center;justify-content:center;gap:9px;border:1px solid #d8e3dd;border-radius:10px;color:#27483a;background:#fff;font-size:.82rem;font-weight:800;transition:border-color .2s,box-shadow .2s,transform .2s; }
.auth-provider:hover { border-color:#9bb8a8;box-shadow:0 9px 22px rgba(12,65,41,.09);transform:translateY(-2px); }
.auth-provider span { display:grid;width:25px;height:25px;place-items:center;border-radius:50%;color:#fff;background:var(--primary);font-weight:900; }
.auth-provider[data-auth-provider="google"] span { color:#33483f;background:#f4f7f5;box-shadow:inset 0 0 0 1px #d8e3dd; }
.auth-provider[data-auth-provider="facebook"] span { background:#1877f2;font-family:Arial,sans-serif;font-size:1.05rem; }
.auth-divider { display:flex;margin:18px 0;align-items:center;gap:12px;color:#7b8a82;font-size:.72rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em; }
.auth-divider::before,.auth-divider::after { height:1px;content:"";background:#e0e8e3;flex:1; }
.auth-form-row { display:flex;margin-bottom:20px;align-items:center;justify-content:space-between;gap:15px; }
.auth-submit { width:100%;margin-top:18px; }
.auth-phone-panel { margin-top:20px;padding:15px 17px;border:1px solid #dbe6e0;border-radius:12px;background:#f8fbf9; }
.auth-phone-panel summary { color:var(--primary);font-size:.86rem;font-weight:850;cursor:pointer; }
.auth-phone-panel[open] summary { margin-bottom:15px; }
.auth-code-row { display:grid;margin-top:10px;grid-template-columns:minmax(0,1fr) auto;gap:8px; }
.auth-setup-note { margin:16px 0 0;color:#6c7d74;font-size:.75rem;line-height:1.55; }
.auth-setup-note code { color:#4d633f;background:#edf3e8;overflow-wrap:anywhere; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .86rem; }
.form-message { display: none; margin: 14px 0; padding: 11px 13px; border-radius: 9px; font-size: .88rem; }
.form-message.success { display: block; color: #125232; background: #e4f5ea; }
.form-message.error { display: block; color: #8a251f; background: #fff0ef; }

.dashboard-layout { display: grid; grid-template-columns: 235px 1fr; min-height: calc(100vh - 78px); }
.dashboard-sidebar { padding: 30px 22px; color: white; background: var(--primary); }
.dashboard-sidebar h2 { color: white; font-family: Inter, sans-serif; font-size: 1.25rem; }
.dashboard-nav { display: grid; gap: 6px; margin-top: 25px; }
.dashboard-nav a { padding: 11px 12px; border-radius: 9px; color: #d4e7dc; font-size: .9rem; font-weight: 700; }
.dashboard-nav a:hover, .dashboard-nav a.active { color: white; background: rgba(255,255,255,.12); }
.dashboard-main { padding: 38px; background: var(--surface); }
.dashboard-cards { display: grid; margin-bottom: 30px; grid-template-columns: repeat(4,1fr); gap: 16px; }
.dash-stat { padding: 20px; }
.dash-stat strong { display: block; color: var(--primary); font-size: 1.7rem; }
.admin-app { min-height: 100vh; overflow-x: hidden; background: #eef3f0; }
.admin-app-layout { display: grid; min-height: 100vh; grid-template-columns: 288px 1fr; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; width: 288px; padding: 24px 18px 18px; flex-direction: column; color: white; background: linear-gradient(180deg,#06291b 0%,#0a3a27 62%,#082f1f 100%); box-shadow: 10px 0 30px rgba(4,31,20,.13); }
.admin-brand { display: flex; padding: 0 8px 23px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.11); }
.admin-brand .brand-mark { background: linear-gradient(145deg,#e3bd4d,#c99718); box-shadow: 0 10px 24px rgba(0,0,0,.2); color: #26310a; }
.admin-brand strong, .admin-brand small { display: block; color: white; }
.admin-brand strong { font-size: 1rem; letter-spacing: -.01em; }
.admin-brand small { color: #a8c6b7; font-size: .7rem; font-weight: 650; letter-spacing: .025em; }
.admin-profile { display: flex; margin: 20px 2px 18px; padding: 14px; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.065); }
.admin-profile strong, .admin-profile small { display: block; }
.admin-profile small { color: #b7d0c3; font-size: .74rem; }
.admin-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: #2e2404; background: linear-gradient(145deg,#f0d36f,#d4a72c); box-shadow: 0 7px 16px rgba(0,0,0,.14); font-size: .78rem; font-weight: 900; }
.admin-avatar.large { width: 60px; height: 60px; border-radius: 17px; font-size: 1rem; }
.admin-menu { display: grid; gap: 6px; }
.admin-menu-link { position: relative; display: flex; width: 100%; min-height: 46px; padding: 8px 11px; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 11px; color: #bad2c6; background: transparent; text-align: left; font-size: .88rem; font-weight: 750; transition: .18s ease; }
.admin-menu-link span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #d7e8df; background: rgba(255,255,255,.07); font-size: .58rem; font-weight: 900; letter-spacing: .03em; text-align: center; }
.admin-menu-link:hover { color: white; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.07); transform: translateX(2px); }
.admin-menu-link.active { color: #183019; border-color: rgba(255,255,255,.75); background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.16); }
.admin-menu-link.active span { color: #fff; background: var(--primary); }
.admin-sidebar-bottom { display: grid; margin-top: auto; gap: 5px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-sidebar-bottom a, .admin-sidebar-bottom button { display: flex; padding: 10px 12px; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; color: #c6dacf; background: transparent; text-align: left; font-size: .82rem; font-weight: 750; }
.admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover { color: white; background: rgba(255,255,255,.09); }
.admin-workspace { min-width: 0; grid-column: 2; }
.admin-topbar { position: sticky; top: 0; z-index: 40; display: flex; min-height: 78px; padding: 13px 32px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(12,65,41,.09); background: rgba(255,255,255,.9); box-shadow: 0 5px 22px rgba(12,65,41,.045); backdrop-filter: blur(18px) saturate(150%); }
.admin-topbar strong, .admin-topbar small { display: block; }
.admin-topbar strong { color: var(--primary); font-size: 1.08rem; letter-spacing: -.015em; }
.admin-topbar small { color: var(--muted); font-size: .74rem; }
.admin-top-actions { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.admin-live-status { display: inline-flex; padding: 7px 10px; align-items: center; gap: 8px; border: 1px solid #d8e7df; border-radius: 999px; color: #35624c; background: #f5faf7; }
.site-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ca568; box-shadow: 0 0 0 4px rgba(44,165,104,.13); }
.admin-mobile-menu { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--primary); background: white; }
.admin-mobile-menu span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: currentColor; }
.admin-content { width: min(1450px, 100%); padding: 34px; }
.admin-view { display: none; }
.admin-view.active { display: block; animation: adminFade .2s ease; }
@keyframes adminFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.admin-welcome { position: relative; display: flex; min-height: 210px; margin-bottom: 25px; padding: 34px 38px; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; color: white; background: linear-gradient(125deg,#0a3925 0%,#17613f 66%,#237550 100%); box-shadow: 0 18px 42px rgba(12,65,41,.16); overflow: hidden; }
.admin-welcome::before, .admin-welcome::after { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; pointer-events: none; }
.admin-welcome::before { right: 8%; width: 240px; height: 240px; }
.admin-welcome::after { right: -80px; bottom: -145px; width: 330px; height: 330px; border-width: 55px; border-color: rgba(212,167,44,.12); }
.admin-welcome > * { position: relative; z-index: 1; }
.admin-welcome h1 { max-width: 760px; margin-bottom: 9px; color: white; font-size: clamp(2rem,4vw,3rem); letter-spacing: -.035em; }
.admin-welcome p { margin: 0; color: #d7e8df; }
.admin-welcome .eyebrow { color: #dcebe3; }
.admin-page-heading { display: flex; margin-bottom: 25px; padding: 4px 2px 17px; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(12,65,41,.09); }
.admin-page-heading h1 { margin: 0 0 7px; font-size: clamp(2rem,4vw,2.75rem); letter-spacing: -.04em; }
.admin-page-heading p { margin: 0; color: var(--muted); }
.admin-stat-grid { display: grid; margin-bottom: 24px; grid-template-columns: repeat(4,1fr); gap: 16px; }
.admin-stat-card { position: relative; display: flex; min-height: 120px; padding: 21px; align-items: center; gap: 16px; border: 1px solid #d9e5df; border-radius: 17px; background: linear-gradient(145deg,#fff,#fbfdfc); box-shadow: 0 8px 24px rgba(12,65,41,.055); overflow: hidden; transition: transform .18s,box-shadow .18s,border-color .18s; }
.admin-stat-card::after { position: absolute; right: -16px; bottom: -24px; width: 74px; height: 74px; border-radius: 24px; content: ""; background: rgba(12,65,41,.035); transform: rotate(18deg); }
.admin-stat-card:hover { border-color: #b8d2c5; box-shadow: 0 13px 30px rgba(12,65,41,.09); transform: translateY(-2px); }
.admin-stat-card small, .admin-stat-card strong, .admin-stat-card p { display: block; margin: 0; }
.admin-stat-card small { color: var(--muted); font-weight: 700; }
.admin-stat-card strong { color: var(--primary); font-size: 1.8rem; }
.admin-stat-card p { color: #789087; font-size: .72rem; }
.admin-stat-icon { display: grid; width: 49px; height: 49px; flex: 0 0 auto; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg,var(--primary),var(--primary-2)); box-shadow: 0 8px 18px rgba(12,65,41,.17); font-weight: 900; }
.admin-stat-icon.gold { color: #372a04; background: #f1ce62; }
.admin-stat-icon.blue { background: #3977a8; }
.admin-stat-icon.purple { background: #7456a6; }
.admin-dashboard-grid { display: grid; margin-bottom: 24px; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.admin-card { margin-bottom: 22px; padding: 27px; border: 1px solid #d8e4de; border-radius: 19px; background: white; box-shadow: 0 7px 23px rgba(12,65,41,.045); }
.admin-card-head { display: flex; margin-bottom: 22px; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.admin-card h2, .admin-card h3 { margin-bottom: 5px; font-family: Inter, sans-serif; }
.admin-card h2 { font-size: 1.25rem; }
.admin-card h3 { font-size: 1rem; }
.admin-card-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.admin-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.admin-quick-grid button { position: relative; min-height: 128px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: linear-gradient(145deg,#f9fbfa,#f3f8f5); text-align: left; transition: .18s; }
.admin-quick-grid button:hover { border-color: #9fc5b2; background: var(--mint); box-shadow: 0 9px 21px rgba(12,65,41,.07); transform: translateY(-2px); }
.admin-quick-icon { display: grid; width: 34px; height: 34px; margin-bottom: 14px; place-items: center; border-radius: 9px; color: white; background: var(--primary); font-size: .7rem; font-weight: 900; }
.admin-quick-grid strong, .admin-quick-grid small { display: block; }
.admin-quick-grid strong { color: var(--primary); }
.admin-quick-grid small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.admin-checklist { display: grid; gap: 13px; }
.admin-checklist label { display: flex; align-items: center; gap: 10px; color: #425d52; font-size: .88rem; }
.admin-checklist input { width: 18px; height: 18px; accent-color: var(--primary); }
.admin-recent-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.admin-section-title { display: flex; margin: 12px 0 19px; padding: 14px 15px; align-items: center; gap: 13px; border: 1px solid #dce8e2; border-radius: 12px; background: #f6faf8; }
.admin-section-title:not(:first-child) { margin-top: 32px; }
.admin-section-title > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg,var(--primary),var(--primary-2)); box-shadow: 0 6px 14px rgba(12,65,41,.15); font-weight: 900; }
.admin-section-title h2, .admin-section-title p { margin: 0; }
.admin-section-title h2 { font-size: 1.05rem; }
.admin-section-title p { color: var(--muted); font-size: .8rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.admin-form-grid .field-wide { grid-column: 1 / -1; }
.admin-app .field label { margin-bottom: 7px; color: #29463a; font-size: .78rem; letter-spacing: .012em; }
.admin-app .input, .admin-app .select, .admin-app .textarea { border-color: #cbdad2; border-radius: 11px; background: #fcfdfc; box-shadow: inset 0 1px 2px rgba(12,65,41,.025); transition: border-color .18s,box-shadow .18s,background .18s; }
.admin-app .input:hover, .admin-app .select:hover, .admin-app .textarea:hover { border-color: #afc8bb; background: white; }
.admin-app .input:focus, .admin-app .select:focus, .admin-app .textarea:focus { border-color: #4e9a73; background: white; box-shadow: 0 0 0 4px rgba(23,97,63,.09); }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-editor { min-height: 330px; font-family: Georgia, serif; font-size: 1.03rem; line-height: 1.7; }
.editor-help { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.admin-list { display: grid; gap: 10px; margin-top: 18px; }
.admin-list-item { display: flex; padding: 15px 16px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; transition: .16s; }
.admin-list-item:hover { border-color: #b7d1c4; background: white; box-shadow: 0 7px 18px rgba(12,65,41,.05); }
.admin-list-item small { display: block; color: var(--muted); }
.admin-note { padding: 16px; border: 1px solid #ead79b; border-radius: 12px; color: #594914; background: #fff9e7; }
.admin-setting-list { display: grid; }
.admin-setting-list > label { display: flex; padding: 17px 0; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.admin-setting-list > label:last-child { border-bottom: 0; }
.admin-setting-list strong, .admin-setting-list small { display: block; }
.admin-setting-list small { margin-top: 3px; color: var(--muted); }
.admin-switch { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; }
.admin-switch input { position: absolute; opacity: 0; pointer-events: none; }
.admin-switch span { position: relative; display: block; width: 44px; height: 24px; border-radius: 20px; background: #c8d4ce; transition: .2s; }
.admin-switch span::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; content: ""; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.admin-switch input:checked + span { background: var(--primary); }
.admin-switch input:checked + span::after { transform: translateX(20px); }
.admin-sticky-save { position: sticky; bottom: 15px; z-index: 20; display: flex; padding: 14px 17px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #c6d9cf; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 13px 38px rgba(12,65,41,.15); backdrop-filter: blur(14px); }
.admin-sticky-save span { color: var(--muted); font-size: .84rem; }
.admin-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-color-grid label { display: flex; padding: 14px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbf9; font-size: .85rem; font-weight: 800; }
.admin-color-grid input { width: 48px; height: 38px; padding: 2px; border: 0; background: white; }
.brand-preview { display: flex; margin-top: 23px; padding: 20px; align-items: center; gap: 13px; border-radius: 12px; background: var(--mint-2); }
.brand-preview strong, .brand-preview small { display: block; }
.brand-preview small { color: var(--muted); }
.status-pill { padding: 5px 10px; border-radius: 20px; color: #17613f; background: #e5f5eb; font-size: .75rem; font-weight: 800; }
.admin-account-row { display: flex; margin-bottom: 20px; align-items: center; gap: 14px; }
.admin-account-row p { margin: 3px 0; color: var(--muted); }
.admin-account-row small { color: #789087; }
.security-detail { display: flex; padding: 13px 0; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.security-detail strong { color: var(--ink); }
.security-detail + .btn { margin-top: 20px; }
.admin-backup-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.admin-backup-grid button, .admin-backup-grid label { min-height: 130px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: linear-gradient(145deg,#fafcfb,#f3f8f5); text-align: left; cursor: pointer; transition: .18s; }
.admin-backup-grid button:hover, .admin-backup-grid label:hover { border-color: #a9cdbc; background: var(--mint); }
.admin-backup-grid strong, .admin-backup-grid small { display: block; }
.admin-backup-grid strong { color: var(--primary); }
.admin-backup-grid small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.admin-backup-grid input { display: none; }
.article-sync-badge { display: inline-flex; padding: 7px 11px; align-items: center; gap: 8px; border: 1px solid #cde2d7; border-radius: 999px; color: #256344; background: #f0f8f4; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.article-title-input { min-height: 56px !important; font-size: 1.15rem; font-weight: 800; }
.article-slug-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.article-slug-row > span { color: var(--muted); font-size: .85rem; font-weight: 800; }
.article-image-picker { display: flex; min-height: 92px; padding: 14px; align-items: center; flex-wrap: wrap; gap: 12px; border: 1px dashed #acc9ba; border-radius: 12px; background: #f8fbf9; }
.article-image-picker > input { position: absolute; opacity: 0; pointer-events: none; }
.article-image-picker > span { color: var(--muted); font-size: .8rem; }
.article-image-picker img { width: 150px; height: 84px; margin-left: auto; border-radius: 9px; object-fit: cover; }
.rich-editor-shell { position: relative; border: 1px solid #c9d9d1; border-radius: 14px; background: white; box-shadow: 0 7px 25px rgba(12,65,41,.055); overflow: hidden; }
.rich-editor-toolbar { position: sticky; top: 76px; z-index: 8; display: flex; padding: 9px; align-items: center; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid #dbe6e0; background: rgba(247,250,248,.97); backdrop-filter: blur(12px); }
.rich-editor-toolbar button, .rich-editor-toolbar .editor-color { display: inline-grid; min-width: 34px; height: 34px; padding: 0 8px; place-items: center; border: 1px solid #d3e0d9; border-radius: 7px; color: #294c3d; background: white; font-size: .7rem; font-weight: 850; cursor: pointer; }
.rich-editor-toolbar button:hover { border-color: var(--primary); color: white; background: var(--primary); }
.rich-editor-toolbar .select { width: auto; min-height: 34px; padding: 5px 28px 5px 8px; font-size: .72rem; }
.editor-color { position: relative; overflow: hidden; }
.editor-color input { position: absolute; inset: auto 2px 2px; width: calc(100% - 4px); height: 5px; padding: 0; border: 0; }
.editor-highlight { background: #fff8c9 !important; }
.rich-editor { min-height: 520px; padding: 38px clamp(22px,5vw,72px); color: #173228; background: #fff; caret-color: #173228; color-scheme: light; font-family: Georgia,"Times New Roman",serif; font-size: 1.08rem; line-height: 1.75; outline: none; }
.rich-editor p, .rich-editor li, .rich-editor div { color: inherit; }
.rich-editor:empty::before { color: #8b9c94; content: attr(data-placeholder); }
.rich-editor h1, .rich-editor h2, .rich-editor h3, .rich-editor h4 { margin-top: 1.4em; }
.rich-editor blockquote, .article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--accent); color: #284b3c; background: #f5faf7; font-size: 1.08em; }
.rich-editor pre, .article-content pre { padding: 18px; border-radius: 10px; color: #e9f7ef; background: #102c21; overflow: auto; }
.rich-editor table, .article-content table { width: 100%; margin: 22px 0; border-collapse: collapse; font-family: Inter,sans-serif; font-size: .9rem; }
.rich-editor th, .rich-editor td, .article-content th, .article-content td { padding: 10px; border: 1px solid #bcd0c5; text-align: left; }
.rich-editor th, .article-content th { color: white; background: var(--primary); }
.rich-editor figure, .article-content figure { margin: 28px auto; text-align: center; }
.rich-editor figure img, .article-content figure img { display: inline-block; max-height: 560px; border-radius: 12px; }
.rich-editor figcaption, .article-content figcaption { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.rich-editor-status { display: flex; padding: 10px 14px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #dbe6e0; color: var(--muted); background: #f8fbf9; font-size: .72rem; }
.rich-editor-status .is-saved { color: #087443; font-weight: 800; }
.article-source-panel { padding: 16px; border-top: 1px solid #dbe6e0; background: #14251e; }
.article-code-heading { display: flex; margin-bottom: 11px; align-items: center; justify-content: space-between; gap: 15px; color: white; }
.article-code-heading strong, .article-code-heading small { display: block; }
.article-code-heading small { color: #b9cec3; font-size: .72rem; }
.article-code-editor { width: 100%; min-height: 250px; padding: 15px; border: 1px solid #355047; border-radius: 10px; color: #eaf7f0; background: #0e1d17; font: 14px/1.6 Consolas,"Courier New",monospace; tab-size: 2; resize: vertical; outline: none; }
.article-code-editor:focus { border-color: #d4a72c; box-shadow: 0 0 0 3px rgba(212,167,44,.15); }
.article-css-editor { min-height: 180px; margin-top: 3px; }
.rich-editor-shell.is-fullscreen { position: fixed; inset: 0; z-index: 999; border: 0; border-radius: 0; overflow: auto; }
.rich-editor-shell.is-fullscreen .rich-editor-toolbar { top: 0; }
.rich-editor-shell.is-fullscreen .rich-editor { min-height: calc(100vh - 110px); }
.article-callout { margin: 23px 0; padding: 17px 19px; border: 1px solid #e1cf88; border-radius: 10px; background: #fff9e6; }
.article-callout strong { color: #6c5310; }
.article-callout p { margin: 4px 0 0; }
.article-video { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: 12px; background: #12271f; }
.article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-publish-actions { position: sticky; bottom: 12px; z-index: 7; padding: 12px; border: 1px solid #c5d8ce; border-radius: 13px; background: rgba(255,255,255,.95); box-shadow: 0 12px 32px rgba(12,65,41,.13); backdrop-filter: blur(12px); }
.article-list-toolbar { display: grid; margin-bottom: 11px; grid-template-columns: 2fr 1fr 1fr auto; gap: 9px; }
.article-bulk-actions { display: flex; margin-bottom: 12px; padding: 10px 12px; align-items: center; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f7faf8; }
.article-table-wrap { overflow-x: auto; border: 1px solid #d4e2da; border-radius: 12px; }
.article-admin-table { width: 100%; min-width: 940px; border-collapse: collapse; background: white; }
.article-admin-table th, .article-admin-table td { padding: 12px; border-bottom: 1px solid #e0e9e4; text-align: left; vertical-align: middle; }
.article-admin-table th { color: #426055; background: #f5f9f7; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.article-admin-table th[data-article-sort] { cursor: pointer; }
.article-admin-table td { font-size: .82rem; }
.article-admin-table td > small { display: block; color: var(--muted); }
.article-title-link { padding: 0; border: 0; color: var(--primary); background: transparent; font-weight: 850; text-align: left; }
.article-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.article-row-actions button, .article-row-actions a { padding: 5px 7px; border: 1px solid #cfddd5; border-radius: 6px; color: var(--primary); background: white; font-size: .66rem; font-weight: 850; }
.article-row-actions button[data-article-delete] { color: #8b271e; }
.article-status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: .68rem; font-weight: 850; text-transform: capitalize; }
.article-status-published { color: #17613f; background: #e5f5eb; }
.article-status-draft { color: #6c591b; background: #fff5cf; }
.article-status-scheduled { color: #315d83; background: #e6f1fa; }
.article-pagination, .blog-pagination { display: flex; margin-top: 15px; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.category-manager-form { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 9px; }
.category-manager-list { display: grid; margin-top: 16px; gap: 8px; }
.category-manager-item { display: grid; padding: 12px; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }
.category-manager-item strong, .category-manager-item small { display: block; }
.category-manager-item small { color: var(--muted); }
.category-manager-item button { padding: 5px 8px; border: 1px solid #cbdad2; border-radius: 6px; color: var(--primary); background: white; font-size: .7rem; font-weight: 800; }
.category-manager-item button:disabled { opacity: .45; cursor: not-allowed; }
.category-drag { color: #89a096; font-weight: 900; }
.blog-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 28px; }
.blog-main .search-bar .select { max-width: 240px; }
.blog-sidebar { display: grid; gap: 17px; }
.blog-sidebar > .card { padding: 21px; }
.blog-sidebar h2 { font-size: 1.18rem; }
.blog-sidebar-links { display: grid; gap: 5px; }
.blog-sidebar-links button { padding: 9px 10px; border: 0; border-radius: 7px; color: #3f5d51; background: #f5f9f7; text-align: left; font-size: .8rem; font-weight: 750; }
.blog-sidebar-links button:hover { color: white; background: var(--primary); }
.blog-recent-posts { display: grid; gap: 11px; }
.blog-recent-posts a { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.blog-recent-posts a:last-child { padding-bottom: 0; border-bottom: 0; }
.blog-recent-posts strong, .blog-recent-posts small { display: block; }
.blog-recent-posts strong { color: var(--primary); font-size: .8rem; line-height: 1.4; }
.blog-recent-posts small { color: var(--muted); font-size: .68rem; }
.blog-sidebar-cta { padding: 24px; border-radius: 18px; color: white; background: linear-gradient(145deg,var(--primary),#1d704c); }
.blog-sidebar-cta h2 { color: white; font-size: 1.45rem; }
.managed-blog-card .blog-body { display: flex; height: calc(100% - 180px); flex-direction: column; }
.managed-blog-card .text-link { margin-top: auto; }
.managed-article { max-width: 900px; }
.article-featured-image { width: 100%; max-height: 560px; margin-bottom: 35px; border-radius: 22px; object-fit: cover; }
.managed-article .article-content { color: #263f34; background: #fff; font-family: Georgia,"Times New Roman",serif; }
.managed-article .article-content p, .managed-article .article-content li { color: #304d40; font-size: 1.08rem; line-height: 1.82; }
.managed-article .article-content > :first-child { margin-top: 0; }
.managed-article .article-content img { max-width: 100%; }
.article-tags { display: flex; margin: 30px 0 10px; flex-wrap: wrap; gap: 7px; }
.article-tags span { padding: 5px 9px; border-radius: 999px; color: #466256; background: var(--mint); font-size: .72rem; font-weight: 800; }
.article-prev-next { display: grid; margin-top: 30px; padding-top: 22px; grid-template-columns: 1fr 1fr; gap: 15px; border-top: 1px solid var(--line); }
.article-prev-next a { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbf9; }
.article-prev-next a:last-child { text-align: right; }
.article-prev-next small, .article-prev-next strong { display: block; }
.article-prev-next small { color: var(--muted); text-transform: uppercase; }
.article-prev-next strong { color: var(--primary); }
.site-announcement { position: relative; z-index: 60; display: flex; min-height: 42px; padding: 8px 52px 8px 20px; align-items: center; justify-content: center; overflow: hidden; color: #2f2608; background: #f2cf65; text-align: center; font-size: .86rem; font-weight: 800; }
.site-announcement-inner { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.site-announcement a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-announcement-close { position: absolute; top: 50%; right: 15px; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: transparent; transform: translateY(-50%); cursor: pointer; }
.site-announcement[data-animation="slide"] .site-announcement-inner { animation: announcement-slide .65s ease both; }
.site-announcement[data-animation="bounce"] .site-announcement-inner { animation: announcement-bounce 1s ease both; }
.site-announcement[data-animation="pulse"] .site-announcement-inner { animation: announcement-pulse 1.6s ease-in-out infinite; }
.site-announcement[data-animation="marquee"] .site-announcement-inner { min-width: max-content; animation: announcement-marquee 14s linear infinite; }
.site-announcement[data-animation="typewriter"] .announcement-message { display: inline-block; max-width: 100%; overflow: hidden; border-right: 2px solid currentColor; white-space: nowrap; animation: announcement-type 4s steps(45,end) infinite alternate; }
.site-announcement[data-animation="neon"] .site-announcement-inner { animation: announcement-neon 2.2s linear infinite; }
@keyframes announcement-slide { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes announcement-bounce { 0% { opacity: 0; transform: translateY(-22px); } 55% { transform: translateY(7px); } 75% { transform: translateY(-3px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes announcement-pulse { 50% { opacity: .65; text-shadow: 0 0 14px currentColor; } }
@keyframes announcement-marquee { from { transform: translateX(105vw); } to { transform: translateX(-105vw); } }
@keyframes announcement-type { from { width: 0; } to { width: 100%; } }
@keyframes announcement-neon { 0%,18%,22%,25%,53%,57%,100% { opacity: 1; text-shadow: 0 0 4px currentColor,0 0 12px currentColor; } 20%,24%,55% { opacity: .35; text-shadow: none; } }
.announcement-preview-wrap { margin-bottom: 22px; padding: 13px; border: 1px dashed #a9c4b6; border-radius: 12px; background: #f7faf8; }
.announcement-preview-wrap > small { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.announcement-preview-wrap .site-announcement { border-radius: 9px; }
.color-input { min-height: 48px; padding: 5px; }
.admin-insights-grid { display: grid; margin-bottom: 24px; grid-template-columns: 1fr 1fr; gap: 20px; }
.analytics-empty-state { display:flex;min-height:210px;padding:28px;align-items:flex-start;justify-content:center;flex-direction:column;border:1px dashed #b9cec3;border-radius:13px;background:#f6faf8; }
.analytics-empty-state strong { color:var(--primary);font-family:Georgia,"Times New Roman",serif;font-size:1.25rem; }
.analytics-empty-state p { max-width:560px;margin:8px 0 18px;color:var(--muted);font-size:.84rem; }
.admin-connected-services { margin-bottom:24px; }
.admin-service-grid { display:grid;margin-bottom:18px;grid-template-columns:1fr 1fr;gap:14px; }
.admin-service-grid>a { display:grid;padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff;grid-template-columns:44px minmax(0,1fr) auto;gap:13px;align-items:center;transition:.2s; }
.admin-service-grid>a:hover { border-color:#a8c4b5;box-shadow:0 12px 28px rgba(12,65,41,.09);transform:translateY(-2px); }
.admin-service-grid>a>span { display:grid;width:42px;height:42px;place-items:center;border-radius:11px;color:#fff;background:var(--primary);font-size:.72rem;font-weight:900; }
.admin-service-grid strong,.admin-service-grid small { display:block; }
.admin-service-grid small { margin-top:3px;color:var(--muted);font-size:.72rem; }
.admin-service-grid b { color:var(--primary);font-size:.74rem;white-space:nowrap; }
.admin-chart-wide { grid-column: 1 / -1; }
.admin-chart { min-height: 255px; }
.admin-chart svg { display: block; width: 100%; height: 255px; overflow: visible; }
.admin-chart text { fill: #6a7c73; font-family: Inter,sans-serif; font-size: 10px; }
.admin-chart .chart-grid { stroke: #e3ebe7; stroke-width: 1; }
.admin-chart .chart-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.admin-chart .chart-area { fill: color-mix(in srgb,var(--primary) 14%,transparent); }
.admin-chart .chart-point { fill: white; stroke: var(--primary); stroke-width: 2; }
.admin-chart .chart-bar { fill: var(--primary); rx: 5px; transition: opacity .2s, transform .2s; transform-origin: bottom; }
.admin-chart .chart-bar:hover { opacity: .72; transform: scaleY(1.025); }
.chart-trend { padding: 5px 9px; border-radius: 999px; color: #087443; background: #e7f7ee; font-size: .74rem; font-weight: 850; }
.security-two-factor-grid { display: grid; margin-top: 20px; grid-template-columns: 1fr 1fr; gap: 20px; }
.security-secret-row { display: flex; align-items: center; gap: 9px; }
.security-secret-row code { flex: 1; padding: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--primary); background: #f7faf8; overflow-wrap: anywhere; font-weight: 850; letter-spacing: .08em; }
.security-secret-row .input { flex: 1; }
.security-backup-codes { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; }
#two-factor-backup-codes { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
#two-factor-backup-codes code { padding: 9px; border-radius: 6px; background: white; text-align: center; font-weight: 800; }
.login-history { margin-top: 26px; }
.login-history h3 { margin-bottom: 12px; }
.login-history-row { display: grid; padding: 11px 0; grid-template-columns: 1.2fr .8fr .8fr; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.login-history-row strong { color: var(--ink); }
.maintenance-notice { padding: 9px 20px; color: white; background: #9c4f21; text-align: center; font-size: .84rem; font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; }
.contact-panel { padding: 30px; color: white; background: var(--primary); }
.contact-panel h2, .contact-panel h3 { color: white; }
.contact-item { margin: 22px 0; }
.contact-item small { display: block; color: #bcd7c8; text-transform: uppercase; }
.faq-toolbar { max-width: 1040px; margin: 0 auto 30px; }
.faq-search { display: flex; max-width: 680px; min-height: 56px; margin: 0 auto 18px; padding: 0 17px; align-items: center; gap: 10px; border: 1px solid #c8d9d0; border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(12,65,41,.055); }
.faq-search span { color: var(--primary); font-size: 1.35rem; }
.faq-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.faq-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.faq-filters button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 20px; color: #466056; background: white; font-size: .78rem; font-weight: 800; }
.faq-filters button:hover, .faq-filters button.active { border-color: var(--primary); color: white; background: var(--primary); }
.faq-layout { display: grid; max-width: 1080px; margin: auto; grid-template-columns: 1fr 300px; align-items: start; gap: 28px; }
.faq { display: grid; gap: 11px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 18px rgba(12,65,41,.035); overflow: hidden; }
.faq details[open] { border-color: #aecdbd; box-shadow: 0 12px 30px rgba(12,65,41,.075); }
.faq summary { display: grid; padding: 18px 19px; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 12px; color: var(--primary); font-weight: 850; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-number { color: var(--accent); font-family: Georgia, serif; font-size: .88rem; }
.faq-plus { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--primary); background: var(--mint); font-size: 1.15rem; transition: transform .2s; }
.faq details[open] .faq-plus { color: white; background: var(--primary); transform: rotate(45deg); }
.faq-answer { padding: 0 58px 20px 69px; }
.faq-answer p { margin: 0 0 10px; color: var(--muted); }
.faq-answer a:not(.text-link) { color: var(--primary-2); text-decoration: underline; }
.faq-help-card { position: sticky; top: 104px; padding: 28px; border-radius: 20px; color: white; background: linear-gradient(145deg,var(--primary),#1c704b); box-shadow: var(--shadow); }
.faq-help-card h3 { color: white; font-size: 1.5rem; }
.faq-help-card p { color: #d6e8df; }
.faq-help-card .btn { width: 100%; margin: 10px 0 17px; }
.faq-help-card .text-link { color: white; overflow-wrap: anywhere; }
.faq-help-card small { display: block; margin-top: 16px; color: #bcd4c8; }
.faq-help-icon { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; border-radius: 14px; color: #342801; background: var(--accent); font-family: Georgia,serif; font-size: 1.6rem; font-weight: 900; }
.faq-empty { display: none; max-width: 760px; margin: 25px auto 0; padding: 25px; border: 1px dashed #aac8b8; border-radius: 14px; text-align: center; background: white; }
.faq-empty.visible { display: block; }
.faq-empty p { margin: 4px 0 0; color: var(--muted); }

.newsletter { display: grid; padding: 45px; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; border-radius: 24px; color: white; background: var(--primary); }
.newsletter h2 { color: white; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form .input { border: 0; }

.curriculum-hero { color: var(--ink); background: linear-gradient(135deg,#edf7f1 0%,#fffaf0 100%); }
.curriculum-hero h1 { color: var(--primary); }
.curriculum-hero p { color: #405d51; }
.curriculum-hero .breadcrumbs { color: #557066; }
.curriculum-hero .breadcrumbs a { color: var(--primary-2); font-weight: 800; }
.curriculum-hero .eyebrow { color: var(--primary-2); }
.curriculum-section { background: #f7faf8; }
.curriculum-controls { display: grid; margin-top: -105px; padding: 25px; grid-template-columns: .75fr 1fr 1.35fr; align-items: end; gap: 18px; box-shadow: 0 18px 45px rgba(12,65,41,.12); }
.curriculum-controls .field { margin: 0; }
.curriculum-controls .select, .curriculum-controls .input { min-width: 0; color: #102c22; opacity: 1; }
.curriculum-controls .select:disabled, .curriculum-controls .input:disabled { color: #536b61; background: #f1f5f3; opacity: 1; }
.curriculum-overview { display: flex; margin: 42px 0 22px; align-items: end; justify-content: space-between; gap: 28px; }
.curriculum-overview h2 { margin: 5px 0; font-size: clamp(2rem,4vw,3.2rem); }
.curriculum-totals { display: flex; gap: 12px; }
.curriculum-totals div { min-width: 115px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: white; text-align: center; }
.curriculum-totals strong, .curriculum-totals span { display: block; }
.curriculum-totals strong { color: var(--primary); font-family: Georgia,serif; font-size: 1.8rem; }
.curriculum-totals span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.curriculum-welcome { display: flex; max-width: 720px; margin: 40px auto 0; padding: 34px; align-items: center; gap: 22px; }
.curriculum-welcome h2, .curriculum-welcome p { margin: 0 0 6px; }
.curriculum-welcome-icon { display: grid; width: 65px; height: 65px; flex: 0 0 65px; place-items: center; border-radius: 18px; color: white; background: var(--primary); font-family: Georgia,serif; font-size: 1.25rem; }
.curriculum-list { display: grid; gap: 14px; }
.curriculum-strand { border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 6px 22px rgba(12,65,41,.045); overflow: hidden; }
.curriculum-strand[open] { border-color: #adcdbd; }
.curriculum-strand summary { display: grid; padding: 19px 22px; grid-template-columns: 48px 1fr auto 34px; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.curriculum-strand summary::-webkit-details-marker { display: none; }
.curriculum-number { color: var(--accent); font-family: Georgia,serif; font-size: 1.05rem; font-weight: 900; }
.curriculum-strand summary small, .curriculum-strand summary strong { display: block; }
.curriculum-strand summary small { margin-bottom: 3px; color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.curriculum-strand summary strong { color: var(--primary); font-size: 1.08rem; overflow-wrap: anywhere; }
.curriculum-count { padding: 6px 10px; border-radius: 20px; color: #416257; background: var(--mint); font-size: .75rem; font-weight: 800; }
.curriculum-toggle { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--primary); background: var(--mint); font-size: 1.2rem; transition: transform .2s; }
.curriculum-strand[open] .curriculum-toggle { color: white; background: var(--primary); transform: rotate(45deg); }
.curriculum-strand > ol { display: grid; margin: 0; padding: 4px 25px 25px 84px; gap: 12px; counter-reset: curriculum-sub; list-style: none; }
.curriculum-substrand { position: relative; padding: 15px 17px 15px 48px; border-radius: 12px; color: #385449; background: #f5f9f7; counter-increment: curriculum-sub; }
.curriculum-substrand::before { position: absolute; top: 17px; left: 14px; content: counter(curriculum-sub,decimal-leading-zero); color: var(--accent); font-size: .72rem; font-weight: 900; }
.curriculum-substrand > strong { display: block; color: var(--primary); font-size: 1rem; overflow-wrap: anywhere; }
.curriculum-objectives { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce9e2; }
.curriculum-objectives > span { display: block; margin-bottom: 7px; color: #6a7e76; font-size: .69rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.curriculum-objectives ul { display: grid; margin: 0; padding-left: 20px; gap: 5px; }
.curriculum-objectives li { color: #304b40; line-height: 1.65; overflow-wrap: anywhere; word-break: normal; }
.curriculum-no-objectives { display: block; margin-top: 9px; color: #596f66; font-style: italic; }

.scheme-hero { background: linear-gradient(130deg,#082f1f,#17613f 68%,#8d701c); }
.scheme-workspace { padding-top: 34px; background: #f3f7f5; }
.scheme-toolbar { position: sticky; top: 88px; z-index: 30; display: flex; margin-bottom: 20px; padding: 15px 18px; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.scheme-toolbar strong, .scheme-toolbar small { display: block; }
.scheme-toolbar strong { color: var(--primary); }
.scheme-toolbar small { color: var(--muted); }
.scheme-library, .scheme-bulk { margin-bottom: 20px; padding: 22px; }
.scheme-library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.scheme-library-heading h2 { margin: 3px 0 5px; color: var(--primary); font-size: 1.35rem; }
.scheme-library-heading p { margin: 0; color: var(--muted); }
.scheme-library-heading > strong { padding: 7px 11px; border-radius: 999px; color: var(--primary); background: var(--mint); font-size: .78rem; white-space: nowrap; }
.scheme-library-actions { display: flex; margin: 18px 0 13px; padding: 11px 12px; align-items: center; flex-wrap: wrap; gap: 10px; border: 1px solid #d2e0d9; border-radius: 10px; background: #f7faf8; }
.scheme-library-actions .select { width: auto; min-width: 175px; padding: 8px 34px 8px 10px; }
.scheme-library-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.scheme-library-empty { padding: 24px; border: 1px dashed #b8cec2; border-radius: 10px; color: var(--muted); text-align: center; background: #fbfdfc; }
.scheme-library-item { display: grid; padding: 14px; grid-template-columns: auto 1fr; gap: 11px; border: 1px solid #d6e3dc; border-radius: 10px; background: white; }
.scheme-library-item:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: #f4faf7; }
.scheme-library-item > input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
.scheme-library-copy { min-width: 0; }
.scheme-library-copy strong, .scheme-library-copy span, .scheme-library-copy small { display: block; }
.scheme-library-copy strong { color: #183e2f; overflow-wrap: anywhere; }
.scheme-library-copy span { margin: 3px 0; color: #49665a; font-size: .82rem; }
.scheme-library-copy small { color: var(--muted); font-size: .7rem; }
.scheme-library-item-actions { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 7px; }
.scheme-library-item-actions button { padding: 6px 8px; border: 1px solid #bdd2c7; border-radius: 6px; color: var(--primary); background: white; font-size: .7rem; font-weight: 850; cursor: pointer; }
.scheme-library-item-actions button[data-library-delete] { color: #8b271e; border-color: #e4c4c0; }
.scheme-bulk { padding: 0; overflow: hidden; }
.scheme-bulk > summary { display: flex; padding: 18px 22px; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.scheme-bulk > summary::-webkit-details-marker { display: none; }
.scheme-bulk > summary span, .scheme-bulk > summary strong, .scheme-bulk > summary small { display: block; }
.scheme-bulk > summary strong { color: var(--primary); font-size: 1.05rem; }
.scheme-bulk > summary small { margin-top: 3px; color: var(--muted); }
.scheme-bulk-toggle { color: var(--accent-dark); font-size: .75rem; font-weight: 850; }
.scheme-bulk[open] .scheme-bulk-toggle { font-size: 0; }
.scheme-bulk[open] .scheme-bulk-toggle::after { content: "Close bulk creator"; font-size: .75rem; }
.scheme-bulk-body { padding: 20px 22px 22px; border-top: 1px solid var(--line); background: #fbfdfc; }
.scheme-bulk-note { margin: 0 0 16px; padding: 11px 13px; border-left: 4px solid var(--accent); border-radius: 7px; color: #425f53; background: #f0f7f3; font-size: .82rem; }
.scheme-bulk-body .scheme-form-grid { grid-template-columns: minmax(220px,.65fr) 2fr; align-items: end; }
.scheme-bulk-books { min-height: 44px; padding-bottom: 5px; }
.scheme-bulk-subjects { display: grid; margin: 16px 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.scheme-bulk-subject { display: flex; padding: 11px; align-items: flex-start; gap: 9px; border: 1px solid #d9e5df; border-radius: 8px; background: white; cursor: pointer; }
.scheme-bulk-subject:has(input:checked) { border-color: var(--primary); background: #f1f8f4; }
.scheme-bulk-subject input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }
.scheme-bulk-subject span { color: #244638; font-size: .82rem; font-weight: 800; }
.scheme-progress { position: sticky; top: 170px; z-index: 29; display: grid; margin: 0 0 22px; grid-template-columns: repeat(5,1fr); border: 1px solid #cbdcd3; border-radius: 14px; overflow: hidden; background: white; box-shadow: 0 10px 25px rgba(12,65,41,.12); }
.scheme-progress button { position: relative; display: flex; min-height: 72px; padding: 12px; align-items: center; justify-content: center; gap: 9px; border: 0; border-right: 1px solid #dce8e2; color: #61746c; background: white; cursor: pointer; }
.scheme-progress button:last-child { border-right: 0; }
.scheme-progress button::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; content: ""; background: transparent; }
.scheme-progress button span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #52675e; background: #e9efec; font-size: .76rem; font-weight: 900; }
.scheme-progress button small { font-weight: 800; }
.scheme-progress button.complete span { color: white; background: #51a679; }
.scheme-progress button.active { color: var(--primary); background: #f4faf7; }
.scheme-progress button.active span { color: white; background: var(--primary); }
.scheme-progress button.active::after { background: var(--accent); }
.scheme-step { display: none; margin-bottom: 22px; padding: 29px; }
.scheme-step.active { display: block; animation: schemeStepIn .25s ease; }
@keyframes schemeStepIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.scheme-step-heading { margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); text-align: center; }
.scheme-step-heading > span { color: var(--accent-dark); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.scheme-step-heading h2 { margin: 4px 0 6px; color: var(--primary); }
.scheme-step-heading p { margin: 0; color: var(--muted); }
.scheme-step-actions { display: flex; margin-top: 26px; align-items: center; justify-content: space-between; gap: 12px; }
.scheme-selection-toolbar { display: flex; margin-bottom: 15px; padding: 13px 15px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #c9ded3; border-radius: 10px; background: #eff8f3; }
.scheme-selection-toolbar strong { color: var(--primary); font-size: .82rem; }
.scheme-book-section { margin-top: 28px; padding-top: 24px; border-top: 2px solid #dce8e2; }
.scheme-book-heading { display: flex; margin-bottom: 16px; align-items: flex-start; justify-content: space-between; gap: 20px; }
.scheme-book-heading h3 { margin: 3px 0 5px; color: var(--primary); }
.scheme-book-heading p { max-width: 760px; margin: 0; color: var(--muted); }
.scheme-book-heading > strong { padding: 7px 11px; border-radius: 999px; color: var(--primary); background: var(--mint); font-size: .78rem; white-space: nowrap; }
.scheme-book-filters { display: grid; margin-bottom: 12px; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.scheme-custom-book { display: grid; margin-bottom: 12px; padding: 12px; grid-template-columns: 1fr 2fr 1fr auto; align-items: end; gap: 12px; border: 1px dashed #9bbbaa; border-radius: 10px; background: #f4faf7; }
.scheme-custom-book .field { margin: 0; }
.scheme-book-list { display: grid; max-height: 370px; padding: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; overflow: auto; border: 1px solid #d2e0d9; border-radius: 10px; background: #f8fbf9; }
.scheme-book-option { display: flex; padding: 12px; align-items: flex-start; gap: 10px; border: 1px solid #dce8e2; border-radius: 9px; background: white; cursor: pointer; }
.scheme-book-option:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: #f1f8f4; }
.scheme-book-option input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
.scheme-book-option span, .scheme-book-option strong, .scheme-book-option b, .scheme-book-option small { display: block; }
.scheme-book-option strong { color: var(--accent-dark); font-size: .72rem; text-transform: uppercase; }
.scheme-book-option b { margin: 3px 0; color: #244638; }
.scheme-book-option small { color: var(--muted); }
.scheme-page-mapping { margin-top: 20px; }
.scheme-page-heading h3 { margin-bottom: 4px; color: var(--primary); }
.scheme-page-heading p { margin-top: 0; color: var(--muted); }
.scheme-page-note { margin: 10px 0 12px; padding: 11px 13px; border-left: 4px solid var(--accent); border-radius: 7px; color: #5e4b14; background: #fff8dc; font-size: .82rem; }
.scheme-page-table-wrap { overflow: auto; border: 1px solid #c6d9cf; border-radius: 10px; }
.scheme-page-table { width: 100%; min-width: 900px; border-collapse: collapse; background: white; }
.scheme-page-table th, .scheme-page-table td { padding: 10px; border: 1px solid #d3e0d9; text-align: left; vertical-align: top; }
.scheme-page-table thead th { color: white; background: var(--primary); }
.scheme-page-table th small { display: block; margin-top: 4px; font-weight: 500; }
.scheme-page-table td label { color: var(--muted); font-size: .7rem; font-weight: 800; }
.scheme-page-table td .input { min-width: 110px; margin-top: 4px; padding: 8px; }
.scheme-page-table td .input.is-provisional { color: #765d12; background: #fff9e5; border-color: #d8bd65; }
.admin-scheme-view { padding: 0 !important; }
.admin-scheme-view .admin-page-heading { padding: 28px 28px 0; }
.admin-scheme-frame { display: block; width: 100%; min-height: calc(100vh - 150px); border: 0; background: #f4f8f6; }
html.scheme-admin-embed #site-header, html.scheme-admin-embed #site-footer, html.scheme-admin-embed .scheme-hero, html.scheme-admin-embed .whatsapp-float { display: none !important; }
html.scheme-admin-embed .scheme-workspace { padding-top: 18px; }
html.scheme-admin-embed .scheme-workspace > .container { width: min(1500px,97%); }
html.scheme-admin-embed .scheme-toolbar { top: 10px; }
html.scheme-admin-embed .scheme-progress { top: 82px; }
.scheme-check { display: inline-flex; align-items: center; gap: 9px; color: #244b3a; font-weight: 800; cursor: pointer; }
.scheme-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.scheme-topic-list { display: grid; gap: 10px; }
.scheme-topic-group { border: 1px solid #d2e0d9; border-radius: 10px; overflow: hidden; background: white; }
.scheme-topic-group summary { display: flex; padding: 15px 17px; align-items: center; justify-content: space-between; gap: 12px; color: var(--primary); background: #f7faf8; cursor: pointer; list-style: none; }
.scheme-topic-group summary::-webkit-details-marker { display: none; }
.scheme-topic-group summary > small { color: #6e8178; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.scheme-subtopic-grid { display: grid; padding: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; border-top: 1px solid #dce8e2; }
.scheme-subtopic { display: flex; min-width: 0; padding: 12px; align-items: flex-start; gap: 10px; border: 1px solid #e0e9e4; border-radius: 8px; cursor: pointer; transition: .18s; }
.scheme-subtopic:hover { border-color: #80b39a; background: #f5faf7; }
.scheme-subtopic input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }
.scheme-subtopic span, .scheme-subtopic strong, .scheme-subtopic small { display: block; min-width: 0; }
.scheme-subtopic strong { color: #244638; overflow-wrap: anywhere; }
.scheme-subtopic small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.scheme-capacity { display: flex; margin-top: 18px; padding: 14px 16px; align-items: center; justify-content: space-between; gap: 15px; border-left: 4px solid var(--accent); border-radius: 7px; color: #456258; background: #f5f8f6; }
.scheme-capacity strong { color: var(--primary); }
.scheme-no-break { margin-bottom: 18px; }
.scheme-break-editor { padding: 19px; border: 1px solid #cfe0d7; border-radius: 10px; background: #f8fbf9; }
.scheme-break-list { display: grid; margin-top: 16px; gap: 8px; }
.scheme-break-list > div { display: flex; padding: 11px 13px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #d7e4dd; border-radius: 8px; background: white; }
.scheme-break-list span, .scheme-break-list strong, .scheme-break-list small { display: block; }
.scheme-break-list strong { color: var(--primary); }
.scheme-break-list small { color: var(--muted); }
.scheme-break-list button { border: 0; color: #922d25; background: transparent; font-size: .75rem; font-weight: 850; cursor: pointer; }
.scheme-break-list p { margin: 0; color: var(--muted); font-size: .82rem; }
.scheme-export-actions { display: flex; margin-bottom: 19px; flex-wrap: wrap; justify-content: center; gap: 10px; }
.scheme-export-actions .btn { min-width: 155px; }
.scheme-review-step { padding-bottom: 25px; }
.scheme-review-step .scheme-preview { padding: 0; border: 0; box-shadow: none; }
.scheme-cover-page { display: flex; min-height: 620px; padding: 35px 8%; flex-direction: column; color: #050505; background: white; font-family: "Times New Roman",Times,serif; }
.scheme-cover-page > h2 { margin: 0; color: #050505; font-family: "Times New Roman",Times,serif; font-size: clamp(1.8rem,5vw,4.3rem); font-weight: 900; letter-spacing: .025em; text-align: center; white-space: nowrap; }
.scheme-cover-content { width: min(650px,88%); margin: 65px auto 0; }
.scheme-cover-content > h3 { margin: 0 0 25px; color: #050505; font-family: "Times New Roman",Times,serif; font-size: 1.55rem; text-align: center; }
.scheme-cover-details { display: grid; margin: 0; gap: 13px; font-size: 1.42rem; }
.scheme-cover-details div { display: grid; grid-template-columns: max-content 1fr; gap: 9px; }
.scheme-cover-details dt { font-weight: 900; }
.scheme-cover-details dd { margin: 0; overflow-wrap: anywhere; }
.scheme-cover-details .scheme-cover-signature { margin-top: 31px; }
.scheme-table-pages { padding-top: 24px; border-top: 2px dashed #bdcec5; }
.scheme-table-page-heading { display: flex; margin-bottom: 10px; align-items: center; justify-content: space-between; gap: 15px; color: var(--primary); font-family: "Times New Roman",Times,serif; font-size: 12pt; }
.scheme-table-page-heading strong { font-size: 12pt; }
.scheme-table-page-heading span { font-size: 12pt; font-weight: 750; }
.scheme-builder { margin-bottom: 20px; padding: 27px; }
.scheme-builder-heading { display: flex; margin-bottom: 22px; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.scheme-builder-heading > div { display: flex; align-items: center; gap: 12px; }
.scheme-builder-heading span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: white; background: var(--primary); font-weight: 900; }
.scheme-builder-heading h2 { margin: 0; font-size: 1.35rem; }
.scheme-builder-heading p { max-width: 530px; margin: 0 0 13px; color: var(--muted); font-size: .85rem; }
.scheme-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.scheme-form-grid .field, .scheme-curriculum-grid .field, .scheme-lesson-fields .field { min-width: 0; margin: 0; }
.scheme-curriculum-grid { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 14px; }
.scheme-lesson-fields { display: grid; margin-top: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.scheme-lesson-fields .textarea { min-height: 105px; }
.scheme-add-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.scheme-help { margin: 15px 0 0; color: var(--muted); font-size: .8rem; }
.scheme-preview { padding: 30px; border-color: #bed3c8; box-shadow: 0 20px 48px rgba(12,65,41,.1); }
.scheme-document-header { display: flex; padding-bottom: 19px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--primary); }
.scheme-document-kicker { color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.scheme-document-header h2 { margin: 4px 0 3px; color: #102e23; font-family: Inter,sans-serif; font-size: 1.55rem; letter-spacing: .04em; }
.scheme-document-header p { margin: 0; color: #536b61; font-weight: 750; }
.scheme-default-breaks { display: grid; margin-bottom: 20px; grid-template-columns: 1fr 1fr; gap: 14px; }
.scheme-default-breaks > label { display: flex; padding: 16px; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #cdded5; border-radius: 12px; background: #f7faf8; }
.scheme-default-breaks strong, .scheme-default-breaks small { display: block; }
.scheme-default-breaks small { margin-top: 3px; color: var(--muted); }
.scheme-default-breaks .select { width: 108px; flex: 0 0 auto; }
.scheme-section-divider { display: flex; margin: 7px 0 17px; align-items: center; gap: 12px; color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.scheme-section-divider::before, .scheme-section-divider::after { height: 1px; background: var(--line); content: ""; flex: 1; }
.scheme-document-mark { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; color: white; background: var(--primary); font-family: Georgia,serif; font-size: 1.15rem; font-weight: 900; }
.scheme-admin-preview { display: grid; margin: 18px 0; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.scheme-admin-preview div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }
.scheme-admin-preview small, .scheme-admin-preview strong { display: block; }
.scheme-admin-preview small { color: #6a7f76; font-size: .62rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.scheme-admin-preview strong { color: #183b2d; font-size: .81rem; overflow-wrap: anywhere; }
.scheme-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #b9cec3; border-radius: 10px; }
.scheme-table { width: 100%; min-width: 2500px; border-collapse: collapse; table-layout: fixed; background: white; font-family: "Times New Roman",Times,serif; font-size: 12pt; }
.scheme-table th, .scheme-table td { padding: 9px; border: 1px solid #bed0c7; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.scheme-table th { color: white; background: var(--primary); font-size: 12pt; line-height: 1.35; }
.scheme-table td { color: #29453a; font-size: 12pt; line-height: 1.45; }
.scheme-table th:nth-child(1), .scheme-table td:nth-child(1), .scheme-table th:nth-child(2), .scheme-table td:nth-child(2) { width: 52px; text-align: center; }
.scheme-table th:nth-child(3), .scheme-table td:nth-child(3) { width: 125px; }
.scheme-table th:nth-child(4), .scheme-table td:nth-child(4) { width: 150px; }
.scheme-table th:nth-child(5), .scheme-table td:nth-child(5) { width: 245px; }
.scheme-table th:nth-child(6), .scheme-table td:nth-child(6) { width: 260px; }
.scheme-table th:nth-child(7), .scheme-table td:nth-child(7) { width: 180px; }
.scheme-table th:nth-child(8), .scheme-table td:nth-child(8) { width: 190px; }
.scheme-table th:nth-child(9), .scheme-table td:nth-child(9) { width: 170px; }
.scheme-table th:nth-child(10), .scheme-table td:nth-child(10) { width: 145px; }
.scheme-table td[contenteditable="true"] { outline: none; transition: background .15s,box-shadow .15s; }
.scheme-table td[contenteditable="true"]:focus { background: #fff9e8; box-shadow: inset 0 0 0 2px var(--accent); }
.scheme-table .scheme-break-row td { padding: 15px 9px; color: #472f00; background: #fff2c7; border-color: #c99b28; text-align: center; vertical-align: middle; }
.scheme-table .scheme-break-row strong, .scheme-table .scheme-break-row span { display: block; }
.scheme-table .scheme-break-row strong { font-size: 12pt; letter-spacing: .04em; }
.scheme-table .scheme-break-row span { margin-top: 2px; font-size: 12pt; font-weight: 800; }
.scheme-actions-column { width: 74px; text-align: center !important; }
.scheme-actions-column button { padding: 5px 7px; border: 0; border-radius: 6px; color: #8b271e; background: #fff0ee; font-size: .67rem; font-weight: 850; }
.scheme-empty { display: grid; padding: 45px 20px; place-items: center; color: var(--muted); text-align: center; }
.scheme-empty strong { color: var(--primary); font-size: 1.08rem; }
.scheme-signoff { display: flex; margin-top: 24px; padding-top: 17px; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: #405b50; font-family: "Times New Roman",Times,serif; font-size: 12pt; font-weight: 750; }
.scheme-export { padding: 20px; }

.site-footer { padding-top: 64px; color: #d0e1d8; background: #082f1f; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 38px; }
.site-footer .brand { color: white; }
.site-footer .brand small { color: #b8cfc3; }
.site-footer h3 { color: white; font-family: Inter, sans-serif; font-size: 1rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #bfd2c8; font-size: .9rem; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; margin-top: 48px; padding: 22px 0; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.socials { display: flex; gap: 9px; }
.socials a { position:relative;display:grid;width:38px;height:38px;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:10px;color:#fff;background:rgba(255,255,255,.045);transition:transform .25s ease,border-color .25s ease,background .25s ease,box-shadow .25s ease; }
.socials a svg { display:block;width:19px;height:19px; }
.socials a:hover,.socials a:focus-visible { border-color:var(--accent);color:#29220f;background:var(--accent);box-shadow:0 9px 22px rgba(0,0,0,.2);transform:translateY(-3px); }
.socials a:focus-visible { outline:3px solid rgba(212,167,44,.35);outline-offset:3px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 340px; padding: 13px 17px; border-radius: 11px; color: white; background: var(--primary); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 85; display: flex; min-height: 58px; padding: 11px 17px 11px 13px; align-items: center; gap: 9px; border: 2px solid rgba(255,255,255,.9); border-radius: 30px; color: white; background: #18a957; box-shadow: 0 10px 30px rgba(20,161,82,.38), 0 0 0 0 rgba(37,211,102,.45); font-size: .84rem; font-weight: 850; animation: whatsappGlow 2.2s infinite; }
.whatsapp-float:hover { color: white; background: #128c48; transform: translateY(-3px); animation-play-state: paused; }
.whatsapp-float svg { position: relative; z-index: 2; width: 31px; height: 31px; }
.whatsapp-label { position: relative; z-index: 2; white-space: nowrap; }
.whatsapp-pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: whatsappRing 2.2s infinite; }
@keyframes whatsappGlow { 0%,100% { box-shadow: 0 10px 30px rgba(20,161,82,.38), 0 0 12px rgba(37,211,102,.28); } 50% { box-shadow: 0 12px 36px rgba(20,161,82,.48), 0 0 26px rgba(37,211,102,.62); } }
@keyframes whatsappRing { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%,100% { box-shadow: 0 0 0 17px rgba(37,211,102,0); } }

@media (max-width: 1040px) {
  .nav-wrap { gap:12px; }
  .brand { min-width:0; }
  .brand-text { min-width:0; }
  .nav-actions { margin-left:auto;flex:0 0 auto; }
  .main-nav { position: fixed; top: 74px; right: 0; bottom: 0; width: min(390px, 100vw); padding: 18px; flex-direction: column; align-items: stretch; gap: 6px; border: 0; border-radius: 0; background: rgba(255,255,255,.99); box-shadow: -18px 20px 40px rgba(12,65,41,.15); overflow-y:auto;text-align:left;transform: translateX(105%); transition: transform .25s; }
  .main-nav.open { transform: translateX(0); }
  .main-nav>a { padding: 13px;text-align:left; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { justify-content: space-between; }
  .nav-dropdown-menu { position: static; width: 100%; padding: 5px 0 5px 10px; border: 0; border-left: 2px solid #dbe9e1; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a { padding: 10px 12px;text-align:left; }
  .nav-dropdown-menu small { display:block;margin-top:3px;line-height:1.4; }
  .nav-mega-menu { display:block;width:100%; }
  .nav-mega-menu section { margin-bottom:8px; }
  .nav-mega-menu aside { margin:10px 0; }
  .nav-mega-menu .nav-mega-label { padding-top:10px; }
  .mobile-nav-auth { display:grid;margin-top:10px;padding-top:16px;border-top:1px solid var(--line);grid-template-columns:1fr 1fr;gap:9px; }
  .mobile-nav-auth .btn { display:flex;justify-content:center;text-align:center; }
  .menu-toggle { display: grid;place-content:center;margin-left:auto; }
  .nav-actions>.btn { display: none; }
  .hero-grid { gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .dashboard-cards { grid-template-columns: repeat(2,1fr); }
  .admin-app-layout { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-105%); transition: transform .25s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-workspace { grid-column: 1; }
  .admin-mobile-menu { display: grid; place-items: center; }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:900px){.notes-intro-grid{grid-template-columns:1fr}.notes-filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.notes-filter-grid{grid-template-columns:1fr}.notes-filter-grid .btn{width:100%}}
@media(max-width:950px){.notes-filter-bar{grid-template-columns:1fr 1fr}.notes-filter-bar .input{grid-column:1/-1}.text-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.text-note-main{grid-template-columns:1fr}.text-note-toc{position:static;max-height:none}.text-note-toc nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.notes-admin-layout{grid-template-columns:1fr}.notes-admin-library{position:static;max-height:none}.notes-admin-list{max-height:420px}}
@media(max-width:1000px){
  .boen-cv-hero-grid{grid-template-columns:270px minmax(0,1fr);gap:45px}
  .boen-cv-photo-wrap figure{width:250px;height:335px}
  .boen-cv-photo-ring{width:250px;height:250px}
  .boen-contribution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .boen-cv-hero{padding:60px 0}
  .boen-cv-hero-grid,.boen-cv-two-column,.boen-cv-credential-grid{grid-template-columns:1fr}
  .boen-cv-photo-wrap{margin:0}
  .boen-cv-intro h1{font-size:clamp(3.6rem,16vw,6rem)}
  .boen-cv-metrics .container{grid-template-columns:repeat(2,minmax(0,1fr))}
  .boen-cv-metrics article:nth-child(2){border-right:0}
  .boen-cv-metrics article:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.1)}
  .boen-cv-heading{align-items:flex-start;flex-direction:column}
  .boen-strength-grid{grid-template-columns:1fr}
  .boen-project-list article{grid-template-columns:45px minmax(0,1fr)}
  .boen-project-list article>strong{grid-column:2;border-left:0;border-top:2px solid #e2c062}
  .boen-cv-closing .container{align-items:flex-start;flex-direction:column}
}
@media(max-width:620px){.text-subject-block{grid-template-columns:1fr}.text-subject-icon{width:58px;height:58px}.text-notes-grid,.text-note-pagination{grid-template-columns:1fr}.text-note-toc nav{grid-template-columns:1fr}.text-note-content{padding:24px 20px;font-size:1rem}.text-note-header,.subject-notes-header{text-align:left}.text-note-header .breadcrumbs,.text-note-header .text-note-tags,.subject-notes-header .breadcrumbs,.subject-notes-header .text-subject-stat{justify-content:flex-start}.subject-strand-block>header{align-items:flex-start;flex-direction:column}.subject-chapter-list>a{grid-template-columns:38px minmax(0,1fr)}.subject-chapter-list b{display:none}.note-copy-notice{right:14px;bottom:82px;left:14px}}
@media(max-width:620px){.notes-filter-bar,.text-notes-grid{grid-template-columns:1fr}.notes-filter-bar .input{grid-column:auto}.notes-filter-bar .btn{width:100%}.text-subject-box{min-height:250px}.subject-chapter-list>a{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:520px){
  .boen-cv-photo-wrap figure{width:220px;height:295px}
  .boen-cv-photo-ring{width:220px;height:220px}
  .boen-cv-verified{right:-5px}
  .boen-cv-contact{display:grid}
  .boen-cv-contact a,.boen-cv-contact>span{width:100%}
  .boen-cv-actions .btn{width:100%}
  .boen-cv-metrics article{padding:22px 15px}
  .boen-cv-metrics strong{font-size:1.75rem}
  .boen-strength-grid article{grid-template-columns:46px minmax(0,1fr);padding:20px 16px}
  .boen-strength-icon{width:44px;height:44px}
  .boen-project-list article{padding:20px 16px;grid-template-columns:1fr}
  .boen-project-list article>strong{grid-column:auto}
  .boen-timeline::before{left:10px}
  .boen-timeline article{padding-left:34px;grid-template-columns:1fr;gap:10px}
  .boen-timeline article::before{left:3px}
  .boen-time{display:flex;gap:8px}
  .boen-contribution-grid{grid-template-columns:1fr}
  .boen-credential-cards article,.boen-credential-card{padding:18px 14px;grid-template-columns:48px minmax(0,1fr)}
  .boen-credential-cards article>span,.boen-credential-card>span{width:46px;height:46px}
}
@media print {
  .boen-cv-page .site-header,.boen-cv-page .site-footer,.boen-cv-actions,.boen-cv-closing,.boen-cv-page .whatsapp-float { display:none!important; }
  .boen-cv-page * { animation:none!important;transition:none!important; }
  .boen-cv-hero { min-height:0;padding:35px 0;color:#111;background:#fff; }
  .boen-cv-grid-bg,.boen-cv-photo-ring,.boen-cv-hero::after { display:none; }
  .boen-cv-hero-grid { grid-template-columns:160px 1fr;gap:25px; }
  .boen-cv-photo-wrap figure { width:145px;height:185px;border:2px solid #164b35;box-shadow:none; }
  .boen-cv-verified { right:0;bottom:8px;padding:5px;font-size:8px; }
  .boen-cv-intro h1,.boen-cv-intro .boen-cv-role { color:#0c4129; }
  .boen-cv-summary,.boen-cv-contact a,.boen-cv-contact>span { color:#333; }
  .boen-cv-contact a,.boen-cv-contact>span { border-color:#ddd;background:#fff; }
  .boen-cv-metrics { color:#111;background:#f3f6f4; }
  .boen-cv-metrics strong { color:#0c4129; }
  .boen-cv-metrics span { color:#333; }
  .boen-cv-page .section { padding:32px 0; }
  .boen-strength-grid,.boen-contribution-grid { grid-template-columns:repeat(2,1fr); }
  .boen-strength-grid article,.boen-project-list article,.boen-credential-cards article,.boen-contribution-grid article { box-shadow:none;break-inside:avoid; }
  .boen-cv-experience { color:#111;background:#fff; }
  .boen-cv-experience .boen-cv-heading h2,.boen-cv-experience .eyebrow,.boen-timeline h3 { color:#0c4129; }
  .boen-timeline h4,.boen-timeline ul { color:#333; }
}
@media(prefers-reduced-motion:reduce){
  .boen-cv-page *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

@media (max-width: 780px) {
  .section { padding: 68px 0; }
  .hero { padding-top: 62px; }
  .hero-grid, .split, .contact-grid, .newsletter, .auth-grid { grid-template-columns: 1fr; }
  .ceo-card { grid-template-columns: 1fr; }
  .ceo-identity { min-height: auto; }
  .ceo-portrait { width: 190px; height: 230px; margin-top: 0; }
  .hero-visual { max-width: 580px; margin: auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .filters-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
  .admin-dashboard-grid, .admin-recent-columns { grid-template-columns: 1fr; }
  .admin-backup-grid { grid-template-columns: 1fr; }
  .article-list-toolbar, .category-manager-form { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .blog-sidebar-cta { grid-column: 1 / -1; }
  .dashboard-sidebar { display: none; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .auth-side { min-height: 260px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-help-card { position: static; }
  .curriculum-controls { margin-top: -80px; grid-template-columns: 1fr; }
  .curriculum-overview { align-items: flex-start; flex-direction: column; }
  .scheme-toolbar, .scheme-builder-heading { align-items: flex-start; flex-direction: column; }
  .scheme-toolbar { position: static; }
  .scheme-progress { position: static; grid-template-columns: 1fr; }
  .scheme-progress button { min-height: 48px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid #dce8e2; }
  .scheme-progress button:last-child { border-bottom: 0; }
  .scheme-form-grid, .scheme-curriculum-grid { grid-template-columns: 1fr 1fr; }
  .scheme-subtopic-grid { grid-template-columns: 1fr; }
  .scheme-book-heading { flex-direction: column; }
  .scheme-book-filters, .scheme-custom-book, .scheme-book-list { grid-template-columns: 1fr; }
  .scheme-library-list { grid-template-columns: 1fr; }
  .scheme-bulk-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scheme-admin-preview { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 540px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-header .container { width:calc(100% - 22px); }
  .brand { gap:8px; }
  .brand-mark { width:38px;height:38px;border-radius:11px; }
  .brand-text { max-width:calc(100vw - 120px);font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .brand small { overflow:hidden;text-overflow:ellipsis; }
  .hero-actions .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4, .form-row, .dashboard-cards { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 18px 13px; }
  .admin-topbar { padding: 10px 13px; }
  .admin-top-actions > span { display: none; }
  .admin-stat-grid, .admin-quick-grid, .admin-color-grid { grid-template-columns: 1fr; }
  .article-slug-row { grid-template-columns: 1fr; }
  .article-slug-row > span { display: none; }
  .article-image-picker img { width: 100%; height: 150px; margin-left: 0; }
  .rich-editor-toolbar { position: relative; top: auto; overflow: visible; }
  .rich-editor { min-height: 500px; padding: 24px 16px; }
  .rich-editor-status { align-items: flex-start; flex-direction: column; }
  .admin-insights-grid, .security-two-factor-grid { grid-template-columns: 1fr; }
  .admin-service-grid { grid-template-columns:1fr; }
  .scheme-default-breaks { grid-template-columns: 1fr; }
  #two-factor-backup-codes { grid-template-columns: repeat(2,1fr); }
  .article-list-toolbar, .category-manager-form, .blog-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar-cta { grid-column: auto; }
  .article-prev-next { grid-template-columns: 1fr; }
  .article-prev-next a:last-child { text-align: left; }
  .admin-welcome, .admin-page-heading, .admin-sticky-save { align-items: flex-start; flex-direction: column; }
  .admin-card { padding: 19px 15px; }
  .admin-list-item { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 8px; }
  .section-heading { margin-bottom: 26px; }
  .newsletter, .auth-form, .auth-side { padding: 28px; }
  .auth-provider-grid,.auth-code-row { grid-template-columns:1fr; }
  .auth-form-row { align-items:flex-start;flex-direction:column; }
  .ceo-identity, .ceo-story { padding: 28px 22px; }
  .newsletter-form, .search-bar { flex-direction: column; }
  .results-head, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-main { padding: 24px 14px; }
  .resource-actions { flex-direction: column; }
  .faq summary { padding: 16px 13px; grid-template-columns: 28px 1fr 28px; gap: 8px; }
  .faq-answer { padding: 0 14px 18px 49px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; min-height: 56px; padding: 10px; justify-content: center; }
  .whatsapp-label { display: none; }
  .curriculum-controls { margin-top: -55px; padding: 18px; }
  .curriculum-totals { width: 100%; }
  .curriculum-totals div { min-width: 0; flex: 1; }
  .curriculum-strand summary { padding: 16px 13px; grid-template-columns: 32px 1fr 30px; }
  .curriculum-count { display: none; }
  .curriculum-strand > ol { padding: 0 13px 17px; }
  .scheme-builder, .scheme-preview, .scheme-step { padding: 20px 14px; }
  .scheme-library { padding: 18px 14px; }
  .scheme-library-heading, .scheme-bulk > summary { align-items: flex-start; flex-direction: column; }
  .scheme-library-actions { align-items: stretch; flex-direction: column; }
  .scheme-library-actions .select, .scheme-library-actions .btn { width: 100%; }
  .scheme-bulk-body { padding: 17px 14px; }
  .scheme-bulk-body .scheme-form-grid, .scheme-bulk-subjects { grid-template-columns: 1fr; }
  .scheme-form-grid, .scheme-curriculum-grid, .scheme-lesson-fields { grid-template-columns: 1fr; }
  .scheme-selection-toolbar, .scheme-capacity, .scheme-step-actions { align-items: stretch; flex-direction: column; }
  .scheme-step-actions .btn { width: 100%; }
  .scheme-admin-preview { grid-template-columns: 1fr 1fr; }
  .scheme-signoff { flex-direction: column; }
}

@page { size: A4 landscape; margin: 5mm; }
@media print {
  html, body { width: 100%; margin: 0; padding: 0; color: #111; background: white; font-family: "Times New Roman",Times,serif; font-size: 12pt; }
  #site-header, #site-footer, .scheme-hero, .scheme-toolbar, .scheme-library, .scheme-bulk, .scheme-progress, .scheme-step:not([data-step="5"]), .scheme-step-heading, .scheme-export-actions, .scheme-step-actions, .scheme-builder, .whatsapp-float, .toast, .scheme-actions-column { display: none !important; }
  .scheme-step[data-step="5"] { display: block !important; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .scheme-workspace { padding: 0; background: white; }
  .scheme-workspace .container { width: 100%; max-width: none; }
  .scheme-preview { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .scheme-cover-page { box-sizing: border-box; min-height: 200mm; height: 200mm; padding: 7mm 25mm; break-after: page; page-break-after: always; }
  .scheme-cover-page > h2 { font-size: 33pt; white-space: nowrap; }
  .scheme-cover-content { width: 155mm; margin-top: 24mm; }
  .scheme-cover-content > h3 { margin-bottom: 8mm; font-size: 18pt; }
  .scheme-cover-details { gap: 3.5mm; font-size: 16pt; }
  .scheme-cover-details .scheme-cover-signature { margin-top: 10mm; }
  .scheme-table-pages { width: 100%; padding: 0; border: 0; }
  .scheme-table-page-heading { margin: 0 0 2mm; }
  .scheme-table-page-heading strong { font-size: 12pt; }
  .scheme-table-page-heading span { font-size: 12pt; }
  .scheme-table-wrap { width: 100%; overflow: visible; border: 0; border-radius: 0; }
  .scheme-table { width: 100% !important; min-width: 0; border-collapse: collapse; table-layout: fixed; }
  .scheme-table th, .scheme-table td { padding: 1.2mm; border-color: #000; font-family: "Times New Roman",Times,serif; font-size: 12pt; line-height: 1.16; }
  .scheme-table .scheme-break-row td { padding: 2.4mm 1.2mm; color: #000; background: #e6e6e6 !important; border-color: #000; }
  .scheme-table .scheme-break-row strong { font-size: 12pt; }
  .scheme-table .scheme-break-row span { font-size: 12pt; }
  .scheme-table th:nth-child(1), .scheme-table td:nth-child(1), .scheme-table th:nth-child(2), .scheme-table td:nth-child(2) { width: 3%; }
  .scheme-table th:nth-child(3), .scheme-table td:nth-child(3) { width: 7%; }
  .scheme-table th:nth-child(4), .scheme-table td:nth-child(4) { width: 8%; }
  .scheme-table th:nth-child(5), .scheme-table td:nth-child(5) { width: 17%; }
  .scheme-table th:nth-child(6), .scheme-table td:nth-child(6) { width: 18%; }
  .scheme-table th:nth-child(7), .scheme-table td:nth-child(7) { width: 11%; }
  .scheme-table th:nth-child(8), .scheme-table td:nth-child(8) { width: 12%; }
  .scheme-table th:nth-child(9), .scheme-table td:nth-child(9) { width: 10%; }
  .scheme-table th:nth-child(10), .scheme-table td:nth-child(10) { width: 11%; }
  .scheme-table thead { display: table-header-group; }
  .scheme-table tfoot { display: table-footer-group; }
  .scheme-table tr { break-inside: avoid; page-break-inside: avoid; }
  .scheme-signoff { margin-top: 3mm; padding-top: 2mm; font-family: "Times New Roman",Times,serif; font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Contact page: explicit high-contrast treatment. */
.contact-hero .contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-main-section {
  background:
    radial-gradient(circle at 10% 12%,rgba(138,154,130,.12),transparent 25rem),
    #f9f6f0;
}

.contact-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,520px);
  margin-bottom: 34px;
  align-items: end;
  gap: 35px;
}

.contact-intro h2 { margin: 0; }
.contact-intro > p {
  margin: 0;
  color: #4f6259;
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-grid {
  grid-template-columns: minmax(340px,.82fr) minmax(0,1.18fr);
  gap: clamp(28px,5vw,64px);
}

.cbc-public-page .contact-panel,
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px,4vw,42px);
  border: 1px solid rgba(255,255,255,.13);
  border-top: 4px solid #d4a72c;
  border-radius: 22px;
  color: #f4faf7;
  background:
    radial-gradient(circle at 90% 6%,rgba(212,167,44,.2),transparent 17rem),
    linear-gradient(145deg,#082f1f,#17613f) !important;
  box-shadow: 0 24px 60px rgba(12,65,41,.2);
}

.contact-panel::after {
  position: absolute;
  right: -85px;
  bottom: -115px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 36px rgba(255,255,255,.025);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow { color: #f0d88f; }
.contact-panel h2 {
  max-width: 480px;
  color: #fff;
  font-size: clamp(2rem,3.5vw,3.2rem);
}
.contact-panel-lead {
  max-width: 510px;
  margin-bottom: 26px;
  color: #d7e9df !important;
  line-height: 1.7;
}

.cbc-public-page .contact-item,
.contact-item {
  display: grid;
  grid-template-columns: 43px minmax(0,1fr);
  margin: 0;
  padding: 17px 0;
  align-items: start;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.13) !important;
}

.contact-item-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 12px;
  color: #f5dc92;
  background: rgba(255,255,255,.08);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.contact-item small {
  display: block;
  margin-bottom: 3px;
  color: #bcd7c8 !important;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.contact-item strong,
.contact-item strong a {
  display: block;
  color: #fff !important;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}
.contact-item div > span {
  display: block;
  margin-top: 4px;
  color: #c9ddd2;
  font-size: .78rem;
  line-height: 1.5;
}
.contact-item a:hover { color: #f3d778 !important; }
.contact-whatsapp-action {
  width: 100%;
  margin-top: 25px;
}

.contact-form-card {
  padding: clamp(28px,4vw,44px);
  border: 1px solid #dce5df;
  border-radius: 22px;
  color: #173228;
  background: #fffdf9;
  box-shadow: 0 20px 52px rgba(24,45,35,.1);
}
.contact-form-card > h2 {
  margin-bottom: 9px;
  font-size: clamp(2rem,3vw,2.8rem);
}
.contact-form-card > p {
  margin-bottom: 26px;
  color: #52655c;
}
.contact-form-card form {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.contact-form-card .field { margin-bottom: 18px; }
.contact-form-card .field label {
  color: #173228;
  font-size: .85rem;
}
.contact-form-card .field label span { color: #9a3a2c; }
.contact-form-card .input,
.contact-form-card .select,
.contact-form-card .textarea {
  min-height: 50px;
  color: #173228;
  border-color: #c8d7cf;
  background: #fff;
}
.contact-form-card .textarea { min-height: 165px; }
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder { color: #697a72; }
.contact-field-help {
  display: block;
  margin-top: 7px;
  color: #5e7067;
  font-size: .75rem;
}
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 22px;
}

.faq-section .section-heading .lead {
  color: #53665d;
}
.faq-toolbar {
  padding: 20px;
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: #fffdf9;
}
.faq-search {
  border-width: 2px;
}
.faq-search input::placeholder { color: #62746b; }
.faq-filters button {
  min-height: 39px;
  color: #2f5142;
}
.faq summary {
  color: #0c4129;
  font-size: .98rem;
  line-height: 1.45;
}
.faq-answer {
  border-top: 1px solid #edf1ee;
  background: #fbfdfc;
}
.faq-answer p {
  color: #40574c;
  line-height: 1.75;
}
.faq-answer strong { color: #173228; }
.faq-answer .text-link { color: #17613f; }
.faq-help-card {
  border: 1px solid rgba(212,167,44,.32);
}
.faq-help-card .text-link {
  padding: 7px 0;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.faq-help-card small { line-height: 1.6; }

@media (max-width: 920px) {
  .contact-intro,
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { gap: 12px; }
}

@media (max-width: 560px) {
  .contact-hero .contact-hero-actions,
  .contact-form-actions { align-items: stretch; flex-direction: column; }
  .contact-hero .contact-hero-actions .btn,
  .contact-form-actions .btn { width: 100%; }
  .contact-panel,
  .contact-form-card { padding: 25px 18px; border-radius: 17px; }
  .contact-item { grid-template-columns: 38px minmax(0,1fr); }
  .contact-item-icon { width: 38px; height: 38px; }
  .faq-toolbar { padding: 15px 12px; }
  .faq-search { min-height: 52px; padding-inline: 12px; }
  .faq-filters { justify-content: flex-start; }
  .faq-filters button { flex: 1 1 auto; }
}

/* Typography and contrast safety net for every page. */
:root {
  --font-body: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

body {
  color: #173228;
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: var(--font-heading);
}

main :where(p, li, dt, dd, label) {
  color: inherit;
}

.card,
.auth-form,
.admin-card,
.admin-stat-card,
.approved-book-card,
.approved-book-browser,
.filters,
.curriculum-controls,
.scheme-builder,
.scheme-library {
  color: var(--ink);
}

.input,
.select,
.textarea,
input,
select,
textarea {
  color: #173228;
  caret-color: #173228;
}

input::placeholder,
textarea::placeholder {
  color: #66776f;
  opacity: 1;
}

select option {
  color: #173228;
  background: #fff;
}

.section-dark,
.audience-card.teacher,
.cbc-audience.teacher,
.cbc-digital,
.cbc-blog-section,
.auth-side,
.dashboard-sidebar,
.admin-sidebar,
.admin-welcome,
.contact-panel,
.faq-help-card,
.newsletter,
.blog-sidebar-cta,
.youtube-player-copy,
.youtube-channel-cta,
.site-footer {
  color: #f4faf7;
}

.section-dark :where(p, li, small),
.audience-card.teacher :where(p, li, small),
.cbc-audience.teacher :where(p, li, small),
.cbc-digital :where(p, li, small),
.cbc-blog-section > .container > :where(p, li, small),
.auth-side :where(p, li, small),
.dashboard-sidebar :where(p, li, small),
.admin-sidebar :where(p, li, small),
.admin-welcome :where(p, li, small),
.contact-panel :where(p, li, small),
.faq-help-card :where(p, li, small),
.newsletter :where(p, li, small),
.blog-sidebar-cta :where(p, li, small),
.youtube-player-copy :where(p, li, small),
.youtube-channel-cta :where(p, li, small),
.site-footer :where(p, li, small) {
  color: #d7e9df;
}

.section-dark :where(h1, h2, h3, h4, h5, h6),
.audience-card.teacher :where(h1, h2, h3, h4, h5, h6),
.cbc-audience.teacher :where(h1, h2, h3, h4, h5, h6),
.cbc-digital :where(h1, h2, h3, h4, h5, h6),
.cbc-blog-section :where(h1, h2, h3, h4, h5, h6),
.auth-side :where(h1, h2, h3, h4, h5, h6),
.dashboard-sidebar :where(h1, h2, h3, h4, h5, h6),
.admin-sidebar :where(h1, h2, h3, h4, h5, h6),
.admin-welcome :where(h1, h2, h3, h4, h5, h6),
.contact-panel :where(h1, h2, h3, h4, h5, h6),
.faq-help-card :where(h1, h2, h3, h4, h5, h6),
.newsletter :where(h1, h2, h3, h4, h5, h6),
.blog-sidebar-cta :where(h1, h2, h3, h4, h5, h6),
.youtube-player-copy :where(h1, h2, h3, h4, h5, h6),
.youtube-channel-cta :where(h1, h2, h3, h4, h5, h6),
.site-footer :where(h1, h2, h3, h4, h5, h6) {
  color: #fff;
}

.page-hero .eyebrow,
.approved-catalogue-intro .eyebrow,
.cbc-audience.teacher .eyebrow,
.cbc-digital .eyebrow,
.cbc-blog-section .eyebrow,
.auth-side .eyebrow,
.admin-welcome .eyebrow,
.contact-panel .eyebrow,
.faq-help-card .eyebrow,
.newsletter .eyebrow,
.blog-sidebar-cta .eyebrow,
.youtube-player-copy .eyebrow,
.youtube-channel-cta .eyebrow {
  color: #f0d88f;
}

.article-content,
.rich-editor,
.managed-article .article-content {
  color: #263f34;
  background-color: #fff;
}

.article-content :where(p, li, td, figcaption),
.rich-editor :where(p, li, td, figcaption) {
  color: #263f34;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .btn { line-height: 1.35; }
}
.book-catalogue-note{display:flex;gap:14px;align-items:flex-start}.book-catalogue-note span{color:rgba(255,255,255,.78)}.book-search-bar{margin-bottom:16px}.book-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:16px;align-items:end;margin:18px 0 10px}.book-results-head{margin-bottom:18px}.book-results-head h2{margin:0;font-size:1.8rem}.approved-book-card h3{font-size:1.05rem}.approved-book-card p{margin:8px 0}.book-price{font-size:.82rem;font-weight:800;color:var(--primary)}.book-pagination button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:800px){.book-filter-grid{grid-template-columns:1fr}.book-catalogue-note{flex-direction:column}}

/* Shared premium treatment for public and member pages. */
@media screen {
  body.cbc-public-page {
    --public-cream:#f9f6f0;
    --public-paper:#fffdf9;
    --public-gold:var(--accent,#d4a72c);
    color:#2c2a29;
    background:var(--public-cream);
  }
  .cbc-public-page .site-header {
    border-bottom:1px solid rgba(12,65,41,.08);
    background:rgba(249,246,240,.94);
    box-shadow:0 8px 28px rgba(12,65,41,.045);
    backdrop-filter:blur(14px);
  }
  .cbc-public-page .main-nav > a:not(.active):after,
  .cbc-public-page .nav-dropdown > a:not(.active):after {
    position:absolute;right:13px;bottom:5px;left:13px;height:1px;
    content:"";background:var(--public-gold);transform:scaleX(0);
    transform-origin:right;transition:transform .3s ease;
  }
  .cbc-public-page .main-nav > a:hover:after,
  .cbc-public-page .nav-dropdown > a:hover:after { transform:scaleX(1);transform-origin:left; }
  .cbc-public-page .page-hero {
    position:relative;padding:clamp(78px,9vw,120px) 0;
    isolation:isolate;background:
      radial-gradient(circle at 82% 18%,rgba(212,167,44,.2),transparent 23rem),
      linear-gradient(120deg,var(--primary),#17613f);
    overflow:hidden;
  }
  .cbc-public-page .page-hero:after {
    position:absolute;top:-185px;right:-115px;z-index:-1;width:450px;height:450px;
    border:1px solid rgba(255,255,255,.13);border-radius:50%;content:"";
    box-shadow:0 0 0 58px rgba(255,255,255,.025),0 0 0 116px rgba(212,167,44,.035);
  }
  .cbc-public-page .page-hero .container { position:relative; }
  .cbc-public-page .page-hero .breadcrumbs { color:#c9ddd2; }
  .cbc-public-page .page-hero .breadcrumbs a { color:#fff; }
  .cbc-public-page .page-hero h1 {
    max-width:900px;margin-top:16px;color:#fff;
    font-size:clamp(2.75rem,5.6vw,5.3rem);line-height:1.02;
    text-wrap:balance;animation:cbcPublicHero .72s ease both;
  }
  .cbc-public-page .page-hero p {
    max-width:730px;color:#d7e9df;font-size:clamp(1.02rem,1.7vw,1.16rem);
    animation:cbcPublicHero .72s .12s ease both;
  }
  .cbc-public-page .page-hero .button-row { animation:cbcPublicHero .72s .22s ease both; }
  @keyframes cbcPublicHero { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }
  .cbc-public-page .section { padding-block:clamp(68px,8vw,104px); }
  .cbc-public-page .section-sm { padding-block:clamp(42px,5vw,68px); }
  .cbc-public-page .section-tint { background:linear-gradient(180deg,#f1f7f3,#f9f6f0); }
  .cbc-public-page .section-heading h2 {
    position:relative;padding-bottom:15px;text-wrap:balance;
  }
  .cbc-public-page .section-heading h2:after {
    position:absolute;bottom:0;left:0;width:58px;height:3px;border-radius:3px;
    content:"";background:var(--public-gold);
  }
  .cbc-public-page .section-heading.center h2:after { left:50%;transform:translateX(-50%); }
  .cbc-public-page h1,.cbc-public-page h2 { letter-spacing:-.025em; }
  .cbc-public-page .card,
  .cbc-public-page .feature-panel,
  .cbc-public-page .auth-form,
  .cbc-public-page .curriculum-controls,
  .cbc-public-page .scheme-builder,
  .cbc-public-page .scheme-library {
    border:1px solid rgba(12,65,41,.1);
    box-shadow:0 14px 36px rgba(24,45,35,.075);
  }
  .cbc-public-page .card {
    border-radius:13px;background:var(--public-paper);
    transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
  }
  .cbc-public-page .card:hover {
    border-color:rgba(212,167,44,.72);
    box-shadow:0 22px 48px rgba(24,45,35,.13);
    transform:translateY(-5px);
  }
  .cbc-public-page .category-card { position:relative;min-height:190px;overflow:hidden; }
  .cbc-public-page .category-card:after {
    position:absolute;right:0;bottom:0;left:0;height:3px;content:"";
    background:var(--public-gold);transform:scaleX(0);transform-origin:left;transition:transform .3s ease;
  }
  .cbc-public-page .category-card:hover:after { transform:scaleX(1); }
  .cbc-public-page .category-icon {
    box-shadow:inset 0 0 0 1px rgba(12,65,41,.08),0 8px 18px rgba(12,65,41,.08);
  }
  .cbc-public-page .btn { transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease,color .25s ease; }
  .cbc-public-page .btn:hover { box-shadow:0 10px 24px rgba(12,65,41,.15);transform:translateY(-2px); }
  .cbc-public-page .btn-outline:hover { border-color:var(--public-gold);color:#29220f;background:var(--public-gold); }
  .cbc-public-page .input,.cbc-public-page .select,.cbc-public-page .textarea {
    border-color:#dfe5df;border-radius:9px;background:#fff;transition:border-color .25s ease,box-shadow .25s ease;
  }
  .cbc-public-page .input:focus,.cbc-public-page .select:focus,.cbc-public-page .textarea:focus {
    border-color:var(--public-gold);box-shadow:0 0 0 3px rgba(212,167,44,.14);
  }
  .cbc-public-page .search-bar {
    padding:10px;border:1px solid #e0e5df;border-radius:13px;
    background:rgba(255,253,249,.94);box-shadow:0 12px 30px rgba(12,65,41,.07);
    backdrop-filter:blur(12px);
  }
  .cbc-public-page .filters-layout { gap:30px; }
  .cbc-public-page .filters {
    position:sticky;top:92px;padding:25px;border-color:#dfe5df;background:#fffdf9;
  }
  .cbc-public-page .filters h3 { padding-bottom:12px;border-bottom:2px solid rgba(212,167,44,.34); }
  .cbc-public-page .results-head { margin-bottom:22px; }
  .cbc-public-page .resource-card {
    display:flex;min-width:0;border-radius:12px;flex-direction:column;
  }
  .cbc-public-page .resource-card p,.cbc-public-page .approved-book-card p { line-height:1.65; }
  .cbc-public-page .resource-card .resource-actions { margin-top:auto;padding-top:18px; }
  .cbc-public-page .approved-book-card .book-actions { margin-top:auto; }
  .cbc-public-page .book-catalogue-note {
    border:0;background:transparent;box-shadow:none;
  }
  .cbc-public-page .book-filter-grid {
    padding:22px;border:1px solid #e0e5df;border-radius:13px;
    background:#fffdf9;box-shadow:0 12px 30px rgba(12,65,41,.06);
  }
  .cbc-public-page .feature-panel {
    border-radius:16px;background:linear-gradient(145deg,#fffdf9,#eef6f1);
  }
  .cbc-public-page .feature-item .check { box-shadow:0 6px 16px rgba(12,65,41,.12); }
  .cbc-public-page .contact-grid { gap:clamp(32px,6vw,76px); }
  .cbc-public-page .contact-panel {
    position:relative;border-top:4px solid var(--public-gold);
    background:linear-gradient(145deg,#fffdf9,#eef6f1);
  }
  .cbc-public-page .contact-item { padding-block:16px;border-bottom:1px solid #e3e8e3; }
  .cbc-public-page .contact-grid form { padding:clamp(24px,4vw,38px);border:1px solid #e0e5df;border-radius:14px;background:#fffdf9;box-shadow:0 14px 36px rgba(24,45,35,.07); }
  .cbc-public-page .faq-toolbar { border-color:#e1e6e0;background:#fffdf9;box-shadow:0 12px 30px rgba(12,65,41,.06); }
  .cbc-public-page .faq details { border-color:#e0e5df;background:#fff;box-shadow:0 8px 20px rgba(12,65,41,.04); }
  .cbc-public-page .faq details[open] { border-color:rgba(212,167,44,.5);box-shadow:0 16px 34px rgba(12,65,41,.09); }
  .cbc-public-page .faq-help-card { box-shadow:0 18px 42px rgba(12,65,41,.18); }
  .cbc-public-page .auth-shell {
    min-height:calc(100vh - 72px);padding:clamp(48px,7vw,90px) 0;
    background:radial-gradient(circle at 10% 15%,rgba(138,154,130,.16),transparent 24rem),linear-gradient(135deg,#f9f6f0,#eef6f1);
  }
  .cbc-public-page .auth-grid { border-radius:22px;box-shadow:0 26px 70px rgba(12,65,41,.15);overflow:hidden; }
  .cbc-public-page .auth-side {
    position:relative;background:radial-gradient(circle at 80% 20%,rgba(212,167,44,.22),transparent 16rem),linear-gradient(145deg,var(--primary),#17613f);
  }
  .cbc-public-page .auth-side:after {
    position:absolute;right:-75px;bottom:-75px;width:230px;height:230px;border:1px solid rgba(255,255,255,.13);
    border-radius:50%;content:"";box-shadow:0 0 0 35px rgba(255,255,255,.025);
  }
  .cbc-public-page .auth-form { border:0;border-radius:0;background:#fffdf9;box-shadow:none; }
  .cbc-public-page .dashboard-layout { min-height:calc(100vh - 72px);background:#f9f6f0; }
  .cbc-public-page .dashboard-sidebar {
    border-right:1px solid rgba(212,167,44,.2);background:linear-gradient(180deg,var(--primary),#153d2e);
    box-shadow:8px 0 30px rgba(12,65,41,.1);
  }
  .cbc-public-page .dashboard-nav a { border:1px solid transparent;transition:.25s; }
  .cbc-public-page .dashboard-nav a:hover,.cbc-public-page .dashboard-nav a.active { border-color:rgba(212,167,44,.35);background:rgba(212,167,44,.13);transform:translateX(3px); }
  .cbc-public-page .dash-stat { border-top:3px solid var(--public-gold); }
  .cbc-public-page .curriculum-controls { border-radius:15px;background:#fffdf9; }
  .cbc-public-page .curriculum-welcome { border-style:dashed;background:linear-gradient(145deg,#fffdf9,#eef6f1); }
  .cbc-public-page .curriculum-strand { border-color:#dfe5df;box-shadow:0 10px 26px rgba(12,65,41,.055); }
  .cbc-public-page .curriculum-strand[open] { border-color:rgba(212,167,44,.55);box-shadow:0 18px 40px rgba(12,65,41,.1); }
  .cbc-public-page .scheme-workspace { background:linear-gradient(180deg,#f1f7f3,#f9f6f0); }
  .cbc-public-page .scheme-builder,.cbc-public-page .scheme-library { border-radius:16px;background:#fffdf9; }
  .cbc-public-page .scheme-progress { border-color:#dfe5df;box-shadow:0 12px 30px rgba(12,65,41,.07); }
  .cbc-public-page .scheme-progress button.active { color:#29220f;background:var(--public-gold); }
  .cbc-public-page .article {
    max-width:900px;margin-inline:auto;padding:clamp(28px,5vw,58px);
    border:1px solid #e0e5df;border-radius:18px;background:#fffdf9;box-shadow:0 18px 50px rgba(24,45,35,.09);
  }
  .cbc-public-page .article-header { text-align:center; }
  .cbc-public-page .article-header h1 { font-size:clamp(2.5rem,5vw,4.8rem);line-height:1.08;text-wrap:balance; }
  .cbc-public-page .article-featured-image { border-radius:14px;box-shadow:0 16px 38px rgba(12,65,41,.12); }
  .cbc-public-page .article-content { font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.85; }
  .cbc-public-page .article-content h2,.cbc-public-page .article-content h3 { font-family:Inter,system-ui,sans-serif; }
  .cbc-public-page #main-content.section > .container[style*="text-align:center"] {
    margin-block:clamp(35px,7vw,80px);padding:clamp(42px,7vw,78px);
    border:1px solid rgba(212,167,44,.35);border-radius:22px;
    background:radial-gradient(circle at 50% 0,rgba(212,167,44,.17),transparent 20rem),#fffdf9;
    box-shadow:0 22px 58px rgba(12,65,41,.1);
  }
  .cbc-public-page .ceo-card { border-color:rgba(212,167,44,.25);box-shadow:0 24px 64px rgba(12,65,41,.15); }
  .cbc-public-page .ceo-portrait img { transition:transform .55s ease; }
  .cbc-public-page .ceo-card:hover .ceo-portrait img { transform:scale(1.025); }
  .cbc-public-page .site-footer { border-top:4px solid rgba(212,167,44,.7); }
  .cbc-public-page .cbc-public-reveal {
    opacity:0;transform:translateY(22px);transition:opacity .65s ease,transform .65s ease;
  }
  .cbc-public-page .cbc-public-reveal.cbc-public-visible { opacity:1;transform:none; }
  .cbc-public-page a:focus-visible,.cbc-public-page button:focus-visible,
  .cbc-public-page input:focus-visible,.cbc-public-page select:focus-visible,
  .cbc-public-page textarea:focus-visible { outline:3px solid var(--public-gold);outline-offset:3px; }
  @media(max-width:900px) {
    .cbc-public-page .filters { position:static; }
    .cbc-public-page .page-hero { padding:70px 0; }
    .cbc-public-page .article { padding:28px 20px; }
  }
  @media(max-width:620px) {
    .cbc-public-page .page-hero h1 { font-size:clamp(2.55rem,13vw,4rem); }
    .cbc-public-page .page-hero .btn { width:100%; }
    .cbc-public-page .contact-grid form { padding:22px 16px; }
  }
  @media(prefers-reduced-motion:reduce) {
    .cbc-public-page .page-hero h1,.cbc-public-page .page-hero p,.cbc-public-page .page-hero .button-row { animation:none; }
    .cbc-public-page .cbc-public-reveal { opacity:1;transform:none;transition:none; }
  }
}
