/* peertube-plugin-everyschooltv-auth — login page styling.
 *
 * PeerTube renders external-auth buttons on /login as
 *   .external-login-blocks > div > a.external-login-block
 * with a small outlined, auto-width pill (border 1px, min-height 35px). We
 * make our "Sign in with Google" button match the primary Login submit button
 * (.peertube-button.primary-button.w-100): full width and the same height,
 * which PeerTube derives from --input-y-padding + 1rem font (no fixed height).
 * We keep the outlined look (secondary to the purple primary) and add the
 * official Google "G" mark.
 *
 * Loaded globally via package.json#css. To restyle, edit this file, git pull on
 * the plugin-source checkout, and hard-refresh (no restart needed once the
 * plugin is symlink-installed). */

.external-login-blocks {
  /* Let the buttons span the form width like the inputs/submit above. */
  min-width: 0;
}

.external-login-blocks > div {
  display: flex;
  flex-direction: column;
}

.external-login-block {
  /* Match the primary Login button's box: full width + same height. */
  width: 100%;
  margin: 10px 0 0 0;
  /* Height parity: same padding + font as @mixin peertube-button, and drop the
     hardcoded 35px floor so padding alone drives height (as it does for the
     submit button). */
  min-height: 0;
  padding: var(--input-y-padding) var(--input-x-padding);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--input-border-radius);
  /* Space between the logo and the label. */
  gap: 10px;
}

.external-login-block::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTI0IDkuNWMzLjU0IDAgNi43MSAxLjIyIDkuMjEgMy42bDYuODUtNi44NUMzNS45IDIuMzggMzAuNDcgMCAyNCAwIDE0LjYyIDAgNi41MSA1LjM4IDIuNTYgMTMuMjJsNy45OCA2LjE5QzEyLjQzIDEzLjcyIDE3Ljc0IDkuNSAyNCA5LjV6Ii8+PHBhdGggZmlsbD0iIzQyODVGNCIgZD0iTTQ2Ljk4IDI0LjU1YzAtMS41Ny0uMTUtMy4wOS0uMzgtNC41NUgyNHY5LjAyaDEyLjk0Yy0uNTggMi45Ni0yLjI2IDUuNDgtNC43OCA3LjE4bDcuNzMgNmM0LjUxLTQuMTggNy4wOS0xMC4zNiA3LjA5LTE3LjY1eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDUiIGQ9Ik0xMC41MyAyOC41OWMtLjQ4LTEuNDUtLjc2LTIuOTktLjc2LTQuNTlzLjI4LTMuMTQuNzYtNC41OWwtNy45OC02LjE5Qy45MiAxNi40NiAwIDIwLjEyIDAgMjRjMCAzLjg4LjkyIDcuNTQgMi41NiAxMC43OGw3Ljk3LTYuMTl6Ii8+PHBhdGggZmlsbD0iIzM0QTg1MyIgZD0iTTI0IDQ4YzYuNDggMCAxMS45My0yLjEzIDE1Ljg5LTUuODFsLTcuNzMtNmMtMi4xNSAxLjQ1LTQuOTIgMi4zLTguMTYgMi4zLTYuMjYgMC0xMS41Ny00LjIyLTEzLjQ3LTkuOTFsLTcuOTggNi4xOUM2LjUxIDQyLjYyIDE0LjYyIDQ4IDI0IDQ4eiIvPjxwYXRoIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoNDh2NDhIMHoiLz48L3N2Zz4K");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* peertube-plugin-everyschooltv — visual styles for plugin-injected elements.
 *
 * Every selector is namespaced under `.everyschooltv-injection` so we never
 * collide with PeerTube core CSS. The accent color cascades from PeerTube's
 * --primary, which core/theme populates from admin branding settings.
 */

:root {
  --everyschooltv-accent: var(--primary);
}

/* Apply the school accent to the player's progress bar.
 * The video.js progress bar is a deep selector tree; we target the played
 * region (the part that fills in as you watch) and the slider knob. */
.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background-color: var(--everyschooltv-accent) !important;
}
.video-js .vjs-slider:focus,
.video-js .vjs-control:focus {
  box-shadow: 0 0 0 2px var(--everyschooltv-accent);
}

