/* GUA Custom Overrides v4 */

/* Sticky footer */
body.taid-site {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}
.taid-main {
  flex: 1 1 auto !important;
}

/* ─── Nav — keep original style, just smaller ────── */
.taid-menu a {
  font-size: .65rem !important;
  color: rgba(44,36,23,.7) !important;
}
.taid-menu a:hover { color: #2c2417 !important; }
.taid-menu .mod-menu > li:not(.parent) > a::after { background: #2c4a7c !important; }
.taid-menu .mod-menu > li:not(.parent) > a:hover::after { background: rgba(44,74,124,.3) !important; }
.taid-menu .mod-menu > li.active:not(.parent) > a::after,
.taid-menu .mod-menu > li.current:not(.parent) > a::after { background: #2c4a7c !important; }
.taid-menu .mod-menu > li.parent > a::after { background: none !important; font-size: .8em !important; opacity: .5 !important; margin-left: 2px !important; }
.taid-menu .mod-menu > li.active > a,
.taid-menu .mod-menu > li.current > a { color: #2c4a7c !important; }

/* Tighten gap between nav items */
.taid-menu ul, .taid-menu .mod-menu, .taid-menu .nav {
  gap: .5rem !important;
}

/* Dropdown */
.taid-menu .mod-menu__sub a {
  font-size: .82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ─── Hero — keep original generous spacing for sun visibility ── */
.taid-hero {
  min-height: 75vh !important;
  background-position: center 20% !important;
  border-bottom: none !important;
}
.taid-hero-inner {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  text-align: center !important;
}
.taid-hero-title { margin-bottom: 1.25rem !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
.taid-hero-title img { max-height: 240px !important; }
.taid-hero-subtitle {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  color: #2c2417 !important;
  margin-bottom: .15rem !important;
  text-shadow: 0 1px 12px rgba(255,255,255,.7) !important;
  text-align: center !important;
}
.taid-hero-subtitle + p {
  font-size: .9rem !important;
  color: rgba(44,36,23,.45) !important;
  margin-bottom: 1.5rem !important;
}
.taid-hero-actions {
  justify-content: center !important;
  gap: .6rem !important;
}
.taid-hero-actions .taid-btn {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .85rem !important;
  padding: .6rem 1.4rem !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ─── Content gap below hero — original template spacing ─── */
.taid-main {
  padding-top: .5rem !important;
  padding-bottom: 4rem !important;
}

/* ─── Content panel — no box ─────────────────────── */
.taid-component-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1rem 0 !important;
}
.taid-component-panel:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* ─── Sidebar ────────────────────────────────────── */
.taid-sidebar .moduletable {
  max-height: none !important;
  overflow: visible !important;
  padding: 1.25rem !important;
}
.taid-sidebar .moduletable > div:not(.mod-menu),
.taid-sidebar .moduletable > ul:not(.mod-menu):not(.nav) {
  overflow-y: visible !important;
  flex: none !important;
}

/* Module titles */
.taid-module-title,
.taid-sidebar .moduletable > h3,
.taid-sidebar .moduletable > div:first-child:not([class]) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: rgba(44,36,23,.5) !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  border-bottom: 1px solid rgba(80,60,30,.1) !important;
  padding-bottom: .5rem !important;
  margin-bottom: .75rem !important;
  background: none !important;
}

/* Sidebar links */
.taid-sidebar .mod-articles-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 400 !important;
  font-size: .88rem !important;
}
.taid-sidebar .mod-articles-link,
.taid-sidebar .mod-list a {
  color: rgba(44,36,23,.6) !important;
  font-weight: 400 !important;
  font-size: .88rem !important;
}
.taid-sidebar .mod-articles-link:hover,
.taid-sidebar .mod-list a:hover {
  color: #2c4a7c !important;
}

/* Sidebar list items */
.taid-sidebar .mod-articles-items li {
  border-left-width: 2px !important;
  padding: .55rem .75rem !important;
}
.taid-sidebar .mod-articles-items li:hover {
  border-left-color: #2c4a7c !important;
  background: rgba(44,74,124,.02) !important;
}

/* ─── Images ─────────────────────────────────────── */
.com-content-article__body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 3px;
}

/* ─── Signal bar ─────────────────────────────────── */
.taid-signal-bar {
  background: linear-gradient(90deg, #2c4a7c, #5a7a4a) !important;
}

/* ─── Login button ───────────────────────────────── */
.taid-sidebar .btn-primary,
.taid-sidebar button[type="submit"] {
  background: #2c4a7c !important;
  border-color: #2c4a7c !important;
  text-transform: none !important;
}

/* ─── Inner page bar ─────────────────────────────── */
.gua-inner-bar {
  background: transparent;
  padding: .5rem 0;
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
}
.gua-inner-bar .taid-container {
  padding: 0 1.5rem;
}
.gua-inner-btn {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(44,36,23,.4) !important;
  background: #fff;
  border: 1px solid rgba(80,60,30,.08);
  border-radius: 6px;
  padding: .6rem 1.2rem;
  text-decoration: none !important;
  transition: all .2s;
  max-width: 1200px;
  margin: 0 auto;
}
.gua-inner-btn:hover {
  color: #2c4a7c !important;
  border-color: rgba(44,74,124,.2);
  background: rgba(44,74,124,.03);
}

/* ─── Featured book ──────────────────────────────── */
.gua-featured-book {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #faf7f2 0%, #f5f0e8 100%);
  border-radius: 16px;
  border: 1px solid rgba(80,60,30,.06);
}
.gua-featured-book-img {
  flex-shrink: 0;
}
.gua-featured-book-img img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(44,36,23,.18), 0 2px 8px rgba(44,36,23,.1);
}
.gua-featured-book-info {
  flex: 1;
}
.gua-featured-label {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8b6d3f;
  background: rgba(200,160,74,.12);
  border-radius: 20px;
  padding: .25rem .75rem;
  margin-bottom: .75rem;
}
.gua-featured-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2417;
  margin: 0 0 .35rem;
  line-height: 1.25;
}
.gua-featured-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-style: italic;
  color: rgba(44,36,23,.55);
  margin: 0 0 .25rem;
}
.gua-featured-author {
  font-size: .85rem;
  color: rgba(44,36,23,.45);
  margin: 0 0 .75rem;
}
.gua-featured-desc {
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(44,36,23,.65);
  margin: 0 0 1.25rem;
  max-width: 440px;
}
.gua-featured-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.gua-featured-btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: #fff !important;
  background: #2c4a7c;
  border: 1px solid #2c4a7c;
  border-radius: 6px;
  padding: .6rem 1.5rem;
  text-decoration: none !important;
  transition: all .2s;
}
.gua-featured-btn:hover {
  background: #3a5e96;
  border-color: #3a5e96;
  box-shadow: 0 3px 12px rgba(44,74,124,.25);
  color: #fff !important;
}
.gua-featured-btn--ghost {
  color: #2c4a7c !important;
  background: transparent;
  border-color: rgba(44,74,124,.25);
}
.gua-featured-btn--ghost:hover {
  color: #fff !important;
  background: #2c4a7c;
  border-color: #2c4a7c;
}
@media (max-width: 600px) {
  .gua-featured-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .gua-featured-book-info { text-align: center; }
  .gua-featured-book-img img { width: 160px; }
  .gua-featured-title { font-size: 1.25rem; }
  .gua-featured-desc { max-width: none; }
  .gua-featured-actions { justify-content: center; flex-direction: column; align-items: center; }
  .gua-featured-btn { width: 80%; max-width: 280px; text-align: center; }
}

