/* teach.css — For Teachers page and teach/<course>.html course pages.
   Loaded after /style.css; uses its custom properties. */

.tc-wrap { max-width: 980px; margin: 0 auto; }
.tc-crumb { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.tc-crumb a { color: var(--accent); text-decoration: none; }
.tc-crumb a:hover { text-decoration: underline; }

/* Course page: lesson list */
.tc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tc-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.tc-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.tc-main { min-width: 0; }
.tc-main a.tc-title { font-weight: 600; font-size: 16px; color: var(--text-primary); text-decoration: none; line-height: 1.35; }
.tc-main a.tc-title:hover { color: var(--accent); text-decoration: underline; }
.tc-has { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tc-tag { font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); }
.tc-tag.q { background: rgba(199,125,0,.10); color: #8a5600; }
.tc-tag.l { background: rgba(43,108,176,.10); color: #22558a; }
.tc-tag.g { background: var(--accent2-soft); color: var(--accent2); }
.tc-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; border-radius: 8px;
  border: 1.5px solid var(--text-primary); background: var(--bg-card); color: var(--text-primary); font: 600 13.5px 'DM Sans', sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.tc-btn:hover { background: var(--bg-secondary); }
.tc-btn.tc-pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.tc-btn.tc-pri:hover { background: var(--accent-dark); }
.tc-btn:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.tc-h2 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--text-primary); margin: 2.2rem 0 .9rem; }
.tc-note { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-top: 1.2rem; }
.tc-boards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .6rem; }
.tc-boards a, .tc-boards span { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-accent); color: var(--accent); text-decoration: none; background: var(--bg-card); }
.tc-boards span { background: var(--accent); color: #fff; border-color: var(--accent); }
.tc-boards a:hover { background: var(--accent-soft); }

/* For Teachers page */
.tc-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.tc-way { background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; }
.tc-way::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.tc-way.tc-two::before { background: var(--accent2); }
.tc-way h3 { font-family: 'Playfair Display', serif; font-size: 21px; color: var(--text-primary); margin-bottom: 6px; }
.tc-way p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; }
.tc-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; font-size: 13.5px; font-weight: 600; }
.tc-flow b { padding: 6px 12px; border-radius: 8px; background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; }
.tc-flow i { font-style: normal; color: var(--text-muted); }
.tc-steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.tc-steps li { counter-increment: s; display: flex; gap: 10px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; }
.tc-steps li::before { content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  font: 500 12px 'DM Mono', monospace; display: flex; align-items: center; justify-content: center; }
.tc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.tc-fact { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tc-fact strong { display: block; font-size: 15px; color: var(--text-primary); margin-bottom: 4px; }
.tc-fact span { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* Course directory */
.tc-dir { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 12px; }
.tc-lv { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tc-lv > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tc-lv > summary::-webkit-details-marker { display: none; }
.tc-lv > summary::after { content: '+'; font-family: 'DM Mono', monospace; font-size: 22px; color: var(--accent); }
.tc-lv[open] > summary::after { content: '\2212'; }
.tc-lv > summary small { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: auto; }
.tc-subj { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--border); align-items: baseline; }
.tc-subj > b { font-size: 14.5px; color: var(--text-primary); font-weight: 600; }
.tc-subj .tc-boards { margin-top: 0; }
.tc-subj .tc-boards a { font-size: 13px; padding: 4px 10px; }

@media (max-width: 700px) {
  .tc-item { grid-template-columns: 32px minmax(0, 1fr); }
  .tc-n { width: 28px; height: 28px; font-size: 12px; }
  .tc-act { grid-column: 1 / -1; justify-content: flex-start; }
  .tc-subj { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .tc-btn { flex: 1 1 auto; padding: 7px 10px; font-size: 13px; } .tc-item { padding: 12px; gap: 10px; } }
