/* ==========================================================================
   Latter UP Student Portal, Styles
   Theme tokens live at the top of this file. Change colors/fonts here.
   ========================================================================== */

:root {
  /* --- Brand palette (from the provided hex codes) --- */
  --navy: #1B2653;      /* headers, nav, primary text on light */
  --slate: #5F7397;     /* secondary accents, links, hover */
  --cream: #FCFBFA;     /* page background */
  --stone: #838081;     /* muted text, borders */
  --gold: #FDD181;      /* CTA accent, highlights */

  /* --- Derived tones --- */
  --navy-soft: #26315f;
  --cream-dim: #f4f1ec;
  --gold-deep: #f0b95a;
  --stone-line: rgba(131, 128, 129, 0.28);

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(27, 38, 83, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--stone-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.75;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-deep);
  transition: width 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(95,115,151,0.16), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--stone-line);
}
.hero-inner {
  padding: 84px 28px 68px;
  max-width: 760px;
}
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  font-weight: 600;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.14;
  margin: 0 0 20px;
  color: var(--navy);
}
.hero-lede {
  font-size: 1.08rem;
  color: var(--stone);
  max-width: 58ch;
  margin: 0;
}

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px;
  color: var(--navy);
}
.section-sub {
  color: var(--stone);
  margin: 0 0 36px;
  max-width: 60ch;
  font-size: 1rem;
}

/* ---------- Portal link cards (signature element) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portal-card .corner-fold {
  position: absolute;
  top: 0; right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 34px 34px 0;
  border-color: transparent var(--gold) transparent transparent;
  transition: border-width 0.22s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--slate);
}
.portal-card:hover .corner-fold {
  border-width: 0 44px 44px 0;
}

.card-icon {
  color: var(--navy);
  background: var(--cream-dim);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
}
.card-desc {
  color: var(--stone);
  font-size: 0.95rem;
}
.card-cta {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
}
.portal-card:hover .card-cta { color: var(--navy); }

/* ---------- Calendar ---------- */
.calendar { background: var(--cream); }

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 32px 24px;
  align-items: start;
}

.calendar-col .section-title,
.resources-col .section-title {
  margin-bottom: 8px;
}
.calendar-col .section-sub,
.resources-col .section-sub {
  margin-bottom: 20px;
}

.calendar-embed-wrap {
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 460px;
}
.calendar-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: none;
  display: block;
}

.home-schedule-embed .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  border-top: 2px solid var(--navy);
  padding-top: clamp(24px, 4vw, 48px);
}
.schedule-embed-heading .section-title { margin: 0 0 8px; }
.schedule-embed-heading .section-sub { max-width: 30ch; }
.schedule-embed-frame {
  height: min(78vh, 760px);
  min-height: 480px;
  border: 1px solid var(--stone-line);
  background: var(--surface);
}
.schedule-embed-frame iframe,
.schedule-page-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.schedule-page main { min-height: calc(100vh - 74px); }
.schedule-page-frame { min-height: calc(100vh - 74px); }
@media (max-width: 700px) {
  .home-schedule-embed .wrap { grid-template-columns: 1fr; }
  .schedule-embed-frame { height: 75vh; min-height: 420px; }
}

@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-embed-wrap,
  .calendar-embed-wrap iframe {
    min-height: 380px;
  }
}

/* ---------- Resources & Media (list-style card) ---------- */
.resource-list {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.resource-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stone-line);
  transition: background 0.18s ease;
}
.resource-row:last-child {
  border-bottom: none;
}
.resource-row:hover,
.resource-row:focus-visible {
  background: var(--cream-dim);
}

.resource-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-icon--docs     { background: #E8F0FE; color: #1A73E8; }
.resource-icon--slides   { background: #FEF3E4; color: #E9A50D; }
.resource-icon--sheets   { background: #E6F4EA; color: #1E8E3E; }
.resource-icon--classroom{ background: #E6F4EA; color: #188038; }
.resource-icon--video    { background: #FDE9E7; color: #EA4335; }

.resource-label {
  flex: 1;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}

.resource-chevron {
  flex-shrink: 0;
  color: var(--stone);
  transition: transform 0.18s ease, color 0.18s ease;
}
.resource-row:hover .resource-chevron {
  transform: translateX(2px);
  color: var(--slate);
}

/* ---------- Section head row (title + "View all" link) ---------- */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.section-head-row .section-title,
.section-head-row .section-sub {
  margin-bottom: 0;
}
.section-head-row .section-sub {
  margin-top: 8px;
}

.view-all-link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.view-all-link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ---------- Sub-page hero (Announcements / Videos pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at top right, rgba(95,115,151,0.16), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--stone-line);
  padding: 48px 0 44px;
}
.back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 18px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--navy); }

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 14px;
  color: var(--navy);
}

.announcements-page,
.videos-page {
  padding: 56px 0 80px;
}

/* ---------- Videos ---------- */
.videos { background: var(--cream-dim); border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.video-frame-wrap iframe,
.video-frame-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

.video-card-body {
  padding: 18px 20px 22px;
}

.video-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 600;
}

.video-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 6px 0 8px;
}

.video-desc {
  color: var(--stone);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Announcements ---------- */
.announcements { background: var(--cream); }

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.announcement-item {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: 10px;
  overflow: hidden;
}

.announcement-item summary.announcement-question {
  list-style: none;
}
.announcement-item summary.announcement-question::-webkit-details-marker {
  display: none;
}

.announcement-question {
  width: 100%;
  cursor: pointer;
  padding: 18px 50px 18px 20px;
  position: relative;
}

.announcement-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.announcement-title-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
}

.announcement-date {
  font-size: 0.82rem;
  color: var(--stone);
  font-weight: 500;
}

.announcement-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--slate);
  transition: transform 0.25s ease, color 0.25s ease;
}

.announcement-item[open] .announcement-question::after {
  transform: rotate(45deg);
  color: var(--gold-deep);
}

.announcement-answer {
  color: var(--stone);
  font-size: 0.97rem;
  padding: 0 20px 22px;
}

.announcement-answer p {
  margin: 0 0 14px;
}
.announcement-answer p:last-child {
  margin-bottom: 0;
}

.pdf-embed {
  margin-top: 6px;
  border: 1px solid var(--stone-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dim);
}

.pdf-frame {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  max-height: 800px;
  display: block;
  border: none;
}

.pdf-fallback {
  margin: 0 !important;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-top: 1px solid var(--stone-line);
  background: var(--surface);
}
.pdf-fallback a {
  color: var(--slate);
  font-weight: 600;
}
.pdf-fallback a:hover {
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream-dim); border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: 10px;
  overflow: hidden;
}

/* Native <details>/<summary>, remove default browser arrow/triangle */
.faq-item summary.faq-question {
  list-style: none;
}
.faq-item summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question {
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  padding: 18px 50px 18px 20px;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--slate);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--gold-deep);
}

.faq-answer {
  color: var(--stone);
  font-size: 0.97rem;
  padding: 0 20px 20px;
}

