/* teplovoz.com — styles of the rewritten pages. Same colours and fonts as the old main2.php, layout without tables. */
:root {
  --red: #A22E17; --ink: #000; --line: #888; --line-soft: #ddd; --muted: #999;
  --left: #F4E4C3; --left-top: #E6D1A7; --main: #FFFDF6; --box: #FFFCED; --item: #F3EACE; --item-hi: #fffff0; --tome: #faf2b0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 8px; background: #fff; color: var(--ink); font: 8pt/1.35 Verdana, Geneva, sans-serif; }
a { color: var(--ink); }
a:hover { color: var(--line); }
img { border: 0; max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--muted); margin: 6px 0; }
h1, h2, h3 { margin: 0; font-weight: normal; }
input, select, textarea, button { font: inherit; color: #000; background: var(--item); border: 1px solid #000; }
button { cursor: pointer; padding: 1px 8px; }
input[type=checkbox] { border: 0; background: none; vertical-align: middle; }
textarea { max-width: 100%; }

.center { text-align: center; } .right { text-align: right; } .left { text-align: left; } .nw { white-space: nowrap; }
.red { color: red; } .green { color: green; } .muted { color: #aaa; } .tiny { font-size: 6pt; display: block; } .small { font-size: 6pt; }
.nick, a.nick { color: var(--red); }
.ph, .ph2 { font: 18pt Impact, 'Arial Narrow', sans-serif; } .ph2 { color: var(--red); }
.h12r { font: bold 12pt Arial, sans-serif; color: var(--red); text-decoration: none; }
.h10r { font: bold 10pt Arial, sans-serif; color: var(--red); }
.noline { text-decoration: none; }
.linklike { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }

.top { text-align: center; }
.frame { max-width: 980px; margin: 2px auto 0; }
.slogan { display: flex; border: 1px solid var(--line); background: var(--left); }
.slogan-l { flex: 0 0 160px; background: var(--left-top); text-align: center; padding: 2px; border-right: 1px solid var(--line); }
.slogan-r { flex: 1; text-align: right; padding: 4px 2px; }
.cols { display: flex; margin-top: 3px; border: 1px solid var(--line-soft); }
.leftcol { flex: 0 0 162px; width: 162px; background: var(--left); padding: 3px; border-right: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.mainblock { flex: 1; min-width: 0; background: var(--main); padding: 6px 8px; overflow-wrap: anywhere; }
.foot { max-width: 980px; margin: 2px auto; color: var(--line-soft); }

.menu { border: 1px solid var(--line); background: var(--line); display: grid; gap: 1px; }
.menu a, .menu .cur { display: block; padding: 3px; background: var(--item); font-weight: bold; font-size: 9pt; text-decoration: none; }
.menu a:hover, .menu .cur { background: var(--item-hi); color: var(--ink); }
.box { border: 1px solid var(--line); background: var(--box); padding: 5px; margin-top: 8px; }
.box h3 { text-align: center; font-weight: bold; font-size: 8pt; margin-bottom: 4px; }
.box h3 a, .box .tiny a { text-decoration: none; }
.box p { margin: 6px 0; }
.box p.tiny a { font-size: 6pt; }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { margin-top: 5px; padding-left: 9px; position: relative; }
.dots li::before { content: "\2022"; position: absolute; left: 0; }
.hello { color: green; text-align: center; }
.login label { display: block; margin-bottom: 3px; }
.login input { width: 96px; }
.online a { font-size: 6pt; }
.flash { border: 1px solid var(--red); background: #FFFFCC; padding: 6px; }

.pagehead.three { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.pagehead h1 { text-align: center; }
.pagehead .search { text-align: right; }
.postform { text-align: center; margin: 12px 0; }
.postform textarea { width: min(100%, 520px); }
.needlogin { text-align: center; margin: 30px 0; }
.navline { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0; }

.msg { border-bottom: 1px solid var(--muted); padding-bottom: 6px; margin-bottom: 4px; scroll-margin-top: 8px; }
.msg header { display: flex; justify-content: space-between; gap: 8px; padding: 4px 5px; }
.msg .meta { text-align: right; }
.msg .body { background: var(--item); padding: 5px; }
.msg .body.tome { background: var(--tome); }
.msg:target .body { outline: 2px solid var(--red); }
.newdot { color: #f8c017; font-style: italic; }

.creo-cols { display: flex; gap: 10px; }
.creo-main { flex: 4; min-width: 0; }
.creo-side { flex: 1; min-width: 150px; padding-top: 24px; }
.creolist { border-collapse: collapse; }
.creolist td { padding: 1px 4px; vertical-align: top; }
.voluntary { margin: 10px 10px 0; }
.adminrow { margin: 30px 0 16px; } .adminrow .linklike { color: inherit; }
.hiddenlist { margin: 10px 0 20px; line-height: 1.5; } .hiddenlist .linklike { color: #00c; font: inherit; } .hiddenlist .linklike.green { color: green; } .hiddenlist .linklike.red { color: red; }
.votelist { margin: 0 auto 20px; } .votelist .head th { background: #FFf8dc; text-align: left; }
.creo-head { display: flex; gap: 10px; align-items: flex-start; margin: 10px; }
.creo-head .grow { flex: 1; text-align: justify; }
.creo-text { margin: 10px; text-align: justify; }
.votes { margin: 20px 10px; }
.votes summary { cursor: pointer; text-decoration: underline; }
.panel { border: 1px solid var(--line); background: var(--box); margin-bottom: 16px; padding: 4px; }
.panel h3 { background: var(--left); font-weight: bold; text-align: center; padding: 4px; margin: -4px -4px 4px; border-bottom: 1px solid var(--line); font-size: 8pt; }
.plain { list-style: none; margin: 0; padding: 3px; }
.plain li { margin-bottom: 6px; }
.framed { border: 1px solid var(--line); }

.tiny.inl { display: inline; }
.voted { background: #fefedf; }
.aa { text-decoration: none; font-weight: bold; }
.notice { margin: 40px 0 10px; }
.narrow { max-width: 700px; margin: 0 auto; }
.creoform input[type=text], .creoform textarea { width: 100%; }

.home-top { display: grid; grid-template-columns: 7fr 3fr; gap: 6px; margin-bottom: 10px; }
.home-top .panel { margin: 0; }
.home-top .pic { display: flex; align-items: center; justify-content: center; }
/* as the old two-cell table: tan cell (class leftblock) with the banner, cream cell with the text, 1px grey line between */
.home-top .about { display: flex; padding: 0; }
.home-top .about .pa { flex: 0 0 auto; background: var(--left); padding: 10px 26px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.home-top .about .txt { flex: 1; padding: 10px; align-self: center; }
.home-cols { display: flex; gap: 10px; }
.home-main { flex: 65; min-width: 0; } .home-side { flex: 35; min-width: 0; }
.bar { background: #D2BC90; text-align: center; font-weight: bold; font-size: 8pt; padding: 3px; margin: 0 0 6px; }
.bar.grey { background: #aaa; margin-top: 24px; } .bar.light { background: #ddd; margin-top: 24px; }
.teaser { border-bottom: 1px solid var(--muted); margin-bottom: 6px; padding-bottom: 6px; }
.teaser header { display: flex; justify-content: space-between; gap: 8px; padding: 4px; }
.teaser .body { background: var(--item); padding: 6px; display: flex; align-items: center; gap: 10px; }
.teaser .thumb { flex: 0 0 160px; text-align: center; }      /* own column, as the old table cell (width=160, centered) */
.teaser .text { flex: 1; min-width: 0; }

.pagehead.two { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin: 10px; }
.people { margin: 22px 10px; }
.namecols { columns: 5 130px; margin-top: 8px; }
.namecols a { display: block; }
.profile-cols { display: flex; gap: 20px; flex-wrap: wrap; }
.profile-cols > div:first-child { flex: 1 1 380px; } .profile-cols > div:last-child { flex: 0 1 300px; }
.photos img { margin: 0 4px 4px 0; vertical-align: bottom; }
.grid { border-collapse: collapse; width: 100%; max-width: 720px; }
.grid td, .grid th { border: 1px solid #ddd; padding: 3px 5px; }
.grid .head th { background: #FFf8dc; }
.c_creo { background: #FFFDF6; } .c_best { background: #FFdead; } .c_otstoy { background: #f6f6f6; } .c_otstoy, .c_otstoy a { color: #aaa; }
.periods { text-align: left; display: inline-block; margin-top: 14px; }
.votegrid { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.votegrid form div { margin: 3px 0; } .votegrid form b { display: inline-block; min-width: 30px; text-align: right; }
.votegrid .half { font-size: 7pt; } .votegrid form.off { color: #ccc; }

.fields label { display: block; margin: 8px 0; } .fields label > input[type=text], .fields label > input[type=email], .fields label > input[type=password], .fields label > textarea { display: block; margin-top: 2px; max-width: 100%; }
.fields label.blk, .blk { display: block; margin: 3px 0; }
.asplain { border: 0; background: transparent; font-weight: bold; color: var(--red); padding: 0; }
.hp { position: absolute; left: -5000px; }
.twocol { display: flex; gap: 30px; flex-wrap: wrap; }
.photogrid { display: flex; flex-wrap: wrap; gap: 12px; } .photogrid figure { margin: 0; text-align: center; }
.tabs { font: 10pt Arial, sans-serif; } .tabs b { color: var(--red); font-size: 12pt; }
.grid.pm td { vertical-align: top; }
h2.h10r, h2.h12r { margin: 22px 0 8px; }

/* archive pages keep their old markup: the old class names still mean the same */
.archive { overflow-x: auto; }
.pageheader, .pageheader2 { font: 18pt Impact, 'Arial Narrow', sans-serif; text-decoration: none; } .pageheader2 { color: var(--red); }
.pageheader14ib, .pageheader14ir { font: 14pt Impact, sans-serif; } .pageheader14ir { color: var(--red); }
.pageheader3 { font: 10pt Arial; text-decoration: underline; } .pageheader4 { font: 12pt Arial; color: var(--red); }
.pageheader10, .pageheader10b, .pageheader10r { font: 10pt Arial; } .pageheader10b, .pageheader10r { font-weight: bold; } .pageheader10r { color: var(--red); }
.pageheader12b, .pageheader12r { font: bold 12pt Arial; } .pageheader12r { color: var(--red); }
.copyright, .copyright4 { color: #ddd; } .copyright3, .copyright7g, .copyright8g { color: #aaa; }
.copyright2, .copyright4, .copyright6 { font-size: 6pt; } .copyright7, .copyright7g { font-size: 7pt; }
.author_auth, a.author_auth { color: var(--red); } .justified { text-align: justify; }
hr.under, hr.under2, hr.under3, hr.thin { border: 0; border-top: 1px solid var(--muted); }
table.border, td.border, .border50 { background: #888; } .border80 { background: #aaa; } .border90 { background: #ddd; }
.topblockl { background: var(--left-top); } .leftblock, .leftblock0 { background: var(--left); } .announce { background: var(--box); }
.comment, .mainmenuitem { background: var(--item); } .theader { background: #D2BC90; } .lightyellow { background: #FFC; } .lightgreen { background: #DFD; }
.c_border { background: #ddd; } .c_head { background: #FFf8dc; } .q { font: 11pt Arial; } .qa { font: 11pt Arial; color: var(--red); }
.archive td, .archive li, .archive p { font-size: inherit; }

body.print { max-width: 800px; margin: 20px auto; font-size: 11pt; background: #fff; }
body.print h1 { font: bold 14pt Arial, sans-serif; }

/* phones and narrow windows: readable text, left column moves under the page */
@media (max-width: 760px) {
  body { font-size: 11pt; margin: 4px; }
  .tiny, .small, .box p.tiny a, .online a { font-size: 9pt; }
  .cols { flex-direction: column; }
  .leftcol { flex: none; width: auto; order: 2; border-right: 0; border-top: 1px solid var(--line-soft); }
  .menu { grid-template-columns: 1fr 1fr; }
  .menu a, .menu .cur { font-size: 11pt; padding: 8px 5px; }
  .slogan-l { display: none; }
  .home-top { grid-template-columns: 1fr; } .home-cols { flex-direction: column; }
  .teaser .thumb { flex-basis: 90px; } .teaser .thumb img { width: 90px; }
  .pagehead.two { flex-direction: column; align-items: stretch; }
  .creo-cols { flex-direction: column; }
  .creo-side { padding-top: 0; }
  .pagehead.three { grid-template-columns: 1fr; }
  .pagehead .search { text-align: center; }
  .msg header { flex-direction: column; gap: 2px; }
  .msg .meta { text-align: left; }
  .navline { flex-direction: column; }
  .creo-text, .creo-head .grow { text-align: left; }
  input, select, textarea, button { font-size: 16px; }   /* stops iOS zooming into fields */
}
