/*
 * This is a manifest file that'll be compiled into application.css, which
 * will include all the files listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets
 * /stylesheets, or any plugin's vendor/assets/stylesheets directory can be
 * referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll
 * appear at the bottom of the compiled file so the styles you add here
 * take precedence over styles defined in any other CSS files in this
 * directory. Styles in this file should be added after the last require_*
 * statement. It is generally better to create a new file per style scope.
 *


 */

@import url('https://fonts.googleapis.com/css2?family=Crete+Round&family=Inconsolata:wght@400;500;700&display=swap');

/* This file used to contain all the CSS. A year after launch I decided
   to to some cleaning, so I moved most of the styles to 14 new files:

     archive, buttons, card, header, home, login, paywall, player,
     podcast, responsive, search, tags, transcript, typography

   What is left in this file is general styles applying to the entire
   site and also some bits and pieces which did not feel
*/

:root {
    --gap-small: 8px;
    --spacing-md: 40px;
    --spacing-md--mobile: 20px;
    --light-gray: #D8D8D8;
    --dark-gray: #555;
    --black: #000;
    --pink-light: #FFEBF0;
    --transaprent-black: rgba(0, 0, 0, 0.03);
    --small-button-size: 32px;
    --small-button-size--mobile: 26px;
    --big-button-size: 52px;
    --big-button-size--mobile: 42px;
    --box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* GLOBAL CSS */

svg {
    max-width: 100%;
    height: auto;
}

svg.inactive rect {
    fill: var(--light-gray);
}

img {
    max-width: 100%;
}

body {
    margin: 0;
    padding-top: 75px;
    padding-bottom: 40px;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

input {
    height: 40px;
    padding: var(--gap-small);
}

input[type='text']:focus,
input[type='text']:active {
    outline: 1px solid #000 !important;
    box-shadow: none !important;
    outline-offset: 0 !Important;
}

/* PAGE TEMPLATE */

main {
    max-width: 1360px;
    padding: var(--spacing-md);
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 120px;
}

main>article>*:not(:last-child),
main>*:not(:last-child) {
    margin-bottom: var(--spacing-md);
}

.podcast:not(.card)>*:not(:last-child) {
    margin-bottom: var(--spacing-md);
}

.podcast:not(.card)>*:not(:last-child) .metadata {
    font-size: 19px;
}

main>h1 {
    margin-bottom: var(--spacing-md);
}

main>h1,
.podcast>h1,
main>article>h1 {
    text-align: center;
}

main>h2 {
    font-size: 1.25em;
    margin-bottom: calc(2 * var(--gap-small)) !important;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #00000008;
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

.hidden {
    display: none !important;
}

/* HOT PINK PROGRESS BAR */

.turbo-progress-bar {
    background-color: #FF007A !important;
}
.hidden-color {
  color: #dc3545;
  /* keeping red as is, it's good */
}

.teaser-color {
  color: #b78a05;
  /* darker yellow/gold */
}

.free-color {
  color: #28a745;
  /* keeping green as is, it's good */
}
@tailwind base;
@tailwind utilities;

@layer base {
  body {
    background: url(/assets/background-53f56992a854a9ba5a2ec30c5d5a6341ecdbbfd39fb14f7c57d4660871275de1.png);
  }

  .selling-points li:before {
    background: url(/assets/icon-checkmark-49b3fa64b3a289c95874e04be6d519854c5c9c0d9c918b4aea9b2dd202119a9c.svg) no-repeat center center;
}

  article:has(> .admin-edit) {
    position: relative;
  }

  article {
    position: relative;
  }

  .admin-edit a svg {
    width: 1em;
    height: 1em;
    position: absolute;
    top: 1em;
    right: 1em;
  }

  .admin.edit.segment {
    display: flex;
    justify-content: space-between;
  }

  .admin.edit.segment .form {
    width: 66%;
  }

  .admin.edit.segment .transcript {
    width: 33%;
  }

  .admin.edit h2 {
    margin-bottom: 1em;
  }

  .admin.edit textarea {
    width: 560px;
    height: 200px;
  }

  .admin.edit select,
  .admin.edit input {
    width: 560px;
  }

  .admin.edit div {
    margin-bottom: 0.5em;
  }

  .admin.edit label {
    display: inline-block;
    width: 200px;
  }

  .black-button.no-margin {
    margin: 0 !important;
  }

}
.playable-paginator,
.calendar-paginator .pagy-nav,
.tags-paginator {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.playable-paginator,
.calendar-paginator .pagy-nav {
  margin-bottom: calc(2 * var(--gap-small)) !important;
}

.pagy-nav a,
.pagy-nav .active,
.tags-paginator a,
.tags-paginator a.active,
.playable-paginator a,
.playable-paginator a.active {
  color: #000;
  text-decoration: none;
  /*! font-size: 16px; */
  font-weight: 700;
  border: none;
  display: block;
  line-height: 1em;
  padding: var(--gap-small) calc(1.5 * var(--gap-small));
}

.playable-paginator a.active,
.playable-paginator a:hover,
.calendar-paginator .active,
.tags-paginator a.active,
.tags-paginator a:hover,
.pagy-nav a:hover {
  background-color: #000;
  color: #fff;
}

.calendar-paginator {
  margin-bottom: var(--gap-small) !important;
}

.calendar-paginator .prev,
.calendar-paginator .next {
  display: none;
}

.pagy-info {
  margin-top: var(--spacing-md);
  display: block;
  font-weight: 400;
  font-size: 1.25rem;
  font-family: 'Crete round';
  margin-bottom: calc(2 * var(--gap-small));
}
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

button.black-button {
  background-color: #000;
  color: #fff;
  font-size: 16px;
  padding: 10px 20px;
  font-weight: 700;
}

button:hover {
  cursor: pointer;
}

button.black-button:hover {
  background-color: var(--dark-gray);
}

button.big {
  width: var(--big-button-size);
  min-width: var(--big-button-size);
  height: var(--big-button-size);
  min-height: var(--big-button-size);
  line-height: 0em;
}

button.small {
  width: var(--small-button-size);
  min-width: var(--small-button-size);
  height: var(--small-button-size);
  min-height: var(--small-button-size);
  line-height: 0em;
}

.play-button {
  line-height: 1em;
}

.play-button svg {
  width: 100%;
}

.play-button:hover rect,
.play-button:hover .pause0 {
  fill: var(--dark-gray);
}

/* ASIDE BUTTONS */

aside.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: calc(2 * var(--gap-small));
}
.card {
  background-color: #fff;
  padding: calc(3 * var(--gap-small));
  box-shadow: var(--box-shadow);
  margin-bottom: var(--gap-small);
}

.card h1 a,
.card h2 a,
.card h1,
.card h2 {
  font-weight: 400;
}

.card>h2 {
  font-size: 30px;
}

.card .metadata h1,
.card .metadata h1 a {
  font-size: 20px;
  line-height: 1.25em;
}

.playables>h2 {
  margin-bottom: calc(2 * var(--gap-small));
  font-size: 20px;
  font-weight: 400;
}

.playables .card .description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25em;
}

.playables .card .description .duration,
.playables .card .description .parent-episode {
  display: inline-block;
}

.playables .card .description>nav,
.playables .card .description>section {
  display: inline-block;
  font-weight: 700;
}

.playables>article,
.intro-boxes .card>section {
  display: grid;
  grid-template-columns: min-content 1fr;
  column-gap: calc(1.5 * var(--gap-small));
  grid-template-rows: min-content;
}

.now-playing h3,
.now-playing p {
  display: inline-block;
}

.now-playing p,
.now-playing a,
.now-playing .non-link {
  margin-top: 0;
  font-weight: 700;
}

.card .metadata {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content;
  row-gap: var(--gap-small);
  height: unset;
  align-items: flex-start;
}

.card:not(.podcast) section:not(.latest-episode) .metadata {
  padding-top: 2px;
}

.metadata h3 {
  font-weight: 400;
  font-size: 1em;
  font-family: 'Inconsolata';
}

.show-more {
  text-align: center;
  margin-top: var(--spacing-md);
}

.show-more a {
  background-color: #000;
  color: #fff;
  display: inline-block;
}

.show-more a>button {
  font-weight: 700;
  padding: var(--gap-small) calc(1.5 * var(--gap-small));
  font-size: 1rem;
}

/* SEGMENTS */

.segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: var(--gap-small);
  column-gap: calc(var(--gap-small) * 2);
}

.segments li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: flex-start;
  justify-content: flex-start;
}

