:root {
  color-scheme: light;
  --ink: #1e252b;
  --muted: #56616b;
  --line: #ccd5dd;
  --accent: #2f6f73;
  --accent-dark: #24575a;
  --soft: #eef6f4;
  --paper: #ffffff;
  --page: #f7f8f7;
  --warning: #fff8ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.42;
  margin: 0;
  background: var(--page);
}

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.side-rail,
main {
  max-width: 8.5in;
  margin: 0 auto;
  background: var(--paper);
}

.side-rail {
  position: static;
  height: auto;
  padding: 0.42in 0.5in 0.18in;
  color: var(--ink);
  display: grid;
  gap: 0.14in;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.12in;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  display: block;
  color: var(--accent);
  font-size: 15pt;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10pt;
  margin-top: 0.02in;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 0.42in;
  height: 0.42in;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08in;
}

nav a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.06in 0.1in;
  display: inline-flex;
  align-items: center;
  gap: 0.06in;
  background: #fff;
}

nav a span {
  width: 0.08in;
  height: 0.08in;
  border-radius: 999px;
  border: 1px solid currentColor;
}

nav a.active,
nav a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

nav a.active span {
  background: #fff;
}

.rail-note {
  border-left: 4px solid var(--accent);
  padding: 0.07in 0.1in;
  background: var(--soft);
  color: var(--muted);
}

.rail-note strong {
  display: inline;
  color: var(--accent);
  margin-right: 0.06in;
}

.rail-note span {
  font-size: 10pt;
}

.site-area {
  min-width: 0;
}

.commandbar {
  display: none;
}

main {
  padding: 0.28in 0.5in 0.55in;
}

h1,
h2,
h3,
h4 {
  color: var(--accent);
  line-height: 1.18;
  margin: 0;
  letter-spacing: 0;
}

h1,
.dashboard-hero h1,
.resource-header h1,
.hero h1 {
  font-size: 23pt;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.15in;
  margin: 0 0 0.12in;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.18;
  max-width: none;
}

h2,
.section-head h2,
.viewer-sidebar h2 {
  font-size: 16pt;
  margin-top: 0.3in;
  padding-bottom: 0.05in;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 13pt;
  margin-top: 0.22in;
}

h4 {
  font-size: 11.5pt;
  margin-top: 0.14in;
}

p {
  margin: 0.08in 0;
}

ul,
ol {
  margin: 0.06in 0 0.1in 0.24in;
  padding: 0;
}

li {
  margin: 0.035in 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.12in 0;
  font-size: 10pt;
  page-break-inside: avoid;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.07in;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--accent);
  text-align: left;
}

.subtitle,
.muted,
.breadcrumb,
.section-head p,
.resource-copy p,
.viewer-sidebar dt,
.viewer-sidebar dd,
.course-tile p,
.dashboard-hero p,
.hero p,
.resource-header p {
  color: var(--muted);
}

.kicker,
.type-chip,
.course-code,
.eyebrow {
  color: var(--muted);
  font-size: 10pt;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-hero,
.hero,
.resource-header,
.panel,
.course-tile,
.insight-card,
.resource-row,
.module-group,
.stat,
.media-card,
.link-card,
.slide {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-hero,
.hero,
.resource-header {
  display: block;
  padding: 0;
  color: var(--ink);
}

.dashboard-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.18in;
}

.hero-metric-grid,
.stats,
.grid,
.course-grid,
.module-grid,
.dashboard-layout,
.viewer-layout,
.media-grid,
.slide-assets {
  display: grid;
  gap: 0.12in;
}

.dashboard-layout,
.viewer-layout {
  grid-template-columns: 1fr;
}

.course-grid,
.stats,
.hero-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(1.85in, 1fr));
}

.hero-metric,
.stat,
.section-note,
.notice {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 0.08in 0.12in;
}

.hero-metric strong,
.stat strong {
  display: block;
  color: var(--accent);
  font-size: 16pt;
  line-height: 1.1;
}

.hero-metric span,
.stat span {
  color: var(--muted);
  font-size: 10pt;
}

.panel,
.insight-card {
  margin-top: 0.18in;
  padding: 0;
}

.section-head {
  display: block;
  margin-bottom: 0.08in;
}

.course-tile {
  border: 1px solid var(--line);
  padding: 0.12in;
  min-height: 0;
  page-break-inside: avoid;
}

.course-tile::before {
  display: none;
}

.course-tile h2 {
  margin: 0.06in 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13pt;
  border: 0;
  padding: 0;
}

.course-tile h2 a,
.resource-title {
  color: var(--accent-dark);
  text-decoration: none;
}