/* ─── Book cards ─────────────────────────────────── */
.gua-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 960px;
  align-items: stretch;
}
.gua-book-card {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 12px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.gua-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44,36,23,.1), 0 2px 6px rgba(44,36,23,.04);
}
.gua-book-card img {
  width: 180px;
  height: 260px !important;
  object-fit: contain;
  border-radius: 3px;
  margin-bottom: 1rem;
  box-shadow: 0 3px 12px rgba(44,36,23,.15), 0 1px 3px rgba(44,36,23,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gua-book-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(44,36,23,.18), 0 2px 6px rgba(44,36,23,.1);
}
.gua-book-card .gua-book-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #2c2417;
  margin-bottom: auto;
  padding-bottom: .75rem;
  line-height: 1.35;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gua-book-card .gua-book-btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(44,36,23,.45) !important;
  background: transparent;
  border: 1px solid rgba(80,60,30,.12);
  border-radius: 20px;
  padding: .4rem 1.1rem;
  text-decoration: none !important;
  transition: all .25s ease;
  margin-top: auto;
}
.gua-book-card:hover .gua-book-btn {
  color: #fff !important;
  background: #2c4a7c;
  border-color: #2c4a7c;
  box-shadow: 0 2px 8px rgba(44,74,124,.25);
}
.gua-book-card .gua-book-btn:hover {
  background: #3a5e96;
  border-color: #3a5e96;
  color: #fff !important;
}
@media (max-width: 768px) {
  .gua-book-grid,
  .gua-book-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    max-width: none !important;
  }
  .gua-book-card { padding: 1rem .75rem; }
  .gua-book-card img { width: 120px; height: 175px; }
}
@media (max-width: 400px) {
  .gua-book-card img { width: 100px; height: 146px; }
}

