/* Biblical Pharmacy — mock-matched styles */
:root {
  --forest: #0b2b1a;
  --forest-deep: #071f12;
  --forest-mid: #123d26;
  --gold: #e5d19d;
  --gold-bright: #f0e2b0;
  --gold-dim: #c4ad6e;
  --cream: #f7f0d8;
  --white: #f5f5f0;
  --muted: rgba(245, 245, 240, 0.72);
  --leaf: #1a4a2e;
  --leaf-vein: #2d6b45;
  --wreath: #d4b86a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--forest-deep);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: var(--gold);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: clamp(280px, 48vw, 520px);
  background:
    linear-gradient(
      to bottom,
      rgba(7, 31, 18, 0.15) 0%,
      rgba(7, 31, 18, 0.05) 50%,
      var(--forest) 100%
    ),
    url("hero-garden.jpg") center top / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--forest));
  pointer-events: none;
}

/* ——— Main panel ——— */
.panel {
  position: relative;
  z-index: 1;
  background: var(--forest);
  margin-top: -4rem;
  padding: 2.5rem 1.25rem 4rem;
}

.panel-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.1rem;
}

.tagline {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 400;
  color: var(--white);
  max-width: 36rem;
  margin: 0 auto 0.35rem;
}

.tagline-accent {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1.5px;
}

/* Search */
.search-wrap {
  margin: 1.75rem auto 0.5rem;
  max-width: 420px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 209, 157, 0.35);
  background: rgba(7, 31, 18, 0.55);
  color: var(--cream);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input::placeholder {
  color: rgba(245, 245, 240, 0.45);
}

.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 209, 157, 0.15);
}

.search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.65;
  pointer-events: none;
  font-size: 0.95rem;
}

/* Herb grid */
.herb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
  margin: 2.5rem 0 2.75rem;
  list-style: none;
}

@media (max-width: 820px) {
  .herb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
}

@media (max-width: 420px) {
  .herb-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

.herb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: transform 0.25s ease, opacity 0.25s;
  cursor: pointer;
}

.herb-card:hover,
.herb-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.herb-card:focus-visible .wreath {
  box-shadow: 0 0 0 3px var(--forest), 0 0 0 5px var(--gold);
}

.herb-card.is-hidden {
  display: none;
}

/* Gold vine wreath */
.wreath {
  position: relative;
  width: clamp(110px, 18vw, 150px);
  height: clamp(110px, 18vw, 150px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(229, 209, 157, 0.12), transparent 65%),
    radial-gradient(circle at 50% 50%, #1a3d28 0%, #0e2818 70%);
  box-shadow:
    0 0 0 2px rgba(212, 184, 106, 0.35),
    0 0 24px rgba(212, 184, 106, 0.25),
    inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.wreath::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      var(--wreath) 0deg 4deg,
      transparent 4deg 14deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  opacity: 0.85;
  animation: wreath-glow 6s ease-in-out infinite;
}

.wreath::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 226, 176, 0.55);
  box-shadow: 0 0 12px rgba(229, 209, 157, 0.35);
  pointer-events: none;
}

@keyframes wreath-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

.wreath-inner {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wreath-inner svg {
  width: 78%;
  height: 78%;
}

.herb-name {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

.herb-verse {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--white);
  opacity: 0.9;
}

.herb-benefits {
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  max-width: 11rem;
  line-height: 1.35;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Leaf CTA */
.cta-leaf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 420px);
  padding: 1.05rem 2.5rem;
  margin: 0.5rem auto 0;
  color: var(--white);
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(160deg, #1f5a38 0%, var(--leaf) 40%, #0f3320 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, filter 0.2s;
  isolation: isolate;
  overflow: hidden;
}

.cta-leaf::before {
  /* midrib */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--leaf-vein) 15%,
    rgba(180, 220, 160, 0.45) 50%,
    var(--leaf-vein) 85%,
    transparent
  );
  z-index: -1;
  opacity: 0.7;
}

.cta-leaf::after {
  /* side veins */
  content: "";
  position: absolute;
  inset: 12% 10%;
  background:
    repeating-linear-gradient(
      18deg,
      transparent,
      transparent 14px,
      rgba(45, 107, 69, 0.45) 14px,
      rgba(45, 107, 69, 0.45) 15px
    ),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 14px,
      rgba(45, 107, 69, 0.35) 14px,
      rgba(45, 107, 69, 0.35) 15px
    );
  z-index: -1;
  opacity: 0.55;
  border-radius: inherit;
  -webkit-mask: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  mask: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

.cta-leaf:hover,
.cta-leaf:focus-visible {
  transform: scale(1.03);
  filter: brightness(1.08);
  outline: none;
}

.cta-leaf[aria-expanded="true"] {
  letter-spacing: 0.1em;
}

/* Full catalog */
.catalog {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: none;
}

