/* Content (Nov 30): captions in the photo viewer. Her ask: a photo you click pops up with a caption.
   Quiet sans text under the photo, the "2 of 3" just below it, no box or line, on a darker backdrop. */
.vw-back { background: rgba(10, 9, 8, 0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vw-fig figcaption { margin: 14px auto 0; max-width: 40em; padding: 0 16px; color: #E8E0D3; font-family: var(--sans); font-size: 16px; line-height: 1.45; letter-spacing: 0.01em; text-align: center; }
.vw-fig figcaption[hidden] { display: none; }
.vw-fig .vw-count { position: static; translate: none; margin: 6px 0 0; color: #A79E91; font-size: 13px; letter-spacing: 0.04em; text-align: center; }
.vw-fig .vw-count:empty { display: none; }
@media (max-width: 640px) {
  .vw-fig img { max-height: 72vh; }
  .vw-fig figcaption { font-size: 15px; margin-top: 12px; }
}

/* Content (Nov 30): Device of Tomorrow Capital's mark (the V, C and blue dot from its own site), at Pantheon's logo height */
.tile h3 .e-logo.dot-logo { height: clamp(24px, 2.1vw, 30px); width: auto; max-width: none; margin-right: 10px; }   /* Dec 1: the "DOT CAPITAL" wordmark from their LinkedIn, in their navy */
[data-theme="dark"] .tile h3 .e-logo.dot-logo { filter: brightness(0) invert(0.94) sepia(0.08); }

/* Content (Nov 30): Irvine Unified's figure mark (from the district's own print logo on iusd.org). It's black, so it turns light in dark mode */
[data-theme="dark"] .e-logo[src*="iusd"] { filter: brightness(0) invert(0.94) sepia(0.08); }

/* Content (Nov 30): all debate results as a sideways carousel (replaces the folded list).
   Cards are sheet-white on cream, no lines. The track scrolls natively, so it never takes the page's vertical scroll. */
.rc { margin: 0; min-width: 0; }
.rc-title { margin: 0 0 14px; }
.rc-track { display: flex; gap: var(--gap2, 16px); margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.rc.at-end .rc-track { -webkit-mask-image: none; mask-image: none; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-track:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.rc-card { flex: 0 0 clamp(230px, 22vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; background: var(--sheet); }
.rc-logo { display: flex; align-items: center; height: 26px; margin-bottom: 6px; }
.rc-logo img { max-height: 26px; max-width: 76px; width: auto; height: auto; object-fit: contain; }
.rc-result { font-family: var(--sans); font-size: clamp(26px, 2.2vw, 32px); font-weight: 650; line-height: 1.05; color: var(--ink); }
.rc-card:first-child .rc-result { color: var(--acc); }
.rc-name { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.rc-name span { font-weight: 400; color: var(--muted); }
.rc-why { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }
.rc-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.rc-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sheet); color: var(--ink); font-size: 18px; cursor: pointer; transition: opacity 0.2s ease, background-color 0.2s ease; }
.rc-btn:hover { background: var(--page-2); }
.rc-btn:disabled { opacity: 0.35; cursor: default; }
.rc-dots { display: flex; gap: 7px; }
.rc-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); opacity: 0.2; cursor: pointer; transition: opacity 0.2s ease, transform 0.2s ease; }
.rc-dot.on { opacity: 0.75; transform: scale(1.15); }
[data-theme="dark"] .rc-logo img[src*="stanford"], [data-theme="dark"] .rc-logo img[src*="yale"], [data-theme="dark"] .rc-logo img[src*="emory"], [data-theme="dark"] .rc-logo img[src*="toc-icon"] { filter: brightness(0) invert(0.94) sepia(0.08); }
@media (max-width: 640px) {
  .rc-card { flex-basis: 76%; padding: 16px 16px 18px; }
  .rc-result { font-size: 26px; }
  .rc-btn { display: none; }
}

/* ---------- Debate accessibility after Rancho and Turtle Rock moved to Civics (Dec 1) ----------
   Two cards side by side, the same build: photo on top at 16:9, words under it, both the same height. */
@media (min-width: 641px) {
  .teach { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .teach > .teams { grid-column: auto; grid-template-columns: 1fr; }
  .teach .teams li.has-photos { grid-template-columns: 1fr; align-content: start; height: 100%; }
  .teach .teams li.has-photos .flow { aspect-ratio: 16 / 9; }
  .teach .teams li.has-photos .tm-text { align-self: start; padding: 16px 20px 20px; }
}

/* ---------- Debate results, cleaner (Dec 1) ----------
   Her note: "the results page still looks a little unclean for debate right now it's like just a bad alignment mechanism".
   On computers the cards fill the content width exactly (four whole cards, three on smaller laptops), with no half card or
   fade at the edge. Every card has its lines on the same rows (logo, result, the name on up to two lines, then the line about
   it), the first card is ink like the rest (garnet is only for things you press), and the arrows and dots sit at the right
   end of the title row. Phones keep the swipe with the dots under it. */
.rc-card:first-child .rc-result { color: var(--ink); }
.rc-name { min-height: 2.6em; }
@media (min-width: 900px) {
  .rc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 20px; }
  .rc-title { grid-column: 1; grid-row: 1; }
  .rc-ctl { grid-column: 2; grid-row: 1; margin: 0 0 14px; }
  .rc-track { grid-column: 1 / -1; grid-row: 2; -webkit-mask-image: none; mask-image: none; }
  .rc-card { flex: 0 0 calc((100% - 2 * var(--gap2, 16px)) / 3); }
}
@media (min-width: 1180px) {
  .rc-card { flex-basis: calc((100% - 3 * var(--gap2, 16px)) / 4); }
}

/* ---------- Bill links (Dec 1) ----------
   Her note: "add pictures of the specific bills under gun policy or some ca leginfo hyperlinks". Each bill card ends with
   "Read the bill", which opens the bill's own page on leginfo.legislature.ca.gov in a new tab. Garnet, since you press it. */
#gun-policy .bill2-body { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.bill2-link { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 12px; color: var(--acc); font-size: 15.5px; font-weight: 600; text-decoration: none; }
.bill2-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bill2-link span { font-family: var(--sans); }
