html {
  margin: 0;
  padding: 0;
}
body{
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

body.pc-library-weaverbiblecollege{
  --pc-ws-header-bg: linear-gradient(180deg, rgba(250, 244, 234, 0.98) 0%, rgba(244, 233, 216, 0.98) 100%);
  --pc-ws-header-border: rgba(201, 160, 91, 0.66);
  --pc-ws-header-shadow: 0 10px 24px rgba(16, 38, 70, 0.14);
  --pc-ws-header-text: #102646;
  --pc-ws-header-divider: rgba(154, 121, 73, 0.22);
  --pc-ws-header-audio-bg: linear-gradient(180deg, rgba(255, 252, 246, 0.96) 0%, rgba(250, 243, 232, 0.96) 100%);
  --pc-ws-header-audio-border: rgba(201, 160, 91, 0.48);
  --pc-ws-accent: #102646;
  --pc-page-focus: rgba(16, 38, 70, 0.2);
  --pc-weaver-navy: #102646;
  --pc-weaver-burgundy: #611d20;
  --pc-weaver-gold: #c9a05b;
  --pc-weaver-gold-bright: #e0b55a;
  --pc-weaver-parchment: #faf2e7;
  --pc-weaver-panel: #f7ecdc;
  --pc-weaver-border: #dcc29a;
  background: linear-gradient(180deg, #fbf6ef 0%, #f4eadb 100%);
  color: #1b2940;
}

html.pc-force-desktop{
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(31, 77, 43, .72) rgba(225, 236, 226, .78);
}

html.pc-force-desktop::-webkit-scrollbar,
body.pc-force-desktop::-webkit-scrollbar{
  width: 13px;
  height: 13px;
}

html.pc-force-desktop::-webkit-scrollbar-track,
body.pc-force-desktop::-webkit-scrollbar-track{
  background: rgba(225, 236, 226, .78);
}

html.pc-force-desktop::-webkit-scrollbar-thumb,
body.pc-force-desktop::-webkit-scrollbar-thumb{
  background: rgba(31, 77, 43, .72);
  border: 3px solid rgba(225, 236, 226, .78);
  border-radius: 999px;
}

html.pc-force-desktop::-webkit-scrollbar-thumb:hover,
body.pc-force-desktop::-webkit-scrollbar-thumb:hover{
  background: rgba(23, 56, 39, .88);
}

html.pc-force-desktop[data-pc-color-scheme="weaver"],
body.pc-force-desktop[data-pc-color-scheme="weaver"],
body.pc-force-desktop.pc-library-weaverbiblecollege{
  scrollbar-color: rgba(16, 38, 70, .84) rgba(246, 234, 210, .92);
}

html.pc-force-desktop[data-pc-color-scheme="weaver"]::-webkit-scrollbar-track,
body.pc-force-desktop[data-pc-color-scheme="weaver"]::-webkit-scrollbar-track,
body.pc-force-desktop.pc-library-weaverbiblecollege::-webkit-scrollbar-track{
  background: rgba(246, 234, 210, .92);
}

html.pc-force-desktop[data-pc-color-scheme="weaver"]::-webkit-scrollbar-thumb,
body.pc-force-desktop[data-pc-color-scheme="weaver"]::-webkit-scrollbar-thumb,
body.pc-force-desktop.pc-library-weaverbiblecollege::-webkit-scrollbar-thumb{
  background: rgba(16, 38, 70, .84);
  border-color: rgba(246, 234, 210, .92);
}

html.pc-force-desktop[data-pc-color-scheme="weaver"]::-webkit-scrollbar-thumb:hover,
body.pc-force-desktop[data-pc-color-scheme="weaver"]::-webkit-scrollbar-thumb:hover,
body.pc-force-desktop.pc-library-weaverbiblecollege::-webkit-scrollbar-thumb:hover{
  background: rgba(111, 29, 36, .9);
}

/* NOTE: This global div rule affects ALL divs, including menus/modals.
   We'll override where needed below. */
/* Apply the 90% centered layout ONLY to the main content container */
#content.content{
  width: 90%;
  margin: 0 auto;
}

h1{
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 5px;
  letter-spacing: .05em
}

p {
  -moz-osx-font-smoothing: black;
  -webkit-font-smoothing: antialiased !important;
  -moz-font-smoothing: antialiased !important;
  text-rendering: optimizelegibility !important;
  letter-spacing: .03em;
  line-height: 1.5em;
}

#one p{
  color: #777;
  font-size: 16px;
  font-family: "Roboto", Arial;
  line-height: 1.5em;
  padding: 0 0 1em 0;
  text-align: justify;
}

#two p{
  color: #333;
  padding: 0 0 1em 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5em;
  text-align: justify;
}

/* FIX: invalid CSS value [150] -> 150px */
main {
  padding-top: 100px; /* Match header height */
}