.catalog.is-open {
  display: block;
  animation: fade-up 0.45s ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalog h2 {
  font-family: var(--serif);
  color: var(--gold);
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.catalog-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
}

.catalog-card {
  background: var(--forest-mid);
  border: 1px solid rgba(229, 209, 157, 0.18);
  border-radius: 12px;
  padding: 1.15rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.catalog-card:hover,
.catalog-card:focus-visible {
  border-color: var(--gold-dim);
  background: #164830;
  transform: translateY(-2px);
  outline: none;
}

.catalog-card.is-hidden {
  display: none;
}

.catalog-card .emoji {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.catalog-card h3 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.catalog-card .ref {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.2rem 0 0.45rem;
}

.catalog-card .ben {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--white);
  opacity: 0.85;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.az-hint {
  text-align: center;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.55rem;
}

/* Reference links under catalog lead */
.ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.15rem 0 0.25rem;
}

.ref-link {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 209, 157, 0.4);
  background: rgba(240, 226, 176, 0.1);
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.ref-link:hover,
.ref-link:focus-visible {
  background: rgba(240, 226, 176, 0.22);
  color: #fff;
  outline: none;
}

/* A–Z letter index */
.az-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0 auto 1rem;
  max-width: 42rem;
}

.az-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(229, 209, 157, 0.28);
  background: var(--forest-mid);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.az-btn:hover,
.az-btn:focus-visible {
  border-color: var(--gold-dim);
  background: #164830;
  color: var(--gold-bright);
  outline: none;
}

.az-btn.is-active {
  background: rgba(240, 226, 176, 0.22);
  border-color: var(--gold);
  color: #fff;
}

.az-btn[data-letter="all"] {
  padding: 0 0.7rem;
  min-width: auto;
}

.az-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 14, 8, 0.72);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(165deg, #154028 0%, var(--forest) 55%, var(--forest-deep) 100%);
  border: 1px solid rgba(229, 209, 157, 0.35);
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s, max-width 0.2s;
  scrollbar-color: var(--gold-dim) rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
}

.modal.is-monograph {
  max-width: 720px;
  max-height: min(92vh, 880px);
  padding: 1.85rem 1.7rem 1.6rem;
}

.modal-backdrop.is-open .modal {
  transform: none;
}

.modal-close {
  position: sticky;
  top: 0.35rem;
  float: right;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.35rem -0.35rem 0 0;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold);
  background: rgba(7, 31, 18, 0.78);
  border: 1px solid rgba(229, 209, 157, 0.28);
  transition: background 0.15s;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(229, 209, 157, 0.2);
  outline: none;
}

.modal-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}

.modal-badge .wreath {
  width: 88px;
  height: 88px;
}

.modal h2 {
  font-family: var(--serif);
  text-align: center;
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-scientific {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gold-bright);
  margin: 0.35rem auto 0.15rem;
  max-width: 38rem;
  line-height: 1.45;
}

.modal-scientific em {
  font-style: italic;
}

.modal-common {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin: 0.2rem auto 0.15rem;
  max-width: 36rem;
}

.modal .verse-ref {
  text-align: center;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.35rem 0 0.75rem;
}

.modal blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  border-left: 2px solid var(--gold-dim);
  padding-left: 1rem;
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.modal-subtitle {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gold);
  margin: -0.35rem auto 1.15rem;
  max-width: 34rem;
  line-height: 1.4;
}

.modal-note {
  font-size: 0.86rem;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.22);
  border-left: 2px solid var(--gold-dim);
  padding: 0.7rem 0.85rem;
  border-radius: 0 8px 8px 0;
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.modal-section {
  margin: 0 0 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(229, 209, 157, 0.16);
}

.modal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.modal h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 1rem 0 0.35rem;
}

.modal-section h3 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.16em;
}

.modal p {
  font-size: 0.92rem;
  color: var(--white);
  opacity: 0.9;
}

.modal-section p,
.modal-section li {
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.92;
  line-height: 1.58;
}

.modal-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal-section li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.65rem;
}

.modal-section li:last-child {
  margin-bottom: 0;
}

.modal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(212, 184, 106, 0.18);
}

.modal-section strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.modal-section em {
  font-style: italic;
  color: var(--cream);
}

.modal-dosage-lead {
  font-size: 0.8rem !important;
  font-style: italic;
  color: var(--muted) !important;
  margin-bottom: 0.55rem;
  opacity: 0.85 !important;
}

.disclaimer {
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  border: 1px solid rgba(229, 209, 157, 0.2);
  font-size: 0.78rem;
  color: var(--gold-bright);
  line-height: 1.45;
}

.disclaimer strong {
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid rgba(229, 209, 157, 0.12);
  background: var(--forest-deep);
}

.site-footer p + p {
  margin-top: 0.4rem;
}

.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 1rem;
  font-style: italic;
}

.no-results.is-visible {
  display: block;
}

body.modal-open {
  overflow: hidden;
}


/* Language switcher */
.lang-switch {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.75rem 0 0.35rem;
}
.lang-btn {
  min-width: 2.4rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 209, 157, 0.4);
  background: rgba(240, 226, 176, 0.08);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-btn:hover,
