/* HV Theme — structural helpers only. Colors handled by Bootstrap. */

body {
  padding-inline: 1.5rem;
  /* .hv-hero breaks out to 100vw, which doesn't account for the scrollbar
     and would otherwise cause a few px of horizontal overflow. */
  overflow-x: hidden;
}

/* Sticky footer: footer stays pinned to the bottom of the viewport even
   when the page content is shorter than the screen. html.html.twig wraps
   the whole page in .dialog-off-canvas-main-canvas — that's the flex
   container here. */
.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Local tasks — link inside nav-pill inherits pill color */
.nav-pills .nav-link a {
  color: inherit;
  text-decoration: none;
}

/* Breadcrumbs — inline, no list numbering */
nav[role="navigation"][aria-labelledby*="breadcrumb"] ol,
.breadcrumb ol,
ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 0.875rem;
}

/* ─── Dark palette: zinc-950 + violet-400 ─── */
[data-bs-theme="dark"] {
  --bs-body-bg: #09090b;
  --bs-body-color: #fafafa;
  --bs-secondary-bg: #18181b;
  --bs-tertiary-bg: #27272a;
  --bs-border-color: #27272a;
  --bs-primary: #a78bfa;
  --bs-primary-rgb: 167, 139, 250;
  --bs-link-color: #a78bfa;
  --bs-link-hover-color: #c4b5fd;
  --hv-header-top-bg: #18181b;
  --hv-header-border: #27272a;
}

/* ─── One-row full-width header ─── */
.hv-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-inline: -1.5rem;
}

footer {
  margin-inline: -1.5rem;
}

.hv-header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 24px;
  background: var(--hv-header-top-bg, #18181b);
  border-bottom: 1px solid var(--hv-header-border, #27272a);
}

/* The row, left to right: the site name, the menu (it takes the free space),
   the search, the language, the theme button. The blocks of the header region
   are flattened into this row (see .hv-header-blocks below), so their order is
   set here, not in the template. */
#block-hv-theme-site-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hv-header-top .hv-header-nav {
  order: 1;
}
#block-hv-theme-search {
  order: 2;
}
#block-hv-theme-languageswitcher {
  order: 3;
}
.hv-header-top .hv-header-actions {
  order: 4;
}

.hv-header-top .hv-site-name a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.1;
}

.hv-site-icon {
  color: var(--bs-primary, #a78bfa);
  margin-right: 0.35rem;
}

.hv-header-top .hv-site-slogan {
  color: #a1a1aa;
  font-size: 0.75rem;
  line-height: 1.1;
  white-space: nowrap;
}

/* Search block — an icon; a panel with the pill input opens under it. */
#block-hv-theme-search {
  position: relative;
  flex: 0 0 auto;
}

.hv-search__panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 1040;
  width: min(22rem, 92vw);
  padding: 0.6rem;
  background: var(--hv-header-top-bg, #18181b);
  border: 1px solid var(--hv-header-border, #27272a);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.35);
}

#block-hv-theme-search.is-open .hv-search__panel {
  display: block;
}

#search-block-form {
  display: flex;
  align-items: center;
}

#search-block-form .js-form-item {
  margin: 0;
  flex: 1;
}

#search-block-form input[type="search"].form-control {
  width: 100%;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  background-color: #27272a;
  border-color: #3f3f46;
  color: #fafafa;
}

#search-block-form input[type="search"].form-control::placeholder {
  color: #71717a;
}

#search-block-form input[type="search"].form-control:focus {
  background-color: #27272a;
  border-color: #a78bfa;
  color: #fafafa;
  box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.25);
}

/* Flatten the header region wrapper so every block placed in `header`
   becomes a direct flex child of hv-header-top. */
.hv-header-top .hv-header-blocks,
.hv-header-top .hv-header-blocks > div {
  display: contents;
}

.hv-header-top a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
}

.hv-header-top a:hover {
  color: #fafafa;
}

.hv-header-top .hv-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language dropdown button — compact, shows the 2-letter code */
.hv-language-switcher .dropdown-toggle {
  min-width: 2.5rem;
}

.hv-language-switcher .dropdown-menu {
  min-width: 8rem;
}

/* The menu in the row: it takes the free space between the name and the search,
   and its links stand in the middle of it. */
.hv-header-nav {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin-left: 1.5rem;
}

.hv-header-nav .navbar-collapse {
  justify-content: center;
}

