/* GUA Custom Overrides v4 */

/* ─── 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.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: 2rem !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-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: center; }
.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 {
  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;
}
.gua-author-link:hover {
  text-decoration: underline !important;
}
@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-subtitle {
  font-size: 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: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-bottom: .75rem;
}
.gua-mark-book-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
  font-size: .75rem;
}
.gua-mark-book-item img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 4px;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(44,36,23,.1);
  transition: transform .2s;
}
.gua-mark-book-item img:hover { transform: scale(1.03); }
.gua-mark-book-btn {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff !important;
  background: #2c4a7c;
  border-radius: 4px;
  padding: .25rem .75rem;
  text-decoration: none !important;
  transition: background .2s;
  margin-top: auto;
}
.gua-mark-book-btn:hover { background: #1e3660; color: #fff !important; }
@media (max-width: 480px) {
  .gua-mark-books { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 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;
}

/* ─── 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: linear-gradient(to bottom, #fffdf9 0%, #f5f0e8 100%) !important;
  border-top: 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; }

/* ─── 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; order: 2 !important; width: 100% !important; }
  .taid-sidebar--left { order: 2 !important; width: 100% !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: 40vh !important; }
  .taid-hero-inner { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; text-align: center !important; }
  .taid-hero-title { text-align: center !important; }
  .taid-hero-title img,
  .taid-hero-title a img { max-height: 130px !important; margin: 0 auto !important; display: block !important; }
  .taid-hero-subtitle { font-size: 1rem !important; text-align: center !important; margin-bottom: .15rem !important; }
  .taid-hero-subtitle + p { font-size: .78rem !important; margin-bottom: .5rem !important; }
  .taid-hero-actions { display: none !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 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; }
}