/* ─── Author banner ──────────────────────────────── */
.gua-author-banner {
  background: transparent;
  border: none !important;
  border-radius: 0;
  padding: 1.5rem 2rem;
  display: block;
  overflow: hidden;
}
.gua-author-banner-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(44,36,23,.12);
  border: 2px solid #fff;
}
.gua-author-banner-info {
  flex: 1;
  min-width: 0;
}
.gua-author-banner-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-weight: 600;
  color: #2c2417;
  margin-bottom: .3rem;
}
.gua-author-banner-bio {
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(44,36,23,.5);
  margin-bottom: .6rem;
}
.gua-author-banner-btn {
  display: inline-block;
  clear: both;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: #2c4a7c !important;
  background: transparent;
  border: 1px solid rgba(44,74,124,.2);
  border-radius: 6px;
  padding: .45rem 1rem;
  text-decoration: none !important;
  transition: all .2s;
  margin-top: .5rem;
}
.gua-author-banner-btn:hover {
  color: #fff !important;
  background: #2c4a7c;
  border-color: #2c4a7c;
}
/* ─── Homepage book promo ────────────────────────── */
.gua-home-promo {
  padding: 0;
  margin-top: -.5rem;
  margin-bottom: .5rem;
}
.gua-bottom-promo {
  padding: 2rem 0;
  margin: 0;
  background: #f5f0e8;
}
.gua-promo-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
  background: linear-gradient(135deg, #faf7f2 0%, #f5f0e8 100%) !important;
  border: 1px solid rgba(80,60,30,.06) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  align-items: stretch !important;
}
.gua-promo-row > #mod-custom149,
.gua-promo-row > #mod-custom156 { flex: 1 1 60%; }
.gua-promo-row > #mod-custom150,
.gua-promo-row > #mod-custom157 { flex: 0 0 35%; border-left: 1px solid rgba(80,60,30,.06); display: flex; align-items: stretch; padding: 2rem 2.5rem; }
.gua-promo-row > * { margin: 0 !important; }
@media (max-width: 768px) {
  .gua-promo-row { flex-direction: column !important; gap: 0 !important; }
  .gua-promo-row > #mod-custom149,
  .gua-promo-row > #mod-custom156 { flex: none !important; }
  .gua-promo-row > #mod-custom150,
  .gua-promo-row > #mod-custom157 { flex: none !important; border-left: none !important; border-top: 1px solid rgba(80,60,30,.06); }
  .gua-author-banner { padding: 1rem 2.25rem 1rem !important; }
  .gua-author-banner-photo { width: 64px; height: 64px; }
  .gua-author-banner-name { font-size: .9rem; }
  .gua-author-banner-bio { font-size: .75rem; }
}
.gua-home-promo .gua-featured-book,
.gua-bottom-promo .gua-featured-book {
  flex: 1;
  margin-bottom: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.gua-author-card {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gua-author-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  margin-bottom: .75rem;
  box-shadow: 0 2px 10px rgba(44,36,23,.1);
}
.gua-author-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-weight: 600;
  color: #2c2417;
  margin-bottom: .5rem;
}
.gua-author-bio {
  font-size: .75rem;
  line-height: 1.5;
  color: rgba(44,36,23,.5);
  margin-bottom: .75rem;
}
.gua-author-link {
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2c4a7c !important;
  text-decoration: none !important;
  margin-top: auto;
}
@media (max-width: 768px) {
  .gua-promo-row { flex-direction: column; gap: .75rem; }
  .gua-author-card {
    flex: none;
    flex-direction: column;
    gap: 0;
    text-align: center;
    padding: 1rem 1.25rem;
    align-items: center;
    background: rgba(44,36,23,.02);
    border: none;
  }
  .gua-author-photo { width: 56px; height: 56px; margin-bottom: .4rem; flex-shrink: 0; }
  .gua-author-name { font-size: .82rem; margin-bottom: .25rem; }
  .gua-author-bio { font-size: .7rem; margin-bottom: .4rem; line-height: 1.4; color: rgba(44,36,23,.45); }
  .gua-author-link { font-size: .65rem; margin-top: .15rem; }
  .gua-featured-book { flex-direction: column; text-align: center; padding: 1.25rem; gap: 1rem; border-radius: 0 !important; align-items: center !important; }
  .gua-featured-book-info { text-align: center !important; }
  .gua-featured-book-img img { width: 160px; }
  .gua-featured-title { font-size: 1.1rem !important; }
  .gua-featured-desc { max-width: none; }
  .gua-featured-actions { justify-content: center !important; flex-direction: column !important; align-items: center !important; }
  .gua-featured-btn { width: 80% !important; max-width: 280px !important; text-align: center !important; }
}

/* ─── Hide bookstore bar on bookstore page ───────── */
body.itemid-157 .gua-inner-bar { display: none; }

/* ─── Back to top ────────────────────────────────── */
.taid-back-top {
  background: #fffdf9 !important;
  border: 1.25px solid rgba(80,60,30,.12) !important;
  border-radius: 3px !important;
  color: rgba(44,36,23,.48) !important;
}
.taid-back-top:hover {
  color: #2c4a7c !important;
  border-color: rgba(44,74,124,.25) !important;
}

