/* details-tabs.css — ECP accordion replacement for Adobe Spry TabbedPanels
   Added: 2026-04-10
   Replaces SpryAssets/SpryTabbedPanels.js + SpryTabbedPanels.css
   Used by pages in Teachers/ (and other sections as migration proceeds)
*/

/* ── Container ─────────────────────────────────────────────────────────────── */
.ecp-details-tabs {
  width: 100%;
  margin: 1em 0;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-family: inherit;
}

/* ── Individual panel ───────────────────────────────────────────────────────── */
.ecp-details-tabs details {
  border-bottom: 1px solid #cccccc;
}

.ecp-details-tabs details:last-child {
  border-bottom: none;
}

/* ── Tab label (summary element) ────────────────────────────────────────────── */
.ecp-details-tabs summary {
  display: block;           /* suppress default triangle in most browsers */
  cursor: pointer;
  padding: 0.6em 1em;
  background: #e8eef7;
  color: #000080;           /* --ecp-blue-dark */
  font-weight: bold;
  font-size: 0.9em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  user-select: none;
  border: none;
  outline: none;
  list-style: none;         /* Firefox */
  position: relative;
}

/* Remove default disclosure triangle across browsers */
.ecp-details-tabs summary::-webkit-details-marker {
  display: none;
}

.ecp-details-tabs summary::marker {
  content: none;
}

/* Chevron indicator */
.ecp-details-tabs summary::after {
  content: "▶";
  position: absolute;
  right: 1em;
  font-size: 0.75em;
  color: #697ef7;           /* --ecp-blue-medium */
  transition: transform 0.15s ease;
}

/* ── Active / open state ────────────────────────────────────────────────────── */
.ecp-details-tabs details[open] > summary {
  background: #0000c0;      /* --ecp-blue */
  color: #ffffff;
}

.ecp-details-tabs details[open] > summary::after {
  content: "▼";
  color: #ccddff;
}

/* Focus ring for keyboard navigation */
.ecp-details-tabs summary:focus-visible {
  outline: 2px solid #697ef7;
  outline-offset: -2px;
}

/* ── Tab content ────────────────────────────────────────────────────────────── */
.ecp-details-tabs .tab-content {
  padding: 1em 1.2em;
  background: #ffffff;
  /* No fixed height — content flows naturally (replaces Spry's 600px overflow) */
  overflow: auto;
}

/* ── Sidebar-left + main-right layout ──────────────────────────────────────── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.5em;
  align-items: start;
  max-width: 1400px;
  margin-inline: auto;
  padding: 0.5em 0;
}

.content-with-sidebar > .relatedLinks {
  position: sticky;
  top: 1em;
  line-height: 1.4;
  padding: 0.75em;
  background: #f5f5f5;
  border-right: 1px solid #e0e0e0;
  min-height: 100%;
}

.content-with-sidebar > .relatedLinks ul {
  list-style: square;
  margin: 0;
  padding-left: 1em;
}

.content-with-sidebar > .relatedLinks .sectionhead {
  font-weight: bold;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ecp-details-tabs summary {
    padding: 0.75em 2.5em 0.75em 0.8em;
    font-size: 0.85em;
  }

  .ecp-details-tabs .tab-content {
    padding: 0.8em;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ── Force light appearance when browser dark mode is active ───────────────── */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  main, .top-wrapper, #masthead, #content, .TabbedPanelsContent,
  .tab-content, .ecp-details-tabs, details, summary,
  .content-with-sidebar, .relatedLinks {
    background-color: inherit !important;
    color: inherit !important;
  }
}