/* ── Watermark ────────────────────────────────────────────────────────── */
.everyschooltv-injection--watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.everyschooltv-injection--watermark[data-position="top-left"] { right: auto; left: 12px; }
.everyschooltv-injection--watermark[data-position="bottom-right"] { top: auto; bottom: 12px; }
.everyschooltv-injection--watermark[data-position="bottom-left"] { top: auto; bottom: 12px; right: auto; left: 12px; }
.everyschooltv-injection--watermark img {
  height: 48px;
  width: auto;
  max-width: 160px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.video-js:hover .everyschooltv-injection--watermark { opacity: 1; }

/* ── Pre-roll overlay ─────────────────────────────────────────────────── */
.everyschooltv-injection--preroll {
  position: absolute;
  inset: 0;
  /* Above video.js chrome — the native control bar was overlapping the skip
     button (first prod pre-roll, 2026-08-20). */
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.everyschooltv-injection--preroll video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.everyschooltv-injection--preroll-clickthrough {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.everyschooltv-injection--preroll-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--everyschooltv-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  pointer-events: none;
}
.everyschooltv-injection--preroll-skip {
  position: absolute;
  /* Clear of the native control bar strip even when it paints. */
  bottom: 64px;
  right: 16px;
  z-index: 3;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: 1px solid var(--everyschooltv-accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
}
.everyschooltv-injection--preroll-unmute {
  position: absolute;
  bottom: 64px;
  left: 16px;
  z-index: 3;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.everyschooltv-injection--preroll-skip:disabled {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}
.everyschooltv-injection--preroll-skip:hover:not(:disabled) {
  background: var(--everyschooltv-accent);
  color: #fff;
}

/* ── Browse-card ad as a native grid cell (channel grid + watch recommended) ──
   Blends with PeerTube's video miniatures: 16:9 thumbnail + title + subtitle.
   The whole card sits on the instance's card background so it matches the
   surrounding video cards — schools theme `.video-miniature` with
   `var(--bg-secondary)` + a shadow; we key off the same var (transparent
   fallback on a vanilla instance, where video cards are also bare). Square
   corners to match the surrounding video cards. */
.everyschooltv-injection--grid-ad {
  /* Fill the full cell height so the card background reaches the bottom like
     the (taller, 2-line-title) video cards in the same row. */
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-secondary, transparent);
  /* Square corners to match the instance's video cards (theme keeps 90°). */
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.everyschooltv-injection--grid-ad-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--mainForegroundColor, inherit);
}
.everyschooltv-injection--grid-ad-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(127, 127, 127, 0.15);
}
.everyschooltv-injection--grid-ad-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  /* Explicit: the description-card media wrapper sets line-height:0 (inline
     image gap), which the badge would inherit — collapsing its box so the
     background painted as a 2px strip through the text. */
  line-height: 1.6;
  background: var(--everyschooltv-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
}
.everyschooltv-injection--grid-ad-caption {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.everyschooltv-injection--grid-ad-caption strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.everyschooltv-injection--grid-ad-caption span {
  font-size: 12px;
  opacity: 0.7;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Watch-page recommended list in ROW mode ─────────────────────────────
   PeerTube flips the "Other videos" miniatures to compact horizontal rows
   when the window is ≤1100px, marking the container .display-as-row
   (video-watch.component.ts displayOtherVideosAsRow — "use the same value
   as in the SASS file"). Key off THEIR class so the ad flips exactly when
   its neighbors do, and mirror the row thumbnail sizes from PeerTube's
   _variables.scss: 280×153, → 201×114 ≤ $small-view (800px), → 125×71
   ≤ $mobile-view (500px). Without this the ad kept its vertical full-width
   card shape between rows and dwarfed them on mobile. */
.other-videos.display-as-row .everyschooltv-injection--grid-ad {
  height: auto;
}
.other-videos.display-as-row .everyschooltv-injection--grid-ad-link {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.other-videos.display-as-row .everyschooltv-injection--grid-ad-thumb {
  flex: 0 0 auto;
  width: 280px;
  min-width: 280px;
  height: 153px;
  aspect-ratio: auto;
}
.other-videos.display-as-row .everyschooltv-injection--grid-ad-caption {
  /* Match the breathing room the real row miniatures give their text —
     flush-top/flush-left text read as cramped next to them (Alex, mobile
     screenshot 2026-08-20). */
  padding: 10px 12px 10px 6px;
}
@media screen and (max-width: 800px) {
  .other-videos.display-as-row .everyschooltv-injection--grid-ad-thumb {
    width: 201px;
    min-width: 201px;
    height: 114px;
  }
}
@media screen and (max-width: 500px) {
  .other-videos.display-as-row .everyschooltv-injection--grid-ad-thumb {
    width: 125px;
    min-width: 125px;
    height: 71px;
  }
}

/* ── Description ad — a "Sponsored" SECTION below the video metadata block
   (never inside a creator-owned element). Deliberately NOT a card: no
   background, no radius — just another section in the info flow under the
   video, opened by the same horizontal rule the comments section uses
   (bootstrap .border-top vars), so the page reads
   metadata → line → Sponsored → line → comments. ─────────────────────── */
.everyschooltv-injection--description-ad {
  margin-top: 16px;
  border-top: var(--bs-border-width, 1px) solid var(--bs-border-color, rgba(128, 128, 128, 0.3));
  padding: 1rem 0 14px;
}
.everyschooltv-injection--sponsored-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 10px;
}
.everyschooltv-injection--description-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.everyschooltv-injection--description-card-media {
  position: relative;
  display: inline-block;
  line-height: 0;
}
/* This surface wears the badge top-LEFT (Alex's call); grid cards keep
   their top-right placement from the base class. */
.everyschooltv-injection--description-card-media .everyschooltv-injection--grid-ad-badge {
  right: auto;
  left: 6px;
}
.everyschooltv-injection--description-card-image {
  max-height: 120px;
  max-width: 320px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}
.everyschooltv-injection--description-card-body {
  flex: 1 1 220px;
  min-width: 0;
}
.everyschooltv-injection--description-card-text {
  font-size: 14px;
  line-height: 1.5;
}
.everyschooltv-injection--description-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--everyschooltv-accent);
  text-decoration: none;
  font-weight: 500;
}
.everyschooltv-injection--description-link:hover { text-decoration: underline; }

/* ===== HOME DISCOVERY GRID ===== */
/* The scored-grid home page rendered at /p/home (the instance landing page). */

.everyschooltv-home {
  display: block;
  /* No top padding — the first row of cards sits flush with the top. */
  padding: 0 16px 16px;
}

.es-home-status {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-secondary, #8e8e93);
  font-size: 0.9rem;
}

.es-grid {
  margin-bottom: 12px;
}

.es-sentinel {
  height: 1px;
}

/* Cards — a thumbnail fills the slot; title + badges overlay it.
 * Square corners to match the app's home grid (content cards are .clipped()),
 * ad cards included — they read as part of the grid, distinguished by the "Ad"
 * badge rather than a different corner radius. */
.es-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-secondary, rgba(128, 128, 128, 0.15));
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.es-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.es-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
/* Subtle gradient so overlaid text stays legible over any thumbnail. */
.es-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.es-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
}
.es-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.es-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
/* Ad cards carry two secondary lines: the advertiser's description (shown by
 * default) and the sponsor name (shown only in the 2-column mobile layout,
 * which has no room for a free-form description). */
