/* oddinary forum style */

@import url(style_cs.1779730177.css);
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600&display=swap');

/* === ÏÅÐÅÌÅÍÍÛÅ === */
:root {
  --font: "Nunito", sans-serif;
  --pun-width: 900px;
  --pun-padding: 14px;
  --header-height: 80px; /* çàìåíè íà âûñîòó ñâîåé øàïêè */

  /* Ïàëèòðà */
  --body-bg:      #b8c8d8;
  --pun-bg:       #dce6f0;
  --container:    #edf2f7;
  --topic:        #f2f6fa;
  --panel:        #d8e4ee;
  --textarea:     rgba(255,255,255,.6);
  --border:       #c4d4e2;
  --shadow:       rgba(80,110,140,.12);

  --text:         #384858;
  --text-pale:    rgba(80,105,130,.7);
  --nav-text:     #e8f0f8;

  --link1:        #4e82a8;
  --link2:        #3a5a78;
  --hover:        #9b5060;

  --accent:       #6a9ec0;
  --accent-dark:  #4a7a9b;
  --accent-text:  #ffffff;

  --button:       #7aaec8;
  --button-text:  #f0f7fc;
  --select:       #cddcea;
  --select-text:  #3a6080;
  --extra1:       #e0cdd4;
  --extra1-text:  #7a5060;

  --scrollbar-thumb: #aabccc;
}

/* === ÑÁÐÎÑ === */
*, body { margin: 0; outline: none; }
body {
  font-size: 12px;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--body-bg);
  /* Ïîñòàâü ñâîé ôîí: background-image: url(...); background-size: cover; background-attachment: fixed; */
}

/* === ÎÑÍÎÂÍÎÉ ÁËÎÊ === */
#pun {
  width: var(--pun-width);
  margin: 30px auto 40px;
  box-sizing: border-box;
  background: var(--pun-bg);
  position: relative;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
}

.punbb {
  width: 100%;
  box-sizing: border-box;
  padding: calc(var(--header-height) + var(--pun-padding)) calc(var(--pun-padding)) var(--pun-padding);
  position: relative;
  z-index: 1;
}

/* === ØÀÏÊÀ === */
/* Çàìåíè URL íà ñâîþ êàðòèíêó */
#pun:before {
  content: "";
  display: block;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(135deg, #8aaccc 0%, #b0c8de 50%, #a0bcd8 100%);
  /* background-image: url(ÒÂÎß_ÊÀÐÒÈÍÊÀ); background-size: cover; background-position: center; */
  border-radius: 16px 16px 0 0;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
}

#pun-title {
  margin: 0;
  border: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 2;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
#pun-title .container, #pun-title h1 {
  display: none;
}
#pun-title table { border: none; width: 100%; height: 100%; }
#pun-title td.title-logo-tdl { border: none; width: 100%; }
#pun-title td.title-logo-tdr { border: none; }

/* === ÍÀÂÈÃÀÖÈß === */
#pun-navlinks {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  z-index: 10;
  margin: 0;
  border: none;
}
#pun-navlinks .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 0;
  border: none;
  background: transparent;
}
#pun-navlinks li { display: inline-flex; padding: 0; }
#pun-navlinks a {
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: opacity .1s;
}
#pun-navlinks a:hover { opacity: .7; color: var(--nav-text); text-decoration: none; }

/* === ÞÇÅÐ-ËÈÍÊÈ === */
#pun-ulinks {
  position: absolute;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 10;
  margin: 0;
  border: none;
}
#pun-ulinks .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding: 0;
  border: none;
  background: transparent;
}
#pun-ulinks li, #pun-ulinks li a {
  display: inline;
  border: none;
  white-space: nowrap;
}
#pun-ulinks li a {
  color: rgba(230,242,252,.8);
  font-size: 11px;
  padding: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
#pun-ulinks li a:hover { color: #fff; text-decoration: none; }
#pun-ulinks li.item1 a { padding-left: 0; }

/* === ÑÒÀÒÓÑ / ÕËÅÁÍÛÅ ÊÐÎØÊÈ === */
#pun-status, #pun-status .container { border-bottom: none; margin-bottom: 0; }
#pun-status .container {
  padding: 6px 14px;
  background: transparent;
  border: none;
  font-size: 11px;
  color: var(--text-pale);
}
#pun-crumbs1 { font-weight: 500; overflow: hidden; margin-top: 0; }
#pun-crumbs1 p.container {
  border: none;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-pale);
  background: transparent;
}
#pun-break1 { display: none; }

