:root {
  --gd-ink: #1c1410;
  --gd-paper: #f5ede0;
  --gd-paper-dark: #ece0cd;
  --gd-maroon: #6e1423;
  --gd-maroon-light: #8c1d33;
  --gd-gold: #c79a3a;
  --gd-gold-light: #e0bd6a;
  --gd-saffron: #d98324;
  --gd-cream: #fbf6ec;
  --gd-display: "Marcellus", Georgia, serif;
  --gd-body: "Cormorant Garamond", Georgia, serif;
  --gd-ui: "Mukta", "Noto Sans Sinhala", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--gd-paper);
  color: var(--gd-ink);
  font-family: var(--gd-ui);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(199,154,58,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(110,20,35,0.04) 0%, transparent 40%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gd-maroon); text-decoration: none; }
a:hover { color: var(--gd-maroon-light); }
.gd-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Display font helpers */
h1, h2, h3, .gd-display { font-family: var(--gd-display); font-weight: 400; }

.gd-ornament { height: 1px; background: linear-gradient(to right, transparent, var(--gd-gold), transparent); margin: 2rem 0; }

/* ---------- Header ---------- */
.gd-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,237,224,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(199,154,58,0.4);
}
.gd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.gd-brand { display: flex; align-items: center; gap: 0.75rem; }
.gd-brand img { height: 48px; width: 48px; object-fit: contain; }
.gd-brand .gd-name { font-family: var(--gd-display); font-size: 1.3rem; letter-spacing: 0.08em; color: var(--gd-maroon); line-height: 1.1; }
.gd-brand .gd-tag { font-size: 11px; color: rgba(28,20,16,0.6); }

/* ---------- Nav ---------- */
.gd-nav { display: flex; align-items: center; gap: 0.25rem; }
.gd-nav a, .gd-nav .menu-item a {
  display: inline-block; padding: 0.5rem 0.85rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--gd-ink); transition: all 0.2s;
}
.gd-nav a:hover { background: rgba(199,154,58,0.15); color: var(--gd-maroon); }
.gd-nav .current-menu-item > a,
.gd-nav .current_page_item > a { background: var(--gd-maroon); color: var(--gd-cream); }
.gd-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }

/* language switcher (Polylang) */
.gd-lang { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.gd-lang li a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: 1px solid rgba(199,154,58,0.5); background: var(--gd-cream);
  border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.8rem; color: var(--gd-maroon);
}
.gd-lang li.current-lang a { background: var(--gd-maroon); color: var(--gd-cream); border-color: var(--gd-maroon); }
.gd-lang img { display: inline; height: 14px; width: auto; }

.gd-burger { display: none; background: none; border: none; color: var(--gd-maroon); cursor: pointer; padding: 0.5rem; }

/* ---------- Hero ---------- */
.gd-hero { position: relative; overflow: hidden; text-align: center; }
.gd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gd-hero-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(245,237,224,0.8), rgba(245,237,224,0.72), var(--gd-paper)); }
.gd-hero-inner { position: relative; padding: 5rem 1rem; }
.gd-hero img.gd-hero-logo { height: 112px; width: 112px; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }
.gd-badge { display: inline-block; margin-top: 0.75rem; border: 1px solid rgba(199,154,58,0.5); background: rgba(251,246,236,0.7); border-radius: 999px; padding: 0.25rem 1rem; font-size: 0.75rem; color: var(--gd-maroon); }
.gd-hero h1 { font-size: clamp(3rem, 8vw, 5rem); color: var(--gd-maroon); margin: 1rem 0 0.5rem; letter-spacing: 0.04em; }
.gd-hero p { max-width: 640px; margin: 0 auto; font-size: 1.15rem; color: rgba(28,20,16,0.8); }
.gd-hero-btns { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.gd-btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.5rem; font-weight: 500; font-family: var(--gd-ui); cursor: pointer; transition: all 0.2s; border: none; }
.gd-btn-primary { background: var(--gd-maroon); color: var(--gd-cream); }
.gd-btn-primary:hover { background: var(--gd-maroon-light); color: var(--gd-cream); }
.gd-btn-outline { background: transparent; border: 1px solid var(--gd-maroon); color: var(--gd-maroon); }
.gd-btn-outline:hover { background: rgba(110,20,35,0.1); }
.gd-btn-gold { background: var(--gd-gold); color: var(--gd-ink); }
.gd-btn-gold:hover { background: var(--gd-gold-light); color: var(--gd-ink); }

