/*
Theme Name: Meeratales
Theme URI: http://localhost:8080/
Description: A refined editorial child theme of Astra for Meeratales — travel, culture and people from the lanes of Varanasi. Warm saffron-and-indigo palette, elegant serif typography, card-based storytelling layouts.
Author: Meeratales
Template: astra
Version: 1.0.0
Text Domain: meeratales
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --mt-ink:        #1b2540;   /* deep indigo — primary text/headers */
  --mt-ink-soft:   #3a4560;
  --mt-muted:      #6b7280;   /* meta text */
  --mt-saffron:    #e0781a;   /* marigold/saffron accent */
  --mt-saffron-dk: #b45f0f;
  --mt-maroon:     #7c2d12;   /* ghat maroon — secondary accent */
  --mt-cream:      #fbf6ee;   /* page background */
  --mt-card:       #ffffff;
  --mt-line:       #ece4d6;   /* hairlines on cream */
  --mt-line-soft:  #f0e9dd;
  --mt-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --mt-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mt-read:  "Source Serif 4", "Georgia", "Times New Roman", serif;
  --mt-shadow:    0 1px 2px rgba(27,37,64,.04), 0 8px 24px rgba(27,37,64,.06);
  --mt-shadow-lg: 0 18px 48px rgba(27,37,64,.14);
  --mt-radius: 14px;
  --mt-maxwide: 1280px;
}

/* ============================================================
   GLOBAL
   ============================================================ */
body,
.ast-container {
  font-family: var(--mt-sans);
}
body {
  background: var(--mt-cream);
  color: var(--mt-ink-soft);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: var(--mt-serif);
  color: var(--mt-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

a { color: var(--mt-saffron-dk); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--mt-maroon); }

::selection { background: var(--mt-saffron); color: #fff; }

.ast-container { max-width: var(--mt-maxwide); }

/* Decorative section flourish reused across the theme */
.mt-flourish {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--mt-saffron); font-size: 1.1rem; letter-spacing: .35em;
  text-transform: uppercase;
}
.mt-flourish::before, .mt-flourish::after {
  content: ""; height: 1px; width: 42px; background: currentColor; opacity: .5;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header,
.ast-primary-header-bar,
.main-header-bar {
  background: rgba(251,246,238,.88) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mt-line);
  box-shadow: none !important;
}
.site-title { font-size: 1.9rem !important; letter-spacing: -.02em; }
.site-title a { color: var(--mt-ink) !important; }
.site-header .site-description {
  font-family: var(--mt-sans);
  font-size: .72rem !important;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mt-saffron-dk) !important;
  font-weight: 600;
}
/* Nav links */
.main-header-menu .menu-link,
.ast-header-navigation-arrow-wrap .menu-link {
  font-family: var(--mt-sans) !important;
  font-weight: 500;
  font-size: .82rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mt-ink) !important;
}
.main-header-menu .menu-link:hover { color: var(--mt-saffron-dk) !important; }
.main-header-menu .current-menu-item > .menu-link { color: var(--mt-saffron-dk) !important; }
/* underline sweep on hover */
.main-header-menu > .menu-item > .menu-link { position: relative; }
.main-header-menu > .menu-item > .menu-link::after {
  content:""; position:absolute; left:1em; right:1em; bottom:.35em; height:2px;
  background: var(--mt-saffron); transform: scaleX(0); transform-origin:left;
  transition: transform .25s ease;
}
.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .current-menu-item > .menu-link::after { transform: scaleX(1); }

/* ============================================================
   HOMEPAGE MASTHEAD (injected via functions.php on the blog home)
   ============================================================ */
.mt-masthead {
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(1200px 380px at 50% -120px, rgba(224,120,26,.12), transparent 70%),
    linear-gradient(180deg, #fff8ee 0%, var(--mt-cream) 100%);
  border-bottom: 1px solid var(--mt-line);
}
.mt-masthead .mt-flourish { margin-bottom: 1.4rem; }
.mt-masthead h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
  line-height: 1.05;
}
.mt-masthead h1 em { color: var(--mt-saffron); font-style: italic; }
.mt-masthead p {
  max-width: 640px; margin: 0 auto; font-size: 1.15rem; color: var(--mt-ink-soft);
}

/* ============================================================
   BLOG / ARCHIVE — CARD GRID
   ============================================================ */
/* Astra 4.x wraps the post columns in .ast-row — make THAT the grid. */
.blog .ast-row,
.archive .ast-row,
.search-results .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin: 0 !important;
  width: 100%;
}

/* Each post card */
.blog .ast-article-post,
.archive .ast-article-post,
.search-results .ast-article-post {
  background: var(--mt-card);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease;
  display: flex; flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
}
.blog .ast-article-inner,
.archive .ast-article-inner,
.search-results .ast-article-inner { margin: 0 !important; border: 0 !important; height: 100%; display: flex; flex-direction: column; }