/* Wide screens: the menu is in the middle of the whole header, not of the free
   space between the name and the search (those two differ in width). */
@media (min-width: 992px) {
  .hv-header-top {
    position: relative;
  }
  .hv-header-top .hv-header-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    flex: none;
    margin-left: 0;
    transform: translate(-50%, -50%);
  }
  /* The menu no longer takes the free space, so the search (and the language
     and the theme button after it) are pushed to the right edge. */
  #block-hv-theme-search {
    margin-left: auto;
  }
}

.hv-header-nav .navbar-nav {
  gap: 1.5rem;
}

.hv-header-nav .navbar-nav .nav-link {
  color: #a1a1aa;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.hv-header-nav .navbar-nav .nav-link:hover {
  color: #fafafa;
}

/* The page you are on. Drupal marks its link .is-active (the menu template adds
   .active only for a trail, which a one-level menu never has). */
.hv-header-nav .navbar-nav .nav-link.active,
.hv-header-nav .navbar-nav .nav-link.is-active {
  color: var(--bs-primary, #a78bfa);
  border-bottom-color: var(--bs-primary, #a78bfa);
}

/* Footer — three columns: branding (start) / menu (center) / account (end) */
.hv-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.hv-footer-col--start {
  flex: 1 1 auto;
}

.hv-footer-col--center {
  flex: 0 1 auto;
}

.hv-footer-col--end {
  flex: 0 0 auto;
  margin-left: auto;
}

.hv-footer-col--start .hv-site-name {
  color: var(--bs-body-color);
  font-weight: 700;
}

.hv-footer-about-text {
  color: var(--bs-secondary-color, #a1a1aa);
  font-size: 0.85rem;
  max-width: 32ch;
}

.hv-footer-about-text p {
  margin: 0;
}

/* Footer menu — single inline row */
.hv-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Mobile: collapse button */
.hv-header-nav .navbar-toggler {
  border-color: #27272a;
  color: #a1a1aa;
  margin: 4px 0;
}

/* Mobile: the menu is a panel that drops down under the row. */
@media (max-width: 991.98px) {
  /* The menu button goes last in the row, at the right edge. */
  .hv-header-top .hv-header-nav {
    position: static;
    order: 5;
    flex: 0 0 auto;
    margin-left: 0;
  }
  /* Tighter row so the name, search, language, theme and menu all fit. */
  .hv-header-top {
    gap: 0.4rem;
    padding-inline: 12px;
  }
  #block-hv-theme-site-branding {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    margin-right: auto;
  }
  .hv-header-top .hv-site-name a {
    font-size: 1.05rem;
  }
  .hv-header-nav .navbar-toggler {
    padding: 0.2rem 0.45rem;
    margin: 0;
  }
  .hv-header-top .hv-site-slogan {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hv-header-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 24px;
    background: var(--hv-header-top-bg, #18181b);
    border-bottom: 1px solid var(--hv-header-border, #27272a);
  }
  .hv-header-nav .navbar-nav {
    gap: 0;
  }
  .hv-header-nav .navbar-nav .nav-link {
    padding: 8px 0;
  }
}

/* Very narrow phones: shrink the name instead of letting it be clipped. */
@media (max-width: 359.98px) {
  .hv-header-top .hv-site-name a {
    font-size: 0.78rem;
  }
  .hv-site-icon {
    margin-right: 0.2rem;
  }
  .hv-header-top .hv-site-slogan {
    font-size: 0.65rem;
  }
}

/* ---------------------------------------------------------------------------
   HV content types: video, person, channel.
   Cards lean on Bootstrap; only what Bootstrap has no class for lives here.
   --------------------------------------------------------------------------- */

/* Shared card typography. */
.hv-card__title {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.hv-card__text {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0;
}
/* The line under a card's title (channel, views, date): a little smaller, so it
   fits in one line in a narrow card. */
.hv-card__meta {
  font-size: 0.75rem;
}
.hv-card__summary {
  font-size: 0.8rem;
  line-height: 1.4;
  overflow: hidden;
}
.hv-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Avatars: a photo when there is one, initials when there is not. */
.hv-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  object-position: top;
}
.hv-avatar--initials {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Cards lift slightly on hover, so the grid feels clickable. */
.hv-video-card .card,
.hv-person-card .card,
.hv-channel-card .card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.hv-video-card:hover .card,
.hv-person-card:hover .card,
.hv-channel-card:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important;
}

/* /videos: the grid of cards over the whole width of the page (the same edges as
   the row of filters above it): the cards are as wide as that leaves, with 30px
   between them and 1.5rem between the rows. One column on a phone, two on a
   tablet, three on a wide screen. */
.hv-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 30px;
}
@media (min-width: 576px) {
  .hv-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .hv-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Video card thumbnail keeps 16:9 whatever YouTube returns. */
.hv-video-card__thumb {
  overflow: hidden;
}
.hv-video-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Video page. */
.hv-video__player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0;
}
.hv-video__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: .5rem;
}

/* Sidebar "up next" list on the video page — thumb on top, title below. */
.hv-related-video__thumb {
  overflow: hidden;
  border-radius: .375rem;
}
.hv-related-video__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hv-video-chapter__time {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.hv-video__people {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .95rem;
}
.hv-video__role {
  font-weight: 600;
}
.hv-video__summary {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.hv-video__article {
  max-width: 46rem;
  line-height: 1.7;
  text-align: justify;
}
/* The introduction over the article, in one tab with it: a block of its own, so it
   reads as the short version and the article as what it introduces. */
.hv-video__intro {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--bs-tertiary-bg);
  border-left: .25rem solid var(--bs-primary);
  border-radius: .375rem;
}
/* The heading over the verdict: the size of a chapter's, but no space above it,
   it opens the block. The selector names the article too: .hv-video__article h2
   (the chapters, 2rem above) comes later in this file and would win otherwise. */
.hv-video__article .hv-video__intro h2 {
  margin-top: 0;
  margin-bottom: .75rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.hv-video__intro > :last-child,
.hv-video__intro p:last-child {
  margin-bottom: 0;
}
/* What the conversation mentions, under the article. */
.hv-video__mentioned {
  max-width: 46rem;
}
.hv-video__title {
  font-size: 1.2rem;
  font-weight: 700;
}
.hv-video__article h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: justify;
}
.hv-video__article h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}
/* A sub-section inside a chapter: smaller than the chapter and in italics, so
   it reads as part of it. Without this rule h3 fell back to Bootstrap's size,
   larger than the chapter's h2. */
.hv-video__article h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
}

/* Person and channel pages. */
.hv-person__photo,
.hv-channel__avatar {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
}
.hv-person__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.hv-person__photo {
  flex-shrink: 0;
}
.hv-person__name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}
.hv-person__bio {
  max-width: 50rem;
  padding: 1rem 1.25rem 1.1rem;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  line-height: 1.55;
  text-align: justify;
}
/* The biography's sections ("Born", "Education", ...): the size of a chapter
   on a video page, with a thin line, not Bootstrap's full h2. */