.es-card--ad .es-sub--sponsor {
  display: none;
}
.es-grid--cols2 .es-card--ad .es-sub--desc {
  display: none;
}
.es-grid--cols2 .es-card--ad .es-sub--sponsor {
  display: block;
}

.es-badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.es-badge--live {
  /* Top-right, opposite the avatar badge — matches the app's status-badge slot. */
  top: 8px;
  right: 8px;
  left: auto;
  background: #ff3b30;
  box-shadow: 0 2px 10px rgba(255, 59, 48, 0.5);
}
/* Upcoming-live center overlay: dims the thumbnail so the card doesn't read as
 * watchable-now, with the start time front and center. Non-interactive — the
 * card's own link still handles the click. */
.es-upcoming {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: none;
}
.es-upcoming-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.es-upcoming-time {
  font-size: 1.05rem;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.es-badge--duration {
  top: auto;
  bottom: 8px;
  left: auto;
  right: 8px;
}
.es-badge--ad {
  /* Dark translucent (not the old light fill) so the white "Sponsored" text
   * stays legible over light/white creatives, not just dark ones. */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

/* Top-right circular badge: channel avatar (background-image) or a glyph
 * fallback. 32px circle on a dark scrim, matching the app's card badge. */
.es-avatar {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.8);
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.es-avatar--glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.es-resume {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.es-resume-fill {
  height: 100%;
  background: var(--primary, #ff3b30);
}

/* Channel cards have no thumbnail — center the name on the accent surface. */
.es-card--channel {
  background: linear-gradient(135deg, var(--bg-secondary-600, rgba(128, 128, 128, 0.2)), var(--bg-secondary-300, rgba(128, 128, 128, 0.12)));
}
.es-channel-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  text-align: center;
}
/* With a banner background, dim it so the centered logo + name stay legible. */
.es-card--channel-banner .es-channel-inner {
  background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58));
}
/* Channel logo as a centered profile circle (glyph fallback when no avatar). */
.es-channel-avatar {
  width: 30%;
  max-width: 84px;
  min-width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.es-channel-avatar--glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.92);
}
.es-channel-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.es-channel-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #8e8e93);
}