/* ---------- Sections ---------- */
.gd-section { padding: 4rem 0; }
.gd-section-head { text-align: center; }
.gd-section-head h2 { font-size: 1.9rem; color: var(--gd-maroon); margin: 0; }
.gd-section-head p { color: rgba(28,20,16,0.7); margin: 0.5rem 0 0; }

.gd-page-head { display: flex; align-items: center; gap: 0.75rem; color: var(--gd-maroon); }
.gd-page-head h1 { font-size: 2.4rem; margin: 0; color: var(--gd-maroon); }
.gd-page-intro { max-width: 640px; color: rgba(28,20,16,0.75); margin-top: 0.75rem; }

/* ---------- Cards / grid ---------- */
.gd-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 640px) { .gd-grid.cols-2 { grid-template-columns: 1fr 1fr; } .gd-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.gd-card { overflow: hidden; border-radius: 16px; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.2s; display: block; }
.gd-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.gd-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.gd-card-img img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s; }
.gd-card:hover .gd-card-img img { transform: scale(1.05); }
.gd-card-no { position: absolute; left: 0.75rem; top: 0.75rem; background: var(--gd-maroon); color: var(--gd-cream); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.72rem; font-weight: 600; }
.gd-card-body { padding: 1.25rem; }
.gd-card-body h3 { font-size: 1.25rem; color: var(--gd-maroon); margin: 0 0 0.5rem; }
.gd-card-body p { color: rgba(28,20,16,0.7); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-card-more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.75rem; font-size: 0.88rem; font-weight: 500; color: var(--gd-saffron); }

/* ---------- CTA strip ---------- */
.gd-cta { background: var(--gd-maroon); color: var(--gd-cream); text-align: center; }
.gd-cta .gd-wrap { padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gd-cta h2 { font-size: 1.9rem; margin: 0; }
.gd-cta p { max-width: 640px; color: rgba(251,246,236,0.85); margin: 0; }

/* ---------- Single post ---------- */
.gd-single { max-width: 760px; margin: 0 auto; padding: 3rem 1rem; }
.gd-single h1 { font-size: 2.4rem; color: var(--gd-maroon); line-height: 1.2; margin: 0.75rem 0 0; }
.gd-single-feat { width: 100%; border-radius: 16px; border: 1px solid rgba(199,154,58,0.4); margin-top: 1.5rem; }
.gd-single-body { margin-top: 2rem; font-family: var(--gd-body); font-size: 1.3rem; line-height: 1.75; color: rgba(28,20,16,0.9); }
.gd-single-body p { margin: 0 0 1.25rem; }
.gd-single-body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: 12px; border: 1px solid rgba(199,154,58,0.4); }
.gd-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--gd-maroon); }
.gd-moral { margin-top: 2.5rem; border-left: 4px solid var(--gd-gold); background: var(--gd-cream); border-radius: 12px; padding: 1.5rem; }
.gd-moral .gd-moral-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gd-saffron); }
.gd-moral p { font-family: var(--gd-body); font-size: 1.25rem; font-style: italic; color: rgba(28,20,16,0.85); margin: 0.5rem 0 0; }

/* ---------- News list rows ---------- */
.gd-newsrow { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(199,154,58,0.3); }
.gd-newsrow-thumb { width: 160px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid rgba(199,154,58,0.3); }
.gd-newsrow-thumb img { height: 100%; width: 100%; object-fit: cover; }
.gd-newsrow h3 { margin: 0 0 0.35rem; font-size: 1.3rem; color: var(--gd-maroon); }
.gd-newsrow .gd-date { font-size: 0.8rem; color: var(--gd-saffron); }
.gd-newsrow p { margin: 0.4rem 0 0; color: rgba(28,20,16,0.7); }
@media (max-width: 560px) { .gd-newsrow-thumb { width: 100px; } }