.segments li>.play-button {
  display: flex;
  padding-top: 2.5px;
}

.segments li>.play-button button.play-button {
  border-radius: 50%;
}

.segments li>.play-button button.play-button:hover {
  background: #000;
}

.segments li>.play-button button.play-button:hover,
.transcript p>a:nth-child(1):hover {
  background: #000;
}

.segments li>.play-button button.play-button[data-controller="play-button"]:hover path:nth-child(1),
.transcript p>a:nth-child(1):hover path:nth-child(1) {
  fill: #000;
}

.segments li>.play-button button.play-button[data-controller="play-button"]:hover path:nth-child(2),
.transcript p>a:nth-child(1):hover path:nth-child(2) {
  stroke: #fff;
}

.segments li>.play-button button.play-button[data-controller="subscribe"]:hover path:nth-child(1) {
  fill: #000;
}

.segments li>.play-button button.play-button[data-controller="subscribe"]:hover path:nth-child(2) {
  fill: #fff;
}

.playables .segments a {
  display: block;
  text-decoration: none;
}

.segments a span {
  font-size: 14px;
  line-height: 1.3em;
  color: #000;
  font-weight: 400;
  opacity: 0.67;
}

.segments a:hover span {
  opacity: 1;
}

.metadata .duration,
.duration-and-episode,
.parent-episode {
  font-weight: 700;
  line-height: 1.3em;
  display: inline-block;
}

.metadata .duration>*,
.duration-and-episode>* {
  display: inline-block;
}
.site-header {
  background-color: #ffffffdd;
  position: fixed;
  top: 0;
  width: 100%;
  padding: var(--gap-small) calc(2 * var(--gap-small));
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  column-gap: calc(2 * var(--gap-small));
  backdrop-filter: blur(8px);
}

.site-header .logo svg {
  width: 36px;
  min-width: 36px;
  vertical-align: middle;
}

.main-menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  column-gap: calc(2 * var(--gap-small));
}

.site-header .main-menu a {
  display: block;
}

.site-header .main-menu svg {
  max-width: 36px;
  height: auto;
  vertical-align: middle;
}

/* header main nav */

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.main-menu>ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: calc(2 * var(--gap-small));
  flex-wrap: nowrap;
  row-gap: calc(var(--gap-small)/ 2);
  margin-top: -3px;
}

.main-menu>ul>li {
  white-space: nowrap;
  overflow: hidden;
}

.mobile-main-menu {
  display: none !important;
}

/* header search */

.site-header .search {
  width: 10vw;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
  z-index: 2;
}

@media(min-width: 1140px) {
  .site-header .search {
    width: 15vw;
  }
}

@media(min-width: 1220px) {
  .site-header .search {
    width: 20vw;
  }
}

@media(min-width: 1300px) {
  .site-header .search {
    width: 25vw;
  }
}

@media(min-width: 1380px) {
  .site-header .search {
    width: 30vw;
  }
}

