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