/* Astra bridge. Deliberately scoped; Astra retains its templates and navigation. */
body.ruo-imperial-theme {
  --ast-global-color-0: var(--ruo-gold);
  --ast-global-color-1: var(--ruo-ivory);
  --ast-global-color-2: var(--ruo-ivory);
  --ast-global-color-3: var(--ruo-muted);
  --ast-global-color-4: var(--ruo-black);
  --ast-global-color-5: var(--ruo-panel);
  --ast-global-color-6: var(--ruo-wine);
  --ast-global-color-7: #252321;
  --ast-global-color-8: var(--ruo-gold);
  background: var(--ruo-black);
  color: var(--ruo-muted);
  font: 400 18px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.ruo-imperial-theme #page,
body.ruo-imperial-theme #content,
body.ruo-imperial-theme.ast-separate-container .ast-article-post,
body.ruo-imperial-theme.ast-separate-container .ast-article-single,
body.ruo-imperial-theme.ast-separate-container .ast-archive-description,
body.ruo-imperial-theme .ast-plain-container .site-content {
  background: var(--ruo-black);
  color: var(--ruo-muted);
}
body.ruo-imperial-theme h1,
body.ruo-imperial-theme h2,
body.ruo-imperial-theme h3,
body.ruo-imperial-theme h4,
body.ruo-imperial-theme h5,
body.ruo-imperial-theme h6,
body.ruo-imperial-theme .entry-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ruo-ivory);
}
/* Native headings inherit their rhythm; home component headings own theirs. */
body.ruo-imperial-theme :is(h1,h2,h3,h4,h5,h6,.entry-title):not(.imperial-home *) { line-height: 1.2; }
body.ruo-imperial-theme.single-post .entry-header { max-width: 980px; margin-inline: auto; }
body.ruo-imperial-theme.single-post .entry-header .entry-title { font-size: clamp(40px,5vw,64px); line-height: 1.08; }
body.ruo-imperial-theme.single-post .entry-content,
body.ruo-imperial-theme.page:not(.ruo-imperial-home-page) .entry-content { max-width: 740px; margin-inline: auto; }
body.ruo-imperial-theme .entry-content { font-size: 18px; font-weight: 400; line-height: 1.75; }
body.ruo-imperial-theme .ruo-bildnachweis { color: var(--ruo-muted); opacity: 1; }
body.ruo-imperial-theme .ruo-bildnachweis a { color: inherit; text-decoration: underline; }
body.ruo-imperial-theme .entry-content p { margin-bottom: 1em; }
body.ruo-imperial-theme .entry-content h2 { font-size: 32px; }
body.ruo-imperial-theme .entry-content h3 { font-size: 24px; }
body.ruo-imperial-theme .entry-content :is(h2,h3):not(:first-child) { margin-top: 1.5em; }
body.ruo-imperial-theme .entry-content a:not(.wp-element-button):not(.wp-block-button__link),
body.ruo-imperial-theme .entry-meta a {
  color: var(--ruo-gold);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
body.ruo-imperial-theme .entry-content a:is(:hover,:focus),
body.ruo-imperial-theme .entry-meta a:is(:hover,:focus) {
  color: #fff;
  text-decoration-color: var(--ruo-gold);
}
body.ruo-imperial-theme a:focus-visible,
body.ruo-imperial-theme button:focus-visible,
body.ruo-imperial-theme input:focus-visible {
  outline: 2px solid var(--ruo-gold);
  outline-offset: 5px;
}
body.ruo-imperial-theme button,
body.ruo-imperial-theme input,
body.ruo-imperial-theme select,
body.ruo-imperial-theme textarea,
body.ruo-imperial-theme .button,
body.ruo-imperial-theme .wp-element-button,
body.ruo-imperial-theme .wp-block-button__link,
body.ruo-imperial-theme .cmplz-cookiebanner,
body.ruo-imperial-theme .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}
body.ruo-imperial-theme #masthead .ast-primary-header-bar,
body.ruo-imperial-theme #masthead .main-header-bar,
body.ruo-imperial-theme #masthead .ast-mobile-header-content,
body.ruo-imperial-theme .ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background: var(--ruo-black);
  border-color: var(--ruo-line);
}
body.ruo-imperial-theme #masthead .ast-builder-grid-row { min-height: 100px; }
body.ruo-imperial-theme #masthead .ast-container { max-width: 1400px; }
body.ruo-imperial-theme #masthead .imperial-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 192px;
  color: var(--ruo-gold);
  text-decoration: none;
  line-height: 1;
}
body.ruo-imperial-theme #masthead .imperial-wordmark-top {
  font: italic 400 25px/1.25 Georgia, "Times New Roman", serif;
}
body.ruo-imperial-theme #masthead .imperial-wordmark-bottom {
  font: 400 27px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .06em;
}
body.ruo-imperial-theme #masthead .main-header-menu > .menu-item > .menu-link {
  color: var(--ruo-muted);
  font: 400 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  padding: 14px 12px;
}
body.ruo-imperial-theme #masthead .main-header-menu .sub-menu,
body.ruo-imperial-theme .ast-mobile-popup-drawer .main-header-menu {
  background: var(--ruo-panel);
  border-color: var(--ruo-line);
}
body.ruo-imperial-theme #masthead .main-header-menu .menu-link,
body.ruo-imperial-theme .ast-mobile-popup-drawer .menu-link {
  color: var(--ruo-muted);
}
body.ruo-imperial-theme #masthead .main-header-menu .menu-link:is(:hover,:focus),
body.ruo-imperial-theme #masthead .main-header-menu .current-menu-item > .menu-link,
body.ruo-imperial-theme .ast-mobile-popup-drawer .menu-link:is(:hover,:focus) {
  color: var(--ruo-ivory);
  text-decoration: underline;
  text-underline-offset: .3em;
}
body.ruo-imperial-theme #masthead .ast-mobile-menu-trigger-minimal .menu-toggle,
body.ruo-imperial-theme .ast-mobile-popup-drawer .menu-toggle-close { color: var(--ruo-gold); }
body.ruo-imperial-theme .site-footer .site-above-footer-wrap {
  background: var(--ruo-wine);
  border-top: 1px solid #7a4e4f;
}
body.ruo-imperial-theme .site-footer .site-primary-footer-wrap,
body.ruo-imperial-theme .site-footer .site-below-footer-wrap { background: var(--ruo-black); }
body.ruo-imperial-theme .site-footer,
body.ruo-imperial-theme .site-footer .ast-footer-copyright { color: var(--ruo-muted); }
body.ruo-imperial-theme .site-footer .footer-widget-area :is(h1,h2,h3,h4,h5,h6,.widget-title),
body.ruo-imperial-theme .site-footer .footer-widget-area-inner a,
body.ruo-imperial-theme .site-footer .footer-menu-wrap a { color: var(--ruo-ivory); }
body.ruo-imperial-theme .site-footer a:is(:hover,:focus),
body.ruo-imperial-theme .site-footer .footer-widget-area-inner a:is(:hover,:focus) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2em;
}
/* Approved preview footer, scoped independently of Astra's retained popup. */
body.ruo-imperial-theme .imperial-site-footer {
  border-top: 1px solid var(--ruo-line);
  padding: 64px 0 24px;
  background: #141510;
  color: var(--ruo-ivory);
}
body.ruo-imperial-theme .imperial-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; }
body.ruo-imperial-theme .imperial-footer-wordmark {
  text-decoration: none;
  color: var(--ruo-gold);
  display: inline-flex;
  flex-direction: column;
  min-width: 192px;
  line-height: 1;
}
body.ruo-imperial-theme .imperial-footer-wordmark span { font: italic 25px/1.25 var(--ruo-serif); letter-spacing: .03em; }
body.ruo-imperial-theme .imperial-footer-wordmark strong { font: 400 27px/1 var(--ruo-serif); letter-spacing: .06em; }
body.ruo-imperial-theme .imperial-footer-brand p { color: var(--ruo-muted); font-size: 15px; max-width: 340px; margin: 24px 0 1em; }
body.ruo-imperial-theme .imperial-site-footer h2 { font: 12px/1.3 var(--ruo-sans); text-transform: uppercase; letter-spacing: .18em; color: var(--ruo-gold); margin: 0 0 16px; }
body.ruo-imperial-theme .imperial-footer-links { display: flex; flex-direction: column; align-items: flex-start; }
body.ruo-imperial-theme .imperial-footer-links a { font-size: 14px; min-height: 44px; display: flex; align-items: center; text-decoration: none; color: var(--ruo-ivory); }
body.ruo-imperial-theme .imperial-site-footer a:is(:hover,:focus-visible) { text-decoration: underline; color: var(--ruo-gold); }
body.ruo-imperial-theme .imperial-footer-bottom { border-top: 1px solid var(--ruo-line); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--ruo-muted); }
@media (max-width: 700px) {
  body.ruo-imperial-theme .imperial-site-footer { padding: 48px 0 24px; }
  body.ruo-imperial-theme .imperial-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  body.ruo-imperial-theme .imperial-footer-brand { grid-column: 1 / -1; }
  body.ruo-imperial-theme .imperial-footer-wordmark { min-width: 168px; }
  body.ruo-imperial-theme .imperial-footer-wordmark span { font-size: 22px; }
  body.ruo-imperial-theme .imperial-footer-wordmark strong { font-size: 23px; }
  body.ruo-imperial-theme .imperial-footer-bottom { flex-direction: column; gap: 8px; }
}
/* Actual MU-plugin selectors. Their sources, values and dates stay untouched. */
body.ruo-imperial-theme .entry-content .ruo-fact-box {
  background: var(--ruo-panel);
  border: 1px solid var(--ruo-line) !important;
  padding: 24px !important;
  border-radius: 0 !important;
  margin-bottom: 24px;
  color: var(--ruo-muted);
}
/* Targeted overrides are needed for the MU-plugin's inline presentation. */
body.ruo-imperial-theme .entry-content .ruo-fact-box--sanctions { border-left: 3px solid var(--ruo-gold) !important; }
body.ruo-imperial-theme .entry-content .ruo-fact-box h2 { font: 400 24px/1.3 var(--ruo-serif) !important; margin: 0 0 16px !important; }
body.ruo-imperial-theme .entry-content .ruo-fact-box p { margin: 0; font-size: 18px !important; line-height: 1.75; }
body.ruo-imperial-theme .entry-content .ruo-fact-box--networth em { font-style: normal; }
/* Native archive/blog markup; search retains its original Astra layout. */
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-inline: 0; }
/* Astra's float clearfix pseudo-elements must not occupy CSS grid cells. */
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row::before,
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row::after { display: none; }
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row > .ast-article-post {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px 24px 24px;
  min-height: 288px;
  border: 1px solid var(--ruo-line);
  background: linear-gradient(150deg,#22251f,#151611);
}
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row > .ast-article-post:nth-child(4n+2) { background: linear-gradient(150deg,#3b1d26,#1c1517); }
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row > .ast-article-post:nth-child(4n+3) { background: linear-gradient(150deg,#242b30,#14181b); }
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row > .ast-article-post:nth-child(4n+4) { background: linear-gradient(150deg,#30271c,#191611); }
body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-article-post .entry-title { font-size: 32px; margin: 0 0 24px; }
@media (max-width: 700px) {
  body.ruo-imperial-theme .entry-content .ruo-fact-box { padding: 20px !important; }
  body.ruo-imperial-theme:is(.archive,.blog) #primary .ast-row { grid-template-columns: 1fr; }
}
body.ruo-imperial-theme .entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; color: var(--ruo-muted); border-color: var(--ruo-line); }
body.ruo-imperial-theme .entry-content :is(th,td) { border-color: var(--ruo-line); }
/* Preserve the verified dark Cookie Policy repair (05 Oct 2026). */
body.ruo-imperial-theme #cmplz-document :is(p,li) { font-size: 18px; line-height: 1.75; }
body.ruo-imperial-theme #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category {
  background-color: rgba(255,255,255,.05);
  color: var(--ruo-muted);
}
body.ruo-imperial-theme #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header {
  background-color: rgba(255,255,255,.1);
  color: var(--ruo-ivory);
}
body.ruo-imperial-theme #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-always-active { color: #7ee787; }
body.ruo-imperial-theme #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-icon svg path { fill: #e3e3e3; }
/* Only the opt-in home template goes edge to edge. Original page layouts remain. */
body.ruo-imperial-theme.ruo-imperial-home-page #content > .ast-container {
  max-width: none;
  padding: 0;
  display: block;
}
body.ruo-imperial-theme.ruo-imperial-home-page #primary { margin: 0; width: 100%; }
@media (max-width: 921px) {
  body.ruo-imperial-theme .entry-content h2 { font-size: 28px; }
  body.ruo-imperial-theme .entry-content h3 { font-size: 22px; }
}
@media (max-width: 544px) {
  body.ruo-imperial-theme .entry-content h2 { font-size: 26px; }
  body.ruo-imperial-theme .entry-content h3 { font-size: 20px; }
  body.ruo-imperial-theme #masthead .ast-builder-grid-row { min-height: 80px; }
  body.ruo-imperial-theme #masthead .imperial-wordmark { min-width: 168px; }
  body.ruo-imperial-theme #masthead .imperial-wordmark-top { font-size: 22px; }
  body.ruo-imperial-theme #masthead .imperial-wordmark-bottom { font-size: 23px; }
}