/* ---- UNIFORM CARDS: same fixed size regardless of content length ---- */
/* fixed featured-image band */
.blog .ast-article-post .ast-blog-featured-section img,
.archive .ast-article-post .ast-blog-featured-section img,
.search-results .ast-article-post .ast-blog-featured-section img,
.blog .ast-article-post .wp-post-image,
.archive .ast-article-post .wp-post-image,
.search-results .ast-article-post .wp-post-image {
  width: 100% !important; height: 240px !important; object-fit: cover; display: block;
}
/* title clamped to exactly 2 lines */
.blog .entry-title, .archive .entry-title, .search-results .entry-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
/* excerpt clamped to exactly 3 lines, reserving the space so every card matches */
.blog .ast-excerpt-container, .archive .ast-excerpt-container, .search-results .ast-excerpt-container {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 4.8em;
}
/* excerpt/content area absorbs any slack so the share row sits at the card bottom */
.blog .ast-article-post .entry-content,
.archive .ast-article-post .entry-content,
.search-results .ast-article-post .entry-content { flex: 1 0 auto; }
/* share row pinned to the bottom edge, aligned across all cards */
.blog .ast-article-post .a2a_kit,
.archive .ast-article-post .a2a_kit { margin-top: auto; padding-top: .4rem; }
.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
  transform: translateY(-6px);
  box-shadow: var(--mt-shadow-lg);
}
/* Featured image on cards */
.ast-article-post .post-thumb,
.ast-article-post .ast-blog-featured-section {
  margin: 0 !important;
}
.ast-article-post .post-thumb img,
.ast-article-post .wp-post-image {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.ast-article-post:hover .wp-post-image { transform: scale(1.04); }
/* Card body */
.blog .ast-article-post .ast-blog-single-element,
.blog .ast-article-post .entry-content,
.blog .ast-article-post .entry-header,
.blog .ast-article-post .read-more,
.archive .ast-article-post .entry-header,
.archive .ast-article-post .entry-content {
  padding-left: 1.6rem; padding-right: 1.6rem;
}
.blog .ast-article-post .entry-header,
.archive .ast-article-post .entry-header { padding-top: 1.4rem; }
.blog .entry-title, .archive .entry-title { font-size: 1.6rem !important; margin: .25rem 0 .55rem; }
.blog .entry-title a, .archive .entry-title a { color: var(--mt-ink) !important; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--mt-saffron-dk) !important; }
.blog .ast-excerpt-container, .archive .ast-excerpt-container { color: var(--mt-muted); font-size: 1rem; }
.blog .read-more, .archive .read-more { padding-bottom: 1.4rem; }
.blog .read-more a, .archive .read-more a {
  font-family: var(--mt-sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mt-saffron-dk);
}

/* Post meta (author, date) */
.ast-article-post .entry-meta,
.post-meta, .ast-blog-meta-container {
  font-family: var(--mt-sans);
  font-size: .78rem; letter-spacing: .04em;
  color: var(--mt-muted); text-transform: uppercase;
}
.entry-meta a { color: var(--mt-muted); }
.entry-meta a:hover { color: var(--mt-saffron-dk); }

/* Category chip */
.ast-taxonomy-container a,
.cat-links a {
  display: inline-block;
  font-family: var(--mt-sans);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mt-saffron-dk) !important;
  background: #fdf1e3; border: 1px solid #f6ddc2;
  padding: .28em .7em; border-radius: 999px; margin: 0 .25rem .25rem 0;
}
.ast-taxonomy-container a:hover, .cat-links a:hover { background: var(--mt-saffron); color:#fff !important; border-color: var(--mt-saffron); }

/* ============================================================
   SINGLE POST — READING EXPERIENCE
   ============================================================ */
.single .ast-article-single {
  background: var(--mt-card);
  border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius);
  box-shadow: var(--mt-shadow);
  padding: clamp(1.5rem, 4vw, 3.4rem) !important;
}
.single .entry-title { font-size: clamp(2.1rem, 4.5vw, 3.2rem) !important; margin-bottom: 1rem; }
.single .entry-header { text-align: center; margin-bottom: 2rem; }
.single .ast-single-post .post-thumb img,
.single .wp-post-image {
  border-radius: var(--mt-radius); margin: 1rem 0 2rem;
}
/* read-time badge */
.single .entry-content .mt-readtime {
  text-align: center; font-family: var(--mt-sans);
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--mt-muted); margin: -.5rem 0 1.6rem;
}
/* hero featured image — spans the card, wider than the text measure */
.single .entry-content .mt-hero { max-width: 100%; margin: 0 0 2.6rem; }
.single .entry-content .mt-hero img {
  width: 100%; height: auto; display: block; border-radius: var(--mt-radius);
  box-shadow: var(--mt-shadow);
}