.hv-person__bio h2 {
  margin: .9rem 0 .3rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-primary);
}
.hv-person__bio h2:first-child {
  margin-top: 0;
}
.hv-person__bio p {
  margin-bottom: .6rem;
}
.hv-person__bio p:last-child {
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .hv-person__header {
    flex-wrap: nowrap;
    gap: 1rem;
  }
  .hv-person__photo {
    width: 5rem;
    height: 5rem;
  }
  .hv-person__name {
    font-size: 1.5rem;
  }
  .hv-person__bio {
    padding: 1rem 1.1rem 1.25rem;
    text-align: left;
  }
}
/* A person's page: the photo and the name are in the top left corner, and a thin
   line is under them. Under the line, from the same line: the videos (as host and
   as guest, one list, two cards across) on the left and the biography on the
   right, half of the page each. On a narrower screen the page is one column: the
   header, the biography, then the videos. */
.hv-page-person .hv-person__header {
  margin: 1.25rem 0 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.hv-page-person .hv-person__bio {
  margin-top: 1.5rem;
}
@media (min-width: 992px) {
  .hv-page-person main > .container-fluid > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "crumbs crumbs"
      "header header"
      "videos bio";
    column-gap: 2rem;
    align-items: start;
  }
  /* The content block and the article take no box of their own: the header and
     the biography inside them become items of this grid. */
  .hv-page-person #block-hv-theme-content,
  .hv-page-person article.hv-person {
    display: contents;
  }
  .hv-page-person #block-hv-theme-breadcrumbs {
    grid-area: crumbs;
  }
  .hv-page-person .hv-person__header {
    grid-area: header;
  }
  .hv-page-person .hv-person__bio {
    grid-area: bio;
    max-width: none;
  }
  .hv-page-person #block-hv-videos-of-person {
    grid-area: videos;
    margin-top: 1.5rem;
  }
}
/* The list of a person's videos. */
#block-hv-videos-of-person {
  margin-top: 1.25rem;
}
/* What the person was in the video: a small label in the card's top right corner. */
.hv-role-badge {
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
}
.hv-role-badge--hosted {
  background: #7c3aed;
}
.hv-role-badge--guested {
  background: #0d9488;
}
.hv-channel__description {
  margin-top: .5rem;
  max-width: 42rem;
  font-size: .9rem;
  color: var(--bs-secondary-color);
  white-space: pre-line;
  text-align: justify;
}
.hv-channel__banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: .75rem;
  display: block;
}
.hv-channel__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.hv-channel__avatar {
  flex-shrink: 0;
}
.hv-channel__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  color: var(--bs-secondary-color);
  font-size: .9rem;
}
.hv-channel__stats span:not(:last-child)::after {
  content: "\00b7";
  margin-left: .75rem;
}
.hv-channel__youtube-btn {
  margin-left: auto;
}
/* A channel's page: a line sets the channel's own header apart from the list of
   its videos below (the list has no title of its own). */