/* === ÑÅÊÖÈÈ === */
.punbb .section, .punbb .main { margin-bottom: 8px; }
.punbb .category, .punbb .post { margin-top: 3px; }
.punbb #pun-category1, .punbb .toppost, .punbb .topicpost { margin-top: 0; }

.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu,
.punbb .info, .punbb .category, .punbb .post { border: none; }

.punbb .container {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 6px var(--shadow);
}

/* Çàãîëîâêè h2 ñåêöèé */
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  padding: 0.5em 1.1em;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: .04em;
}

/* === ÔÎÐÓÌ-ËÈÑÒ — êàðòî÷êè áåç ëèøíèõ êîëîíîê === */
#pun-index #pun-main th,
#pun-index #pun-main .tc2,
#pun-index #pun-main .tc3 { display: none !important; }

#pun-index #pun-main thead { display: none !important; }

/* Ñëîìàòü òàáëè÷íóþ ìîäåëü, ÷òîáû flex çàðàáîòàë */
#pun-index .punbb .main table,
#pun-index .punbb .main tbody {
  display: block !important;
  width: 100%;
}

#pun-index .punbb .main .container {
  padding: 6px 8px;
}

#pun-index .punbb .main tbody tr {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  background: var(--topic);
  border-radius: 8px;
  margin: 3px 0;
  border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}
#pun-index .punbb .main tbody tr:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--shadow);
}

#pun-index .punbb .main td {
  border: none !important;
  padding: 0;
  display: block !important;
}

/* ß÷åéêà ñ íàçâàíèåì è îïèñàíèåì */
#pun-index .punbb .main .tcl {
  flex: 1;
  padding: 9px 12px 9px 38px;
  overflow: visible;
  width: auto;
}
#pun-index .punbb .main .tcl h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
#pun-index .punbb .main .tcl h3 a {
  color: var(--link2);
}
#pun-index .punbb .main .tcl h3 a:hover {
  color: var(--hover);
  text-decoration: none;
}
#pun-index .punbb .main .tcl .forumdesc {
  display: block;
  font-size: 10.5px;
  color: var(--text-pale);
  margin-top: 2px;
  line-height: 1.3;
}

/* Ïîñëåäíåå ñîîáùåíèå — ñïðàâà */
#pun-index .punbb .main .tcr {
  width: 220px;
  flex-shrink: 0;
  padding: 9px 12px;
  font-size: 10.5px;
  color: var(--text-pale);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Èêîíêà — ìàëåíüêàÿ òî÷êà */
.punbb tbody.hasicon td.tcl { padding-left: 38px; }
.punbb div.icon {
  border-style: solid;
  border-width: 5px;
  border-radius: 50%;
  height: 0; width: 0;
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -5px;
}
.punbb table div.icon {
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -5px;
  margin-left: 0;
}

/* === ÑÏÈÑÎÊ ÒÅÌ === */
.punbb .main table { table-layout: fixed; width: 100%; }
.punbb .main td {
  border-style: solid none none solid;
  border-width: 1px 0 0 1px;
  border-color: var(--border);
  padding: 7px 10px;
}
.punbb .main th {
  border-style: none none none solid;
  border-width: 0 0 0 1px;
  border-color: var(--border);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: .03em;
}
.punbb .main .tcl { overflow: hidden; text-align: left; width: 50%; border-left: none; }
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod { text-align: center; width: 10%; }
.punbb .main .tcr { overflow: hidden; text-align: left; width: 30%; }
#pun-index .tcl h3, .punbb .main .tcl h3 { font-size: 12px; font-weight: 600; }
.punbb td span.youposted { font-weight: bold; margin-left: -1em; position: absolute; }
.punbb td .modlist { display: block; padding-top: 0.3em; }