/* ---------- 550 list ---------- */
.gd-jataka-grid { display: grid; gap: 0.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .gd-jataka-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 780px) { .gd-jataka-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 960px) { .gd-jataka-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
@media (min-width: 1200px) { .gd-jataka-grid { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; } }
.gd-jataka-item { display: flex; align-items: center; gap: 0.75rem; border: 1px solid rgba(199,154,58,0.3); background: rgba(251,246,236,0.6); border-radius: 10px; padding: 0.6rem 0.75rem; transition: all 0.2s; }
.gd-jataka-item.has-link:hover { border-color: var(--gd-gold); background: rgba(217,131,36,0.12); }
.gd-jataka-no { flex-shrink: 0; height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--gd-maroon); color: var(--gd-cream); font-size: 0.78rem; font-weight: 600; }
.gd-jataka-item span.t { font-size: 0.92rem; color: var(--gd-ink); }

/* ---------- Cards section: language editions ---------- */
.gd-edition { text-align: center; border-radius: 16px; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); padding: 1.5rem; }
.gd-edition img { height: 96px; width: 96px; object-fit: contain; margin: 0 auto; }
.gd-edition h3 { margin: 1rem 0 0.25rem; color: var(--gd-maroon); }
.gd-edition p { font-size: 0.85rem; color: rgba(28,20,16,0.6); margin: 0; }

/* ---------- Vision/About info cards ---------- */
.gd-info-card { border-radius: 16px; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); padding: 1.5rem; }
.gd-info-card .ic { color: var(--gd-saffron); }
.gd-info-card h3 { margin: 0.75rem 0 0.25rem; color: var(--gd-maroon); }
.gd-info-card p { margin: 0; color: rgba(28,20,16,0.7); }
.gd-prose { font-family: var(--gd-body); font-size: 1.3rem; line-height: 1.7; color: rgba(28,20,16,0.85); max-width: 760px; }
.gd-contact-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .gd-contact-grid { grid-template-columns: 1fr 1fr 1fr; } }
.gd-contact-item { display: flex; align-items: center; gap: 0.75rem; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); border-radius: 12px; padding: 1rem; }
.gd-contact-item .ic { color: var(--gd-saffron); }

/* ---------- Footer ---------- */
.gd-footer { border-top: 1px solid rgba(199,154,58,0.4); background: var(--gd-maroon); color: rgba(251,246,236,0.9); margin-top: 2rem; }
.gd-footer .gd-wrap { padding: 2.5rem 1rem; }
.gd-footer-top { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .gd-footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.gd-footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.gd-footer-brand img { height: 48px; width: 48px; object-fit: contain; }
.gd-footer-brand .n { font-family: var(--gd-display); font-size: 1.1rem; letter-spacing: 0.08em; }
.gd-footer-brand .t { font-size: 0.72rem; color: rgba(251,246,236,0.7); }
.gd-footer-contact { font-size: 0.88rem; color: rgba(251,246,236,0.8); }
.gd-footer-bottom { text-align: center; font-size: 0.75rem; color: rgba(251,246,236,0.6); }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .gd-nav.desktop { display: none; }
  .gd-burger { display: inline-flex; }
  .gd-nav.mobile { display: none; flex-direction: column; padding: 0.5rem 1rem; background: var(--gd-cream); border-top: 1px solid rgba(199,154,58,0.3); }
  .gd-nav.mobile.open { display: flex; }
  .gd-nav.mobile ul { flex-direction: column; gap: 0.25rem; width: 100%; }
  .gd-nav.mobile a { display: block; padding: 0.75rem; }
}
@media (min-width: 981px) { .gd-nav.mobile { display: none; } }

/* pagination */
.gd-pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.gd-pagination a, .gd-pagination span { padding: 0.5rem 0.9rem; border-radius: 8px; border: 1px solid rgba(199,154,58,0.4); color: var(--gd-maroon); }
.gd-pagination .current { background: var(--gd-maroon); color: var(--gd-cream); }