#block-hv-videos-from-channel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bs-border-color);
}
@media (max-width: 576px) {
  .hv-channel__banner {
    height: 100px;
    border-radius: .5rem;
  }
}

/* A-Z glossary strip. */
.hv-glossary__letter {
  width: 36px;
  height: 36px;
  font-size: .95rem;
}

/* Exposed filter bar. Drupal renders bare selects, so they are styled here
   rather than by adding Bootstrap classes to every form element. */
.hv-filters select,
.hv-filters input[type="text"] {
  display: block;
  width: 100%;
  padding: .375rem 2rem .375rem .75rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
}
.hv-filters label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .25rem;
  opacity: .75;
}
.hv-filters .form-actions {
  display: flex;
  gap: .5rem;
}
.hv-filters input[type="submit"] {
  padding: .375rem .9rem;
  font-size: .875rem;
  border-radius: .375rem;
  border: 1px solid var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
}
.hv-filters input[type="submit"][id*="reset"],
.hv-filters .form-actions input:not(:first-child) {
  background: transparent;
  color: var(--bs-secondary-color);
  border-color: var(--bs-border-color);
}

/* /videos: the row of the Send to buttons also holds the period list and the
   filters of the exposed form. The form takes no box of its own, so what is in it
   becomes items of the row; the category list is a pill like the buttons. */
.hv-videos-bar > form {
  display: contents;
}
/* The buttons stay at the left edge, the period list and the category list go to
   the right edge (the list after the period follows it), a size smaller. */