/* === ÏÎÑÒÛ === */
.punbb .post-content { padding: 0; margin: 0; width: 100%; overflow: hidden; }
.punbb .post-sig dt { display: block; border-top: 1px solid var(--border); width: 250px; margin: 5px 0; }
.punbb .post-content p { margin: 0; padding: 0 0 1em 0; line-height: 160%; }
.punbb .post-content img { vertical-align: text-bottom; }
.punbb .post-content img.postimg { vertical-align: middle; }
.punbb .post-content .blockcode, .punbb .post-content blockquote { width: 100%; overflow: hidden; }
.punbb .post-content .scrollbox { width: 100%; overflow: auto; }
.punbb .post-content .quote-box, .punbb .post-content .code-box {
  margin: 0.4em 1.5em 1.2em;
  padding: 0.8em 1em;
  border-style: solid; border-width: 1px;
  border-radius: 6px;
}
.punbb .quote-box cite, .punbb .code-box strong.legend {
  display: block; padding-bottom: 0.5em;
  font-size: 11px; font-weight: 600; margin: 0;
}

.punbb .post .container {
  border-style: solid; border-width: 1px;
  margin-top: -1px; padding-bottom: 1px;
  border-radius: 0;
}
.punbb .topicpost .post .container,
.punbb .toppost .post .container { border-radius: 0 0 10px 10px; }
.punbb .post h3 { border-style: solid; border-width: 1px; border-radius: 8px 8px 0 0; }
.punbb .post h3 span {
  padding: 0.4em 1em; display: block;
  margin-left: 17em; border-left-style: solid; border-left-width: 1px;
  font-size: 11px;
}
.punbb .post h3 strong { float: right; width: 5em; text-align: right; font-weight: normal; font-size: 11px; }
.punbb .post .post-author { float: left; width: 17em; margin-top: -1.5em; overflow: hidden; }
.punbb .post .post-author ul, .punbb .post .post-author p { padding: 0 1em 1em 1em; line-height: 140%; }
.pa-author { font-size: 12px; font-weight: 600; }
.pa-author a { text-decoration: none; }
li.pa-title { padding-bottom: 0.4em; font-weight: 600; font-size: 10.5px; }
li.pa-online { line-height: 0.8em; border-left-style: solid; border-left-width: 0.6em; padding-left: 0.4em; margin-top: 0.7em; }
.punbb .post-body { margin-left: 17em; border-left-style: solid; border-left-width: 1px; border-color: var(--border); padding: 0 0 1px 0; }
.punbb .post-box { padding: 1em; }
.punbb fieldset .post-box { margin-bottom: 0.8em; }
.punbb .post-links { margin-left: 17em; border-left-style: solid; border-left-width: 1px; border-color: var(--border); }
.punbb .post-links ul {
  padding: 0 1em 0 0; height: 2em; line-height: 2em;
  margin-left: -17em; border-top-style: dashed; border-top-width: 1px;
  background: transparent; text-align: right; font-size: 11px;
}
.punbb .post-links li { display: inline; padding-left: 1em; }
.pl-email, .pl-website { float: left; }
.punbb .clearer { clear: both; height: 0; font-size: 0; }

/* === INFO-BOXES === */
.punbb .info-box { padding: 1em 1.5em; border-style: solid; border-width: 1px; margin: 0 0 1em 0; border-radius: 6px; }
.punbb .info-box * { padding: 0 0 0.5em 0; }
.punbb #pun-main .info-box .legend { font-size: 11px; font-weight: 600; }

/* === ÏÀÃÈÍÀÖÈß === */
.punbb .linkst { float: left; position: relative; width: 100%; font-size: 11px; height: 0; }
.multipage { margin-top: 3em; }
.linkst .pagelink { position: absolute; top: -4em; left: 1em; width: 24em; }
.linkst .postlink { position: absolute; top: -4em; right: 1em; width: 16em; text-align: right; font-weight: 600; }
.punbb .linksb { text-align: right; padding: 0.4em 1em 0.5em; font-size: 11px; }
.linksb .pagelink { float: left; width: 24em; text-align: left; }
.linksb .postlink { float: right; width: 16em; font-weight: 600; }
.subscribelink { clear: both; padding-top: 0.3em; padding-bottom: 0.5em; }