.course-footer,
.actions,
.meta-row,
.toolbar,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08in;
  align-items: center;
}

.course-footer {
  justify-content: space-between;
  margin-top: 0.1in;
}

.course-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08in;
}

.meta-row {
  margin-top: 0.08in;
}

.meta-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 0.22in;
  padding: 0.02in 0.07in;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 9.5pt;
  font-weight: 700;
}

.button,
.row-action,
.filter-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.3in;
  padding: 0.05in 0.1in;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 10pt;
  font-weight: 700;
}

.button.ghost,
.row-action,
.filter-tabs button {
  background: #fff;
  color: var(--accent);
}

.filter-tabs button.active {
  background: var(--accent);
  color: #fff;
}

.resource-list,
.module-body,
.slide-list {
  display: grid;
  gap: 0.08in;
}

.resource-row {
  display: grid;
  grid-template-columns: 0.32in minmax(0, 1fr) auto;
  gap: 0.09in;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 0.08in 0;
  page-break-inside: avoid;
}

.resource-row[hidden] {
  display: none;
}

.resource-icon {
  width: 0.28in;
  height: 0.28in;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 9pt;
}

.resource-copy {
  min-width: 0;
}

.resource-title,
.card-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.resource-copy p,
.path {
  margin: 0.03in 0 0;
  overflow-wrap: anywhere;
  font-size: 9.5pt;
}

.module-group {
  border: 1px solid var(--line);
  page-break-inside: avoid;
}

.module-group summary {
  cursor: pointer;
  list-style: none;
  padding: 0.08in 0.1in;
  display: flex;
  justify-content: space-between;
  gap: 0.12in;
  align-items: center;
  font-weight: 700;
  color: var(--accent);
  background: var(--soft);
}

.module-group summary::-webkit-details-marker {
  display: none;
}

.module-body {
  border-top: 1px solid var(--line);
  padding: 0 0.1in 0.06in;
}

.viewer-sidebar {
  position: static;
}

.viewer-sidebar dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.04in 0.12in;
  margin: 0.08in 0 0.12in;
}

.viewer-sidebar dt {
  font-weight: 700;
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(2.5in, 1fr));
}

.media-card,
.link-card {
  border: 1px solid var(--line);
  overflow: hidden;
  page-break-inside: avoid;
}

.media-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-card figcaption {
  padding: 0.07in;
  color: var(--muted);
  font-size: 9pt;
  overflow-wrap: anywhere;
}

.image-shell {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f9fbfb;
}

.image-shell img {
  width: 100%;
  max-height: 7in;
  object-fit: contain;
  display: block;
}

.media-player {
  width: 100%;
  max-height: 6.8in;
  background: #111;
}

.document-frame {
  width: 100%;
  min-height: 7.2in;
  border: 1px solid var(--line);
  background: #fff;
}

.text-block,
.text-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  padding: 0.12in;
  background: #fbfcfc;
  max-height: none;
  overflow: auto;
}

.slide {
  border-top: 1px solid var(--line);
  padding-top: 0.12in;
  margin-top: 0.12in;
  page-break-inside: avoid;
}

.slide h3 {
  margin-top: 0;
}

.slide-assets {
  grid-template-columns: repeat(auto-fit, minmax(1.6in, 1fr));
}

.thumb {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.thumb img {
  width: 100%;
  height: 1.5in;
  object-fit: contain;
  display: block;
}

.table-scroll {
  overflow-x: auto;
}

.toolbar .search,
.search {
  min-height: 0.33in;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.06in 0.08in;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.toolbar .search {
  flex: 1 1 2.4in;
}

.link-list {
  overflow-wrap: anywhere;
}

@page {
  size: letter;
  margin: 0.45in;
}

@media print {
  body {
    background: #fff;
  }

  .side-rail,
  main {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  nav,
  .actions,
  .toolbar,
  .button,
  .row-action,
  .filter-tabs {
    display: none !important;
  }

  h2,
  h3,
  h4 {
    page-break-after: avoid;
  }

  .panel,
  .course-tile,
  .module-group,
  .resource-row,
  .section-note,
  table,
  .keep {
    break-inside: avoid;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 10.5pt;
  }

  .side-rail,
  main {
    width: 100%;
    padding-left: 0.18in;
    padding-right: 0.18in;
  }

  h1,
  .dashboard-hero h1,
  .resource-header h1,
  .hero h1 {
    font-size: 20pt;
  }

  .resource-row {
    grid-template-columns: 0.32in minmax(0, 1fr);
  }

  .row-action {
    grid-column: 2;
    width: fit-content;
  }
}