.hv-videos-bar.hv-section-buttons {
  justify-content: flex-start;
  align-items: center;
  gap: .5rem;
  /* A thin line under the row tells the filters from the videos below. */
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--bs-border-color);
}
/* The page's own top space (main has py-4) is cut on this page. */
main:has(.hv-videos-bar) {
  padding-top: .5rem !important;
}
.hv-videos-bar .hv-period {
  margin-left: auto;
}
.hv-videos-bar .hv-section-btn {
  min-width: 5.75rem;
  padding: .3rem 1.1rem;
  font-size: .95rem;
}
.hv-videos-bar .hv-period select {
  min-width: 6.5rem;
  padding: .3rem 2rem .3rem 1.1rem;
  font-size: .95rem;
}
.hv-videos-filter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.hv-videos-filter .form-item {
  margin: 0;
}
.hv-videos-filter select {
  /* Bootstrap's .form-select draws the arrow as a background image: the native
     one is off, or there would be two. */
  appearance: none;
  width: auto;
  min-width: 5.5rem;
  max-width: 22rem;
  padding: .3rem 2rem .3rem 1.1rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-body-color);
  background-color: transparent;
  border: 1.5px solid var(--bs-border-color);
  border-radius: .5rem;
}
.hv-videos-filter option,
.hv-videos-filter optgroup {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.hv-videos-filter .form-actions {
  display: flex;
  gap: .4rem;
  margin: 0;
}
/* No Filter button: the lists apply at once (hv-new-filters.js). The button stays
   in the form for the keyboard and for a page without JS, out of sight. */
.hv-videos-filter input[type="submit"]:not([id*="reset"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
/* Reset is shown only when there is something to reset (Views draws it then). */
.hv-videos-filter input[type="submit"][id*="reset"] {
  padding: .25rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: .5rem;
  border: 1.5px solid var(--bs-border-color);
  background: transparent;
  color: var(--bs-secondary-color);
}
.hv-videos-filter input[type="submit"][id*="reset"]:hover {
  border-color: var(--bs-secondary-color);
  color: var(--bs-body-color);
}
@media (max-width: 575.98px) {
  .hv-videos-filter {
    flex: 1 1 calc(50% - .6rem);
    min-width: 0;
  }
  .hv-videos-filter select {
    width: 100%;
    max-width: none;
  }
}

/* Pager under the lists. The base theme (stable9) gives Drupal's bare list, so it
   is drawn here: a centered row of rounded items, the current page in the site's
   accent color, like the buttons over the lists. */
.pager {
  margin: 2rem 0 1rem;
}
/* `ul.pager` is the "Load more" pager of /new (views_infinite_scroll): the list
   itself carries the class, there is no .pager__items inside a nav. */
.pager__items,
ul.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pager__item a,
.pager__item.is-active:not(:has(a)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .85rem;
  border: 1.5px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.pager__item a:hover,
.pager__item a:focus-visible {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}
.pager__item.is-active a,
.pager__item.is-active:not(:has(a)) {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: var(--bs-body-bg);
}
.pager__item--ellipsis {
  align-self: center;
  color: var(--bs-secondary-color);
}
@media (max-width: 575.98px) {
  .pager__item a {
    min-width: 2rem;
    height: 2rem;
    padding: 0 .6rem;
    font-size: .875rem;
  }
}

/* Front page: the space above the carousel, 40% less than the other pages'. */
main:has(.hv-hero) {
  padding-top: .9rem !important;
}

/* Front page: hero carousel — matches fv_theme's block--hero structure:
   full-bleed blurred background, thumbnail + text pair on top of it. */
.hv-hero {
  position: relative;
  overflow: hidden;
  /* Same side margins as the other blocks: it stays inside the padded
     container. */
}
.hv-hero .carousel-item {
  min-height: 360px;
}
.hv-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.3);
  transform: scale(1.1);
  z-index: 0;
}
.hv-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .6rem 24px 1.5rem 8px;
  min-height: 360px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.hv-hero-thumb {
  flex: 0 0 56%;
  max-width: 56%;
  padding: .3rem 0;
}
.hv-hero-thumb img {
  display: block;
  width: 100%;
  /* hqdefault.jpg is 480x360 (4:3) with real video content letterboxed to
     16:9 inside it — crop the black bars out instead of showing them. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
}
.hv-hero-text {
  flex: 1;
  min-width: 0;
}
.hv-hero-text h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
  font-size: 1.9rem;
}
.hv-hero-text p {
  font-size: 1rem;
}
.hv-hero .carousel-indicators,
.hv-hero .carousel-control-prev,
.hv-hero .carousel-control-next {
  z-index: 10;
}
.hv-hero .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, .4) !important;
  opacity: 1 !important;
  width: 32px;
  height: 3px;
  border-radius: 2px;
}
.hv-hero .carousel-indicators .active {
  background-color: var(--bs-primary) !important;
  opacity: 1 !important;
}
@media (max-width: 768px) {
  /* Out of the container's side padding, so the slide is as wide as the page. */
  .hv-hero {
    margin-inline: -12px;
  }
  .hv-hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 12px 2rem;
    min-height: 0;
  }
  .hv-hero-thumb {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
  .hv-hero-text h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .hv-hero-text p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
  }
}

/* Front page: the intro text (body of the front page node) as a framed
   block: serif font, an accent line, the opening question as a heading. */
main:has(.hv-hero) #block-hv-theme-content article {
  max-width: 56rem;
  margin: 1.5rem auto 2rem;
  padding: 1.75rem 2.25rem;
  background: var(--bs-tertiary-bg);
  border-left: 4px solid var(--bs-primary);
  border-radius: .75rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
}
main:has(.hv-hero) #block-hv-theme-content article p {
  margin: 0;
}
main:has(.hv-hero) #block-hv-theme-content article strong {
  display: block;
  margin-bottom: .5rem;
  color: var(--bs-primary);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Front page: category tiles — Bootstrap .card, matches fv_theme's
   .fv-cat-tile (hover lift + shadow only, card styling does the rest). */