.site-header .search input {
  border-radius: 99px;
  border: 1px solid var(--black);
  width: 100%;
  color: var(--dark-gray);
  padding: 5px 15px;
}

.site-header .search button {
  position: absolute;
  right: 3px;
  top: 3px;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header .search button:hover rect {
  cursor: pointer;
  fill: var(--dark-gray);
}

@media(min-width: 1025px) {

  .site-header .search {
    transition: 0.35s all;
    transition-timing-function: linear;
  }

  .site-header.search-active .search {
    width: 560px;
    transition: 0.35s all;
    transition-timing-function: linear;
  }

  .site-header .broadcast-boxes,
  .site-header .main-menu {
    opacity: 1;
    transition: 0.35s opacity;
  }

}

@media(min-width: 1025px) and (max-width: 1600px) {

  .site-header.search-active .broadcast-boxes,
  .site-header.search-active .main-menu ul {
    overflow: hidden;
    opacity: 0;
  }
}

/* header next broadcast */

.site-header .next-broadcast {
  justify-content: flex-end;
  display: flex;
  align-items: center;
  font-weight: 700;
  text-align: right;
}

.site-header .next-broadcast>div {
  color: var(--black);
  padding: var(--gap-small);
  display: inline-block;
  white-space: nowrap;
}

.site-header .next-broadcast>div span {
  display: inline-block;
}
main .welcome {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  max-width: 1074px;
  margin: var(--spacing-md) auto calc(2 * var(--spacing-md));
}

main .welcome .site-logo {
  padding-left: 10%;
  padding-right: 10%;
}

main .welcome .site-logo svg {
  max-width: 300px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

main .cta {
  text-align: center;
}

main .cta p {
  font-size: 1.25rem;
  margin-top: calc(2 * var(--gap-small));
  margin-bottom: var(--spacing-md);
  font-family: 'Crete Round';
  line-height: 1.3em;
}

main .cta .black-button {
  margin-right: 32px;
  font-family: 'Crete Round';
  font-weight: 400;
}

/* HOME INTRO BOXES */

.intro-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-small);
  row-gap: var(--gap-small);
  margin-bottom: var(--gap-small) !important;
}

@media(min-width:1025px) {

  .intro-boxes .card {
    min-height: 100%;
  }

}

.intro-boxes>section {
  align-self: stretch;
}

.intro-boxes .playables>article {
  grid-template-columns: 1fr;
  display: grid;
}

.intro-boxes .intro-podcast header {
  grid-template-columns: 1fr;
}

.intro-boxes .playables header h2,
.intro-boxes .stream.card>header .broadcast-notifications {
  margin-bottom: calc(3 * var(--gap-small));
}

.intro-boxes>section {
  align-self: stretch;
}

.intro-boxes h1 {
  line-height: 1.25em;
}

.intro-boxes article.podcast .link-instructions {
  margin-top: 1em;
}

.intro-boxes article header p {
  margin-bottom: 1em;
}

.intro-boxes article.podcast .link-instructions {
  margin-bottom: 0.5em;
}

/* STREAM CARD */

.intro-boxes .stream.card>header {
  display: flex;
  flex-wrap: wrap;
}

.intro-boxes .stream.card>header h2 {
  min-width: 50%;
  flex-grow: 1;
  flex-shrink: 1;
  order: 1;
}

.intro-boxes .stream.card>header .broadcast-notifications {
  max-width: 50%;
  order: 2;
}

.intro-boxes .stream.card .description {
  order: 3;
  width: 100%;
}

.broadcast-notifications .next-broadcast {
  padding: 0.5em 1em;
  font-weight: 700;
}

#broadcast-not-live {
  background: #FFEBF0;
}

.broadcast-notifications .next-broadcast svg {
  display: inline-block !important;
}

.broadcast-notifications .next-broadcast svg {
  display: none;
  width: 24px;
  height: 24px;
  vertical-align: text-bottom;
}

#broadcast-live,
#broadcast-live-header {
  background: var(--Pink, #FF007A);
  color: white;
}

.broadcast-notifications .next-broadcast div,
#broadcast-live-header div {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

#broadcast-live svg path,
#broadcast-live-header svg path {
  fill: white;
}

/* MORE EPISODES */

.more-episodes h2 {
  font-size: 30px;
}

.more-episodes h1 {
  line-height: 16px;
}

.more-episodes h1 a {
  font-size: 20px;
  line-height: 1.3em
}

.more-episodes .playables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap-small);
  row-gap: var(--gap-small);
  margin-top: calc(3 * var(--gap-small));
}

/* HOME FEATURED CARDS */

.featured-tags .playables {
  margin-top: calc(2 * var(--gap-small));
}

.featured-tags h2 a {
  font-weight: 400;
  text-decoration: none;
}

.featured-tags .tag>section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(3 * var(--gap-small));
  row-gap: var(--spacing-md);
}

.card .show-more {
  grid-column-start: 1;
  grid-column-end: 4;
  align-self: flex-end
}

.segment.compact h1 a {
  text-decoration: none;
}

/* LATEST EPISODE */

.latest-episode,
.more-episodes {
  margin-bottom: var(--gap-small) !important;
}

.latest-episode .card>.buttons .play-button {
  width: var(--big-button-size);
  min-width: var(--big-button-size);
  height: var(--big-button-size);
  min-height: var(--big-button-size);
  line-height: 0em;
}

.latest-episode .card>.buttons .play-button svg {
  width: 100%;
}

.latest-episode>.episode>.metadata aside.duration {
  font-size: 1.25rem;
}

.latest-episode>.episode>.metadata .description {
  font-size: 19px;
}

.latest-episode.playables>article .metadata h1 a {
  font-size: 42px;
}

/* HOME FEATURED */

.featured-tags header {
  grid-area: 1 / 1 / 1 / 4;
}

