/* Teaching page: personalised views. Loaded after quiet.css.
   Views are all visible without JS; teaching.js hides all but the chosen one. */

.tv .profile .links { border-top: 1px solid var(--line); }
.tv .profile a:focus-visible, .tv .col a:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; border-radius: 2px; }

/* ---- views ---- */
.tv .view { scroll-margin-top: 96px; }
.tv .view[hidden] { display: none !important; }
.tv .view.is-entering { animation: tv-fade .28s ease; }
@keyframes tv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .tv .view.is-entering { animation: none; } }

/* View headings: larger than the small-caps section rule used elsewhere. */
.col h2.v-title { font-variant: normal; text-transform: none; letter-spacing: -.005em;
  font-size: 34px; line-height: 1.15; font-weight: 600; border-bottom: 0; padding-bottom: 0; margin: 0 0 14px; }
.col h2.v-title:focus { outline: none; }
.col h2.v-title:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; border-radius: 2px; }
.tv .view > .kicker:first-child { margin-bottom: 8px; }

.col h3.sub { font-family: var(--ui-font); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin: 30px 0 10px; font-weight: 600; }

/* ---- context bar with "Change audience" ---- */
.tv-context { position: sticky; top: 70px; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 26px; padding: 8px 0; font-family: var(--ui-font); font-size: 14px;
  background: var(--background-color); border-bottom: 1px solid var(--line); }
.tv-context[hidden] { display: none; }
.tv-now { color: var(--heading-color); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-now-label { font-family: var(--mono-font); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-right: 6px; }
.col a.tv-change { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--accent-color); font-weight: 600; text-decoration: none; }
.col a.tv-change::before { content: "\2190\00a0"; }
.col a.tv-change:hover { text-decoration: underline; }

/* ---- chooser ---- */
.tv-ask { font-family: var(--ui-font); font-size: 15px; font-weight: 600; color: var(--heading-color); margin: 26px 0 10px !important; }
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 22px; }
.choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  width: 100%; min-height: 64px; padding: 14px 18px; text-align: left; cursor: pointer;
  font-family: var(--ui-font); color: var(--default-color);
  background: var(--surface-color); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .15s ease, background-color .15s ease; }
.choice::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; color: var(--ink-2); font-size: 18px; transition: transform .15s ease, color .15s ease; }
.choice:hover { border-color: var(--accent-color); }
.choice:hover::after { color: var(--accent-color); transform: translateX(3px); }
.choice:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; border-color: var(--accent-color); }
.choice .c-t { grid-column: 1; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--heading-color); }
.choice .c-d { grid-column: 1; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
@media (prefers-reduced-motion: reduce){ .choice, .choice::after { transition: none; } .choice:hover::after { transform: none; } }

/* ---- materials list: one row per file, whole row is the link ---- */
.mats { margin: 0 0 18px; border-top: 1px solid var(--line); }
.mats li { margin: 0; border-bottom: 1px solid var(--line); }
.col a.mat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  min-height: 48px; padding: 12px 2px; text-decoration: none; }
.mat .m-t { font-family: var(--heading-font); font-size: 19px; font-weight: 600; color: var(--heading-color); line-height: 1.35; }
.mat .m-f { font-family: var(--mono-font); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.col a.mat:hover .m-t { color: var(--accent-color); }
.col a.mat:hover .m-f { color: var(--accent-color); }

/* ---- help line, portal, lists ---- */
.tv-help { font-family: var(--ui-font); font-size: 15.5px; line-height: 1.6; margin-top: 26px !important;
  padding: 10px 0 10px 16px; border-left: 2px solid var(--accent-color); }
.tv-help a { font-weight: 600; }
.portal { margin: 26px 0 0; padding-top: 2px; }
.portal .kicker { margin-bottom: 8px; }
.tv .body ul { padding-left: 1.2em; margin: 0 0 1em; }
.tv .body li { font-size: 16px; line-height: 1.6; margin-bottom: .4em; }
.themes { padding-left: 1.3em; margin: 0 0 1em; font-size: 16.5px; }
.themes li { margin-bottom: .25em; }
details.more > summary { padding: 6px 0; }
details.more { margin: 8px 0 1em; }

@media (max-width: 860px){
  .tv .profile.page { display: block; }
  .tv .profile h1 { margin-bottom: 4px; }
  .tv .profile .role { margin-bottom: 8px; }
  .tv .profile .links { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; }
  .tv-context { top: 62px; }
  .col h2.v-title { font-size: 29px; }
}
@media (max-width: 520px){
  .choice { padding: 13px 14px; }
  .mat .m-t { font-size: 18px; }
}