.hv-cat-tile {
  transition: transform .15s, box-shadow .15s;
}
.hv-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12) !important;
}
.hv-cat-links a {
  display: flex;
  align-items: center;
  margin: 0 0 .3rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
}
.hv-cat-links a:hover {
  color: var(--bs-primary);
}
.hv-cat-links .bi {
  margin-right: .35rem;
  color: var(--bs-primary);
}

/* Phones: two columns, so the card is compact — a smaller heading and
   tighter padding keep long group names inside the card. */
@media (max-width: 575.98px) {
  .hv-cat-tile .card-body {
    padding: 0.75rem 0.6rem !important;
  }
  /* The icon sits above the name, so the name gets the full card width. */
  .hv-cat-tile .card-body > a {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .hv-cat-tile .card-body > a .fs-5 {
    font-size: 0.95rem !important;
    line-height: 1.2;
  }
  .hv-cat-tile .card-body > a .fs-4 {
    font-size: 1.1rem !important;
    margin: 0 0 0.25rem !important;
  }
  .hv-cat-links {
    font-size: 0.8rem;
  }
}

/* Front page: people — a rectangular photo with the name under it. */
.hv-front-person {
  display: block;
  color: inherit;
}
.hv-front-person__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: .5rem;
}
.hv-front-person__photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
}

/* /new page sidebar. */
.hv-new-sidebar {
  /* The scrollbar's place is kept, so the sidebar does not change its width
     when the scrollbar appears. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--bs-border-color) transparent;
}
/* The Calendar button at the top of the /new sidebar: a pill almost over the
   sidebar's width, a little narrower than it so that it stays inside when a
   scrollbar appears beside the categories; it opens the calendar popup. Its
   font, padding and border are the size of the Send to buttons too
   (.hv-section-btn). */
.hv-cal-open {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: calc(100% - 1.25rem);
  max-width: 100%;
  border: 1.5px solid var(--bs-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--bs-primary);
  font-size: .925rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .3rem 1.1rem;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.hv-cal-open:hover {
  background: var(--bs-primary);
  color: #fff;
}
.hv-cal-open:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
/* Calendar popup (the modal over the /new list): the month grid. */
.hv-cal {
  user-select: none;
}
.hv-cal__day--has-video.is-selected {
  background: var(--bs-primary);
  color: #fff;
  text-decoration: none;
}
.hv-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.hv-cal__month-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--bs-body-color);
}
.hv-cal__btn {
  background: none;
  border: none;
  padding: 2px 6px;
  color: var(--bs-secondary-color);
  cursor: pointer;
  border-radius: 4px;
}
.hv-cal__btn:hover:not(:disabled) {
  color: var(--bs-body-color);
  background: var(--bs-secondary-bg);
}
.hv-cal__btn:disabled {
  opacity: .3;
  cursor: default;
}
.hv-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.hv-cal__dow {
  font-size: .65rem;
  font-weight: 600;
  text-align: center;
  color: var(--bs-secondary-color);
  padding: 2px 0;
  letter-spacing: .03em;
}
.hv-cal__day {
  font-size: .75rem;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  color: var(--bs-secondary-color);
  line-height: 1.4;
}
.hv-cal__day--future {
  opacity: .3;
}
.hv-cal__day--has-video {
  background: none;
  border: none;
  color: var(--bs-body-color);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hv-cal__day--has-video:hover {
  background: var(--bs-primary);
  color: #fff;
  text-decoration: none;
}

.hv-sidebar-section__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: .6rem;
}
.hv-new-filters .form-item {
  margin: 0 0 .4rem;
}
.hv-new-filters .form-item label {
  font-size: .9rem;
  cursor: pointer;
  margin-left: .5rem;
}
.hv-new-filters input[type="checkbox"] {
  cursor: pointer;
  vertical-align: middle;
}
/* Sections and their categories (the /new category filter): a section is bold
   with a rule above it, its categories sit under it, indented along a guide line. */