.featured-tags header a {
  font-weight: 400;
}

/* --------- RE-ADDING CSS REMOVED BY OUT-OF-SYNC REFACTORING --------- */

/* The style below will probably be redundant to some extent and to some
   extent in conflict with other styles. Feel free to work these bits into
   the rest of the code, which is presumably more well-organized overall.
*/

#broadcast-not-live {
  background: #FFEBF0;
  padding-right: 1em !important;
}

#broadcast-not-live .icon {
  display: none;
  width: 19px;
  height: 19px;
}

@media (max-width: 560px) {

  #broadcast-live .label,
  #broadcast-not-live .label {
    display: none;
  }

  #broadcast-not-live .icon {
    display: inline-block;
  }
}

#broadcast-live,
#broadcast-not-live {
  padding: 0.5em;
  padding-left: 1em;
}

#broadcast-button.live .play-button rect {
  fill: #FF007A;
}

.site-header .broadcast-boxes {
  display: flex;
  justify-content: flex-end;
}

#broadcast-live-header.next-broadcast {
  width: fit-content;
  color: white;
}

#broadcast-live-header.next-broadcast svg {
  width: 24px;
  height: 24px;
  margin-left: 0.5em;
}

#broadcast-live-header.next-broadcast span {
  color: white;
}

@media (max-width: 1024px) {
  .site-header .broadcast-boxes {
    position: absolute;
    display: block;
    width: 100%;
    top: 100%;
  }

  .site-header .broadcast-boxes .next-broadcast {
    width: 100% !important;
    background-color: #FFEBF0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
  }

  .site-header .broadcast-boxes div {
    padding: 1px var(--gap-small);
  }

  #broadcast-live-header {
    width: 100%;
  }

  #broadcast-live-header svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Since the info bar is always visible on smaller screens, there is no need
     to display it in the featured stream box in this mode.
  */
  .frontpage .broadcast-notifications .next-broadcast {
    display: none !important;
  }
}

/* More possibly redundant style */

.intro-boxes .playables>article {
  display: block
}

.intro-boxes .playables>article>section {
  display: grid;
  grid-template-columns: min-content 1fr;
  column-gap: calc(2 * var(--gap-small));
}

.intro-boxes article header h2 {
  margin-bottom: 0.5em;
}

.intro-boxes article header p {
  margin-bottom: 1em;
}

.intro-boxes article.podcast .link-instructions {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.intro-boxes article.stream>section {
  position: relative;
}

.intro-boxes article.stream>section .listeners {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}

.intro-boxes article.stream>section .listeners p {
  margin: 0;
}

.intro-boxes article.stream {
  position: relative;
}

.intro-boxes h2 a {
  white-space: nowrap;
  text-decoration: none;
}
.new_user {
  margin-block: var(--gap-small);
  width: 400px;
  max-width: 100%;

  input {
    width: 100%;
    display: block;

    &[type='submit'] {
      background-color: var(--black);
      color: #fff;
      font-weight: 700;
      margin-top: calc(3 * var(--gap-small));
    }
  }

  .field {
    margin-bottom: calc(2 * var(--gap-small));
  }
}
.embed-player {
  position: relative;
  border: 1px solid #aaa !important;
  border-radius: 1em;
  padding: 1em !important;
  padding-top: 4em !important;
  margin-top: 1em;
  margin-bottom: 1em;
}

.embed-player .radiobubbla-symbol {
  position: absolute;
  top: 1em; left: 1em;
  width: 2em; height: 2em;
}

.embed-player .permalink {
  font-family: 'Inconsolata', serif;
  position: absolute;
  top: 1em; right: 1em;
}

.embed-player h1 {
  font-family: 'Crete Round', serif;
  font-weight: 400;
  font-size: 1.5em;
  margin: 0;
}

.embed-player h2 {
  font-family: 'Inconsolata', serif;
  font-weight: 400;
  font-size: 1em;
  margin: 0;
  margin-top: 0.5em;
}

.embed-player p {
  font-family: 'Inconsolata', monospace;
  font-size: 1em;
  margin: 0;
  margin-top: 0.5em;
}

.embed-player a {
  text-decoration: none;
  color: inherit;
  line-height: 1.3em;
  padding-bottom: 3px;
}

.embed-player h1.track-title a {
  text-decoration-line: underline;
  text-decoration-color: rgb(255, 131, 190);
  text-decoration-skip-ink: none;
  text-decoration-thickness: 3px;
}

.embed-player audio {
  width: 100%;
  margin-top: 1em;
}
.overlay-box {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background-color: #fff;
  box-shadow: var(--box-shadow);
  text-align: center;
  width: 840px;
  max-width: 80vw;
  padding: var(--spacing-md) var(--spacing-md) calc(2 * var(--spacing-md));
  margin: 200px auto;

  .close-button {
    display: none;
  }

  &:after {
    content: '';
    display: block;
    height: 50px;
    background: transparent;
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
  }

  .logo svg {
    margin-left: auto;
    margin-right: auto;
  }

  >h1 {
    margin-bottom: calc(var(--spacing-md) / 2);
    font-size: 30px;
  }
}

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;

  .payment-modal-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }

  .payment-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: var(--spacing-md) var(--spacing-md) calc(2 * var(--spacing-md));
    width: 80%;
    max-height: 80vh;
    max-width: 500px;
    z-index: 10000;
    overflow-y: scroll;
    box-shadow: var(--box-shadow);

    >* {
      text-align: center;
    }

    >*:not(:last-child) {
      margin-bottom: var(--spacing-md);
    }

    .logo svg {
      margin-left: auto;
      margin-right: auto;
    }

    >h1 {
      margin-bottom: calc(var(--spacing-md) / 2);
      font-size: 30px;
    }

    .selling-points {
      list-style-type: none;
      display: table;
      margin-left: auto;
      margin-right: auto;
      padding-left: 30px;

      li {
        position: relative;
        text-align: left;
        display: table-row;
        border-bottom: 3px solid transparent;

        &::before {
          content: '';
          display: block;
          width: 1em;
          height: 1em;
          min-width: 1em;
          min-height: 1em;
          position: absolute;
          left: -25px;
          top: 2px;
        }

        &:not(:last-child)::after {
          content: '';
          display: block;
          height: 4px;
        }
      }
    }

    .payment-area {
      background-color: #eee;
      padding: 1em;
      border-radius: 1em;

      p {
        margin-top: 1em;
        margin-bottom: 1em;
      }

      .already-member {
        font-weight: 700;
        text-align: center;
        margin-bottom: var(--spacing-md);
      }
    }

    .close-button {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
    }
  }
}
main {
  >.playable {
    >header:first-child {
      display: grid;
      align-items: flex-start;
      grid-template-columns: min-content 1fr;
      grid-template-rows: min-content;
      column-gap: calc(3 * var(--gap-small));

      .play-button.small {
        min-width: var(--big-button-size);
        width: var(--big-button-size);
        min-height: var(--big-button-size);
      }

      .metadata {
        .duration-and-episode {
          font-size: 1.25rem;
        }

        >*:not(h1, .tags) {
          font-size: 19px;
          line-height: 1.31em;
        }
      }
    }

    .metadata {
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr;
      row-gap: calc(1.5 * var(--gap-small));
    }

    &.show {
      .segment.card {
        .parent-episode {
          display: none;
        }
      }
    }
  }
}