/* === ÔÎÐÌÛ === */
.punbb .formal .container { padding: 1.2em 1.8em 1em; }
.punbb .formsubmit { padding: 0 0 0 1.5em; margin: 1em 0 0 0; }
.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span { margin: 0 0.5em 0 0; }
.punbb fieldset { border: 1px solid var(--border); padding: 0 14px; margin: 0 0 1em 0; border-radius: 6px; }
.punbb fieldset legend { padding: 0; margin: 0 0 0 10px; font-size: 11px; font-weight: 600; }
.punbb fieldset legend span { padding: 0 5px; margin: 0 0 0 -14px; }
.punbb fieldset fieldset { border: none; margin: 0; padding: 0 0 8px 0; }
.punbb .fs-box { padding: 0.9em 0 0.7em; }
.punbb .fs-box p, .punbb .fs-box fieldset { padding: 0 0 0.7em 0; }
.punbb .inline .inputfield, .punbb .inline .selectfield, .punbb .inline .passfield { float: left; margin-right: 1em; }
.punbb .inline .infofield { clear: both; }
.punbb .datafield br { display: none; }
.punbb .required label, .punbb .datafield span.input { font-weight: 600; }
.punbb .datafield span.input a { font-weight: normal; }
.punbb .areafield span.input, .punbb p.longinput span.input { display: block; padding: 0 12em 0 0; height: 100%; }
.punbb textarea, .punbb .longinput input { width: 64%; margin: 0; background: var(--textarea); border-radius: 4px; border: 1px solid var(--border); }
.punbb .hashelp { position: relative; }
.punbb .helplinks { display: block; position: absolute; top: 1em; right: 0; font-weight: normal; width: 36%; }
.punbb #profile .helplinks { top: 1.5em; }
.punbb .helplinks span { display: block; padding-bottom: 0.2em; }
#pun-post .formal .info-box li { padding-left: 4px; list-style-type: square; list-style-position: inside; line-height: 1.5; margin: 0; }

/* === ÌÎÄ ÌÅÍÞ === */
.punbb .modmenu .container { padding: 0.4em 1em; text-align: right; border-radius: 0 0 8px 8px; }
.punbb .modmenu strong, .punbb .modmenu a { height: 1.8em; line-height: 1.8em; font-size: 11px; }
.punbb .modmenu .container strong { float: left; }
.punbb .modmenu input { margin-left: 1em; }

/* === ÏÐÎÔÈËÜ === */
#profile .container { padding-left: 18em; }
#profilenav { float: left; width: 14em; margin-left: -16em; display: inline; }
#profilenav li { padding-bottom: 0.7em; font-weight: 600; font-size: 11px; }
#viewprofile ul, #profilenav ul { border: 1px solid var(--border); padding: 1.2em 14px 0.7em; margin: 0 0 1em 0; border-radius: 6px; }
#viewprofile h2, #profilenav h2 { background: transparent; border: none; padding: 0; margin: 0 12px -0.6em; }
#viewprofile h2 span, #profilenav h2 span { padding: 0 5px; position: relative; }
#viewprofile li, #setmods dl { padding: 0 0 0 16em; margin-bottom: 0.2em; }
#viewprofile li span { float: left; width: 14em; margin-left: -16em; padding: 0.4em 1em; font-weight: 600; }
#setmods dt { float: left; width: 14em; margin-left: -16em; padding: 0.7em 1em; font-weight: 600; display: inline; }
#viewprofile li strong, #viewprofile li div, #setmods dd { display: block; padding: 0.4em 1em; font-weight: normal; }
.punbb img.avatardemo { float: right; margin: 0 0 0.8em 1.5em; }

/* === USERLIST === */
#pun-userlist .formal, #pun-userlist .formal .container { border-bottom: none; margin-bottom: 0; }
#pun-userlist .usertable .container { padding: 0 1.8em 1.8em; border-top: none; }
#pun-userlist .usertable table { border: 1px solid var(--border); }

/* === ÎÁÚßÂËÅÍÈÅ === */
#pun-announcement h2 { padding: 0; margin: 0 1em -3.5em; border-bottom: 1px solid var(--border); position: relative; font-weight: 600; font-size: 11px; }
#pun-announcement h2 span { display: block; padding: 1em 0 0.7em; border-bottom: 1px solid var(--border); }
#pun-announcement .container { padding: 4em 1em 1em; }

/* === ÑÒÀÒÈÑÒÈÊÀ === */
#pun-stats .container { padding: 0.8em 1em; }
#pun-stats li.item1, #pun-stats li.item2 { float: left; clear: both; line-height: 150%; font-size: 11px; }
#pun-stats li.item3, #pun-stats li.item4 { text-align: right; line-height: 150%; font-size: 11px; }
li#onlinelist { margin-top: 1em; border-top: 1px solid var(--border); float: left; width: 100%; line-height: 130%; font-size: 11px; }
li#onlinelist div { border-top: 1px solid var(--border); padding: 0.6em 0 0; }

