/* Teaching Hub — publish.css
   Site-wide: page titles, tip callouts, table headers.
   Dashboard only (cssclasses: dashboard): the card-grid links table.
   To undo: delete this file, or unpublish it in Obsidian Publish. */

/* Page titles (site-wide) */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #14213D;
  border-bottom: 4px solid #E8B23A;
  padding-bottom: 8px;
}
.theme-dark h1 { color: #F7F5EF; }

/* Tip callouts (site-wide): navy panel */
.callout[data-callout="tip"] {
  --callout-color: 232, 178, 58;
  background: #14213D;
  color: #F7F5EF;
  border: none;
  border-radius: 12px;
  padding: 20px;
}
.callout[data-callout="tip"] .callout-title {
  color: #E8B23A;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85em;
}
.callout[data-callout="tip"] table { background: transparent; color: #F7F5EF; width: 100%; }
.callout[data-callout="tip"] th,
.callout[data-callout="tip"] td {
  background: transparent;
  border: none;
  border-bottom: 1px solid #3a4a6b;
  color: #F7F5EF;
}
.callout[data-callout="tip"] th { color: #BFD8D5; }
.callout[data-callout="tip"] a { color: #E8B23A; }

/* Ordinary tables (site-wide): tinted header row */
th { background: #F7F5EF; }
.theme-dark th { background: #1f2c48; }
.callout[data-callout="tip"] th { background: transparent; }

/* Course-links table (dashboard pages only) (outside callouts): two-column cards */
.dashboard table:not(.callout table) { width: 100%; border: none; }
.dashboard table:not(.callout table) thead { display: none; }
.dashboard table:not(.callout table) tbody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dashboard table:not(.callout table) tr {
  display: flex;
  flex-direction: column;
  border: 1px solid #DCD8CC;
  border-radius: 10px;
  padding: 12px 14px;
  background: #FBFAF6;
}
.theme-dark .dashboard table:not(.callout table) tr { background: transparent; border-color: #3a4a6b; }
.dashboard table:not(.callout table) td { border: none; padding: 0; background: transparent; }
.dashboard table:not(.callout table) td:first-child { font-weight: 600; }
.dashboard table:not(.callout table) td:last-child { opacity: 0.75; font-size: 0.9em; }

@media (max-width: 600px) {
  .dashboard table:not(.callout table) tbody { grid-template-columns: 1fr; }
}
