/* Aloha Animal Alliance — production stylesheet
   Ported from prototype v27. Same visual system; cleaned up and
   extended with accessibility + performance rules noted inline. */

:root {
  --ink:#153b3a; --muted:#55706e; --teal:#0b756f; --teal-dark:#075752;
  --aqua:#dff4ef; --aqua-2:#effaf7; --coral:#e77c65; --gold:#f3bf20;
  --cream:#fffaf1; --white:#fff; --line:#d7e8e4; --shadow:0 18px 50px rgba(21,59,58,.12);
  --radius-xl:30px; --radius-lg:22px; --radius-md:14px; --max:1260px;

  /* Accent family. Each accent is a pale surface plus an ink dark enough to
     sit on it at AA contrast, so a tinted card never trades colour for
     legibility. Used by the .accent-* and .tint-* rules further down. */
  --sky:#1f6f9c; --sky-soft:#e6f2fa;
  --plum:#6d4bb3; --plum-soft:#f0eaff;
  --mint:#0f7058; --mint-soft:#e0f5ee;
  --coral-ink:#b3492f; --coral-soft:#fde9e3;
  --gold-ink:#8a6a00; --gold-soft:#fff3cd;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.55}
a{color:inherit} img{max-width:100%;height:auto} button,input,select,textarea{font:inherit} button{cursor:pointer}

/* Visible keyboard focus everywhere (WCAG 2.2 AA) */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--teal-dark);outline-offset:2px;border-radius:4px;
}