.faq-answer > p:first-child {
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 52px 0 20px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(252,251,250,0.14);
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.footer-brand p {
  color: rgba(252,251,250,0.7);
  max-width: 34ch;
  margin-top: 8px;
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 8px;
}
.footer-links a {
  color: rgba(252,251,250,0.85);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

.footer-note {
  text-align: center;
  color: rgba(252,251,250,0.5);
  font-size: 0.82rem;
  margin: 20px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .brand-logo { height: 34px; }
  .hero-inner { padding: 56px 24px 48px; }
  section { padding: 48px 0; }
}

/* ---- Sign-in + admin (added for Supabase) ---- */
.auth-bar{display:flex;gap:.5rem;align-items:center;margin-left:1rem}
.auth-btn{font:600 .9rem Inter,sans-serif;padding:.5rem .9rem;border-radius:6px;border:1px solid var(--navy);background:var(--navy);color:var(--cream);cursor:pointer;text-decoration:none}
.auth-btn:hover{opacity:.88}
.auth-btn.alt{background:transparent;color:var(--navy)}
.gate{padding:1.5rem;border:1px dashed var(--stone);border-radius:10px;text-align:center}
.auth-error{background:#fdecec;color:#8a1f1f;padding:.8rem 1rem;margin:0;text-align:center}
.adm{padding:2rem 0}.adm nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}
.adm nav .on{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.adm nav [draggable="true"]{cursor:grab}
.adm nav [draggable="true"]:active{cursor:grabbing}
.adm nav .dragging{opacity:.45}
.admin-tab-loading{display:flex;align-items:center;gap:.7rem;min-height:8rem;margin:0;padding:1.25rem;color:var(--stone);font-weight:600}
.admin-tab-loading::before{content:"";width:1.1rem;height:1.1rem;border:2px solid var(--stone-line);border-top-color:var(--gold-deep);border-radius:50%;animation:admin-tab-spin .8s linear infinite}
@keyframes admin-tab-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.admin-tab-loading::before{animation:none;border-top-color:var(--stone)}}
.adm .row{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.7rem 0;border-bottom:1px solid var(--stone)}
.adm .student-admin-row{justify-content:flex-start;flex-wrap:wrap}
.student-admin-row>span:first-child{flex:1;min-width:240px}
.student-leader-toggle{flex:none;white-space:nowrap}
.student-last-signin{display:flex;flex-direction:column;align-items:flex-end;gap:.35rem;margin-left:auto}
.adm form{display:grid;gap:.8rem;margin:1.5rem 0;padding:1.2rem;border:1px solid var(--stone);border-radius:10px;background:var(--surface)}
.adm label{display:grid;gap:.25rem;font-weight:600;font-size:.9rem}
.adm input,.adm textarea{font:inherit;padding:.55rem;border:1px solid var(--stone);border-radius:6px}
.adm small{color:var(--stone);font-weight:400}
.thumbs,.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;margin:1rem 0}
.thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.thumbs figcaption{font-size:.85rem;display:grid;gap:.3rem;margin-top:.3rem}
.theme-card{display:grid;gap:.3rem;text-align:left;padding:1rem;border:1px solid var(--stone);border-radius:10px;background:var(--surface);cursor:pointer;font:inherit}
.up{display:grid;gap:.4rem;font-weight:600;margin:1rem 0}
.viewer{margin:2rem 0;padding:1rem;border:1px solid var(--stone);border-radius:12px;background:var(--surface)}.viewer:fullscreen{background:#111;color:#fff;display:flex;flex-direction:column;justify-content:center}
.vh{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:.5rem 0}
.car{display:flex;align-items:center;gap:.5rem}.car figure{flex:1;text-align:center;margin:0}.car img{max-width:100%;max-height:70vh;border-radius:8px}
.car>button{font-size:2rem;background:none;border:0;cursor:pointer;color:inherit}.viewer video{width:100%;max-height:70vh}

/* ===== Refresh: palette, fonts, light/dark, shared banner ===== */
:root{--navy:#17264F;--slate:#263B70;--cream:#F6F8FF;--cream-dim:#F6F8FF;--stone:#566082;--gold:#FFC83D;--gold-deep:#FFB300;--stone-line:rgba(17,26,68,.13);--surface:#fff;--tint:#E4EAF5;--font-display:'Bricolage Grotesque',system-ui,sans-serif;--font-body:'Figtree',system-ui,sans-serif;color-scheme:light}
[data-theme=dark]{--navy:#EEF2FF;--slate:#9BAFD5;--cream:#0D1126;--cream-dim:#0D1126;--stone:#A5AECB;--stone-line:rgba(165,174,203,.22);--surface:#171C3A;--tint:#232B52;--shadow:0 10px 30px -12px rgba(0,0,0,.6);color-scheme:dark}
body{background:var(--cream)}
.hero{background:var(--cream);border-bottom:0}
.videos,.faq,.calendar,.announcements,.links{background:transparent;border:0}
.card-icon{background:var(--tint);color:var(--slate)}
.auth-btn{font-family:var(--font-body)}
input,textarea,select{background:var(--surface);color:var(--navy)}
.chk{display:flex!important;grid-template-columns:none;align-items:center;gap:.5rem;font-weight:500!important}
.header-inner{padding:8px 20px;position:relative}
.brand svg{width:52px;height:52px}
.hdr-right{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--stone-line);background:var(--surface);color:var(--navy);cursor:pointer;font-size:1.05rem;display:grid;place-items:center;padding:0}
.icon-btn.avatar{background:var(--slate);color:#fff;border:0;font:700 1rem var(--font-body)}
.menu-wrap{position:relative}
.menu{position:absolute;right:0;top:48px;min-width:230px;background:var(--surface);border:1px solid var(--stone-line);border-radius:12px;box-shadow:var(--shadow);padding:.5rem;display:none;z-index:60}
.menu.open{display:block}
.menu a,.menu button{display:block;width:100%;text-align:left;padding:.6rem .75rem;border:0;background:none;color:var(--navy);font:600 .95rem var(--font-body);border-radius:8px;cursor:pointer}
.menu a:hover,.menu button:hover{background:var(--tint)}
.menu .who{padding:.5rem .75rem;font-size:.85rem;color:var(--stone);border-bottom:1px solid var(--stone-line);margin-bottom:.3rem;word-break:break-all}
.burger{display:none}
@media(max-width:820px){.burger{display:grid}.site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--surface);flex-direction:column;gap:0;padding:.4rem 20px 1rem;border-bottom:1px solid var(--stone-line)}.site-nav.open{display:flex}.site-nav a{padding:.85rem 0}.brand svg{width:40px;height:40px}.header-inner{padding:6px 16px}}


/* Requested layout and theme refinements */
[data-theme="dark"] .site-footer { background: var(--surface); color: var(--navy); }
[data-theme="dark"] .site-footer .footer-brand p,
[data-theme="dark"] .site-footer .footer-links a,
[data-theme="dark"] .site-footer .footer-note { color: var(--stone); }
[data-theme="dark"] .site-footer .footer-links h3 { color: var(--gold); }
[data-theme="dark"] .site-footer .footer-inner { border-color: var(--stone-line); }
.announcements-list { max-width: none; }
.theme-menu-toggle { border-top: 1px solid var(--stone-line) !important; margin-top: .25rem; color: var(--navy) !important; }
.theme-standalone { margin-left: .25rem; }
@media (min-width: 900px) {
  .announcements-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .announcements-list .gate { grid-column: 1 / -1; }
}

/* Refined responsive Calendar tile and FAQ layout */
.calendar-combo { cursor: pointer; }
.calendar-combo:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.calendar-secondary { align-self: flex-start; position: relative; z-index: 2; margin-top: 8px; padding: 7px 10px; border: 1px solid var(--stone-line); border-radius: 8px; color: var(--navy); font-size: .88rem; font-weight: 700; background: var(--tint); }
.calendar-secondary:hover { background: var(--surface); border-color: var(--slate); }
.faq-list { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px) { .calendar-combo { padding: 24px 20px; } .calendar-secondary { max-width: 100%; } }

/* Admin photo theme schedule grouped with theme management */
.admin-schedule { margin: 1.25rem 0 1.5rem; padding: 1rem; border: 1px solid var(--stone-line); border-radius: 14px; background: var(--surface); }
.admin-schedule h3 { margin-top: 0; }
.photo-email-settings>summary { color: var(--navy); cursor: pointer; }
.photo-email-settings>summary h3 { display: inline-block; margin: 0; }
.photo-email-settings[open]>summary { margin-bottom: .75rem; }
.role-email-initial>summary { color: var(--navy); cursor: pointer; }
.role-email-initial>summary h4 { display: inline-block; margin: .25rem 0; }
.role-email-initial[open]>summary { margin-bottom: .5rem; }


/* Admin-managed announcement banner and portal tile layout */
.portal-announcement-banner { background: var(--navy); color: var(--cream); border-bottom: 3px solid var(--gold); }
.portal-announcement-inner { display:flex; align-items:center; justify-content:center; gap:18px; padding:13px 24px; text-align:center; font-weight:600; }
.portal-announcement-inner a { color:var(--cream); text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.portal-banner-dismiss { margin-left:auto; padding:.35rem .65rem; border:1px solid color-mix(in srgb,var(--cream) 55%,transparent); border-radius:999px; background:transparent; color:var(--cream); font:inherit; font-size:.78rem; white-space:nowrap; cursor:pointer; }
.portal-banner-dismiss:hover { background:color-mix(in srgb,var(--cream) 14%,transparent); }
.portal-announcement-banner[hidden] { display:none; }
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap:18px; }
.portal-card { min-width:0; }
.portal-card .calendar-secondary { position:relative; z-index:2; margin-top:8px; font-size:.9rem; font-weight:700; color:var(--slate); text-decoration:underline; text-underline-offset:3px; }
.portal-admin-section { margin:24px 0; padding:22px; border:1px solid var(--stone-line); border-radius:16px; background:var(--surface); }
.portal-admin-section h3 { margin-top:0; }
.portal-admin-section form { display:grid; gap:14px; }
.portal-admin-section label { display:grid; gap:6px; }
.portal-admin-section input:not([type=checkbox]), .portal-admin-section select { width:100%; padding:10px 12px; border:1px solid var(--stone-line); border-radius:9px; background:var(--cream); color:inherit; font:inherit; }
.portal-admin-section .inline-check { display:flex; align-items:center; gap:10px; }
.portal-tile-edit { border:1px solid var(--stone-line); border-radius:12px; padding:16px; margin:14px 0; }
.portal-tile-edit.is-dragging { opacity:.5; }
.portal-tile-edit.drop-target { outline:2px solid var(--gold); outline-offset:2px; }
.portal-tile-edit-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.portal-tile-drag-handle { margin-right:auto; color:var(--stone); font-size:.82rem; cursor:grab; }
.portal-tiles-admin>summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:var(--navy); cursor:pointer; }
.portal-tiles-admin>summary h3 { margin:0; }
.portal-tiles-admin>summary span { color:var(--stone); font-size:.85rem; }
.portal-tile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.portal-tile-fields .wide { grid-column:1/-1; }
.portal-admin-actions { margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
.portal-cards-loading { color:var(--stone); }
@media (max-width:1100px) { .card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:800px) { .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) { .card-grid { grid-template-columns:minmax(0,1fr); } .portal-announcement-inner { flex-direction:column; gap:6px; padding:12px 18px; } .portal-banner-dismiss { margin:2px 0 0; } .portal-tile-fields { grid-template-columns:minmax(0,1fr); } .portal-tile-fields .wide { grid-column:auto; } }

/* Photo Challenge refresh: editorial card layout in the site's navy, cream and gold palette */
.photo-page { max-width: 1280px; padding: 2.4rem 0 4rem; }
.photo-hero { text-align:center; max-width:760px; margin:0 auto 2.2rem; padding:1.8rem 1.5rem 2.2rem; }
.photo-hero-icon { width:68px; height:68px; margin:0 auto 1rem; display:grid; place-items:center; border-radius:22px; background:var(--tint); font-size:2rem; box-shadow:0 8px 24px rgba(23,38,79,.08); }
.photo-hero .eyebrow,.photo-round-copy .photo-round-badge { color:var(--slate); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; font-weight:800; }
.photo-page .page-title { font-family:var(--font-body); font-weight:700; letter-spacing:-.035em; font-size:clamp(2.25rem,4vw,3.35rem); margin:.3rem 0 .8rem; }
.photo-hero-lede { color:var(--stone); font-size:1.08rem; line-height:1.7; max-width:650px; margin:0 auto; }
.photo-current { margin:0 auto 4.5rem; }
.photo-round-card { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); overflow:hidden; border:1px solid var(--stone-line); border-radius:24px; background:var(--surface); box-shadow:0 18px 45px rgba(23,38,79,.07); }
.photo-round-copy { padding:clamp(1.5rem,4vw,3.2rem); }
.photo-round-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:99px; background:var(--tint); letter-spacing:.04em!important; }
.photo-live-dot { width:8px; height:8px; border-radius:50%; background:#29a36a; }
.photo-round-copy h2 { font:700 clamp(1.8rem,3vw,2.5rem)/1.12 var(--font-body); letter-spacing:-.035em; margin:1.2rem 0 .7rem; color:var(--navy); }
.photo-round-description { color:var(--stone); font-size:1.05rem; line-height:1.7; }
.photo-deadline { display:flex; gap:12px; align-items:center; margin:1.5rem 0; padding:14px 16px; border-left:3px solid var(--gold); border-radius:0 10px 10px 0; background:var(--cream); color:var(--stone); }
.photo-deadline strong { color:var(--navy); }
.photo-privacy-note { color:var(--stone); font-size:.9rem; line-height:1.6; }
.photo-upload-panel { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:clamp(1.5rem,4vw,3rem); background:linear-gradient(145deg,var(--tint),var(--cream)); border-left:1px solid var(--stone-line); }
.photo-upload-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:var(--surface); border:1px solid var(--stone-line); color:var(--slate); font-size:1.8rem; font-weight:700; }
.photo-upload-panel h3 { margin:1rem 0 .3rem; font:700 1.3rem var(--font-body); color:var(--navy); }
.photo-upload-panel p { color:var(--stone); line-height:1.55; }
.photo-upload-button { display:inline-flex!important; align-items:center; gap:1.5rem; padding:13px 18px; margin:.8rem 0 .5rem; border-radius:10px; background:var(--navy); color:#fff; cursor:pointer; font-size:.95rem!important; font-weight:700!important; }
.photo-upload-button:hover { transform:translateY(-1px); box-shadow:0 7px 18px rgba(23,38,79,.15); }
.photo-file-input { position:absolute; width:1px!important; height:1px; opacity:0; overflow:hidden; }
.photo-upload-panel small { color:var(--stone); }
.photo-upload-message { font-size:.9rem; overflow-wrap:anywhere; }
.photo-submissions { margin:2rem 0 0; }
.photo-section-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.photo-section-heading h2,.photo-section-heading h3 { margin:0 0 .3rem; font-family:var(--font-body); color:var(--navy); }
.photo-section-heading p { margin:0; color:var(--stone); }
.photo-count { background:var(--tint); color:var(--slate); padding:7px 12px; border-radius:99px; font-weight:700; white-space:nowrap; }
.photo-page .thumbs figure { margin:0; padding:10px; border:1px solid var(--stone-line); border-radius:14px; background:var(--surface); }
.photo-page .thumbs img { border-radius:9px; }
.photo-page .thumbs figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--stone); }
.photo-past-section { margin-top:3rem; }
.photo-past-section .photo-section-heading { margin-bottom:1.3rem; }
.photo-past-section .photo-section-heading h2 { font:700 1.9rem var(--font-body); }
.photo-theme-card { position:relative; min-height:190px; padding:1.3rem; border-radius:16px; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.photo-theme-card:hover { transform:translateY(-3px); border-color:var(--gold-deep); box-shadow:0 12px 28px rgba(23,38,79,.08); }
.photo-theme-art { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--tint); color:var(--slate); font-size:1.5rem; margin-bottom:.7rem; }
.photo-theme-card strong { font:700 1.1rem var(--font-body); color:var(--navy); }
.photo-theme-card small { color:var(--stone); }
.photo-theme-link { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:1rem; color:var(--slate); font-weight:700; }
.photo-empty-state,.photo-empty-past { padding:2rem; border:1px dashed var(--stone-line); border-radius:18px; background:var(--surface); color:var(--stone); }
.photo-empty-state { text-align:center; padding:3rem 1.5rem; }
.photo-empty-state h2 { color:var(--navy); font-family:var(--font-body); }
.photo-empty-state p,.photo-empty-past p { line-height:1.6; }
.photo-empty-past { display:flex; gap:1rem; align-items:center; }
.photo-empty-past>span { font-size:2rem; color:var(--slate); }
.home-section-edit { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:14px 0; border-bottom:1px solid var(--stone-line); }
.home-section-edit .inline-check { display:flex; align-items:center; gap:10px; }
.home-section-edit input[type=checkbox] { width:18px; height:18px; }
.home-section-order { display:flex; align-items:center; gap:8px; color:var(--stone); font-size:.9rem; }
.home-section-order select { min-width:78px; }
.home-photo-callout { padding:2rem 0; background:var(--tint); border-top:1px solid var(--stone-line); border-bottom:1px solid var(--stone-line); }
.home-photo-callout-inner { display:flex; align-items:center; gap:1.25rem; }
.home-photo-mark { display:grid; place-items:center; width:58px; height:58px; border-radius:17px; background:var(--surface); font-size:1.7rem; flex-shrink:0; }
.home-photo-callout .section-title { margin:.15rem 0 .3rem; }
.home-photo-callout .section-sub { margin:0; }
.home-photo-callout .auth-btn { margin-left:auto; white-space:nowrap; }
@media(max-width:760px) { .photo-round-card { grid-template-columns:1fr; } .photo-upload-panel { border-left:0; border-top:1px solid var(--stone-line); } .photo-hero { padding:1rem 1rem 1.5rem; } .home-photo-callout-inner { align-items:flex-start; flex-wrap:wrap; } .home-photo-callout .auth-btn { margin-left:0; } }
@media(max-width:480px) { .photo-page { padding-top:1rem; } .photo-round-copy,.photo-upload-panel { padding:1.25rem; } .photo-section-heading { align-items:flex-start; } .home-section-edit { align-items:flex-start; flex-direction:column; } }

