/* Self-hosted ETA webfonts */
@font-face {
    font-family: "Inter";
    src: url("../../eta-assets/fonts/Inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../../eta-assets/fonts/Inter-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../../eta-assets/fonts/Inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../../eta-assets/fonts/Inter-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../../eta-assets/fonts/Inter-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Oswald";
    src: url("../../eta-assets/fonts/Oswald-Variable.woff2") format("woff2");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --purple-950: #092b22;
    --purple-900: #0d3b2e;
    --purple-800: #145c43;
    --purple-700: #18794e;
    --purple-600: #22945d;
    --purple-500: #43aa72;
    --purple-200: #bfe4ce;
    --purple-100: #e3f3e9;
    --ink: #13251d;
    --muted: #607269;
    --line: #dce9e1;
    --surface: #ffffff;
    --soft: #f3f8f5;
    --max: 1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; color: white; background: linear-gradient(120deg, var(--purple-950), var(--purple-800)); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { max-width: var(--max); margin: auto; min-height: 92px; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand-kicker, .eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.brand-kicker { color: #bfe4ce; }
.brand-title { margin-top: 7px; font-family: Oswald, sans-serif; font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.site-search { display: flex; width: min(460px, 45vw); }
.site-search input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.28); border-right: 0; border-radius: 0; padding: 12px 14px; color: white; background: rgba(255,255,255,.10); outline: none; }
.site-search input::placeholder { color: #d7e9df; }
.site-search input:focus { background: rgba(255,255,255,.16); border-color: #bfe4ce; }
.site-search button, .inline-form button, .donation-form button { border: 0; border-radius: 0; padding: 12px 18px; font-weight: 800; color: white; background: var(--purple-600); }
.menu-toggle, .menu-hide-toggle, .menu-show-toggle { display: none; }
.main-nav { max-width: var(--max); margin: auto; padding: 0 32px; display: flex; align-items: stretch; gap: 4px; }
.main-nav > a, .main-nav summary { display: block; padding: 12px 15px; color: #eee9f2; text-decoration: none; font-size: .9rem; font-weight: 700; list-style: none; }
.main-nav > a:hover, .main-nav summary:hover { background: rgba(255,255,255,.1); color: white; }
.main-nav details { position: relative; }
.main-nav summary { cursor: pointer; }
.main-nav summary::-webkit-details-marker { display: none; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px 0; background: var(--purple-950); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.submenu a { display: block; padding: 10px 16px; text-decoration: none; }
.submenu a:hover { background: var(--purple-700); }
.site-main { min-height: 70vh; }
.hero { padding: 76px max(32px, calc((100vw - var(--max)) / 2 + 32px)); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: 50px; align-items: end; color: white; background: linear-gradient(120deg, var(--purple-950), var(--purple-700)); }
.hero h1, .archive-intro h1 { margin: 8px 0 18px; font-family: Oswald, sans-serif; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .98; text-transform: uppercase; letter-spacing: -.02em; }
.hero p { max-width: 760px; font-size: 1.15rem; color: #e9e1ef; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; padding: 12px 18px; text-decoration: none; font-weight: 800; }
.button.primary { background: white; color: var(--purple-900); }
.button.secondary { border: 1px solid rgba(255,255,255,.5); color: white; }
.hero-stat { border-left: 4px solid var(--purple-500); padding: 12px 0 12px 22px; }
.hero-stat strong { display: block; font-family: Oswald, sans-serif; font-size: 2.5rem; }
.hero-stat span { color: #d7e9df; }
.content-grid { max-width: var(--max); margin: auto; padding: 56px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
.content-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.section-heading h2, .results-header h2, .support-band h2, .split-section h2 { margin: 4px 0 10px; font-family: Oswald, sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; line-height: 1.05; }
.eyebrow { color: var(--purple-600); }
.prose-section p { max-width: 850px; font-size: 1.04rem; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: end; }
.subscribe-form label, .donation-form label { display: block; margin-bottom: 8px; font-weight: 800; }
.inline-form { display: flex; }
.inline-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; }
.support-band { margin-top: 42px; padding: 38px; display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 32px; align-items: center; color: white; background: var(--purple-900); }
.goal-block strong, .goal-block span, .goal-block small { display: block; }
.goal-block strong { font-size: 1.5rem; }
.donation-form select { width: 100%; margin-bottom: 10px; padding: 10px; border-radius: 0; }
.donation-form button { width: 100%; }
.social-panel { align-self: start; position: sticky; top: 150px; min-width: 0; padding-top: 12px; border-top: 4px solid var(--purple-600); }
.social-panel .compact h2 { font-size: 2rem; }
.social-fallback { font-size: .85rem; color: var(--muted); }
.archive-intro { padding: 58px max(32px, calc((100vw - var(--max)) / 2 + 32px)); display: flex; justify-content: space-between; gap: 40px; align-items: end; background: var(--soft); border-bottom: 1px solid var(--line); }
.archive-intro h1 { color: var(--purple-900); font-size: clamp(2.6rem, 5vw, 5rem); }
.archive-intro p { max-width: 760px; }
.mini-goal { min-width: 190px; padding-left: 18px; border-left: 4px solid var(--purple-600); }
.mini-goal span, .mini-goal strong { display: block; }
.mini-goal strong { font-size: 1.5rem; }
.mini-goal-donate { display: inline-flex; margin-top: 7px; align-items: center; gap: .22em; padding: 0; border: 0; background: transparent; color: var(--purple-600); font: inherit; font-size: .82rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; }
.mini-goal-donate:hover, .mini-goal-donate:focus { background: transparent; color: var(--purple-700); text-decoration: underline; text-underline-offset: 3px; }
.results-section { max-width: var(--max); margin: auto; padding: 52px 32px; }
.latest-results + .latest-results { padding-top: 10px; }
.results-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.result-count { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 3px solid var(--purple-700); }
.shows-table { width: 100%; border-collapse: collapse; background: white; }
.shows-table th { padding: 14px 16px; text-align: left; color: white; background: var(--purple-900); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.shows-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.shows-table tbody tr:hover { background: #f4faf6; }
.shows-table th:first-child, .shows-table td:first-child { width: 130px; white-space: nowrap; }
.shows-table th:nth-child(2), .shows-table td:nth-child(2) { width: 150px; }
.shows-table th:last-child, .shows-table td:last-child { width: 110px; }
.download-link { color: var(--purple-700); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.partial { color: var(--purple-700); font-weight: 700; }
.pagination { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 11px; text-align: center; text-decoration: none; border: 1px solid var(--line); }
.pagination a:hover, .pagination .current { color: white; background: var(--purple-700); border-color: var(--purple-700); }
.empty-state { padding: 34px; background: var(--soft); border-left: 4px solid var(--purple-600); }
.social-grid { padding-top: 0; }
.notice-band { padding: 46px max(32px, calc((100vw - var(--max)) / 2 + 32px)); color: white; background: var(--purple-700); }
.notice-band h1 { margin: 0 0 8px; font-family: Oswald, sans-serif; font-size: 3rem; text-transform: uppercase; }
.site-footer { max-width: var(--max); margin: 50px auto 0; padding: 26px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.footer-row a { margin-left: auto; }
.site-disclaimer { margin: 16px 0 0; max-width: 1000px; line-height: 1.55; }

/* Public supporter and donation controls */
.supporter-signin {
    width: 100%;
    border: 2px solid var(--purple-800);
    background: var(--surface);
    color: var(--purple-900);
}
.supporter-signin:hover, .supporter-signin:focus-visible {
    background: var(--purple-900);
    color: white;
}
.public-donation-form, .supporter-donation-form { width: 100%; min-width: 220px; }
.supporter-donation-form label { color: var(--purple-900); }
.supporter-donation-form button { background: var(--purple-700); }
.supporter-donation-form button:hover, .supporter-donation-form button:focus-visible { background: var(--purple-900); }
@media (max-width: 900px) {
    .site-header { position: static; }
    .header-inner { align-items: stretch; flex-direction: column; padding-top: 76px; }
    .site-search { width: 100%; }
    .mobile-menu-controls { position: fixed; top: 12px; left: 12px; z-index: 1001; display: flex; align-items: stretch; transition: opacity .18s ease, transform .18s ease; }
    .mobile-menu-controls.is-hidden { pointer-events: none; opacity: 0; transform: translateX(-130%); }
    .menu-toggle { position: static; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 112px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.32); border-right: 0; background-color: var(--purple-900); opacity: 1; color: white; font-weight: 800; -webkit-tap-highlight-color: transparent; box-shadow: 0 8px 24px rgba(9,43,34,.3); }
    .menu-hide-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; padding: 0; border: 1px solid rgba(255,255,255,.32); background: var(--purple-800); color: white; font-size: 1.35rem; line-height: 1; box-shadow: 0 8px 24px rgba(9,43,34,.3); }
    .menu-hide-toggle:hover, .menu-hide-toggle:focus-visible { background: var(--purple-700); }
    .menu-show-toggle { position: fixed; top: 18px; left: 0; z-index: 1001; display: none; width: 10px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.34); border-left: 0; border-radius: 0 7px 7px 0; background: var(--purple-900); color: white; box-shadow: 0 4px 12px rgba(9,43,34,.24); -webkit-tap-highlight-color: transparent; }
    .menu-show-toggle::after { content: ""; display: block; width: 2px; height: 14px; margin: auto; border-radius: 2px; background: rgba(255,255,255,.8); }
    .menu-show-toggle.is-visible { display: block; }
    .menu-show-toggle:hover, .menu-show-toggle:focus-visible, .menu-show-toggle:active { width: 14px; background: var(--purple-700); }
    .menu-toggle:hover, .menu-toggle:focus-visible { background-color: var(--purple-700); opacity: 1; }
    .menu-toggle:active, .menu-toggle[aria-expanded="true"] { background-color: var(--purple-800); opacity: 1; }
    .menu-toggle-icon { display: inline-flex; width: 22px; flex-direction: column; gap: 4px; }
    .menu-toggle-icon span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .main-nav { position: fixed; top: 66px; left: 12px; right: 12px; z-index: 1000; display: none; max-height: calc(100vh - 82px); overflow-y: auto; padding: 8px 18px 18px; flex-direction: column; align-items: stretch; gap: 0; background-color: var(--purple-950); background-image: linear-gradient(145deg, var(--purple-950), var(--purple-800)); opacity: 1; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 50px rgba(9,43,34,.42); }
    .main-nav.is-open { display: flex; }
    body.menu-open { overflow: hidden; }
    .main-nav > a, .main-nav summary { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .main-nav details { width: 100%; }
    .submenu { position: static; min-width: 0; padding: 0 0 6px 16px; background: rgba(0,0,0,.14); box-shadow: none; }
    .submenu a { padding: 11px 14px; }
    .hero { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .social-panel { position: static; }
    .support-band { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .header-inner, .main-nav, .results-section, .content-grid { padding-left: 18px; padding-right: 18px; }
    .hero, .archive-intro, .notice-band { padding-left: 18px; padding-right: 18px; }
    .archive-intro { align-items: flex-start; flex-direction: column; }
    .main-nav { gap: 0; }
    .shows-table thead { display: none; }
    .shows-table, .shows-table tbody, .shows-table tr, .shows-table td { display: block; width: 100% !important; }
    .shows-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .shows-table td { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 6px 12px; border: 0; white-space: normal !important; }
    .shows-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    .support-band { margin-left: -18px; margin-right: -18px; padding: 30px 18px; }
    .site-footer { margin-top: 20px; }
    .footer-row { gap: 12px; }
}

/* Result controls: page size and date sorting */
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.results-toolbar .result-count { margin: 0; }
.page-size-form { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9rem; }
.page-size-form label { font-weight: 600; }
.page-size-form select { min-width: 78px; padding: 8px 30px 8px 10px; border: 1px solid var(--line); background: white; color: inherit; font: inherit; }
.page-size-form button { padding: 8px 12px; border: 0; background: var(--purple-700); color: white; font: inherit; cursor: pointer; }
.sort-link { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.sort-link:hover, .sort-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 680px) {
    .results-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* Keep the anchored latest-shows heading visible below the sticky header. */
#latest-radio-shows {
    scroll-margin-top: 9rem;
}

/* Public-site supporter messaging */
.supporter-callout, .supporter-access-hero { margin-top: 42px; padding: clamp(30px,5vw,58px); display: flex; align-items: center; justify-content: space-between; gap: 36px; background: var(--purple-100); border-left: 5px solid var(--purple-600); }
.supporter-callout h2, .supporter-access-hero h1 { color: var(--purple-900); }
.supporter-actions, .access-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 220px; }
.text-link { color: var(--purple-700); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.button.light { display:inline-block; background:white; color:var(--purple-900); text-decoration:none; padding:12px 18px; font-weight:800; }
.supporter-access-hero { max-width: var(--max); margin: 40px auto 0; }
.supporter-access-hero h1 { max-width: 900px; font-size: clamp(2.5rem,6vw,5.6rem); }
.benefits-grid { max-width: var(--max); margin: 0 auto; padding: 52px 32px; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.benefits-grid > div { padding-top:20px; border-top:4px solid var(--purple-600); }
.benefits-grid span { color:var(--purple-600); font-weight:800; }
.access-note, .results-upgrade { max-width:var(--max); margin:0 auto; padding:38px 32px; display:flex; justify-content:space-between; align-items:center; gap:30px; background:var(--soft); }
.results-upgrade { margin-top:20px; margin-bottom:40px; }
.public-access-mini { border-left-color:var(--purple-600); }
@media(max-width:900px){ .supporter-callout,.supporter-access-hero,.access-note,.results-upgrade{align-items:flex-start;flex-direction:column}.benefits-grid{grid-template-columns:1fr}.supporter-actions,.access-actions{min-width:0} }

/* Public archive: older recordings route to supporter access. */
.shows-table th:last-child,
.shows-table td:last-child {
  width: 164px;
  min-width: 164px;
  text-align: center;
}

.supporter-download {
  display: inline-flex;
  min-width: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--purple-600);
  background: var(--purple-100);
  color: var(--purple-800);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.15;
}

.supporter-download:hover,
.supporter-download:focus-visible {
  background: var(--purple-700);
  border-color: var(--purple-700);
  color: #fff;
}

.supporter-download__label {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.supporter-download__note {
  font-size: .76rem;
  font-weight: 700;
  opacity: .82;
}

@media (max-width: 700px) {
  .shows-table th:last-child,
  .shows-table td:last-child {
    width: auto;
    min-width: 0;
    text-align: left;
  }

  .supporter-download {
    min-width: 0;
    align-items: flex-start;
  }
}

/* Keep the supporter sign-in text link underline continuous across the phrase. */
.supporter-actions .text-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  line-height: 1.25;
  padding-bottom: 2px;
}
.supporter-actions .text-link:hover,
.supporter-actions .text-link:focus-visible {
  border-bottom-color: transparent;
}


/* PayPal API checkout and supporter confirmation */
.paypal-checkout-section .checkout-actions,
.confirmation-section .supporter-confirm-form { max-width: 520px; width: 100%; }
.checkout-actions select,
.supporter-confirm-form input,
.supporter-confirm-form textarea { width: 100%; box-sizing: border-box; padding: .75rem; border: 1px solid rgba(20,80,50,.35); border-radius: .4rem; background: #fff; color: #173c2b; font: inherit; }
.checkout-actions label,
.supporter-confirm-form label { display: block; margin-bottom: .85rem; font-weight: 600; }
#paypal-button-container { margin-top: 1rem; min-height: 45px; }
.form-message { min-height: 1.5em; margin-top: .75rem; }
.supporter-confirm-form { background: #f4fbf6; border: 1px solid rgba(20,80,50,.18); padding: 1.25rem; }
.supporter-confirm-form .checkbox-label { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.supporter-confirm-form .checkbox-label input { width: auto; }

/* Embedded PayPal Smart Buttons */
.embedded-paypal-checkout {
  width: 100%;
  min-width: 220px;
}
.embedded-paypal-checkout > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}
.paypal-amount-select {
  width: 100%;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(24, 84, 55, .28);
  border-radius: 0;
  background: #fff;
  color: var(--purple-900);
  font: inherit;
}
.paypal-button-container {
  width: 100%;
  min-height: 45px;
}
.paypal-message {
  margin: 8px 0 0;
  font-size: .92rem;
}
.support-band .public-donation-form,
.supporter-access-hero .supporter-donation-form {
  width: min(100%, 360px);
}
@media (max-width: 700px) {
  .support-band .public-donation-form,
  .supporter-access-hero .supporter-donation-form {
    width: 100%;
  }
}

/* Shared supporter confirmation template layout. */
.supporter-access-hero.confirmation-section {
  display: block;
}
.confirmation-section .confirmation-copy,
.confirmation-section .supporter-confirm-form,
.confirmation-section .confirmation-invalid {
  width: 100%;
  max-width: 620px;
}
.confirmation-section .confirmation-copy {
  margin-bottom: 24px;
}
.confirmation-section .confirmation-message,
.confirmation-section .confirmation-invalid {
  margin: 10px 0 0;
}
.supporter-confirm-form label > span:first-child {
  display: block;
  margin-bottom: .35rem;
}
.supporter-confirm-form .checkbox-label > span {
  margin: 0;
}
.supporter-confirm-form .button.primary {
  margin-top: 6px;
}

/* Safari-safe PayPal sizing and stacking. */
.site-header {
    z-index: 10000;
}

.support-band > *,
.private-donation-form,
.embedded-paypal-checkout {
    min-width: 0;
    max-width: 100%;
}

.private-donation-form {
    width: 100%;
}

.embedded-paypal-checkout {
    position: relative;
    z-index: 0;
    width: 100%;
    overflow: hidden;
    contain: layout paint;
}

.paypal-button-container,
.paypal-button-container > div,
.paypal-button-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.paypal-button-container {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.paypal-button-container iframe {
    position: relative !important;
    z-index: 0 !important;
}

/* Static X profile panel: replaces the unreliable embedded timeline. */
.x-profile-card {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid color-mix(in srgb, var(--purple-600) 28%, transparent);
    background: color-mix(in srgb, var(--purple-600) 7%, #fff);
}
.x-profile-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}
.x-profile-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--purple-700, var(--purple-600));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.x-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: fit-content;
    max-width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--purple-700, var(--purple-600));
    color: var(--purple-700, var(--purple-600));
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.x-profile-link:hover,
.x-profile-link:focus-visible {
    background: var(--purple-700, var(--purple-600));
    color: #fff;
}


/* Temporary PayPal.Me fallback while Live API access is under review. */
.paypalme-donation {
  width: 100%;
  min-width: 0;
}
.paypalme-form {
  display: grid;
  gap: .75rem;
  width: 100%;
}
.paypalme-form label {
  font-weight: 700;
}
.paypalme-form select {
  width: 100%;
  max-width: 18rem;
  min-height: 2.75rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: .5rem;
  font: inherit;
  background: #fff;
  color: #171717;
}
.paypalme-form .button {
  width: fit-content;
  min-width: 12rem;
  cursor: pointer;
}
.paypalme-manual-note {
  margin: .9rem 0 0;
  max-width: 36rem;
  line-height: 1.55;
  font-size: .95rem;
}
@media (max-width: 640px) {
  .paypalme-form select,
  .paypalme-form .button {
    width: 100%;
    max-width: none;
  }
}


/* Safari navigation stability
   - Prevent elastic page overscroll from repeatedly repainting the sticky header.
   - Give the header an opaque fallback background during Safari compositing.
   - Keep hover/focus painting on the navigation layer stable.
*/
html,
body {
    overscroll-behavior-y: none;
}

.site-header {
    background-color: var(--purple-950);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.main-nav,
.main-nav > a,
.main-nav summary,
.submenu {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Keep the mobile overlay explicitly opaque so Safari never exposes a white
   compositor surface while the browser sidebar changes viewport width. */
@media (max-width: 900px) {
    .main-nav {
        background-color: var(--purple-950);
    }

    .main-nav > a:hover,
    .main-nav > a:focus-visible,
    .main-nav summary:hover,
    .main-nav summary:focus-visible {
        background-color: rgba(255,255,255,.10);
        color: #fff;
    }
}


/* Desktop Safari/sidebar fix:
   If the viewport becomes narrower than 900px but the device still has a real
   hover-capable fine pointer, keep the normal desktop navigation. This avoids
   Safari switching into the fixed mobile-menu compositor when Bookmarks is open.
*/
@media (min-width: 701px) and (max-width: 900px) and (hover: hover) and (pointer: fine) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        min-height: 92px;
        padding: 18px 32px;
        flex-direction: row;
        align-items: center;
    }

    .site-search {
        width: min(460px, 45vw);
    }

    .mobile-menu-controls,
    .menu-toggle,
    .menu-hide-toggle,
    .menu-show-toggle {
        display: none !important;
    }

    .main-nav {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        display: flex !important;
        max-height: none;
        overflow: visible;
        max-width: var(--max);
        margin: auto;
        padding: 0 32px;
        flex-direction: row;
        align-items: stretch;
        gap: 4px;
        background-color: transparent;
        background-image: none;
        border: 0;
        box-shadow: none;
    }

    .main-nav > a,
    .main-nav summary {
        padding: 12px 15px;
        border-bottom: 0;
    }

    .main-nav details {
        width: auto;
        position: relative;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 190px;
        padding: 8px 0;
        background: var(--purple-950);
        box-shadow: 0 18px 40px rgba(0,0,0,.28);
    }

    .submenu a {
        padding: 10px 16px;
    }

    body.menu-open {
        overflow: visible;
    }
}

/* =========================================================
   Public desktop: compact sticky header after scrolling
   ========================================================= */
@media (min-width: 1100px) {
    .site-header {
        transition: box-shadow .18s ease;
    }

    .site-header .header-inner,
    .site-header .brand,
    .site-header .site-search,
    .site-header .main-nav {
        transition:
            min-height .18s ease,
            padding .18s ease,
            width .18s ease,
            opacity .14s ease;
    }

    .site-header.is-compact {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 14px;
        padding: 0 max(18px, calc((100vw - var(--max)) / 2 + 18px));
        box-shadow: 0 5px 16px rgba(0,0,0,.16);
    }

    /* Put navigation first and the compact search on the same row. */
    .site-header.is-compact .main-nav {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0;
        gap: 2px;
        align-items: center;
    }

    .site-header.is-compact .header-inner {
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
        max-width: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    /* Hide the site identity only while the sticky header is compact. */
    .site-header.is-compact .brand {
        display: none;
    }

    .site-header.is-compact .site-search {
        width: 270px;
        min-width: 190px;
        margin: 0;
    }

    .site-header.is-compact .site-search input {
        height: 38px;
        padding: 7px 10px;
        font-size: .82rem;
    }

    .site-header.is-compact .site-search button {
        height: 38px;
        padding: 7px 11px;
        font-size: .82rem;
    }

    .site-header.is-compact .main-nav > a,
    .site-header.is-compact .main-nav summary {
        padding: 9px 10px;
        font-size: .82rem;
        white-space: nowrap;
    }

    .site-header.is-compact .submenu a {
        font-size: .85rem;
    }
}

/* Compact-header archive title */
@media (min-width: 1100px) {
    .site-header.is-compact .main-nav::before {
        content: "THE EDDIE TRUNK ARCHIVE";
        display: inline-flex;
        align-items: center;
        align-self: stretch;
        margin-right: 8px;
        padding: 0 14px 0 0;
        border-right: 1px solid rgba(255,255,255,.35);
        font-family: Oswald, sans-serif;
        font-size: .82rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: .02em;
        white-space: nowrap;
        color: white;
    }
}