.hv-new-filters .hv-filter-section {
  margin: .9rem 0 .35rem;
  padding-top: .65rem;
  border-top: 1px solid var(--bs-border-color);
}
.hv-new-filters .hv-filter-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.hv-new-filters .hv-filter-section label {
  font-weight: 700;
  font-size: .92rem;
  color: var(--bs-body-color);
}
.hv-new-filters .hv-filter-category {
  margin: 0 0 .25rem 1.1rem;
  padding: .1rem 0 .1rem .75rem;
  border-left: 2px solid var(--bs-border-color);
}
.hv-new-filters .hv-filter-category label {
  font-size: .85rem;
  color: var(--bs-secondary-color);
}
.hv-new-filters .hv-filter-category:hover label,
.hv-new-filters .hv-filter-section:hover label {
  color: var(--bs-emphasis-color);
}
.hv-new-filters .hv-filter-category:has(input:checked) {
  border-left-color: var(--bs-primary);
}
.hv-new-filters .hv-filter-category:has(input:checked) label,
.hv-new-filters .hv-filter-section:has(input:checked) label {
  color: var(--bs-primary);
}

/* Responsive offcanvas: static sidebar on lg+, drawer on mobile.
   The offcanvas lives inside .col-lg-3, so width is handled by the grid. */
@media (min-width: 992px) {
  .hv-new-sidebar-col {
    position: relative;
  }
  .hv-new-offcanvas--responsive {
    position: sticky !important;
    top: 4.5rem !important;
    transform: none !important;
    visibility: visible !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    transition: none !important;
  }
  .hv-new-offcanvas--responsive .offcanvas-body {
    overflow-y: visible;
    padding: 0;
  }
}

/* /new card grid — two columns, date dividers spanning both.
   views_infinite_scroll appends each batch inside its own wrapper; taking
   the wrapper out of the box tree keeps every card a direct grid child, so
   the columns run continuously instead of restarting per batch. */
.hv-new-view .views-infinite-scroll-content-wrapper {
  display: contents;
}
/* The Send to buttons over the list of /new: medium pills, centred, one color
   each (--c), in one row that wraps on a narrow screen. */
