.logo a {
    color: #fff;
    text-decoration: none;
}

.logo a span {
    color: var(--text-muted);
    font-weight: 300;
}

nav ul li a.is-active {
    color: #fff;
}

.board-page {
    padding-top: 90px;
}

.board-hero {
    padding: 80px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.board-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.board-hero .subtitle {
    max-width: 720px;
    margin: 0 auto;
}

.board-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    text-align: left;
}

.board-hero-row .subtitle {
    margin: 0;
}

.board-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.post-list {
    display: grid;
    gap: 24px;
}

.post-card {
    background: var(--bg-light-gray);
    border: 1px solid var(--border);
    padding: 36px 32px;
}

.post-card h3 {
    font-size: 1.7rem;
    margin: 8px 0 12px;
    letter-spacing: 0.5px;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    text-transform: none;
}

.post-meta .dot {
    margin: 0 8px;
}

.post-body {
    color: var(--text-main);
    white-space: normal;
    overflow-wrap: anywhere;
}

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
}

.empty-state {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.flash {
    padding: 18px 22px;
    border: 1px solid var(--border);
    margin-bottom: 36px;
}

.flash-success {
    background: var(--bg-light-gray);
    color: #fff;
}

.flash-error {
    background: #1a0a0a;
    border-color: #5a1a1a;
    color: #f0d0d0;
}

.flash-error ul {
    margin: 0;
    padding-left: 18px;
}

.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: #fff;
    font-family: inherit;
    border-radius: 2px;
    appearance: auto;
}

.ack-fallback {
    display: block;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-login {
    max-width: 460px;
}

.admin-card {
    padding-bottom: 28px;
}

.admin-meta {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.admin-actions .btn {
    padding: 12px 22px;
    letter-spacing: 1px;
}

.section-spaced {
    margin-top: 70px;
}

@media (max-width: 768px) {
    .board-hero h1 {
        font-size: 2.3rem;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 8px 0;
    }
    nav ul li {
        margin-left: 0;
        margin-right: 18px;
    }
    .board-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-card {
        padding: 28px 22px;
    }
}

.board-note {
    color: var(--text-muted);
    margin: -10px 0 28px;
    font-size: 0.95rem;
}

.flash-success {
    font-size: 1.05rem;
    line-height: 1.6;
    border-color: #3a3a3a;
}

.ack-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.ack-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #fff;
}

.field-help {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.manage-link {
    margin-top: 14px;
    font-size: 0.95rem;
}

.manage-link a {
    color: #fff;
}

.board-photo {
    display: block;
    margin-top: 22px;
    max-width: 420px;
}

.board-photo img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #000;
    cursor: zoom-in;
}

.admin-card .board-photo {
    margin-bottom: 16px;
}

.board-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 20px;
}

.board-lightbox.hidden {
    display: none !important;
}

.board-lightbox img {
    max-width: min(1200px, 100%);
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid var(--border);
}

.board-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    padding: 8px 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
}

input[type="file"] {
    width: 100%;
    padding: 12px 0;
    color: var(--text-main);
    background: transparent;
    border: none;
}

.reply-cta {
    margin-top: 24px;
}

.reply-cta .btn {
    padding: 12px 22px;
}

.inbox-title {
    font-size: 1.8rem;
    margin-top: 50px;
}

.manage-wide {
    max-width: 760px;
}

.thread-card {
    background: var(--bg-light-gray);
    border: 1px solid var(--border);
    padding: 28px 24px;
    margin-bottom: 24px;
}