/* comfortable reading measure + rhythm */
.single .entry-content { font-size: 1.15rem; line-height: 1.85; color: #2c3550; }
.single .entry-content > p,
.single .entry-content > h2,
.single .entry-content > h3,
.single .entry-content > ul,
.single .entry-content > ol,
.single .entry-content > blockquote,
.single .entry-content > figure {
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.single .entry-content h2 { font-size: 1.9rem; margin: 2.4rem auto 1rem; }
.single .entry-content h3 { font-size: 1.4rem; margin: 2rem auto .8rem; }
.single .entry-content p { margin: 0 auto 1.5rem; }
/* Drop cap */
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--mt-serif); font-weight: 700;
  font-size: 3.6rem; line-height: .8; float: left;
  margin: .12em .12em -.05em 0; color: var(--mt-saffron);
}
.single .entry-content blockquote {
  border: 0; border-left: 3px solid var(--mt-saffron);
  background: #fff8ef; border-radius: 0 10px 10px 0;
  padding: 1rem 1.4rem; font-family: var(--mt-serif); font-style: italic;
  font-size: 1.35rem; color: var(--mt-ink);
}
.single .entry-content img { border-radius: 10px; }
.single .entry-content a { text-decoration: underline; text-decoration-color: rgba(224,120,26,.4); text-underline-offset: 3px; }

/* ---- Normalize imported (Blogger) inline styling → clean reading typography ---- */
.single .entry-content {
  font-family: var(--mt-read) !important;
  font-size: 1.22rem; line-height: 1.9; color: #2b3550; letter-spacing: .002em;
}
.single .entry-content p,
.single .entry-content li,
.single .entry-content span,
.single .entry-content div,
.single .entry-content font,
.single .entry-content b, .single .entry-content strong,
.single .entry-content i, .single .entry-content em {
  font-family: var(--mt-read) !important;
  background-color: transparent !important;
}
/* wipe Blogger's inline font-size / colour so text stays consistent */
.single .entry-content [style] {
  font-size: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}
.single .entry-content b, .single .entry-content strong { font-weight: 700; color: var(--mt-ink); }
.single .entry-content p { font-size: 1.22rem; margin: 0 auto 1.5rem; }
/* links keep the brand colour even inside styled spans */
.single .entry-content a,
.single .entry-content a span,
.single .entry-content a b { color: var(--mt-saffron-dk) !important; background: transparent !important; }
/* keep the drop-cap in the display serif */
.single .entry-content > p:first-of-type::first-letter { font-family: var(--mt-serif) !important; }
/* Blogger images ship with tiny fixed heights — make them full, responsive */
.single .entry-content img { max-width: 100% !important; height: auto !important; border-radius: 12px; box-shadow: var(--mt-shadow); }
.single .entry-content .separator {
  max-width: 100% !important; margin: 2rem auto !important; text-align: center; clear: both;
}
.single .entry-content .separator a { display: inline-block; max-width: 100%; }

/* ---- Reading polish: alignment + consistent imagery ---- */
/* justified body text with hyphenation for a clean editorial block */
.single .entry-content p,
.single .entry-content .MsoNormal {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto; hyphens: auto;
  margin: 0 auto 1.45rem;
  font-size: 1.22rem;
}
.single .entry-content > p:first-of-type { text-align: left; } /* drop-cap para reads better left */

/* Hero: crop to a clean banner so portrait photos don't dominate */
.single .entry-content .mt-hero img,
.single .mt-hero img {
  width: 100% !important; height: 470px !important; object-fit: cover;
  border-radius: 12px;
}

/* In-content images: centred, consistent, height-capped (no crop) */
.single .entry-content .separator,
.single .entry-content p:has(img) { text-align: center !important; margin: 2.2rem auto !important; }
.single .entry-content .separator img,
.single .entry-content p img,
.single .entry-content > img {
  display: inline-block !important;
  width: auto !important;
  max-width: min(100%, 620px) !important;
  max-height: 620px !important;
  height: auto !important;
  margin: .2rem auto !important;
  border-radius: 12px;
}
/* image caption text (Blogger sometimes adds it under the image) */
.single .entry-content .separator + p em,
.single .entry-content figcaption {
  display: block; text-align: center; font-size: .9rem; color: var(--mt-muted); font-style: italic; margin-top: .4rem;
}

/* ---- Breadcrumbs (SEO structure) ---- */
.mt-crumbs { font-family: var(--mt-sans) !important; font-size: .8rem; color: var(--mt-muted); margin: 0 0 1.6rem; text-align: center; }
.mt-crumbs a { color: var(--mt-saffron-dk) !important; text-decoration: none; }
.mt-crumbs a:hover { text-decoration: underline; }

/* ---- Related posts (internal linking) ---- */
.single .entry-content .mt-related { margin: 3.6rem 0 0; border-top: 1px solid var(--mt-line); padding-top: 2rem; }
.mt-related-title { font-family: var(--mt-serif) !important; font-size: 1.5rem; text-align: center !important; margin: 0 auto 1.7rem; }
.mt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.single .entry-content .mt-related-card {
  display: flex; flex-direction: column; border: 1px solid var(--mt-line); border-radius: 12px;
  overflow: hidden; background: #fff; box-shadow: var(--mt-shadow);
  transition: transform .2s ease, box-shadow .2s ease; text-align: left !important;
}
.single .entry-content .mt-related-card:hover { transform: translateY(-4px); box-shadow: var(--mt-shadow-lg); }
.single .entry-content .mt-related-thumb img {
  width: 100% !important; height: 140px !important; max-height: 140px !important;
  max-width: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0;
}
.mt-related-cat { font-family: var(--mt-sans) !important; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mt-saffron-dk); padding: .8rem .9rem 0; }
.mt-related-headline { font-family: var(--mt-serif) !important; font-size: 1.02rem; line-height: 1.25; color: var(--mt-ink); padding: .25rem .9rem 1.1rem; }
@media (max-width: 600px) { .mt-related-grid { grid-template-columns: 1fr; } }