.hv-section-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin: 0 0 .4rem;
}
.hv-section-btn {
  --c: var(--bs-primary);
  appearance: none;
  min-width: 6.25rem;
  border: 1.5px solid var(--c);
  border-radius: 999px;
  background: transparent;
  color: var(--c);
  font-size: .925rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .3rem 1.1rem;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.hv-section-btn--future { --c: #1f66bd; }
.hv-section-btn--present { --c: #0b7a55; }
.hv-section-btn--past { --c: #b8481a; }
.hv-section-btn--digest { --c: #5b46cf; }
.hv-section-btn:hover {
  background: var(--c);
  color: #fff;
}
.hv-section-btn:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
.hv-section-btn.is-active,
.hv-section-btn.is-active:hover {
  background: var(--c);
  color: #fff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 40%, transparent);
}
/* The group of the Send to buttons takes no box of its own: its buttons and the
   period list after them are items of the one row. */
.hv-section-group {
  display: contents;
}
/* The "Recently added" list after Digest: a pill like the buttons, with its own
   color (--c), lit when a period is chosen. The arrow is an icon over the list. */
.hv-period {
  --c: #be185d;
  position: relative;
  display: inline-flex;
  margin-left: 2.5rem;
  color: var(--c);
}
/* Two blocks: the times (the Send to buttons) and the filters (this list, and the
   category list and Reset after it on /videos). A wide gap and a thin rule are
   between them. */
.hv-period::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 1.6rem;
  margin-right: 1.25rem;
  background: var(--bs-border-color);
}
.hv-period select {
  appearance: none;
  min-width: 5.5rem;
  border: 1.5px solid var(--c);
  /* A filter, not a button: its corners are less round than the pills'. */
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .25rem 1.9rem .25rem .9rem;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.hv-period option {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.hv-period .bi {
  position: absolute;
  top: 50%;
  right: .75rem;
  font-size: .65rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.hv-period:hover,
.hv-period.is-active {
  color: #fff;
}
.hv-period:hover select,
.hv-period.is-active select {
  background: var(--c);
}
.hv-period.is-active select {
  box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 40%, transparent);
}
.hv-period select:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}
@media (max-width: 575.98px) {
  .hv-section-btn,
  .hv-period {
    flex: 1 1 calc(50% - .6rem);
    min-width: 0;
  }
  .hv-period {
    margin-left: 0;
  }
  .hv-period::before {
    display: none;
  }
  .hv-period select {
    width: 100%;
    min-width: 0;
  }
}

.hv-new-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.hv-new-grid .hv-date-header {
  grid-column: 1 / -1;
}
.hv-date-header__inner {
  padding: .25rem 0;
}
.hv-date-header__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  white-space: nowrap;
}

/* Each hv-new-item spans both grid columns of the page. Inside it: the picture
   (a narrower column, 40%) with the channel and the views under it, the title
   and the description on the right, and the categories as one line under both. */
.hv-new-grid .hv-new-item {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-areas:
    "thumb info"
    "meta  info"
    "cats  cats";
  column-gap: 1.25rem;
  row-gap: 0.4rem;
  position: relative;
}
.hv-new-item > .hv-video-card {
  grid-area: thumb;
}
/* The picture's link stretches over the whole card, so a click on the text goes
   to the video too. What has a link or a button of its own is lifted above it. */
.hv-new-item > .hv-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hv-new-item .hv-card__chapters-btn,
.hv-new-item .hv-video-card__cats a {
  position: relative;
  z-index: 2;
}
.hv-new-item > .hv-video-card__meta {
  grid-area: meta;
}
.hv-new-item > .hv-video-card__info {
  grid-area: info;
}
/* The categories never wrap: one line, what does not fit is cut off. */
.hv-new-item > .hv-video-card__cats {
  grid-area: cats;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow: hidden;
}
.hv-video-card__cats .hv-group-category-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}
/* The info column stretches to the card's height (grid default); the
   description then fills whatever is left below the title and gets cut off
   at that edge, instead of being capped at a fixed number of lines. */
.hv-video-card__info {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hv-video-card__info .hv-card__summary {
  flex: 1 1 auto;
  min-height: 0;
}

/* Group:Category badge — one pill, two color segments (group keeps the
   secondary color, category keeps the primary color, as they did as
   separate badges). */
.hv-group-category-badge {
  display: inline-flex;
  overflow: hidden;
  border-radius: var(--bs-border-radius-pill, 50rem);
  font-size: 0.75em;
}
.hv-group-category-badge span,
.hv-group-category-badge > a {
  padding: 0.35em 0.65em;
  font-weight: 400;
}
@media (max-width: 767px) {
  .hv-new-grid {
    grid-template-columns: 1fr;
  }
  .hv-new-grid .hv-new-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "meta"
      "info"
      "cats";
  }
}

/* The Chapters button of the /new card (it opens the chapters popup), in the top
   right of the info panel. */
.hv-card__chapters-btn {
  --bs-btn-padding-y: 0.15rem;
  --bs-btn-padding-x: 0.6rem;
  --bs-btn-font-size: 0.75rem;
  /* Painted with the site's color (not grey): filled, a little darker on hover. */
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary) 85%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary) 85%, #000);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary) 80%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary) 80%, #000);
  border-radius: 50rem;
  font-weight: 600;
}
/* On the dark page the site's color is a light violet: the text on it is dark and
   the hover is lighter. */
[data-bs-theme="dark"] .hv-card__chapters-btn {
  --bs-btn-color: #09090b;
  --bs-btn-hover-color: #09090b;
  --bs-btn-hover-bg: #c4b5fd;
  --bs-btn-hover-border-color: #c4b5fd;
  --bs-btn-active-color: #09090b;
  --bs-btn-active-bg: #c4b5fd;
  --bs-btn-active-border-color: #c4b5fd;
}
.hv-card-chapters {
  /* Time, category chip and title in three columns, so the chips line up; the
     first two are as wide as their widest entry and the gaps between are small. */
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  column-gap: 0.3rem;
  row-gap: 0.15rem;
  align-content: start;
}
.hv-card-chapter,
.hv-card-chapter a {
  display: contents;
}
.hv-card-chapter__time {
  font-variant-numeric: tabular-nums;
}
/* The chip of the review feed: a coloured pill, grey for skip, dashed grey
   for uncovered. The colour is fixed per category (--c, from the export). */
.hv-cat {
  display: inline-block;
  max-width: 100%;
  padding: 0 0.5rem;
  border-radius: 50rem;
  background: var(--c, #9ca3af);
  color: var(--ink, #fff);
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-cat--skip {
  background: #9ca3af;
}
.hv-cat--uncovered {
  background: #9ca3af;
  outline: 1px dashed #6b7280;
  outline-offset: -2px;
}
/* The chapter's second category: a dot in its color, the name in the title. */
.hv-cat-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--c, #9ca3af);
  vertical-align: middle;
}
/* A chapter about the future: its time is underlined with a small blue bar. */
.hv-card-chapter__time--future {
  text-decoration: underline 2px #2563eb;
  text-underline-offset: 3px;
}