.lang-btn:focus-visible {
  background: rgba(240, 226, 176, 0.22);
  color: #fff;
  outline: none;
}
.lang-btn.is-active {
  background: rgba(240, 226, 176, 0.28);
  border-color: var(--gold);
  color: #fff;
}
.content-lang-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.25rem 0 0.85rem;
  line-height: 1.4;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}


/* Paid library CTA */
.buy-cta {
  margin: 1.35rem auto 0.5rem;
  max-width: 32rem;
  padding: 1.1rem 1.25rem 1.15rem;
  text-align: center;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(212, 184, 106, 0.45);
  background: linear-gradient(160deg, rgba(31, 90, 56, 0.95) 0%, rgba(15, 51, 32, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.buy-cta-lead {
  margin: 0 0 0.85rem;
  color: var(--cream, #f5f0e6);
  font-size: 0.92rem;
  line-height: 1.45;
}
.buy-cta-btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a227, #f0e2b0);
  color: #0f3320;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.buy-cta-btn:hover,
.buy-cta-btn:focus-visible {
  filter: brightness(1.06);
  outline: 2px solid var(--gold-bright, #f0e2b0);
  outline-offset: 2px;
}
.buy-cta-note {
  margin: 0.65rem 0 0;
  color: var(--muted, #b8c9bc);
  font-size: 0.75rem;
}
.footer-buy-link {
  color: var(--gold-bright, #f0e2b0);
  font-weight: 700;
  text-decoration: none;
}
.footer-buy-link:hover {
  text-decoration: underline;
}


/* PWA install tip */
.pwa-tip {
  max-width: 32rem;
  margin: 0.85rem auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius, 16px);
  border: 1px solid rgba(229, 209, 157, 0.35);
  background: rgba(7, 31, 18, 0.55);
  color: var(--muted, rgba(245, 245, 240, 0.72));
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}
.pwa-tip-text {
  margin: 0 0 0.65rem;
}
.pwa-tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.pwa-tip-dismiss,
.pwa-install-btn {
  appearance: none;
  border-radius: 999px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
}
.pwa-tip-dismiss {
  border: 1px solid rgba(229, 209, 157, 0.35);
  background: transparent;
  color: var(--gold, #e5d19d);
}
.pwa-tip-dismiss:hover,
.pwa-tip-dismiss:focus-visible {
  background: rgba(240, 226, 176, 0.12);
  color: #fff;
  outline: none;
}
.pwa-install-btn {
  border: 1px solid var(--gold-dim, #c4ad6e);
  background: linear-gradient(90deg, #c9a227, #f0e2b0);
  color: #0b2b1a;
}
.pwa-install-btn:hover,
.pwa-install-btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.pwa-install-btn[hidden] {
  display: none !important;
}


/* Sample badge */
.sample-badge {
  text-align: center;
  color: var(--gold-bright, #f0e2b0);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.35rem 0 1rem;
}
.sample-badge[hidden] { display: none !important; }

/* Unlock panel (inside buy-cta) */
.unlock-panel {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 184, 106, 0.35);
  text-align: center;
}
.unlock-title {
  margin: 0 0 0.35rem;
  color: var(--gold-bright, #f0e2b0);
  font-family: var(--serif, "Cormorant Garamond", serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.unlock-lead,
.unlock-unlocked-lead {
  margin: 0 0 0.75rem;
  color: var(--cream, #f5f0e6);
  font-size: 0.88rem;
  line-height: 1.45;
}
.unlock-actions { margin-bottom: 0.75rem; }
.unlock-buy { margin: 0.25rem 0; }
.unlock-label {
  display: block;
  margin: 0.5rem 0 0.35rem;
  color: var(--gold, #e5d19d);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.unlock-redeem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}
.unlock-input {
  min-width: 11rem;
  flex: 1 1 10rem;
  max-width: 16rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(229, 209, 157, 0.45);
  background: rgba(7, 31, 18, 0.55);
  color: var(--cream, #f5f0e6);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.unlock-input:focus {
  outline: 2px solid var(--gold-bright, #f0e2b0);
  outline-offset: 1px;
}
.unlock-redeem-btn {
  appearance: none;
  border: 1px solid var(--gold-dim, #c4ad6e);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(90deg, #c9a227, #f0e2b0);
  color: #0f3320;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--sans, system-ui, sans-serif);
}
.unlock-redeem-btn:hover,
.unlock-redeem-btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.unlock-redeem-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.unlock-msg {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.unlock-msg.is-ok { color: #b7e4c0; }
.unlock-msg.is-err { color: #f5c2c2; }
.unlock-badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 184, 106, 0.55);
  background: rgba(240, 226, 176, 0.16);
  color: var(--gold-bright, #f0e2b0);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.unlock-etsy-dl {
  display: inline-block;
  color: var(--gold-bright, #f0e2b0);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: underline;
}
.unlock-etsy-dl:hover { color: #fff; }
.bp-ref-paywall { margin: 1.25rem auto; }
html.bp-locked details.ref-entry[hidden],
details.ref-entry[hidden] {
  display: none !important;
}