/* Skip link for keyboard/screen-reader users */
.skip-link{position:absolute;left:12px;top:-60px;background:var(--teal-dark);color:#fff;padding:12px 18px;border-radius:10px;z-index:300;transition:top .2s ease;font-weight:800;text-decoration:none}
.skip-link:focus{top:12px}

.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.section{padding:82px 0}
.soft{background:var(--aqua-2)}
.cream{background:var(--cream)}
.eyebrow{font-size:.79rem;text-transform:uppercase;letter-spacing:.15em;font-weight:850;color:var(--teal);margin-bottom:10px}
h1,h2,h3{line-height:1.08;margin:0 0 14px}
h1{font-size:clamp(2.65rem,6vw,5.25rem);letter-spacing:-.045em}
h2{font-size:clamp(2rem,4vw,3.35rem);letter-spacing:-.035em}
h3{font-size:1.3rem}
p{margin:0 0 16px;color:var(--muted)}
.lead{font-size:1.16rem;max-width:720px}
.small{font-size:.9rem}
.fine{font-size:.82rem;color:#6b7f7d}

.btn{border:0;border-radius:999px;padding:13px 20px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:.2s ease;min-height:48px}
.btn:hover{transform:translateY(-2px)}
.primary{background:var(--teal);color:white}
.primary:hover{background:var(--teal-dark)}
.secondary{background:white;color:var(--ink);border:1px solid var(--line)}
.gold{background:var(--gold);color:#243d3b}
.ghost{background:transparent;border:1px solid rgba(21,59,58,.2)}
.small-btn{padding:10px 15px;min-height:40px;font-size:.9rem}
.btn[disabled]{opacity:.6;cursor:not-allowed;transform:none}

.button-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.pill{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:var(--aqua);color:var(--teal-dark);font-weight:800;font-size:.78rem}
.status-open{background:#e7f7ea;color:#266b35}
.status-coming{background:#fff1c7;color:#775b00}
.status-member{background:#eee7ff;color:#5f3fa1}

/* ================================================================
   Site navigation
   A sticky header rail plus one slide-in panel holding the whole
   site directory. Both blocks are identical on every page and are
   wired up at runtime by assets/js/nav.js.
   ================================================================ */
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(215,232,228,.9)}
.nav-wrap{height:86px;display:flex;align-items:center;gap:16px}
.brand{display:flex;align-items:center;text-decoration:none;flex:none}
.brand-logo{width:220px;display:block}
.nav{display:flex;gap:2px;align-items:center;min-width:0}
.nav a{background:none;border:0;text-decoration:none;padding:9px 10px;font-weight:750;font-size:.93rem;color:#31514f;border-radius:10px;white-space:nowrap}
.nav a:hover{background:var(--aqua-2)}
.nav a[aria-current="page"]{color:var(--teal-dark);background:var(--aqua)}
.nav-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex:none}
.top-donate{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border-radius:999px;background:var(--gold);color:#243d3b;text-decoration:none;font-weight:900;border:1px solid #d5a90f;box-shadow:0 6px 16px rgba(123,91,0,.18);white-space:nowrap}
.top-donate:hover{transform:translateY(-1px);background:#ffd044}
.social-top{display:flex;gap:8px}
.social-icon{width:42px;height:42px;border:1px solid var(--line);background:white;border-radius:50%;display:grid;place-items:center;text-decoration:none}
.social-icon svg{width:19px;height:19px;fill:var(--teal)}

/* The Menu button is shown at every width on every page, because the panel
   behind it is the only place the whole site is listed. It is not a
   small-screen fallback for the shortcut links beside it. */
.menu-toggle{position:relative;flex:none;display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:9px 16px 9px 14px;border:1px solid var(--line);background:#fff;border-radius:999px;font-weight:850;font-size:.93rem;color:var(--ink);box-shadow:0 2px 8px rgba(21,59,58,.06);transition:background .2s ease,border-color .2s ease}
.menu-toggle:hover{background:var(--aqua-2);border-color:#b9d8d1}
.menu-bars{position:relative;display:block;flex:none;width:17px;height:12px}
.menu-bars span{position:absolute;left:0;width:100%;height:2px;border-radius:2px;background:var(--teal);transition:transform .26s ease,opacity .18s ease}
.menu-bars span:nth-child(1){top:0}
.menu-bars span:nth-child(2){top:5px}
.menu-bars span:nth-child(3){top:10px}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* Panel sits under the form dialogs (.modal, z-index 100) so an open form
   always stays on top, and above the sticky header it slides over. */
.menu-scrim{position:fixed;inset:0;z-index:90;background:rgba(6,32,31,.5);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
.menu-scrim.open{opacity:1;visibility:visible;transition:opacity .3s ease,visibility 0s}
/* visibility rather than display keeps the slide-out animating while still
   taking the closed panel out of the tab order and the a11y tree. */
.site-menu{position:fixed;top:0;right:0;z-index:95;width:min(432px,100%);height:100%;display:flex;flex-direction:column;background:var(--cream);border-left:1px solid var(--line);box-shadow:-34px 0 64px rgba(21,59,58,.2);transform:translateX(101%);visibility:hidden;transition:transform .34s cubic-bezier(.32,.72,0,1),visibility 0s linear .34s}
.site-menu.open{transform:none;visibility:visible;transition:transform .34s cubic-bezier(.32,.72,0,1),visibility 0s}
body.menu-open{overflow:hidden}

.site-menu-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 24px;background:linear-gradient(135deg,var(--teal-dark),var(--teal) 60%,#0e8f88);color:#fff}
.site-menu-home{display:inline-flex;align-items:center;gap:9px;padding:8px 15px 8px 12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);color:#fff;text-decoration:none;font-weight:850}
.site-menu-home:hover{background:rgba(255,255,255,.24)}
.site-menu-home svg{width:17px;height:17px;fill:currentColor}
.site-menu-home[aria-current="page"]{background:#fff;border-color:#fff;color:var(--teal-dark)}
.menu-close{width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.1);border-radius:999px;color:#fff}
.menu-close:hover{background:rgba(255,255,255,.22)}
.menu-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
/* The global teal focus ring disappears against the teal panel header. */
.site-menu-head a:focus-visible,.site-menu-head button:focus-visible{outline-color:#fff}

.site-menu-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:6px 16px 20px}
.menu-group{padding:15px 0 5px;border-bottom:1px solid #ece2d2}
.menu-group:last-child{border-bottom:0}
.menu-group-title{margin:0 0 5px;padding:0 9px;font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;font-weight:850;color:var(--teal)}
.menu-group a{display:block;padding:9px 12px;border-left:3px solid transparent;border-radius:12px;text-decoration:none;transition:background .18s ease,border-color .18s ease}
.menu-group a:hover{background:#fff;border-left-color:var(--gold)}
.menu-group a[aria-current="page"]{background:#fff;border-left-color:var(--teal);box-shadow:0 6px 18px rgba(21,59,58,.07)}
.menu-link-title{display:block;font-weight:800;color:var(--ink)}
.menu-group a[aria-current="page"] .menu-link-title{color:var(--teal-dark)}
.menu-link-note{display:block;margin-top:1px;font-size:.82rem;line-height:1.4;color:var(--muted)}
/* The staff tool belongs in the list but shouldn't compete with it. */
.menu-group-staff .menu-link-title{font-size:.94rem;color:var(--muted)}

.site-menu-foot{flex:none;display:flex;align-items:center;gap:12px;padding:15px 24px;border-top:1px solid #ece2d2;background:rgba(255,255,255,.72)}
.site-menu-foot .btn{flex:1 1 auto;min-height:44px}
.menu-social{display:flex;gap:8px;flex:none}

.hero{padding:70px 0 54px;background:radial-gradient(circle at 80% 15%,rgba(243,191,32,.34),transparent 26%),radial-gradient(circle at 92% 70%,rgba(231,124,101,.24),transparent 28%),linear-gradient(135deg,#effaf7,#fffaf1)}
.hero-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.hero-intro{grid-column:1/-1;text-align:center;max-width:920px;margin:0 auto 0}
.hero-tagline{font-size:1.4rem;font-weight:650;line-height:1.35;max-width:760px;margin:8px auto 0;color:var(--muted)}
.hero-option,.hero-panel{background:white;border:1px solid rgba(255,255,255,.78);border-radius:var(--radius-xl);padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;height:100%}
.hero-image-wrap{position:relative}
.hero-dog,.hero-cat{display:block;width:100%;aspect-ratio:4/3;border-radius:22px;object-fit:cover;background:var(--aqua-2)}
.hero-dog{object-position:center 28%}
.hero-cat{object-position:center 28%}
.hero-photo-action{position:absolute;bottom:18px;left:18px;z-index:2;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.hero-option-body{padding:2px 4px 12px}
.hero-option-body h3{font-size:1.45rem;margin-top:14px}
.hero-option-body p{margin-bottom:16px}
.hero-option .button-row,.hero-panel .button-row{margin:0}
.hero-list{display:grid;gap:12px;margin-top:20px}
.hero-item{display:flex;gap:12px;padding:14px;border-radius:14px;background:var(--aqua-2)}
.hero-item strong{display:block}
.hero-item span{color:var(--muted);font-size:.9rem}
.dot{width:12px;height:12px;border-radius:50%;background:var(--coral);margin-top:7px;flex:none}

.line-icon{width:54px;height:54px;border-radius:16px;background:var(--aqua);display:grid;place-items:center;color:var(--teal);margin-bottom:18px}
.line-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.card-title-row{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.card-title-row .line-icon{width:46px;height:46px;margin:0;flex:none}
.card-title-row h3{margin:0}
.section-key{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.section-key span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);background:rgba(255,255,255,.75);border-radius:999px;color:var(--muted);font-size:.84rem;font-weight:700}
.section-key i{width:8px;height:8px;border-radius:50%;background:var(--teal)}

.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:-1px;align-items:stretch}
.quick-card{padding:24px;border-radius:20px;background:white;border:1px solid var(--line);text-decoration:none;box-shadow:0 10px 28px rgba(21,59,58,.06);min-height:118px;display:flex;flex-direction:column;justify-content:center;text-align:left;width:100%}
.quick-card:hover{border-color:#9bcac4;transform:translateY(-2px)}
.quick-card strong{display:block;font-size:1.05rem;margin-bottom:7px}
.quick-card span{color:var(--muted);font-size:.9rem}
.section-head{display:flex;justify-content:space-between;gap:42px;align-items:end;margin-bottom:34px}
.section-head>p{max-width:500px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.card{background:white;border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;box-shadow:0 10px 28px rgba(21,59,58,.055)}
.card p:last-child{margin-bottom:0}
.card .icon{width:52px;height:52px;border-radius:16px;background:var(--aqua);display:grid;place-items:center;font-weight:900;color:var(--teal);margin-bottom:18px}
.card .button-row{margin-top:18px}
.feature-card{min-height:270px;display:flex;flex-direction:column}
.feature-card .button-row{margin-top:auto}

.notice{padding:17px 19px;border-radius:15px;background:#fff7db;border:1px solid #f4dda1;color:#63541a}
.notice strong{color:#4d4215}
.info{background:var(--aqua-2);border-color:#cce5e0}
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}
.flow-step{padding:18px;border:1px solid var(--line);border-radius:16px;background:white}
.flow-num{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--teal);color:white;font-weight:900;margin-bottom:12px}

.event-toolbar,.role-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;flex-wrap:wrap}
.event-grid,.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.event-card,.role-card{background:white;border:1px solid var(--line);border-radius:20px;padding:22px}
.event-date{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.date-badge{border-radius:14px;background:var(--aqua);padding:10px 12px;text-align:center;min-width:76px}
.date-badge strong{display:block;font-size:1.2rem}
.date-badge span{font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;font-weight:850}
.meta-list{display:grid;gap:8px;margin:15px 0;color:var(--muted);font-size:.92rem}

/* Month picker + month grid for the events calendar */
.month-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.month-select{border:1px solid var(--line);border-radius:999px;padding:11px 15px;min-height:44px;background:white;color:var(--ink);font-weight:700;max-width:100%}
.month-step{min-width:44px;padding:10px 13px;font-size:1.05rem;line-height:1}
.month-step[disabled]{opacity:.4;cursor:not-allowed;transform:none}
#allUpcoming.active{background:var(--teal);color:white;border-color:var(--teal)}

.cal-wrap{border:1px solid var(--line);border-radius:var(--radius-lg);background:white;padding:18px;margin-bottom:18px}
.cal-table{width:100%;border-collapse:collapse;table-layout:fixed}
.cal-caption{caption-side:top;text-align:left;font-weight:850;font-size:1.05rem;padding-bottom:12px;color:var(--ink)}
.cal-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:850;padding-bottom:8px}
.cal-cell{padding:3px;vertical-align:top}
.cal-day{width:100%;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:var(--radius-md);background:var(--aqua-2);color:var(--ink);font-weight:700;padding:8px 4px;transition:.15s ease}
.cal-day.is-static{background:transparent;color:var(--muted);font-weight:600}
.cal-cell.has-events .cal-day{background:var(--aqua);border-color:#bcdcd5;cursor:pointer}
.cal-cell.has-events .cal-day:hover{background:var(--teal);color:white;border-color:var(--teal)}
.cal-cell.is-today .cal-day{box-shadow:inset 0 0 0 2px var(--teal)}
.cal-cell.is-past .cal-day{opacity:.5}
.cal-cell.is-selected .cal-day{background:var(--teal);color:white;border-color:var(--teal-dark);opacity:1}
.cal-num{font-size:.95rem;line-height:1}
.cal-dots{display:flex;gap:4px;min-height:8px}
.cal-dot{width:8px;height:8px;border-radius:50%;background:var(--teal);display:inline-block}
.dot-clinic{background:var(--teal)}
.dot-volunteer{background:var(--coral)}
.dot-member{background:#7c5cc4}
.dot-community{background:var(--gold)}
.cal-legend{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0 0}
.cal-key{display:inline-flex;align-items:center;gap:6px}
.cal-summary{margin:0 0 16px;color:var(--muted)}
.link-btn{background:none;border:0;padding:0;color:var(--teal);font-weight:800;text-decoration:underline}
.event-card.is-past{opacity:.72}
.meta-item{display:flex;gap:9px}
.role-card{display:flex;flex-direction:column}
.role-card .button-row{margin-top:auto;padding-top:16px}
.role-tags{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.tag{font-size:.76rem;padding:6px 9px;border-radius:999px;background:var(--aqua-2);color:#496461;font-weight:700}

.member-shell{background:linear-gradient(140deg,#153b3a,#0b756f);color:white;border-radius:var(--radius-xl);padding:36px;display:grid;grid-template-columns:1.1fr .9fr;gap:34px;box-shadow:var(--shadow)}
.member-shell p{color:rgba(255,255,255,.76)}
.member-benefits{display:grid;gap:11px}
.member-benefit{padding:14px 15px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);border-radius:14px}
.member-signup{background:white;color:var(--ink);border-radius:22px;padding:26px}
.member-signup p{color:var(--muted)}

.team-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.team-card{text-align:center;padding:22px 16px;border-radius:20px;background:white;border:1px solid var(--line)}
.avatar{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:linear-gradient(140deg,var(--aqua),#fff1c7);font-weight:900;font-size:1.35rem;color:var(--teal-dark)}
.team-card h3{font-size:1.05rem}
.team-card p{font-size:.85rem;margin-bottom:0}

/* ---------- Team bios ----------
   Only a card with a bio gets an .avatar-button wrapper (added by
   assets/js/main.js), so the pointer, the lift and the "Read bio" caption
   appear only where there is really something to open.
   Belt and braces with the block's own hidden attribute: the bio text stays
   in the card's HTML for search engines, but shows only in the dialog. */
.team-bio{display:none}
.avatar-button{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:center}
.avatar-button .avatar{transition:transform .18s ease,box-shadow .18s ease}
.avatar-button:hover .avatar{transform:translateY(-2px) scale(1.04);box-shadow:0 12px 26px rgba(21,59,58,.2)}
.avatar-hint{display:block;margin:-8px 0 10px;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--teal)}
.avatar-button:hover .avatar-hint{color:var(--teal-dark);text-decoration:underline}
/* The button spans the card's width, so focus should ring the portrait rather
   than draw a wide box across the whole card. */
.avatar-button:focus-visible{outline:none}
.avatar-button:focus-visible .avatar{outline:3px solid var(--teal);outline-offset:3px}

.bio-card{width:min(860px,100%)}
#bioRole{margin-bottom:0;font-weight:800;color:var(--teal)}
.bio-body{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:28px;align-items:start}
.bio-portrait{border-radius:20px;overflow:hidden;background:var(--aqua-2);line-height:0}
/* Enlarging the round card headshot keeps the card's square crop. */
.bio-portrait img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
/* A picture supplied by the bio itself was chosen for this spot, so it is
   shown whole rather than cropped to a square. */
.bio-portrait.is-uncropped img{aspect-ratio:auto;object-fit:contain}
/* No headshot supplied yet — the initials stand in at the portrait's size so
   the dialog keeps its shape instead of collapsing to a single column. The
   gradient here is the starting point; main.js replaces it with the clicked
   card's own tint, which the colour layer rotates every third avatar. */
.bio-portrait.is-initials{display:grid;place-items:center;aspect-ratio:1/1;line-height:1;font-weight:900;font-size:3.4rem;color:var(--teal-dark);background:linear-gradient(140deg,var(--aqua),#fff1c7)}
.bio-credentials{font-weight:800;color:var(--muted);margin-bottom:14px}
.bio-text>*:last-child{margin-bottom:0}

@media(max-width:700px){
  .bio-body{grid-template-columns:1fr;gap:20px}
  .bio-portrait{width:min(260px,70%);margin:0 auto}
}

.donation-band{background:linear-gradient(135deg,var(--teal-dark),var(--teal));color:white;border-radius:28px;padding:38px 42px;display:flex;align-items:center;justify-content:space-between;gap:28px;box-shadow:var(--shadow)}
.donation-band h2{color:white;margin-bottom:8px}
.donation-band p{color:rgba(255,255,255,.86);margin:0;max-width:680px}
.donation-band .btn{flex:none}
footer{background:#eef8f5;border-top:1px solid var(--line);padding:54px 0 30px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:28px}
.footer-logo{width:230px}
.footer-links{display:grid;gap:9px}
.footer-links a,.footer-links button{text-decoration:none;color:#496461;background:none;border:0;text-align:left;padding:0}
.footer-links a:hover,.footer-links button:hover{color:var(--teal)}
.footer-social{display:flex;gap:10px;margin-top:18px}
.footer-bottom{border-top:1px solid var(--line);margin-top:32px;padding-top:20px;display:flex;justify-content:space-between;gap:16px;color:#667b79;font-size:.83rem;flex-wrap:wrap}
.footer-bottom a{color:#667b79;text-decoration:underline}

.modal{position:fixed;inset:0;background:rgba(6,32,31,.62);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}
.modal.open{display:flex}
.modal-card{background:white;width:min(780px,100%);max-height:92vh;overflow:auto;border-radius:26px;padding:28px;box-shadow:0 28px 90px rgba(0,0,0,.28)}
.modal-card.wide{width:min(980px,100%)}
.modal-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:22px}
.modal-close{width:42px;height:42px;border:0;border-radius:50%;background:var(--aqua-2);font-size:1.4rem}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.field{display:grid;gap:7px}
.field.full{grid-column:1/-1}
.field label{font-size:.88rem;font-weight:800}
.field input,.field select,.field textarea{width:100%;border:1px solid #cddfdb;border-radius:12px;padding:12px 13px;background:white;color:var(--ink)}
.field textarea{min-height:115px;resize:vertical}
.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.check{display:flex;gap:9px;align-items:flex-start;padding:11px;border:1px solid var(--line);border-radius:12px}
.form-note{padding:15px;border-radius:13px;background:var(--aqua-2);margin:18px 0;color:#496461}
.checkbox-row{display:flex;gap:10px;align-items:flex-start;margin:15px 0;font-size:.9rem}
.success{display:none;text-align:center;padding:20px}
.success.active{display:block}
.error-banner{display:none;background:#fdeceb;border:1px solid #f2b6b0;color:#8a2f27;padding:13px 15px;border-radius:12px;margin-bottom:16px}
.error-banner.active{display:block}
.success-icon{width:60px;height:60px;border-radius:50%;background:var(--aqua);color:var(--teal);display:grid;place-items:center;font-size:1.7rem;font-weight:900;margin:0 auto 15px}
.reference{font-weight:900;color:var(--teal)}
.honeypot{position:absolute;left:-9999px;top:-9999px}

.price-box{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}
.price-item{padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--aqua-2)}
.price-item strong{display:block;font-size:1.22rem}
.stripe-box{border:1px solid #d7d9ff;background:#f4f3ff;border-radius:16px;padding:18px;margin-top:18px}
.stripe-mark{font-weight:900;color:#635bff;font-size:1.15rem}

.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(20px);background:#153b3a;color:white;padding:12px 17px;border-radius:999px;opacity:0;pointer-events:none;transition:.25s;z-index:200}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.empty{padding:20px;text-align:center;border:1px dashed #b8cfca;border-radius:15px;color:var(--muted)}
.skeleton{padding:20px;text-align:center;color:var(--muted)}

/* Policy pages are a narrow reading column, so the hero-scale h1 (up to
   5.25rem) towered over their 1.6rem h2s. Keep the hierarchy but bring
   the title down to the size of the text it introduces. */
.legal h1{font-size:clamp(2.1rem,3.2vw,2.85rem);letter-spacing:-.03em}
.legal h2{font-size:1.6rem;margin-top:38px}
.legal p, .legal li{color:var(--muted)}
.legal .placeholder{background:#fff7db;border:1px solid #f4dda1;border-radius:12px;padding:14px 16px;color:#63541a;font-weight:700;margin:10px 0 22px}

@media(max-width:1050px){
  .hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-intro{grid-column:1/-1}
  .quick-grid,.grid-4{grid-template-columns:repeat(2,1fr)}
  .team-grid{grid-template-columns:repeat(3,1fr)}
  .event-grid,.role-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .top-donate{padding:9px 14px;min-height:40px}
  .donation-band{display:block;padding:30px 24px}
  .donation-band .btn{margin-top:18px}
  .section{padding:64px 0}
  .hero-grid,.member-shell,.grid-2,.grid-3,.footer-grid{grid-template-columns:1fr}
  .hero-intro{grid-column:auto;text-align:left}
  .hero-tagline{margin:8px 0 0;font-size:1.18rem}
  .hero{padding-top:54px}
  .quick-grid,.event-grid,.role-grid,.team-grid,.flow,.form-grid,.price-box{grid-template-columns:1fr}
  .section-head{display:block}
  .section-head>p{margin-top:13px}
  .check-grid{grid-template-columns:1fr}
  .footer-bottom{display:grid}
  .event-toolbar{display:block}
  .month-nav{margin-top:14px}
  .month-select{flex:1;min-width:0}
  .cal-wrap{padding:12px}
  .cal-day{min-height:46px;padding:6px 2px}
  .cal-num{font-size:.85rem}
  .cal-legend{gap:10px;font-size:.76rem}
}

/* ---------- Transfer album (transfers.html) ---------- */
.album-title{font-size:clamp(2.1rem,4.4vw,3.5rem);letter-spacing:-.035em}
/* .placeholder is also used inside .legal on the policy pages; this base
   rule lets it work outside that wrapper too. */
.placeholder{background:#fff7db;border:1px solid #f4dda1;border-radius:12px;padding:14px 16px;color:#63541a;font-weight:700;margin:10px 0 22px}
.placeholder code{background:rgba(0,0,0,.06);border-radius:5px;padding:1px 5px;font-size:.92em}
.album-intro{margin-bottom:24px}
.album-intro a{color:var(--teal-dark);font-weight:800;white-space:nowrap}
.album-footnote{margin-top:34px}
.transfer-filters{margin-bottom:22px}
.transfer-filter.active{background:var(--teal);color:#fff;border-color:var(--teal)}
.album-list{display:grid;gap:22px}
.album-card{background:white;border:1px solid var(--line);border-radius:var(--radius-lg);padding:26px;box-shadow:0 10px 28px rgba(21,59,58,.055)}
.album-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:14px}
.album-card h2{font-size:clamp(1.5rem,2.4vw,2rem);margin:10px 0 12px}
.album-card .meta-list{display:grid;gap:7px;color:var(--muted);font-size:.94rem}
.album-card>p{max-width:760px}

.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}
.photo-tile{position:relative;padding:0;border:1px solid var(--line);background:var(--aqua-2);border-radius:16px;overflow:hidden;display:block;width:100%;transition:.2s ease}
.photo-tile:hover{transform:translateY(-2px);border-color:#9bcac4;box-shadow:0 12px 30px rgba(21,59,58,.14)}
.photo-tile img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
/* Placeholder art is line work, not a photo — contain it so it isn't cropped.
   Placeholders render as a div (or a disabled button when a listed file
   404s), so they must not keep the hover affordance of a real photo. */
.photo-tile.is-placeholder img{object-fit:contain;background:var(--aqua-2)}
.photo-tile.is-placeholder{cursor:default}
.photo-tile.is-placeholder:hover{transform:none;border-color:var(--line);box-shadow:none}
.photo-name{position:absolute;left:0;right:0;bottom:0;padding:20px 12px 9px;text-align:left;font-weight:800;font-size:.92rem;color:#fff;background:linear-gradient(transparent,rgba(9,40,38,.82))}
.photo-tile.is-placeholder .photo-name{color:var(--ink);background:none;text-shadow:0 1px 0 #fff}

/* Lightbox — reuses .modal for the backdrop and open/close behavior. */
.lightbox-card{width:min(1000px,100%);max-height:92vh;display:flex;flex-direction:column;gap:12px}
.lightbox-bar{display:flex;justify-content:space-between;align-items:center;gap:14px}
.lightbox-bar .fine{color:rgba(255,255,255,.86);font-weight:700}
.lightbox-close{background:rgba(255,255,255,.92);color:var(--ink)}
.lightbox-stage{position:relative;display:grid;place-items:center;min-height:0}
.lightbox-stage img{display:block;max-width:100%;max-height:70vh;width:auto;border-radius:18px;background:var(--aqua-2)}
.lightbox-step{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--ink);font-size:1.7rem;line-height:1;display:grid;place-items:center}
.lightbox-step.prev{left:-4px}
.lightbox-step.next{right:-4px}
.lightbox-caption{color:#fff;margin:0;text-align:center}
.lightbox-caption strong{color:#fff}
.lightbox-partner{display:block;margin-top:5px;color:rgba(255,255,255,.75)}

@media(max-width:1050px){
  .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .album-card{padding:20px}
  .album-head{display:block}
  .lightbox-step.prev{left:2px}
  .lightbox-step.next{right:2px}
  .lightbox-stage img{max-height:58vh}
}

/* ---------- Optional site photography (assets/js/photos.js) ----------
   Inserted only once a photo has actually loaded, so none of these rules
   ever apply to an empty slot. */
.card-photo{margin:0 0 22px;border-radius:var(--radius-md);overflow:hidden;background:var(--aqua-2);line-height:0}
.card-photo img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
/* Wide slots span the full container, so they need a flatter ratio and a
   ceiling — 21:9 across 1260px would be a 540px-tall band. */
.card-photo.is-wide img{aspect-ratio:3/1;max-height:400px}
/* Inside a card the photo bleeds to the edges, so it has to cancel the
   card's own 28px padding and pick up its top corners. */
.card>.card-photo{margin:-28px -28px 24px;border-radius:var(--radius-lg) var(--radius-lg) 0 0}
/* The donate band is a flex row — the photo becomes a fixed-width panel
   beside the copy rather than a banner above it. */
.donation-band>.card-photo{flex:0 0 clamp(200px,26%,320px);margin:0;border-radius:20px}
.donation-band>.card-photo img{aspect-ratio:4/3}

.avatar.has-photo{background:none;overflow:hidden;padding:0}
.avatar-photo{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Maintenance view only: ?photos=preview marks the unfilled slots. */
.card-photo.slot-preview{position:relative;border:1px dashed #a9c7c1;background:var(--aqua-2)}
.card-photo.slot-preview img{opacity:.55}
.slot-key{position:absolute;inset:auto 10px 10px 10px;line-height:1.3;font-size:.78rem;font-weight:800;color:#3d5b58;background:rgba(255,255,255,.92);border-radius:9px;padding:7px 9px;text-align:center;display:grid;gap:3px}
.slot-key code{font-weight:700;font-size:.94em;color:var(--teal-dark);word-break:break-all}
.avatar.slot-preview{outline:2px dashed #a9c7c1;outline-offset:2px}

@media(max-width:760px){
  .donation-band>.card-photo{margin-bottom:20px}
  .donation-band>.card-photo img{aspect-ratio:16/9}
}

/* ================================================================
   Colour layer
   The site was built on one teal accent, which read as flat across
   eleven stacked sections. These rules give each band its own hue
   without touching layout: a tinted wash behind the section, and a
   matching accent on the cards inside it. Every pairing is a pale
   surface with a dark ink, so contrast goes up rather than down.
   ================================================================ */

/* Section washes — a soft colour bloom at one corner fading into white,
   so adjacent sections separate without hard edges. */
.tint-aqua{background:radial-gradient(circle at 12% 0,rgba(11,117,111,.11),transparent 44%),linear-gradient(180deg,var(--aqua-2),#fff)}
.tint-sky{background:radial-gradient(circle at 88% 4%,rgba(31,111,156,.15),transparent 46%),linear-gradient(180deg,#f1f8fd,#fff)}
.tint-mint{background:radial-gradient(circle at 8% 6%,rgba(15,112,88,.13),transparent 44%),linear-gradient(180deg,var(--mint-soft),#fff)}
.tint-plum{background:radial-gradient(circle at 92% 8%,rgba(109,75,179,.15),transparent 46%),linear-gradient(180deg,#f7f4ff,#fff)}
.tint-coral{background:radial-gradient(circle at 85% 0,rgba(231,124,101,.2),transparent 46%),linear-gradient(180deg,#fff5f1,#fff)}
.tint-gold{background:radial-gradient(circle at 15% 4%,rgba(243,191,32,.24),transparent 44%),linear-gradient(180deg,var(--cream),#fff)}

/* Eyebrow labels pick up their section's hue. */
.eyebrow.sky{color:var(--sky)}
.eyebrow.plum{color:var(--plum)}
.eyebrow.mint{color:var(--mint)}
.eyebrow.coral{color:var(--coral-ink)}
.eyebrow.gold{color:var(--gold-ink)}

/* Card accents: a coloured rule along the top edge and a matching icon
   tile. Applied per card, so a row of three cards reads as three related
   things rather than one repeated thing. */
.card[class*="accent-"]{border-top:4px solid var(--teal)}
.accent-teal.card{border-top-color:var(--teal)}
.accent-sky.card{border-top-color:var(--sky)}
.accent-plum.card{border-top-color:var(--plum)}
.accent-mint.card{border-top-color:var(--mint)}
.accent-coral.card{border-top-color:var(--coral)}
.accent-gold.card{border-top-color:var(--gold)}

.accent-sky .line-icon,.accent-sky .icon{background:var(--sky-soft);color:var(--sky)}
.accent-plum .line-icon,.accent-plum .icon{background:var(--plum-soft);color:var(--plum)}
.accent-mint .line-icon,.accent-mint .icon{background:var(--mint-soft);color:var(--mint)}
.accent-coral .line-icon,.accent-coral .icon{background:var(--coral-soft);color:var(--coral-ink)}
.accent-gold .line-icon,.accent-gold .icon{background:var(--gold-soft);color:var(--gold-ink)}

/* A card photo bleeds to the card edge, so the accent rule has to move to
   the photo's top corners or it would sit above the image as a stray line. */
.card[class*="accent-"]>.card-photo:first-child{margin-top:-32px}

/* Section keys and pills in accent colours. */
.section-key span.sky i{background:var(--sky)}
.section-key span.plum i{background:var(--plum)}
.section-key span.coral i{background:var(--coral)}
.section-key span.gold i{background:var(--gold)}
.pill.sky{background:var(--sky-soft);color:var(--sky)}
.pill.plum{background:var(--plum-soft);color:var(--plum)}
.pill.coral{background:var(--coral-soft);color:var(--coral-ink)}
.pill.gold{background:var(--gold-soft);color:var(--gold-ink)}

/* The four shortcut cards at the top of the home page get a coloured spine
   each — the first colour a visitor sees after the hero. */
.quick-card{border-left-width:5px}
.quick-grid .quick-card:nth-child(1){border-left-color:var(--teal)}
.quick-grid .quick-card:nth-child(2){border-left-color:var(--gold)}
.quick-grid .quick-card:nth-child(3){border-left-color:var(--sky)}
.quick-grid .quick-card:nth-child(4){border-left-color:var(--plum)}

/* Numbered step flows cycle through the palette in order. */
.flow-step:nth-child(2) .flow-num{background:var(--sky)}
.flow-step:nth-child(3) .flow-num{background:var(--plum)}
.flow-step:nth-child(4) .flow-num{background:var(--coral-ink)}

/* Leadership avatars alternate so the row isn't six identical circles. */
.team-grid .team-card:nth-child(3n+2) .avatar{background:linear-gradient(140deg,var(--sky-soft),#e8f7ff);color:var(--sky)}
.team-grid .team-card:nth-child(3n) .avatar{background:linear-gradient(140deg,var(--coral-soft),#fff1c7);color:var(--coral-ink)}

/* Footer gets a thin spectrum strip instead of a plain grey rule. The strip
   is the element's own top padding, so it spans edge to edge. */
footer{border-top:0;padding-top:0;background:linear-gradient(180deg,#eaf6f2,#f6fbf9)}
footer::before{content:"";display:block;height:5px;margin-bottom:54px;background:linear-gradient(90deg,var(--teal),var(--sky),var(--plum),var(--coral),var(--gold))}

/* ================================================================
   Transfer program page (transfers.html)
   ================================================================ */
.program-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#075752,#0b756f 42%,#1f6f9c 100%);color:#fff;border-radius:var(--radius-xl);padding:44px;box-shadow:var(--shadow);margin-bottom:34px}
.program-hero::after{content:"";position:absolute;right:-90px;top:-90px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(243,191,32,.34),transparent 68%)}
.program-hero>*{position:relative;z-index:1}
.program-hero .eyebrow{color:#ffe08a}
.program-hero h1{color:#fff;max-width:16em}
.program-hero p{color:rgba(255,255,255,.86);max-width:60ch}
.program-hero .btn.secondary{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.32);color:#fff}
.program-hero .btn.secondary:hover{background:rgba(255,255,255,.24)}
.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:28px 0 26px}
.stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:18px 20px}
.stat strong{display:block;font-size:2.1rem;line-height:1.05;letter-spacing:-.03em}
.stat span{color:rgba(255,255,255,.78);font-size:.9rem;font-weight:700}

/* Partner spotlight — the one block on the page that should stop a reader. */
.spotlight{display:grid;grid-template-columns:1.15fr .85fr;gap:30px;align-items:start;background:linear-gradient(135deg,#fff6f3,var(--cream));border:1px solid #f4d6cb;border-radius:var(--radius-xl);padding:34px;box-shadow:0 14px 40px rgba(179,73,47,.09)}
.spotlight h2{margin-bottom:12px}
.spotlight-badge{display:inline-flex;align-items:center;gap:8px;background:var(--coral-soft);color:var(--coral-ink);border-radius:999px;padding:8px 14px;font-weight:850;font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:16px}
.spotlight-facts{display:grid;gap:12px}
.spotlight-fact{background:#fff;border:1px solid #f0ded6;border-radius:16px;padding:15px 17px}
.spotlight-fact strong{display:block;font-size:1.05rem;margin-bottom:3px}
.spotlight-fact span{color:var(--muted);font-size:.9rem}
.spotlight .card-photo{margin:0 0 18px}

.program-why{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px}
.why-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;border-top:4px solid var(--teal)}
.why-card:nth-child(2){border-top-color:var(--coral)}
.why-card:nth-child(3){border-top-color:var(--gold)}
.why-card strong{display:block;font-size:1.08rem;margin-bottom:8px}
.why-card p{margin:0}

.faq{display:grid;gap:12px;margin-top:22px}
.faq details{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 20px}
.faq details[open]{border-color:#bcdcd5;box-shadow:0 10px 28px rgba(21,59,58,.06)}
.faq summary{font-weight:850;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--teal);font-size:1.3rem;font-weight:900;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq p{margin:13px 0 0}

/* ================================================================
   Staff photo manager (photo-manager.html)
   ================================================================ */
.pm-panel{margin:26px 0}
.pm-signin{max-width:480px}
.pm-tabs{display:flex;gap:9px;margin:28px 0 20px;flex-wrap:wrap}
.pm-tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:11px 19px;font-weight:800;min-height:44px}
.pm-tab.active{background:var(--teal);color:#fff;border-color:var(--teal)}
.pm-help{max-width:780px}
.pm-subhead{font-size:1.15rem;margin:28px 0 14px}
.pm-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.pm-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:11px;box-shadow:0 8px 22px rgba(21,59,58,.05)}
.pm-card strong{font-size:1rem}
.pm-card .fine{margin:0}
.pm-card .field{gap:5px}
.pm-card .field label{font-size:.8rem}
.pm-card .field input{padding:9px 11px}
.pm-card input[type="file"]{font-size:.84rem;padding:8px}
.pm-card .button-row{margin-top:auto;gap:9px}
.pm-thumb{border-radius:14px;overflow:hidden;background:var(--aqua-2);aspect-ratio:16/10;display:grid;place-items:center;text-align:center}
.pm-thumb img{width:100%;height:100%;object-fit:cover}
.pm-thumb.is-empty{border:1px dashed #a9c7c1}
.pm-thumb span{color:var(--muted);font-size:.84rem;font-weight:700;padding:14px}
.pm-avatar .pm-thumb{aspect-ratio:1/1;border-radius:50%;width:150px;margin:0 auto}
.pm-wide .pm-thumb{aspect-ratio:5/2}
.pm-status{min-height:1.1em;color:var(--teal-dark);font-weight:700}

@media(max-width:1050px){
  .spotlight,.program-why{grid-template-columns:1fr}
  .stat-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .program-hero{padding:28px 22px}
  .stat-row{grid-template-columns:1fr}
  .spotlight{padding:24px 20px}
  footer::before{margin-bottom:40px}
}

/* Header rail breakpoints. The shortcut links and the social icons are the
   two things that drop out as the rail narrows — never the Menu button,
   which is what guarantees the full navigation stays one press away on
   every page at every width. */
@media(max-width:1300px){
  .nav{display:none}
}
@media(max-width:760px){
  .nav-wrap{height:76px;gap:12px}
  .brand-logo{width:192px}
  .social-top{display:none}
}
@media(max-width:560px){
  .nav-wrap{gap:10px}
  .brand-logo{width:158px}
  /* Icon only, but the label stays in the accessibility tree as the
     button's name. */
  .menu-toggle{gap:0;padding:10px 13px}
  .menu-toggle-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .top-donate{padding:9px 15px}
  .site-menu-head,.site-menu-foot{padding-left:18px;padding-right:18px}
}

/* ================================================================
   Caretaker education (caretakers.html)
   The certification steps, the hosted Environmental Steward class
   and the best-practices bot.
   ================================================================ */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Certification steps ---------- */
.step-list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.step-card{display:grid;grid-template-columns:56px 1fr;gap:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:26px 28px;box-shadow:0 10px 28px rgba(21,59,58,.055)}
.step-card h3{margin-bottom:10px}
.step-card p:last-of-type{margin-bottom:0}
.step-num{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(140deg,var(--teal),#0e8f88);color:#fff;font-weight:900;font-size:1.5rem}

/* ---------- Class progress ---------- */
.class-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:var(--aqua-2);border:1px solid #cce5e0;border-radius:18px;padding:18px 22px}
.class-bar strong{font-size:1.05rem}
.class-bar-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.progress-track{width:220px;height:10px;border-radius:999px;background:#fff;border:1px solid #bcdcd5;overflow:hidden}
.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--teal),var(--gold));transition:width .25s ease}

/* ---------- Lessons (reuse .faq accordion look) ---------- */
.lesson-list{margin-top:20px}
.lesson summary{align-items:flex-start}
.lesson-tag{display:inline-block;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:var(--teal);margin-right:10px}
.lesson ul{margin:13px 0 0;padding-left:20px;color:var(--muted)}
.lesson li{margin-bottom:9px}
.lesson .button-row{margin-top:16px}
/* Completed lessons get a quiet green edge — enough to see progress at a
   glance while scrolling, not enough to shout. */
.lesson.is-done{border-color:#9fd4b0;background:#f7fdf9}
.lesson-check{display:flex;align-items:center;gap:10px;margin-top:18px;padding:12px 14px;border:1px dashed #b8cfca;border-radius:12px;font-weight:800;font-size:.92rem;cursor:pointer}
.lesson-check input{width:18px;height:18px;accent-color:var(--teal)}
.lesson.is-done .lesson-check{border-style:solid;border-color:#9fd4b0;background:#fff}

/* ---------- Quiz ---------- */
.quiz-shell{margin-top:34px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-xl);padding:32px;box-shadow:0 14px 40px rgba(21,59,58,.07)}
.quiz-q{padding:22px 0;border-top:1px solid var(--line)}
.quiz-q:first-child{border-top:0;padding-top:6px}
.quiz-q legend,.quiz-q .quiz-prompt{font-weight:850;margin-bottom:14px;display:block}
.quiz-q .quiz-num{color:var(--teal);font-weight:900;margin-right:8px}
.quiz-options{display:grid;gap:9px;border:0;padding:0;margin:0}
.quiz-option{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;border:1px solid var(--line);border-radius:13px;cursor:pointer;transition:.15s ease}
.quiz-option:hover{border-color:#9bcac4;background:var(--aqua-2)}
.quiz-option input{margin-top:3px;accent-color:var(--teal)}
.quiz-option.is-picked{border-color:var(--teal);background:var(--aqua-2)}
.quiz-identity{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}
.quiz-identity h4{font-size:1.05rem;font-weight:900;margin:0 0 6px}
.quiz-identity .form-grid{margin-top:16px}
#quizActions{margin-top:24px}
.quiz-result{margin-top:8px}
.quiz-score{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:22px;border-radius:18px;margin-bottom:22px}
.quiz-score.is-pass{background:#eef9f1;border:1px solid #9fd4b0}
.quiz-score.is-fail{background:#fff7db;border:1px solid #f4dda1}
.quiz-score strong{font-size:2rem;line-height:1;letter-spacing:-.03em}
.quiz-score p{margin:6px 0 0}
.quiz-code{font-weight:900;color:var(--teal-dark);background:var(--aqua);border-radius:10px;padding:4px 10px;letter-spacing:.04em;display:inline-block}
.quiz-feedback{display:grid;gap:11px;margin-bottom:22px}
.quiz-feedback-item{padding:15px 17px;border-radius:14px;border:1px solid var(--line);background:#fcfefe}
.quiz-feedback-item.is-wrong{border-color:#f2b6b0;background:#fdeceb}
.quiz-feedback-item strong{display:block;margin-bottom:5px}
.quiz-feedback-item p{margin:0;font-size:.92rem}

/* ---------- Best practices bot ---------- */
.bot-shell{background:#fff;border:1px solid var(--line);border-radius:var(--radius-xl);padding:24px;box-shadow:0 14px 40px rgba(21,59,58,.07)}
.bot-log{display:grid;gap:14px;max-height:460px;overflow-y:auto;padding:6px 4px 10px;scroll-behavior:smooth}
.bot-msg{max-width:min(84%,62ch);padding:14px 17px;border-radius:18px}
.bot-msg p{margin:0 0 10px}
.bot-msg p:last-child{margin:0}
.bot-msg ul{margin:0;padding-left:18px}
.from-bot{background:var(--aqua-2);border:1px solid #cce5e0;border-bottom-left-radius:6px}
.from-bot p{color:var(--ink)}
.from-you{justify-self:end;background:var(--teal);border-bottom-right-radius:6px}
.from-you p{color:#fff;font-weight:650}
.bot-msg.is-error{background:#fdeceb;border:1px solid #f2b6b0}
.bot-msg.is-error p{color:#8a2f27;font-weight:700}
.bot-typing{display:inline-flex;gap:5px;align-items:center}
.bot-typing i{width:7px;height:7px;border-radius:50%;background:var(--teal);opacity:.35;animation:botblink 1.1s infinite}
.bot-typing i:nth-child(2){animation-delay:.18s}
.bot-typing i:nth-child(3){animation-delay:.36s}
@keyframes botblink{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media(prefers-reduced-motion:reduce){.bot-typing i{animation:none}}
.bot-suggestions{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0 14px}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;font-size:.86rem;font-weight:750;color:#31514f;min-height:40px}
.chip:hover{border-color:#9bcac4;background:var(--aqua-2)}
.bot-form{display:flex;gap:10px;align-items:flex-end}
.bot-form textarea{flex:1;min-height:52px;max-height:160px;resize:none;border:1px solid #cddfdb;border-radius:16px;padding:14px 16px;background:#fff;color:var(--ink)}
.bot-form .btn{flex:none}
.bot-note{margin:14px 0 0}
.bot-note a{color:var(--teal-dark);font-weight:800}

/* ---------- Certificate verification ---------- */
.verify-form{display:flex;gap:9px;width:100%}
.verify-form input{flex:1;min-width:0;border:1px solid #cddfdb;border-radius:12px;padding:11px 13px;background:#fff;color:var(--ink);text-transform:uppercase}
#verifyResult{margin:12px 0 0;min-height:1.1em;font-weight:700}

@media(max-width:760px){
  .quiz-shell,.bot-shell{padding:22px 18px}
  .step-card{grid-template-columns:1fr;gap:14px;padding:22px 20px}
  .step-num{width:46px;height:46px;font-size:1.25rem}
  .class-bar{display:block}
  .class-bar-actions{margin-top:16px}
  .progress-track{width:100%}
  .bot-msg{max-width:100%}
  .bot-form{display:block}
  .bot-form .btn{width:100%;margin-top:10px}
}
