/* DNMP Portal 9.0M FK10-UI1 — standalone full-body shell correction.
 * Loaded after every legacy/component stylesheet.  It deliberately leaves the
 * protected Plugin 6.7.9.8 component assets untouched and corrects only the
 * standalone page canvas, top-level route wrappers and duplicated spacing.
 */

html{
  min-width:320px;
  background:#0d0b16;
  overflow-x:clip;
}

body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay{
  --dnmp-bg:#211d38;
  --dnmp-alt:#1b1830;
  --dnmp-card:#211d38;
  --dnmp-surface:#211d38;
  --dnmp-text:#f3ecd9;
  --dnmp-muted:#ada5bb;
  --dnmp-border:rgba(233,184,74,.22);
  --dnmp-gold:#e9b84a;
  --dnmp-fullbody-gutter:clamp(10px,2.5vw,48px);
  margin:0;
  min-width:320px;
  min-height:100vh;
  padding:0;
  overflow-x:clip;
  color:#f3ecd9;
  color-scheme:dark;
  background:
    radial-gradient(circle at 8% 7%,rgba(47,166,154,.10),transparent 24%),
    radial-gradient(circle at 92% 38%,rgba(217,84,43,.09),transparent 25%),
    radial-gradient(circle at 50% 100%,rgba(233,184,74,.07),transparent 30%),
    #14121f;
}

/* The standalone page itself owns the theme background.  Do not place a light
 * WordPress-like canvas behind the Panchang application. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main{
  width:100%;
  min-width:0;
  min-height:72vh;
  padding:clamp(14px,2vw,30px) 0 clamp(24px,3vw,42px);
  background:transparent;
}

/* Full-body public content canvas.  Header/footer remain bounded only by a very
 * wide safety width; the main application no longer inherits the old 1280px
 * WordPress content-column limit. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container{
  width:100%;
  max-width:none;
  margin:0;
  padding-inline:var(--dnmp-fullbody-gutter);
  min-width:0;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-utility > .dnmp-subdomain-container,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-header > .dnmp-subdomain-container,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-footer > .dnmp-subdomain-container{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin:0;
  padding-inline:var(--dnmp-fullbody-gutter);
}

/* The old Mithila Astro `.dnmp` rule was intended to decorate a WordPress
 * content block.  In the standalone Portal it wrapped the ENTIRE website in a
 * second framed card.  Strip decoration only from the direct page root; child
 * cards/hero/panels retain the canonical Plugin styling. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container > .dnmp:not(.dnmp-widget){
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  isolation:auto;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container > .dnmp:not(.dnmp-widget)::before,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container > .dnmp:not(.dnmp-widget)::after{
  display:none;
  content:none;
}

/* Remove the second 1180px route cap introduced by the parity repair.  These
 * are page roots, not prose columns.  Reading-heavy prose remains constrained
 * by its own `.dnmp-cms-body`/article rules for legibility. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-library,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-detail,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-guide-index,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-knowledge-index,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-content-single,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-festival-single,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-knowledge-single,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-home-legacy,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-hub,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-birth-signs,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-structured-data,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-standalone-content > .page-head,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-standalone-content > .panel{
  width:100%;
  max-width:none;
  margin-inline:0;
}

/* Wide standalone canvases need fluid card counts instead of stretching a
 * legacy 3-column card to excessive widths. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-grid,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-guide-grid,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-knowledge-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-legacy-service-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-portal-upcoming__track{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
}

/* Keep intentional reading widths, but center the readable text INSIDE the
 * full-body route rather than narrowing the entire website. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-cms-body{
  width:min(100%,900px);
  max-width:900px;
  margin-inline:auto;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-prose,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-content-single .dnmp-cms-body{
  overflow-wrap:anywhere;
}

/* First/last-child spacing guards prevent invisible top/bottom bands when a
 * route renderer itself already supplies section spacing. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container > :first-child{
  margin-top:0;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container > :last-child{
  margin-bottom:0;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-builder-page-intro:first-child,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-builder-page-tools:first-child{
  margin-top:0;
}

/* Defensive overflow treatment for route content. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main img,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main svg,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main video,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main iframe{
  max-width:100%;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main table{
  max-width:100%;
}

@media(max-width:680px){
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay{
    --dnmp-fullbody-gutter:8px;
    padding-bottom:0!important;
  }
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main{
    padding:10px 0 22px;
  }
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay.dnmp-portal-home .dnmp-subdomain-main{
    padding-top:8px;
  }
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-utility > .dnmp-subdomain-container,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-header > .dnmp-subdomain-container,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-footer > .dnmp-subdomain-container{
    width:100%;
  }
  /* Reserve fixed bottom-nav clearance at the footer, not once on body and
   * again on main.  This removes the large blank band between content/footer. */
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-footer{
    padding-bottom:calc(92px + env(safe-area-inset-bottom));
  }
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-library,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-detail,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-guide-index,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-knowledge-index,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-content-single,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-festival-single,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-knowledge-single,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-hub,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-birth-signs,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-structured-data{
    margin-bottom:18px;
  }
}

@media print{
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay,
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main{
    background:#fff!important;
    color:#111!important;
  }
  body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-subdomain-main > .dnmp-subdomain-container{
    padding:0!important;
  }
}

