/* ERB Academy · Evolo — teachers directory, teacher pages, dashboards. Builds on /assets/site.css (paper, navy, teal, gold). */
#ev { min-height: 60vh; }
#ev .wrap { padding-top: 28px; padding-bottom: 64px; }
.ev-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin-bottom: 26px; }
.ev-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.ev-hero .lead { font-size: 1.12rem; color: var(--slate); max-width: 34em; }
.ev-hero-art { background: linear-gradient(135deg, var(--tealpale), var(--goldpale)); border-radius: 28px; padding: 22px; display: grid; gap: 10px; }
.ev-hero-art .ev-mini { background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.ev-hero-art .ev-mini b { font-family: var(--display); font-weight: 600; }
.ev-step { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }

.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 20px; }
.ev-filters input, .ev-filters select { font: 600 1rem var(--sans); padding: .6rem .9rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); min-width: 0; }
.ev-filters input { flex: 1 1 220px; }
.ev-chip { font: 800 .9rem var(--sans); padding: .5rem .95rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.ev-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.ev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
a.ev-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27,36,64,.06), 0 18px 40px rgba(27,36,64,.12); }
.ev-who { display: flex; gap: 14px; align-items: center; }
.ev-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--tealpale); flex: none; display: grid; place-items: center; font: 700 1.5rem var(--display); color: var(--teal); overflow: hidden; }
.ev-av.lg { width: 132px; height: 132px; font-size: 3rem; border: 5px solid #fff; box-shadow: var(--shadow); }
.ev-av img { width: 100%; height: 100%; object-fit: cover; }
.ev-name { font: 600 1.25rem/1.15 var(--display); margin: 0; }
.ev-badge { display: inline-flex; align-items: center; gap: 5px; font: 900 .72rem var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: var(--goldpale); color: #7a5300; }
.ev-badge.teal { background: var(--tealpale); color: var(--teal); }
.ev-badge.grey { background: #EFEDE8; color: var(--slate); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tag { font: 700 .8rem var(--sans); padding: .25rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.ev-from { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.ev-from span { color: var(--slate); font-weight: 700; font-size: .9rem; }

.ev-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 30px; margin-top: 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.ev-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.ev-band p { color: #D9DCE6; }
.ev-band ul { margin: 0; padding-left: 1.1em; color: #D9DCE6; }

/* teacher page */
.ev-thero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: linear-gradient(135deg, var(--tealpale), #fff 70%); border: 1px solid var(--line); border-radius: 30px; padding: 28px; }
.ev-thero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .15em; }
.ev-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-socials a { font-weight: 800; font-size: .9rem; text-decoration: none; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ev-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.ev-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.ev-sec h2 { font-size: 1.5rem; }
.ev-sec h3 { margin-top: .2em; }
.ev-pre { white-space: pre-line; }
.ev-class { border: 2px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; background: #fff; }
.ev-class h3 { margin: 0 0 4px; }
.ev-class .ev-price { font: 700 1.5rem var(--display); color: var(--ink); }
.ev-class .ev-price small { font: 700 .85rem var(--sans); color: var(--slate); }
.ev-class-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ev-video { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; background: #000; margin: 8px 0; }
.ev-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ev-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.ev-link { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); margin-bottom: 8px; background: var(--paper); }
.ev-link .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--tealpale); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.ev-link b { display: block; }
.ev-ann { border-left: 5px solid var(--gold); background: var(--goldpale); padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }

.ev-mch { flex-wrap: wrap; }
.ev-mch .ev-mch-t { flex: 1 1 220px; min-width: 0; }

/* forms */
.ev-form { display: grid; gap: 12px; }
.ev-form label { display: grid; gap: 5px; font-weight: 800; font-size: .95rem; }
.ev-form label small { font-weight: 600; color: var(--slate); }
.ev-form input, .ev-form select, .ev-form textarea { font: 600 1rem var(--sans); padding: .75rem .9rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.ev-form textarea { min-height: 96px; resize: vertical; }
.ev-form input:focus, .ev-form select:focus, .ev-form textarea:focus, .ev-filters input:focus, .ev-filters select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,127,112,.15); }
.ev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.ev-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; }
.ev-check input { width: auto !important; margin-top: 4px; }
.ev-err { color: #B3261E; font-weight: 800; min-height: 1.2em; margin: 0; }
.ev-ok { background: var(--tealpale); color: #1d5a4f; border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.ev-seg { display: inline-flex; background: #EFEDE8; border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.ev-seg button { font: 800 .92rem var(--sans); border: 0; background: transparent; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink); }
.ev-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* modal */
.ev-modal { position: fixed; inset: 0; background: rgba(27,36,64,.45); z-index: 200; display: grid; place-items: center; padding: 16px; }
.ev-modal > div { background: var(--paper); border-radius: 26px; padding: 24px; width: min(560px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.ev-modal h2 { font-size: 1.6rem; }
.ev-x { float: right; border: 0; background: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

/* dashboards */
.ev-dash { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.ev-side { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; }
.ev-side .who { display: flex; gap: 10px; align-items: center; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ev-side .who .ev-av { width: 44px; height: 44px; font-size: 1.1rem; }
.ev-side a { display: flex; gap: 10px; align-items: center; padding: .65rem .8rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 800; }
.ev-side a[aria-current="page"] { background: var(--ink); color: #fff; }
.ev-side a:hover:not([aria-current="page"]) { background: var(--paper); }
.ev-side .n { margin-left: auto; background: var(--gold); color: var(--ink); border-radius: 999px; font-size: .75rem; padding: .1rem .5rem; }
.ev-main h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.ev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ev-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.ev-stat .k { font: 900 .75rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.ev-stat .v { font: 700 1.9rem/1.1 var(--display); margin-top: 4px; }
.ev-stat .s { color: var(--slate); font-size: .88rem; font-weight: 700; }
.ev-stat.gold { background: var(--goldpale); border-color: #F2DDA4; }
.ev-stat.teal { background: var(--tealpale); border-color: #CBE6DF; }
.ev-todo { display: grid; gap: 8px; }
.ev-todo a, .ev-todo div.item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.ev-todo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.ev-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .95rem; }
.ev-table th { text-align: left; font: 900 .74rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); background: var(--paper); padding: 10px 12px; }
.ev-table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.ev-table td.num, .ev-table th.num { text-align: right; white-space: nowrap; }
.ev-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; }
.ev-st { font: 900 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; }
.ev-st.paid, .ev-st.active, .ev-st.open { background: var(--tealpale); color: var(--teal); }
.ev-st.due, .ev-st.pending, .ev-st.applied, .ev-st.full { background: var(--goldpale); color: #7a5300; }
.ev-st.left, .ev-st.closed, .ev-st.rejected, .ev-st.paused, .ev-st.waived { background: #EFEDE8; color: var(--slate); }
.ev-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-btn-xs { font: 800 .82rem var(--sans); padding: .38rem .7rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ev-btn-xs.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.ev-btn-xs.wa { background: #1FA855; border-color: #1FA855; color: #fff; }
.ev-btn-xs.danger { color: #B3261E; }
.ev-blk { border: 2px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; margin-bottom: 10px; display: grid; gap: 8px; }
.ev-blk-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-blk-head select { width: auto; }
.ev-copy { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 700; word-break: break-all; }
.ev-empty { text-align: center; padding: 30px 18px; color: var(--slate); }
.ev-empty img { width: 110px; margin: 0 auto 10px; }
.ev-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 800; z-index: 300; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ev-load { display: grid; place-items: center; padding: 60px 0; color: var(--slate); font-weight: 800; }
.ev-sess { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ev-sess:first-child { border-top: 0; }
.ev-date { width: 54px; text-align: center; background: var(--paper); border-radius: 12px; padding: 6px 0; flex: none; font-weight: 900; line-height: 1.1; }
.ev-date small { display: block; font-size: .7rem; color: var(--slate); text-transform: uppercase; }
.ev-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

@media (max-width: 860px) {
  .ev-hero, .ev-band, .ev-cols { grid-template-columns: 1fr; }
  .ev-dash { grid-template-columns: 1fr; }
  .ev-side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .ev-side .who { display: none; }
  .ev-side a { white-space: nowrap; padding: .55rem .8rem; }
  .ev-thero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px; }
  .ev-thero .ev-tags, .ev-thero .ev-socials { justify-content: center; }
  .ev-row, .ev-row3 { grid-template-columns: 1fr; }
  .ev-table.stack thead { display: none; }
  .ev-table.stack tr { display: block; border-top: 1px solid var(--line); padding: 8px 4px; }
  .ev-table.stack td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 5px 10px; text-align: right; }
  .ev-table.stack td::before { content: attr(data-l); font-weight: 900; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); text-align: left; }
  .ev-table.stack td.num { text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .ev-card, a.ev-card:hover { transition: none; transform: none; } }
