.province-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(184, 107, 53, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 35% at 100% 10%, rgba(11, 17, 22, 0.05), transparent 45%),
        var(--paper, #f7f4ef);
}

.province-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(247, 244, 239, 0.9);
    border-bottom: 1px solid rgba(11, 17, 22, 0.08);
}

.province-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.province-nav nav {
    display: flex;
    gap: 14px;
    flex: 1;
    flex-wrap: wrap;
}

.province-nav nav a {
    color: var(--ink-soft, #3d464e);
    font-size: 13px;
    font-weight: 600;
}

.province-nav nav a:hover { color: var(--copper-deep); }

.province-nav .back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.province-hero {
    padding: 48px 0 28px;
}

.province-hero-compact { padding-bottom: 12px; }

.province-hero h1 {
    margin: 8px 0 12px;
    font-family: Literata, Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.province-hero p {
    margin: 0;
    max-width: 52ch;
    color: var(--ink-soft, #3d464e);
    line-height: 1.55;
}

.province-grid-section,
.province-feed-section {
    padding: 12px 0 56px;
}

.province-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.province-section-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.aimag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.aimag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 17, 22, 0.08);
    color: var(--ink);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.aimag-card:hover {
    border-color: rgba(184, 107, 53, 0.45);
    transform: translateY(-2px);
}

.aimag-card strong { font-size: 15px; }
.aimag-card span { color: var(--mist); font-size: 12px; font-weight: 700; }

.civic-toolbar,
.sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.civic-toolbar a,
.sort-row a {
    padding: 7px 12px;
    border: 1px solid rgba(11, 17, 22, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.civic-toolbar a.is-active,
.sort-row a.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.civic-cats { margin: 0 0 18px; }

.province-page .filter-chip {
    appearance: none;
    display: inline-flex;
    border: 1px solid rgba(11, 17, 22, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    text-decoration: none;
}

.province-page .filter-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.province-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.civic-list {
    display: grid;
    gap: 14px;
}

.civic-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(11, 17, 22, 0.08);
    overflow: hidden;
}

.civic-card:not(:has(.civic-thumb)) {
    grid-template-columns: 1fr;
}

.civic-thumb {
    min-height: 120px;
    background: center / cover no-repeat var(--image), #d9d3c8;
    position: relative;
}

.nsfw-media.is-nsfw.civic-thumb {
    filter: blur(18px) brightness(0.7);
}

.nsfw-media.is-nsfw.civic-detail-image img {
    filter: blur(22px) brightness(0.72);
}

.nsfw-media.is-revealed,
.nsfw-media.is-revealed img {
    filter: none !important;
}

.nsfw-badge {
    position: absolute;
    inset: auto 10px 10px auto;
    z-index: 2;
    background: rgba(11, 17, 22, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    pointer-events: none;
}

.nsfw-reveal {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    appearance: none;
    border: 0;
    background: rgba(11, 17, 22, 0.88);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
}

.nsfw-media.is-revealed .nsfw-reveal,
.nsfw-media.is-revealed .nsfw-badge {
    display: none;
}

.civic-copy {
    display: grid;
    gap: 8px;
    padding: 16px 18px 18px;
    align-content: start;
}

.civic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--mist);
}

.civic-meta a { color: var(--copper-deep); }

.civic-kind {
    display: inline-flex;
    padding: 3px 8px;
    background: rgba(184, 107, 53, 0.12);
    color: var(--copper-deep);
}

.civic-kind.kind-problem { background: rgba(160, 40, 40, 0.1); color: #8a2a2a; }
.civic-kind.kind-request { background: rgba(40, 90, 140, 0.1); color: #2a5a8a; }
.civic-kind.kind-news { background: rgba(40, 120, 70, 0.1); color: #2a6840; }

.civic-copy h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.civic-copy h3 a { color: var(--ink); }
.civic-copy h3 a:hover { color: var(--copper-deep); }

.civic-copy p {
    margin: 0;
    color: var(--ink-soft, #3d464e);
    font-size: 14px;
    line-height: 1.5;
}

.civic-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--mist);
    font-size: 12px;
}

.vote-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vote-group-lg {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(11, 17, 22, 0.08);
}

.vote-btn {
    appearance: none;
    border: 1px solid rgba(11, 17, 22, 0.12);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.vote-btn.is-active,
.vote-btn:hover {
    border-color: var(--copper);
    color: var(--copper-deep);
}

.vote-btn [data-lucide] { width: 16px; height: 16px; }
.vote-group strong { min-width: 1.5ch; text-align: center; }

.civic-actions .like-btn.is-active {
    color: #2f6b3a;
    border-color: rgba(47, 107, 58, 0.4);
    background: rgba(47, 107, 58, 0.08);
}

.civic-actions .dislike-btn.is-active {
    color: #8a2a2a;
    border-color: rgba(138, 42, 42, 0.35);
    background: rgba(138, 42, 42, 0.08);
}

.civic-compose {
    position: sticky;
    top: 84px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 17, 22, 0.1);
}

.civic-compose h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.civic-compose > p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.civic-form {
    display: grid;
    gap: 12px;
}

.civic-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--mist);
}

.civic-form input,
.civic-form select,
.civic-form textarea {
    width: 100%;
    border: 1px solid rgba(11, 17, 22, 0.14);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
}

.civic-form textarea { resize: vertical; min-height: 120px; }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.form-hint {
    margin: 0;
    font-size: 13px;
    color: var(--mist);
}

.form-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

.form-status.is-ok { background: rgba(40, 120, 70, 0.12); color: #2a6840; }
.form-status.is-error { background: rgba(160, 40, 40, 0.1); color: #8a2a2a; }

.civic-empty {
    padding: 28px 18px;
    border: 1px dashed rgba(11, 17, 22, 0.18);
    color: var(--mist);
    text-align: center;
}

.civic-detail {
    padding: 36px 0 24px;
    max-width: 760px;
}

.civic-detail h1 {
    margin: 12px 0 10px;
    font-family: Literata, Georgia, serif;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.2;
}

.civic-detail-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--mist);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.civic-detail-image {
    margin: 0 0 22px;
    position: relative;
}

.civic-detail-image img {
    width: 100%;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

.civic-detail-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
}

.related-civic {
    padding: 12px 0 56px;
}

.related-civic h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.province-footer {
    border-top: 1px solid rgba(11, 17, 22, 0.08);
    padding: 22px 0 36px;
}

.province-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--mist);
    font-size: 12px;
}

.province-footer a { color: var(--ink); font-weight: 700; }

.province-menu {
    width: min(560px, calc(100vw - 32px));
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 980px) {
    .aimag-grid { grid-template-columns: 1fr 1fr; }
    .province-layout { grid-template-columns: 1fr; }
    .civic-compose { position: static; }
    .province-menu { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .aimag-grid { grid-template-columns: 1fr; }
    .civic-card { grid-template-columns: 1fr; }
    .civic-thumb { min-height: 160px; }
    .province-nav nav { display: none; }
}

.civic-comments {
    margin: 28px auto 48px;
    padding: 24px;
    border: 1px solid rgba(11, 17, 22, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.civic-comments .comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.civic-comments .comments-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.civic-comments .comment-sorts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.civic-comments .comment-sorts a {
    font-size: 12px;
    font-weight: 700;
    color: var(--mist, #6b6458);
}

.civic-comments .comment-sorts a.is-active {
    color: var(--copper-deep, #8a4a22);
}

.civic-comment-form {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.civic-comment-form textarea,
.civic-comment-form .comment-name {
    width: 100%;
    border: 1px solid rgba(11, 17, 22, 0.14);
    background: #fff;
    font: inherit;
    padding: 11px 12px;
}

.civic-comment-form .comment-trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.civic-comments .comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.civic-comments .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.civic-comments .comment {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
}

.civic-comments .comment-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--ink, #121212);
    color: #fff;
    font-weight: 800;
}

.civic-comments .comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--mist, #6b6458);
}

.civic-comments .comment-main p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.civic-comments .comment-actions {
    display: flex;
    gap: 8px;
}

.civic-comments .comment-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--mist, #6b6458);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
}

.civic-comments .comment-vote.is-active,
.civic-comments .comment-vote:hover {
    color: var(--copper-deep, #8a4a22);
}

.civic-comments .comment-vote [data-lucide] {
    width: 14px;
    height: 14px;
}

.civic-comments .comment-message.ok { color: #2a6840; }
.civic-comments .comment-message.error { color: #8a2a2a; }
.civic-empty-comment {
    color: var(--mist, #6b6458);
    font-size: 14px;
    padding: 8px 0;
}