/* -------------------------------------------------------------------------
 * Legacy-dark consistency pass
 * -------------------------------------------------------------------------
 * Several features added after the original Astro skin used hard-coded light
 * WordPress surfaces.  They become isolated cream/white islands when rendered
 * inside the standalone dark Portal.  Normalize those feature surfaces here,
 * without rewriting the protected component styles themselves.
 */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp{
  --dnmp-soft:#292443;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-mithila-heritage{
  border-color:rgba(233,184,74,.22);
  background:radial-gradient(circle at 90% 10%,rgba(233,184,74,.08),transparent 32%),linear-gradient(145deg,#211d38,#1b1830);
  color:var(--dnmp-text);
  box-shadow:0 14px 38px rgba(4,3,10,.20);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-mithila-heritage__stats{
  border:1px solid rgba(233,184,74,.18);
  background:rgba(233,184,74,.06);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-mithila-heritage__links a{
  border-color:rgba(233,184,74,.25);
  background:#1b1830;
  color:#e9b84a;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-authority,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ownership-note,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-state-note,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-review-notice,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-inline-safety,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-health-safe,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-madhushravani-today,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-workspace-recovery,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-workspace-offline{
  border-color:rgba(233,184,74,.22);
  background:#2b2417;
  color:#f3dfaa;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-state-note.is-warning,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-review-notice.is-blocked{
  border-color:rgba(217,84,43,.35);
  background:#2d1b1b;
  color:#f0b6a4;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-steps li,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-mantra-grid article,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-timeline > article{
  border:1px solid rgba(233,184,74,.15);
  background:#1b1830;
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-timeline > article > span,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-guide-card__chips > span,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-review-badge,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-foundation-candidate{
  background:rgba(233,184,74,.10);
  color:#f0cf7d;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-review-badge.is-warning,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-review-badge.is-blocked{
  background:rgba(217,84,43,.13);
  color:#efaa95;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-cautions{
  background:#2d1b1b;
  color:#f1c0b1;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-vault-record__summary{
  border-color:rgba(233,184,74,.16);
  background:#171426;
  color:var(--dnmp-text);
}

/* Journey / Dikshool */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__origin,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__suggestions,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__suggestion{
  border-color:rgba(233,184,74,.16);
  background:#1b1830;
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__suggestion:hover,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__suggestion:focus-visible{
  background:#292443;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-field input,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-field select{
  border-color:rgba(233,184,74,.22);
  background:#171426;
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__badge.is-caution,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__badge.is-adjacent,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__badge.is-contextual-caution{
  background:rgba(233,184,74,.12);
  color:#f0cf7d;
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__badge.is-unfavourable-if-flexible,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-journey__badge.is-exact{
  background:rgba(217,84,43,.14);
  color:#f1a58f;
}

/* Muhurat finder */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-finder__location,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-result-card,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-result-card.is-alternative{
  border-color:rgba(233,184,74,.18);
  background:#1b1830;
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-finder__personal{
  border-color:rgba(233,184,74,.18);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-finder__privacy,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-disclaimer{
  color:var(--dnmp-muted);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-panchang span{
  background:#292443;
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-muhurat-actions button{
  border-color:#e9b84a;
  background:transparent;
  color:#e9b84a;
}

/* Kundli / matching */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-match-score__number{
  background:linear-gradient(145deg,#292443,#171426);
  border-color:rgba(233,184,74,.28);
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-koota-grid article,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-manglik-grid article{
  border-color:rgba(233,184,74,.16);
  background:#211d38;
  color:var(--dnmp-text);
}
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-koota-grid em,
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-manglik-grid em{
  background:rgba(233,184,74,.10);
  color:#f0cf7d;
}

/* Readiness/status blocks that were WordPress-admin white. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-readiness-list li{
  border-left-color:#e9b84a;
  background:#1b1830;
  color:var(--dnmp-text);
}

/* The user-selectable ritual reading mode must not invert the entire route to
 * a white sheet while the Portal is using the Legacy Mithila dark preset. */
body.dnmp-subdomain-site.dnmp-preset-legacy_mithila_overlay .dnmp-ritual-detail.is-night-reading{
  --dnmp-bg:#14121f;
  --dnmp-card:#211d38;
  --dnmp-alt:#1b1830;
  --dnmp-text:#f3ecd9;
  --dnmp-muted:#ada5bb;
  --dnmp-border:rgba(233,184,74,.22);
  background:transparent!important;
  color:var(--dnmp-text)!important;
}

/* FK12-PDF1: friendly annual-data/PDF availability states. */
.dnmp-service-state,.dnmp-widget-service-state{border:1px solid color-mix(in srgb,var(--dnmp-accent,#c18b38) 45%,transparent);border-radius:14px;padding:20px;background:color-mix(in srgb,var(--dnmp-surface,#1a1723) 92%,#000);color:inherit}
.dnmp-widget-service-state{margin:0;padding:14px;font-size:14px;line-height:1.5}.dnmp-widget-service-state strong{display:block;margin-bottom:6px}.dnmp-widget-service-state p{margin:0;opacity:.84}
.dnmp-year-month__actions{display:flex;gap:6px}.dnmp-year-month__actions a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:30px;border-radius:8px;text-decoration:none}
@media print{.dnmp-year-nav,.dnmp-toolbar,.dnmp-subdomain-header,.dnmp-subdomain-footer,.dnmp-mobile-bar{display:none!important}.dnmp-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.dnmp-year-month{break-inside:avoid!important;page-break-inside:avoid!important}}
.dnmp-year-data-notice{margin:14px 0 4px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--dnmp-accent,#c18b38) 38%,transparent);border-radius:12px;background:color-mix(in srgb,var(--dnmp-accent,#c18b38) 9%,var(--dnmp-surface,#1a1723));line-height:1.55}
.dnmp-year-data-notice strong{display:block;margin-bottom:4px}.dnmp-year-data-notice p{margin:0;opacity:.86}.dnmp-date-badge.is-warning{border-color:color-mix(in srgb,#e9b84a 52%,transparent);background:rgba(233,184,74,.10)}
@media print{.dnmp-year-data-notice{display:none!important}}