/* Refined archive pages styled to match Photo Challenge */
.photo-style-hero { padding: 2.1rem 0 2.6rem; }
.photo-style-hero-inner { text-align: center; max-width: 920px; }
.photo-style-hero .back-link { display: block; width: fit-content; margin: 0 auto 1.5rem; }
.photo-style-hero .photo-hero-icon { color: var(--navy); }
.photo-style-hero .page-title { font-family: var(--font-body); font-weight: 700; letter-spacing: -.035em; font-size: clamp(2.25rem,4vw,3.35rem); margin: .3rem 0 .8rem; }
.photo-style-content { padding: 2.5rem 0 4.5rem; }
.photo-style-content .photo-section-heading { margin-bottom: 1.5rem; }
.photo-style-content .video-grid { gap: 1.25rem; }
.photo-style-content .video-card { border-radius: 18px; box-shadow: 0 8px 24px rgba(23,38,79,.055); transition: transform .18s ease, box-shadow .18s ease; }
.photo-style-content .video-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23,38,79,.10); }
.photo-style-content .video-card-body { padding: 1.25rem; }
.photo-style-content .announcements-list { max-width: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); align-items: start; gap: 1rem; }
.photo-style-content .announcement-item { border-radius: 16px; box-shadow: 0 8px 24px rgba(23,38,79,.045); transition: border-color .18s ease, box-shadow .18s ease; }
.photo-style-content .announcement-item[open] { border-color: var(--slate); box-shadow: 0 10px 28px rgba(23,38,79,.08); }
.photo-style-content .announcement-question { padding: 1.2rem 3.2rem 1.2rem 1.25rem; }
.photo-style-content .announcement-answer { padding: 0 1.25rem 1.25rem; }
.home-section-edit { cursor: grab; border: 1px solid var(--stone-line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; background: var(--surface); justify-content: flex-start; }
.home-section-edit:active { cursor: grabbing; }
.home-section-edit.is-dragging { opacity: .45; border-style: dashed; }
.home-section-edit.drop-target { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(35,57,112,.12); }
.home-drag-handle { color: var(--stone); font-size: 1.5rem; line-height: 1; cursor: grab; user-select: none; }
.home-section-edit .inline-check { flex: 1; }
.home-drag-hint { color: var(--stone); font-size: .78rem; }
@media(max-width:600px) { .photo-style-content .announcements-list { grid-template-columns: 1fr; } .home-drag-hint { display:none; } }

/* ==========================================================================
   Refinement pass, Apple-style clarity, one consistent look for
   Announcements, Videos and Photo Challenge, and dark-mode safety.
   (Brand colors above are untouched.)
   ========================================================================== */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --card-radius: 18px;
  --card-shadow: 0 4px 24px rgba(23,38,79,.07);
}
[data-theme="dark"] { --card-shadow: 0 4px 24px rgba(0,0,0,.5); }

