/* MagPal blog navy-and-gold palette — scoped to MagPal's native UI */
:root {--jh-bg:#0b1729;--jh-panel:#15263c;--jh-panel2:#101e32;--jh-border:#2b415b;--jh-text:#d2dce8;--jh-title:#f7f3eb;--jh-gold:#e6b46f;}
html,body,body.custom-background,.magpal-site-container,.magpal-outer-wrapper,.magpal-posts-outer-wrapper,.magpal-posts-wrapper,.magpal-posts-wrapper-inside,.magpal-posts-content,.magpal-post-content-outer-wrapper,.magpal-post-content-wrapper,.magpal-non-singular-page,.magpal-singular-page {background:var(--jh-bg)!important;color:var(--jh-text)!important;}
body {color:var(--jh-text)!important;}
.magpal-header-outer-wrapper,.magpal-site-header,.magpal-header-inside,.magpal-header-inside-container,.magpal-header-inside-content,.magpal-secondary-menu-outer-wrapper,.magpal-footer-outer-wrapper,.magpal-bottom-footer-block {background:var(--jh-panel2)!important;color:var(--jh-text)!important;border-color:var(--jh-border)!important;}
.magpal-nav-primary,.magpal-nav-secondary,.magpal-primary-menu-container,.magpal-primary-menu-container-inside {background:var(--jh-panel2)!important;border-color:var(--jh-border)!important;}
.magpal-site-header a,.magpal-header-outer-wrapper a,.magpal-nav-primary a,.magpal-nav-secondary a,.magpal-footer-outer-wrapper a {color:var(--jh-title)!important;}
.magpal-nav-primary a:hover,.magpal-nav-secondary a:hover,.magpal-footer-outer-wrapper a:hover {color:var(--jh-gold)!important;}
.magpal-grid-post,.magpal-grid-post-inside,.magpal-grid-post-block,.magpal-grid-post-details,.magpal-grid-post-snippet,.magpal-grid-post-snippet-inside,.magpal-post-singular,.magpal-post-singular-inside,.magpal-box,.magpal-box-inside,.magpal-widget-box,.magpal-widget-box-inside,.magpal-page-header,.magpal-page-header-inside,.magpal-posts-header,.magpal-posts-heading {background:var(--jh-panel)!important;color:var(--jh-text)!important;border-color:var(--jh-border)!important;}
.magpal-grid-post,.magpal-post-singular,.magpal-widget-box,.magpal-box {border:1px solid var(--jh-border)!important;border-radius:12px;overflow:hidden;}
.magpal-grid-post-title,.magpal-grid-post-title a,.magpal-post-singular h1,.magpal-post-singular h2,.magpal-post-singular h3,.magpal-post-singular h4,.magpal-page-header h1,.magpal-posts-heading,.magpal-widget-title,.magpal-widget-title-inside,.entry-title,.entry-title a,.singular-entry-title-inside {color:var(--jh-title)!important;}
.magpal-grid-post-title a:hover,.entry-title a:hover {color:var(--jh-gold)!important;}
.magpal-grid-post-meta,.magpal-grid-post-meta a,.magpal-grid-datebox,.magpal-entry-meta-single,.magpal-entry-meta-single a,.magpal-grid-post-categories a,.magpal-entry-meta-single-date {color:var(--jh-gold)!important;}
.magpal-grid-post-snippet,.magpal-post-singular p,.magpal-post-singular li,.magpal-widget-box p,.magpal-widget-box li,.magpal-grid-post-details p {color:var(--jh-text)!important;}
.magpal-post-singular a:not(.wp-block-button__link),.magpal-widget-box a:not(.wp-block-button__link) {color:var(--jh-gold);}
.magpal-post-singular a:hover,.magpal-widget-box a:hover {color:#ffcf8c;}
.magpal-post-singular blockquote {background:var(--jh-panel2);border-left:3px solid var(--jh-gold);padding:1rem 1.25rem;}
.magpal-post-singular pre,.magpal-post-singular code {background:var(--jh-panel2);color:var(--jh-title);}
.magpal-post-singular hr {border-color:var(--jh-border);}
.magpal-post-singular input,.magpal-post-singular textarea,.magpal-post-singular select,.magpal-widget-box input,.magpal-widget-box select,.magpal-search-field {background:var(--jh-panel2)!important;color:var(--jh-title)!important;border:1px solid var(--jh-border)!important;}
.magpal-post-singular button,.magpal-post-singular input[type=submit],.magpal-widget-box button,.magpal-widget-box input[type=submit] {background:var(--jh-gold)!important;color:#0b1729!important;border-radius:6px;}
.magpal-post-singular table,.magpal-post-singular td,.magpal-post-singular th {border-color:var(--jh-border)!important;color:var(--jh-text)!important;}
.magpal-post-singular img,.magpal-grid-post img {max-width:100%;height:auto;}
.magpal-pagination a,.page-numbers {background:var(--jh-panel)!important;color:var(--jh-title)!important;border-color:var(--jh-border)!important;}
.magpal-pagination .current,.page-numbers.current {background:var(--jh-gold)!important;color:var(--jh-bg)!important;}
.magpal-footer-outer-wrapper,.magpal-copyright-area-inside {color:var(--jh-text)!important;}
@media(max-width:767px){.magpal-grid-post,.magpal-post-singular,.magpal-widget-box{border-radius:9px;}}

/* v1.1: Peach-gold post headlines only; crisp text, no theme text-shadow */
.magpal-grid-post-title,.magpal-grid-post-title a,.magpal-grid-post .entry-title,.magpal-grid-post .entry-title a,.magpal-grid-post h2 a,.magpal-grid-post h3 a,.magpal-post-singular .entry-title,.magpal-post-singular .entry-title a,.magpal-post-singular h1.entry-title,.singular-entry-title-inside {color:#f2b766!important;text-shadow:none!important;-webkit-text-stroke:0!important;filter:none!important;}
.magpal-grid-post-title a:hover,.magpal-grid-post .entry-title a:hover {color:#ffd29a!important;text-shadow:none!important;}
/* Header branding and navigation remain white */
.magpal-site-header a,.magpal-header-outer-wrapper a,.magpal-nav-primary a,.magpal-nav-secondary a,.magpal-site-title,.magpal-site-title a,.magpal-site-branding a,.magpal-primary-menu-container a {color:#fff!important;text-shadow:none!important;-webkit-text-stroke:0!important;}

/* v1.2: Override MagPal's high-specificity !important black title rules. */
body .magpal-grid-post .magpal-grid-post-title,
body .magpal-grid-post .magpal-grid-post-title a,
body .magpal-grid-post .magpal-grid-post-title a:visited,
body .magpal-grid-post .magpal-grid-post-heading h3,
body .magpal-grid-post .magpal-grid-post-heading h3 a {
  color: #f2b766 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}
body .magpal-grid-post .magpal-grid-post-title a:hover,
body .magpal-grid-post .magpal-grid-post-title a:focus,
body .magpal-grid-post .magpal-grid-post-title a:active {
  color: #ffd29a !important;
  text-shadow: none !important;
}

/* v1.3: Preserve legibility of the Twitch Live Q&A light schedule card.
   Scoped to its own classes so other site headings are unaffected. */
.mw-live-schedule .mw-schedule-head h2,
.mw-live-schedule .mw-schedule-head h2 * {
  color: #14233a !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}
.mw-live-schedule .mw-schedule-head p,
.mw-live-schedule .mw-schedule-channel {
  color: #56677d !important;
  text-shadow: none !important;
}
.mw-live-schedule .mw-schedule-head {background:#f6f9fd !important;}

/* v1.4: Single blog posts on mobile use the same navy reading surface as desktop.
   Restrict to actual posts to avoid recoloring standalone pages/widgets. */
@media screen and (max-width: 782px) {
 body.single-post,
 body.single-post .magpal-post-content-outer-wrapper,
 body.single-post .magpal-post-content-wrapper,
 body.single-post .magpal-post-singular,
 body.single-post .magpal-post-singular-inside,
 body.single-post article,
 body.single-post article .entry-content,
 body.single-post .entry-header,
 body.single-post .entry-header-inside {
   background-color: #15263c !important;
   color: #d2dce8 !important;
 }
 body.single-post .magpal-post-content-outer-wrapper {background-color:#0b1729!important;}
 body.single-post article .entry-content p,
 body.single-post article .entry-content li,
 body.single-post article .entry-content blockquote,
 body.single-post article .entry-content > div:not([class*="wp-block-button"]),
 body.single-post article .entry-content > span {
   color:#d2dce8!important;
 }
 body.single-post article .entry-content a:not(.wp-block-button__link) {color:#f2b766!important;}
 body.single-post article .entry-content input,
 body.single-post article .entry-content textarea {background:#101e32!important;color:#fff!important;}
}

/* v1.5: Reading Time WP box — dark surface with readable light text. */
body.single-post .rt-reading-time,
body.single-post .rt-reading-time * ,
body.single-post .reading-time,
body.single-post .reading-time * ,
body.single-post .post-reading-time,
body.single-post .post-reading-time * {
  color: #f7f3eb !important;
  text-shadow: none !important;
}
body.single-post .rt-reading-time,
body.single-post .reading-time,
body.single-post .post-reading-time {
  background: #101e32 !important;
  border: 1px solid #2b415b !important;
  border-radius: 6px !important;
}