/* ─── Store cards (big) ──────────────────────────── */
.gua-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.gua-store-card {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.gua-store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44,36,23,.1);
}
.gua-store-card > a {
  display: block;
  background: linear-gradient(135deg, #f5f0e8 0%, #ede6d8 100%);
  padding: 2rem;
  text-align: center;
}
.gua-store-card img {
  height: 300px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(44,36,23,.15);
  transition: transform .25s;
}
.gua-store-card:hover img { transform: scale(1.03); }
.gua-store-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: #c0392b;
  padding: .35rem .9rem;
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(192,57,43,.3);
}
.gua-store-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gua-store-info h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2417;
  margin-bottom: .35rem;
}
.gua-store-info p {
  font-size: .82rem;
  color: rgba(44,36,23,.5);
  line-height: 1.4;
  margin-bottom: auto;
  padding-bottom: .75rem;
}
.gua-store-btns {
  display: flex;
  gap: .5rem;
}
.gua-store-btn {
  flex: 1;
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .5rem .75rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all .2s;
  color: #fff !important;
  background: #2c4a7c;
  border: 1px solid #2c4a7c;
}
.gua-store-btn:hover { background: #3a5e96; }
.gua-store-btn--ghost {
  color: #2c4a7c !important;
  background: transparent;
  border-color: rgba(44,74,124,.2);
}
.gua-store-btn--ghost:hover {
  color: #fff !important;
  background: #2c4a7c;
  border-color: #2c4a7c;
}
@media (max-width: 600px) {
  .gua-store-grid { grid-template-columns: 1fr; }
  .gua-store-card img { height: 250px !important; }
}

/* ─── Helix-style positions (Mark Grenon page) ──── */
.gua-markheader {
  margin-bottom: 1.5rem;
  text-align: center;
}
.gua-markheader img,
.gua-toprow-col img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: .75rem 0;
}
.gua-markheader iframe {
  border-radius: 6px;
  margin-bottom: 1rem;
}
.gua-toprow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.gua-toprow-col {
  min-width: 0;
}
/* Module chrome for Mark Grenon page */
.gua-markheader .moduletable,
.gua-toprow-col .moduletable {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(44,36,23,.03);
  overflow: hidden;
}
.gua-markheader .moduletable > h3,
.gua-toprow-col .moduletable > h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2c4a7c, #3a5e96);
  padding: .6rem 1rem;
  margin: -1.5rem -1.5rem 1rem;
  letter-spacing: .02em;
}
.gua-markheader .moduletable > h3 {
  font-size: 1.15rem;
  text-align: center;
  padding: .75rem 1rem;
}
.gua-markheader .gua-featured-book {
  padding: 2rem 2.5rem;
}
.gua-markheader .gua-featured-book-img img {
  width: 250px !important;
  height: auto !important;
}
.gua-markheader .gua-featured-title {
  font-size: 1.4rem !important;
}
.gua-markheader .gua-featured-label {
  margin-top: 0;
  margin-bottom: .4rem;
}
.gua-markheader .gua-store-expand {
  font-size: .85rem !important;
}
.gua-markheader .gua-featured-subtitle {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.gua-markheader .gua-featured-btn {
  font-size: .82rem;
  padding: .6rem 1.5rem;
}
/* Module title headers (Helix chrome) */
.headermod {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2c4a7c, #3a5e96);
  padding: .65rem 1.25rem;
  margin: -1.5rem -1.5rem 1rem;
}
.topheadermod {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2c4a7c, #3a5e96);
  text-align: center;
  padding: .75rem 1.25rem;
  margin: -1.5rem -1.5rem 1rem;
}
/* Video cards in markheader */
.gua-vid-card {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 8px;
  overflow: hidden;
}
.gua-vid-label {
  font-size: .72rem;
  font-weight: 600;
  color: #2c2417;
  padding: .5rem .6rem .35rem;
  line-height: 1.3;
  height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gua-vid-card iframe {
  display: block;
}

.gua-toprow-col .mod-custom iframe {
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 6px;
  margin-bottom: .5rem;
}
.gua-toprow-col iframe {
  width: 100%;
  border-radius: 4px;
  margin-bottom: .5rem;
}
.gua-toprow-col p {
  margin-bottom: .3rem;
}
.gua-toprow-col img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}
.gua-toprow-col ul {
  padding-left: 1.2rem;
  font-size: .82rem;
  line-height: 1.6;
}
.gua-toprow-col li {
  margin-bottom: .4rem;
}
.gua-toprow-col a:not(.gua-mark-book-btn) {
  word-break: break-all;
  color: #2c4a7c !important;
}
.gua-toprow-col a:not(.gua-mark-book-btn):hover {
  color: #1e3660 !important;
  text-decoration: underline !important;
}
.gua-toprow-col .mod-custom p,
.gua-toprow-col .mod-custom li {
  font-size: .85rem;
  line-height: 1.55;
}
/* ─── Mark books grid (module 127) ──────────── */
.gua-mark-books {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.gua-mark-book-item {
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 10px;
  background: rgba(250,247,242,.5);
  overflow: hidden;
  transition: box-shadow .2s;
}
.gua-mark-book-item:hover { box-shadow: 0 4px 16px rgba(44,36,23,.08); }
.gua-mark-book-item .gua-mark-book-img-wrap {
  position: relative;
  cursor: zoom-in;
}
.gua-mark-book-item .gua-mark-book-img-wrap .gua-lb-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
}
.gua-mark-book-item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 !important;
  border-radius: 0;
}
.gua-mark-book-item img:hover { opacity: .92; }
.gua-mark-book-item .gua-store-expand {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: .62rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  padding: .35rem .6rem !important;
  margin: 0 !important;
  border: 1px solid rgba(44,74,124,.2) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #2c4a7c !important;
  cursor: pointer !important;
  transition: background .2s !important;
}
.gua-mark-book-item .gua-store-expand:hover {
  background: rgba(44,74,124,.06) !important;
  text-decoration: none !important;
}
.gua-mark-book-info {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .6rem .75rem .75rem;
}
.gua-mark-book-info strong { font-size: .85rem; color: #2c2417; }
.gua-mark-book-btns {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .2rem;
}
.gua-mark-book-btn {
  display: block;
  text-align: center;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff !important;
  background: #2c4a7c;
  border-radius: 4px;
  padding: .35rem .6rem;
  text-decoration: none !important;
  transition: background .2s;
}
.gua-mark-book-btn:hover { background: #1e3660; color: #fff !important; }
.gua-mark-book-btn--ghost {
  background: transparent;
  color: #2c4a7c !important;
  border: 1px solid rgba(44,74,124,.2);
}
.gua-mark-book-btn--ghost:hover { background: rgba(44,74,124,.06); color: #2c4a7c !important; }

/* ─── Category list table (Knowing God, Biblical Evidence, etc.) ────── */
.com-content-category__table.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.com-content-category__table.table thead th {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  color: rgba(44,36,23,.4) !important;
  padding: .4rem .75rem !important;
  border-bottom: 1px solid rgba(80,60,30,.1) !important;
}
.com-content-category__table.table thead th a {
  color: rgba(44,36,23,.4) !important;
}
.com-content-category__table.table tbody th {
  padding: .55rem .75rem !important;
  border-bottom: 1px solid rgba(80,60,30,.05) !important;
  font-weight: 400 !important;
}
.com-content-category__table.table tbody tr:last-child th {
  border-bottom: none !important;
}
.com-content-category__table.table .list-title a {
  color: #2c4a7c !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transition: color .15s !important;
}
.com-content-category__table.table .list-title a:hover {
  color: #1e3660 !important;
}
.com-content-category__table.table tbody tr {
  transition: background .15s !important;
}
.com-content-category__table.table tbody tr:hover {
  background: rgba(44,74,124,.03) !important;
}
/* Date column — subtle, right-aligned */
.com-content-category__table.table thead th#categorylist_header_date a,
.com-content-category__table.table .list-date {
  font-size: .75rem !important;
  color: rgba(44,36,23,.35) !important;
  text-align: right !important;
  white-space: nowrap !important;
  width: 60px !important;
}
/* G2Voice search bar */
#g2v-search {
  display: block !important;
  width: calc(100% - 4px) !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}
#g2v-search:focus, #g2v-search:active {
  border-color: rgba(44,74,124,.3) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hide the "Display #" dropdown */
.com-content-category__pagination { display: none !important; }

/* Bookstore cards mobile */
@media (max-width: 768px) {
  .gua-store-info h3 { margin-top: .5rem !important; margin-bottom: .25rem !important; }
}

/* ─── Biblical Evidence full-width section ────── */
.gua-toprow-full {
  margin-top: 1.5rem;
}
.gua-toprow-full .moduletable {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(44,36,23,.03);
}
.gua-toprow-full .moduletable > h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2c4a7c, #3a5e96);
  text-align: center;
  padding: .75rem 1.25rem;
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: 10px 10px 0 0;
}
.gua-evidence-top {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(80,60,30,.06);
}
.gua-evidence-top p { margin-bottom: .5rem; font-size: .88rem; }
.gua-evidence-top a { color: #2c4a7c !important; }
.gua-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gua-evidence-card {
  background: linear-gradient(135deg, #faf7f2, #f5f0e8);
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.gua-evidence-card h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-weight: 700;
  color: #2c4a7c;
  margin: 0 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid rgba(44,74,124,.15);
}
.gua-evidence-card ul {
  padding-left: 1rem;
  margin: 0;
  list-style: disc;
}
.gua-evidence-card li {
  font-size: .78rem;
  line-height: 1.5;
  margin-bottom: .3rem;
}
.gua-evidence-card a { color: #2c4a7c !important; }
.gua-evidence-card a:hover { text-decoration: underline !important; }
.gua-evidence-card p { font-size: .82rem; margin-bottom: .3rem; }
@media (max-width: 768px) {
  .gua-evidence-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .gua-toprow { grid-template-columns: 1fr; }
}

/* ─── G2Voice archive cards ──────────────────────── */
.gua-g2v-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gua-g2v-ep {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.gua-g2v-ep:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,36,23,.08);
}
.gua-g2v-ep-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.gua-g2v-ep-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f5f0e8;
}
.gua-g2v-ep-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}
.gua-g2v-ep:hover .gua-g2v-ep-img img { opacity: 1; }
.gua-g2v-ep-badge {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(44,74,124,.85);
  padding: .2rem .6rem;
  border-radius: 4px;
}
.gua-g2v-ep-date {
  display: block;
  font-size: .68rem;
  color: rgba(44,36,23,.4);
  padding: .25rem .75rem 0;
  font-weight: 500;
  letter-spacing: .02em;
}
.gua-g2v-ep-topic {
  font-size: .72rem;
  line-height: 1.35;
  color: rgba(44,36,23,.6);
  padding: .6rem .75rem .4rem;
  display: -webkit-box;
  min-height: 3.5em;
}
.gua-g2v-ep:hover .gua-g2v-ep-topic { color: #2c2417; }
.gua-g2v-ep-actions {
  display: flex;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid rgba(80,60,30,.05);
}
.gua-g2v-ep-btn {
  flex: 1;
  text-align: center;
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .5rem;
  text-decoration: none !important;
  transition: all .2s;
}
.gua-g2v-ep-btn--dl {
  color: rgba(44,36,23,.55) !important;
  border-right: 1px solid rgba(80,60,30,.05);
}
.gua-g2v-ep-btn--dl:hover { color: #fff !important; background: #2c4a7c; }
.gua-g2v-ep-btn--play {
  color: #2c4a7c !important;
  font-weight: 600;
}
.gua-g2v-ep-btn--play:hover { color: #fff !important; background: #2c4a7c; }
@media (max-width: 480px) {
  .gua-g2v-cards { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .gua-g2v-ep-badge { font-size: .6rem; }
  .gua-g2v-ep-topic { font-size: .65rem; }
}

/* ─── G2Voice MP3 player buttons ─────────────────── */
.com-content-article__body > div[style*="margin-top:0"] > div[style*="display:flex"] {
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end !important;
    padding-bottom: 8px !important;
}
.com-content-article__body > div[style*="margin-top:0"] > div[style*="display:flex"] > span {
  margin-right: auto !important;
}

/* ─── G2Voice MP3 player ─────────────────────────── */
.com-content-article__body audio {
  border-radius: 6px;
}
.com-content-article__body audio::-webkit-media-controls-panel {
  background: #f5f0e8;
}


/* ─── Content-top welcome card + title fix ───────── */
.taid-component-panel h1,
.taid-component-panel .page-header h1,
.view-article .taid-component-panel .page-header h1 { margin-top: 0 !important; }
.gua-content-top {
  background: #fff;
  border: 1px solid rgba(80,60,30,.06);
  border-radius: 10px;
  padding: 1.25rem 1.25rem .25rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.gua-content-top h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2c2417;
  margin-bottom: .75rem;
}

/* ─── Bottom promo — matches homepage top promo ──── */

/* ─── Responsive iframes in article body + modules ── */
.com-content-article__body iframe,
.gua-content-top iframe,
.mod-custom iframe {
  width: 100% !important;
  aspect-ratio: 16/9;
  height: auto !important;
  border-radius: 8px;
}

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f5f0e8; }
::-webkit-scrollbar-thumb { background: rgba(44,36,23,.25); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(44,36,23,.4); }
html { scrollbar-width: auto; scrollbar-color: rgba(44,36,23,.25) #f5f0e8; }

/* ─── Footer ─────────────────────────────────────── */
.taid-footer {
  background-color: #f5f0e8 !important;
  background-image: none !important;
  border-top: none !important;
  background-image: linear-gradient(90deg, transparent 5%, rgba(44,36,23,.1) 35%, rgba(44,36,23,.1) 65%, transparent 95%) !important;
  background-size: 100% 1px !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  opacity: 1 !important;
  transform: none !important;
}
.taid-footer a { color: #2c4a7c !important; }
.taid-footer-copy { text-transform: uppercase !important; letter-spacing: .2em !important; font-size: .7rem !important; font-weight: 700 !important; font-family: var(--font-display) !important; color: var(--muted) !important; }

/* ─── Sidebar module tints (JSN Epic tribute) ───── */
/* Contributors (left sidebar) — green */
.taid-sidebar--left .moduletable.green-sidemenu {
  border-image: linear-gradient(90deg, rgba(90,122,74,.4), rgba(90,122,74,.05)) 1 !important;
  border-top-width: 2px !important;
  border-top-style: solid !important;
  border-radius: 0 !important;
}
.taid-sidebar--left .moduletable.green-sidemenu li:hover {
  border-left-color: rgba(90,122,74,.5) !important;
}
/* Resources (right sidebar) — gold */
.taid-sidebar:not(.taid-sidebar--left) .moduletable.green-sidemenu {
  border-image: linear-gradient(90deg, rgba(170,140,40,.05), rgba(170,140,40,.35)) 1 !important;
  border-top-width: 2px !important;
  border-top-style: solid !important;
  border-radius: 0 !important;
}
.taid-sidebar:not(.taid-sidebar--left) .moduletable.green-sidemenu .mod-menu .nav-item > a {
  border-left: none !important;
}
.taid-sidebar:not(.taid-sidebar--left) .moduletable.green-sidemenu .mod-list li {
  border-right: 2px solid transparent;
  transition: border-right-color .15s ease;
}
.taid-sidebar:not(.taid-sidebar--left) .moduletable.green-sidemenu .mod-list li:hover {
  border-right-color: rgba(170,140,40,.45);
}
/* G2Voice (right sidebar, no class) — blue */
.taid-sidebar:not(.taid-sidebar--left) .moduletable:not(.green-sidemenu) {
  border-image: linear-gradient(90deg, rgba(44,74,124,.05), rgba(44,74,124,.3)) 1 !important;
  border-top-width: 2px !important;
  border-top-style: solid !important;
  border-radius: 0 !important;
}

/* ─── Reusable module tint classes ──────────────── */
/* Use as Module Class Suffix in Joomla: left-green, right-blue, etc. */
.moduletable.left-green { border-image: linear-gradient(90deg, rgba(90,122,74,.4), rgba(90,122,74,.05)) 1 !important; border-top: 2px solid !important; border-radius: 0 !important; }
.moduletable.left-blue  { border-image: linear-gradient(90deg, rgba(44,74,124,.3), rgba(44,74,124,.05)) 1 !important; border-top: 2px solid !important; border-radius: 0 !important; }
.moduletable.left-gold  { border-image: linear-gradient(90deg, rgba(170,140,40,.35), rgba(170,140,40,.05)) 1 !important; border-top: 2px solid !important; border-radius: 0 !important; }
.moduletable.right-green { border-image: linear-gradient(90deg, rgba(90,122,74,.05), rgba(90,122,74,.4)) 1 !important; border-top: 2px solid !important; border-radius: 0 !important; }
.moduletable.right-blue  { border-image: linear-gradient(90deg, rgba(44,74,124,.05), rgba(44,74,124,.3)) 1 !important; border-top: 2px solid !important; border-radius: 0 !important; }
.moduletable.right-gold  { border-image: linear-gradient(90deg, rgba(170,140,40,.05), rgba(170,140,40,.35)) 1 !important; border-top: 2px solid !important; border-radius: 0 !important; }
/* Hover effects for reusable classes */
.moduletable.left-green li:hover { border-left-color: rgba(90,122,74,.5) !important; }
.moduletable.left-blue li:hover  { border-left-color: rgba(44,74,124,.4) !important; }
.moduletable.left-gold li:hover  { border-left-color: rgba(170,140,40,.45) !important; }
.moduletable.right-green li:hover { border-right-color: rgba(90,122,74,.5) !important; }
.moduletable.right-blue li:hover  { border-right-color: rgba(44,74,124,.4) !important; }
.moduletable.right-gold li:hover  { border-right-color: rgba(170,140,40,.45) !important; }

/* ─── Mobile ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .taid-content-wrap,
  .taid-content-wrap--sidebar,
  .taid-content-wrap--sidebar-left,
  .taid-content-wrap--sidebar-left.taid-content-wrap--sidebar,
  [class*="taid-content-wrap--sidebar"] {
    display: flex !important;
    flex-direction: column !important;
  }
  .taid-content-primary { order: -1 !important; width: 100% !important; }
  .taid-sidebar { margin-top: 2rem; margin-bottom: 2rem; order: 2 !important; width: 100% !important; position: static !important; }
  .taid-sidebar--left { order: 2 !important; width: 100% !important; }
  body.itemid-101 .taid-sidebar--left { display: none !important; }
  /* G2Voice episode buttons — stack and center on mobile */
  .com-content-article__body > div[style*="margin-top:0"] > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  .com-content-article__body > div[style*="margin-top:0"] > div[style*="display:flex"] > span {
    text-align: center;
    margin-bottom: .25rem;
  }
  .com-content-article__body > div[style*="margin-top:0"] > div[style*="display:flex"] > a {
    text-align: center !important;
  }
}
@media (max-width: 768px) {
  .taid-footer-bottom { flex-direction: column !important; align-items: center !important; text-align: center !important; padding-bottom: 1.5rem !important; }
  /* Mark Grenon page video grid — stack on mobile */
  .gua-markheader div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .gua-vid-card iframe { min-height: 200px; }
  .taid-hero { min-height: auto !important; }
  .taid-hero-inner { padding-top: 1rem !important; padding-bottom: 1.25rem !important; text-align: center !important; }
  .taid-hero-title { text-align: center !important; margin-bottom: .25rem !important; }
  .taid-hero-title img,
  .taid-hero-title a img { max-height: 100px !important; margin: 0 auto !important; display: block !important; }
  .taid-hero-subtitle { font-size: .95rem !important; text-align: center !important; margin-bottom: .1rem !important; }
  .taid-hero-subtitle + p { font-size: .72rem !important; margin-bottom: 1.25rem !important; line-height: 1.4 !important; }
  .taid-hero-actions { display: flex !important; flex-direction: column !important; gap: .35rem !important; }
  .taid-hero-actions .taid-btn { width: 100% !important; justify-content: center !important; font-size: .78rem !important; padding: .55rem 1rem !important; }
  body.itemid-101 .taid-logo-text { display: none !important; }
  .taid-menu a { font-size: .9rem !important; }
  .taid-menu ul, .taid-menu .mod-menu, .taid-menu .nav { gap: .25rem !important; }

  /* Mobile submenu toggle */
  .taid-menu .mod-menu > li.parent { flex-wrap: wrap !important; }
  .taid-menu .mod-menu > li.parent > .mod-menu__toggle-sub {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: auto !important;
    background: none !important;
    border: 1px solid rgba(44,74,124,.15) !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    color: rgba(44,36,23,.5) !important;
    cursor: pointer !important;
  }
  .taid-menu .mod-menu > li.parent > .mod-menu__sub {
    display: none !important;
    width: 100% !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 .5rem .75rem !important;
    flex-direction: column !important;
  }
  .taid-menu .mod-menu > li.parent > .mod-menu__sub[aria-hidden="false"] {
    display: flex !important;
  }
  .taid-menu .mod-menu__sub a {
    font-size: .82rem !important;
    padding: .4rem 0 !important;
    border-bottom: 1px solid rgba(80,60,30,.05) !important;
  }

  /* Welcome header on mobile homepage */
  .gua-mobile-welcome { display: block !important; }

  /* Mobile promo polish */
  .gua-home-promo { padding: 0; margin-bottom: .5rem; }
  .gua-featured-book--home { border-radius: 12px; }
  .gua-featured-book--home .gua-featured-book-img { text-align: center; }
  .gua-featured-book--home .gua-featured-book-img img { width: 220px; border-radius: 6px; }
  .gua-featured-book--home .gua-featured-label { font-size: .58rem; padding: .2rem .6rem; margin-bottom: .5rem; display: block; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; }
  .gua-featured-book--home .gua-featured-title { font-size: 1.15rem !important; margin-bottom: .2rem; }
  .gua-featured-book--home .gua-featured-subtitle { font-size: .82rem; }
  .gua-featured-book--home .gua-featured-author { font-size: .78rem; margin-bottom: .75rem; }
  .gua-featured-book--home .gua-featured-actions { gap: .5rem; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .gua-featured-book--home .gua-featured-btn { font-size: .75rem; padding: .65rem 1.1rem; text-align: center; border-radius: 6px; }

  /* Larger zoom badge on mobile */
  .gua-lb-badge { font-size: .75rem !important; padding: .25rem .6rem .25rem .45rem !important; }
  .gua-lb-badge svg { width: 13px !important; height: 13px !important; }
  .gua-featured-book-img::after { font-size: .75rem !important; padding: .25rem .6rem !important; }

  /* Mobile sidebar tints — top + bottom via box-shadow */
  .taid-sidebar--left .moduletable.green-sidemenu {
    box-shadow: inset 0 2px 0 rgba(90,122,74,.3), inset 0 -2px 0 rgba(90,122,74,.3) !important;
  }
  .taid-sidebar:not(.taid-sidebar--left) .moduletable.green-sidemenu {
    box-shadow: inset 0 2px 0 rgba(170,140,40,.3), inset 0 -2px 0 rgba(170,140,40,.3) !important;
  }
  .taid-sidebar:not(.taid-sidebar--left) .moduletable:not(.green-sidemenu) {
    box-shadow: inset 0 2px 0 rgba(44,74,124,.25), inset 0 -2px 0 rgba(44,74,124,.25) !important;
  }
}

/* Responsive text helpers */
.gua-desktop-only { display: inline-flex; }
.gua-mobile-only { display: none; }

/* Modal overlay description styling */
#gua-text-lb-body ul {
  padding-left: 1.5rem !important;
  margin: .5rem 0 .75rem !important;
}
#gua-text-lb-body li {
  margin-bottom: .4rem !important;
}
#gua-text-lb-body > div:not([style*="text-align"]):not([style*="display:flex"]) {
  padding: 0 50px !important;
}

/* Bookstore card expand buttons — full-width subtle pill */
.gua-store-card .gua-store-expand {
  display: block !important;
  width: 100% !important;
  margin: 0 0 .5rem 0 !important;
  font-size: .7rem !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  padding: .45rem .75rem !important;
  border: 1px solid rgba(44,74,124,.12) !important;
  border-radius: 6px !important;
  background: rgba(44,74,124,.04) !important;
  color: rgba(44,74,124,.7) !important;
  text-align: center !important;
  transition: all .15s !important;
  cursor: pointer !important;
}
.gua-store-card .gua-store-expand:hover {
  background: rgba(44,74,124,.09) !important;
  border-color: rgba(44,74,124,.25) !important;
  color: rgba(44,74,124,.9) !important;
  text-decoration: none !important;
}

/* Never show inline description — modal handles it */
.gua-store-desc, .gua-store-desc.is-open {
  display: none !important;
}

/* Modal overlay buttons — stretch to fill */
#gua-text-lb-body .gua-store-btns,
#gua-text-lb-body .gua-featured-actions {
  width: 100% !important;
  justify-content: center !important;
}

/* Modal description padding on mobile */
@media (max-width: 768px) {
  #gua-text-lb-body > div:not([style*="text-align"]):not([style*="display:flex"]) {
    padding: 0 8px !important;
  }
}

/* Modal overlay buttons full width on mobile */
@media (max-width: 768px) {
  #gua-text-lb-body .gua-featured-actions,
  #gua-text-lb-body .gua-store-btns {
    flex-direction: column !important;
    width: 100% !important;
  }
  #gua-text-lb-body .gua-featured-btn,
  #gua-text-lb-body .gua-store-btn {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  /* Show/hide responsive text */
  .gua-desktop-only { display: none !important; }
  .gua-mobile-only { display: inline !important; }
  /* More separation between bookstore cards on mobile */
  .gua-store-card { margin-bottom: .5rem !important; padding-bottom: .75rem !important; }
  .gua-store-grid { gap: 1.25rem !important; }

  /* Sidebar inline buttons — full width on mobile */
  .taid-sidebar .mod-custom a[style*="inline-block"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: .55rem .75rem !important;
    box-sizing: border-box !important;
    margin-bottom: .25rem !important;
  }
}