/* BREADCRUMBS NAVIGATION */

nav.previous-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: calc(3 * var(--gap-small));
}

nav.previous-next .next {
  text-align: right;
}
.player {
  background-color: #fff;
  bottom: 0px;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  z-index: 9;
}

.player-hidden {
  transform: translateY(100%);
  transition: transform 0.5s ease-out 0s;
}

.player-visible {
  transform: translateY(0px);
  transition: transform 0.5s ease-out 0s;
}

.player .timeline {
  width: 100%;
  height: 6px;
  background-color: rgb(255, 235, 240);
  position: relative;
  cursor: pointer;
}

.player .timeline-progress {
  border-radius: 0 8px 8px 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--black);
}

aside.player .player-controls {
  display: grid;
  align-items: center;
  grid-template-columns: 32px calc(50% - 158px) 260px calc(50% - 158px);
  grid-column-gap: var(--gap-small);
  padding: var(--gap-small) calc(2 * var(--gap-small));
}

.player-controls>header {
  display: flex;
  align-items: center;
  justify-content: flex-start;

}

aside.player .player-controls .track-links {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin-right: calc(2 * var(--gap-small));
  overflow: hidden;
  line-height: 1.15em;
  margin-right: auto;
}

aside.player .player-controls .pause-icon.hidden,
aside.player .player-controls .play-icon.hidden {
  display: none;
}

aside.player .player-controls .track-title a,
aside.player .player-controls .track-title .non-link {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  display: block;
}

aside.player .player-controls .track-subtitle a {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

aside.player .track-title a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25em;
  /*! white-space: nowrap; */
}

aside.player nav {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: calc(3*var(--gap-small));
}

aside.player button:hover:not(.play-button, .pause-button) path {
  fill: var(--dark-gray);
}

aside.player .player-controls aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: calc(2 * var(--gap-small));
}

aside.player .player-controls .duration {
  font-size: 14px;
  font-weight: 700;
}

/* VOLUME CONTROL */

.player .volume-control-wrapper {
  height: 24px;
  display: flex;
  align-items: center;
  margin-right: 0.6em;
}

@media screen and (max-width: 767px) {
  .player .volume-control-wrapper {
    display: none;
  }
}

.player .volume-slider-wrapper {
  background-color: #ffffff;
  width: 48px;
  height: 20px;
}

.player .volume-slider {
  width: 100%;
  height: 100%;
  padding: 0;
  margin-left: 0.5em;
  -webkit-appearance: none;
}

/* Chrome & Safari */
.player .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: black;
  border-radius: 100%;
  margin-top: -3px;
}

.player .volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: #D8D8D8;
}

/* Firefox */
.player .volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: black;
}

.player .volume-slider::-moz-range-track {
  height: 4px;
  background: #D8D8D8;
}

.player .volume-slider::-moz-range-progress {
  background: black;
}


/* PLAYLIST PANEL */

.playlist-panel {
  position: absolute;
  bottom: 100%;
  width: 300px;
  background-color: #fff;
  /*border: 1px solid #000;*/
  overflow-y: hidden;
}

.playlist-panel.hidden {
  display: none;
}

.player-controls button.playlist {
  min-width: var(--small-button-size);
  width: var(--small-button-size);
  height: var(--small-button-size);
  min-height: var(--small-button-size);
  border-radius: 50%;
}

.playlist-panel:not(.hidden)+.player-controls button.playlist {
  background-color: var(--black) !important;
}

.playlist-panel:not(.hidden)+.player-controls button.playlist path {
  fill: #fff;
}

.playlist-panel header {
  display: flex;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: calc(var(--gap-small) / 2) calc(2 * var(--gap-small));
  background: var(--black);
  color: #fff;
}

.playlist-panel ul {
  height: 365px;

  overflow-y: scroll;
  max-height: 60vh;
}

.playlist-panel ul li {
  display: block;
  padding: var(--gap-small) calc(2 * var(--gap-small));
}

.playlist-panel li.active {
  background: var(--pink-light);
}

.playlist-panel li:not(.active):hover {
  background: rgba(0, 0, 0, 0.03);
}

