/* Heart Turn Academy (/berean-bible-academy/): the study-at-home catalog, in Heart Turn Global's colours and type. Every rule is
   inside .sem so the site around it is untouched. */
.sem {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --sunk: #eef3f7;
  --ink: #0f1d2b;
  --muted: #4b5d6e;
  --line: #d6e1e9;
  --brass: #a86f00;
  --brass-soft: #fff3d6;
  --navy: #0f3d7a;
  --on-navy: #eaf3fa;
  --ok: #1f7a4d;
  --ok-soft: #e3f4ea;
  --lock: #8a4b2e;
  --lock-soft: #f8ebe2;
  --prog: #1d5fb3;
  --prog-soft: #e4f0fb;
  --f-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Source Serif 4', Georgia, serif;
  --f-ui: 'Sofia Sans', 'Segoe UI', system-ui, sans-serif;
}
.sem,
.sem * {
  box-sizing: border-box;
}
.sem {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
.sem a {
  color: var(--prog);
}
.sem button {
  font: inherit;
  color: inherit;
}
.sem :focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.sem .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sem .sem-bar {
  position: relative;
  z-index: 5;
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 3px solid var(--brass);
}
.sem .sem-bar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.sem .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.sem .brand span {
  text-align: left;
}
.sem .brand b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
}
.sem .brand small {
  display: block;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1.1;
}
.sem nav.tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.sem nav.tabs button {
  background: none;
  border: 0;
  color: var(--on-navy);
  opacity: 0.78;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.sem nav.tabs button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
}
.sem nav.tabs button[aria-current='page'] {
  opacity: 1;
  box-shadow: inset 0 -2px 0 var(--brass);
}
.sem main {
  padding-block: 28px 64px;
}
.sem h1,
.sem h2,
.sem h3 {
  text-wrap: balance;
  line-height: 1.2;
  margin: 0;
}
.sem h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 42px);
  letter-spacing: 0.03em;
}
.sem h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.sem h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 19px;
}
.sem .eyebrow {
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.sem .muted {
  color: var(--muted);
}
.sem .ui {
  font-family: var(--f-ui);
}
.sem .stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sem .section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.sem .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.sem .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--on-navy);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.sem .btn:hover {
  filter: brightness(1.15);
}
.sem .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.sem .btn.ghost:hover {
  border-color: var(--ink);
}
.sem .btn.brass {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.sem .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.sem :root[data-theme='dark'] .btn:not(.ghost):not(.brass) {
  background: var(--brass);
  border-color: var(--brass);
  color: #141414;
}
@media (prefers-color-scheme: dark) {
  .sem :root:not([data-theme='light']) .btn:not(.ghost):not(.brass) {
    background: var(--brass);
    border-color: var(--brass);
    color: #141414;
  }
}
.sem .linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--prog);
  cursor: pointer;
  font-family: var(--f-ui);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sem .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sem .pill.done {
  background: var(--ok-soft);
  color: var(--ok);
}
.sem .pill.prog {
  background: var(--prog-soft);
  color: var(--prog);
}
.sem .pill.open {
  background: var(--sunk);
  color: var(--muted);
}
.sem .pill.lock {
  background: var(--lock-soft);
  color: var(--lock);
}
.sem .pill.lvl {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.sem .code {
  font-family: var(--f-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sem .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.sem .hero p.lede {
  font-size: 19px;
  max-width: 58ch;
  margin: 12px 0 0;
}
.sem .verse {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 16px;
  font-style: italic;
  color: var(--muted);
  max-width: 44ch;
}
.sem .verse cite {
  display: block;
  font-style: normal;
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-top: 6px;
  color: var(--brass);
}
.sem .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 22px;
}
.sem .stat {
  background: var(--surface);
  padding: 14px 16px;
}
.sem .stat b {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.sem .stat span {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sem .grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.sem .prog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sem .prog-card .abbr {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.sem .prog-card.declared {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}
.sem .bar {
  height: 8px;
  border-radius: 999px;
  background: var(--sunk);
  overflow: hidden;
}
.sem .bar i {
  display: block;
  height: 100%;
  background: var(--brass);
  border-radius: 999px;
}
.sem .prog-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sem .catalog {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.sem .filters {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 76px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--f-ui);
}
.sem .filters fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sem .filters legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sem .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 0;
}
.sem .chk input {
  accent-color: var(--brass);
  width: 16px;
  height: 16px;
  margin: 0;
}
.sem .chk .n {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sem .search {
  position: relative;
}
.sem .search input {
  width: 100%;
  font-family: var(--f-ui);
  font-size: 17px;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.sem .search input:focus {
  outline: 2px solid var(--brass);
  border-color: transparent;
}
.sem .search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.sem .results-meta {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sem .dept-group h2 {
  font-size: 15px;
  letter-spacing: 0.12em;
  padding: 18px 0 6px;
  color: var(--muted);
}
.sem .row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
  width: 100%;
}
.sem .row:hover {
  background: var(--surface);
}
.sem .row .code {
  font-size: 16px;
  padding-top: 2px;
}
.sem .row .title {
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.3;
}
.sem .row .desc {
  color: var(--muted);
  font-size: 15px;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sem .row .side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.sem .row .cr {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--muted);
}
.sem .empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.sem .crumb {
  margin-bottom: 18px;
}
.sem .course-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.sem .course-head .code-big {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.sem .course-head h1 {
  margin-top: 6px;
}
.sem .course-head .desc {
  font-size: 19px;
  margin-top: 12px;
  max-width: 62ch;
}
.sem .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.sem .panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-family: var(--f-ui);
  font-size: 14.5px;
}
.sem .panel dt {
  color: var(--muted);
}
.sem .panel dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.sem .banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 6px;
  margin-top: 22px;
  font-family: var(--f-ui);
  font-size: 15.5px;
}
.sem .banner.lock {
  background: var(--lock-soft);
  color: var(--ink);
  border: 1px solid var(--lock);
}
.sem .banner.done {
  background: var(--ok-soft);
  border: 1px solid var(--ok);
}
.sem .banner b {
  display: block;
  font-size: 16px;
}
.sem .prq {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sem .prq button {
  cursor: pointer;
}
.sem .units {
  counter-reset: u;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.sem .unit {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.sem .unit .num {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
}
.sem .unit .num small {
  display: block;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
}
.sem .unit h3 {
  margin-bottom: 6px;
}
.sem .unit .ref {
  font-family: var(--f-ui);
  font-size: 14.5px;
  font-weight: 500;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.sem .unit p {
  margin: 0;
  max-width: 66ch;
}
.sem .unit .mark {
  margin-top: 12px;
}
.sem .unit.read .num {
  color: var(--ok);
}
.sem .toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}
.sem .toggle[aria-pressed='true'] {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok);
}
.sem .toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.sem .books {
  margin: 0;
  padding-left: 20px;
}
.sem .books li {
  margin: 4px 0;
}
.sem .cols2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.sem .exam ol {
  padding-left: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sem .exam fieldset {
  border: 0;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sem .exam label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}
.sem .exam label:hover {
  background: var(--sunk);
}
.sem .exam input {
  accent-color: var(--brass);
  margin-top: 6px;
}
.sem .exam .wrong {
  border-color: var(--lock);
  background: var(--lock-soft);
}
.sem .exam .right {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.sem .exam-locked {
  opacity: 0.55;
  pointer-events: none;
}
.sem .result {
  font-family: var(--f-ui);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 4px;
}
.sem .result.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.sem .result.no {
  background: var(--lock-soft);
  color: var(--lock);
}
.sem .checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 15px;
}
.sem .checks div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sem .checks .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  display: grid;
  place-items: center;
}
.sem .checks .on .dot {
  background: var(--ok);
  border-color: var(--ok);
}
.sem .checks .on .dot::after {
  content: '';
  width: 6px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.sem .tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.sem table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-ui);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.sem th,
.sem td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sem th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--sunk);
}
.sem td.t {
  white-space: normal;
  min-width: 220px;
}
.sem tfoot td {
  font-weight: 600;
  border-bottom: 0;
}
.sem .diploma {
  border: 2px solid var(--brass);
  outline: 1px solid var(--brass);
  outline-offset: 5px;
  border-radius: 2px;
  background: var(--surface);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 12px 6px;
}
.sem .diploma .inst {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.14em;
}
.sem .diploma .who {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.04em;
}
.sem .diploma .deg {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.06em;
}
.sem .diploma small {
  font-family: var(--f-ui);
  color: var(--muted);
  font-size: 12.5px;
  max-width: 52ch;
}
.sem input.text,
.sem textarea.text {
  width: 100%;
  font-family: var(--f-ui);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
.sem textarea.text {
  min-height: 90px;
  font-size: 13px;
  word-break: break-all;
}
.sem .row-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.sem .prose {
  max-width: 68ch;
}
.sem .prose p {
  margin: 0 0 14px;
}
.sem .prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.sem .prose li {
  margin: 4px 0;
}
.sem .levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sem .level {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 4px;
  padding: 16px;
  min-width: 0;
}
.sem .level .range {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
}
.sem .toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--f-ui);
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--brass);
  z-index: 20;
  max-width: calc(100% - 32px);
}
@media (max-width: 860px) {
  .sem .catalog,
  .sem .course-head,
  .sem .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .sem .filters {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 24px;
  }
  .sem .filters fieldset {
    min-width: 140px;
  }
  .sem .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sem .levels,
  .sem .cols2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .sem nav.tabs {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
@media (max-width: 520px) {
  .sem .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sem .row .side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .sem .unit {
    grid-template-columns: minmax(0, 1fr);
  }
  .sem {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sem .bar i {
    transition: width 0.5s ease;
  }
}

/* Heart Turn Global additions: photos, the page's welcome, and the classroom link */
.sem {
  padding-bottom: 48px;
}
.sem .sem-bar {
  border-radius: 0;
}
.sem .brand b {
  font-size: 22px;
  letter-spacing: 0.06em;
}
.sem .hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  padding: clamp(22px, 4vw, 44px);
  margin-top: 22px;
  background: #0f3d7a;
}
.sem .hero > * {
  position: relative;
  z-index: 1;
}
.sem .hero .eyebrow {
  color: #ffd27a;
}
.sem .hero h1 {
  color: #fff;
}
.sem .hero .lede {
  color: #eaf3fa;
}
.sem .hero .verse {
  color: #eaf3fa;
  border-color: #f4b33f;
}
.sem .hero .verse cite {
  color: #ffd27a;
}
.sem .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.sem .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 30, 64, 0.94) 0%, rgba(9, 30, 64, 0.82) 45%, rgba(9, 30, 64, 0.45) 100%);
}
.sem .c-photo {
  position: relative;
  height: clamp(150px, 24vw, 240px);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 4px;
  background: #0f3d7a;
}
.sem .c-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sem .c-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font: 12px/1.2 var(--f-ui);
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
}
.sem .c-photo figcaption a {
  color: #fff;
}
.sem .dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.sem .dept {
  position: relative;
  display: block;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: #0f3d7a;
}
.sem .dept img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.sem .dept:hover img {
  transform: scale(1.04);
}
.sem .dept span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  color: #fff;
  font: 700 17px/1.15 var(--f-ui);
  background: linear-gradient(transparent, rgba(9, 30, 64, 0.88));
}
.sem .dept small {
  display: block;
  font-weight: 500;
  font-size: 12.5px;
  opacity: 0.85;
}
.sem .classroom {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--prog-soft);
  border: 1px solid var(--line);
}
.sem .classroom h3 {
  margin: 0 0 4px;
}
.sem .credit-note {
  font: 12.5px/1.4 var(--f-ui);
  color: var(--muted);
  margin-top: 22px;
}
/* the site's own .section and .section-head spacing is for its marketing pages, not this catalog */
.sem .section {
  padding: 0;
}
.sem .section-head {
  max-width: none;
  margin-bottom: 0;
}
.sem .hero h1 {
  max-width: 16em;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}
