/* Preserve the original homepage composition without hiding overflowing copy. */
.support-account-options { margin: 16px 0 0; }
.support-account-options button { padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.support-cancellation { margin: 10px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.support-cancellation a { text-decoration: underline; }
.support-form-error { color: var(--white); }

.hero, body.has-book-support-banner .hero { height: auto; min-height: 100svh; overflow: visible; }

/* Page notes use a centered row and reserve room for the page content. */
.tab-panel.has-page-note:not(#home):not([hidden]) {
  display: grid;
  grid-template-rows: max-content minmax(0, 1fr) !important;
}
.tab-panel > .public-page-note {
  position: static;
  width: min(1100px, calc(100% - 36px));
  margin: 12px auto 16px;
  padding: 6px 10px;
  transform: none;
  background: transparent;
  text-align: center;
  overflow-wrap: anywhere;
}
#home.has-page-note:not([hidden]) {
  display: grid;
  min-height: 100svh;
  padding-top: var(--header-height);
  grid-template-rows: max-content minmax(0, 1fr);
}
#home.has-page-note .hero { min-height: 0; padding-top: 24px; }
#bio.has-page-note .bio-stats-shell { height: 100%; min-height: 0; }
#support .support-shell { height: 100%; min-height: 0; overflow-y: auto; }
.videos-page { min-height: 100svh; padding-top: var(--header-height); }
.video-journal { padding: 24px var(--pad); }
.video-journal figure { max-width: 960px; margin: 24px auto; }
.video-journal video { display: block; width: 100%; max-height: 70svh; object-fit: contain; }
.video-journal figcaption { padding-top: 10px; }

/* Status is plain text; account actions are separate from the status. */
.header-status { color: var(--white); white-space: nowrap; font-size: 12px; }
.header-contact { display: grid; gap: 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.header-contact a { text-decoration: underline; text-underline-offset: 3px; }
.header-contact-email { font-size: inherit; }
@media (min-width: 901px) {
  .site-header { padding-inline: 24px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-header .playlist-banner { left: 68px; width: 222px; gap: 6px; }
  .tab-list { grid-column: 2; justify-self: center; justify-content: center; gap: clamp(12px, 1.4vw, 24px); }
  .tab-list .tab { white-space: nowrap; }
  .tab-list .support-nav { position: static; transform: none; width: auto; }
  .header-contact { position: absolute; right: 24px; top: 32px; text-align: right; }
  .site-header .header-account-menu,
  .site-header:has(.admin-nav-tab:not([hidden])) .header-account-menu { top: 8px; right: 24px; transform: none; }
  .account-nav { font-size: 10px; }
}
@media (max-width: 900px) {
  .header-contact { padding-top: 18px; font-size: 12px; }
  .site-header .header-account-menu { right: calc(var(--pad) + 65px); }
  .site-header .playlist-banner { width: min(330px, calc(100vw - 240px)); gap: 5px; }
  .site-header .playlist-banner strong { white-space: normal; font-size: 11px; line-height: 1.25; }
  .site-header .playlist-banner > div { flex: 0 1 auto; }
}
.site-header .playlist-banner button,
.site-header .playlist-banner button:not(:disabled):hover,
.site-header .playlist-banner button:not(:disabled):focus-visible,
.site-header .playlist-banner.is-playing button {
  width: 32px;
  height: 36px;
  flex: 0 0 32px;
  border: 1px solid #aaa99d;
  border-radius: 5px;
  font-size: 16px;
}
.site-header .playlist-banner [data-playlist-prev],
.site-header .playlist-banner [data-playlist-next] { width: 24px; flex-basis: 24px; }
.site-header .playlist-banner [data-playlist-toggle]:not(:disabled) { animation: playlist-pulse 2.2s ease-in-out infinite; }
.site-header .playlist-banner [data-playlist-toggle]:hover,
.site-header .playlist-banner [data-playlist-toggle]:focus-visible,
.site-header .playlist-banner.is-playing [data-playlist-toggle] { animation: none; }
@keyframes playlist-pulse { 50% { box-shadow: 0 0 0 4px #d9bd4533; border-color: #d9bd45; } }
@media (prefers-reduced-motion: reduce) { .site-header .playlist-banner [data-playlist-toggle]:not(:disabled) { animation: none; } }
@media (max-width: 520px) {
  .site-header { padding-inline: 12px; }
  .site-header .header-account-menu { right: 68px; }
  .site-header .playlist-banner { left: 52px; width: calc(100vw - 178px); gap: 4px; }
  .site-header .playlist-banner > div { display: none; }
  .site-header .playlist-banner button,
  .site-header .playlist-banner button:not(:disabled):hover,
  .site-header .playlist-banner button:not(:disabled):focus-visible { width: 36px; flex-basis: 36px; min-height: 40px; }
  .site-header .playlist-banner [data-playlist-prev],
  .site-header .playlist-banner [data-playlist-next] { width: 32px; flex-basis: 32px; }
  .header-status { font-size: 11px; }
}

@media (max-width: 520px) {
  .site-header .playlist-banner { display: grid; grid-template-columns: 36px 32px 32px; gap: 2px 4px; justify-content: start; }
  .site-header .playlist-banner > div { display: block; grid-column: 1 / -1; grid-row: 2; }
  .site-header .playlist-banner strong { display: block; white-space: nowrap; font-size: 10px; }
  .site-header .playlist-source { display: none; }
  .site-header .playlist-banner [data-playlist-toggle] { grid-column: 1; grid-row: 1; }
  .site-header .playlist-banner [data-playlist-prev] { grid-column: 2; grid-row: 1; }
  .site-header .playlist-banner [data-playlist-next] { grid-column: 3; grid-row: 1; }
}
/* Keep recording controls reachable on short and narrow screens. */
body[data-active-tab="audio"] .book-support-banner:not([hidden]) { display: none !important; }
body[data-active-tab="audio"] #audio { height: 100svh !important; }
@media (max-width: 700px) and (max-height: 650px) {
  #support .support-shell { padding: 8px 16px; }
  #support .membership-grid { gap: 8px; }
  #support .membership-grid article { padding: 8px 12px; gap: 2px 12px; }
  #support .membership-grid article > p { font-size: 9px; line-height: 1.2; }
  #support .membership-grid h3 { font-size: 24px; }
  #support .membership-benefits { gap: 3px; font-size: 10px; line-height: 1.2; }
  #support .membership-grid button { height: 32px; min-height: 32px; margin-top: 4px; }
  #support .donation-amount input { padding: 3px 6px; font-size: 20px; }
}

/* Account status is the account entry point; Support follows Other in gold. */
.header-status { padding: 2px 6px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--white); cursor: pointer; }
.header-status:hover, .header-status:focus-visible { border-color: #d9bd45; color: #d9bd45; }
.tab-list .support-tab { color: #d9bd45; }
.tab-list .support-tab::after { background: #d9bd45; }
.toast { pointer-events: none; }

/* Each biography/statistics column owns its heading and scrolling content. */
.bio-stats-shell { grid-template-rows: minmax(0, 1fr); }
.bio-column { min-width: 0; min-height: 0; }
.bio-column-heading { margin-bottom: 20px; }
.bio-column-heading h1, .bio-column-heading h2 { margin: 0; font: 400 clamp(34px, 4vw, 56px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
@media (min-width: 851px) {
  .bio-column, .bio-scoreboard { display: grid; grid-template-rows: max-content minmax(0, 1fr); min-height: 0; }
  .bio-scoreboard { overflow: hidden; }
  .bio-stats-content { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}

/* A longer song label reveals full details on hover or keyboard focus. */
.site-header .playlist-banner .playlist-info { position: relative; display: block; flex: 0 1 auto; min-width: 0; max-width: none; }
.site-header .playlist-banner [data-playlist-title] { display: block; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.playlist-details { position: absolute; top: 100%; left: 0; z-index: 30; width: min(360px, calc(100vw - 80px)); margin-top: 8px; padding: 16px; border: 1px solid #45433a; border-radius: 8px; background: #151511; box-shadow: 0 12px 28px #0008; opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.playlist-details::before { content: ""; position: absolute; top: -9px; right: 0; left: 0; height: 9px; }
.site-header .playlist-banner .playlist-details strong { white-space: normal; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.playlist-details p { margin: 8px 0 0; color: #b8b7af; font-size: 12px; line-height: 1.5; }
.site-header .playlist-banner .playlist-details .playlist-source { display: block; margin-top: 10px; color: #d9bd45; font-size: 12px; white-space: normal; }
.site-header .playlist-banner .playlist-details .playlist-source[hidden] { display: none; }
.playlist-info:hover .playlist-details, .playlist-info:focus-within .playlist-details { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 901px) {
  .site-header .playlist-banner { width: max-content; max-width: min(344px, calc(50vw - 282px)); }
  .tab-list:has(.admin-nav-tab:not([hidden])) { margin-right: 0; }
}
@media (min-width: 521px) and (max-width: 900px) {
  .site-header .playlist-banner { left: calc(var(--pad) + 45px); width: max-content; max-width: min(520px, calc(100vw - 270px)); }
}
@media (max-width: 520px) {
  .site-header .playlist-banner { grid-template-columns: 36px 32px minmax(32px, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .playlist-details { transition: none; } }

/* Let the navigation use the available space before switching to Menu. */
.site-header .playlist-position { margin-left: 0; flex: 0 0 auto; }
@media (min-width: 901px) and (max-width: 1180px) {
  .mobile-menu-toggle { display: none; }
  .tab-list {
    position: static; inset: auto; width: max-content; height: auto;
    display: flex; flex-direction: row; align-items: stretch;
    padding: 0; gap: 12px; overflow: visible; background: transparent;
  }
  .tab-list .tab { min-height: 0; border-bottom: 0; text-align: center; font-size: 12px; }
  .tab-list .tab::after { display: block; }
  .tab-list .admin-nav-tab { position: relative; top: auto; right: auto; height: auto; padding-left: 0; border-left: 0; }
  .nav-group { display: flex; align-items: stretch; }
  .nav-group-toggle { width: auto; }
  .nav-submenu { position: absolute; top: 100%; left: -20px; min-width: 170px; padding: 10px; border: 1px solid #30302d; background: #10100f; box-shadow: 0 12px 28px #0006; }
  .tab-list .nav-submenu .tab { min-height: 42px; padding: 10px 12px; text-align: left; font-size: 12px; }
  .tab-list .nav-submenu .tab::after { display: none; }
  .header-contact-email { font-size: 10px; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .site-header .playlist-position { display: none; }
}
/* Per-item position and icon-only sharing for Audio and Photos. */
.media-item-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 12px; }
.media-item-tools .media-position { margin: 0; color: #a3a29c; font-size: 11px; text-align: left; }
.media-share-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.media-share-button svg { display: block; }
.media-share-button:hover, .media-share-button:focus-visible { border-color: var(--white); background: var(--white); color: var(--black); }
.media-share-button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.photos-page .media-item-tools { flex: 0 0 auto; }