.playlist-panel ul li a {
  display: grid;
  align-items: center;
  row-gap: calc(var(--gap-small) / 2);
  grid-template-columns: calc(100% - 24px) 24px;
  align-items: center;
}

.playlist-panel ul a {
  text-decoration: none;
}

.playlist-panel ul .title {
  padding-right: calc(2 * var(--gap-small));
  grid-area: 2 / 1 / 3 / 2;
}

.playlist-panel ul .title,
.playlist-panel ul .duration {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25em;
}

.playlist-panel ul .duration {
  grid-area: 1 / 1 / 2 / 2;
  font-weight: 700;
}

.playlist-panel li a>span {
  vertical-align: middle;
}

.playlist-panel ul .arrow {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  grid-area: 1 / 2 / 3 / 3;
  align-self: center;
}

/* TRANSCRIPTION PANEL */

.transcript-panel {
  width: 650px;
  max-width: 60vw;
  position: absolute;
  bottom: 100%;
  right: 0;
  height: 80vh;
  overflow: scroll;
  box-shadow: var(--box-shadow);
}
/* RSS LINK */

.rss-link {
  display: flex;
  align-items: flex-start;
  row-gap: 6px;

  .copy-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }

  a {
    margin-right: 6px;
    word-break: break-all;
  }

  .copy-success {
    background-color: #000;
    color: #fff;
    padding: 2px 8px;
    font-weight: 700;
  }
}

/* PODCAST */

.podcasts-index {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  column-gap: var(--gap-small);

  .podcasts {
    min-width: calc(66% - var(--gap-small));
    flex-grow: 1;
    flex-shrink: 1;
  }

  .instructions {
    min-width: 34%;
    flex-grow: 1;
    flex-shrink: 1;

    >* {
      margin-bottom: calc(2 * var(--gap-small));
    }

    h2 {
      font-size: 20px;
    }
  }

  .card .podcast-image img {
    width: 96px;
    min-width: 96px;
  }
}

.podcast-guide-page {
  .instructions {
    >* {
      margin-bottom: calc(2 * var(--gap-small));
    }

    .podcast-apps {
      display: none;
    }
  }
}

.flash-update {
  background-color: transparent;
  transition: background-color 1s ease-out;
}

.flash-active {
  background-color: rgb(255, 131, 190);
}

:root {
  --hot-green: #00B894;
  --hot-yellow: #FFB200;
  --hot-red: #E63946;
  --hot-blue: #3498DB;
  --light-green: #DFF8E7;
  --light-yellow: #FFF5E1;
  --light-red: #FED7D7;
  --light-blue: #DAE9F7;
}

.podcast-app.card {
  >h2 {
    width: fit-content;
  }

  &.works>h2 {
    background-color: var(--light-green);
  }

  &.works-partially>h2 {
    background-color: var(--light-yellow);
  }

  &.works-not>h2 {
    background-color: var(--light-red);
  }
}

.intro-boxes .podcast.card img {
  width: 96px;
  min-width: 96px;
}

.playables>.podcast.card.teaser {
  * {
    color: var(--dark-gray);
  }

  img {
    filter: grayscale(1);
  }

  a {
    text-decoration: none;
  }
}

/* SINGLE PODCAST */

.podcast {
  >header {
    display: grid;
    align-items: flex-start;
    grid-template-columns: min-content 1fr;
    grid-template-rows: min-content;
    column-gap: calc(3 * var(--gap-small));
    row-gap: calc(2 * var(--gap-small));
  }
}

.podcast-image img {
  width: 180px;
  min-width: 180px;
  height: auto;
  object-fit: cover;
}

.podcast:not(.card) .metadata {
  display: grid;
  grid-template-rows: auto;
  row-gap: calc(1.5 * var(--gap-small));
}
/* This is probably not a great way to segment CSS. Rather, this shuold
   be broken up and moved to each respective feature/page based CSS file.
*/