/* ---- Likes ---- */
.single .entry-content .mt-like-wrap { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 3rem auto 0; text-align: center; }
.mt-like {
  display: inline-flex !important; align-items: center; gap: .55rem;
  background: #fff !important; color: var(--mt-ink) !important;
  border: 1px solid var(--mt-line) !important; border-radius: 999px !important;
  padding: .62em 1.4em !important; margin: 0 !important; cursor: pointer;
  font-family: var(--mt-sans) !important; font-weight: 600 !important; font-size: .95rem !important;
  box-shadow: var(--mt-shadow) !important; text-transform: none !important; letter-spacing: 0 !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.mt-like:hover { transform: translateY(-2px); border-color: var(--mt-saffron) !important; color: var(--mt-saffron-dk) !important; }
.mt-like span { font-family: var(--mt-sans) !important; }
.mt-like svg { width: 20px; height: 20px; fill: none; stroke: var(--mt-saffron); stroke-width: 1.8; transition: transform .2s ease, fill .2s ease; }
.mt-like.is-liked { background: #fff5ec !important; border-color: var(--mt-saffron) !important; color: var(--mt-saffron-dk) !important; }
.mt-like.is-liked svg { fill: var(--mt-saffron); stroke: var(--mt-saffron); }
.mt-like-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.mt-like.is-pop svg { animation: mt-heart .45s ease; }
@keyframes mt-heart { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 55% { transform: scale(.9); } 100% { transform: scale(1); } }
.mt-like-hint { font-family: var(--mt-sans); font-size: .8rem; color: var(--mt-muted); }

/* ---- Author bio box ---- */
.single .entry-content .mt-author {
  display: flex; gap: 1.3rem; align-items: flex-start; margin: 2.6rem auto 0;
  background: #fff; border: 1px solid var(--mt-line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--mt-shadow);
}
.single .entry-content .mt-author-av-wrap { flex: none; }
.single .entry-content .mt-author-av-wrap img { width: 84px !important; height: 84px !important; max-width: 84px !important; border-radius: 50% !important; margin: 0 !important; box-shadow: var(--mt-shadow); }
.mt-author-body { display: flex; flex-direction: column; min-width: 0; }
.mt-author-kicker { font-family: var(--mt-sans) !important; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mt-saffron-dk); }
.mt-author-name { font-family: var(--mt-serif) !important; font-size: 1.4rem; color: var(--mt-ink); margin: .1rem 0 .3rem; }
.mt-author-role { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 .7rem; }
.mt-author-title { font-family: var(--mt-sans) !important; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--mt-saffron-dk); background: rgba(224,120,26,.12); padding: .3em .75em; border-radius: 999px; }
.mt-author-handle { font-family: var(--mt-sans) !important; font-size: .82rem; font-weight: 600; color: var(--mt-muted); text-decoration: none; }
.mt-author-handle:hover { color: var(--mt-saffron-dk); }
.mt-author-bio { font-family: var(--mt-sans) !important; font-size: .95rem; line-height: 1.6; color: var(--mt-ink-soft); margin: 0 0 .8rem; text-align: left !important; }
.mt-author-links { display: flex; align-items: center; gap: 1.1rem; }
.mt-author-links a { font-family: var(--mt-sans) !important; font-size: .85rem; font-weight: 600; color: var(--mt-saffron-dk); text-decoration: none; }
.mt-author-soc { display: inline-flex !important; color: var(--mt-muted); }
.mt-author-soc svg { width: 18px; height: 18px; }
.mt-author-soc:hover { color: var(--mt-saffron-dk); }
@media (max-width: 560px) { .single .entry-content .mt-author { flex-direction: column; align-items: center; text-align: center; } .mt-author-bio { text-align: center !important; } .mt-author-links, .mt-author-role { justify-content: center; } }