/* ---------- Elementor compatibility ---------- */
.gd-elementor-fullwidth { width: 100%; }
.gd-elementor-fullwidth > .elementor { width: 100%; }
body.elementor-page .gd-wrap { max-width: none; }
.elementor-section.elementor-section-stretched { left: 0 !important; }
body.gd-elementor-canvas { background: var(--gd-paper); margin: 0; }

/* ---------- Section 2: Featured News (2x2 + large) ---------- */
.gd-pill { display: inline-block; background: var(--gd-saffron); color: var(--gd-cream); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.72rem; font-weight: 600; }
.gd-featurednews { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 900px) { .gd-featurednews { grid-template-columns: 1.1fr 1fr; } }
.gd-feat-large { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(199,154,58,0.4); }
.gd-feat-large-img { position: relative; aspect-ratio: 4/3; height: 100%; }
.gd-feat-large-img img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s; }
.gd-feat-large:hover .gd-feat-large-img img { transform: scale(1.04); }
.gd-feat-large-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; padding: 1.5rem; background: linear-gradient(to top, rgba(28,20,16,0.85), rgba(28,20,16,0.15) 55%, transparent); color: var(--gd-cream); }
.gd-feat-large-overlay h3 { font-family: var(--gd-display); font-size: 1.6rem; margin: 0; color: var(--gd-cream); }
.gd-feat-more { color: var(--gd-gold-light); font-size: 0.9rem; }
.gd-feat-more.sm { color: var(--gd-saffron); font-size: 0.8rem; }
.gd-feat-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .gd-feat-small-grid { grid-template-columns: 1fr; } }
.gd-feat-small { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); transition: box-shadow 0.2s; }
.gd-feat-small:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.gd-feat-small-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--gd-paper-dark); }
.gd-feat-small-thumb img { height: 100%; width: 100%; object-fit: cover; }
.gd-feat-small-body { padding: 0.8rem 0.9rem; }
.gd-feat-cat { color: var(--gd-saffron); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.gd-feat-small-body h4 { font-family: var(--gd-display); color: var(--gd-maroon); margin: 0.3rem 0; font-size: 1.05rem; line-height: 1.25; }

/* ---------- Section 3: Gunadam Jathaka rows ---------- */
.gd-jathaka-rows { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.gd-jathaka-row { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; border-radius: 16px; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); padding: 1rem; transition: box-shadow 0.2s; }
@media (min-width: 700px) { .gd-jathaka-row { flex-direction: row; align-items: center; } }
.gd-jathaka-row:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.gd-jathaka-cover { width: 100%; aspect-ratio: 16/10; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--gd-paper-dark); }
@media (min-width: 700px) { .gd-jathaka-cover { width: 200px; aspect-ratio: 4/3; } }
.gd-jathaka-cover img { height: 100%; width: 100%; object-fit: cover; }
.gd-jathaka-text { flex: 1; }
.gd-jathaka-text h3 { font-family: var(--gd-display); color: var(--gd-maroon); margin: 0.4rem 0; font-size: 1.3rem; }
.gd-jathaka-text p { margin: 0; color: rgba(28,20,16,0.7); }
.gd-jathaka-btn { flex-shrink: 0; align-self: flex-start; }
@media (min-width: 700px) { .gd-jathaka-btn { align-self: center; } }

