/*
Theme Name: Vrede
Theme URI: https://vredkureniya.ru/
Description: Школьный сайт о вреде курения. Дизайн в стиле WordPress 2005 (а-ля Kubrick): голубая шапка с облаками, серый фон-плитка, две колонки, сайдбар с виджетами, валидаторы W3C. Georgia + Verdana.
Author: VOne Solutions
Version: 1.0
Text Domain: vrede
*/

html, body { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Lucida Grande', Verdana, Geneva, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  background-color: #d5d6d7;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4'><rect width='4' height='4' fill='%23d5d6d7'/><rect width='1' height='1' x='0' y='0' fill='%23c8c9ca'/></svg>");
  padding: 20px 0;
}

a { color: #21759b; text-decoration: underline; }
a:visited { color: #5a5a5a; }
a:hover { color: #d54e21; }

/* ─── Wrapper ─── */
.wrap-outer { width: 1100px; margin: 0 auto; }
.wrap {
  background: #fff;
  border: 1px solid #959596;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}
.totop {
  width: 1100px; margin: 12px auto 0; text-align: center;
  font-size: 10px; color: #7a7c7e;
}
.totop a { color: #666; text-decoration: none; }

/* ─── Header ─── */
.site-header {
  position: relative; height: 140px; overflow: hidden;
  background: linear-gradient(180deg, #73a0c5 0%, #4a7ba6 100%);
  border-bottom: 1px solid #2c5a86;
  color: #fff;
}
.site-header .clouds {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .25; pointer-events: none;
}
.site-header .hd-inner {
  position: relative; padding: 24px 30px;
  display: flex; align-items: center; gap: 18px;
}
.site-header .logo-mark { flex: 0 0 auto; }
.site-header h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400; font-size: 36px; letter-spacing: 0.3px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.25); line-height: 1;
}
.site-header h1 a { color: #fff; text-decoration: none; }
.site-header .tagline {
  margin-top: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; font-size: 14px; color: #cfe2f3;
}

/* ─── Nav ─── */
.nav {
  background: linear-gradient(180deg, #eaf1f7 0%, #d8e2ed 100%);
  border-bottom: 1px solid #c2d5e3;
  padding: 6px 22px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.nav a {
  color: #21759b; text-decoration: underline;
  padding: 4px 8px; border-radius: 2px;
  border: 1px solid transparent; border-bottom: 1px solid transparent;
  margin-bottom: -7px; display: inline-block; position: relative; top: 1px;
}
.nav a.active {
  color: #000; text-decoration: none; background: #fff;
  border: 1px solid #c2d5e3; border-bottom: 1px solid #fff;
}
.nav .sep { color: #9eb3c5; margin: 0 10px; }

/* ─── Two-column body ─── */
.two-col {
  display: flex; align-items: flex-start;
  border-top: 1px solid #fff; background: #fff;
}
.main {
  flex: 1; min-width: 0;
  padding: 22px 22px 28px;
  border-right: 1px solid #ececec;
  min-height: 1100px;
}
.sidebar {
  width: 200px; flex: 0 0 200px;
  padding: 24px 18px 24px 14px;
  font-size: 11px;
}

/* ─── Typography ─── */
.main h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px; font-weight: 400; color: #333;
  margin: 0 0 4px; letter-spacing: 0.2px;
}
.main h2 a { color: #333; text-decoration: none; }
.main h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px; font-weight: 700; color: #333;
  margin: 20px 0 6px;
}
.main p { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: #333; }
.main ul.square { margin: 4px 0 10px; padding-left: 22px; list-style-type: square; font-size: 12px; line-height: 1.6; }
.main ul.square li { margin-bottom: 2px; }
.main ol { margin: 12px 0 16px; padding-left: 22px; font-size: 12px; line-height: 1.6; }

.post-meta {
  font-size: 11px; color: #777; font-style: italic;
  margin-bottom: 14px;
  border-bottom: 1px dotted #d3d3d3;
  padding-bottom: 8px;
}
.post-meta strong { font-style: normal; }

.note {
  border-left: 4px solid #c2d5e3;
  padding: 8px 12px;
  background: #f6faff;
  font-style: italic; color: #3a536b;
  font-size: 12px; margin: 10px 0 14px;
}

.callout {
  margin-top: 22px; padding: 10px 12px;
  background: #fffce6; border: 1px solid #f1e08a;
  font-size: 11px; color: #705e0e;
}

/* ─── Tables ─── */
table.t {
  border-collapse: collapse; width: 100%;
  font-size: 12px; margin: 4px 0 14px;
}
table.t th, table.t td {
  padding: 5px 8px; border: 1px solid #d0d4d9;
  vertical-align: top; text-align: left;
}
table.t th {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700; font-size: 12px; color: #234;
  background: #e4ebf1;
}
table.t tr.alt td { background: #fafbfc; }
.num-bad { color: #a32; font-weight: 700; white-space: nowrap; }
.num-bad .l { font-weight: 400; color: #777; font-size: 11px; }
.phone { font-family: 'Courier New', monospace; font-weight: 700; color: #a32; white-space: nowrap; }

/* ─── Floating figure ─── */
.figure-right {
  float: right; width: 200px; margin: 4px 0 10px 14px;
  border: 1px solid #b8c1cb; padding: 4px;
  background: #f6f8fb;
}
.figure-right .ph {
  width: 100%; height: 150px;
  background: #d5d1c7 center/cover no-repeat;
}
.figure-right .cap {
  font-size: 10px; color: #555; font-style: italic;
  padding: 5px 2px 0; line-height: 1.4; text-align: center;
}
.figure-right .cap .src { color: #888; }
.clear { clear: both; }

/* ─── Sidebar widgets ─── */
.widget { margin-bottom: 18px; color: #333; }
.widget h3 {
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px; color: #333;
  border-bottom: 1px solid #dadfe4;
  padding-bottom: 4px; font-weight: 700; letter-spacing: 0.2px;
}
.widget ul { margin: 0; padding: 0 0 0 16px; list-style-type: square; }
.widget ul li { margin-bottom: 4px; line-height: 1.55; }
.widget .body { font-size: 11px; line-height: 1.55; }

.widget input.text {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 11px;
  padding: 4px 6px; border: 1px solid #b4b9c0;
  background: #fff; border-radius: 0;
}
.widget button.btn {
  margin-top: 5px; font-family: inherit; font-size: 11px;
  padding: 3px 10px; border: 1px solid #8a8f96;
  background: linear-gradient(180deg, #fefefe, #dcdfe3);
  cursor: pointer;
}

.counter {
  font-family: 'Courier New', monospace; font-size: 14px;
  background: #000; color: #7fff7f; padding: 4px 8px;
  letter-spacing: 4px; display: inline-block;
  border: 1px solid #444;
}
.counter-cap { font-size: 10px; color: #777; margin-top: 4px; }

.badges { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.badge {
  width: 88px; height: 31px;
  border: 1px solid #888;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0.2px;
  text-transform: uppercase; line-height: 1.1;
}
.badge .sub { font-weight: 400; font-size: 8px; opacity: .75; }
.badge.xhtml { background: #fff; color: #000; }
.badge.css   { background: #fff; color: #000; }
.badge.rss   { background: #fb8c1c; color: #fff; }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid #959596;
  background: linear-gradient(180deg, #f3f4f5, #e4e5e6);
  padding: 14px 22px; font-size: 11px; color: #555;
  display: flex; justify-content: space-between; align-items: center;
}
.site-footer .v {
  font-family: 'Courier New', monospace;
  font-size: 10px; color: #888;
}