/* identical cards on all three pages */
.photo-style-content .video-card,
.photo-style-content .announcement-item,
.photo-theme-card,
.photo-page .thumbs figure,
.photo-round-card,
.theme-card {
  background: var(--surface);
  border: 1px solid var(--stone-line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform .25s cubic-bezier(.25,.1,.25,1), border-color .25s, box-shadow .25s;
}
.photo-style-content .video-card:hover,
.photo-style-content .announcement-item:hover,
.photo-theme-card:hover { transform: translateY(-3px); border-color: var(--slate); box-shadow: var(--card-shadow); }
.photo-style-content .announcement-item[open] { border-color: var(--slate); box-shadow: var(--card-shadow); }

/* identical page layout rhythm */
.photo-style-content { padding: 2.5rem 0 4.5rem; }
.photo-style-content .photo-page { max-width: none; padding: 0; }
.photo-style-content .photo-current { margin: 0 0 3.5rem; }
.photo-style-content .photo-past-section { margin-top: 0; }
.photo-style-hero .photo-hero-icon { font-size: 1.9rem; }

/* pill buttons, 44px touch targets */
.auth-btn, .photo-upload-button { border-radius: 980px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn { min-width: 44px; min-height: 44px; }
.auth-btn:hover { transform: scale(1.02); }

/* gentle entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.photo-style-content .video-card, .photo-style-content .announcement-item, .photo-theme-card, .portal-card { animation: fadeUp .5s cubic-bezier(.25,.1,.25,1) both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* dark-mode contrast fixes */
[data-theme="dark"] .icon-btn.avatar { background: var(--slate); color: #0D1126; }
.photo-upload-button { color: var(--cream) !important; }
.adm nav .on { color: #17264F; }

.photo-style-content .leadership-hub { max-width:1040px; margin-inline:auto; padding:0; }
.leadership-content #app { text-align:center; }
.leadership-content #app>.leadership-hero { display:none; }
.leadership-section,.leadership-admin-section,.leadership-member-admin,.leadership-review-card,.leadership-prize-card {
  margin:1.25rem 0; padding:clamp(1.15rem,3vw,1.8rem); border:1px solid var(--stone-line);
  border-radius:16px; background:var(--surface); box-shadow:0 18px 40px -26px rgba(23,38,79,.5);
}
.leadership-section { border-top:5px solid var(--gold); }
.leadership-content .leadership-section:first-child { margin-top:0; }
.leadership-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.leadership-content .leadership-section-heading { justify-content:center; text-align:center; }
.leadership-content .leadership-section-heading>div { text-align:center; }
.leadership-section-heading .eyebrow { margin:0 0 .25rem; color:var(--stone); font-size:.75rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.leadership-section-heading h2 { margin:0; color:var(--navy); font-family:var(--font-display); font-weight:400; font-size:clamp(1.8rem,3.6vw,2.4rem); letter-spacing:.005em; }
.leadership-rotation-badge { display:inline-flex; align-items:center; gap:.4rem; padding:.5rem .75rem; border-radius:980px; background:color-mix(in srgb,var(--gold) 38%,transparent); color:var(--navy); font-size:.84rem; font-weight:700; white-space:nowrap; }
.leadership-chart { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); justify-items:stretch; align-items:stretch; gap:.8rem; width:100%; min-width:0; }
.leadership-chart-section { width:100%; min-width:0; }
.leadership-role-card { position:relative; display:flex; width:100%; min-width:0; flex-direction:column; align-items:center; justify-content:center; gap:.65rem; min-height:140px; padding:1rem; overflow:hidden; border:1px solid var(--stone-line); border-radius:15px; background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--tint) 48%,var(--surface))); text-align:center; }
.leadership-role-number { display:grid; width:46px; height:46px; flex:none; place-items:center; border-radius:14px; background:var(--gold); color:#17264F; font-size:.9rem; font-weight:800; }
.leadership-role-copy h3 { margin:0 0 .3rem; color:var(--stone); font-size:.77rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.leadership-role-copy p { margin:0; color:var(--navy); font-size:1.12rem; font-weight:700; }
.leadership-skip-request { margin-top:.5rem; }
.leadership-skip-status { display:block; margin-top:.5rem; color:var(--stone); }
.leadership-chart-note { margin:1rem 0 0; color:var(--stone); font-size:.83rem; text-align:center; }
.leadership-section>p { color:var(--stone); line-height:1.6; }
.leadership-content .leadership-section>p { text-align:center; }
.leadership-section-icon { display:grid; width:46px; height:46px; flex:none; place-items:center; border-radius:15px; background:var(--tint); color:var(--slate); }
.leadership-rewards-icon { background:color-mix(in srgb,#FFC83D 26%,var(--surface)); color:#B27700; font-size:1.45rem; }
.leadership-form { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.25rem; text-align:center; }
.leadership-form label,.leadership-member-admin>label { display:grid; align-content:start; gap:.45rem; color:var(--navy); font-size:.9rem; font-weight:700; }
.leadership-form input:not([type=file]) { width:100%; min-height:48px; padding:.7rem .85rem; border:1px solid var(--stone-line); border-radius:11px; }
.leadership-file-field input[type=file] { width:100%; min-height:48px; padding:.65rem; border:1px dashed var(--stone); border-radius:11px; color:var(--navy); }
.leadership-file-field small { line-height:1.45; }
.leadership-form-footer { grid-column:1/-1; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.75rem; }
.leadership-form-footer p { margin:0; color:var(--stone); font-size:.9rem; }
.leadership-points-balance { display:flex; align-items:center; justify-content:center; gap:1rem; margin:1.25rem 0; padding:1rem 1.2rem; border-radius:15px; background:var(--tint); color:var(--navy); text-align:center; }
.leadership-points-balance strong { color:var(--slate); font-size:1.65rem; }
.leadership-prize-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:1rem; }
.leadership-prize-card { display:flex; flex-direction:column; align-items:center; gap:.35rem; margin:0; text-align:center; }
.leadership-prize-card h3 { margin:0; color:var(--navy); font-size:1.08rem; }
.leadership-prize-card p { margin:.2rem 0; color:var(--stone); line-height:1.5; }
.leadership-prize-card p strong { color:var(--slate); }
.leadership-prize-card .auth-btn { margin-top:auto; }
.leadership-claims { margin-top:1.75rem; padding-top:1.25rem; border-top:1px solid var(--stone-line); }
.leadership-claims h3 { margin-top:0; color:var(--navy); font-size:1rem; }
.leadership-list-row { display:flex; justify-content:center; align-items:center; gap:1rem; padding:.75rem 0; border-bottom:1px solid var(--stone-line); text-align:center; }
.leadership-member-admin { display:grid; gap:.8rem; }
.leadership-admin-collapsible { padding-top:1rem; }
.leadership-admin-collapsible>summary { color:var(--navy); font-size:1.15rem; font-weight:750; cursor:pointer; }
.leadership-admin-collapsible[open]>summary { margin-bottom:1rem; }
.leadership-admin-collapsible>p { color:var(--stone); line-height:1.5; }
.leadership-admin-role-order { padding:.75rem 1rem; border-radius:10px; background:var(--tint); color:var(--navy)!important; }
.leadership-role-management { margin:1.25rem 0; padding:1rem; border:1px solid var(--stone-line); border-radius:14px; background:var(--surface); }
.leadership-role-management h4 { margin:.25rem 0; color:var(--navy); }
.leadership-role-management>p { color:var(--stone); }
.leadership-role-admin-row { display:grid; grid-template-columns:minmax(180px,1fr) 120px auto minmax(100px,auto); align-items:end; gap:.75rem; padding:.75rem 0; border-bottom:1px solid var(--stone-line); }
.leadership-role-admin-row label { display:grid; gap:.35rem; color:var(--navy); font-size:.86rem; font-weight:700; }
.leadership-role-admin-row input { min-width:0; padding:.55rem; border:1px solid var(--stone-line); border-radius:8px; }
.leadership-role-admin-row>span { display:flex; flex-wrap:wrap; gap:.45rem; }
.leadership-role-management form { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; margin:.9rem 0; }
.leadership-role-management form label { display:grid; flex:1; min-width:200px; gap:.35rem; color:var(--navy); font-size:.86rem; font-weight:700; }
.leadership-role-management form input { padding:.55rem; border:1px solid var(--stone-line); border-radius:8px; }
.leadership-member-admin fieldset { display:flex; flex-wrap:wrap; gap:.7rem; border:1px solid var(--stone-line); border-radius:8px; }
.leadership-member-admin fieldset label { display:flex; align-items:center; gap:.35rem; }
.leadership-review-card { display:grid; gap:.8rem; }
.leadership-admin-review-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:1.25rem; align-items:start; }
.leadership-admin-review-grid>.leadership-admin-section { min-width:0; margin:0; }
.leadership-review-card img { display:block; max-width:min(100%,520px); max-height:420px; object-fit:contain; border-radius:8px; }
.leadership-review-card>div:last-child { display:flex; flex-wrap:wrap; gap:.5rem; }
@media(max-width:680px) {
  .leadership-form { grid-template-columns:1fr; }
  .leadership-form-footer { grid-column:auto; }
}
@media(max-width:480px) {
  .leadership-section-heading { align-items:flex-start; }
  .leadership-rotation-badge { padding:.4rem .55rem; font-size:.72rem; }
  .leadership-list-row { align-items:center; flex-direction:column; }
  .leadership-member-admin fieldset { display:grid; }
  .leadership-role-admin-row { grid-template-columns:1fr 90px; }
  .leadership-role-admin-row>span { grid-column:1/-1; }
  .leadership-role-admin-row small { grid-column:1/-1; }
}

/* merged Photo Challenge admin tab + gallery of all photos in a theme */
.thumb-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 9px; }
.thumb-btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.all-title { margin: 1.75rem 0 .25rem; font-family: var(--font-body); color: var(--navy); }
.theme-all figcaption { justify-content: flex-start; }

/* flyers shown whole, scheduling, moderation, public page */
.pdf-embed .flyer-img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 12px; background: var(--cream); }
.sched-badge, .via-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 980px; background: var(--tint); color: var(--slate); }
.sched-badge { background: #FFC83D; color: #17264F; }
.needs-approval { margin: 1.25rem 0 2rem; padding: 1rem 1.25rem; border: 2px dashed var(--stone-line); border-radius: 18px; }
.needs-approval.has { border: 2px solid #FFC83D; background: color-mix(in srgb, #FFC83D 12%, var(--surface)); }
.na-head { display: flex; align-items: center; gap: .6rem; } .na-head h4 { margin: 0; font-size: 1.1rem; }
.na-count { min-width: 1.8rem; text-align: center; padding: .1rem .55rem; border-radius: 980px; font-weight: 800; background: #FFC83D; color: #17264F; }
.na-count.ok { background: var(--tint); color: var(--slate); }
.approved-block { margin: 1rem 0; } details.rej { margin: 1rem 0; } details.rej summary { cursor: pointer; font-weight: 700; }
.ed-name { width: 100%; padding: .45rem .6rem; border: 1px solid var(--stone-line); border-radius: 8px; font: inherit; }
.pub-name { width: 100%; margin: .75rem 0 .25rem; padding: .7rem 1rem; border: 1px solid var(--stone-line); border-radius: 12px; font: inherit; background: var(--surface); color: var(--navy); }
.pub-mark { background: none !important; box-shadow: none !important; } .pub-foot { text-align: center; margin: 0; padding: 1.25rem 0; }

/* compact home banner (about half the previous height) */
.hero { padding: 0; }
.hero-inner { padding: 36px 28px 32px; }
.hero .eyebrow { margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.hero-lede { font-size: 1rem; }
@media (max-width: 640px) { .hero-inner { padding: 26px 20px 24px; } }
.pub-mark-img { display: block; width: 72px; height: 72px; border-radius: 18px; }

.role-note { margin: -.5rem 0 1rem; padding: .6rem .9rem; border-radius: 12px; background: var(--tint); }

/* Admin workspace polish: calmer hierarchy, clearer cards, and a more useful email-alerts screen */
.adm { max-width: 1240px; min-height: 70vh; }
.adm nav { position: sticky; top: 8px; z-index: 20; padding: 10px; margin: 0 0 26px; border: 1px solid var(--stone-line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 8px 26px rgba(17,26,68,.06); backdrop-filter: blur(12px); }
.adm nav .auth-btn { border-radius: 10px; padding: .65rem .9rem; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.adm nav .auth-btn:hover { transform: translateY(-1px); }
.adm h1,.adm h2,.adm h3 { letter-spacing: -.025em; }
.adm .row { padding: 1rem 1.1rem; margin: 8px 0; border: 1px solid var(--stone-line); border-radius: 12px; background: var(--surface); }
.adm form:not(.portal-admin-section form) { border-radius: 16px; padding: clamp(1rem, 2.5vw, 1.6rem); border-color: var(--stone-line); box-shadow: 0 10px 30px rgba(17,26,68,.045); }
.adm .auth-btn { border-radius: 9px; padding: .65rem 1rem; }
.admin-page-intro { position:relative; overflow:hidden; margin: 0 0 22px; padding: clamp(1.4rem,3vw,2.25rem); border: 1px solid var(--stone-line); border-radius: 22px; background: linear-gradient(125deg, var(--surface) 0%, var(--tint) 100%); }
.admin-page-intro:after { content:""; position:absolute; width:190px; height:190px; right:-48px; top:-75px; border:28px solid color-mix(in srgb,var(--gold) 25%,transparent); border-radius:50%; pointer-events:none; }
.admin-page-kicker,.admin-section-kicker { display:block; color:var(--slate); font-size:.72rem; font-weight:850; letter-spacing:.15em; }
.admin-page-intro h1 { margin:.35rem 0 .45rem; font:750 clamp(1.9rem,4vw,2.65rem)/1.08 var(--font-body); color:var(--navy); }
.admin-page-intro p { max-width:650px; margin:0; color:var(--stone); line-height:1.65; }
.admin-feature-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:1.2rem; }
.admin-feature-pills span { display:inline-flex; padding:6px 10px; border:1px solid var(--stone-line); border-radius:99px; background:var(--surface); color:var(--navy); font-size:.78rem; font-weight:700; }
.admin-email-card { margin:18px 0 24px; padding:clamp(1rem,2.5vw,1.6rem); border:1px solid var(--stone-line); border-radius:18px; background:var(--surface); box-shadow:0 12px 34px rgba(17,26,68,.05); }
.adm form.admin-email-card { gap:1rem; }
.photo-email-settings>summary { display:flex; align-items:center; gap:12px; list-style:none; padding:0 0 1rem; border-bottom:1px solid var(--stone-line); }
.photo-email-settings>summary::-webkit-details-marker { display:none; }
.photo-email-settings>summary:before { content:"✉"; display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; border-radius:14px; background:var(--tint); color:var(--navy); font-size:1.25rem; }
.photo-email-settings>summary h3 { margin:0; font-size:1.2rem; }
.photo-email-settings>summary:after { content:"＋"; margin-left:auto; color:var(--slate); font-size:1.2rem; }
.photo-email-settings[open]>summary:after { content:"−"; }
.admin-email-card p { color:var(--stone); line-height:1.65; }
.admin-email-card label:not(.chk) { color:var(--navy); font-size:.9rem; font-weight:750; }
.admin-email-card input:not([type=checkbox]),.admin-email-card textarea,.admin-email-card select { margin-top:4px; padding: .8rem .9rem; border:1px solid var(--stone-line); border-radius:10px; background:var(--cream); color:var(--navy); transition:border-color .18s ease, box-shadow .18s ease; }
.admin-email-card input:focus,.admin-email-card textarea:focus,.admin-email-card select:focus { outline:none; border-color:var(--slate); box-shadow:0 0 0 3px color-mix(in srgb,var(--slate) 18%,transparent); }
.admin-email-card textarea { line-height:1.55; resize:vertical; }
.admin-email-card .chk { display:flex!important; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--stone-line); border-radius:11px; background:var(--cream); color:var(--navy); }
.admin-email-card input[type=checkbox] { width:18px; height:18px; accent-color:var(--slate); }
.admin-email-card code { padding:2px 5px; border-radius:5px; background:var(--tint); color:var(--navy); font-size:.82em; }
.admin-email-card button:disabled { opacity:.55; cursor:wait; }
.admin-section-heading { display:flex; align-items:center; gap:13px; margin-bottom:.5rem; }
.admin-section-icon { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border-radius:15px; background:var(--tint); color:var(--navy); font-size:1.3rem; }
.admin-section-heading h2 { margin:.25rem 0 0; color:var(--navy); font:750 clamp(1.25rem,2.5vw,1.6rem)/1.2 var(--font-body); }
.role-email-card>p { margin:.7rem 0; }
.role-email-card #role-email-form { margin:1rem 0 0; padding:0; border:0; box-shadow:none; background:transparent; }
#role-email-templates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:.5rem 0; }
@media(max-width:900px) { #role-email-templates { grid-template-columns:minmax(0,1fr); } }
#role-email-templates .leadership-role-management { min-width:0; padding:1rem; border:1px solid var(--stone-line); border-radius:14px; background:var(--cream); }
#role-email-templates .leadership-role-management>summary { padding:.2rem 0 .8rem; margin-bottom:.9rem; border-bottom:1px solid var(--stone-line); color:var(--navy); font-weight:800; font-size:1rem; cursor:pointer; }
#role-email-templates .leadership-role-management label { margin:.8rem 0; }
#role-email-templates .leadership-role-management textarea { min-height:115px; }
#al-msg,#role-email-msg,[data-role-test-message] { display:block; padding:.5rem 0; line-height:1.5; overflow-wrap:anywhere; }
@media(max-width:640px) { .adm { padding-top:1rem; } .adm nav { position:static; gap:7px; padding:8px; } .adm nav .auth-btn { flex:1 1 auto; text-align:center; } .admin-page-intro:after { opacity:.55; } .admin-feature-pills { gap:6px; } .admin-feature-pills span { font-size:.72rem; } .adm .row { align-items:flex-start; flex-direction:column; } .adm .row>span:last-child { display:flex; flex-wrap:wrap; gap:6px; } }
[data-theme=dark] .admin-page-intro { background:linear-gradient(125deg,var(--surface),var(--tint)); }
[data-theme=dark] .admin-email-card { box-shadow:0 12px 34px rgba(0,0,0,.14); }


/* Email alerts layout: progressive disclosure keeps the page manageable */
.admin-email-card { min-width:0; }
.admin-email-card details > summary { cursor:pointer; }
.admin-email-card details > summary:focus-visible { outline:2px solid var(--slate); outline-offset:4px; border-radius:6px; }
.role-email-card { padding:clamp(1rem,2.5vw,1.7rem); }
.role-email-card #role-email-form { display:flex; flex-direction:column; gap:1rem; }
.role-email-initial { padding:1rem; border:1px solid var(--stone-line); border-radius:14px; background:color-mix(in srgb,var(--tint) 35%,var(--surface)); }
.role-email-initial > summary { display:flex; align-items:center; gap:10px; list-style:none; font-weight:800; color:var(--navy); }
.role-email-initial > summary::-webkit-details-marker { display:none; }
.role-email-initial > summary:before { content:"⚙"; display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:var(--surface); color:var(--navy); }
.role-email-initial > summary:after { content:"＋"; margin-left:auto; color:var(--slate); }
.role-email-initial[open] > summary:after { content:"−"; }
.role-email-initial > label:not(.chk) { max-width:100%; }
.role-template-intro { padding:.2rem 0 .25rem; }
.role-template-intro h3 { margin:0 0 .3rem; font-size:1.05rem; color:var(--navy); }
.role-template-intro p { margin:.25rem 0; }
#role-email-templates .leadership-role-management { align-self:start; transition:border-color .18s ease,box-shadow .18s ease; }
#role-email-templates .leadership-role-management[open] { border-color:color-mix(in srgb,var(--slate) 55%,var(--stone-line)); box-shadow:0 5px 18px rgba(17,26,68,.05); }
#role-email-templates .leadership-role-management > summary { display:flex; align-items:center; gap:10px; cursor:pointer; list-style:none; margin:0; padding:.2rem 0; border:0; }
#role-email-templates .leadership-role-management > summary::-webkit-details-marker { display:none; }
#role-email-templates .leadership-role-management > summary:after { content:"＋"; margin-left:auto; color:var(--slate); font-size:1.1rem; }
#role-email-templates .leadership-role-management[open] > summary:after { content:"−"; }
#role-email-templates .leadership-role-management:not([open]) { background:var(--surface); }
#role-email-templates .leadership-role-management:not([open]) > summary { margin:0; padding:.35rem 0; }
#role-email-templates .leadership-role-management label { display:block; }
#role-email-templates .leadership-role-management button { margin:.25rem 0; }
#role-email-templates .leadership-role-management small { display:block; overflow-wrap:anywhere; }
#role-email-msg { border-radius:8px; }
@media(min-width:850px) {
  .role-email-initial[open] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; }
  .role-email-initial[open] > summary { grid-column:1/-1; }
  .role-email-initial[open] > label { min-width:0; }
  .role-email-initial[open] > label:has(textarea),.role-email-initial[open] > h4,.role-email-initial[open] > .chk { grid-column:1/-1; }
}
@media(max-width:640px) {
  .admin-email-card { padding:1rem; }
  #role-email-templates { grid-template-columns:minmax(0,1fr); }
  #role-email-templates .leadership-role-management { padding:.85rem; }
  .role-email-initial { padding:.85rem; }
}
[data-theme=dark] .role-email-initial { background:color-mix(in srgb,var(--tint) 20%,var(--surface)); }
[data-theme=dark] #role-email-templates .leadership-role-management:not([open]) { background:var(--surface); }

/* Unified visual system across every Latter UP admin tab */
.adm > h2, .adm > h3 { color:var(--navy); margin:1.1rem 0 .45rem; }
.adm > h2 { font-size:clamp(1.45rem,3vw,2rem); }
.adm > h3 { font-size:clamp(1.2rem,2.4vw,1.55rem); }
.adm > p:not(.role-note):not(.auth-error) { max-width:850px; line-height:1.65; }
.adm > nav + h2, .adm > nav + h3 { margin-top:0; }
.adm > nav + .admin-page-intro { margin-top:0; }
.adm .auth-btn { min-height:40px; font-weight:750; box-shadow:0 2px 6px rgba(17,26,68,.045); transition:transform .16s ease,box-shadow .16s ease,background .16s ease; }
.adm .auth-btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 5px 13px rgba(17,26,68,.10); }
.adm .auth-btn:focus-visible, .adm input:focus-visible, .adm textarea:focus-visible, .adm select:focus-visible { outline:3px solid color-mix(in srgb,var(--gold) 75%,transparent); outline-offset:2px; }
.adm nav { display:flex; align-items:center; gap:7px; }
.adm nav .auth-btn { flex:0 0 auto; }
.adm nav .auth-btn.on { box-shadow:0 3px 10px color-mix(in srgb,var(--gold) 30%,transparent); }
.adm #list { display:grid; gap:9px; margin:1rem 0 1.5rem; }
.adm #list:empty { display:none; }
.adm #list .row { margin:0; min-width:0; }
.adm #list .row > span:first-child { min-width:0; overflow-wrap:anywhere; font-weight:700; }
.adm #list .row small { display:block; margin-top:4px; line-height:1.45; }
.adm #list .row > span:last-child { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.adm #new { margin:.15rem 0 1rem; }
.adm #form form { margin:1rem 0 1.5rem; background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--tint) 28%,var(--surface))); }
.adm form h3 { margin:0 0 .35rem; }
.adm form label { min-width:0; line-height:1.45; }
.adm input:not([type=checkbox]):not([type=radio]), .adm textarea, .adm select { min-width:0; max-width:100%; border-radius:10px; background:var(--cream); color:var(--navy); }
.adm textarea { line-height:1.55; }
.adm input[type=checkbox], .adm input[type=radio] { accent-color:var(--slate); }
.adm .portal-admin-section, .adm .leadership-section, .adm .leadership-admin-section, .adm .leadership-member-admin, .adm .leadership-review-card, .adm .leadership-prize-card { border-radius:18px; box-shadow:0 10px 28px rgba(17,26,68,.045); }
.adm .portal-admin-section { margin:18px 0 24px; padding:clamp(1rem,2.5vw,1.6rem); }
.adm .portal-admin-section > p { line-height:1.65; }
.adm .portal-admin-section h3, .adm .leadership-section h3, .adm .leadership-admin-section h3 { color:var(--navy); }
.adm .portal-admin-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:1rem; }
.adm .portal-admin-actions small, .adm [id$="-msg"] { line-height:1.55; overflow-wrap:anywhere; }
.adm .home-section-edit, .adm .portal-tile-edit { border:1px solid var(--stone-line); border-radius:12px; background:var(--surface); padding:12px 14px; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.adm .home-section-edit:hover, .adm .portal-tile-edit:hover { border-color:color-mix(in srgb,var(--slate) 50%,var(--stone-line)); box-shadow:0 4px 14px rgba(17,26,68,.05); }
.adm .home-section-edit.is-dragging, .adm .portal-tile-edit.is-dragging { opacity:.5; }
.adm .home-section-edit.drop-target, .adm .portal-tile-edit.drop-target { border-color:var(--gold); background:color-mix(in srgb,var(--gold) 12%,var(--surface)); }
.adm #home-section-editor { display:grid; gap:9px; margin:1rem 0; }
.adm .home-drag-handle { display:inline-flex; align-items:center; justify-content:center; min-width:58px; padding:5px 8px; border-radius:8px; background:var(--tint); color:var(--navy); font-size:.78rem; font-weight:800; }
.adm .student-setup-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; margin:18px 0 24px; }
.adm .student-setup-card { min-width:0; border:1px solid var(--stone-line); border-radius:14px; background:var(--surface); box-shadow:0 8px 22px rgba(17,26,68,.045); }
.adm .student-setup-card > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; cursor:pointer; color:var(--navy); font-weight:750; list-style:none; }
.adm .student-setup-card > summary::-webkit-details-marker { display:none; }
.adm .student-setup-card > summary::after { content:""; flex:none; width:9px; height:9px; border-right:2px solid var(--slate); border-bottom:2px solid var(--slate); transform:rotate(45deg); transition:transform .16s ease; }
.adm .student-setup-card[open] > summary { border-bottom:1px solid var(--stone-line); }
.adm .student-setup-card[open] > summary::after { transform:rotate(225deg); }
.adm .student-setup-card > form { margin:0; border:0; border-radius:0 0 14px 14px; box-shadow:none; background:transparent; }
.adm .student-setup-card > form > p { margin:0; line-height:1.55; }
@media(min-width:820px) {
  .adm .student-setup-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
.adm .needs-approval, .adm .approved-block, .adm details.rej { border-radius:14px; }
.adm .needs-approval { padding:12px; }
.adm .leadership-list-row { justify-content:space-between; text-align:left; gap:12px; padding:12px 0; }
.adm .leadership-list-row > span { min-width:0; overflow-wrap:anywhere; }
.adm .leadership-review-card { padding:clamp(1rem,2.5vw,1.4rem); background:var(--surface); }
.adm .leadership-review-card img { border-radius:12px; }
.adm .leadership-review-card > div:last-child { gap:8px; }
.adm .role-note { padding:12px 15px; border:1px solid var(--stone-line); background:var(--tint); line-height:1.5; }
.adm .auth-error { display:block; margin:12px 0; padding:12px 14px; border:1px solid color-mix(in srgb,#b42318 25%,var(--stone-line)); border-radius:12px; background:color-mix(in srgb,#b42318 7%,var(--surface)); line-height:1.55; overflow-wrap:anywhere; }
.adm .sched-badge { display:inline-block; margin-top:5px; padding:4px 8px; border-radius:999px; background:color-mix(in srgb,var(--gold) 22%,var(--surface)); color:var(--navy); font-size:.75rem; font-weight:800; }
[data-theme=dark] .adm .portal-admin-section, [data-theme=dark] .adm .leadership-section, [data-theme=dark] .adm .leadership-admin-section, [data-theme=dark] .adm .leadership-member-admin, [data-theme=dark] .adm .leadership-review-card, [data-theme=dark] .adm .leadership-prize-card { box-shadow:0 10px 28px rgba(0,0,0,.13); }
[data-theme=dark] .adm #form form { background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--tint) 18%,var(--surface))); }
@media(max-width:760px) {
  .adm nav { position:static; overflow:visible; }
  .adm nav .auth-btn { flex:1 1 auto; }
  .adm #list .row { align-items:flex-start; }
  .adm #list .row > span:last-child { width:100%; }
  .adm .leadership-list-row { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) { .adm .auth-btn, .adm .home-section-edit, .adm .portal-tile-edit { transition:none; } }

/* Admin editing: keep each editor attached to the item being changed. */
.adm .admin-edit-item { margin: 10px 0; min-width: 0; }
.adm .admin-inline-edit:empty { display:none; }
.adm .admin-inline-edit:not(:empty) { margin: 8px 0 18px; padding: clamp(14px,2vw,22px); border: 1px solid var(--stone-line); border-radius: 14px; background: var(--surface); }
.adm .admin-inline-edit form { width:100%; min-width:0; box-sizing:border-box; }
.adm .admin-inline-edit label, .adm .admin-inline-edit input, .adm .admin-inline-edit textarea, .adm .admin-inline-edit select { max-width:100%; box-sizing:border-box; }
.adm .student-admin-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px, .85fr); align-items:end; gap:16px; margin:20px 0 10px; padding:16px; border:1px solid var(--stone-line); border-radius:14px; background:var(--surface); }
.adm .student-admin-tools h3 { margin:0; }
.adm .student-admin-tools label { margin:0; min-width:0; }
.adm .student-admin-danger-zone { margin-top:30px; padding:16px; border:1px solid color-mix(in srgb,#b42318 30%,var(--stone-line)); border-radius:14px; background:color-mix(in srgb,#b42318 4%,var(--surface)); }
.adm .student-admin-danger-zone h4 { margin:0; }
.adm #role-email-templates { grid-template-columns:repeat(2,minmax(0,1fr)); }
.adm #role-email-templates .leadership-role-management { min-width:0; width:100%; box-sizing:border-box; }
.adm #role-email-templates .leadership-role-management input,
.adm #role-email-templates .leadership-role-management textarea,
.adm #role-email-templates .leadership-role-management select { display:block; width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.adm #role-email-templates .leadership-role-management textarea { resize:vertical; }
.adm .admin-email-card details:not([open]) > :not(summary) { display:none; }
@media(max-width:760px) {
  .adm .student-admin-tools { grid-template-columns:minmax(0,1fr); }
  .adm #role-email-templates { grid-template-columns:minmax(0,1fr); }
}