/* ---------- News page: 3 columns ---------- */
.gd-news3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 800px) { .gd-news3 { grid-template-columns: 1.2fr 1fr 1fr; } }
.gd-news-col h2 { font-family: var(--gd-display); color: var(--gd-maroon); font-size: 1.3rem; border-bottom: 2px solid var(--gd-gold); padding-bottom: 0.4rem; margin: 0 0 1rem; }
.gd-news-item { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(199,154,58,0.25); }
.gd-news-item-thumb { width: 72px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--gd-paper-dark); }
.gd-news-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gd-news-item h3 { font-size: 0.98rem; margin: 0 0 0.2rem; color: var(--gd-maroon); font-family: var(--gd-display); line-height: 1.25; }
.gd-news-item p { margin: 0; font-size: 0.82rem; color: rgba(28,20,16,0.65); }
.gd-news-item .gd-feat-more { font-size: 0.76rem; }
.gd-news-feat { display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); margin-bottom: 1rem; }
.gd-news-feat-img { aspect-ratio: 16/10; overflow: hidden; background: var(--gd-paper-dark); }
.gd-news-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.gd-news-feat-body { padding: 0.7rem 0.85rem; }
.gd-news-feat-body h3 { font-family: var(--gd-display); color: var(--gd-maroon); margin: 0; font-size: 1.05rem; }
.gd-video-item { margin-bottom: 1.2rem; }
.gd-video-item h3 { font-family: var(--gd-display); color: var(--gd-maroon); font-size: 1rem; margin: 0 0 0.4rem; }
.gd-video-embed iframe, .gd-embed iframe { width: 100% !important; aspect-ratio: 16/9; height: auto !important; border-radius: 10px; border: 1px solid rgba(199,154,58,0.4); }

/* ---------- Magazine: 3-column issue grid ---------- */
.gd-issues { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 640px) { .gd-issues { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .gd-issues { grid-template-columns: 1fr 1fr 1fr; } }
.gd-issue { border-radius: 16px; overflow: hidden; border: 1px solid rgba(199,154,58,0.4); background: var(--gd-cream); transition: box-shadow 0.2s; }
.gd-issue:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.gd-issue-cover { aspect-ratio: 3/4; overflow: hidden; background: var(--gd-paper-dark); }
.gd-issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.gd-issue-body { padding: 1rem; text-align: center; }
.gd-issue-body .gd-issue-no { color: var(--gd-saffron); font-size: 0.8rem; font-weight: 600; }
.gd-issue-body h3 { font-family: var(--gd-display); color: var(--gd-maroon); margin: 0.3rem 0 0.6rem; font-size: 1.15rem; }

/* Language pill dropdown (added) */
.gd-lang-switch { position: relative; }
.gd-lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(199,154,58,0.5); background: var(--gd-cream);
  color: var(--gd-maroon); border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: border-color 0.15s;
}
.gd-lang-btn:hover { border-color: var(--gd-maroon); }
.gd-lang-chevron { transition: transform 0.15s; }
.gd-lang-switch.is-open .gd-lang-chevron { transform: rotate(180deg); }
.gd-lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
  min-width: 160px; background: var(--gd-cream); border: 1px solid rgba(199,154,58,0.4);
  border-radius: 12px; box-shadow: 0 12px 28px rgba(110,20,35,0.18);
  list-style: none; margin: 0; padding: 0.4rem; z-index: 50; overflow: hidden;
}
.gd-lang-switch.is-open .gd-lang-menu { display: block; }
.gd-lang-menu li { margin: 0; }
.gd-lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0.75rem; border-radius: 8px; color: var(--gd-ink, #2b2320);
  font-size: 0.92rem; text-decoration: none; transition: background 0.15s;
}
.gd-lang-menu a:hover { background: rgba(199,154,58,0.15); }
.gd-lang-menu a.is-current { color: var(--gd-maroon); font-weight: 600; }
.gd-lang-menu a.is-current svg { color: var(--gd-gold); flex-shrink: 0; }
/* Language flags (added) */
.gd-lang-flag img, .gd-lang-item-label img { width: 16px; height: 11px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.gd-lang-flag { display: inline-flex; align-items: center; }
.gd-lang-item-label { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Featured Tales row (Reincarnation page) — break out of .gd-wrap, centered, capped at 1200px */
#gd-featured-tales-row {
  width: 1200px;
  max-width: calc(100vw - 2rem);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
}
body { overflow-x: hidden; }

/* Force the 3 Featured Tales cards to equal (balanced) widths */
#gd-featured-tales-row > div {
  flex: 1 1 0 !important;
  max-width: 33.333% !important;
  min-width: 0 !important;
}
#gd-featured-tales-row {
  display: flex !important;
  flex-wrap: nowrap !important;
}