/* ── In-app feedback form (client route /p/feedback) ─────────────────────── */
.evs-feedback {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.evs-feedback h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0 0 4px;
}
.evs-feedback,
.evs-feedback h1 {
  color: var(--fg);
}
.evs-feedback-intro {
  color: var(--fg-350, var(--fg));
  opacity: 0.85;
  margin: 0 0 20px;
}
.evs-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.evs-feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.evs-feedback-field > span {
  font-weight: 600;
  font-size: 0.9rem;
}
.evs-feedback-field > span {
  color: var(--fg);
}
.evs-feedback-field input,
.evs-feedback-field select,
.evs-feedback-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--input-border-radius, 8px);
  /* PeerTube 8 design tokens — theme-aware so the field matches the (dark or
     light) instance theme instead of forcing a white background. */
  border: 1px solid var(--input-border-color, var(--border-primary, rgba(127, 127, 127, 0.4)));
  background: var(--input-bg, var(--bg-secondary-450, var(--bg)));
  color: var(--input-fg, var(--fg));
  font: inherit;
  box-sizing: border-box;
}
.evs-feedback-field input::placeholder,
.evs-feedback-field textarea::placeholder {
  color: var(--input-placeholder-color, var(--fg-350, #8e8e93));
}
.evs-feedback-field textarea {
  resize: vertical;
  min-height: 120px;
}
.evs-feedback-submit {
  align-self: flex-start;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: var(--primary, var(--mainColor, #1e40af));
  color: var(--on-primary, #fff);
  font-weight: 600;
  cursor: pointer;
}
.evs-feedback-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.evs-feedback-status:empty {
  display: none;
}
.evs-feedback-status {
  font-size: 0.9rem;
}
.evs-feedback-status[data-tone='success'] { color: #16a34a; }
.evs-feedback-status[data-tone='error'] { color: #dc2626; }

/* ── Left menu: bottom utility group + take over the "powered by" footer ───── */
/* Hide PeerTube's default attribution footer. Its intended `.powered-by` class
   is dropped by a duplicate-`class` template bug (it renders as a bare
   `.mt-3.mx-4` div), so target it structurally: the only direct child of
   .menu-container that isn't the scroll wrapper. PeerTube is credited on the
   /p/about page instead (AGPLv3, option A). */
.menu-container > div:not(.main-menu-wrapper) { display: none !important; }

/* PeerTube reserves 75px under the menu for that footer (max-height: calc(100%
   - 75px)); now that it's hidden, reclaim the space so the menu fills its full
   height and the utility group can pin to the very bottom. */
.menu-container .main-menu-wrapper { max-height: 100% !important; height: 100% !important; }
.menu-container .main-menu-scrollbar { height: 100%; }
.menu-container .main-menu { display: flex; flex-direction: column; min-height: 100%; }
.menu-container nav { display: flex; flex-direction: column; flex: 1 1 auto; }

/* The Feedback + About group (section key `evs-utility`) pins to the bottom,
   muted — a secondary "utility" menu below the primary links. */
.menu-container .evs-utility { margin-top: auto; padding-top: 8px; }
.menu-container .evs-utility > li > .block-title { display: none; }
.menu-container .evs-utility .menu-link { opacity: 0.72; font-size: 0.95em; }
.menu-container .evs-utility .menu-link:hover { opacity: 1; }

/* (1) Persistent left menu only (> $menu-overlay-view = 1200px, where the menu
   has its left margin + rounded card). Lift it off the bottom edge by the same
   gap as its left margin (--menu-margin-left, 2rem), so it doesn't touch bottom.
   Below 1200px PeerTube renders the full-screen overlay — leave that alone. */
@media screen and (min-width: 1201px) {
  .menu-container {
    height: calc(100vh - var(--header-height) - var(--menu-margin-left)) !important;
  }
}

/* (2) Tighten menu spacing + text so more links fit before a scrollbar appears
   (the menu is now full-height). Section titles smaller; less padding around
   links, the menu, and between sections. */
.menu-container .main-menu { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.menu-container .block-title { font-size: 12px !important; margin-bottom: 0.3rem !important; }
.menu-container .menu-link { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; font-size: 13.5px !important; }
.menu-container .menu-block:not(:last-child)::after { margin-top: 0.6rem !important; margin-bottom: 0.6rem !important; }

/* Subtle scrollbar for when a school's links overflow the (now full-height)
   menu. PeerTube hides its scrollbar until hover, then falls back to the OS
   default (the chunky/ugly bit) — replace that with a thin, muted one. */
.menu-container .main-menu-scrollbar,
.menu-container .main-menu-scrollbar:hover,
.menu-container .main-menu-scrollbar:focus {
  scrollbar-width: thin;
  scrollbar-color: var(--input-border-color, rgba(127, 127, 127, 0.45)) transparent;
}
.menu-container .main-menu-scrollbar::-webkit-scrollbar { width: 8px; }
.menu-container .main-menu-scrollbar::-webkit-scrollbar-track { background: transparent; }
.menu-container .main-menu-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--input-border-color, rgba(127, 127, 127, 0.4));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.menu-container .main-menu-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: var(--fg-350, rgba(127, 127, 127, 0.65));
  background-clip: content-box;
}

/* ── About page (client route /p/about) ───────────────────────────────────── */
.evs-about {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  color: var(--fg);
}
.evs-about h1 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin: 0 0 16px; }
/* Social-page header: banner cover + overlapping circular logo. */
.evs-about-header {
  position: relative;
  margin: 0 0 52px;
}
.evs-about-cover {
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 140px;
  max-height: 260px;
  border-radius: 14px;
  background-color: var(--bg-secondary, rgba(127, 127, 127, 0.15));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* No banner set → a subtle branded gradient still backs the logo. */
.evs-about-cover-empty {
  background-image: linear-gradient(135deg, var(--primary, #4a7dff), var(--bg-secondary-600, rgba(127, 127, 127, 0.28)));
}
.evs-about-avatar {
  position: absolute;
  left: 20px;
  bottom: -32px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg, #fff);
  border: 4px solid var(--bg, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
/* When a header is present the title sits just below the overhanging avatar. */
.evs-about-title-withheader { padding-left: 4px; }
.evs-about h2 { font-weight: 700; margin: 28px 0 8px; font-size: 1.15rem; }
.evs-about-md { line-height: 1.6; }
.evs-about-md p { margin: 0 0 12px; }
.evs-about-md ul { margin: 0 0 12px; padding-left: 22px; }
.evs-about-md li { margin: 2px 0; }
.evs-about-md a { color: var(--primary, #4a7dff); }
.evs-about-md blockquote {
  margin: 0 0 12px; padding: 6px 14px;
  border-left: 3px solid var(--input-border-color, rgba(127,127,127,0.4));
  color: var(--fg-350, var(--fg)); opacity: 0.9;
}
.evs-about-md code {
  background: var(--bg-secondary-450, rgba(127,127,127,0.15));
  padding: 1px 5px; border-radius: 4px; font-size: 0.9em;
}
.evs-about-divider {
  border: 0;
  border-top: 1px solid var(--input-border-color, rgba(127,127,127,0.3));
  /* PeerTube's Bootstrap base sets hr{opacity:.25}, which made this divider
     barely visible vs the div-border dividers below. Reset to full strength. */
  opacity: 1;
  margin: 28px 0;
}
/* Full-width action buttons / attribution cards */
.evs-about-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--input-border-color, rgba(127,127,127,0.3));
  background: var(--bg-secondary, rgba(127,127,127,0.12));
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, filter 0.15s ease;
}
.evs-about-btn:hover { background: var(--bg-secondary-600, rgba(127,127,127,0.2)); }
.evs-about-btn:active { transform: scale(0.99); }
.evs-about-btn-icon { display: inline-flex; }
.evs-about-btn-icon svg { width: 20px; height: 20px; display: block; }
.evs-about-btn-primary {
  margin-top: 20px;
  border-color: transparent;
  background: var(--primary, #c026a6);
  color: #fff;
}
.evs-about-btn-primary:hover { background: var(--primary, #c026a6); filter: brightness(1.08); }
.evs-about-caption {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-300, var(--fg));
  opacity: 0.7;
}
.evs-about-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--input-border-color, rgba(127,127,127,0.3));
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--fg-300, var(--fg));
  opacity: 0.75;
}