.thread-messages {
    list-style: none;
    margin: 16px 0 22px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.thread-msg {
    border: 1px solid var(--border);
    padding: 16px 18px;
    background: var(--bg-deep);
}

.thread-msg-poster {
    border-color: #3a3a3a;
}

.thread-reply-form textarea {
    height: 110px;
}

.admin-threads {
    margin: 24px 0 10px;
}

.admin-threads h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.board-tag {
    margin-right: 8px;
    color: #fff;
    border-color: #555;
}

@media (max-width: 768px) {
    .admin-actions {
        gap: 10px;
    }
    .admin-actions .btn {
        flex: 1 1 calc(50% - 10px);
        min-height: 44px;
        padding: 12px 16px;
        text-align: center;
    }
    .section-spaced {
        margin-top: 40px;
    }
    .admin-card {
        padding: 24px 18px 22px;
    }
}

.board-local {
    color: var(--text-muted);
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.post-card h3 a,
.post-card .post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card h3 a:hover,
.post-card h3 a:focus,
.post-card .post-card-title a:hover,
.post-card .post-card-title a:focus {
    text-decoration: underline;
}

.post-single .post-card {
    max-width: 800px;
    margin: 0 auto;
}

.post-single .back-link {
    margin: 24px 0 0;
}

.post-single .back-link a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-single .back-link a:hover,
.post-single .back-link a:focus {
    color: #fff;
    opacity: 0.85;
}

.post-single .post-card h1 {
    font-size: 2rem;
    margin: 8px 0 12px;
    letter-spacing: 0.5px;
}

.voice-intro {
    margin-top: 22px;
    max-width: 420px;
}

.voice-intro .voice-embed {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 80px;
    border: 0;
    background: transparent;
}

.voice-intro .btn {
    padding: 12px 22px;
}

.admin-card .voice-intro {
    margin-bottom: 16px;
}

.voice-record-wrap {
    margin: 10px 0 0;
}

.voice-record-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #555;
    border-radius: 2px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.voice-record-link:hover,
.voice-record-link:focus {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.field-help a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.field-help a:hover,
.field-help a:focus {
    color: #ddd;
}

.voice-intro audio {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 40px;
}

.voice-intro .voice-open {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.voice-intro .voice-open:hover,
.voice-intro .voice-open:focus {
    color: #fff;
    text-decoration: underline;
}


.post-crumbs {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
}

.post-crumbs li {
    display: inline;
}

.post-crumbs li:not(:last-child)::after {
    content: " / ";
    color: var(--text-muted);
    padding: 0 8px;
}

.post-crumbs a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-crumbs a:hover,
.post-crumbs a:focus {
    color: #fff;
}

.post-area {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-area:hover,
.post-area:focus {
    color: #fff;
}

.form-group select#area,
.form-group select[name="area"] {
    max-width: 100%;
}

.ad-code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-muted, #9a9a9a);
    border: 1px solid var(--border, rgba(255,255,255,0.2));
    padding: 2px 8px;
    vertical-align: middle;
    text-transform: none;
    font-weight: 600;
}

.post-meta .ad-code {
    margin: 0;
}

.post-card h3 .ad-code,
.admin-card .ad-code {
    margin: 0 8px 0 0;
}

.city-ad-meta .ad-code {
    margin-left: 8px;
}

.review-wait-note {
    margin: 22px 0 16px;
    color: var(--text-muted, #9a9a9a);
    font-size: 0.95rem;
    line-height: 1.55;
}

.flash-success .submit-thanks {
    margin: 0;
}

.flash-success .review-wait-notice {
    margin: 14px 0 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
}

.owner-post-note {
    color: var(--accent, #e8c36a);
}

.post-day-heading {
    margin: 28px 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--text-muted, #c9b8b0);
    border-bottom: 1px solid var(--border, #3a2a30);
    padding-bottom: 6px;
}
.post-day-heading:first-child {
    margin-top: 0;
}
.post-card-title {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}
.report-ad-line {
    margin: 10px 0 0;
}
.report-ad-link {
    font-size: 0.9rem;
    color: var(--text-muted, #c9b8b0);
    text-decoration: underline;
}
.report-ad-link:hover,
.report-ad-link:focus {
    color: var(--accent, #e8c36a);
}
.report-target {
    margin: 0 0 18px;
}
.post-pagination {
    margin: 28px 0 8px;
}
.post-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.post-pagination a,
.post-pagination span {
    display: inline-block;
    min-width: 2.2em;
    padding: 6px 10px;
    text-align: center;
    border: 1px solid var(--border, #3a2a30);
    border-radius: 2px;
    color: inherit;
    text-decoration: none;
}
.post-pagination a:hover,
.post-pagination a:focus {
    border-color: var(--accent, #e8c36a);
}
.post-pagination .is-current span {
    background: var(--btn, #8b1e3a);
    border-color: var(--btn, #8b1e3a);
    color: #fff;
}
.post-pagination .is-disabled span,
.post-pagination .is-ellipsis span {
    border-color: transparent;
    color: var(--text-muted, #c9b8b0);
}
.legal-body {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}
.legal-body h2 {
    margin: 1.6em 0 0.5em;
    font-size: 1.25rem;
}
.legal-body p {
    margin: 0 0 1em;
}
.legal-page .legal-body a,
.board-hero .subtitle a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-page .legal-body a:hover,
.legal-page .legal-body a:focus,
.board-hero .subtitle a:hover,
.board-hero .subtitle a:focus {
    opacity: 0.85;
}
.ybd-age-copy a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .post-pagination a,
    .post-pagination span {
        padding: 8px 12px;
    }
}

.post-location {
    margin: 6px 0 12px;
    font-size: 1.05rem;
    color: var(--text-muted, #9a9a9a);
}

.post-location a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-location a:hover,
.post-location a:focus {
    color: #fff;
}

.post-crumbs li[aria-current="page"] {
    color: var(--text-muted, #9a9a9a);
}