.header {
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  text-align: center;
  position: fixed;
  z-index: 1000;
  background-color: white;
  white-space: normal;
  overflow-x: hidden;
  padding-top: 4px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.pc-lecturebar {
  position: fixed;
  top: 2px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  background: var(--pc-ws-header-bg, linear-gradient(135deg, #dfe9df 0%, #c5d8c9 100%));
  border: 1px solid var(--pc-ws-header-border, #adc2b2);
  border-radius: 14px;
  box-shadow: var(--pc-ws-header-shadow, 0 8px 18px rgba(34, 53, 44, 0.12));
  color: var(--pc-ws-header-text, #173827);
  overflow: hidden;
  margin-left: 8px;
}
.pc-lecturebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  flex-wrap: nowrap;
}
.pc-lecturebar__row + .pc-lecturebar__row {
  border-top: 1px solid var(--pc-ws-header-divider, rgba(92, 127, 108, 0.22));
  justify-content: space-between;
}
.pc-lecturebar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.pc-lecturebar__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-lecturebar__right {
  margin-left: auto;
  align-items: right;
}

.pc-lecturebar__audio {
  flex: 1 1 auto;
  min-width: 0;
}
.pc-lecturebar__audio audio {
  width: 100%;
  min-width: 0;
  display: block;
}
.pc-lecturebar__icon {
  border: 1px solid #2f4f3a;
  background: #fff;
  color: #2f4f3a;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pc-lecturebar__icon i {
  font-size: 14px;
  line-height: 1;
}
.pc-lecturebar__icon:hover,
.pc-lecturebar__icon:focus {
  background: #f6faf6;
  color: #1f4d2b;
}
.pc-lecturebar__share {
  display: flex;
  align-items: center;
}
/* ================================
   NEW: Make current markup match “pc-iconbtn / pc-pillbtn” look
   Drop this AFTER your existing lecturebar CSS
   ================================ */
/* Use sticky instead of fixed unless you *need* fixed */
.pc-lecturebar{
  position: sticky;   /* change back to fixed if you prefer */
  top: 0px;
}
/* Groups */
.pc-group,
.pc-lecturebar__group{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
/* Row 2 should NOT space-between; it should be rewind + audio */
.pc-row2{
  justify-content: flex-start;
}
/* Give the audio group full width */
.pc-lecturebar__audio{
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
/* Audio row: keep it slim */
.pc-row2{
  align-items: center;
  min-height: 44px;
}
/* Audio container */
.pc-lecturebar__audio{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pc-row2 .pc-lecturebar__audio{
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 5px;
  border: 1px solid var(--pc-ws-header-audio-border, rgba(255, 255, 255, 0.78));
  border-radius: 24px;
  background: var(--pc-ws-header-audio-bg, rgba(255, 255, 255, 0.9));
  color: var(--pc-ws-accent, #284e44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pc-row2 .pc-rewind-btn{
  color: var(--pc-ws-accent, #284e44);
}

/* Audio element */
.pc-lecturebar__audio audio{
  grid-column: 2;
  width: 100%;
  min-width: 0;
  line-height: normal;
  align-self: center;
}

/* === Icon buttons (Prev/Home/Next) ===
   Your anchors currently use .pc-lecturebar__icon
   Turn them into real circular icon buttons
*/
.pc-lecturebar__icon{
  width: 38px;
  height: 38px;
  padding: 0;                 /* overrides your 6px 10px */
  border-radius: 999px;
  border: 1px solid rgba(47,79,58,.40);
  background: #fff;
  color: rgb(47,79,58);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pc-lecturebar__icon:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  background: #fff;
}
/* Icon sizing */
.pc-lecturebar__icon i{
  font-size: 16px;
  line-height: 1;
}
.pc-lecturebar__icon{
  position: relative; /* REQUIRED for internal positioning */
}
/* number inside the circle */
.pc-iconbtn__badge{
  position: absolute;
  bottom: 10px;
  right: 9px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: rgb(47,79,58);
  pointer-events: none;
}
/* === Rewind button should match icon button size === */
.pc-rewind-btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(47,79,58,.40);
  background: #fff;
  object-fit: contain;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.pc-rewind-btn i{
  letter-spacing: -0.02em;
}
/* Rewind button: icon-only, no circle */
.pc-rewind-btn{
  border: none;
  background: transparent;
  box-shadow: none;
}

/* === Ask + Share as pill buttons ===
   You already have #pcRushdoonyToggle and #pc-mini-share-btn.
   Make them look like .pc-pillbtn.
*/
#pcRushdoonyToggle,
#pc-mini-share-btn{
  height: 38px;
  padding: 0 14px !important;
  border-radius: 999px;
  border: 1px solid rgba(47,79,58,.40) !important;
  background: #fff !important;
  color: rgb(47,79,58) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 13px !important;
  line-height: 1;
}
#pcRushdoonyToggle:hover,
#pc-mini-share-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
/* If you want “Ask” and “Share” text labels (optional):
   Add spans in HTML, or just leave icons only. */
/* === Pill buttons (Ask / Share / Speed) === */
.pc-pillbtn{
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(47,79,58,.40);
  background: #fff;
  color: rgb(47,79,58);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 13px;
  line-height: 1;
}
.pc-pillbtn.pc-pillbtn-docked,
#pcRushdoonyToggle.pc-pillbtn-docked{
  background: rgb(47,79,58) !important;
  color: #fff !important;
  border-color: rgb(47,79,58) !important;
}
/* Keep your hover polish */
.pc-pillbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* Make audio take the rest of the line */
.pc-lecturebar__audio audio,
#myAudio{
  grid-column: 2;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: block;
}
.pc-youtube-player-shell {
  flex: 1 1 420px;
  min-width: 260px;
  max-width: 560px;
}
.pc-lecture-video-panel {
  grid-column: 1 / -1;
  flex: 1 0 100%;
  width: 100%;
  margin: 8px auto 0;
}
.pc-youtube-player-shell--centered {
  margin: 0 auto;
  max-width: min(760px, 100%);
}
.pc-youtube-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 130px;
  border: 1px solid rgba(47, 79, 58, .24);
  border-radius: 16px;
  background: #102017;
  box-shadow: 0 10px 24px rgba(20, 40, 30, .12);
}
.pc-youtube-player-shell__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  color: rgba(28, 54, 42, .72);
  font-size: 11px;
  line-height: 1.25;
}
.pc-youtube-player-shell__meta a,
.pc-source-media-link {
  color: rgb(47, 79, 58);
  font-weight: 700;
  text-decoration: none;
}
.pc-media-actions {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  padding: 2px;
  border: 1px solid rgba(47, 79, 58, .16);
  border-radius: 999px;
  background: rgba(244, 249, 245, .82);
  white-space: nowrap;
}
.pc-media-action,
a.pc-media-action {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(47, 79, 58);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pc-media-action:hover,
.pc-media-action:focus {
  background: #fff;
  color: #173827;
  box-shadow: 0 3px 8px rgba(28, 54, 42, .12);
}
.pc-source-media-link {
  white-space: nowrap;
  font-size: 12px;
}
.pc-video-toggle.is-active {
  background: rgb(47, 79, 58);
  border-color: rgb(47, 79, 58);
  color: #fff;
}

@media (max-width: 680px) {
  .pc-row2 .pc-lecturebar__audio {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 20px;
  }

  .pc-media-actions {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: -2px;
  }

  .pc-media-action,
  a.pc-media-action {
    height: 28px;
    padding: 0 9px;
  }
}

@media (max-width: 430px) {
  .pc-media-action-text {
    display: none;
  }

  .pc-media-action,
  a.pc-media-action {
    width: 30px;
    padding: 0;
  }
}

.pc-navseg{
  display: flex;
  align-items: center;
  border: 1px solid rgba(47,79,58,.35);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
/* remove individual borders when inside segmented container */
.pc-navseg .pc-lecturebar__icon{
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.pc-navseg .pc-lecturebar__icon:hover{
  box-shadow: none;
  transform: none;
  background: rgba(0,0,0,.03);
}
/* optional subtle dividers */
.pc-navseg .pc-lecturebar__icon + .pc-lecturebar__icon{
  border-left: 1px solid rgba(0,0,0,.08);
}
/* Make "Next" look active (green filled) */
.pc-navseg .next.pc-lecturebar__icon{
  background: #4caf50;
  color: #fff;
}
/* keeps icon+text nicely aligned */
.pc-btntext{ margin-left: 8px; }

.header__content-text {
  text-align: center;
  padding: 15px 20px;
}
.pc-speed-chip { white-space: nowrap; }
#pcSpeedChipVal { font-weight: 700; }

.content {
  margin: 100px auto;
  z-index: 1;
}

.pc-transcript-edition-meta {
  margin: -4px 0 12px;
  color: #41574b;
  font-size: 0.95rem;
}
/* Keep in-content images inside the pane */
#content img,
.content img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}

a.pc-bible-ref {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: inherit;
  vertical-align: baseline;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  white-space: normal;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

#content p a.pc-bible-ref,
#content p a.pc-bible-ref:link,
#content p a.pc-bible-ref:visited,
#content p a[href*="/bible/"],
#content p a[href*="/bible/"]:link,
#content p a[href*="/bible/"]:visited,
#content p a[href*="bible/index.php"],
#content p a[href*="bible/index.php"]:link,
#content p a[href*="bible/index.php"]:visited {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: inherit;
  vertical-align: baseline;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  box-shadow: none;
}

#content p a.pc-bible-ref:hover,
#content p a.pc-bible-ref:focus,
#content p a[href*="/bible/"]:hover,
#content p a[href*="/bible/"]:focus,
#content p a[href*="bible/index.php"]:hover,
#content p a[href*="bible/index.php"]:focus {
  background: none;
}

a:hover {
  background-color: #ddd;
  color: black;
}

.next:after {
  content: none;
}
.previous:before {
  content: none;
}

.previous {
  font-size: 16px;
  font-family: "Roboto", Arial;
  background-color: #f1f1f1;
  color: black;
  /* border-radius: 5%; */
  position: relative;
  /* top: -8px; */
}

.next {
  font-size: 16px;
  font-family: "Roboto", Arial;
  background-color: #4CAF50;
  color: white;
  /* border-radius: 5%; */
  position: relative;
  /* top: -8px; */
}

.speedlist {
  font-size: 16px;
  font-family: "Roboto", Arial;
  background-color: #4CAF50;
  color: white;
  border-radius: 5%;
  position: relative;
  top: -8px;
}

.highlight {
  background-color: #fef4cd;
  font-weight: bold;
  scroll-margin-top: 100px; /* Adjust this value based on your header height */
}

.copy-link-button {
  position: absolute;
  background-color: #f1f3f4;
  border: none;
  border-radius: 4px;
  color: #202124;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  z-index: 1000;
}

.copy-link-button:hover {
  background-color: #e8eaed;
}

/* -----------------------------
   Album cover: right aligned slot
   (align:right was not valid CSS)
   ----------------------------- */
#album-cover {
  display: block;
  float: right;
  margin: 0 0 12px 16px;

  height: auto;
  width: 35% !important;
  max-width: 35% !important;
  max-height: 500px;

  object-fit: contain;
}
/* =========================================================
   ULTRA-NARROW MINI-PLAYER ROW (? 250px)
   Goal: keep IMG + AUDIO + SHARE BUTTON on one line.
   Notes:
   - Native <audio controls> has a hard-ish minimum UI width in many browsers.
   - Inline styles on the button must be overridden with !important.
   ========================================================= */
@media (max-width: 250px){
  /* Album cover: stack and center */
  #album-cover{
    float: none;
    width: 100%;
    max-width: 480px;
    margin: 10px auto;
    display: block;
  }
  /* One-line audio row */
  .pc-audio-row{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    /* tighter than before to survive 250px */
    gap: 6px;
    width: 95%;
    padding: 0 6px;          /* reduced from 8px */
    box-sizing: border-box;
    /* if anything must give, we prefer overflow to wrapping */
    overflow: hidden;
  }
  /* Make sure children behave as flex items (not forcing breaks) */
  .pc-audio-row > img,
  .pc-audio-row > audio,
  .pc-audio-row > button{
    flex: 0 0 auto;
    max-width: 95%;
  }
  /* Rewind image: fixed, small */
  .pc-audio-row > img.pc-rewind-btn{
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  /* Audio: the only item allowed to shrink/grow */
  .pc-audio-row > audio{
    flex: 1 1 0%;
    min-width: 0;            /* critical: allow shrinking in flex */
    width: 95%;
    max-width: none;         /* remove artificial cap */
    display: block;
  }
  /* Share button: keep compact + override inline styles */
  #pc-mini-share-btn{
    flex: 0 0 auto;
    /* override inline */
    margin-left: 0 !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
  }
  /* Icon: keep it from inflating the button */
  #pc-mini-share-btn i{
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
  }
}

  /* This code made it work - do not touch */
.pc-audio-row{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 95%;
}
.pc-rewind-btn{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}
#myAudio{
  flex: 1 1 auto;
  min-width: 0;
}
#pc-mini-share-btn{
  flex: 0 0 auto;
  margin-left: 0 !important;
}


/* Right-floating infographic container */
#infographic-thumbs{
  float: right;
  clear: right;
  margin: 0 0 12px 16px;
  text-align: center;
  max-width: 500px;
  width: 32%;
/*  display: grid; */
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#infographic-thumbs img{
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}

#infographic-thumbs #pc-teachable-link{
  text-align: center;
  margin: 10px 0 0;
}

#infographic-thumbs #pc-teachable-link a{
  color: #1f4d2b;
  font-weight: 600;
  text-decoration: underline;
}


/* Each link should not add padding/background */
#infographic-thumbs a{
  display: block;
  padding: 0;
  background: transparent;
  width: 100% !important;
}
#infographic-thumbs a:hover{
  background: transparent;
}

@media (max-width: 900px){
  #infographic-thumbs a{
    width: 100% !important;
  }
}
/* -----------------------------------------
   Popup menu for transcript selections
   IMPORTANT: override global div width rule
   ----------------------------------------- */
#pc-selection-menu {
  width: auto !important;
  margin: 0 !important;

  background: rgb(31, 77, 43);
  border: 1px solid #ccc;
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 12px;

  position: absolute;
  max-width: fit-content !important;
  white-space: nowrap;
  z-index: 9999;
}

#pc-selection-menu button {
  margin: 0 2px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
}

#pc-selection-menu .word-study-button {
  border: 1px solid #d7e7c0;
  background: #f6f1d8;
  color: #173827;
  font-weight: 700;
}

#pc-selection-menu .word-study-button:hover,
#pc-selection-menu .word-study-button:focus {
  background: #fff8d6;
  outline: 2px solid rgba(246, 241, 216, 0.45);
  outline-offset: 1px;
}

#pc-selection-menu #pc-create-infographic-btn {
  border: 1px solid #d7e7c0;
  border-radius: 999px;
  background: #f6f1d8;
  color: #173827;
  font-weight: 700;
}

#pc-selection-menu #pc-create-infographic-btn:hover,
#pc-selection-menu #pc-create-infographic-btn:focus {
  background: #fff8d6;
  outline: 2px solid rgba(246, 241, 216, 0.45);
  outline-offset: 1px;
}

.tm-overlay {
  position: fixed;
  inset: 0;
  z-index: 12080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 29, 23, 0.46);
  backdrop-filter: blur(3px);
}