@media(max-width:1024px) {

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
    line-height: 1.2em;
  }

  main {
    padding: var(--spacing-md) calc(var(--spacing-md) / 2);
    padding-bottom: 80px;
  }

  .card {
    padding: calc(2 * var(--gap-small))
  }

  .playables>article,
  .intro-boxes .playables>article>section {
    column-gap: calc(1.5 * var(--gap-small));
  }

  .more-episodes .playables {
    margin-top: calc(2 * var(--gap-small));
  }

  .show-more {
    margin-top: calc(var(--gap-small) * 3);
  }

  /* HOME PAGE */

  main .welcome {
    margin: calc(var(--spacing-md) * 0.5) auto calc(var(--spacing-md) * 1.5);
  }

  .intro-boxes {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-episode.playables>article .metadata h1 a {
    font-size: 32px;
  }

  .latest-episode .card:not(.podcast) .metadata {
    padding-top: 4px;
  }

  .more-episodes .playables,
  .featured-tags .tag>section {
    row-gap: calc(3 * var(--gap-small));
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  /* PODCAST */

  .podcasts-index {
    flex-wrap: wrap;
  }

  .podcasts-index .instructions,
  .podcasts-index .podcasts {
    min-width: 100%;
  }

  /* SINGLE EPISODE */

  main>.playable>header:first-child,
  .podcast>header {
    column-gap: calc(2 * var(--gap-small));
  }

  /* TRANSCRIPTION PANEL */

  .transcript-panel {
    width: 100%;
    max-width: 80vw;
  }

}

@media(max-width: 768px) {

  body {
    padding-top: 55px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .card>h2 {
    font-size: 20px;
  }

  .pagy-info {
    margin-top: calc(var(--spacing-md) / 2);
    font-size: 18px;
    margin-bottom: var(--gap-small);
  }

  main>.playable>header:first-child .play-button.small {
    min-width: var(--big-button-size--mobile);
    width: var(--big-button-size--mobile);
    min-height: var(--big-button-size--mobile);
    min-width: var(--big-button-size--mobile);
  }

  main {
    padding: calc(var(--spacing-md) * 1.5) calc(var(--gap-small));
  }

  main>h2 {
    font-size: 18px;
    margin-bottom: var(--gap-small) !important;
  }

  button.black-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .latest-episode .card>.buttons .play-button {
    width: var(--big-button-size--mobile);
    min-width: var(--big-button-size--mobile);
    height: var(--big-button-size--mobile);
    min-height: var(--big-button-size--mobile);
  }

  button.big {
    width: var(--big-button-size--mobile);
    min-width: var(--big-button-size--mobile);
    height: var(--big-button-size--mobile);
    min-height: var(--big-button-size--mobile);
  }

  .frontpage .intro-boxes .card {
    margin-bottom: calc(var(--gap-small) / 2);
    margin-bottom: 0;
  }
}

/* Styles related to 'mobile mode', i.e. the switch we do with Javascript.
   This breakpoint must always match the one in the Javascript, i.e:

   app/javascript/controllers/main_menu_controller.js

*/
@media(max-width: 1024px) {

  /* HEADER */

  .site-header {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
  }

  .site-header .mobile-main-menu {
    display: block !important;
    text-align: right;
    position: relative;
    vertical-align: middle;
  }

  .site-header .toggle-mobile-menu {
    width: 26px !important;
    height: auto !important;
    vertical-align: middle;
  }

  .site-header .toggle-mobile-menu rect {
    transition: 0.25s all;
  }

  .site-header .toggle-mobile-menu.active rect:nth-child(1) {
    transform: rotate(45deg) translate(6px, -6px);
  }

  .site-header .toggle-mobile-menu.active rect:nth-child(2) {
    opacity: 0;
  }

  .site-header .toggle-mobile-menu.active rect:nth-child(3) {
    transform: rotate(-45deg) translate(-11px, -1px);
  }

  .main-menu ul {
    display: none !important;
  }

  .mobile-main-menu ul {
    position: absolute;
    z-index: 2;
    top: calc(100% + var(--gap-small));
    background: white;
    width: 100vw;
    right: calc(-2 * var(--gap-small));
    padding: calc(2 * var(--gap-small));
    box-shadow: var(--box-shadow);
  }

  .mobile-main-menu ul li:not(:last-child) {
    margin-bottom: 10px;
  }

  .mobile-main-menu ul a {
    font-size: 20px;
  }

  /* SEARCH */

  .site-header .search {
    width: 100%;
    max-width: 100%;
  }

}

@media(max-width: 768px) {

  /* HOME PAGE */

  main .welcome {
    margin: calc(var(--spacing-md) * 0.5) auto calc(var(--spacing-md));
    grid-template-columns: 1fr;
    row-gap: calc(2 * var(--gap-small));
  }

  main .welcome .site-logo svg {
    max-width: 100px;
  }

  main .cta p {
    font-size: 1rem;
    margin-top: calc(2 * var(--gap-small));
    margin-bottom: calc(var(--spacing-md) / 2);
  }

  .card .metadata h1,
  .card .metadata h1 a {
    font-size: 18px
  }

  .playables>article,
  .intro-boxes .playables>article>section {
    column-gap: var(--gap-small);
  }

  .intro-boxes .playables header h2,
  .intro-boxes .stream.card>header .broadcast-notifications {
    margin-bottom: calc(2 * var(--gap-small));
  }

  .podcast-image img {
    width: 96px;
    min-width: 96px;
  }

  .podcasts-index .card .podcast-image img {
    width: 68px;
    min-width: 68px;
  }

  .latest-episode.playables>article .metadata h1 a {
    font-size: 24px;
  }

  .latest-episode>.episode>.metadata aside.duration,
  .latest-episode>.episode>.metadata .description {
    font-size: 1rem;
  }

  .segments {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: calc(1.5 * var(--gap-small));
  }

  /* MAIN SEGMENT HEADER */

  main>.playable>header:first-child,
  .podcast>header {
    column-gap: calc(1 * var(--gap-small));
  }

  main>.playable>header:first-child .metadata {
    padding-top: 7px;
  }

  /* RADIO */

  aside.player .player-controls {
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--gap-small);
    padding: var(--gap-small) calc(var(--spacing-md) / 3);

  }

  aside.player header,
  aside.player nav {
    width: 100%;
  }

  aside.player nav {
    width: calc(100% - 80px);
    justify-content: flex-start;
    order: 3;
    justify-content: center;
  }

  aside.player .player-controls aside {
    width: 32px;
    order: 4;
    position: relative;
  }

  aside.player button.transcript {
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    height: 24px;
  }

  .transcript header h1 {
    font-size: 24px;
    margin: calc(var(--spacing-md) / 2) 0;
  }

  .transcript p {
    font-size: 16px;
  }



  aside.player .transcript-panel {
    bottom: 100%;
    height: 70vh;
    max-width: 90vw;
  }

  aside.player .player-controls aside button:not(.transcript),
  aside.player .player-controls span {
    display: none;
  }

  .player-controls button.playlist {
    order: 2;
  }

  aside.player .player-controls .track-links {
    order: 1;
    width: 100%;
    margin-right: 0;
  }

  /* OVERLAY BOX */

  .payment-modal-content,
  .overlay-box {
    padding: calc(var(--gap-small) * 4) calc(var(--gap-small) * 2) calc(var(--gap-small) * 3);
  }
}
/* SEARCH PAGE */

main {
  #search-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: calc(var(--gap-small) * 1.5);
    row-gap: calc(var(--gap-small) * 1.5);

    select {
      background-color: #000;
      color: #fff;
      padding: 6px 40px 6px 10px;
      border: none;

      &:hover {
        background-color: var(--dark-gray);
      }

      option {
        background-color: #fff;
        color: #000;
      }
    }

    &~.tags {
      background-color: #fff;
      padding: calc(3 * var(--gap-small));
      box-shadow: var(--box-shadow);
      margin-bottom: var(--gap-small) !important;
      line-height: 1em;
      align-items: flex-start;

      header {
        line-height: 1.25em;
        font-weight: 700;
        font-size: 1.05em;
      }

      span {
        margin-top: 0;
      }
    }
  }
}

