/* «Северный дачник» — минимальные правки поверх layout.css от Green_Future */

/* Модернизация - убираем фиксированную 940px ширину, делаем responsive */
#centered {
    width: 100% !important;
    max-width: 940px;
    padding: 0 15px;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif !important;
    font-size: 15px;
    color: #131414;
    background: #f7f5eb !important;
}

/* Логотип — текстовый вместо картиночного */
.site-logo {
    display: block;
    text-decoration: none !important;
    padding: 24px 0;
}
.site-logo-brand {
    display: block;
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: #446f0b;
    letter-spacing: 0.5px;
}
.site-logo-tagline {
    display: block;
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-transform: none;
}

/* Nav — тоже без background image bullets */
ul#navigation {
    list-style: none;
}
ul#navigation li a {
    background: none !important;
    padding: 5px 12px !important;
    text-decoration: none;
    color: #131414;
    font-family: 'Georgia', serif;
    font-size: 15px;
}
ul#navigation li.active a {
    background: #446f0b !important;
    color: #ffffff !important;
    border-radius: 3px;
}
ul#navigation li a:hover {
    background: #e4e2d2 !important;
    text-decoration: none;
    border-radius: 3px;
}

/* Content */
#two-col {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
    margin: 20px 0;
    padding: 0;
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e4e2d2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
#left, #right {
    width: auto !important;
    float: none !important;
    min-width: 0;
}

/* Blog post — modernize */
.post {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #e4e2d2;
}
.post:last-child { border-bottom: none; }
.post h1 {
    color: #446f0b;
    font-family: 'Georgia', serif;
    font-size: 28px;
    margin: 0 0 12px;
    line-height: 1.3;
}
.post h2 {
    color: #446f0b;
    font-family: 'Georgia', serif;
    font-size: 22px;
    margin-top: 30px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e4e2d2;
}
.post h3 {
    color: #446f0b;
    font-family: 'Georgia', serif;
    font-size: 18px;
    margin-top: 22px;
}
.post p {
    line-height: 1.65;
    color: #333;
    margin: 12px 0;
}
.post ul, .post ol {
    padding-left: 25px;
    margin: 12px 0;
}
.post li {
    margin: 6px 0;
    line-height: 1.6;
}
.post .lead {
    font-size: 17px;
    color: #555;
    font-style: italic;
    margin: 8px 0 20px;
    padding: 12px 16px;
    background: #f7f5eb;
    border-left: 4px solid #d1cfbd;
    border-radius: 4px;
}
.post blockquote {
    background: #f7f5eb;
    border-left: 4px solid #446f0b;
    padding: 14px 18px;
    margin: 18px 0;
    font-style: italic;
    color: #55503b;
    border-radius: 4px;
}
.post table {
    border-collapse: collapse;
    margin: 16px 0;
    width: 100%;
}
.post table th {
    background: #446f0b;
    color: #fff;
    text-align: left;
    padding: 8px 12px;
    font-family: 'Georgia', serif;
}
.post table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e4e2d2;
}
.post table tr:nth-child(even) {
    background: #f7f5eb;
}

/* Sidebar boxes */
#right .box1, #right .box2 {
    background: #f7f5eb !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e4e2d2;
    border-radius: 6px;
}
#right h2 {
    color: #446f0b;
    font-family: 'Georgia', serif;
    font-size: 17px;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #d1cfbd;
}
#right .catlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
#right .catlist li {
    padding: 6px 0 6px 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><circle cx='5' cy='5' r='3' fill='%23446f0b'/></svg>") no-repeat 0 10px;
    border-bottom: 1px dashed #e4e2d2;
}
#right .catlist li:last-child { border-bottom: none; }
#right .catlist a {
    color: #446f0b;
    text-decoration: none;
    font-family: 'Georgia', serif;
}
#right .catlist a:hover {
    text-decoration: underline;
}

/* Money-block: our custom, консистентно с темой */
.money-block {
    margin: 28px 0;
    padding: 22px;
    background: #fdf5ea;
    border-left: 5px solid #a06325;
    border-radius: 6px;
}
.money-block h3 {
    color: #6b4416;
    font-family: 'Georgia', serif;
    margin: 0 0 10px;
    font-size: 18px;
    padding-bottom: 0;
    border-bottom: none;
}
.money-block a {
    color: #6b4416;
    font-weight: 600;
    text-decoration: underline;
}

/* Footer */
#footer {
    margin-top: 30px;
    padding: 20px;
    background: #446f0b;
    color: #e4e2d2;
    text-align: center;
    border-radius: 6px;
    font-family: 'Georgia', serif;
}
#footer strong { color: #fff; }
#footer a { color: #d1cfbd; text-decoration: underline; }
#footer p { margin: 6px 0; }
#footer .fsmall { font-size: 12px; opacity: 0.85; }

/* Responsive */
@media (max-width: 820px) {
    #header {
        height: auto !important;
    }
    ul#navigation {
        float: none !important;
        margin: 0 !important;
        display: block !important;
    }
    ul#navigation li {
        display: block !important;
        padding: 0 !important;
        margin: 4px 0;
    }
    ul#navigation li a {
        display: block;
        padding: 8px 12px !important;
    }
    #two-col {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    .post h1 { font-size: 22px; }
    .post h2 { font-size: 19px; }
    .site-logo-brand { font-size: 24px; }
}