.tm-modal {
  width: min(95vw, 520px);
  max-height: min(88vh, 760px);
  overflow: auto;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--pc-ws-border, #d5e0d6);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 247, 0.96)),
    var(--pc-ws-surface, #ffffff);
  box-shadow: 0 24px 60px rgba(28, 45, 35, 0.28);
  color: var(--pc-ws-text, #1f2c26);
  font-family: "Roboto", sans-serif;
}

.tm-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -4px -2px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pc-ws-border, #d5e0d6);
}

.tm-modal__eyebrow,
.tm-control-label {
  margin-bottom: 5px;
  color: var(--pc-ws-muted, #627169);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-modal h3 {
  margin: 0;
  color: var(--pc-ws-accent, #284e44);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.tm-icon-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--pc-ws-border-strong, #8fad9c);
  border-radius: 999px;
  background: var(--pc-ws-surface, #ffffff);
  color: var(--pc-ws-accent, #284e44);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tm-quote-preview {
  max-height: 128px;
  overflow: auto;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--pc-ws-border, #d5e0d6);
  border-left: 4px solid var(--pc-ws-accent, #284e44);
  border-radius: 10px;
  background: var(--pc-ws-panel-soft, rgba(246, 250, 247, 0.82));
  color: var(--pc-ws-text, #1f2c26);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.48;
}

.tm-control-block,
.tm-design-container {
  margin-top: 13px;
}

.tm-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--pc-ws-border, #d5e0d6);
  border-radius: 999px;
  background: var(--pc-ws-surface-alt, #f6faf7);
  color: var(--pc-ws-accent, #284e44);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.tm-pill-active,
.tm-pill[aria-pressed="true"] {
  border-color: var(--pc-ws-accent, #284e44);
  background: var(--pc-ws-accent, #284e44);
  color: #ffffff;
}

.tm-pill:hover,
.tm-pill:focus,
.tm-icon-btn:hover,
.tm-icon-btn:focus,
.tm-btn:hover,
.tm-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--pc-page-focus, rgba(36, 93, 75, 0.24));
}

.tm-orient-icon {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
}

.tm-orient-icon--portrait {
  width: 10px;
  height: 16px;
}

.tm-orient-icon--landscape {
  width: 16px;
  height: 10px;
}

.tm-orient-icon--square {
  width: 12px;
  height: 12px;
}

.tm-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid var(--pc-ws-border, #d5e0d6);
  border-radius: 10px;
  background: var(--pc-ws-surface-alt, #f6faf7);
  color: var(--pc-ws-text, #1f2c26);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.tm-check-row--important {
  border-color: var(--pc-ws-border-strong, #8fad9c);
  background: var(--pc-ws-accent-soft, #ebf3ee);
}

.tm-check-row input {
  margin-top: 2px;
  accent-color: var(--pc-ws-accent, #284e44);
}

.tm-design-textarea {
  width: 100%;
  min-height: 136px;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid var(--pc-ws-border, #d5e0d6);
  border-radius: 10px;
  background: var(--pc-ws-surface, #ffffff);
  color: var(--pc-ws-text, #1f2c26);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tm-status {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--pc-ws-border, #d5e0d6);
  border-radius: 10px;
  background: var(--pc-ws-panel-soft, rgba(246, 250, 247, 0.82));
  color: var(--pc-ws-muted, #627169);
  font-size: 0.86rem;
  line-height: 1.35;
}

.tm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.tm-btn {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--pc-ws-border-strong, #8fad9c);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.tm-btn--primary {
  border-color: var(--pc-ws-accent, #284e44);
  background: var(--pc-ws-accent, #284e44);
  color: #ffffff;
}

.tm-btn--ghost {
  background: var(--pc-ws-surface, #ffffff);
  color: var(--pc-ws-accent, #284e44);
}

.tm-btn:disabled {
  opacity: 0.66;
  cursor: wait;
}

.pc-word-study-popover {
  position: absolute;
  z-index: 12050;
  width: min(760px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(75vh, 760px);
  display: none;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #c8d8bd;
  border-radius: 18px;
  background: #fffdf0;
  box-shadow: 0 22px 54px rgba(16, 36, 22, 0.26);
  color: #183626;
}

.pc-word-study-popover__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px 11px;
  background:
    linear-gradient(135deg, rgba(246, 241, 216, 0.92), rgba(228, 241, 221, 0.96)),
    #edf6e7;
  border-bottom: 1px solid #d4dfc7;
}

.pc-word-study-popover__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
  color: #163923;
  word-break: break-word;
}

.pc-word-study-popover__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #c8dbc9;
  border-radius: 999px;
  background: #ffffff;
  color: #1f4d2b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pc-word-study-popover__close:hover,
.pc-word-study-popover__close:focus {
  background: #f5fbef;
}

.pc-word-study-popover__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffdf0 0%, #fbfff8 100%);
}

.pc-word-study-popover__status {
  margin: 0;
  color: #4d6656;
  font-size: 0.95rem;
  line-height: 1.45;
}

.pc-word-study-popover__status--error {
  color: #8a342a;
}

.pc-word-study-tabs {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pc-word-study-tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d9e4cd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

.pc-word-study-tab {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #c8d8bd;
  border-radius: 13px;
  padding: 8px 9px;
  background: #fffef8;
  color: #1f4d2b;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
}

.pc-word-study-tab:hover,
.pc-word-study-tab:focus {
  border-color: #1f4d2b;
  background: #f5fbef;
  outline: none;
}

.pc-word-study-tab.is-active {
  border-color: #1f4d2b;
  background: linear-gradient(135deg, #1f4d2b, #2c633b);
  color: #fffdf0;
}

.pc-word-study-tab__label {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.16;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pc-word-study-tab__count {
  color: inherit;
  font-size: 0.76rem;
  opacity: 0.82;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-word-study-panels {
  min-width: 0;
  min-height: 0;
}

.pc-word-study-panel[hidden] {
  display: none;
}

.pc-word-study-card {
  min-width: 0;
  width: auto !important;
  margin: 0 0 14px !important;
  padding: 13px;
  border: 1px solid #d9e4cd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(31, 77, 43, 0.07);
}

.pc-word-study-card:last-child {
  margin-bottom: 0 !important;
}

.pc-word-study-card__label {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #1f4d2b;
}

.pc-word-study-source-desc {
  margin: 0 0 10px;
  color: #637760;
  font-size: 0.84rem;
  line-height: 1.35;
}

.pc-word-study-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2e7;
}

.pc-word-study-entry:first-of-type,
.pc-word-study-source-desc + .pc-word-study-entry {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.pc-word-study-entry__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.pc-word-study-card__headword {
  font-weight: 700;
  color: #173827;
}

.pc-word-study-card__pos {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #edf6e7;
  color: #4d6656;
  font-size: 0.78rem;
  font-weight: 600;
}

.pc-word-study-card__preview {
  font-size: 0.92rem;
  line-height: 1.48;
  color: #273f2f;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-word-study-quality {
  display: inline-flex;
  padding: 1px 7px;
  border: 1px solid #d9c98a;
  border-radius: 999px;
  background: #fff8d9;
  color: #715e14;
  font-size: 0.76rem;
  font-weight: 700;
}

.pc-word-study-display,
.pc-word-study-structured {
  color: #263d2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.58;
}

.pc-word-study-line {
  margin: 0;
  overflow-wrap: anywhere;
}

.pc-word-study-line + .pc-word-study-line {
  margin-top: 0.12em;
}

.pc-word-study-line--blank {
  min-height: 0.7em;
}

.pc-word-study-line--sense,
.pc-word-study-sense {
  margin-top: 0.7em;
  padding-left: 0.65rem;
  border-left: 3px solid rgba(31, 77, 43, 0.18);
}

.pc-word-study-line--quote {
  padding-left: 0.75rem;
  color: #526350;
  font-size: 0.88rem;
  line-height: 1.48;
}

.pc-word-study-line--note,
.pc-word-study-note {
  color: #465d49;
  font-size: 0.9rem;
  font-style: italic;
}

.pc-word-study-structured {
  display: grid;
  gap: 10px;
}

.pc-word-study-section,
.pc-word-study-phrase,
.pc-word-study-synonyms,
.pc-word-study-cross-reference,
.pc-word-study-text {
  border: 1px solid #edf2e7;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.pc-word-study-text-block {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pc-word-study-label {
  display: inline-flex;
  min-width: 1.55rem;
  margin-right: 0.3rem;
  color: #1f4d2b;
  font-weight: 700;
}

.pc-word-study-children {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding-left: 18px;
}

.pc-word-study-subsense {
  border-left: 3px solid rgba(31, 77, 43, 0.18);
  padding-left: 9px;
}

.pc-word-study-etymology {
  margin: 0;
  color: #51674f;
  font-size: 0.9rem;
  font-style: italic;
}

.pc-word-study-phrases,
.pc-word-study-synonyms {
  display: grid;
  gap: 8px;
  border: 1px solid #dce8d3;
  border-radius: 14px;
  padding: 11px;
  background: #fbfff8;
}

.pc-word-study-group-title {
  margin: 0;
  color: #1f4d2b;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pc-word-study-meta {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #edf2e7;
  color: #637760;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pc-word-study-card__empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed #cbd8c0;
  border-radius: 12px;
  background: #fbfff8;
  color: #627462;
  font-size: 0.9rem;
  font-style: italic;
}

.pc-word-study-show-more {
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid #cadbc1;
  border-radius: 999px;
  background: #fffef8;
  color: #1f4d2b;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.pc-word-study-show-more:hover,
.pc-word-study-show-more:focus {
  background: #edf6e7;
}

.pc-word-study-popover__footer {
  padding: 10px 12px 12px;
  background: #f4f1dc;
  border-top: 1px solid #d9e4cd;
}

.pc-word-study-popover__full-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid #2f5d38;
  border-radius: 999px;
  background: #1f4d2b;
  color: #fffdf0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.pc-word-study-popover__full-link:hover,
.pc-word-study-popover__full-link:focus {
  background: #173827;
  color: #ffffff;
}

:root {
  --pc-ws-bg: #f5f7f4;
  --pc-ws-surface: #ffffff;
  --pc-ws-surface-alt: #f6faf7;
  --pc-ws-panel: rgba(255, 255, 255, 0.9);
  --pc-ws-panel-soft: rgba(255, 255, 255, 0.64);
  --pc-ws-border: #d5e0d6;
  --pc-ws-border-strong: #8fad9c;
  --pc-ws-text: #1f2c26;
  --pc-ws-muted: #627169;
  --pc-ws-accent: #284e44;
  --pc-ws-accent-strong: #355b4f;
  --pc-ws-accent-soft: #ebf3ee;
  --pc-ws-header-bg: linear-gradient(135deg, #dfe9df 0%, #c5d8c9 100%);
  --pc-ws-header-border: #adc2b2;
  --pc-ws-header-divider: rgba(92, 127, 108, 0.22);
  --pc-ws-header-text: #173827;
  --pc-ws-header-muted: #53695c;
  --pc-ws-header-audio-bg: rgba(255, 255, 255, 0.9);
  --pc-ws-header-audio-border: rgba(255, 255, 255, 0.78);
  --pc-ws-header-shadow: 0 8px 18px rgba(34, 53, 44, 0.12);
  --pc-ws-shadow: 0 22px 54px rgba(16, 36, 22, 0.26);
  --pc-ws-warn-bg: #fff8d9;
  --pc-ws-warn-border: #c9a94d;
  --pc-ws-warn-text: #715e14;
  --pc-ws-danger: #8a342a;
  --pc-ws-danger-soft: #fff4ed;
}

html[data-pc-color-scheme="blue"],
body[data-pc-color-scheme="blue"] {
  --pc-ws-bg: #f4f7fb;
  --pc-ws-surface: #fcfdff;
  --pc-ws-surface-alt: #f4f8fc;
  --pc-ws-panel: rgba(252, 253, 255, 0.94);
  --pc-ws-panel-soft: rgba(244, 248, 252, 0.82);
  --pc-ws-border: #cfd8e4;
  --pc-ws-border-strong: #9cb4c8;
  --pc-ws-text: #1f2934;
  --pc-ws-muted: #617181;
  --pc-ws-accent: #35546d;
  --pc-ws-accent-strong: #4c6c85;
  --pc-ws-accent-soft: #e1e9f1;
  --pc-ws-header-bg: linear-gradient(135deg, #dfe8f1 0%, #c4d4e3 100%);
  --pc-ws-header-border: #a9bed0;
  --pc-ws-header-divider: rgba(78, 111, 142, 0.22);
  --pc-ws-header-text: #20374a;
  --pc-ws-header-muted: #587085;
  --pc-ws-header-audio-bg: rgba(252, 253, 255, 0.9);
  --pc-ws-header-audio-border: rgba(252, 253, 255, 0.78);
  --pc-ws-header-shadow: 0 8px 18px rgba(43, 71, 95, 0.13);
  --pc-ws-shadow: 0 22px 54px rgba(31, 55, 78, 0.24);
  --pc-ws-warn-bg: #edf3fb;
  --pc-ws-warn-border: #9eb4d0;
  --pc-ws-warn-text: #35546d;
}

html[data-pc-color-scheme="rose"],
body[data-pc-color-scheme="rose"] {
  --pc-ws-bg: #faf5f4;
  --pc-ws-surface: #fffdfc;
  --pc-ws-surface-alt: #fbf3f1;
  --pc-ws-panel: rgba(255, 253, 252, 0.94);
  --pc-ws-panel-soft: rgba(251, 243, 241, 0.82);
  --pc-ws-border: #e1d1ce;
  --pc-ws-border-strong: #c5a59f;
  --pc-ws-text: #332623;
  --pc-ws-muted: #776462;
  --pc-ws-accent: #6e4b46;
  --pc-ws-accent-strong: #8a605a;
  --pc-ws-accent-soft: #efe1de;
  --pc-ws-header-bg: linear-gradient(135deg, #f0dfdc 0%, #ddc5c0 100%);
  --pc-ws-header-border: #c9aaa4;
  --pc-ws-header-divider: rgba(130, 82, 76, 0.2);
  --pc-ws-header-text: #49322f;
  --pc-ws-header-muted: #735e5a;
  --pc-ws-header-audio-bg: rgba(255, 253, 252, 0.9);
  --pc-ws-header-audio-border: rgba(255, 253, 252, 0.78);
  --pc-ws-header-shadow: 0 8px 18px rgba(90, 63, 58, 0.13);
  --pc-ws-shadow: 0 22px 54px rgba(79, 50, 45, 0.24);
  --pc-ws-warn-bg: #f8ece9;
  --pc-ws-warn-border: #c9a29c;
  --pc-ws-warn-text: #6e4b46;
}

html[data-pc-color-scheme="stone"],
body[data-pc-color-scheme="stone"] {
  --pc-ws-bg: #f5f5f2;
  --pc-ws-surface: #fcfcfa;
  --pc-ws-surface-alt: #f6f6f2;
  --pc-ws-panel: rgba(252, 252, 250, 0.94);
  --pc-ws-panel-soft: rgba(246, 246, 242, 0.82);
  --pc-ws-border: #d6d7cf;
  --pc-ws-border-strong: #a9b0a6;
  --pc-ws-text: #2b2e29;
  --pc-ws-muted: #686c65;
  --pc-ws-accent: #4b5851;
  --pc-ws-accent-strong: #647168;
  --pc-ws-accent-soft: #e2e7e3;
  --pc-ws-header-bg: linear-gradient(135deg, #e5e8e1 0%, #cfd6ce 100%);
  --pc-ws-header-border: #b6beb5;
  --pc-ws-header-divider: rgba(75, 88, 81, 0.2);
  --pc-ws-header-text: #2e3832;
  --pc-ws-header-muted: #626b64;
  --pc-ws-header-audio-bg: rgba(252, 252, 250, 0.9);
  --pc-ws-header-audio-border: rgba(252, 252, 250, 0.78);
  --pc-ws-header-shadow: 0 8px 18px rgba(56, 60, 54, 0.12);
  --pc-ws-shadow: 0 22px 54px rgba(48, 54, 48, 0.22);
  --pc-ws-warn-bg: #eeeeea;
  --pc-ws-warn-border: #b2b7af;
  --pc-ws-warn-text: #4b5851;
}

html[data-pc-color-scheme="weaver"],
body[data-pc-color-scheme="weaver"] {
  --pc-ws-bg: #fff7e8;
  --pc-ws-surface: #fffdf8;
  --pc-ws-surface-alt: #f7efe1;
  --pc-ws-panel: rgba(255, 253, 248, 0.94);
  --pc-ws-panel-soft: rgba(247, 239, 225, 0.82);
  --pc-ws-border: #dfc58c;
  --pc-ws-border-strong: #c9a04f;
  --pc-ws-text: #11233f;
  --pc-ws-muted: #6e5a4b;
  --pc-ws-accent: #102646;
  --pc-ws-accent-strong: #17365f;
  --pc-ws-accent-soft: #f3e7cf;
  --pc-ws-header-bg: linear-gradient(135deg, #17365f 0%, #102646 100%);
  --pc-ws-header-border: #c9a04f;
  --pc-ws-header-divider: rgba(201, 160, 79, 0.28);
  --pc-ws-header-text: #fff8e8;
  --pc-ws-header-muted: #e6d2a5;
  --pc-ws-header-audio-bg: rgba(255, 250, 240, 0.94);
  --pc-ws-header-audio-border: rgba(201, 160, 79, 0.58);
  --pc-ws-header-shadow: 0 8px 18px rgba(16, 38, 70, 0.22);
  --pc-ws-shadow: 0 22px 54px rgba(16, 38, 70, 0.26);
  --pc-ws-warn-bg: #fff3cd;
  --pc-ws-warn-border: #c9a04f;
  --pc-ws-warn-text: #6f1d24;
}

html[data-pc-color-scheme] #pc-selection-menu,
body[data-pc-color-scheme] #pc-selection-menu {
  background: var(--pc-ws-accent);
  border-color: var(--pc-ws-border-strong);
  box-shadow: var(--pc-ws-shadow);
}

html[data-pc-color-scheme] #pc-selection-menu button,
body[data-pc-color-scheme] #pc-selection-menu button {
  border: 1px solid var(--pc-ws-border);
  border-radius: 999px;
  background: var(--pc-ws-surface);
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] #pc-selection-menu button:hover,
html[data-pc-color-scheme] #pc-selection-menu button:focus,
body[data-pc-color-scheme] #pc-selection-menu button:hover,
body[data-pc-color-scheme] #pc-selection-menu button:focus {
  background: var(--pc-ws-accent-soft);
  outline: none;
}

html[data-pc-color-scheme] #pc-selection-menu .word-study-button,
html[data-pc-color-scheme] #pc-selection-menu #pc-create-infographic-btn,
body[data-pc-color-scheme] #pc-selection-menu .word-study-button,
body[data-pc-color-scheme] #pc-selection-menu #pc-create-infographic-btn {
  border-color: var(--pc-ws-border-strong);
  background: var(--pc-ws-accent-soft);
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .tm-overlay,
body[data-pc-color-scheme] .tm-overlay {
  background: color-mix(in srgb, var(--pc-ws-accent) 36%, rgba(0, 0, 0, 0.42));
}

html[data-pc-color-scheme] .tm-modal,
body[data-pc-color-scheme] .tm-modal {
  border-color: var(--pc-ws-border);
  background:
    linear-gradient(180deg, var(--pc-ws-surface), var(--pc-ws-surface-alt)),
    var(--pc-ws-surface);
  box-shadow: var(--pc-ws-shadow);
  color: var(--pc-ws-text);
}

html[data-pc-color-scheme] .tm-modal__header,
body[data-pc-color-scheme] .tm-modal__header {
  border-color: var(--pc-ws-border);
}

html[data-pc-color-scheme] .tm-modal h3,
html[data-pc-color-scheme] .tm-modal__eyebrow,
html[data-pc-color-scheme] .tm-control-label,
body[data-pc-color-scheme] .tm-modal h3,
body[data-pc-color-scheme] .tm-modal__eyebrow,
body[data-pc-color-scheme] .tm-control-label {
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .tm-quote-preview,
html[data-pc-color-scheme] .tm-status,
body[data-pc-color-scheme] .tm-quote-preview,
body[data-pc-color-scheme] .tm-status {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-panel-soft);
  color: var(--pc-ws-text);
}

html[data-pc-color-scheme] .tm-quote-preview,
body[data-pc-color-scheme] .tm-quote-preview {
  border-left-color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .tm-pill,
html[data-pc-color-scheme] .tm-icon-btn,
html[data-pc-color-scheme] .tm-btn--ghost,
body[data-pc-color-scheme] .tm-pill,
body[data-pc-color-scheme] .tm-icon-btn,
body[data-pc-color-scheme] .tm-btn--ghost {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-surface);
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .tm-pill-active,
html[data-pc-color-scheme] .tm-pill[aria-pressed="true"],
html[data-pc-color-scheme] .tm-btn--primary,
body[data-pc-color-scheme] .tm-pill-active,
body[data-pc-color-scheme] .tm-pill[aria-pressed="true"],
body[data-pc-color-scheme] .tm-btn--primary {
  border-color: var(--pc-ws-accent);
  background: var(--pc-ws-accent);
  color: #fff;
}

html[data-pc-color-scheme] .tm-check-row,
body[data-pc-color-scheme] .tm-check-row {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-surface-alt);
  color: var(--pc-ws-text);
}

html[data-pc-color-scheme] .tm-check-row--important,
body[data-pc-color-scheme] .tm-check-row--important {
  border-color: var(--pc-ws-border-strong);
  background: var(--pc-ws-accent-soft);
}

html[data-pc-color-scheme] .tm-design-textarea,
body[data-pc-color-scheme] .tm-design-textarea {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-surface);
  color: var(--pc-ws-text);
}

html[data-pc-color-scheme] .pc-word-study-popover,
body[data-pc-color-scheme] .pc-word-study-popover {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-bg);
  box-shadow: var(--pc-ws-shadow);
  color: var(--pc-ws-text);
}

html[data-pc-color-scheme] .pc-word-study-popover__header,
body[data-pc-color-scheme] .pc-word-study-popover__header {
  background:
    linear-gradient(135deg, var(--pc-ws-surface-alt), var(--pc-ws-accent-soft)),
    var(--pc-ws-surface-alt);
  border-bottom-color: var(--pc-ws-border);
}

html[data-pc-color-scheme] .pc-word-study-popover__title,
html[data-pc-color-scheme] .pc-word-study-card__label,
html[data-pc-color-scheme] .pc-word-study-card__headword,
html[data-pc-color-scheme] .pc-word-study-label,
html[data-pc-color-scheme] .pc-word-study-group-title,
body[data-pc-color-scheme] .pc-word-study-popover__title,
body[data-pc-color-scheme] .pc-word-study-card__label,
body[data-pc-color-scheme] .pc-word-study-card__headword,
body[data-pc-color-scheme] .pc-word-study-label,
body[data-pc-color-scheme] .pc-word-study-group-title {
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .pc-word-study-popover__close,
body[data-pc-color-scheme] .pc-word-study-popover__close {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-surface);
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .pc-word-study-popover__close:hover,
html[data-pc-color-scheme] .pc-word-study-popover__close:focus,
body[data-pc-color-scheme] .pc-word-study-popover__close:hover,
body[data-pc-color-scheme] .pc-word-study-popover__close:focus {
  background: var(--pc-ws-accent-soft);
}

html[data-pc-color-scheme] .pc-word-study-popover__body,
body[data-pc-color-scheme] .pc-word-study-popover__body {
  background: linear-gradient(180deg, var(--pc-ws-bg), var(--pc-ws-surface-alt));
}

html[data-pc-color-scheme] .pc-word-study-popover__status,
html[data-pc-color-scheme] .pc-word-study-source-desc,
html[data-pc-color-scheme] .pc-word-study-card__pos,
html[data-pc-color-scheme] .pc-word-study-meta,
html[data-pc-color-scheme] .pc-word-study-etymology,
body[data-pc-color-scheme] .pc-word-study-popover__status,
body[data-pc-color-scheme] .pc-word-study-source-desc,
body[data-pc-color-scheme] .pc-word-study-card__pos,
body[data-pc-color-scheme] .pc-word-study-meta,
body[data-pc-color-scheme] .pc-word-study-etymology {
  color: var(--pc-ws-muted);
}

html[data-pc-color-scheme] .pc-word-study-popover__status--error,
body[data-pc-color-scheme] .pc-word-study-popover__status--error {
  color: var(--pc-ws-danger);
}

html[data-pc-color-scheme] .pc-word-study-tablist,
html[data-pc-color-scheme] .pc-word-study-card,
html[data-pc-color-scheme] .pc-word-study-section,
html[data-pc-color-scheme] .pc-word-study-phrase,
html[data-pc-color-scheme] .pc-word-study-synonyms,
html[data-pc-color-scheme] .pc-word-study-cross-reference,
html[data-pc-color-scheme] .pc-word-study-text,
html[data-pc-color-scheme] .pc-word-study-card__empty,
body[data-pc-color-scheme] .pc-word-study-tablist,
body[data-pc-color-scheme] .pc-word-study-card,
body[data-pc-color-scheme] .pc-word-study-section,
body[data-pc-color-scheme] .pc-word-study-phrase,
body[data-pc-color-scheme] .pc-word-study-synonyms,
body[data-pc-color-scheme] .pc-word-study-cross-reference,
body[data-pc-color-scheme] .pc-word-study-text,
body[data-pc-color-scheme] .pc-word-study-card__empty {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-panel);
}

html[data-pc-color-scheme] .pc-word-study-tab,
html[data-pc-color-scheme] .pc-word-study-show-more,
body[data-pc-color-scheme] .pc-word-study-tab,
body[data-pc-color-scheme] .pc-word-study-show-more {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-surface-alt);
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .pc-word-study-tab:hover,
html[data-pc-color-scheme] .pc-word-study-tab:focus,
html[data-pc-color-scheme] .pc-word-study-show-more:hover,
html[data-pc-color-scheme] .pc-word-study-show-more:focus,
body[data-pc-color-scheme] .pc-word-study-tab:hover,
body[data-pc-color-scheme] .pc-word-study-tab:focus,
body[data-pc-color-scheme] .pc-word-study-show-more:hover,
body[data-pc-color-scheme] .pc-word-study-show-more:focus {
  border-color: var(--pc-ws-accent);
  background: var(--pc-ws-accent-soft);
}

html[data-pc-color-scheme] .pc-word-study-tab.is-active,
body[data-pc-color-scheme] .pc-word-study-tab.is-active {
  border-color: var(--pc-ws-accent);
  background: linear-gradient(135deg, var(--pc-ws-accent), var(--pc-ws-accent-strong));
  color: #ffffff;
}

html[data-pc-color-scheme] .pc-word-study-entry,
body[data-pc-color-scheme] .pc-word-study-entry {
  border-top-color: var(--pc-ws-border);
}

html[data-pc-color-scheme] .pc-word-study-card__pos,
body[data-pc-color-scheme] .pc-word-study-card__pos {
  background: var(--pc-ws-accent-soft);
}

html[data-pc-color-scheme] .pc-word-study-display,
html[data-pc-color-scheme] .pc-word-study-structured,
html[data-pc-color-scheme] .pc-word-study-card__preview,
body[data-pc-color-scheme] .pc-word-study-display,
body[data-pc-color-scheme] .pc-word-study-structured,
body[data-pc-color-scheme] .pc-word-study-card__preview {
  color: var(--pc-ws-text);
}

html[data-pc-color-scheme] .pc-word-study-line--sense,
html[data-pc-color-scheme] .pc-word-study-sense,
html[data-pc-color-scheme] .pc-word-study-subsense,
body[data-pc-color-scheme] .pc-word-study-line--sense,
body[data-pc-color-scheme] .pc-word-study-sense,
body[data-pc-color-scheme] .pc-word-study-subsense {
  border-left-color: var(--pc-ws-border-strong);
}

html[data-pc-color-scheme] .pc-word-study-line--quote,
body[data-pc-color-scheme] .pc-word-study-line--quote {
  color: var(--pc-ws-muted);
}

html[data-pc-color-scheme] .pc-word-study-line--note,
html[data-pc-color-scheme] .pc-word-study-note,
body[data-pc-color-scheme] .pc-word-study-line--note,
body[data-pc-color-scheme] .pc-word-study-note {
  color: var(--pc-ws-accent);
}

html[data-pc-color-scheme] .pc-word-study-phrases,
html[data-pc-color-scheme] .pc-word-study-synonyms,
body[data-pc-color-scheme] .pc-word-study-phrases,
body[data-pc-color-scheme] .pc-word-study-synonyms {
  border-color: var(--pc-ws-border);
  background: var(--pc-ws-surface-alt);
}

html[data-pc-color-scheme] .pc-word-study-meta,
body[data-pc-color-scheme] .pc-word-study-meta {
  border-top-color: var(--pc-ws-border);
}

html[data-pc-color-scheme] .pc-word-study-quality,
body[data-pc-color-scheme] .pc-word-study-quality {
  border-color: var(--pc-ws-warn-border);
  background: var(--pc-ws-warn-bg);
  color: var(--pc-ws-warn-text);
}

html[data-pc-color-scheme] .pc-word-study-popover__footer,
body[data-pc-color-scheme] .pc-word-study-popover__footer {
  border-top-color: var(--pc-ws-border);
  background: var(--pc-ws-surface-alt);
}

html[data-pc-color-scheme] .pc-word-study-popover__full-link,
body[data-pc-color-scheme] .pc-word-study-popover__full-link {
  border-color: var(--pc-ws-accent);
  background: var(--pc-ws-accent);
  color: #ffffff;
}

html[data-pc-color-scheme] .pc-word-study-popover__full-link:hover,
html[data-pc-color-scheme] .pc-word-study-popover__full-link:focus,
body[data-pc-color-scheme] .pc-word-study-popover__full-link:hover,
body[data-pc-color-scheme] .pc-word-study-popover__full-link:focus {
  border-color: var(--pc-ws-accent-strong);
  background: var(--pc-ws-accent-strong);
  color: #ffffff;
}

@media (max-width: 768px) {
  #pc-selection-menu {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
  }

  #pc-selection-menu button {
    margin: 0 4px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .pc-word-study-popover {
    position: fixed;
    width: auto;
    max-height: min(80vh, 680px);
    border-radius: 18px 18px 14px 14px;
  }

  .pc-word-study-popover__header {
    padding: 12px;
  }

  .pc-word-study-popover__body {
    padding: 10px;
  }

  .pc-word-study-tablist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
  }

  .pc-word-study-tab {
    min-height: 48px;
    border-radius: 12px;
    padding: 7px 4px;
    text-align: center;
  }

  .pc-word-study-tab__label {
    font-size: clamp(0.7rem, 3.1vw, 0.82rem);
    line-height: 1.12;
  }

  .pc-word-study-tab__count {
    font-size: clamp(0.6rem, 2.55vw, 0.68rem);
    line-height: 1.08;
  }

  .pc-word-study-card {
    padding: 10px;
  }

  .pc-word-study-display,
  .pc-word-study-structured {
    font-size: 0.92rem;
  }

  .pc-word-study-children {
    padding-left: 12px;
  }
}

@media (max-width: 520px) {
  .pc-word-study-popover {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
  }

  .pc-word-study-tablist {
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
  }

  .pc-word-study-tab {
    align-content: center;
    justify-items: center;
    min-height: 42px;
    padding: 6px 3px;
    border-radius: 10px;
    text-align: center;
  }

  .pc-word-study-tab__label {
    font-size: 0;
    line-height: 1;
  }

  .pc-word-study-tab__label::after {
    content: attr(data-compact-label);
    display: block;
    font-size: clamp(0.66rem, 3.75vw, 0.78rem);
    line-height: 1.05;
  }

  .pc-word-study-tab__count {
    font-size: 0;
    line-height: 1;
  }

  .pc-word-study-tab__count::after {
    content: attr(data-compact-count);
    display: block;
    font-size: clamp(0.56rem, 2.8vw, 0.64rem);
    line-height: 1;
    opacity: 0.72;
  }
}

@media (max-width: 360px) {
  .pc-word-study-tablist {
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
  }

  .pc-word-study-tab {
    min-height: 40px;
    padding: 6px 3px;
  }

  .pc-word-study-tab__label {
    font-size: 0;
  }

  .pc-word-study-tab__label::after {
    font-size: 0.68rem;
  }

  .pc-word-study-tab__count {
    display: none;
  }
}

/* Suggest Edit modal */
#suggest-edit-modal {
  display: none;
  align-items: center;
  justify-content: center;

  /* override global div rule if this is a div */
  width: 100%;
  margin: 0;
}

#suggest-edit-modal .sem-inner h3 {
  margin-top: 0;
}

#suggest-edit-modal textarea {
  font-family: inherit;
}

mark.pc-suggestion-highlight,
.pc-suggestion-highlight {
  background: #fff3b0;
  padding: 0 2px;
  border-radius: 2px;
}
.pc-audio-active {
  background: rgba(76, 175, 80, .04);
  border-left: 4px solid #4caf50;
  padding-left: 10px;
  border-radius: 8px;
  scroll-margin-top: 120px;
}
body.pc-audio-following #content p {
  transition: background .12s ease;
}
.pc-transcript-sentence {
  border-radius: 5px;
  transition: background .12s ease, box-shadow .12s ease;
}
.pc-formatted-sentence {
  scroll-margin-top: 120px;
}
.pc-transcript-sentence.pc-audio-active {
  background: rgba(76, 175, 80, .16);
  border-left: 0;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, .12);
  padding: 0 2px;
}
.pc-nowplaying {
  position: fixed;
  top: 62px;
  left: 50%;
  z-index: 10001;
  display: none;
  margin: 6px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 79, 58, .25);
  background: rgba(255, 255, 255, .85);
  opacity: 0.85 ;
  pointer-events: none;
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: #1f4d2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90vw;
  transform: translateX(-50%);
  text-align: center;
}
.pc-nowplaying.is-visible {
  display: block;
}

body.pc-library-weaverbiblecollege .pc-lecturebar{
  color: var(--pc-weaver-navy);
}

body.pc-library-weaverbiblecollege .pc-lecturebar__icon,
body.pc-library-weaverbiblecollege .pc-pillbtn,
body.pc-library-weaverbiblecollege #pcRushdoonyToggle,
body.pc-library-weaverbiblecollege #pc-mini-share-btn{
  border-color: rgba(201, 160, 91, 0.62) !important;
  background: rgba(255, 250, 242, 0.96) !important;
  color: var(--pc-weaver-navy) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.pc-library-weaverbiblecollege .pc-lecturebar__icon:hover,
body.pc-library-weaverbiblecollege .pc-pillbtn:hover,
body.pc-library-weaverbiblecollege #pcRushdoonyToggle:hover,
body.pc-library-weaverbiblecollege #pc-mini-share-btn:hover{
  background: rgba(201, 160, 91, 0.14) !important;
  color: var(--pc-weaver-navy) !important;
  box-shadow: 0 6px 14px rgba(16, 38, 70, 0.14);
}

body.pc-library-weaverbiblecollege .next.pc-lecturebar__icon,
body.pc-library-weaverbiblecollege .pc-pillbtn.pc-pillbtn-docked,
body.pc-library-weaverbiblecollege #pcRushdoonyToggle.pc-pillbtn-docked{
  border-color: var(--pc-weaver-navy) !important;
  background: var(--pc-weaver-navy) !important;
  color: #fff9f0 !important;
}

body.pc-library-weaverbiblecollege .pc-row2 .pc-lecturebar__audio{
  color: var(--pc-weaver-navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.pc-library-weaverbiblecollege .pc-row2 .pc-rewind-btn{
  color: var(--pc-weaver-burgundy);
}

body.pc-library-weaverbiblecollege .pc-youtube-player{
  border-color: rgba(201, 160, 91, 0.36);
  background: #102646;
  box-shadow: 0 14px 28px rgba(16, 38, 70, 0.16);
}

body.pc-library-weaverbiblecollege .pc-youtube-player-shell__meta{
  color: rgba(72, 81, 95, 0.86);
}

body.pc-library-weaverbiblecollege .pc-youtube-player-shell__meta a,
body.pc-library-weaverbiblecollege .pc-source-media-link{
  color: var(--pc-weaver-burgundy);
}

body.pc-library-weaverbiblecollege .pc-media-actions{
  border-color: rgba(201, 160, 91, 0.36);
  background: rgba(255, 250, 242, 0.9);
}

body.pc-library-weaverbiblecollege .pc-media-action,
body.pc-library-weaverbiblecollege a.pc-media-action{
  color: var(--pc-weaver-navy);
}

body.pc-library-weaverbiblecollege .pc-media-action:hover,
body.pc-library-weaverbiblecollege .pc-media-action:focus{
  background: rgba(201, 160, 91, 0.16);
  color: var(--pc-weaver-burgundy);
  box-shadow: 0 4px 10px rgba(16, 38, 70, 0.1);
}

body.pc-library-weaverbiblecollege .pc-video-toggle.is-active{
  background: var(--pc-weaver-burgundy);
  color: #fff9f0;
}

body.pc-library-weaverbiblecollege .pc-transcript-edition-meta{
  color: #57606d;
}

body.pc-library-weaverbiblecollege .highlight{
  background-color: rgba(224, 181, 90, 0.24);
}

body.pc-library-weaverbiblecollege .pc-transcript-sentence.pc-audio-active{
  background: rgba(201, 160, 91, 0.16);
  box-shadow: 0 0 0 2px rgba(16, 38, 70, 0.12);
}

body.pc-library-weaverbiblecollege .pc-nowplaying{
  border-color: rgba(201, 160, 91, 0.4);
  background: rgba(255, 249, 240, 0.92);
  color: var(--pc-weaver-navy);
}

body.pc-library-weaverbiblecollege #album-cover{
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(16, 38, 70, 0.12);
}
button.pc-suggest-edit-inline {
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 6px;
  margin: 0 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* Let the transcript page use full width; don't center the main wrappers */
html, body {
  width: 100%;
}

/* These are the common transcript wrappers shown in your DOM */
#content,
.content,
#two, #one {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 16px;  /* soft gutter */
  box-sizing: border-box;
}
@media (max-width: 520px) {
  .header {
    white-space: normal;
    overflow-x: hidden;
  }
  .header p {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header__content-text {
    padding: 10px 8px;
  }
  .header img {
    max-width: 100%;
    height: auto;
  }
  .header input[type='range'] {
    max-width: 100%;
  }
    .header > img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
  }
    .header > audio {
    display: inline-block;
    width: calc(100% - 44px) !important;
    max-width: calc(100% - 44px);
    vertical-align: middle;
  }
}
@media (max-width: 520px) {
  #album-cover {
    width: 32% !important;
    max-width: 32% !important;
  }
}
audio {
  width: 100% !important;
  max-width: calc(100vw - 16px);
  height: 38px;
  display: block;
  margin: 0 auto;
}
@media (max-width: 520px) {
  audio {
    max-width: calc(100vw - 16px);
  }
}
/* hide labels when it gets tight */
@media (max-width: 520px){
  .pc-hide-sm{ display:none; }
}
/* Hide on very narrow panes */
@media (max-width: 420px){
  .pc-hide-narrow{
    display: none;
  }
}
/* Header layout fix for audio row */
.header {
  display: block;
  text-align: center;
}
.header p {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 2px 0;
  flex: 0 0 100%;
}
.header > img {
  flex: 0 0 auto;
  margin-right: 6px;
}
.header > audio {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 52px);
}
.header > img {
  display: inline-block;
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 0;
}
.header > audio {
  display: inline-block;
  width: min(500px, calc(100% - 32px));
  max-width: 500px;
  height: 38px;
  vertical-align: middle;
}
@media (orientation: landscape) and (max-height: 520px) {
  .header {
    height: 100px;
    padding-top: 4px;
  }
  main {
    padding-top: 100px;
  }
  .content {
    margin: 100px auto;
  }
  .header p {
    margin-bottom: 0;
  }
  .header > img {
    height: 30px;
  }
  .header > audio {
    height: auto;
    min-height: 38px;
    width: min(460px, calc(100% - 30px));
    max-width: 460px;
  }
}
/* Mobile text zoom toggle */
.pc-text-zoom #content,
.pc-text-zoom .content {
  font-size: 1.12em;
  line-height: 1.6;
}
.pc-segment-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-top: 100px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #1f4d2b;
}
.pc-segment-nav label {
  font-weight: 600;
}
.pc-segment-nav select {
  border: 1px solid #cfd6d0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.9rem;
}
.pc-segment-nav + .content {
  margin-top: 104px;
}
.pc-seg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-left: auto;
}
.pc-seg-toggle input {
  accent-color: #1f4d2b;
}
.pc-seg {
  border-radius: 8px;
  padding: 6px 8px;
  margin: 6px 0;
  background: var(--pc-seg-default, #f7f7f7);
}
.pc-seg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 12px 12px;
  font-size: 0.85rem;
  color: #1f4d2b;
}
.pc-seg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d7ddd8;
  border-radius: 999px;
  padding: 4px 10px;
}
.pc-dictation-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-dictation-link {
  border: 1px solid #cfd7d1;
  background: #f6faf6;
  color: #1f4d2b;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-weight: 600;
}
.pc-dictation-link:hover {
  background: #e6f0e6;
}
.pc-dictation-share {
  border: 1px solid #cfd7d1;
  background: #ffffff;
  color: #1f4d2b;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 0.95em;
}
.pc-dictation-share:hover {
  background: #eef4ee;
}
.pc-voice-btn {
  align-items: center;
  background: #1f4d2b;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  line-height: 1;
  margin-left: 8px;
  width: 34px;
}
.pc-voice-btn i {
  font-size: 14px;
}
.pc-voice-btn:hover,
.pc-voice-btn:focus {
  background: #173d22;
}
.pc-voice-btn:focus {
  outline: 2px solid #0f3018;
  outline-offset: 2px;
}
.pc-line-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  white-space: nowrap;
  vertical-align: baseline;
}
.pc-line-controls input[type="button"] {
  margin: 0;
}
.pc-voice-btn.pc-voice-btn-small {
  height: 20px;
  width: 20px;
  margin-left: 4px;
  background: #e8f2ec;
  color: #1f4d2b;
  border: 1px solid #cfd7d1;
}
.pc-voice-btn.pc-voice-btn-small i {
  font-size: 9px;
}
.pc-voice-btn.pc-voice-btn-small:hover,
.pc-voice-btn.pc-voice-btn-small:focus {
  background: #dbe9e0;
}
.pc-voice-btn-response {
  margin-left: 8px;
  align-self: flex-end;
}
.pc-voice-resume {
  margin-left: 8px;
  font-size: 0.85em;
  color: #1f4d2b;
}
.pc-btn {
  border: 1px solid #1f4d2b;
  background: #1f4d2b;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pc-btn.secondary {
  background: #fff;
  color: #1f4d2b;
}
.pc-rushdoony-panel {
  position: fixed;
  top: 100px;
  right: 0;
  width: 340px;
  height: calc(100vh - 100px);
  background: #ffffff;
  border-left: 1px solid #d7ddd8;
  box-shadow: -6px 0 16px rgba(0, 0, 0, 0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}
.pc-rushdoony-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--pc-ws-header-border, #adc2b2);
  background: var(--pc-ws-header-bg, linear-gradient(135deg, #dfe9df 0%, #c5d8c9 100%));
  color: var(--pc-ws-header-text, #173827);
  box-shadow: var(--pc-ws-header-shadow, 0 8px 18px rgba(34, 53, 44, 0.12));
  gap: 6px;
  flex-wrap: wrap;
}
.pc-rushdoony-title {
  display: inline-block;
  color: var(--pc-ws-header-text, #173827);
  margin: 2px 0;
}
.pc-rushdoony-title i {
  font-size: 14px;
  margin-right: 6px;
}
.pc-rushdoony-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-rushdoony-title-split {
  justify-content: space-between;
  width: 100%;
}
.pc-rushdoony-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.pc-rushdoony-context {
  font-size: 10px;
  color: var(--pc-ws-header-muted, #53695c);
}
.pc-rushdoony-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #1f4d2b;
}
.pc-rushdoony-header > div:first-child {
  flex: 1 1 auto;
}

.pc-rushdoony-meter {
  font-size: 11px;
  color: #5a6a5e;
  padding: 0;
}
.pc-rushdoony-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pc-rushdoony-msg {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid #e4e9e6;
}
.pc-rushdoony-msg.assistant {
  background: #ffffff;
  align-self: flex-start;
}
.pc-rushdoony-msg-pending {
  border-style: dashed;
  opacity: 0.85;
  font-style: italic;
}
.pc-rushdoony-sources {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #5a6a5e;
}
.pc-rushdoony-sources a {
  color: #1f4d2b;
  text-decoration: underline;
  cursor: pointer;
}
.pc-rushdoony-sources a:hover,
.pc-rushdoony-sources a:focus {
  text-decoration: none;
}
.pc-rushdoony-controls {
  padding: 6px 12px;
  border-top: 1px solid #e4e9e6;
  display: block;
  font-size: 0.85rem;
  background: #fafcf9;
}
.pc-rushdoony-controls-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #1f4d2b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfd7d1;
  background: #f6faf6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  line-height: 1;
}
.pc-rushdoony-controls-summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.8em;
  opacity: 0.7;
}
.pc-rushdoony-controls[open] .pc-rushdoony-controls-summary::after {
  content: "▴";
}
.pc-rushdoony-controls-summary::-webkit-details-marker {
  display: none;
}
.pc-rushdoony-controls-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.pc-rushdoony-controls select {
  margin-left: 6px;
  border: 1px solid #cfd7d1;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.85rem;
  background: #fff;
  color: #1f4d2b;
}
.pc-rushdoony-thread-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pc-rushdoony-thread-actions button,
.pc-rushdoony-attach {
  border: 1px solid #cfd7d1;
  background: #f6faf6;
  color: #1f4d2b;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
}
.pc-rushdoony-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-rushdoony-highlight-only {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-rushdoony-highlight-only::after {
  content: "🔒";
  font-size: 0.9em;
  color: #1f4d2b;
  margin-left: 4px;
}
.pc-rushdoony-warning {
  color: #a13d2d;
  font-size: 0.85rem;
  min-height: 18px;
}
.pc-rushdoony-warning:empty {
  display: none;
}
.pc-rushdoony-input {
  margin: 6px 12px 8px;
  padding: 8px;
  border: 1px solid #cfd7d1;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  max-height: 40vh;
}
.pc-rushdoony-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}
.pc-rushdoony-actions button {
  border: 1px solid #cfd7d1;
  background: #f6faf6;
  color: #1f4d2b;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.pc-rushdoony-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pc-rushdoony-retrieval {
  font-size: 0.8rem;
  color: #5a6a5e;
  padding: 0 12px 8px;
}
.pc-rushdoony-retrieval:empty {
  display: none;
}
.pc-rushdoony-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pc-rushdoony-dock {
  border: 1px solid #cfd7d1;
  background: #f6faf6;
  color: #1f4d2b;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
}
.pc-rushdoony-panel-docked {
  position: static;
  width: 100%;
  height: auto;
  transform: none;
  box-shadow: none;
  border: none;
}
body.pc-rushdoony-docked {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
body.pc-rushdoony-docked .pc-rushdoony-panel-docked {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
body.pc-rushdoony-docked .pc-rushdoony-panel {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  height: 100%;
  transform: none;
}
body.pc-rushdoony-docked .pc-rushdoony-log {
  min-height: 0;
}
@media (max-width: 820px) {
  .pc-rushdoony-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 55vh;
    border-left: none;
    border-top: 1px solid #d7ddd8;
    transform: translateY(100%);
  }
  .pc-rushdoony-dock {
    display: none;
  }
  .pc-rushdoony-panel .pc-search-back {
    display: none;
  }
  body:not(.pc-force-desktop) #pcNotesToggle,
  body:not(.pc-force-desktop) #pcRushdoonyToggle {
    display: none;
  }
  body.pc-rushdoony-docked .pc-rushdoony-panel {
    position: static;
    height: 100%;
    transform: none;
  }
  #columnSelector {
    display: none !important;
    visibility: hidden;
  }
}
.pc-seg-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
}
#footer{
  margin: 6px 8px 0;
  padding: 2px 0 4px;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
}
#footer a{
  font-size: inherit;
}
#footer .pc-seg-legend{
  margin-bottom: 4px;
}
:root {
  --pc-seg-preamble: #edf3ff;
  --pc-seg-scripture_reference: #fff0d9;
  --pc-seg-scripture_reading: #fff4cc;
  --pc-seg-opening_prayer: #e3f2ff;
  --pc-seg-prayer: #eaf6ff;
  --pc-seg-lecture: #f4f7f4;
  --pc-seg-closing_prayer: #e7f0ff;
  --pc-seg-q_and_a: #ffe7ef;
  --pc-seg-conversation: #eaf7ee;
  --pc-seg-announcements: #f2e9ff;
  --pc-seg-benediction: #ffe9d6;
  --pc-seg-easy_chair_number_date: #e8f6f3;
  --pc-seg-easy_chair_topic: #fef3d8;
  --pc-seg-easy_chair_opening: #f0f5ff;
  --pc-seg-easy_chair_discussion: #f1f9ef;
  --pc-seg-easy_chair_closing: #ffeede;
  --pc-seg-other: #f0f0f0;
}
.pc-seg-preamble { background: var(--pc-seg-preamble); }
.pc-seg-scripture_reference { background: var(--pc-seg-scripture_reference); }
.pc-seg-scripture_reading { background: var(--pc-seg-scripture_reading); }
.pc-seg-opening_prayer { background: var(--pc-seg-opening_prayer); }
.pc-seg-prayer { background: var(--pc-seg-prayer); }
.pc-seg-lecture { background: var(--pc-seg-lecture); }
.pc-seg-closing_prayer { background: var(--pc-seg-closing_prayer); }
.pc-seg-q_and_a { background: var(--pc-seg-q_and_a); }
.pc-seg-conversation { background: var(--pc-seg-conversation); }
.pc-seg-announcements { background: var(--pc-seg-announcements); }
.pc-seg-benediction { background: var(--pc-seg-benediction); }
.pc-seg-easy_chair_number_date { background: var(--pc-seg-easy_chair_number_date); }
.pc-seg-easy_chair_topic { background: var(--pc-seg-easy_chair_topic); }
.pc-seg-easy_chair_opening { background: var(--pc-seg-easy_chair_opening); }
.pc-seg-easy_chair_discussion { background: var(--pc-seg-easy_chair_discussion); }
.pc-seg-easy_chair_closing { background: var(--pc-seg-easy_chair_closing); }
.pc-seg-other { background: var(--pc-seg-other); }
.pc-grokipedia-link {
  color: #24553a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.pc-grokipedia-link:hover {
  background: #e7f4ea;
  color: #173827;
}

#pc-grokipedia-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 22, 16, 0.58);
  width: 100%;
  margin: 0;
}

#pc-grokipedia-modal.is-open {
  display: flex;
}

#pc-grokipedia-modal .pc-grokipedia-modal__dialog {
  width: min(1120px, calc(100vw - 40px));
  height: min(86vh, 900px);
  margin: 0;
  background: #f7fcf7;
  border: 1px solid #c9d9cc;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#pc-grokipedia-modal .pc-grokipedia-modal__header {
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #1f4d2b 0%, #274f31 100%);
  color: #fff;
  box-sizing: border-box;
}

#pc-grokipedia-modal .pc-grokipedia-modal__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pc-grokipedia-modal .pc-grokipedia-modal__actions {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#pc-grokipedia-modal .pc-grokipedia-modal__btn {
  width: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}

#pc-grokipedia-modal .pc-grokipedia-modal__btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#pc-grokipedia-modal .pc-grokipedia-modal__body {
  width: 100%;
  margin: 0;
  flex: 1 1 auto;
  background: #ffffff;
  position: relative;
}

#pc-grokipedia-modal .pc-grokipedia-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  margin: 0;
}

#pc-grokipedia-modal .pc-grokipedia-modal__note {
  width: 100%;
  margin: 0;
  padding: 10px 18px 14px;
  box-sizing: border-box;
  font-size: 0.92rem;
  color: #41634b;
  background: #f2f8f2;
  border-top: 1px solid #dfebdf;
}