/* === ÏÎÄÂÀË === */
#pun-qjump { margin: 0; border: none; width: 50%; position: relative; float: left; }
#pun-qjump .container { border: none; background: transparent; padding: 0.7em 1em; box-shadow: none; }
#pun-about { margin-top: 0; }
#pun-about .container { border: none; background: transparent; text-align: right; line-height: 150%; padding: 0.7em 1em; box-shadow: none; font-size: 10.5px; color: var(--text-pale); }
#pun-about p span { display: block; padding-left: 50%; }
#pun-crumbs2 { font-weight: 500; overflow: hidden; margin-bottom: 0; border-bottom: none; }
#pun-crumbs2 .container { border-bottom: none; padding: 0.7em 1em; font-size: 11px; background: transparent; box-shadow: none; border: none; }
#pun-break4 { display: none; }
div.punbb-admin #pun-about .container { border-top: 1px solid var(--border); }

/* === ÑÊÐÎËËÁÀÐ === */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }

/* === ÑÊÐÛÒÜ ÍÅÍÓÆÍÎÅ === */
.acchide, #pun-index #pun-main h1, #pun-navlinks h2, #pun-pagelinks h2,
#pun-status h2, #pun-ulinks h2, .punbb .forum h2, .punbb .multipage .topic h2,
.punbb dl.post-sig dt span, .punbb p.crumbs strong, .punbb .divider hr,
.punbb .required label em, .punbb .formsubmit label, .punbb .submitfield label,
.punbb .modmenu label, #pun-userlist .main h2 {
  position: absolute; width: 0; height: 0;
  left: -9999px; font-size: 0; overflow: hidden;
}

/* clearfix */
#pun:after, .punbb .container:after, .punbb .post-links ul:after,
.punbb .main div.inline:after, .punbb .post-box:after, .punbb .linksb:after {
  clear: both; content: "."; display: block; height: 0;
  visibility: hidden; overflow: hidden; line-height: 0; font-size: 0;
}
.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt { padding: 0; list-style: none; }
.punbb img { border: none; }
.checkfield input[type="checkbox"], .radiofield input[type="radio"] { margin: 0 0.3em; }
p[class="checkfield"] *, div[class="checkfield"] *, fieldset[class="radiofield"] * { height: 1.8em; vertical-align: middle; }
.punbb .info .container { padding: 0.7em 1em; }
.punbb .info .container .backlink { padding-top: 0.7em; }
#pun-viewforum .punbb .main .container,
#pun-searchtopics .punbb .main .container {
  padding: 0;
}

/* help */
#pun-help .formal .info-box h3.legend { border-bottom: 1px solid var(--border); padding-bottom: 0; margin-bottom: 0.7em; }
#pun-help .formal .info-box h3.legend span { padding-bottom: 0.5em; display: block; border-bottom: 1px solid var(--border); font-size: 11px; }
#pun-help .formal p, #pun-help .formal dd { margin-bottom: 1em; }
#pun-help .formal ul, #pun-help .formal dl { padding: 0 0 0 1em; }
#pun-help .formal li { padding: 0; line-height: 130%; }
#pun-help .formal li * { vertical-align: text-top; }
#pun-help .formal dt span { font: 1.3em/120% monaco, "courier new", courier, monospace; }
#pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode { padding-bottom: 0; }

/* Êíîïêè */
.punbb input[type="submit"], .punbb input.button {
  background: var(--button);
  color: var(--button-text);
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background .1s;
}
.punbb input[type="submit"]:hover, .punbb input.button:hover {
  background: var(--accent);
}

/* Pagelinks */
#pun-pagelinks { position: absolute; top: -15px; left: 0; margin: 0; border: none; padding: 0; width: 100%; }
#pun-pagelinks .container { background: transparent; border: none; padding: 0; box-shadow: none; }
#pun-pagelinks .container li { display: inline; }
#pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover { height: 2em; line-height: 2em; padding: 0; font-size: 12px; margin-left: -9999px; display: block; float: left; width: 100%; }
#pun-pagelinks a:active, #pun-pagelinks a:focus { position: relative; margin: 0; }
#pun-pagelinks li a span { display: block; margin: 0 1em; }