/* SEARCH PAGINATION */

.search-paginator {
  margin-top: calc(var(--spacing-md) - var(--gap-small));

  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    column-gap: var(--gap-small);
  }

  span {
    border: 1px solid transparent;

    &:not(.prev, .next) {
      width: 32px;
      height: 32px;
      min-width: 32px;
      min-height: 32px;
      justify-content: center;
      align-items: center;
      display: flex;
    }
  }

  .active {
    font-weight: 700;
    border: 1px solid black;
    border-radius: 50%;
  }

  a {
    font-weight: 400;
    text-decoration: none;
    padding: var(--gap-small) calc(1.5 * var(--gap-small));

    &:hover {
      color: var(--dark-gray);
    }
  }
}
/* TAGS */

.tags {
  column-gap: var(--gap-small);
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: var(--gap-small);

  span {
    display: inline-block;
  }

  a {
    border: 1px solid var(--black);
    border-radius: 99px;
    padding: 3px 8px 3px 12px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1em;

    &:hover {
      color: #fff;
      background-color: var(--black);
      cursor: pointer;
    }
  }
}

.card .tags {
  row-gap: 0;

  .tag {
    margin-top: var(--gap-small);
  }
}
.timestamps {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.timestamps h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.timestamp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timestamp-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.timestamp-list li:last-child {
  border-bottom: none;
}

.timestamp-link {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.timestamp-link:hover {
  color: #0066cc;
  text-decoration: none;
}

.timestamp-link:visited {
  color: inherit;
}

.timestamp-link:visited:hover {
  color: #0066cc;
}
/* TRANSCRIPT TEASER PANEL */

.transcript.teaser {
  position: relative;
}

.transcript.teaser::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, white, rgba(255, 255, 255, 0.2));
  z-index: 1;
}

/* TRANSCRIPTION PANEL */

.transcript-panel {
  width: 650px;
  max-width: 60vw;
  position: absolute;
  bottom: 100%;
  right: 0;
  height: 80vh;
  overflow-y: scroll;
  overflow-x: hidden;
  box-shadow: var(--box-shadow);
}

.transcript header h2 {
  font-size: 19px;
  line-height: 1.3em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transcript header h1 {
  font-size: 30px;
  line-height: 1.25em;
  text-align: center;
  margin: var(--spacing-md) 0;
}

.transcript section h2 {
  margin-bottom: var(--gap-small);
  font-size: 20px;
}

.transcript p {
  margin-bottom: 1em;
  font-size: 19px;
  line-height: 1.35em;
  position: relative;
}

.transcript p>a:first-child {
  display: inline-block;
  line-height: 0;
  vertical-align: text-bottom;
  line-height: 1em;
  position: absolute;
  left: -22px;
  top: 3px;
  border-radius: 50%;
}

/* TRANSCRIPT TEASER PANEL popup */

.transcript.teaser {
  position: relative;
  overflow: hidden;
}

.transcript.teaser::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, white, rgba(255, 255, 255, 0.2));
  z-index: 1;
}

article.transcript {
  background: #FFF;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md) calc(var(--spacing-md) * 2);
  margin-bottom: var(--spacing-md);

  header {
    h2 {
      font-size: 19px;
      line-height: 1.3em;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    h1 {
      font-size: 30px;
      line-height: 1.25em;
      text-align: center;
      margin: var(--spacing-md) 0;
    }
  }

  section h2 {
    margin-bottom: var(--gap-small);
    font-size: 20px;
  }

  p {
    margin-bottom: 1em;
    font-size: 19px;
    line-height: 1.35em;
    position: relative;

    >a:first-child {
      display: inline-block;
      line-height: 0;
      vertical-align: text-bottom;
      line-height: 1em;
      position: absolute;
      left: -22px;
      top: 3px;
      border-radius: 50%;
    }
  }
}

@media (max-width: 1024px) {
  article.transcript {
    padding: var(--spacing-md) calc(var(--spacing-md) / 2) var(--spacing-md) var(--spacing-md);
  }
}

.transcript.teaser {
  position: relative;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0.2));
    z-index: 1;
  }
}

.transcript-panel {
  width: 650px;
  max-width: 60vw;
  position: absolute;
  bottom: 100%;
  right: 0;
  height: 80vh;
  overflow-y: scroll;
  overflow-x: hidden;
  box-shadow: var(--box-shadow);
}
html {
  font-size: 16px;
  line-height: 1.3em;
}

body {
  font-size: 16px;
  font-family: 'Inconsolata', monospace;
}

input {
  font-family: 'Inconsolata', monospace;
}

h1,
h2,
h3 {
  font-family: "Crete Round", serif;
  font-weight: 400;
}

h1 {
  font-size: 42px;
  line-height: 1.2em;
}

h2 {
  font-size: 30px;
  line-height: 1.2em;
}

h3 {
  font-size: 20px;
  line-height: 1.2em;
}

a {
  text-decoration-line: underline;
  text-decoration-skip-ink: all;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(255, 131, 190);
  font-weight: 700;
  color: var(--black);
  /*! line-height: 1.3em; */
  padding-bottom: 0;
}

a:hover {
  text-decoration-color: #FF007A;
}

.credential {
  font-weight: 700;
}