@media (max-width: 760px) {
  #pc-grokipedia-modal .pc-grokipedia-modal__dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 14px;
  }

  #pc-grokipedia-modal .pc-grokipedia-modal__header {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  #pc-grokipedia-modal .pc-grokipedia-modal__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

#pc-webster-popup {
  position: fixed;
  z-index: 11950;
  width: min(420px, calc(100vw - 24px));
  max-height: min(60vh, 520px);
  display: none;
  flex-direction: column;
  background: #fbfffb;
  border: 1px solid #c9dccd;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(13, 28, 18, 0.22);
  overflow: hidden;
  margin: 0;
}

#pc-webster-popup.is-open {
  display: flex;
}

#pc-webster-popup .pc-webster-popup__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, #edf7ef 0%, #e3f1e6 100%);
  border-bottom: 1px solid #d6e5d9;
}

#pc-webster-popup .pc-webster-popup__title-group {
  flex: 1 1 auto;
  min-width: 0;
}

#pc-webster-popup .pc-webster-popup__title {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #173827;
  word-break: break-word;
}

#pc-webster-popup .pc-webster-popup__meta {
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #4f6f5a;
}

#pc-webster-popup .pc-webster-popup__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #c8dbc9;
  border-radius: 999px;
  background: #ffffff;
  color: #1f4d2b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pc-rushdoony-header .pc-btn.secondary,
