/* POLITPIG information/product pages. Edge adds the exact body attribute.
   This stylesheet changes presentation only; existing links/content stay intact. */
body[data-politpig-page]:not(#pp-layer-priority) {
  --pp-bg:#090b0e; --pp-panel:#12161b; --pp-border:#292f38;
  --pp-text:#f5f4f1; --pp-muted:#a3abb7; --pp-accent:#d4a373;
  background:var(--pp-bg)!important; color:var(--pp-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
  -webkit-font-smoothing:antialiased; font-feature-settings:"cv11","ss01";
}
body[data-politpig-page]:not(#pp-layer-priority) .tt-page>div,
body[data-politpig-page]:not(#pp-layer-priority) .tt-page>div>div {
  background:var(--pp-bg)!important; color:var(--pp-text)!important;
  font-family:inherit!important;
}
body[data-politpig-page]:not(#pp-layer-priority) *,body[data-politpig-page]:not(#pp-layer-priority) *:before,body[data-politpig-page]:not(#pp-layer-priority) *:after {box-sizing:border-box;}
body[data-politpig-page]:not(#pp-layer-priority) :is(a,button,input,select,textarea,summary):focus-visible {outline:2px solid #dfb58b!important;outline-offset:4px!important;}
body[data-politpig-page]:not(#pp-layer-priority) :is(a,button) {touch-action:manipulation;}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar {
  position:sticky!important; top:0; z-index:40; padding:0 32px;
  background:#090b0ef2!important; border-bottom:1px solid #ffffff0e!important;
  backdrop-filter:blur(16px); box-shadow:none!important;
}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar>div {
  max-width:1280px!important; min-height:88px; margin:0 auto!important;
  padding:18px 0!important; gap:16px!important;
}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar a {
  font-family:inherit!important; color:var(--pp-text)!important;
  text-decoration:none!important; gap:12px!important;
}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar a>.mk-imgph {
  height:46px!important; width:46px!important; border-radius:12px!important;
  overflow:hidden; background:transparent!important;
}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar a>span:last-child {
  font-size:22px!important; font-weight:800!important; letter-spacing:.06em!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main {
  max-width:1344px!important; margin:0 auto!important; padding:44px 32px 96px!important;
  font-family:inherit!important;
}
body[data-politpig-page]:not(#pp-layer-priority):is([data-politpig-page="rules"],[data-politpig-page="wiki"]) main {max-width:904px!important;}
body[data-politpig-page]:not(#pp-layer-priority) main>a:first-child {
  margin:0 0 24px!important; font-weight:500!important; font-size:13px!important;
  min-height:32px; color:var(--pp-muted)!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main>h1 {
  margin:0 0 20px!important; font-family:inherit!important;
  font-size:clamp(32px,3.7vw,48px)!important; font-weight:650!important;
  letter-spacing:-.045em!important; line-height:1.1!important; color:var(--pp-text)!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main>h1+div {display:none!important;}
body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child {
  opacity:1!important; color:#c5cbd4!important; font-size:16px!important;
  line-height:1.85!important; overflow-wrap:break-word!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  margin:0 0 40px!important; padding:12px 0!important;
  position:sticky; top:88px; z-index:20; font-size:0!important;
  background:#090b0ef5; backdrop-filter:blur(16px);
}
body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:10px 18px; border:1px solid var(--pp-border);
  border-radius:9px; background:var(--pp-panel); color:#b3bbc7!important;
  font-size:13px; font-weight:550; line-height:1.4; text-decoration:none!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) a:hover {color:#f5f4f1!important; border-color:#596474;}
body[data-politpig-page="rules"]:not(#pp-layer-priority) main>div:last-child>p:first-child a[href="/p/rules"]:not(#pp-style-priority),
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:first-child a[href="/p/map"]:not(#pp-style-priority),
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:first-child a[href="/p/wiki"]:not(#pp-style-priority) {
  color:#dfb58b!important; background:#d4a37316!important; border-color:#d4a37350!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>hr {display:none!important;}
body[data-politpig-page]:not(#pp-layer-priority) main :is(h2,h3):not(#pp-style-priority) {
  font-family:inherit!important; color:var(--pp-text)!important;
  font-size:26px!important; line-height:1.3!important; font-weight:600!important;
  letter-spacing:-.03em!important; margin:44px 0 20px!important;
}
body[data-politpig-page]:not(#pp-layer-priority) main p {margin-bottom:22px!important;}
body[data-politpig-page]:not(#pp-layer-priority) main strong {font-weight:650!important; color:#e4e7eb!important;}
body[data-politpig-page]:not(#pp-layer-priority) main a {color:#dfb58b!important; text-underline-offset:4px; text-decoration-thickness:1px;}
body[data-politpig-page]:not(#pp-layer-priority) main :is(ul,ol) {padding-left:24px!important; margin:16px 0 24px!important;}
body[data-politpig-page]:not(#pp-layer-priority) main li {margin-bottom:8px!important;}
body[data-politpig-page]:not(#pp-layer-priority) main code {font-size:.9em; color:#e1bd99; background:#d4a37310; border-radius:4px; padding:2px 5px;}
body[data-politpig-page="rules"]:not(#pp-layer-priority) main>div:last-child>h2:first-of-type:not(#pp-style-priority) {margin-top:0!important;}
body[data-politpig-page="rules"]:not(#pp-layer-priority) main>div:last-child>h2:not(:first-of-type) {
  border-top:1px solid var(--pp-border); padding-top:36px;
}
/* The three map destinations remain three distinct, usable links. */
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:20px;
}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:first-child {grid-column:1/-1;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:not(#pp-style-priority) {
  margin:0!important; padding:30px 28px 22px!important; min-height:104px;
  border:1px solid var(--pp-border); border-bottom:0; border-radius:16px 16px 0 0;
  background:var(--pp-panel); font-size:26px!important; display:flex; align-items:flex-end;
}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:nth-of-type(1) {grid-column:1;grid-row:2;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:nth-of-type(2) {grid-column:2;grid-row:2;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:nth-of-type(3) {grid-column:3;grid-row:2;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) {
  margin:0!important; padding:0 28px 30px!important; min-height:98px;
  background:var(--pp-panel); border:1px solid var(--pp-border); border-top:0;
  border-radius:0 0 16px 16px;
}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:nth-of-type(2) {grid-column:1;grid-row:3;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:nth-of-type(3) {grid-column:2;grid-row:3;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:nth-of-type(4) {grid-column:3;grid-row:3;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a,
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a {
  display:inline-flex; align-items:center; justify-content:center; min-height:46px;
  padding:11px 18px; border:1px solid #f5f4f1; border-radius:9px;
  background:#f5f4f1; color:#111216!important; font-size:13px; font-weight:650;
  line-height:1.5; text-align:center; text-decoration:none!important;
}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a:hover,
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a:hover {background:#dfb58b;border-color:#dfb58b;}
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>h2:not(#pp-style-priority) {
  margin:0!important; padding:36px 36px 12px!important; border:1px solid var(--pp-border);
  border-bottom:0; border-radius:16px 16px 0 0; background:var(--pp-panel);
  font-size:30px!important;
}
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) {
  padding:12px 36px 36px!important; margin:0!important; border:1px solid var(--pp-border);
  border-top:0; border-radius:0 0 16px 16px; background:var(--pp-panel);
}
/* Optional footer injected by our own presentation layer, after the page. */
body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer {
  display:block!important; padding:32px; border-top:1px solid #252b34; color:#9da4af; background:var(--pp-bg);
}
body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer>div {
  max-width:1280px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:32px;
}
body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer a {text-decoration:none; color:#a3abb7; font-size:13px;}
body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer a:hover {color:#dfb58b;}
body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer .pp-footer-brand {font-size:19px;font-weight:750;letter-spacing:.06em;color:#f5f4f1;}
body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer nav {display:flex;flex-wrap:wrap;gap:24px;}
/* Dedicated product pages, whose platform DOM has no storefront scope. */
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"] {
  max-width:1344px!important; padding:44px 32px 72px!important; gap:28px!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:first-child {
  background:#161b22!important; border:1px solid var(--pp-border)!important; border-radius:18px!important;
  aspect-ratio:1!important; padding:48px; position:sticky!important;top:116px;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:first-child .mk-imgph {
  display:grid!important; place-items:center!important; width:100%!important; height:100%!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:first-child img {
  width:100%!important; height:100%!important; max-width:280px!important; max-height:280px!important;
  object-fit:contain!important; image-rendering:pixelated!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:nth-child(2) {
  padding:32px!important; border:1px solid var(--pp-border); border-radius:18px; background:var(--pp-panel);
}
body[data-politpig-page="product"]:not(#pp-layer-priority) h1 {
  font-family:inherit!important; font-size:32px!important; line-height:1.25!important;
  font-weight:650!important; letter-spacing:-.035em!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) :is(button,input,label,.mk-sf-stickybar a) {
  font-family:inherit!important; clip-path:none!important; corner-shape:round!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) input {
  background:#1a2028!important; color:#f5f4f1!important; border:1px solid #39424f!important;
  border-radius:10px!important; font-size:15px!important; font-weight:500!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) label:not(.mk-consent) {
  text-transform:none!important; font-weight:500!important; font-size:12px!important; letter-spacing:0!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"] button {
  border-radius:10px!important; background:#f5f4f1!important; color:#111216!important;
  box-shadow:none!important; font-weight:650!important; font-size:13px!important;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"] button:disabled {opacity:.45!important;}
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:nth-child(3) {
  padding:32px; background:var(--pp-panel); border:1px solid var(--pp-border); border-radius:18px;
  font-size:15px; line-height:1.85;
}
body[data-politpig-page="product"]:not(#pp-layer-priority) .mk-consent {font-size:12px;line-height:1.7;color:#a3abb7;}
body[data-politpig-page="product"]:not(#pp-layer-priority) .mk-consent a {color:#dfb58b;text-underline-offset:3px;}
@media(max-width:800px) {
  body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar {padding:0 20px;}
  body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar>div {min-height:76px;padding:18px 0!important;}
  body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar a>.mk-imgph {width:38px!important;height:38px!important;}
  body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar a>span:last-child {font-size:18px!important;}
  body[data-politpig-page]:not(#pp-layer-priority) main {padding:28px 20px 56px!important;}
  body[data-politpig-page]:not(#pp-layer-priority) main>a:first-child {margin-bottom:20px!important;}
  body[data-politpig-page]:not(#pp-layer-priority) main>h1 {font-size:34px!important;margin-bottom:16px!important;}
  body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child {font-size:14px!important;line-height:1.9!important;}
  body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) {top:76px;gap:6px;margin-bottom:28px!important;padding:10px 0!important;}
  body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) a {padding:10px 12px;font-size:11px;}
  body[data-politpig-page]:not(#pp-layer-priority) main :is(h2,h3):not(#pp-style-priority) {font-size:23px!important;margin:36px 0 18px!important;}
  body[data-politpig-page="rules"]:not(#pp-layer-priority) main>div:last-child>h2:not(:first-of-type) {padding-top:28px;}
  body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child {display:block;}
  body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:not(#pp-style-priority) {min-height:0;padding:26px 24px 16px!important;font-size:24px!important;margin:0!important;}
  body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) {min-height:0;padding:0 24px 26px!important;margin-bottom:16px!important;}
  body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>h2:not(#pp-style-priority) {padding:28px 24px 10px!important;margin:0!important;font-size:26px!important;}
  body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) {padding:12px 24px 28px!important;}
  body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer {padding:28px 20px;}
  body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer>div {align-items:flex-start;flex-direction:column;gap:24px;}
  body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer nav {gap:20px;}
  body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"] {grid-template-columns:minmax(0,1fr)!important;padding:24px 16px 48px!important;gap:16px!important;}
  body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:first-child {position:relative!important;top:auto;aspect-ratio:1.25!important;padding:32px;}
  body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:first-child img {max-width:180px!important;max-height:180px!important;}
  body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:nth-child(2),
  body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"]>div:nth-child(3) {padding:24px!important;}
  body[data-politpig-page="product"]:not(#pp-layer-priority) h1 {font-size:25px!important;}
}
@media(max-width:350px) {
  body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) a {padding:9px 10px;font-size:10px;}
  body[data-politpig-page]:not(#pp-layer-priority) .pp-page-footer nav {gap:16px;}
}
@media(prefers-reduced-motion:reduce) {
  body[data-politpig-page]:not(#pp-layer-priority) *,body[data-politpig-page]:not(#pp-layer-priority) *:before,body[data-politpig-page]:not(#pp-layer-priority) *:after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}

/* Append after page-styles.css. Semantic header navigation replaces Markdown nav. */
body[data-politpig-page]:not(#pp-layer-priority) {--pp-accent:#f398bd;}
body[data-politpig-page]:not(#pp-layer-priority) :is(a,button,input,select,textarea,summary):focus-visible {outline-color:#f398bd!important;}
body[data-politpig-page]:not(#pp-layer-priority) main a,
body[data-politpig-page="product"]:not(#pp-layer-priority) .mk-consent a {color:#f398bd!important;}
body[data-politpig-page]:not(#pp-layer-priority) main code {color:#f7b2cf;background:#f398bd10;}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar>div {gap:32px!important;min-height:96px;}
body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar>div>a {flex-shrink:0;}
body[data-politpig-page]:not(#pp-layer-priority) .pp-header-nav {
  display:flex; align-items:center; gap:28px; margin-left:16px; min-width:0;
}
body[data-politpig-page]:not(#pp-layer-priority) .pp-header-nav a {
  display:inline-flex; align-items:center; min-height:44px; flex-shrink:0;
  font-size:13px!important; font-weight:600; line-height:1.4;
  color:#a9b0ba!important; white-space:nowrap;
}
body[data-politpig-page]:not(#pp-layer-priority) .pp-header-nav a:hover,
body[data-politpig-page]:not(#pp-layer-priority) .pp-header-nav a[aria-current="page"] {color:#f398bd!important;}
/* Covers the short interval before the content-only DTO update reaches cache. */
body[data-politpig-page]:not(#pp-layer-priority) main>div:last-child>p:first-child:has(a[href="/p/rules"]) {display:none!important;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child {grid-template-columns:repeat(2,minmax(0,1fr));}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:nth-of-type(1) {grid-column:1;grid-row:1;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>h2:nth-of-type(2) {grid-column:2;grid-row:1;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:has(a[href="https://map.politpig.ru/"]) {grid-column:1;grid-row:2;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:has(a[href="https://rp.politpig.ru"]) {grid-column:2;grid-row:2;}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a,
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a,
body[data-politpig-page="product"]:not(#pp-layer-priority) .tt-page .grid-cols-1[style*="max-width"] button {
  background:#f398bd!important;border-color:#f398bd!important;color:#111216!important;
}
body[data-politpig-page="map"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a:hover,
body[data-politpig-page="wiki"]:not(#pp-layer-priority) main>div:last-child>p:not(:first-child) a:hover {background:#ffb1cf!important;border-color:#ffb1cf!important;}
@media(max-width:800px) {
  body[data-politpig-page]:not(#pp-layer-priority) .mk-sf-stickybar>div {flex-wrap:wrap;gap:0!important;min-height:0;padding:18px 0 0!important;}
  body[data-politpig-page]:not(#pp-layer-priority) .pp-header-nav {width:100%;justify-content:space-between;gap:12px;margin:12px 0 0;}
  body[data-politpig-page]:not(#pp-layer-priority) .pp-header-nav a {font-size:11px!important;}
}
