/* Vangmaya stylesheet: shared layout, editor and manager styles first, then the saffron theme (which overrides them). */

/* ===== Shared layout, editor and manager styles (from the Satpathi platform) ===== */
/* Satpathi Printers and Publishers — extends ../css/style.css */

:root { --gold: #d9a441; }

body { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; }
[lang="hi"] { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; line-height: 1.8; }

/* ---------- Brand lockup ---------- */
.sp-brand { display: flex; align-items: center; gap: 12px; }
.sp-brand__mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.sp-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.sp-brand__text strong { font-family: 'Poppins', sans-serif; font-size: 1.05rem; color: var(--navy-900); }
.sp-brand__text small { font-size: 0.72rem; color: var(--teal-500); font-weight: 600; letter-spacing: 0.04em; }
.sp-mobile-only { display: none; }

/* ---------- Hero ---------- */
.sp-hero { background: var(--gradient-brand); color: #fff; padding: 88px 0 80px; position: relative; overflow: hidden; }
.sp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 85% 15%, rgba(79,208,220,0.30), transparent 45%),
                    radial-gradient(circle at 5% 95%, rgba(217,164,65,0.18), transparent 40%);
}
.sp-hero .container { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.sp-hero h1 { color: #fff; margin-bottom: 14px; }
.sp-hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.sp-hero .eyebrow { color: var(--gold); }
.sp-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.sp-pagehead { background: var(--gradient-brand); color: #fff; padding: 56px 0 48px; }
.sp-pagehead h1 { color: #fff; margin-bottom: 8px; }
.sp-pagehead p { color: rgba(255,255,255,0.86); margin: 0; max-width: 680px; }
.sp-pagehead .breadcrumb { margin-bottom: 12px; }

/* ---------- Feature tiles ---------- */
.sp-tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.sp-tile .stream-card__icon { font-size: 1.4rem; }
.sp-tile p { flex: 1; }

/* ---------- Section header row ---------- */
.sp-row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sp-row-head h2 { margin: 0; }
.sp-link { font-weight: 700; color: var(--teal-500); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 24px; cursor: pointer; display: flex; text-decoration: none; color: inherit; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover, .post-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); outline: none; }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card p { margin: 0; font-size: 0.92rem; flex: 1; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-foot { font-size: 0.8rem; color: var(--grey-500); display: flex; justify-content: space-between; }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: var(--gradient-brand-soft); color: var(--teal-500); letter-spacing: 0.03em;
}
.pill--sample { background: #fff4d9; color: #8a6310; }
.empty { text-align: center; color: var(--grey-500); padding: 48px 0; grid-column: 1 / -1; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--grey-200); background: #fff; color: var(--navy-900);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  font-family: inherit; transition: all .15s ease;
}
.chip:hover { border-color: var(--teal-400); }
.chip.is-active { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.search-input {
  margin-left: auto; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--grey-200);
  min-width: 220px; font-family: inherit; font-size: 0.9rem; background: var(--grey-100);
}
.search-input:focus { outline: none; border-color: var(--teal-400); background: #fff; }

/* ---------- Reader modal ---------- */
.reader { position: fixed; inset: 0; background: rgba(7,28,61,0.65); z-index: 300; display: none; padding: 24px; overflow-y: auto; }
.reader.is-open { display: block; }
.reader__box { max-width: 760px; margin: 24px auto; background: #fff; border-radius: 18px; padding: 40px; position: relative; box-shadow: var(--shadow-lg); }
.reader__close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--grey-100); font-size: 1.3rem; cursor: pointer; color: var(--navy-900);
}
.reader__box h2 { margin: 12px 0 8px; }
.reader__box .byline { font-size: 0.85rem; color: var(--grey-500); margin-bottom: 20px; }
.reader__body p, .reader__body li { color: var(--ink); font-size: 1.02rem; }
.reader__body ul { padding-left: 22px; }

/* ---------- Order form ---------- */
.order-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.form-section { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.form-section h3 { margin-bottom: 18px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.form-section h3 span {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.req { color: #c0392b; }
.order-side { position: sticky; top: 96px; }
.order-actions { display: grid; gap: 12px; margin-top: 8px; }
.btn--whatsapp { background: #1fa855; color: #fff; justify-content: center; border: none; box-shadow: var(--shadow-sm); }
.btn--email { background: var(--gradient-brand); color: #fff; justify-content: center; border: none; box-shadow: var(--shadow-sm); }
.btn--plain { background: var(--grey-100); color: var(--navy-900); justify-content: center; border: 1.5px solid var(--grey-200); }
.summary-box {
  background: var(--grey-100); border: 1px dashed var(--teal-400); border-radius: 12px; padding: 16px;
  font-size: 0.85rem; white-space: pre-wrap; word-break: break-word; color: var(--ink); display: none; margin-top: 16px;
  max-height: 300px; overflow: auto;
}
.summary-box.is-visible { display: block; }
.toast { font-size: 0.85rem; color: #1b7f46; margin-top: 8px; min-height: 1.2em; }

/* ---------- Footer tweaks ---------- */
.sp-footer-note { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .order-wrap { grid-template-columns: 1fr; }
  .order-side { position: static; }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav__cta .btn--primary { display: none; }
  .sp-mobile-only { display: block; }
  .sp-brand__text strong { font-size: 0.92rem; }
  .sp-brand__text small { display: none; }
  .search-input { margin-left: 0; width: 100%; }
  .reader__box { padding: 28px 20px; }
}

/* ---------- Long-form article typography ---------- */
.reader__body h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.reader__body h4 { font-size: 1.02rem; margin: 20px 0 8px; color: var(--teal-500); }
.reader__body blockquote {
  margin: 16px 0; padding: 14px 20px; border-left: 4px solid var(--teal-400);
  background: var(--grey-100); border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink);
}

/* ---------- Author Desk (editor) ---------- */
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.ed-meta { padding: 24px; margin-bottom: 16px; }
.ed-meta:hover { transform: none; box-shadow: none; border-color: var(--grey-200); }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.ed-grid .form-field { margin-bottom: 8px; }
.ed-title { font-size: 1.25rem !important; font-weight: 600; }
.is-hi { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }

.ed-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 10px;
  background: #fff; border: 1px solid var(--grey-200); border-radius: 12px 12px 0 0;
  position: sticky; top: 70px; z-index: 20; box-shadow: var(--shadow-sm);
}
.tb-btn {
  min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--navy-900); font-size: 0.85rem; font-family: inherit; cursor: pointer;
}
.tb-btn:hover { background: var(--grey-100); }
.tb-btn.is-on { background: var(--gradient-brand); color: #fff; }
.tb-sep { width: 1px; height: 24px; background: var(--grey-200); margin: 0 4px; }
.tb-select { height: 34px; border: 1px solid var(--grey-200); border-radius: 8px; background: #fff; padding: 0 8px; font-family: inherit; font-size: 0.85rem; }
.tb-color { position: relative; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tb-color:hover { background: var(--grey-100); }
.tb-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.tb-c-a { font-weight: 800; border-bottom: 4px solid var(--teal-500); line-height: 1; }
.tb-c-h { font-weight: 700; background: #fff3a3; padding: 0 3px; border-radius: 3px; font-size: 0.85rem; }

.ed-area {
  min-height: 460px; padding: 28px 32px; background: #fff; border: 1px solid var(--grey-200); border-top: 0;
  border-radius: 0 0 12px 12px; outline: none; font-size: 1.05rem; line-height: 1.8; color: var(--ink);
}
.ed-area:focus { border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(43,182,196,0.15); }
.ed-area:empty::before { content: attr(data-ph); color: var(--grey-500); }
.ed-area img, .reader__body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.ed-area a, .reader__body a { color: var(--teal-500); text-decoration: underline; }
.ed-area table, .reader__body table { border-collapse: collapse; margin: 14px 0; width: 100%; }
.ed-area th, .ed-area td, .reader__body th, .reader__body td { border: 1px solid var(--grey-200); padding: 8px 12px; text-align: left; }
.ed-area th, .reader__body th { background: var(--grey-100); }
.ed-area blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--teal-400); background: var(--grey-100); border-radius: 0 10px 10px 0; }
.ed-area h2, .ed-area h3, .ed-area h4, .reader__body h2 { margin: 20px 0 8px; }
.ed-source { width: 100%; min-height: 460px; padding: 18px; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; border: 1px solid var(--grey-200); border-top: 0; border-radius: 0 0 12px 12px; }

.ed-statusbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--grey-500); margin: 10px 4px; }
.ed-mode.is-on { color: #1b7f46; font-weight: 700; }
.ed-save.is-bad { color: #c0392b; font-weight: 600; }
.ed-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.ed-actions .btn { min-width: 130px; justify-content: center; }
.ed-side { position: sticky; top: 90px; }
.ed-empty { font-size: 0.88rem; color: var(--grey-500); margin: 0; }
.ed-draft { padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: 10px; margin-bottom: 8px; }
.ed-draft.is-current { border-color: var(--teal-400); background: var(--gradient-brand-soft); }
.ed-draft__t { font-weight: 600; font-size: 0.9rem; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-draft__m { font-size: 0.76rem; color: var(--grey-500); margin: 2px 0 6px; }
.ed-draft__a button, .mg-actions button, .mg-btn {
  border: 1px solid var(--grey-200); background: #fff; border-radius: 8px; padding: 4px 10px; margin-right: 6px;
  font-size: 0.78rem; cursor: pointer; font-family: inherit; color: var(--navy-900); display: inline-block;
}
.ed-draft__a button:hover, .mg-actions button:hover, .mg-btn:hover { background: var(--grey-100); }
.ed-steps { margin: 0; padding-left: 20px; font-size: 0.9rem; color: var(--grey-700); }
.ed-steps li { margin-bottom: 6px; }
.ed-steps a, .form-note a { color: var(--teal-500); font-weight: 600; }
.ed-guide { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ed-guide td { border-bottom: 1px solid var(--grey-200); padding: 5px 4px; }
.ed-guide td:last-child { font-family: 'Noto Sans Devanagari', sans-serif; text-align: right; }

body.ed-full .ed-main { position: fixed; inset: 0; z-index: 250; background: #fff; overflow-y: auto; padding: 16px 24px 24px; }
body.ed-full .ed-toolbar { top: 0; }

/* ---------- Site Manager ---------- */
.mg-wrap { overflow-x: auto; }
.mg-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--grey-200); border-radius: 12px; overflow: hidden; font-size: 0.9rem; }
.mg-table th { background: var(--grey-100); text-align: left; padding: 10px 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-700); }
.mg-table td { padding: 10px 12px; border-top: 1px solid var(--grey-200); vertical-align: top; }
.mg-title { font-weight: 600; color: var(--navy-900); }
.mg-note { font-size: 0.76rem; font-weight: 400; color: var(--grey-500); margin-top: 2px; }
.mg-actions { white-space: nowrap; }
.mg-btn { text-decoration: none; }
tr.is-pending { background: #f3fbfc; }
tr.is-removed { background: #fdf0ee; }
tr.is-removed .mg-title { text-decoration: line-through; opacity: .65; }
.mg-msg { font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.mg-msg.is-ok { color: #1b7f46; }
.mg-msg.is-bad { color: #c0392b; }

@media (max-width: 960px) {
  .ed-layout { grid-template-columns: 1fr; }
  .ed-side { position: static; }
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-area { padding: 18px; }
  .ed-toolbar { top: 62px; }
}


/* Vangmaya — sober saffron theme. Builds on ../css/style.css; colour variables below re-skin the whole site. */

:root {
  --navy-950: #2a1608;   /* deepest brown: footer */
  --navy-900: #3b1f0e;   /* headings, dark surfaces */
  --navy-800: #5a2d12;
  --navy-700: #8a3d10;
  --teal-500: #a84f10;   /* primary: burnt saffron */
  --teal-400: #d4822c;   /* marigold */
  --teal-300: #f0b56a;   /* light saffron on dark */
  --cyan-200: #f7d9b0;
  --gold: #c9a24a;       /* antique gold accents */
  --ink: #2b2118;
  --grey-700: #5b4d40;
  --grey-500: #766859;
  --grey-200: #e8ddd0;
  --grey-100: #faf5ee;
  --gradient-brand: linear-gradient(120deg, #3b1f0e 0%, #7a3510 52%, #a84f10 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(59,31,14,0.05) 0%, rgba(184,91,20,0.10) 100%);
  --shadow-sm: 0 2px 8px rgba(59, 31, 14, 0.09);
  --shadow-md: 0 8px 24px rgba(59, 31, 14, 0.13);
  --shadow-lg: 0 20px 48px rgba(59, 31, 14, 0.20);
}
body { background: #fffdfa; }
h1, h2, h3 { font-family: 'Playfair Display', 'Noto Serif Devanagari', Georgia, serif; letter-spacing: 0.005em; }
h4 { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; }
[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3, h1[lang="hi"], h2[lang="hi"], h3[lang="hi"],
.post-card[lang="hi"] h3, .reader [lang="hi"] h2 { font-family: 'Noto Serif Devanagari', 'Playfair Display', serif; font-weight: 700; }
.site-header { background: rgba(255, 253, 250, 0.94); border-bottom-color: var(--grey-200); }
.nav__links a.active, .nav__links a:hover { color: var(--teal-500); }
.reader { background: rgba(42, 22, 8, 0.66); }
.btn--primary { background: var(--teal-500); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #8f420c; }
.chip.is-active, .tb-btn.is-on { background: var(--teal-500); }
.pill--sample { background: #f6ecd2; color: #7a5a10; }
.sp-hero::before, .vg-hero::before {
  background-image: radial-gradient(circle at 85% 12%, rgba(240,181,106,0.28), transparent 46%),
                    radial-gradient(circle at 6% 95%, rgba(201,162,74,0.20), transparent 42%);
}

/* ---------- Brand lockup ---------- */
.vg-brand { display: flex; align-items: center; gap: 12px; }
.vg-mark {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.5rem; line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold);
}
.vg-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.vg-brand__text strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; color: var(--navy-900); font-weight: 700; letter-spacing: 0.01em; }
.vg-brand__text small { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--teal-500); font-weight: 700; margin-top: 3px; }

/* ---------- Hero ---------- */
.vg-hero { position: relative; overflow: hidden; background: var(--gradient-brand); color: #fff; padding: 96px 0 88px; text-align: center; }
.vg-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.vg-hero .container { position: relative; z-index: 1; max-width: 860px; }
.vg-hero__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(3.2rem, 9vw, 5.6rem); line-height: 1.1; color: #fff; margin: 0; }
.vg-hero__latin { display: block; letter-spacing: 0.34em; font-size: 0.85rem; font-weight: 600; color: var(--teal-300); margin: 10px 0 22px; padding-left: 0.34em; }
.vg-rule { width: 84px; height: 3px; background: var(--gold); margin: 0 auto 22px; border-radius: 2px; }
.vg-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; }
.vg-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.vg-hero .btn--primary { background: #fff; color: var(--navy-900); }
.vg-hero .btn--primary:hover { background: var(--cyan-200); }

.sp-pagehead { background: var(--gradient-brand); }
.sp-pagehead h1 { font-family: 'Playfair Display', serif; }

/* ---------- Footer ---------- */
.vg-footer .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
.vg-footer .vg-brand__text strong { color: #fff; }
.vg-footer .vg-brand__text small { color: var(--teal-300); }
.vg-footer .vg-mark { box-shadow: 0 0 0 3px var(--navy-950), 0 0 0 4px var(--gold); }
.vg-foot-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.vg-foot-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem; font-weight: 600; transition: background .2s ease, border-color .2s ease;
}
.vg-foot-btn:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }

@media (max-width: 960px) { .vg-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .vg-footer .footer-grid { grid-template-columns: 1fr; }
  .vg-brand__text strong { font-size: 1.3rem; }
  .vg-brand__text small { display: none; }
  .vg-footer .vg-brand__text small { display: block; }
  .vg-hero__latin { letter-spacing: 0.2em; font-size: 0.72rem; }
  .vg-hero { padding: 72px 0 64px; }
}


/* ---------- Single post page ---------- */
.vg-post { max-width: 760px; margin: 0 auto; }
.vg-post h1 { margin: 12px 0 8px; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.vg-post .byline { font-size: 0.9rem; color: var(--grey-500); margin-bottom: 24px; }
.vg-post .breadcrumb { margin-bottom: 18px; }
.vg-post [lang="hi"] h1, .vg-post[lang="hi"] h1, .vg-post__inner[lang="hi"] h1 { font-family: 'Noto Serif Devanagari', 'Playfair Display', serif; font-weight: 700; }
.vg-share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--grey-200); }
