/* =====================================================================
   foxtell — «Ñâîé ñòèëü» (with "Îòêëþ÷èòü extra.css", so no base theme)
   Each design brings its full stylesheet through the switcher.
   This only prevents a flash of the unstyled page while it loads.
   ===================================================================== */

/* hide the page until the chosen design's CSS has loaded … */
#pun { visibility: hidden; animation: ds-reveal 0s 3s forwards; }
/* … but never longer than 3 s, even if a script fails */
@keyframes ds-reveal { to { visibility: visible; } }

html.ds-ready #pun,
html.ds-locked #pun { visibility: visible; animation: none; }

/* closed page for anyone who isn't an admin: plain and quiet */
html.ds-locked body { background: #f3f1ed; color: #555; font: 14px/1.5 system-ui, sans-serif; }
html.ds-locked #pun { max-width: 560px; margin: 12vh auto; }
html.ds-locked #pun-title,
html.ds-locked #pun-navlinks,
html.ds-locked #pun-ulinks,
html.ds-locked #pun-status,
html.ds-locked #pun-announcement,
html.ds-locked #pun-crumbs1,
html.ds-locked #pun-crumbs2,
html.ds-locked #pun-about { display: none; }

/* test profile values with a variant per design:
   <span class="ds-v ds-solace ds-myshenaty">...</span><span class="ds-v ds-invisible">...</span>
   only the active design's variant is shown */
.ds-v { display: none; }
html[data-design]:not([data-design="invisible"]) .ds-v.ds-solace,
html[data-design="invisible"] .ds-v.ds-invisible,
html[data-design="myshenaty"] .ds-v.ds-myshenaty { display: contents; }

/* awards are off on all three original forums: hide the awards line under the avatar */
.post-author .pa-awards { display: none !important; }

/* =====================================================================
   pages with no design: the engine doesn't print the HTML header on
   admin pages, so no design loads there. Simple readable look instead,
   and no 3-second wait.
   ===================================================================== */
html:not([data-design]):not(.ds-locked) #pun { visibility: visible; animation: none; }
html:not([data-design]):not(.ds-locked) body {
  margin: 0; background: #f3f1ed; color: #2b2a26;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
html:not([data-design]):not(.ds-locked) #pun { max-width: 1180px; margin: 0 auto; padding: 16px 20px 40px; }
html:not([data-design]):not(.ds-locked) a { color: #4b6672; }
html:not([data-design]):not(.ds-locked) #pun-title,
html:not([data-design]):not(.ds-locked) #pun-ulinks,
html:not([data-design]):not(.ds-locked) #pun-status { display: none; }
html:not([data-design]):not(.ds-locked) #pun-navlinks ul,
html:not([data-design]):not(.ds-locked) #pun-crumbs1 { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
html:not([data-design]):not(.ds-locked) #pun-navlinks h2,
html:not([data-design]):not(.ds-locked) #pun-crumbs2 { display: none; }
html:not([data-design]):not(.ds-locked) #pun-main { display: flex; gap: 20px; align-items: flex-start; }
html:not([data-design]):not(.ds-locked) #pun-main h1 { font-size: 20px; margin: 0 0 12px; }
html:not([data-design]):not(.ds-locked) .admmenu,
html:not([data-design]):not(.ds-locked) #adminmenu { flex: 0 0 190px; background: #fff; border: 1px solid #e2ddd3; border-radius: 10px; padding: 10px 14px; }
html:not([data-design]):not(.ds-locked) .admmenu ul,
html:not([data-design]):not(.ds-locked) #adminmenu ul { list-style: none; margin: 0; padding: 0; }
html:not([data-design]):not(.ds-locked) .admmenu li,
html:not([data-design]):not(.ds-locked) #adminmenu li { padding: 3px 0; }
html:not([data-design]):not(.ds-locked) .section,
html:not([data-design]):not(.ds-locked) .blockform,
html:not([data-design]):not(.ds-locked) fieldset { background: #fff; border: 1px solid #e2ddd3; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
html:not([data-design]):not(.ds-locked) table { width: 100%; border-collapse: collapse; }
html:not([data-design]):not(.ds-locked) th,
html:not([data-design]):not(.ds-locked) td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid #eeeae2; }
html:not([data-design]):not(.ds-locked) input[type=text],
html:not([data-design]):not(.ds-locked) input[type=password],
html:not([data-design]):not(.ds-locked) select,
html:not([data-design]):not(.ds-locked) textarea { font: inherit; padding: 5px 8px; border: 1px solid #cfc8bb; border-radius: 6px; background: #fffdf9; max-width: 100%; box-sizing: border-box; }
html:not([data-design]):not(.ds-locked) textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
html:not([data-design]):not(.ds-locked) input[type=submit],
html:not([data-design]):not(.ds-locked) button { font: inherit; padding: 6px 16px; border: 0; border-radius: 999px; background: #4b6672; color: #fff; cursor: pointer; }
