* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Georgia, serif;
}

/* --- Q&A styles (merged from static/css/q-and-a.css) --- */
body.qanda-standalone, body.q-and-a { font-family: Georgia, serif; background: #fffaf1; color: #131313; padding: 24px }
.qanda-list{margin:1rem 0 1.25rem;padding:0;list-style:none;max-width:720px}
.qanda-list .qitem{border:1px solid rgba(137,81,41,0.45);background:rgba(255,252,244,0.95);border-radius:10px;padding:0.9rem;margin-top:0.9rem}
.qanda-list .qitem:first-child{margin-top:0}
.qanda-list .qmeta{font-size:0.92rem;color:#6e4424;margin-bottom:0.45rem}
.qanda-list .q{font-size:1.05rem;margin:0 0 0.4rem}
.qanda-list .a{margin:0;white-space:pre-wrap}
.qanda-list .answered-by{display:none}
.qanda-list .answer-by{margin-left:1rem;color:#6e4424;margin-top:0.5rem;font-style:normal}
.answer-box{border:1px solid #d0d0d0;background:#f6f6f7;padding:0.65rem;border-radius:8px;margin-top:0.6rem}
.answer-box .a{margin:0;white-space:pre-wrap}
.answer-box .answer-by{margin-left:1rem;color:#6e6e6e;margin-top:0.5rem;font-style:normal}

/* Survey form rules (match main site) */
.survey-container h2 { margin-bottom: 0.45rem; }
.survey-form { display: grid; gap: 0.45rem; max-width: 720px; margin-top: 0.45rem; }
.survey-form label { font-size: 1rem; }
.survey-form input,
.survey-form select,
.survey-form textarea {
    width: 100%; border: 1px solid #895129; background: #fff; color: #131313;
    padding: 0.7rem 0.8rem; font-size: 1rem; font-family: Georgia, serif;
}
.survey-form textarea { resize: vertical; min-height: 96px; }
.survey-form button {
    width: fit-content; border: 1px solid #895129; background: #e7d5b8;
    color: #131313; padding: 0.55rem 0.95rem; font-size: 1rem; cursor: pointer;
}
.survey-form button:hover { background: #895129; color: #fff; }
.survey-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.survey-status { margin-top: 0.45rem; min-height: 1rem; }
.survey-status--ok { color: #205f2a; }
.survey-status--error { color: #7a2020; }
.survey-note { margin-top: 0.2rem; font-size: 0.9rem; }

/* Q&A visibility is controlled by client JS; do not hide the list by default */

.terms--tags {
    margin-top: 1rem;
}

.terms__label {
    margin-right: 0.45rem;
    font-weight: 700;
}

.terms__items {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    vertical-align: middle;
}

.terms__tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1px solid #895129;
    border-radius: 999px;
    background: #e7d5b8;
    color: #131313;
    text-decoration: none;
    line-height: 1.25;
}

.terms__tag:hover,
.terms__tag:focus-visible {
    background: #895129;
    color: #fff;
}


:root {
    --content-max-width: 1500px;
    --column-min-width: 150px;
    --column-width: max(var(--column-min-width), 12vw);
    --floor-height: 900px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

html {
    overflow-y: scroll;
    background-color: #CFB997;
}

html, body {
    height: 100%;
    padding: 0;
}

body {
    width: 100%;
    margin: 0;
    background-color: #CFB997;
    color: #131313;
}

.page-content {
    position: relative;
}

.page-content::before,
.page-content::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 6px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        #fff4a8 0%,
        #ffd54a 22%,
        #fff9d6 45%,
        #f2b92f 70%,
        #fff0a0 100%
    );
}

.page-content::before {
    left: var(--column-width);
}

.page-content::after {
    right: var(--column-width);
}

@media screen and (max-width: 960px) {
    .page-content::before {
        left: var(--safe-left);
    }

    .page-content::after {
        right: var(--safe-right);
    }

    .floor-dock {
        display: none;
    }
}

.floor-dock {
    position: sticky;
    bottom: 0;
    height: var(--floor-height);
    margin-top: calc(-1 * var(--floor-height));
    background-image: var(--img-floor);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

html.aboutme-page,
body.aboutme-page {
    overflow: hidden;
}

body.aboutme-page .gridcontainer--full > .hero {
    transform: scale(var(--aboutme-scale, 1));
    transform-origin: top center;
}

body.aboutme-page .gridcontainer--full > .hero > h1 {
    display: inline-block;
    background-color: #fff;
    padding: 0.2rem 0.5rem;
}

body.aboutme-page .gridcontainer--full > .hero > h1 {
    padding-left: 0.5rem;
}

body.aboutme-page .aboutme-variant .hero,
body.aboutme-page .aboutme-variant .aboutme {
    padding-left: 0;
    padding-right: 0;
}

body.aboutme-page .aboutme-variant .aboutme {
    padding-left: 10px;
    padding-right: 10px;
}

@media screen and (max-width: 960px) {
    html.aboutme-page,
    body.aboutme-page {
        overflow-y: auto;
    }

    body.aboutme-page .gridcontainer--full > .hero {
        transform: none;
    }

    body.aboutme-page .gridcontainer--full .hero,
    body.aboutme-page .gridcontainer--full .aboutme,
    body.aboutme-page .gridcontainer--full .hero > h1,
    body.aboutme-page .gridcontainer--full .aboutme h1 {
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
    }
}

@media screen and (max-width: 960px) {
    .page-content > .gridcontainer::before,
    .page-content > .gridcontainer::after {
        display: none;
    }
}

.navbar {
    background-image: var(--img-header);
    background-repeat: repeat-x;
    background-size: contain;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 50;
    align-items: center;
}

#navbar__logo {
    background-color: #e7d5b8;
    background-size: 100%;
    color: #131313;
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 85%;
    text-decoration: none;
    font-size: 3rem;
    font-weight: bold;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80;
}

.navbar__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
}

.navbar__links {
    background: #e7d5b8;
    color: #131313;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    width: auto;
    white-space: nowrap;
}

.navbar__links:hover {
    background: #895129;
    transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {

    .navbar__toggle {
        display: block;
    }

    .navbar {
        height: 80px;
        overflow: visible;
        padding-left: var(--safe-left);
        padding-right: var(--safe-right);
    }
    
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        position: relative;
        overflow: visible;
        width: 100%;
        max-width: 1300px;
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
    }

    .navbar__menu {
        display: none;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        opacity: 1;
        max-height: none;
        overflow: visible;
        z-index: 1000;
        background: #e7d5b8;
    }

    .navbar__menu.active {
        display: grid;
        max-height: 70vh;
        overflow-y: auto;
        font-size: 1.6rem;
    }

    #navbar__logo {
        padding-left: 25px;
        display: flex;
        font-size: 1.5rem;
        font-weight: bold;
        height: 80%;
        align-self: center;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
    }

    .navbar__item {
        width: 100%;
        height: auto;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: max(12px, var(--safe-right));
        transform: translate(5%, 20%);
        z-index: 1001;
        cursor: pointer;
    }
    
    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 80px;
        margin-block-end: 0;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section CSS */

.gridcontainer {
    display: grid;
    grid-template-columns: 70% 1fr;
    grid-column-gap: 2rem;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
    background-color: #CFB997;
    z-index: 1;
}

body.aboutme-page .page-content > .gridcontainer {
    background-color: transparent;
}

body.aboutme-page .page-content::before,
body.aboutme-page .page-content::after {
    display: none;
}

@media screen and (min-width: 961px) {
    .gridcontainer,
    .gridcontainerabout {
        width: calc(100% - (2 * var(--column-width)));
        max-width: var(--content-max-width);
    }
}

.page-content > .gridcontainer::before,
.page-content > .gridcontainer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--column-width);
    background-image: var(--img-column);
    background-repeat: repeat-y;
    background-size: 130% auto;
    pointer-events: none;
}

.page-content > .gridcontainer::before {
    left: calc((100vw - 100%) / -2);
    background-position: right top;
}

.page-content > .gridcontainer::after {
    right: calc((100vw - 100%) / -2);
    background-position: left top;
}

body.aboutme-page .page-content > .gridcontainer::before,
body.aboutme-page .page-content > .gridcontainer::after {
    background-repeat: no-repeat;
    background-size: 130% auto;
}

body.aboutme-page .page-content > .gridcontainer::before {
    background-position: right top;
}

body.aboutme-page .page-content > .gridcontainer::after {
    background-position: left top;
}

.gridcontainerabout {
    display: grid;
    grid-template-columns: 50% 45%;
    column-gap: 5%;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
}

    /* Full-width layout for About Me page */
    .gridcontainer--full {
        grid-template-columns: 1fr;
    }

    .gridcontainer--full .hero,
    .gridcontainer--full .aboutme {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Align page title with About Me content */
    .gridcontainer--full .hero > h1,
    .gridcontainer--full .aboutme h1 {
        padding-left: 20px;
        padding-right: 20px;
        margin: 0 0 0.25rem 0;
    }

    /* Reduce vertical gap between title and content */
    .gridcontainer--full .aboutme {
        padding-top: 0px;
    }

.hero {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20%;
    min-height: 65vh;
}

.hero h1 {
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

h2{
    font-size: 1.6rem;
    font-family: Georgia, serif;
    margin-bottom: 0.4rem;
    color: #131313; 
}

h2 a {
    color: inherit;
    text-decoration: none;
}

h2 a:hover {
    color: #895129;
    transition: color 0.25s ease;
}

p {
    font-size: 1.15rem;
    font-family: Georgia, serif;
    margin-bottom: 15px;
    line-height: 1.58;
}

.hero time {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    color: #6e4424;
    font-weight: normal;
    letter-spacing: 0.01em;
}

.heroabout {
    min-height: 65vh;
}

.aboutme {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20%;
    background-color: #fff;
}

.aboutme1{
    background-image: var(--img-rusfort);
    background-attachment:fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.aboutmeimg {
    padding-top: 20px;
    width : 85%;
    padding-bottom: 20px;
}

@media screen and (max-width: 960px) {

.gridcontainer--post {
    grid-template-columns: 1fr;
}

.gridcontainer--post .sidebar {
    display: none;
}

.hero {
    padding: 20px;
}

}

/* Sidebar CSS */

.sidebar {
    align-items: flex-start;
    padding-top: 20px;
    font-size: 1.05rem;
    min-width: 0;
}

.sidebar a {
    color: inherit;
    text-decoration: none;
}

.sidebar a:hover {
    color: #895129;
    transition: all 0.3s ease;
}

.menu-header.expanded {
    color: #895129;
}

.sidebar h1,
.sidebar .archive-heading {
    font-size: 1.6rem;
}

@media screen and (max-width: 960px) {

.expand-btn {
    opacity: 0;
}

.sidebar h1,
.sidebar .archive-heading {
    font-size: 1.6rem;
}

}

/* Footer CSS */
.footer {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 25vh;
    background-color: #131313;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-image: var(--img-footer);
    background-size: cover;
    background-position: 50% 55%;
}
    
    .footer--none {
        display: none;
        height: 0;
        min-height: 0;
        padding: 0;
    }

.footer__container {
    display: flex;
    justify-content: space-between;
    z-index: 1;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 50;
}

.footer__entries {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    font-size: 1rem;
}

.newsletter-container {
    border: 2px solid #895129;
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
    max-width: none;
    background: rgba(231, 213, 184, 0.5);
    margin-top: 1rem;
}

.sidebar .newsletter-container {
    width: min(100%, 320px);
    max-width: 100%;
    padding: 0.75rem 0.75rem 0.5rem;
}

.sidebar .newsletter-container h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.sidebar .newsletter-description {
    font-size: 0.98rem;
    line-height: 1.4;
    margin-bottom: 0.45rem;
}

.sidebar .newsletter-form {
    gap: 0.45rem;
}

.sidebar .newsletter-form label {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.sidebar .newsletter-form input {
    padding: 0.55rem 0.6rem;
    font-size: 0.95rem;
    max-width: 100%;
}

.sidebar .newsletter-form button {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    max-width: 100%;
}

.sidebar .newsletter-status {
    font-size: 0.9rem;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.newsletter-container h2 {
    margin-bottom: 0.4rem;
    color: #131313;
}

.newsletter-description {
    margin-bottom: 0.6rem;
}

.newsletter-form {
    display: grid;
    gap: 0.55rem;
}

.newsletter-form p {
    margin: 0;
}

.newsletter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.newsletter-form label {
    display: inline-block;
    margin-bottom: 0.3rem;
}

.newsletter-form input {
    width: 100%;
    border: 1px solid #895129;
    background: #fff;
    color: #131313;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    font-family: Georgia, serif;
}

.newsletter-form button {
    width: fit-content;
    border: 1px solid #895129;
    background: #e7d5b8;
    color: #131313;
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #895129;
    color: #fff;
}

.newsletter-form .newsletter-button--secondary {
    background: #fff;
}

.newsletter-form .newsletter-button--secondary:hover {
    background: #895129;
    color: #fff;
}

.newsletter-status {
    margin-top: 0.6rem;
    margin-bottom: 0;
    min-height: 1.2rem;
}

.newsletter-status[data-state='ok'] {
    color: #205f2a;
}

.newsletter-status[data-state='error'] {
    color: #7a2020;
}

/* Post Preview CSS */
.post-summary {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 0;
    margin-bottom: 1.4rem;
}
    .post-summary {
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding-left: 0;
        margin-bottom: 1.4rem;
        line-height: 1.25;
    }

/* Small floated image in summaries: scale to the three-line preview height and let text wrap */
.post-summary img {
    height: calc(5.5em) !important;
    width: auto !important;
    float: left;
    margin: 0 1em 1em 0;
    object-fit: contain;
}
    .post-summary img {
        height: calc(5.5em) !important;
        width: auto !important;
        float: left;
        margin: 0 1em 1em 0;
        object-fit: contain;
        display: block;
    }

/* Ensure inline-styled images can't override the height */
.post-summary img[style] {
    height: calc(5.5em) !important;
    max-height: calc(5.5em) !important;
    width: auto !important;
}

/* Post content images: default to left-aligned, non-wrapping blocks */
.gridcontainer--post .hero img,
.gridcontainer--post img {
    max-width: 100%;
    height: auto;
    float: none;
    margin: 0 0 1em 0;
    display: block;
    clear: both;
}

/* Opt-in wrapping in content using title token "wrap" or class="wrap" */
.gridcontainer--post .hero img[title~="wrap"],
.gridcontainer--post img[title~="wrap"],
.gridcontainer--post .hero img.wrap,
.gridcontainer--post img.wrap {
    float: left;
    display: block;
    margin: 0 1em 1em 0;
    clear: none;
}

/* Force non-wrapping explicitly with title token "nowrap" or class="nowrap" */
.gridcontainer--post .hero img[title~="nowrap"],
.gridcontainer--post img[title~="nowrap"],
.gridcontainer--post .hero img.nowrap,
.gridcontainer--post img.nowrap {
    float: none;
    display: block;
    margin: 0 0 1em 0;
    clear: both;
}

@media screen and (max-width: 960px) {
    /* On small screens, don't float images — make them full-width */
    .gridcontainer--post .hero img,
    .gridcontainer--post img {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 0 1em 0;
        width: auto;
        height: auto;
    }
}

.hero .post-summary + h2 {
    border-top: 1px solid rgba(137, 81, 41, 0.45);
    padding-top: 1.2rem;
}

.diebesten-list h2 + h2 {
    border-top: 1px solid rgba(137, 81, 41, 0.45);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
}

.survey-container {
    border: 2px solid #895129;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0.75rem 0 0.9rem;
    background: rgba(231, 213, 184, 0.5);
}

.survey-container h2 {
    margin-bottom: 0.45rem;
}

.survey-form {
    display: grid;
    gap: 0.45rem;
    max-width: 720px;
    margin-top: 0.45rem;
}

.survey-form label {
    font-size: 1rem;
}

.survey-form input,
.survey-form select,
.survey-form textarea {
    width: 100%;
    border: 1px solid #895129;
    background: #fff;
    color: #131313;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    font-family: Georgia, serif;
}

.survey-form textarea {
    resize: vertical;
    min-height: 96px;
}

.survey-form button {
    width: fit-content;
    border: 1px solid #895129;
    background: #e7d5b8;
    color: #131313;
    padding: 0.55rem 0.95rem;
    font-size: 1rem;
    cursor: pointer;
}

.survey-form button:hover {
    background: #895129;
    color: #fff;
}

.survey-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.survey-status {
    margin-top: 0.45rem;
    min-height: 1rem;
}

.survey-status--ok {
    color: #205f2a;
}

.survey-status--error {
    color: #7a2020;
}

.survey-note {
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.comments-section {
    border: 2px solid #895129;
    border-radius: 14px;
    padding: 1.25rem;
    margin: 1.5rem 0 1.25rem;
    background: rgba(231, 213, 184, 0.5);
    clear: both;
}

.comments-section h2 {
    margin-bottom: 0.8rem;
}

.comments-message {
    min-height: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    max-width: 720px;
}

.comments-message[data-state='error'] {
    color: #7a2020;
}

.comments-message[data-state='ok'] {
    color: #205f2a;
}

.comments-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    max-width: 720px;
}

.comments-list li {
    border: 1px solid rgba(137, 81, 41, 0.55);
    background: rgba(255, 252, 244, 0.85);
    border-radius: 10px;
    padding: 0.85rem 0.9rem 0.8rem;
    margin-top: 0.9rem;
}

.comments-list li:first-child {
    border: 1px solid rgba(137, 81, 41, 0.55);
    padding: 0.85rem 0.9rem 0.8rem;
    margin-top: 0;
}

.comments-list strong {
    font-size: 1rem;
}

.comments-list time {
    font-size: 0.92rem;
    color: #6e4424;
}

.comments-list p {
    margin: 0.45rem 0 0;
    white-space: pre-wrap;
}

.comments-form {
    display: grid;
    gap: 0.75rem;
    max-width: 720px;
}

.comments-form p {
    margin: 0;
}

.comments-form label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.comments-form input,
.comments-form textarea {
    width: 100%;
    border: 1px solid #895129;
    background: #fff;
    color: #131313;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    font-family: Georgia, serif;
}

.comments-form textarea {
    resize: vertical;
    min-height: 140px;
}

.comments-form button {
    width: fit-content;
    border: 1px solid #895129;
    background: #e7d5b8;
    color: #131313;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
}

.comments-form button:hover {
    background: #895129;
    color: #fff;
}

/* Q&A list styles */
.qanda-list {
    margin: 1rem 0 1.25rem;
    padding: 0;
    list-style: none;
    max-width: 720px;
}

.qanda-list .qitem {
    border: 1px solid rgba(137,81,41,0.45);
    background: rgba(255,252,244,0.95);
    border-radius: 10px;
    padding: 0.9rem;
    margin-top: 0.9rem;
}

.qanda-list .qitem:first-child { margin-top: 0; }

.qanda-list .qmeta { font-size: 0.92rem; color: #6e4424; margin-bottom: 0.45rem; }
.qanda-list .q { font-size: 1.05rem; margin: 0 0 0.4rem; }
.qanda-list .a { margin: 0; white-space: pre-wrap; }

.qanda-list .answered-by { display: none; }
.qanda-list .answer-by { margin-left: 1rem; color: #6e4424; margin-top: 0.5rem; font-style: normal; }

/* unified answer box for Q&A */
.answer-box { border: 1px solid #d0d0d0; background: #f6f6f7; padding: 0.65rem; border-radius: 8px; margin-top: 0.6rem; }
.answer-box .a { margin: 0; white-space: pre-wrap; }
.answer-box .answer-by { margin-left: 1rem; color: #6e6e6e; margin-top: 0.5rem; font-style: normal; }


@media screen and (max-width: 960px) {
    .footer {
        padding: 2rem 0 2.5rem;
    }

    .footer__container {
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
    }

    .newsletter-container {
        width: 100%;
        padding: 0.65rem 0.7rem 0.55rem;
        margin-top: 0.7rem;
    }

    .newsletter-container h2 {
        font-size: 1.08rem;
        margin-bottom: 0.2rem;
    }

    .newsletter-description {
        font-size: 0.92rem;
        line-height: 1.35;
        margin-bottom: 0.35rem;
    }

    .newsletter-form {
        gap: 0.4rem;
    }

    .newsletter-form label {
        margin-bottom: 0.15rem;
        font-size: 0.88rem;
    }

    .newsletter-form input {
        padding: 0.48rem 0.55rem;
        font-size: 0.92rem;
    }

    .newsletter-actions {
        gap: 0.35rem;
    }

    .newsletter-form button {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .newsletter-status {
        margin-top: 0.3rem;
        min-height: 1rem;
        font-size: 0.86rem;
    }

    .comments-section {
        padding: 1rem;
        margin: 1.1rem 0 1rem;
        border-radius: 10px;
    }

    .comments-section h2 {
        font-size: 1.35rem;
        margin-bottom: 0.6rem;
    }

    .comments-message {
        margin-bottom: 0.45rem;
        font-size: 0.96rem;
    }

    .comments-list {
        margin-bottom: 0.8rem;
    }

    .comments-list li {
        padding: 0.7rem 0.75rem 0.65rem;
        margin-top: 0.7rem;
    }

    .comments-list strong {
        font-size: 0.97rem;
    }

    .comments-list time {
        font-size: 0.85rem;
    }

    .comments-list p {
        margin-top: 0.35rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .comments-form {
        gap: 0.55rem;
    }

    .comments-form label {
        margin-bottom: 0.25rem;
        font-size: 0.96rem;
    }

    .comments-form input,
    .comments-form textarea {
        padding: 0.6rem 0.65rem;
        font-size: 0.98rem;
    }

    .comments-form textarea {
        min-height: 120px;
    }

    .comments-form button {
        width: 100%;
        text-align: center;
        padding: 0.65rem 1rem;
    }
}

