/* Brainmify Edu: brand gradient bar, glass cards on a soft sky-to-leaf background, centred titles. Never black panels. */
:root {
  --blue: #0086d1; --blue-2: #00a8ff; --teal: #12a39a; --leaf: #4caf50; --sun: #f5b938;
  --ink: #16324a; --ink-2: #44607a; --line: #d6e6f0; --card: rgba(255,255,255,.82);
  --ok: #1f8a4c; --ok-bg: #e4f6ea; --warn: #9a6200; --warn-bg: #fff3d6; --bad: #b3312b; --bad-bg: #fde8e6;
  --grad: linear-gradient(90deg, #0086d1 0%, #0086d1 25%, #3a9d0b 100%);      /* buttons: brainmify.com's darker bar blend, white text */
  --brand: linear-gradient(90deg, #00a8ff 0%, #00a8ff 30%, #64dd17 100%);    /* the top bar, exactly as brainmify.com */
  --app-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px; --shadow: 0 10px 30px rgba(14, 82, 128, .10);
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans', 'Noto Sans Kannada', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--ink); background: linear-gradient(160deg, #eaf5fd 0%, #f2f9f6 55%, #f6fbec 100%) fixed; min-height: 100vh;
  font-size: 15px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, 'Segoe UI', system-ui, sans-serif; line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }

/* top bar */
.topbar { background: var(--grad); color: #fff; box-shadow: 0 2px 14px rgba(0, 90, 150, .25); position: sticky; top: 0; z-index: 20; }
.topbar .in { max-width: 1180px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: .95rem; }
.brand small { font-weight: 600; opacity: .85; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; justify-content: center; }
.nav a { color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .93rem; }
.nav a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.nav a.on { background: rgba(255,255,255,.28); }
.me { display: flex; gap: 8px; align-items: center; }
.me a, .me button { color: #fff; background: rgba(255,255,255,.18); border: 0; padding: 7px 12px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; font-size: .9rem; }
.me a:hover, .me button:hover { background: rgba(255,255,255,.3); text-decoration: none; }

/* context strip: institution, campus, acting */
.ctx { max-width: 1180px; margin: 14px auto 0; padding: 0 max(16px, env(safe-area-inset-left)); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.ctx form { display: flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 5px 8px 5px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.ctx label { font-size: .8rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .5px; }
.ctx select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); max-width: 240px; }
.role-chip { background: #e6f4fc; color: #035f95; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.acting { background: var(--warn-bg); color: var(--warn); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; }

/* page */
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-left)) 60px; }
.page-head { text-align: center; margin: 6px 0 22px; }
.page-head p { color: var(--ink-2); margin: 0 auto; max-width: 640px; }
.page-head .actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.card, .pr-card { background: var(--card); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 18px; backdrop-filter: blur(10px); }
.card > h2, .pr-card > h2 { text-align: center; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { text-align: center; padding: 18px 12px; }
.stat b { display: block; font-size: 2rem; font-family: 'Space Grotesk', Inter, sans-serif; color: #035f95; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.stat.ok b { color: var(--ok); } .stat.warn b { color: var(--warn); } .stat.bad b { color: var(--bad); }
.muted, .pr-soft, .sub { color: var(--ink-2); }
.small, .pr-fine { font-size: .85rem; color: var(--ink-2); }
.center { text-align: center; }

/* buttons: brand colours with white text; side-by-side buttons share one width */
.btn, .pr-btn, .ht-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 150px; padding: 10px 18px;
  border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; background: var(--grad); color: #fff; text-decoration: none; }
.btn:hover, .pr-btn:hover, .ht-btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost, .pr-ghost { background: #fff; color: #035f95; border: 1.5px solid #9fcde9; }
.btn.warn { background: linear-gradient(120deg, #e59b12, #f5b938); }
.btn.danger, .pr-danger { background: linear-gradient(120deg, #c8463f, #e0685c); }
.btn.sm, .pr-sm { min-width: 0; padding: 6px 12px; font-size: .85rem; }
.ht-btn.wide, .btn.wide { width: 100%; } .ht-btn.big { padding: 13px 18px; font-size: 1.02rem; }
.pr-main { background: var(--grad); }
.row-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.row-actions .btn { flex: 0 1 220px; }

/* forms */
.fld, .pr-label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9rem; text-align: center; }
.fld input, .fld select, .fld textarea, .form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .pr-label input, .pr-label select, .pr-label textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; text-align: left; }
.fld input:focus, .form input:focus, .form select:focus { outline: 2px solid #8fd0f3; border-color: #8fd0f3; }
.fld small, .form .help { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; margin-top: 4px; }
.fld .err, .err { color: var(--bad); font-size: .85rem; font-weight: 600; display: block; }
.fld-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .fld-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; text-align: center; }
.form ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-weight: 500; }
.au-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 14px; }
.au-wrap { display: grid; place-items: center; padding: 40px 16px 70px; }
.au-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 30px 28px; text-align: center; backdrop-filter: blur(10px); }
.au-card.wide { max-width: 640px; }
.au-card h1 { font-size: 1.6rem; }
.au-card form { text-align: left; margin-top: 18px; }
.au-foot { margin-top: 16px; color: var(--ink-2); font-size: .9rem; }

/* messages */
.msgs { max-width: 760px; margin: 14px auto 0; padding: 0 16px; }
.msg, .ht-msg { padding: 11px 16px; border-radius: 12px; margin-bottom: 8px; font-weight: 600; text-align: center; background: #e6f4fc; color: #035f95; }
.msg.success { background: var(--ok-bg); color: var(--ok); }
.msg.error, .ht-msg.error { background: var(--bad-bg); color: var(--bad); }
.msg.warning { background: var(--warn-bg); color: var(--warn); }
.pr-banner { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #e6f4fc; margin-bottom: 12px; }
.pr-banner.ok { background: var(--ok-bg); color: var(--ok); } .pr-banner.warn { background: var(--warn-bg); color: var(--warn); } .pr-banner.bad { background: #fdecec; color: #a12a2a; }
.demo-code { background: #fff8e1; border: 2px dashed var(--sun); border-radius: 14px; padding: 14px; text-align: center; margin: 12px 0; }
.demo-code b { font-size: 1.8rem; letter-spacing: 6px; font-family: 'Space Grotesk', monospace; color: #7a4f00; }

/* tables and lists */
.table-wrap { overflow-x: auto; }
table.t, .pr-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, .pr-table th { text-align: left; color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.t td, .pr-table td { padding: 10px; border-bottom: 1px solid #e8f1f6; vertical-align: top; }
table.t tr:hover td { background: rgba(230, 244, 252, .5); }
.pill, .pr-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e6f4fc; color: #035f95; white-space: nowrap; }
.pill.ok, .pr-b-given { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.grey { background: #edf2f6; color: #5a7186; }
.pr-list .pr-row, .list .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #e8f1f6; }
.pr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pr-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pr-tabs a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; }
.pr-tabs a.on { background: var(--grad); color: #fff; border-color: transparent; }
.pr-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: monospace; font-size: 1rem; }
.pr-empty { text-align: center; color: var(--ink-2); padding: 18px; }

/* consent */
.purpose { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #e8f1f6; }
.purpose p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.choice { display: flex; gap: 6px; }
.choice label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; }
.choice input:checked + span { color: var(--ok); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.timeline li { padding: 7px 0; border-bottom: 1px dashed #dbe8f0; }

/* home */
.hero { text-align: center; padding: 14px 16px 30px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 680px; margin: 12px auto 26px; font-size: 1.1rem; color: var(--ink-2); }
.features { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.features .card h3 { text-align: center; }
.features .card p { color: var(--ink-2); margin: 0; text-align: center; }
footer.foot { text-align: center; padding: 26px 16px 40px; color: var(--ink-2); font-size: .85rem; }
footer.foot a { margin: 0 8px; }
.demo-note { display: inline-block; background: #fff8e1; color: #7a4f00; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
@media (max-width: 720px) { .nav { order: 3; flex-basis: 100%; } h1 { font-size: 1.45rem; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* receptionist chat */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 6px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; }
.bubble.bot { background: #e6f4fc; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.me .muted { color: rgba(255, 255, 255, .85); }   /* the subject and time under a question stay readable on the gradient */

/* grouped top menu (web/menu.py) */
details.menu { position: relative; }
details.menu > summary { list-style: none; color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .93rem; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary::after { content: ' ▾'; font-size: .75rem; }
details.menu > summary:hover, details.menu.on > summary { background: rgba(255,255,255,.22); }
details.menu .drop { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #fff; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(14, 82, 128, .22); padding: 6px; min-width: 200px; z-index: 40; display: flex; flex-direction: column; }
details.menu .drop a { color: var(--ink); padding: 9px 14px; border-radius: 10px; font-weight: 600; text-align: center; }
details.menu .drop a:hover, details.menu .drop a.on { background: #e6f4fc; color: #035f95; text-decoration: none; }

/* training videos (web/training.py) */
.training-btn { margin-top: 10px; }
.training-dlg { border: 0; border-radius: 18px; padding: 0; max-width: 980px; width: 94vw; background: var(--grad); box-shadow: 0 20px 60px rgba(0, 60, 100, .35); }
.training-dlg::backdrop { background: rgba(0, 70, 110, .45); }
.training-dlg-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 12px 52px; color: #fff; text-align: center; }
.training-dlg-head .bmm-x { position: absolute; right: 10px; top: 8px; color: #fff; background: rgba(255,255,255,.18); border: 0; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; }
.training-dlg video { width: 100%; display: block; background: #e8f4fb; border-radius: 0 0 18px 18px; }
.training-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.training-card { display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.training-card small { display: block; line-height: 1.35; }
.training-thumb { position: relative; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--grad); }
.training-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.training-thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.training-thumb.soon { cursor: default; opacity: .55; }
.training-thumb.soon span { font-size: 1rem; text-shadow: none; }
.pill.warn { background: #fff4dc; color: #8a5a00; }
.start-list { list-style: none; padding: 0; margin: 10px auto; max-width: 640px; display: grid; gap: 8px; }
.start-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #f2f9fd; flex-wrap: wrap; }
.start-list li.done { opacity: .6; }
.start-list li.done a { text-decoration: line-through; }
.start-list .start-n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; }
.start-list a { flex: 1; font-weight: 600; text-align: left; }
.start-list .training-btn { margin: 0; }
.pitch-label{display:inline-block;padding:6px 16px;border-radius:999px;background:var(--grad);color:#fff;font-weight:700}
.for-schools{text-align:center;max-width:1180px;margin:24px auto}
.for-schools h2{margin:12px 0 6px}
.for-schools .grid .card{text-align:center}
@media (min-width: 900px) { .for-schools .grid { grid-template-columns: repeat(3, 1fr); } }
/* the brainmify.com hero wordmark (ai_chat/includes/theme.css .pill/.brand/.sub), as Brainmify Edu */
.edu-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 24px; border-radius: 999px; background: #fff; font-size: .74rem; font-weight: 600; color: #13304a; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 22px; box-shadow: 0 6px 20px -12px rgba(0, 90, 150, .35); }
.edu-pill-dot { width: 12px; height: 12px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(61, 145, 66, .15); animation: edupulse 2.5s infinite; }
@keyframes edupulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(61, 145, 66, .15); } 50% { box-shadow: 0 0 0 7px rgba(61, 145, 66, .06); } }
.edu-brand { font-family: 'Poppins', sans-serif; font-size: clamp(3rem, 6.5vw, 4.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 14px; background: linear-gradient(90deg, #00a8ff 0%, #00a8ff 30%, #64dd17 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.edu-sub { font-size: 1.05rem !important; color: #5b7186 !important; margin: 0 auto 26px !important; }
.hero .edu-brand + .edu-sub + h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
@media (max-width: 600px) { .edu-brand { font-size: 2.8rem; } }
/* AI for leaders: morning brief and Ask your school (insight app) */
.brief-list{list-style:none;padding:0;margin:0 auto;max-width:820px}
.brief-list li{padding:10px 14px 10px 40px;border-radius:14px;margin:6px 0;position:relative;background:#f3faff;line-height:1.45}
.brief-list li::before{content:"";position:absolute;left:14px;top:15px;width:12px;height:12px;border-radius:50%;background:#00a8ff}
.brief-list li.brief-warn::before{background:#f0a500}.brief-list li.brief-act::before{background:#64dd17}
.brief-list a{color:inherit;text-decoration:none}.brief-list a:hover{text-decoration:underline}
.answer-box{max-width:820px;margin:18px auto 0;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#eef8ff,#f1fbe8);border:1px solid #d9e7f2}
.answer-text{font-size:1.05rem;line-height:1.55;margin:6px 0 12px}
.coach-card{max-width:860px;margin:12px auto;padding:14px 18px;border:1px solid #d9e7f2;border-radius:16px;background:#fbfdff}
.coach-card h3{margin:0 0 8px}.coach-card p{margin:4px 0;line-height:1.45}
.bad-text{color:#c0392b;font-weight:600}
.doc-age{margin:10px 0;padding:10px 14px;border-radius:12px;background:#f3faff}.doc-age.doc-flag{background:#fff6e5}.doc-age.doc-ok{background:#effbe6}
.doc-row{margin:10px 0;padding:10px 14px;border:1px solid #d9e7f2;border-radius:12px}.doc-row.doc-flag{border-color:#f0a500}.doc-row ul{margin:6px 0 0;padding-left:18px}
.bubble a{overflow-wrap:anywhere}
.lang-pick{display:inline-block;margin-left:10px}.lang-pick select{padding:4px 8px;border-radius:10px;border:1px solid #d9e7f2;font-size:.85rem;background:#fff}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.reader-canvas{max-width:100%;overflow:auto;text-align:center}.reader-canvas canvas{max-width:100%;height:auto;touch-action:none;border-radius:12px;border:1px solid #d9e7f2;cursor:crosshair}
.edu-tagline { font-size: .95rem; font-weight: 600; text-align: center; margin: -18px auto 22px; background: var(--grad, linear-gradient(90deg,#00a8ff,#64dd17)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.life-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.7); text-decoration: none; color: inherit; border: 1px solid rgba(0,120,200,.15); }
.life-tile b { font-size: 1.6rem; background: linear-gradient(90deg,#00a8ff,#64dd17); -webkit-background-clip: text; background-clip: text; color: transparent; }
.house-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.id-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto; }
.id-card { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(0,120,200,.2); padding-bottom: 8px; break-inside: avoid; }
.id-top { background: linear-gradient(90deg,#00a8ff,#64dd17); color: #fff; font-weight: 700; text-align: center; padding: 8px; }
.id-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; }
.id-qr svg { width: 96px; height: 96px; }
@media print { .no-print, header, footer, nav { display: none !important; } .id-card { border: 1px solid #999; } }
.a11y-tools { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
html.a11y-big { font-size: 118%; }
html.a11y-big body, html.a11y-big main { color: #0b2236; }
html.a11y-big .muted, html.a11y-big .small { color: #23384c !important; font-size: 1rem !important; }
html.a11y-big a { text-decoration: underline; }
html.a11y-big .btn { min-height: 48px; }
.calm-dot { width: 90px; height: 90px; margin: 12px auto; border-radius: 50%; background: linear-gradient(135deg,#00a8ff,#64dd17); animation: calmbox 16s ease-in-out infinite; }
@keyframes calmbox { 0% { transform: scale(.6); } 25% { transform: scale(1.15); } 50% { transform: scale(1.15); } 75% { transform: scale(.6); } 100% { transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .calm-dot { animation: none; } }

/* ── "Everything on Brainmify Edu" (templates/_everything.html): every page, grouped, at the bottom of the More map and in the
   phone menu's fold-out. Same design as "Everything on HealthTeky": tinted cards, centred headings, plain links. ── */
.bmm-map .bmm-body .bmx-all { column-span: all; break-inside: avoid; margin-top: 10px; padding-top: 14px; border-top: 1px solid #e3edf7; }
.bmx-all > h3 { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 800; color: #15263a; }
.bmx-all > h3 span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, #00a8ff, #12b886); }
.bmx { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px 14px; align-items: start; }
.bmx-g { --t2: #0086d1; --tint: #eaf6ff; display: flex; flex-direction: column; min-width: 0; padding: 12px 10px; border-radius: 18px; background: var(--tint); }
.bmx-c2 { --t2: #ff4f6d; --tint: #fff0f2; }
.bmx-c3 { --t2: #12b886; --tint: #eafbf1; }
.bmx-c4 { --t2: #0086d1; --tint: #e8f7f7; }
.bmx-c5 { --t2: #7b61ff; --tint: #f3efff; }
.bmx-c6 { --t2: #ff7b25; --tint: #fff6e8; }
.bmx-c7 { --t2: #c2185b; --tint: #fdeef5; }
.bmx-g h4 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 8px; font-size: 15px; font-weight: 800; color: #15263a; text-align: center; }
.bmx-g h4 span { font-size: 17px; }
.bmx-g h4 em { font-style: normal; font-size: 11px; font-weight: 700; color: #a35a00; }
.bmx-g a { display: block; padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; color: #1d3b5c !important; text-decoration: none !important; }
.bmx-g a:hover, .bmx-g a:focus-visible { background: #fff; color: var(--t2) !important; outline: none; }
/* phone menu: a fold-out under the menu links */
.bmx-side { margin: 10px 0 4px; }
.bmx-side > summary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 14px; cursor: pointer; list-style: none;
  color: #fff; font-weight: 700; background: linear-gradient(90deg, #00a8ff, #12b886); }
.bmx-side > summary::-webkit-details-marker { display: none; }
.bmx-side > summary i { color: #fff !important; }
.bmx-side[open] > summary { margin-bottom: 10px; }
.bmx-side .bmx { grid-template-columns: 1fr; gap: 10px; }
.bm-menu-list .bmx-side .bmx-g a { display: block; padding: 8px 10px; min-height: 0; font-size: 14.5px; }
/* the one shared-account button (accounts/oidc.py) and the "or" line under it */
.acct-btn { margin-bottom: 6px; }
.au-or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .85rem; margin: 10px 0 14px; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