.pc-rushdoony-header .pc-rushdoony-dock {
  border-color: var(--pc-ws-border-strong, #8fad9c);
  background: rgba(255, 255, 255, 0.86);
  color: var(--pc-ws-accent, #284e44);
}

.pc-rushdoony-header .pc-btn.secondary:hover,
.pc-rushdoony-header .pc-btn.secondary:focus,
.pc-rushdoony-header .pc-rushdoony-dock:hover,
.pc-rushdoony-header .pc-rushdoony-dock:focus {
  background: #ffffff;
  color: var(--pc-ws-accent-strong, #355b4f);
}

#pc-webster-popup .pc-webster-popup__close:hover {
  background: #f3fbf5;
}

#pc-webster-popup .pc-webster-popup__body {
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.97rem;
  line-height: 1.6;
  color: #183626;
  background: #ffffff;
}

.pc-lecture-feedback {
  margin: 2.4rem 0 1.2rem;
  padding: 0;
  clear: both;
}

.pc-lecture-feedback__form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--pc-ws-border, #c9dccd);
  border-radius: 16px;
  background: var(--pc-ws-card-bg, #fbfffb);
  color: var(--pc-ws-text, #173827);
  box-shadow: 0 10px 24px rgba(18, 45, 28, 0.07);
  font-size: 0.95rem;
}

.pc-lecture-feedback__intro {
  flex: 0 0 auto;
  color: var(--pc-ws-accent, #284e44);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pc-lecture-feedback__field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.pc-lecture-feedback__label {
  color: var(--pc-ws-muted, #5b6f62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pc-lecture-feedback select,
.pc-lecture-feedback textarea {
  font: inherit;
  color: var(--pc-ws-text, #173827);
  background: var(--pc-ws-input-bg, #ffffff);
  border: 1px solid var(--pc-ws-border, #c9dccd);
  border-radius: 999px;
}

.pc-lecture-feedback select {
  min-height: 2rem;
  max-width: 9.5rem;
  padding: 0.3rem 1.55rem 0.3rem 0.58rem;
}

.pc-lecture-feedback__details {
  flex: 1 1 12rem;
  min-width: 8rem;
  position: relative;
  margin: 0;
}

.pc-lecture-feedback__details summary {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--pc-ws-border, #c9dccd);
  border-radius: 999px;
  background: var(--pc-ws-soft-bg, #eef6ef);
  color: var(--pc-ws-accent, #284e44);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.pc-lecture-feedback__details summary::-webkit-details-marker {
  display: none;
}

.pc-lecture-feedback__details[open] {
  flex-basis: 100%;
  display: grid;
  gap: 0.45rem;
}

.pc-lecture-feedback__details[open] summary {
  justify-self: start;
}

.pc-lecture-feedback textarea {
  width: 100%;
  min-height: 5.2rem;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  resize: vertical;
  line-height: 1.45;
}

.pc-lecture-feedback__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.pc-lecture-feedback__submit {
  min-height: 2.1rem;
  padding: 0.36rem 0.9rem;
  border: 1px solid var(--pc-ws-accent, #284e44);
  border-radius: 999px;
  background: var(--pc-ws-accent, #284e44);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.pc-lecture-feedback__submit:hover,
.pc-lecture-feedback__submit:focus {
  background: var(--pc-ws-accent-strong, #1f3f35);
  border-color: var(--pc-ws-accent-strong, #1f3f35);
}

.pc-lecture-feedback__submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.pc-lecture-feedback__status {
  color: var(--pc-ws-muted, #5b6f62);
  font-size: 0.86rem;
  line-height: 1.3;
}

.pc-lecture-feedback__status.is-success {
  color: var(--pc-ws-success, #1f6b3a);
}

.pc-lecture-feedback__status.is-error {
  color: var(--pc-ws-danger, #8b3c2f);
}

#pc-webster-popup.is-loading .pc-webster-popup__body,
#pc-webster-popup.is-empty .pc-webster-popup__body {
  color: #4d6656;
}

@media (max-width: 760px) {
  #pc-webster-popup {
    width: calc(100vw - 12px);
    max-height: calc(70vh);
    border-radius: 14px;
  }

  .pc-lecture-feedback__form {
    align-items: stretch;
  }

  .pc-lecture-feedback__intro,
  .pc-lecture-feedback__field,
  .pc-lecture-feedback__actions {
    width: 100%;
  }

  .pc-lecture-feedback__field {
    justify-content: space-between;
  }

  .pc-lecture-feedback select {
    max-width: none;
    flex: 1 1 auto;
  }

  .pc-lecture-feedback__details {
    flex-basis: 100%;
  }

  .pc-lecture-feedback__actions {
    justify-content: space-between;
    margin-left: 0;
  }
}

/* iPhone Safari can render native audio controls taller than the fixed
   lecture bar box. Let row 2 grow so the scrubber is not clipped. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 520px) {
    .pc-nowplaying,
    .pc-nowplaying.is-visible {
      display: none !important;
    }

    .pc-row2 {
      min-height: 0;
      padding-top: 6px;
      padding-bottom: 6px;
      align-items: center;
    }

    .pc-row2 .pc-lecturebar__audio {
      width: 100%;
      min-width: 0;
      min-height: 0;
      gap: 8px;
      align-items: center;
    }

    .pc-row2 .pc-lecturebar__audio audio,
    .pc-row2 #myAudio {
      flex: 1 1 0%;
      width: auto !important;
      max-width: none !important;
      min-width: 0;
      min-height: 0;
      height: 38px;
      display: block;
      margin: 0 !important;
      align-self: center;
    }

    .pc-row2 .pc-youtube-player-shell {
      flex: 1 1 100%;
      max-width: none;
      min-width: 0;
    }

    .pc-row2 .pc-youtube-player {
      min-height: 118px;
      border-radius: 14px;
    }

    main {
      padding-top: 100px;
    }

    .content {
      margin: 100px auto;
    }
  }
}

/* Keep the modern transcript lecture-bar audio control visible. Older
   transcript-era audio rules also target bare audio elements later/elsewhere,
   so this scoped rule reasserts the intended layout for transcript.php only. */
.pc-row2 .pc-lecturebar__audio > audio#myAudio {
  grid-column: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 140px;
  max-width: none !important;
  height: 38px;
  min-height: 38px;
  margin: 0 !important;
  align-self: center;
  justify-self: stretch;
  color-scheme: light;
  accent-color: var(--pc-ws-accent, #284e44);
  background-color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  filter: none !important;
}

body.pc-library-weaverbiblecollege .pc-row2 .pc-lecturebar__audio > audio#myAudio {
  accent-color: var(--pc-weaver-navy, #102646);
  background-color: rgba(255, 250, 240, 0.88);
}

.pc-row2 .pc-lecturebar__audio > audio#myAudio::-webkit-media-controls-panel {
  background-color: rgba(255, 255, 255, 0.72);
}

body.pc-library-weaverbiblecollege .pc-row2 .pc-lecturebar__audio > audio#myAudio::-webkit-media-controls-panel {
  background-color: rgba(255, 250, 240, 0.88);
}

@media (max-width: 430px) {
  .pc-row2 .pc-lecturebar__audio > audio#myAudio {
    min-width: 0;
  }
}

/* iOS renders a little below the CSS height requested for native audio
   controls. Reserve that space inside the lecture-bar capsule so its lower
   edge is not clipped on iPhone Safari. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 520px) {
    .pc-row2 .pc-lecturebar__audio {
      min-height: 46px;
      padding-bottom: 6px;
    }

    .pc-row2 .pc-lecturebar__audio > audio#myAudio {
      height: 46px;
      min-height: 46px;
    }
  }
}