.sem .sem-notice {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--brass);
  border-radius: 4px;
  background: #fbf6ea;
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.5;
  color: #3b3324;
}

/* studying together (26 Nov 2026) */
.tg-sign {
  max-width: 460px;
}
.tg-sign label,
.tg-card label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}
.tg-sign input:not([type='checkbox']),
.tg-card input,
.tg-card select,
.tg-post textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #c9cfd6;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
  background: #fff;
}
.tg-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tg-card {
  padding: 18px;
  border: 1px solid #dde2e8;
  border-radius: 12px;
  background: #fff;
}
.tg-card h3 {
  margin: 0 0 6px;
}
.tg-card .btn {
  margin-top: 10px;
}
.tg-msg {
  min-height: 1.2em;
  margin: 8px 0 0;
}
.tg-code {
  align-self: center;
  font-size: 15px;
}
.tg-week {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #5bc2f7;
  border-radius: 6px;
  background: #f1f8fd;
}
.tg-roster {
  display: grid;
  gap: 10px;
}
.tg-mem {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  background: #fff;
}
.tg-mem .bar {
  margin: 0;
}
.tg-mem-s {
  font-size: 14px;
  color: #5a6370;
}
@media (max-width: 640px) {
  .tg-mem {
    grid-template-columns: 1fr auto;
  }
  .tg-mem .bar {
    grid-column: 1 / -1;
  }
}
.tg-post {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.tg-post .btn {
  justify-self: start;
}
.tg-msgp {
  padding: 12px 0;
  border-top: 1px solid #e3e7ec;
}
.tg-msgp small {
  color: #6b7480;
}
.tg-msgp p {
  margin: 4px 0 0;
}
.linkbtn.armed {
  color: #b42318;
  font-weight: 700;
}
.tg-ref {
  display: grid;
  gap: 2px;
  max-width: 460px;
  margin: 8px 0 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid #d6e2ef;
  border-left: 4px solid #1d4e89;
  border-radius: 10px;
  background: #f6f9fd;
  color: #0f2a4a;
  text-decoration: none;
}
.tg-ref:hover {
  border-color: #5bc2f7;
}
.tg-ref-find {
  border-left-color: #b08d3c;
  background: #fdf9ef;
}
.tg-ref-place {
  border-left-color: #2e6b3a;
  background: #f3faf4;
}
.tg-ref span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6370;
}
.tg-ref small {
  color: #5a6370;
}
.tg-call {
  background: #1d8a4e;
  border-color: #1d8a4e;
}