/* G2Voice episode audio player buttons — inline next to each other */
.com-content-article__body > div[style*="margin-top:0"] > div[style*="display:flex"] > a[style*="border:1px solid rgba(44,74,124"] {
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* G2Voice episode button hover (replaces inline onmouseover/onmouseout) */
.com-content-article a[style*="border:1px solid rgba(44,74,124"] {
  transition: background .15s, color .15s;
}
.taid-component-panel .com-content-article a[style*="border:1px solid rgba(44,74,124"]:hover {
  background: #2c4a7c !important;
  color: #fff !important;
  border-color: #2c4a7c !important;
}


/* GiveSendGo widget — clip bottom promo and hide scrollbar */
.yellow-sidemenu {
    overflow: hidden !important;
}
#gsg-widget {
    overflow: hidden !important;
}
#gsg-widget gsg-widget,
#gsg-widget object {
    display: block !important;
    border: none !important;
}

/* ─── Bishop promo section ───────────────────────── */
.gua-promo-bishop {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 8px !important;
    height: 100% !important;
}
.gua-promo-bishop-btns {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}
@media (max-width: 768px) {
    .gua-promo-bishop-btns { margin-top: .85rem; }
}
@media (max-width: 600px) {
    .gua-promo-bishop-btns { flex-direction: column !important; gap: .4rem !important; }
}
/* Hide bishop on tablet — too cramped. Show on phone (stacked) and desktop */
@media (min-width: 601px) and (max-width: 1024px) {
    #mod-custom150, #mod-custom157 { display: none !important; }
    .gua-promo-row > #mod-custom149,
    .gua-promo-row > #mod-custom156 { flex: 1 1 100% !important; }
}
/* Phone landscape — bishop hidden when height is phone-sized */
@media (max-height: 500px) and (orientation: landscape) {
    #mod-custom150, #mod-custom157 { display: none !important; }
    .gua-promo-row > #mod-custom149,
    .gua-promo-row > #mod-custom156 { flex: 1 1 100% !important; }
}
#mod-custom150 .gua-promo-bishop,
#mod-custom157 .gua-promo-bishop {
    height: 100% !important;
}
.gua-author-link {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: .78rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: .03em !important;
    padding: .6rem 1.5rem !important;
    border-radius: 6px !important;
    border: 1px solid rgba(44,74,124,.2) !important;
    color: #2c4a7c !important;
    text-decoration: none !important;
    white-space: nowrap;
    text-align: center;
    transition: all .2s;
    margin-top: 0 !important;
}
.gua-author-link:hover {
    background: rgba(44,74,124,.06) !important;
    border-color: rgba(44,74,124,.35) !important;
}

/* ─── Knowing God / category list mobile fix ─────── */
@media (max-width: 768px) {
    .com-content-category__table .list-date-DISABLED {
        display: none !important;
    }
    .com-content-category__table tbody tr {
        padding: .6rem .75rem !important;
    }
}

/* ─── Category list mobile — date inline, tighter rows ── */
@media (max-width: 768px) {
    .com-content-category__table tbody tr {
        display: flex !important;
        align-items: center !important;
        gap: .5rem !important;
        padding: .4rem .75rem !important;
        margin-bottom: .25rem !important;
    }
    .com-content-category__table .list-title {
        flex: 1 !important;
        padding: 0 !important;
        border: none !important;
    }
    .com-content-category__table .list-date {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        font-size: .65rem !important;
        color: rgba(44,36,23,.3) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .com-content-category__table .list-date::before {
        content: none !important;
    }
}

/* Category list h1 — match article page size */
.view-category .taid-component-panel h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    margin-bottom: 1rem !important;
}