/* ---- Social follow band ---- */
.mt-social { background: #fff; border-top: 1px solid var(--mt-line); padding: 3.6rem 1.5rem; }
.mt-social-inner { max-width: var(--mt-maxwide); margin: 0 auto; text-align: center; }
.mt-social-inner h2 { font-family: var(--mt-serif); font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--mt-ink); margin: .8rem 0 .4rem; }
.mt-social-inner p { color: var(--mt-muted); margin: 0 auto 1.5rem; max-width: 560px; }
.mt-social-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.mt-social-btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mt-sans); font-weight: 600; font-size: .9rem; color: #fff !important; padding: .72em 1.5em; border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease; }
.mt-social-btn:hover { transform: translateY(-2px); color: #fff !important; box-shadow: var(--mt-shadow-lg); }
.mt-social-btn svg { width: 18px; height: 18px; }
.mt-btn-ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.mt-btn-fb { background: #1877f2; }
.mt-btn-x { background: #000; }
.mt-ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; max-width: 920px; margin: 0 auto; }
.mt-ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; }
.mt-ig-tile img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; transition: transform .35s ease; }
.mt-ig-tile:hover img { transform: scale(1.08); }
.mt-ig-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27,37,64,.45); color: #fff; opacity: 0; transition: opacity .2s ease; }
.mt-ig-tile:hover .mt-ig-ov { opacity: 1; }
.mt-ig-ov svg { width: 26px; height: 26px; }
@media (max-width: 780px) { .mt-ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* Trending rail "likes" meta */
.mt-rail-likes { display: inline-flex; align-items: center; gap: .3rem; }
.mt-rail-likes svg { fill: var(--mt-saffron); flex: none; vertical-align: -1px; }

/* ---- Social share ---- */
/* full row on single posts */
.single .entry-content .mt-share { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 2.7rem auto 0; }
.mt-share-label { font-family: var(--mt-sans) !important; font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mt-muted); margin-right: .35rem; }
.mt-share-btn {
  display: inline-flex !important; align-items: center; gap: .42rem;
  font-family: var(--mt-sans) !important; font-weight: 600 !important; font-size: .82rem !important;
  color: #fff !important; background: var(--mt-ink) !important; border: 0 !important; border-radius: 999px !important;
  padding: .5em 1em !important; margin: 0 !important; cursor: pointer; box-shadow: none !important;
  text-transform: none !important; letter-spacing: 0 !important; transition: transform .16s ease, filter .16s ease;
}
.mt-share-btn:hover { transform: translateY(-2px); color: #fff !important; filter: brightness(1.08); }
.mt-share-btn span { font-family: var(--mt-sans) !important; }
.mt-share-btn svg { width: 16px; height: 16px; }
.mt-sh-facebook { background: #1877f2 !important; }
.mt-sh-x { background: #111 !important; }
.mt-sh-whatsapp { background: #25d366 !important; }
.mt-sh-pinterest { background: #e60023 !important; }
.mt-sh-linkedin { background: #0a66c2 !important; }
.mt-sh-copy { background: var(--mt-ink-soft) !important; }
.mt-sh-copy.is-copied { background: #16a34a !important; }
/* compact icon-circles on cards */
.blog .mt-share--compact, .archive .mt-share--compact, .search-results .mt-share--compact {
  display: flex; gap: .4rem; flex-wrap: wrap; padding: .35rem 1.6rem 1.35rem; margin: 0; justify-content: flex-start;
}
.mt-share--compact .mt-share-btn { width: 32px; height: 32px; padding: 0 !important; border-radius: 50% !important; justify-content: center; }
.mt-share--compact .mt-share-btn svg { width: 15px; height: 15px; }
/* card footer: like count (left) + compact share (right) */
.blog .mt-card-foot, .archive .mt-card-foot, .search-results .mt-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem 1.6rem 1.4rem; margin-top: auto;
}
.mt-card-likes { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mt-sans); font-size: .8rem; font-weight: 700; color: var(--mt-muted); flex: none; }
.mt-card-likes svg { fill: var(--mt-saffron); flex: none; }
.mt-card-foot { flex-wrap: nowrap; }
.mt-card-foot .mt-share--compact { padding: 0 !important; margin: 0; flex-wrap: nowrap; gap: .28rem; }
.mt-card-foot .mt-share--compact .mt-share-btn { width: 26px; height: 26px; }
.mt-card-foot .mt-share--compact .mt-share-btn svg { width: 12px; height: 12px; }
/* override in-content link normalization for the detail share buttons */
.single .entry-content .mt-share-btn { display: inline-flex !important; text-decoration: none !important; color: #fff !important; background: var(--mt-ink) !important; padding: .5em 1em !important; border-radius: 999px !important; }
.single .entry-content .mt-share-btn span { color: #fff !important; }
.single .entry-content .mt-share-btn.mt-sh-facebook { background: #1877f2 !important; }
.single .entry-content .mt-share-btn.mt-sh-x { background: #111 !important; }
.single .entry-content .mt-share-btn.mt-sh-whatsapp { background: #25d366 !important; }
.single .entry-content .mt-share-btn.mt-sh-pinterest { background: #e60023 !important; }
.single .entry-content .mt-share-btn.mt-sh-linkedin { background: #0a66c2 !important; }
.single .entry-content .mt-share-btn.mt-sh-copy { background: var(--mt-ink-soft) !important; }
.single .entry-content .mt-share-btn.mt-sh-copy.is-copied { background: #16a34a !important; }

/* ---- Prev / Next post navigation polish ---- */
.single .ast-single-related-posts, .single .post-navigation, .single .ast-navigation-post { max-width: var(--mt-maxwide); margin: 2.4rem auto 0; }
.single .post-navigation .nav-links, .single .ast-navigation-post .nav-links { display: flex; justify-content: space-between; gap: 1.2rem; }
.single .post-navigation .nav-links a, .single .ast-navigation-post a { font-family: var(--mt-serif); color: var(--mt-ink); }
.single .post-navigation .nav-links a:hover, .single .ast-navigation-post a:hover { color: var(--mt-saffron-dk); }

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link,
.ast-button, .button, button, input[type="submit"],
.wpforms-submit {
  background: var(--mt-saffron) !important;
  border: 0 !important; color: #fff !important;
  font-family: var(--mt-sans) !important; font-weight: 600 !important;
  letter-spacing: .04em; border-radius: 999px !important;
  padding: .8em 1.8em !important;
  box-shadow: 0 6px 18px rgba(224,120,26,.28) !important;
  transition: transform .15s ease, background .2s ease !important;
}
.ast-button:hover, .button:hover, button:hover, input[type="submit"]:hover,
.wpforms-submit:hover { background: var(--mt-saffron-dk) !important; transform: translateY(-2px); }

/* ============================================================
   SIDEBAR / WIDGETS
   ============================================================ */
.widget { background: var(--mt-card); border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.5rem; box-shadow: var(--mt-shadow); }
.widget-title, .widget .widget-title {
  font-family: var(--mt-serif); font-size: 1.15rem; color: var(--mt-ink);
  margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--mt-line);
}
.widget ul li { border-color: var(--mt-line-soft) !important; }
.widget a { color: var(--mt-ink-soft); }
.widget a:hover { color: var(--mt-saffron-dk); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, .ast-small-footer, .footer-sml-layout-2, .site-primary-footer-wrap {
  background: var(--mt-ink) !important;
  color: #c8cfe0 !important;
  border: 0 !important;
}
.site-footer a, .ast-small-footer a { color: #fff !important; }
.site-footer a:hover { color: var(--mt-saffron) !important; }
.ast-small-footer { border-top: 3px solid var(--mt-saffron) !important; }

/* ============================================================
   COMMENTS (wpDiscuz + native)
   ============================================================ */
#comments, .wpdiscuz-comment-post {
  background: var(--mt-card); border: 1px solid var(--mt-line);
  border-radius: var(--mt-radius); padding: 1.8rem; margin-top: 2.5rem; box-shadow: var(--mt-shadow);
}
.comments-title, .wpd-thread-head .wpd-thread-info h2 { font-family: var(--mt-serif); color: var(--mt-ink); }
#wpdcom.wpd-default { --wpd-primary: var(--mt-saffron); }

/* Don't let the global saffron button style hijack wpDiscuz's editor toolbar */
#wpdcom button:not(.wpd-prim-button),
#wpdcom .wpd-editor-buttons-left button,
#wpdcom .wpd-editor-buttons-right button {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  padding: 4px 7px !important;
  color: var(--mt-ink-soft) !important;
}
#wpdcom button:not(.wpd-prim-button):hover { background: #f3ece0 !important; color: var(--mt-saffron-dk) !important; }
/* Keep only the primary submit / reply buttons as saffron pills */
#wpdcom .wpd-prim-button {
  background: var(--mt-saffron) !important; color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(224,120,26,.28) !important;
  padding: .7em 1.6em !important;
}

/* ============================================================
   BRAND LOGO
   ============================================================ */
.custom-logo, .site-logo-img .custom-logo { max-height: 58px; width: auto; }
.ast-site-identity { padding: .3rem 0; }
/* The logo carries the wordmark — hide the redundant text title/tagline in the header */
.site-header .site-title,
.site-header .site-description { display: none !important; }

/* ============================================================
   PRE-FOOTER BAND — Recent · Trending · Explore
   ============================================================ */
.mt-prefooter {
  background: radial-gradient(900px 300px at 15% -60px, rgba(224,120,26,.08), transparent 70%), linear-gradient(180deg, #fff8ef, var(--mt-cream));
  border-top: 1px solid var(--mt-line);
  padding: 3.6rem 1.5rem 3.2rem;
}
.mt-prefooter-inner {
  max-width: var(--mt-maxwide); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1.15fr .7fr; gap: 2.6rem;
}
.mt-rail-title {
  font-family: var(--mt-serif); font-size: 1.05rem; color: var(--mt-ink);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 1.2rem; padding-bottom: .7rem; position: relative;
}
.mt-rail-title::after { content:""; position:absolute; left:0; bottom:-1px; width:46px; height:3px; background: var(--mt-saffron); border-radius:2px; }
.mt-rail-list { list-style: none; margin: 0; padding: 0; }
.mt-rail-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem 0; border-bottom: 1px solid var(--mt-line-soft);
}
.mt-rail-item:last-child { border-bottom: 0; }
.mt-rail-rank {
  font-family: var(--mt-serif); font-weight: 700; font-size: 1.5rem;
  color: var(--mt-saffron); width: 1.5rem; text-align: center; flex: none; opacity: .85;
}
.mt-rail-link { display: flex; align-items: center; gap: .85rem; flex: 1; }
.mt-rail-thumb-wrap { flex: none; }
.mt-rail-thumb-wrap img,
.mt-prefooter .mt-rail-thumb {
  width: 54px !important; height: 54px !important; object-fit: cover;
  border-radius: 9px; display: block;
}
.mt-rail-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mt-rail-cat { font-family: var(--mt-sans); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mt-saffron-dk); }
.mt-rail-headline {
  font-family: var(--mt-serif); font-size: 1rem; line-height: 1.25; color: var(--mt-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mt-rail-link:hover .mt-rail-headline { color: var(--mt-saffron-dk); }
.mt-rail-meta { font-family: var(--mt-sans); font-size: .72rem; color: var(--mt-muted); margin-top: .15rem; }

/* Explore column */
.mt-cat-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.mt-cat-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px solid var(--mt-line-soft);
  font-family: var(--mt-serif); color: var(--mt-ink);
}
.mt-cat-list li a:hover { color: var(--mt-saffron-dk); }
.mt-cat-list li a em { font-style: normal; font-family: var(--mt-sans); font-size: .72rem; color: var(--mt-muted); background: #fff; border: 1px solid var(--mt-line); border-radius: 999px; padding: .05rem .55rem; }
.mt-explore-all { font-family: var(--mt-sans); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mt-saffron-dk); }

/* Legal links row */
.mt-prefooter-legal { max-width: var(--mt-maxwide); margin: 2.4rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--mt-line); }
.mt-legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; }
.mt-legal-menu a { font-family: var(--mt-sans); font-size: .82rem; color: var(--mt-muted); }
.mt-legal-menu a:hover { color: var(--mt-saffron-dk); }

/* ============================================================
   SEARCH
   ============================================================ */
/* Branded search form (pill) */
.mt-search-form {
  display: flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--mt-line); border-radius: 999px;
  padding: .3rem .3rem .3rem 1.1rem; box-shadow: var(--mt-shadow);
  width: 100%; max-width: 560px;
}
.mt-search-ic { color: var(--mt-muted); display: flex; flex: none; }
.mt-search-input,
.mt-search-form input[type="search"].mt-search-input {
  flex: 1; min-width: 0; background: transparent;
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
  -webkit-appearance: none; appearance: none; border-radius: 0;
  font-family: var(--mt-sans); font-size: 1rem; color: var(--mt-ink); padding: .5rem .3rem;
}
/* kill the browser/Astra focus box (the "blue line") in every state */
.mt-search-input:focus,
.mt-search-input:focus-visible,
.mt-search-form input[type="search"].mt-search-input:focus {
  border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent;
}
.mt-search-input::placeholder { color: #9aa1b0; }
/* hide the native search clear/decoration button */
.mt-search-input::-webkit-search-decoration,
.mt-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mt-search-go { flex: none; cursor: pointer; display: inline-flex !important; align-items: center; gap: .45rem; }
.mt-search-go-ic { display: inline-flex; }
.mt-search-go-ic svg { width: 15px; height: 15px; }

/* Large variant (overlay) */
.mt-search-form--lg { padding: .45rem .45rem .45rem 1.4rem; border-radius: 16px; box-shadow: 0 12px 40px rgba(27,37,64,.16); }
.mt-search-form--lg .mt-search-ic svg { width: 22px; height: 22px; }
.mt-search-form--lg .mt-search-input { font-size: 1.18rem; padding: .75rem .3rem; }
.mt-search-form--lg .mt-search-go { padding: .85em 1.7em !important; font-size: 1rem; }

/* Quick-search chips */
.mt-search-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.7rem; }
.mt-chips-label { font-family: var(--mt-sans); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--mt-muted); margin-right: .2rem; }
.mt-chip {
  display: inline-block; font-family: var(--mt-sans); font-size: .85rem; font-weight: 500;
  color: var(--mt-ink); background: #fff; border: 1px solid var(--mt-line);
  border-radius: 999px; padding: .42em .95em; transition: transform .16s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.mt-chip:hover { background: var(--mt-saffron); color: #fff; border-color: var(--mt-saffron); transform: translateY(-1px); }

/* Live search-as-you-type results */
.mt-search-live { margin-top: 1.1rem; text-align: left; max-height: 44vh; overflow-y: auto; display: none; }
.mt-search-live.is-visible { display: block; }
.mt-search-live::-webkit-scrollbar { width: 8px; }
.mt-search-live::-webkit-scrollbar-thumb { background: var(--mt-line); border-radius: 8px; }
.mt-live-head { font-family: var(--mt-sans); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--mt-muted); padding: .2rem .5rem .7rem; }
.mt-live-item { display: flex; align-items: center; gap: .9rem; padding: .6rem; border-radius: 12px; transition: background .15s ease; }
.mt-live-item:hover { background: #fff; }
.mt-live-thumb { flex: none; }
.mt-live-thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; display: block; box-shadow: var(--mt-shadow); }
.mt-live-body { display: flex; flex-direction: column; gap: .08rem; min-width: 0; flex: 1; }
.mt-live-cat { font-family: var(--mt-sans); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mt-saffron-dk); }
.mt-live-title { font-family: var(--mt-serif); font-size: 1.02rem; color: var(--mt-ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-live-date { font-family: var(--mt-sans); font-size: .72rem; color: var(--mt-muted); }
.mt-live-arrow { flex: none; color: var(--mt-saffron); font-size: 1.1rem; opacity: 0; transform: translateX(-5px); transition: opacity .18s ease, transform .18s ease; }
.mt-live-item:hover .mt-live-arrow { opacity: 1; transform: translateX(0); }
.mt-live-loading, .mt-live-empty { padding: 1.3rem; text-align: center; color: var(--mt-muted); font-size: .9rem; }
.mt-live-empty span { font-size: .8rem; opacity: .85; }
.mt-live-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--mt-line); border-top-color: var(--mt-saffron); border-radius: 50%; margin-right: .5rem; vertical-align: -2px; animation: mt-spin .7s linear infinite; }
@keyframes mt-spin { to { transform: rotate(360deg); } }

/* ============================================================
   ADS
   ============================================================ */
.mt-ad { margin: 2.6rem auto; text-align: center; max-width: 728px; clear: both; }
.mt-ad-label {
  display: block; font-family: var(--mt-sans); font-size: .58rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mt-muted);
  margin-bottom: .45rem;
}
.mt-ad ins, .mt-ad .adsbygoogle { display: block; margin: 0 auto; }
.mt-ad-placeholder {
  border: 1px dashed #e0c9a6; border-radius: 12px; padding: 1.6rem 1.2rem;
  color: var(--mt-muted); background: #fff8ef; font-family: var(--mt-sans); font-size: .85rem; line-height: 1.5;
}
.mt-ad-placeholder code { background: #fff; padding: .1em .45em; border-radius: 4px; color: var(--mt-saffron-dk); }
.mt-ad-placeholder span { font-size: .78rem; }

/* Header nav search toggle (icon) */
.mt-search-toggle-li { display: flex; align-items: center; }
.mt-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--mt-ink) !important; border: 1px solid transparent;
}
.mt-search-toggle::after { display: none !important; }
.mt-search-toggle:hover { color: var(--mt-saffron-dk) !important; background: #fff; border-color: var(--mt-line); }

/* Homepage hero search */
.mt-masthead-search { margin: 2rem auto 0; display: flex; justify-content: center; }
.mt-search-wrap { position: relative; }
.mt-masthead-search .mt-search-wrap--live { width: 100%; max-width: 560px; }
.mt-masthead-search .mt-search-form { max-width: 100%; }
/* hero live results as an absolute dropdown below the field */
.mt-masthead-search .mt-search-live {
  position: absolute; top: calc(100% + .55rem); left: 0; right: 0; margin: 0;
  text-align: left; z-index: 60; background: #fff;
  border: 1px solid var(--mt-line); border-radius: 14px;
  box-shadow: var(--mt-shadow-lg); padding: .5rem; max-height: 62vh; overflow-y: auto;
  display: none;
}
.mt-masthead-search .mt-search-live.is-visible { display: block; }

/* Full-screen overlay */
.mt-search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(27,37,64,.55); backdrop-filter: blur(8px) saturate(140%);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
body.mt-search-open .mt-search-overlay { opacity: 1; visibility: visible; }
.mt-search-overlay-inner {
  position: relative; margin-top: 12vh; width: min(720px, 92vw); text-align: center;
  background: linear-gradient(180deg, #fffdf9, var(--mt-cream)); border-radius: 20px; padding: 3.2rem 2.6rem 2.8rem;
  box-shadow: var(--mt-shadow-lg); border: 1px solid rgba(255,255,255,.6);
  transform: translateY(-16px); transition: transform .28s ease;
}
body.mt-search-open .mt-search-overlay-inner { transform: translateY(0); }
.mt-search-overlay-inner .mt-flourish { font-size: .95rem; }
.mt-search-overlay-inner h2 { font-family: var(--mt-serif); font-size: clamp(1.8rem, 4vw, 2.3rem); margin: .9rem 0 1.7rem; }
.mt-search-overlay-inner .mt-search-form { margin: 0 auto; }
.mt-search-close {
  position: absolute; top: -3.6rem; right: -.2rem; display: inline-flex;
  background: transparent !important; box-shadow: none !important;
  border: 0 !important; color: rgba(255,255,255,.85) !important; line-height: 1;
  padding: .3rem !important; cursor: pointer; transition: color .18s ease, transform .18s ease;
}
.mt-search-close:hover { color: #fff !important; transform: rotate(90deg); }

/* Search results banner */
.mt-search-head { text-align: center; padding: 3.4rem 1.5rem 1rem; }
.mt-search-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .8rem auto 1.5rem; }
.mt-search-head .mt-search-form { margin: 0 auto; }
/* my branded banner replaces Astra's default search title/breadcrumb box */
.search .ast-archive-description { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 921px) {
  .blog .ast-row, .archive .ast-row, .search-results .ast-row { grid-template-columns: 1fr 1fr; }
  .mt-prefooter-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mt-rail--explore { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .blog .ast-row, .archive .ast-row, .search-results .ast-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .mt-masthead { padding: 3rem 1.2rem 2.4rem; }
  .mt-prefooter-inner { grid-template-columns: 1fr; gap: 2rem; }
}
