@charset "UTF-8";

:root {
    --sl-bg: #f3f6f8;
    --sl-surface: #ffffff;
    --sl-surface-muted: #edf3f6;
    --sl-text: #192630;
    --sl-muted: #667784;
    --sl-border: #dbe4e9;
    --sl-primary: #147ca8;
    --sl-primary-dark: #0c5c7e;
    --sl-accent: #e4852e;
    --sl-danger: #b63b43;
    --sl-success: #1f7a4f;
    --sl-radius: 14px;
    --sl-shadow: 0 12px 32px rgba(25, 38, 48, .08);
}

body {
    background: var(--sl-bg);
    color: var(--sl-text);
    line-height: 1.55;
}

a {
    color: var(--sl-primary-dark);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--sl-primary);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(20, 124, 168, .3);
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

.content {
    padding-inline: clamp(12px, 2.5vw, 28px);
}

.page {
    gap: clamp(16px, 2.5vw, 30px);
}

.page-header,
.article-hero {
    margin: 0 0 22px;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: linear-gradient(135deg, #fff 0%, #edf6f9 100%);
    box-shadow: var(--sl-shadow);
}

.page-header h1,
.article-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--sl-text);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--sl-primary-dark);
    font: 700 .78rem/1.2 'Fira Sans', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 16px;
    color: var(--sl-muted);
    font: .9rem/1.4 'Fira Sans', sans-serif;
}

.card-grid,
.listing-grid,
.author-grid,
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
}

.section-card,
.article-card,
.result-card,
.listing-card,
.author-card,
.board-card,
.media-card,
.auth-card,
.filter-panel,
.sidebar-search,
.payment-card {
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: 0 5px 20px rgba(25, 38, 48, .055);
}

.payment-status-page {
    display: grid;
    min-height: 75vh;
    place-items: center;
    padding-block: clamp(30px, 8vw, 90px);
}

.payment-status-page .payment-card {
    width: min(100%, 720px);
}

.payment-status-page h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.section-card,
.article-card,
.result-card,
.listing-card,
.author-card,
.board-card,
.media-card,
.payment-card {
    padding: clamp(16px, 2.4vw, 24px);
}

.listing-card,
.article-card,
.result-card,
.author-card,
.board-card,
.media-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.listing-card:hover,
.article-card:hover,
.result-card:hover,
.author-card:hover,
.board-card:hover,
.media-card:hover {
    border-color: #b4d2df;
    box-shadow: var(--sl-shadow);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.section-header h2 {
    margin: 0;
}

.prose {
    max-width: 78ch;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.75;
}

.prose :where(p, ul, ol, blockquote) {
    margin-block: 0 1.15em;
}

.prose img {
    height: auto;
    border-radius: 10px;
}

.button,
button.button,
.loginbutton,
.actionButton a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--sl-primary);
    color: #fff;
    font: 600 .95rem/1.2 'Fira Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button:hover,
button.button:hover,
.loginbutton:hover,
.actionButton a:hover {
    background: var(--sl-primary-dark);
    color: #fff;
    box-shadow: 0 7px 16px rgba(12, 92, 126, .2);
}

.button:active,
button.button:active {
    transform: translateY(1px);
}

.button--secondary {
    border-color: var(--sl-border);
    background: var(--sl-surface);
    color: var(--sl-primary-dark);
}

.button--secondary:hover {
    border-color: #b4d2df;
    background: var(--sl-surface-muted);
    color: var(--sl-primary-dark);
}

.button--danger {
    background: var(--sl-danger);
}

.button--danger:hover {
    background: #8f2930;
}

.auth-card {
    width: min(100%, 520px);
    margin: 34px auto;
    padding: clamp(22px, 4vw, 38px);
}

.auth-form,
.search-form,
.payment-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
    color: var(--sl-text);
    font: 600 .92rem/1.35 'Fira Sans', sans-serif;
}

:where(.auth-card, .filter-panel, .payment-card, .media-card) :where(input, select, textarea),
.form-control {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #c9d6dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 1rem/1.35 'Fira Sans', sans-serif;
}

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

.form-honeypot,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.auth-links,
.filter-chips,
.listing-stats,
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    align-items: center;
}

.form-message {
    margin: 14px 0;
    padding: 12px 15px;
    border: 1px solid #b7d7e5;
    border-radius: 10px;
    background: #edf8fc;
    color: #174e66;
}

.form-message--error {
    border-color: #efbdc1;
    background: #fff1f2;
    color: #842b32;
}

.form-message--warning {
    border-color: #efd29f;
    background: #fff8e9;
    color: #714b13;
}

.empty-state {
    padding: clamp(22px, 4vw, 42px);
    border: 1px dashed #b9cbd3;
    border-radius: var(--sl-radius);
    background: rgba(255, 255, 255, .7);
    color: var(--sl-muted);
    text-align: center;
}

.filter-panel,
.sidebar-search {
    padding: 16px;
}

.filter-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter-chips a,
.pagination a,
.pagination span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid var(--sl-border);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
}

.town-directory {
    display: grid;
    gap: 14px;
}

.town-directory__letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.town-directory__letters a {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--sl-border);
    border-radius: 9px;
    background: #fff;
    font: 700 1rem/1 'Fira Sans', sans-serif;
    text-decoration: none;
}

.town-directory__letters a:hover {
    border-color: var(--sl-primary);
    background: #eaf6fb;
}

.author-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.media-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.media-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.media-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: var(--sl-surface-muted);
    object-fit: contain;
}

.media-card form {
    margin: 0;
}

.media-card .button {
    width: 100%;
}

.listing-stats {
    color: var(--sl-muted);
    font: .88rem/1.4 'Fira Sans', sans-serif;
}

.load-more-results {
    display: grid;
    gap: 14px;
    margin-block: 14px;
}

.listing-card--compact {
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: clamp(14px, 2.5vw, 24px);
    margin: 0;
}

.listing-card__media {
    display: block;
    align-self: start;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sl-surface-muted);
}

.listing-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.listing-card__body {
    min-width: 0;
}

.listing-card__body > :first-child {
    margin-top: 0;
}

.listing-card__body > :last-child {
    margin-bottom: 0;
}

.listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--sl-muted);
    font: .88rem/1.45 'Fira Sans', sans-serif;
}

.listing-card__price {
    color: var(--sl-primary-dark);
    font: 700 1.08rem/1.4 'Fira Sans', sans-serif;
}

.listing-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--sl-border);
}

.listing-details summary {
    width: max-content;
    color: var(--sl-primary-dark);
    cursor: pointer;
    font: 600 .95rem/1.4 'Fira Sans', sans-serif;
}

.company-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    background: var(--sl-surface);
}

.company-card__logo {
    display: grid;
    min-height: 92px;
    place-items: center;
    border-radius: 10px;
    background: var(--sl-surface-muted);
}

.company-card__logo img {
    display: block;
    width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.company-card__body > :first-child {
    margin-top: 0;
}

.contact-card {
    display: grid;
    gap: 16px;
    margin-block: 12px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
}

.contact-card__phone {
    min-height: 54px;
    overflow: hidden;
    font: 700 clamp(1.45rem, 5vw, 2.2rem)/1.2 'Fira Sans', sans-serif;
}

.contact-card__phone img {
    display: block;
    width: min(100%, 720px);
    height: auto;
}

.contact-card__seller {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-card__seller img {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.contact-card__seller > div {
    display: grid;
    gap: 3px;
}

.contact-card__safety {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--sl-border);
    font-weight: 600;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.permissions-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-family: 'Fira Sans', sans-serif;
}

.permissions-table :where(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--sl-border);
    text-align: center;
}

.permissions-table th:first-child {
    text-align: left;
}

.permissions-table tbody tr:hover {
    background: var(--sl-surface-muted);
}

.permissions-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--sl-primary);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sl-primary-dark);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.text-button:hover,
.text-button:focus-visible {
    color: var(--sl-primary);
}

.text-button--danger {
    color: var(--sl-danger, #b42318);
}

.admin-shell {
    width: min(100%, 1240px);
    margin-inline: auto;
    padding-block: clamp(14px, 3vw, 36px);
}

.admin-page {
    min-height: 100vh;
    margin: 0;
    padding: clamp(12px, 3vw, 36px);
    box-sizing: border-box;
    font-family: 'Fira Sans', Arial, sans-serif;
}

.admin-editor-shell {
    width: min(100%, 1120px);
    margin-inline: auto;
}

.admin-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: linear-gradient(135deg, #fff 0%, #edf6f9 100%);
    box-shadow: var(--sl-shadow);
}

.admin-editor-header h1,
.admin-upload-card h2 {
    margin: 0;
}

.admin-editor-header h1 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: var(--sl-primary-dark);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-editor-form {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow);
}

.admin-editor-form > label,
.admin-form-grid > label {
    display: grid;
    gap: 7px;
    color: var(--sl-text);
    font-size: .92rem;
    font-weight: 650;
}

.admin-editor-form :where(input, select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9d6dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 1rem/1.4 'Fira Sans', Arial, sans-serif;
}

.admin-editor-form textarea {
    resize: vertical;
}

.admin-editor-form input[type="file"] {
    min-height: auto;
    padding: 9px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-upload-card {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 2fr);
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed #b9ccd5;
    border-radius: 11px;
    background: var(--sl-surface-muted);
}

.admin-upload-card p {
    margin: 5px 0 0;
    color: var(--sl-muted);
}

.admin-upload-card img {
    max-width: min(100%, 420px);
    max-height: 260px;
    border-radius: 9px;
    object-fit: contain;
}

.admin-upload-card .button,
.admin-upload-card img {
    justify-self: start;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.form-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #efb9bd;
    border-radius: 10px;
    background: #fff0f1;
    color: #7f2027;
    font-weight: 600;
}

.form-success {
    width: min(100% - 24px, 1120px);
    margin: 16px auto;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1px solid #a9d8bf;
    border-radius: 10px;
    background: #edf9f2;
    color: #155c3a;
    font-weight: 600;
}

.admin-form,
.admin-list-form {
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

:where(.admin-form, .admin-list-form) :where(input, select, textarea) {
    box-sizing: border-box;
}

.admin-form .form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9d6dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 1rem/1.35 'Fira Sans', sans-serif;
}

.admin-form textarea.form-control {
    min-height: 110px;
}

.form-fieldset {
    margin: 22px 0 0;
    padding: 18px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
}

.form-fieldset legend {
    padding-inline: 8px;
    font: 700 1rem/1.3 'Fira Sans', sans-serif;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 18px;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sl-text);
    font: 500 .92rem/1.35 'Fira Sans', sans-serif;
}

.check-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--sl-primary);
}

.admin-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border: 1px solid var(--sl-border);
    border-radius: 50%;
    background: var(--sl-surface-muted);
    object-fit: cover;
}

.admin-form .admin-avatar {
    width: 100px;
    height: 100px;
    margin-block: 4px;
}

.admin-record-list {
    display: grid;
    gap: 12px;
}

.admin-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
}

.admin-record__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.admin-record h3,
.admin-record p {
    margin: 0;
}

.admin-record h3 {
    overflow-wrap: anywhere;
    font-size: 1.08rem;
}

.admin-record__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.admin-record time,
.muted-text {
    color: var(--sl-muted);
    font: .88rem/1.45 'Fira Sans', sans-serif;
}

.admin-shell > .filter-chips,
.admin-shell > .pagination {
    margin-block: 16px;
}

.filter-chips [aria-current="page"],
.pagination [aria-current="page"] {
    border-color: var(--sl-primary);
    background: var(--sl-primary);
    color: #fff;
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        order: 2;
    }

    p img {
        display: inline-block !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px !important;
    }

    .content {
        margin-block: 10px;
        padding-inline: 10px;
    }

    .page-header,
    .article-hero,
    .section-card,
    .article-card,
    .result-card,
    .listing-card,
    .author-card,
    .board-card,
    .media-card,
    .payment-card {
        border-radius: 11px;
    }

    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    button.button,
    .loginbutton {
        min-height: 46px;
    }

    .author-card {
        grid-template-columns: 56px 1fr;
    }

    .listing-card--compact,
    .company-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-card__media {
        max-width: 220px;
    }

    .company-card__logo {
        width: min(100%, 180px);
    }

    .author-avatar {
        width: 56px;
        height: 56px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-editor-header,
    .admin-form-grid,
    .admin-upload-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-editor-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-editor-header .button,
    .admin-form-actions .button {
        width: 100%;
        box-sizing: border-box;
    }

    .form-field--wide {
        grid-column: auto;
    }

    .admin-record,
    .admin-record__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-record__actions {
        justify-content: flex-start;
    }

    .admin-record__actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* UX refresh: shared public pages and legacy modules. */
html {
    overflow-x: hidden;
}

body {
    min-width: 320px;
}

:where(input, select, textarea, button) {
    box-sizing: border-box;
}

:where(input, select, textarea) {
    min-height: 42px;
    border-color: #c8d5dc;
    background: #fff;
}

:where(input, select, textarea):focus {
    border-color: var(--sl-primary);
    outline: 3px solid rgba(20, 124, 168, .14);
    outline-offset: 0;
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"]):disabled {
    cursor: not-allowed;
    opacity: .55;
}

h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

h2,
h3 {
    line-height: 1.25;
}

.dark_page {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 4px;
    overflow: visible;
    padding: 8px 14px;
}

.logo {
    order: 1;
    flex: 0 1 340px;
    width: auto;
    margin: 0 auto 0 0;
    overflow: visible;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.light_small_font :where(h1, h3) {
    padding-inline: 10px;
}

.main_menu {
    order: 2;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0 8px 0 auto;
}

.main_menu > li > a {
    padding: 10px 9px;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 500;
}

.main_menu > li > a:hover,
.main_menu > li.active > a {
    background: rgba(255, 255, 255, .09);
}

.search {
    order: 3;
}

.authorization {
    order: 4;
}

.menu-link {
    order: 5;
    display: none;
    margin: 0;
}

.authorization,
.search,
.menu-link {
    width: 52px;
    flex: 0 0 52px;
    border-radius: 9px;
}

.authorization:hover,
.search:hover,
.menu-link:hover {
    background: rgba(255, 255, 255, .08);
}

.authorization span,
.search span,
.menu-link span {
    line-height: 52px;
}

.mobile-nav {
    display: none;
}

.wide-nav {
    padding: 110px 18px 60px;
}

.actionButton {
    display: inline-flex;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 5px 6px 5px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    vertical-align: middle;
}

.actionButton.fr,
.actionButton.fn {
    float: none !important;
}

.actionButton a,
.actionButton a:link,
.actionButton a:visited,
.actionButton a:hover,
.link_line .actionButton a,
.link_line .actionButton a:hover {
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--sl-primary);
    border-radius: 9px;
    background: var(--sl-primary);
    color: #fff !important;
    font: 650 .88rem/1.25 'Fira Sans', sans-serif;
    letter-spacing: .015em;
    text-align: center;
    text-transform: none;
    overflow-wrap: anywhere;
}

.actionButton a:hover,
.link_line .actionButton a:hover {
    border-color: var(--sl-primary-dark);
    background: var(--sl-primary-dark);
    box-shadow: 0 7px 16px rgba(12, 92, 126, .18);
}

.link_line .actionButton {
    padding: 0;
    background: transparent;
}

.actionButton--secondary a,
.actionButton--secondary a:link,
.actionButton--secondary a:visited {
    border-color: #b9cfda;
    background: #fff;
    color: var(--sl-primary-dark) !important;
}

.actionButton--secondary a:hover {
    border-color: var(--sl-primary);
    background: #eaf6fb;
    color: var(--sl-primary-dark) !important;
    box-shadow: none;
}

.actionButton--quiet a,
.actionButton--quiet a:link,
.actionButton--quiet a:visited {
    border-color: transparent;
    background: transparent;
    color: var(--sl-muted) !important;
}

.actionButton--quiet a:hover {
    border-color: var(--sl-border);
    background: var(--sl-surface-muted);
    color: var(--sl-text) !important;
    box-shadow: none;
}

.topic-actions,
.company-actions,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.topic-actions {
    margin-block: 18px;
}

.company-actions {
    padding: 14px 0;
    text-align: left;
}

.company-list,
#more_firm {
    display: grid;
    gap: 14px;
}

.company-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(25, 38, 48, .055);
}

.company-card__logo {
    min-height: 88px;
}

.company-card__body h2 {
    margin: 0 0 9px;
    font-size: clamp(1.08rem, 2.5vw, 1.35rem);
}

.company-card__contact {
    margin: 5px 0;
    color: var(--sl-muted);
    font: .96rem/1.45 'Fira Sans', sans-serif;
    overflow-wrap: anywhere;
}

.company-card__contact strong {
    color: var(--sl-text);
}

.load-more-control {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 20px 0 8px;
}

.load-more-status {
    min-height: 1.4em;
    color: var(--sl-muted);
    font: .9rem/1.4 'Fira Sans', sans-serif;
}

.company-map-cell {
    padding: 12px 0 18px;
    border: 0;
}

.company-map {
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface-muted);
    box-shadow: var(--sl-shadow);
}

.company-map__canvas {
    width: 100%;
    height: clamp(300px, 45vw, 470px);
}

.company-map__canvas--failed {
    height: 90px;
}

.company-map__fallback {
    margin: 0;
    padding: 12px 16px;
    background: #fff;
    font: 600 .92rem/1.4 'Fira Sans', sans-serif;
    text-align: center;
}

#CommentForm.comment-form-panel {
    display: none;
    box-sizing: border-box;
    width: min(100%, 760px);
    margin: 20px auto;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #fff;
    color: var(--sl-text);
    box-shadow: var(--sl-shadow);
    font-family: 'Fira Sans', sans-serif;
}

.comment-form {
    display: grid;
    gap: 18px;
}

.comment-form__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.comment-form__header h3,
.comment-form__header p {
    margin: 0;
}

.comment-form__header h3 {
    font-size: 1.3rem;
}

.comment-form__header p {
    margin-top: 4px;
    color: var(--sl-muted);
    font-size: .9rem;
}

.comment-form__close {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sl-border);
    border-radius: 50%;
    background: #fff;
    color: var(--sl-muted);
    cursor: pointer;
    font: 400 1.8rem/1 sans-serif;
}

.comment-form__close:hover {
    border-color: #b6cbd4;
    background: var(--sl-surface-muted);
    color: var(--sl-text);
}

#CommentForm .comment-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

#CommentForm .comment-form__fields label {
    display: grid;
    gap: 7px;
    color: var(--sl-text);
    font-size: .92rem;
    font-weight: 650;
}

#CommentForm .comment-form__fields :where(input, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c8d5dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 1rem/1.45 'Fira Sans', sans-serif;
}

#CommentForm .comment-form__message {
    grid-column: 1 / -1;
}

#CommentForm .comment-form__message textarea {
    min-height: 150px;
    resize: vertical;
}

#CommentForm .comment-form__message small {
    color: var(--sl-muted);
    font-weight: 400;
}

#CommentForm .comment-form__actions {
    display: flex;
    height: auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
}

#CommentForm .comment-form__actions > div {
    width: auto;
    float: none;
    text-align: left;
}

.comments-section {
    clear: both;
    margin-top: 24px;
    padding-top: 8px;
    border-top: 1px solid var(--sl-border);
}

#CommentView .Message {
    border-color: var(--sl-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 38, 48, .04);
    font: 400 1rem/1.55 'PT Serif', Georgia, serif;
}

.news-article {
    padding: clamp(18px, 3.5vw, 38px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #fff;
    box-shadow: var(--sl-shadow);
}

.news-article > h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.07;
}

.news-article .article-meta {
    display: flex;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    margin: 0 0 16px;
    color: var(--sl-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.news-article .article-meta span {
    margin: 0;
}

.news-article .article-lead {
    margin: 0 0 18px;
    color: #344955;
    font: 500 clamp(1.08rem, 2.1vw, 1.28rem)/1.6 'PT Serif', Georgia, serif;
}

.article-share,
.barter-share {
    display: flex;
    height: auto;
    float: none;
    align-items: center;
    gap: 7px;
    margin: 8px 12px 12px 0;
}

.article-share a,
.barter-share a {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--sl-border);
    border-radius: 50%;
    background: #fff;
    color: var(--sl-muted);
    text-decoration: none;
}

.article-share a:hover,
.barter-share a:hover {
    border-color: #b4d2df;
    background: #eef8fb;
}

.share-label {
    font: 700 .78rem/1 'Fira Sans', sans-serif;
}

.news-article .article-tools {
    display: flex;
    height: auto;
    min-height: 42px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 10px;
    overflow: visible;
}

.news-article .article-tools li {
    float: none;
}

.news-article .article-media {
    width: 100%;
    max-width: none;
    float: none;
    margin: 20px 0;
    padding: 0;
}

.news-article .article-media .top_img {
    float: none;
    border-radius: 11px;
}

.news-article .article-media .bigimg {
    display: block;
    width: 100%;
    max-width: min(100%, 900px);
    height: auto;
    margin-inline: auto;
    border-radius: 11px;
    object-fit: contain;
}

.news-article .article-body {
    clear: both;
    max-width: 82ch;
    font-size: clamp(1.05rem, 1.5vw, 1.16rem);
    line-height: 1.75;
}

.news-article .article-body :where(p, ul, ol, blockquote) {
    margin-block: 0 1.15em;
}

.news-article .article-body :where(img, iframe, video) {
    max-width: 100% !important;
    height: auto !important;
}

.telegram-channel {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 15px;
    border-radius: 9px;
    background: #e9f6fb;
    color: var(--sl-primary-dark) !important;
    font: 650 .92rem/1.3 'Fira Sans', sans-serif;
}

.top_article {
    display: flow-root;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #fff;
    box-shadow: 0 5px 20px rgba(25, 38, 48, .055);
}

.top_article > :not(.top_img) {
    margin-inline: clamp(15px, 2.5vw, 24px);
}

.top_article .top_img {
    float: none;
    background: #fff;
}

.top_article .top_img img {
    display: block;
    max-height: 560px;
    object-fit: contain;
}

.top_article h2 {
    float: none;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
}

.top_article .s_text {
    padding-bottom: 20px;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.65;
}

.barter-detail-shell {
    overflow: hidden;
    padding: clamp(14px, 2.8vw, 28px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: #fff;
    box-shadow: var(--sl-shadow);
}

.barter-detail {
    border-collapse: separate;
    border-spacing: 0;
}

.barter-detail > tbody > tr > td,
.barter-detail > tbody > tr > th {
    padding: 12px 8px;
}

.barter-detail h1 {
    margin: 6px 0;
}

.barter-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 20px;
}

.barter-summary .barter_tools {
    box-sizing: border-box;
    width: auto;
    float: none;
    margin: 0 !important;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--sl-surface-muted);
    font-size: .98rem;
    line-height: 1.45;
}

.barter-summary .h10 {
    display: none;
}

.barter-summary font {
    color: inherit !important;
    font-size: inherit !important;
}

.barter-media {
    min-height: 430px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px;
    background-color: var(--sl-surface-muted) !important;
    background-size: contain !important;
}

.barter-contact-table {
    border-collapse: collapse;
    font-family: 'Fira Sans', sans-serif;
}

.barter-contact-table td {
    padding: 11px 9px;
    border-bottom: 1px solid var(--sl-border);
    overflow-wrap: anywhere;
}

.barter-contact-table tr:last-child td {
    border-bottom: 0;
}

.barter-contact-table .trade_firm_pos {
    color: var(--sl-muted);
    font-weight: 600;
}

.barter-contact-table .text-button {
    min-height: 38px;
    padding: 5px 0;
    text-align: right;
}

.barter-detail .main_font {
    padding-block: 18px;
    font-size: 1.06rem;
    line-height: 1.7;
}

.quick-links {
    padding-block: 12px 20px !important;
}

#footer_menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

#footer_menu .cc4 {
    width: auto;
    float: none;
    margin: 0;
}

#footer_menu .footer_navigation1 {
    display: grid;
    gap: 4px;
}

#footer_menu .footer_navigation1 li {
    padding: 0;
}

#footer_menu .footer_navigation1 a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    color: #edf3f6;
    font-size: .95rem;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .main_menu {
        display: none;
    }

    .menu-link {
        display: block;
    }

    .top_columns,
    .top_columns_group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 18px;
        float: none;
    }

    .top_columns_item {
        width: auto;
        margin: 0;
        float: none;
    }
}

@media (max-width: 760px) {
    .content {
        width: auto;
        margin: 10px auto;
        padding-inline: 10px;
    }

    .dark_page {
        min-height: 70px;
        gap: 2px;
        padding: 8px 10px;
    }

    .logo {
        flex: 1 1 auto;
        width: auto;
        max-width: 245px;
    }

    .light_small_font :where(h1, h3) {
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 4px;
    }

    .search {
        display: none;
    }

    .authorization,
    .menu-link {
        display: block;
        width: 46px;
        flex-basis: 46px;
    }

    .authorization span,
    .menu-link span {
        line-height: 46px;
    }

    .wide-nav {
        padding: 76px 18px 36px;
    }

    .logo_modal {
        display: none;
    }

    .top_columns,
    .top_columns_group {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .top_list_item,
    .top_list_main .top_list_item {
        padding: 0;
    }

    .top_list_item a {
        display: flex;
        min-height: 44px;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .company-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 13px;
        padding: 14px;
    }

    .company-card__logo {
        min-height: 66px;
    }

    .company-card__contact {
        font-size: .9rem;
    }

    .company-map__canvas {
        height: 320px;
    }

    .company-actions,
    .topic-actions,
    .quick-links {
        align-items: stretch;
        flex-direction: column;
    }

    :where(.company-actions, .topic-actions, .quick-links) .actionButton,
    :where(.company-actions, .topic-actions, .quick-links) .actionButton a {
        width: 100%;
    }

    #CommentForm .comment-form__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    #CommentForm .comment-form__message {
        grid-column: auto;
    }

    #CommentForm .comment-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    #CommentForm .comment-form__submit,
    #CommentForm .comment-form__actions > button {
        width: 100%;
    }

    .news-article {
        padding: 17px 15px;
        border-radius: 11px;
    }

    .news-article > h1 {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    .news-article .article-tools {
        display: flex !important;
        justify-content: flex-start;
    }

    .news-article .article-tools .textsize_label {
        font-size: .76rem;
    }

    .barter-detail-shell {
        padding: 12px 10px;
        border-radius: 11px;
    }

    .barter-detail > tbody,
    .barter-detail > tbody > tr,
    .barter-detail > tbody > tr > td,
    .barter-detail > tbody > tr > th {
        display: block;
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
    }

    .barter-summary {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .barter-media-row {
        display: grid !important;
        gap: 16px;
    }

    .barter-media {
        min-height: min(115vw, 520px);
    }

    .barter-contact-table {
        display: table;
    }

    .barter-contact-table tbody {
        display: table-row-group;
    }

    .barter-contact-table tr {
        display: table-row;
    }

    .barter-contact-table td {
        display: table-cell;
        width: auto !important;
    }

    #footer_menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 20px;
        padding: 20px 4px;
    }

    #footer_menu .footer_navigation1 {
        margin: 0;
    }

    #footer_menu .footer_navigation1 a {
        min-height: 42px;
        font-size: .92rem;
    }
}

/* v14.4: consistent public-page layout and knowledge-base presentation. */
.content.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
    gap: clamp(18px, 2.6vw, 32px);
    overflow: visible;
}

.content.page > .main,
.content.page > .sidebar {
    min-width: 0;
    max-width: 100%;
}

.content.page > .sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

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

.result-card {
    min-width: 0;
    overflow: hidden;
}

.result-card--media {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2.2vw, 22px);
}

.result-card--media > a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sl-surface-muted);
}

.result-card--media > a img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.result-card__meta {
    margin: 0 0 7px;
    color: var(--sl-muted);
    font: 600 .78rem/1.4 'Fira Sans', Arial, sans-serif;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.result-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.result-card p:last-child {
    margin-bottom: 0;
}

.author-company {
    color: var(--sl-muted);
    font-weight: 600;
}

.help-page {
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
}

.help-page > .help-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.help-page > .help-content {
    grid-column: 2;
    grid-row: 1;
}

.help-sidebar {
    position: sticky;
    top: 18px;
}

.help-sidebar .sidebar-search,
.help-sidebar .filter-panel {
    overflow: hidden;
}

.sidebar-search__title,
.filter-panel__title {
    margin: 0 0 13px;
    color: var(--sl-text);
    font: 700 1rem/1.3 'Fira Sans', Arial, sans-serif;
}

.search-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.search-form__row input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #c8d5dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 .96rem/1.35 'Fira Sans', Arial, sans-serif;
}

.search-form__row button {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--sl-primary);
    border-radius: 9px;
    background: var(--sl-primary);
    color: #fff;
    cursor: pointer;
    font: 650 .9rem/1.2 'Fira Sans', Arial, sans-serif;
}

.search-form__row button:hover,
.search-form__row button:focus-visible {
    border-color: var(--sl-primary-dark);
    background: var(--sl-primary-dark);
}

.filter-list__item a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--sl-text);
    font: 500 .92rem/1.35 'Fira Sans', Arial, sans-serif;
    text-decoration: none;
}

.filter-list__item a:hover,
.filter-list__item a:focus-visible {
    border-color: #c8dce5;
    background: var(--sl-surface-muted);
    color: var(--sl-primary-dark);
}

.filter-list__item.is-active a,
.filter-list__item a[aria-current="page"] {
    border-color: #acd0df;
    background: #e8f5fa;
    color: var(--sl-primary-dark);
    font-weight: 700;
}

.filter-list__count {
    display: inline-grid;
    min-width: 28px;
    min-height: 24px;
    flex: 0 0 auto;
    place-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--sl-muted);
    font-size: .78rem;
}

.help-content .article-card {
    overflow: hidden;
    transform: none;
}

.help-content .article-card:hover {
    transform: none;
}

.help-content .article-card > h1 {
    margin: 0 0 clamp(18px, 3vw, 30px);
    padding-bottom: clamp(15px, 2.2vw, 22px);
    border-bottom: 1px solid var(--sl-border);
    font-size: clamp(1.7rem, 3.8vw, 2.8rem);
    line-height: 1.1;
}

.help-content .prose {
    width: 100%;
    max-width: none;
    min-width: 0;
    color: #263842;
    overflow-wrap: anywhere;
}

.help-content .prose :where(h2, h3, h4) {
    margin: 1.5em 0 .65em;
    color: var(--sl-text);
    font-family: 'Fira Sans', Arial, sans-serif;
    line-height: 1.25;
}

.help-content .prose :where(ul, ol) {
    padding-left: 1.35em;
}

.help-content .prose table {
    display: table;
    width: 100% !important;
    max-width: 100%;
    margin: 22px 0;
    border: 1px solid var(--sl-border);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    font: 400 .96rem/1.58 'PT Serif', Georgia, serif;
}

.help-content .prose :where(th, td) {
    width: auto !important;
    min-width: 0;
    padding: clamp(12px, 2vw, 18px);
    border: 0;
    border-right: 1px solid var(--sl-border);
    border-bottom: 1px solid var(--sl-border);
    overflow-wrap: anywhere;
    vertical-align: top;
}

.help-content .prose :where(th, td):last-child {
    border-right: 0;
}

.help-content .prose tr:last-child > :where(th, td) {
    border-bottom: 0;
}

.help-content .prose tr:nth-child(even) > :where(th, td) {
    background: #f8fafb;
}

.help-content .prose :where(th, td) > :first-child {
    margin-top: 0;
}

.help-content .prose :where(th, td) > :last-child {
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .content.page,
    .help-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .content.page > .main,
    .content.page > .sidebar,
    .help-page > .help-content,
    .help-page > .help-sidebar {
        grid-column: 1;
    }

    .content.page > .main,
    .help-page > .help-content {
        grid-row: 1;
        order: 1;
    }

    .content.page > .sidebar,
    .help-page > .help-sidebar {
        grid-row: 2;
        order: 2;
    }

    .help-sidebar {
        position: static;
    }
}

/* v14.4: catalog directory, company cards and legacy company details. */
.catalog-page {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
}

.catalog-page > .main {
    min-width: 0;
    overflow: hidden;
}

.catalog-sidebar {
    position: sticky;
    top: 18px;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.catalog-category-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: var(--sl-surface);
    box-shadow: 0 5px 20px rgba(25, 38, 48, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-category-card:hover {
    border-color: #b4d2df;
    box-shadow: var(--sl-shadow);
    transform: translateY(-2px);
}

.catalog-category-card__media {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sl-surface-muted);
}

.catalog-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-category-card__body {
    min-width: 0;
}

.catalog-category-card__body h2 {
    margin: 0 0 5px;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.catalog-category-card__body p {
    margin: 0;
    color: var(--sl-muted);
    font: .88rem/1.4 'Fira Sans', Arial, sans-serif;
}

.catalog-map-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(220px, 1.1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
    margin-top: 28px;
    padding: clamp(18px, 3vw, 28px);
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: linear-gradient(135deg, #fff 0%, #e7f3f7 100%);
    box-shadow: var(--sl-shadow);
}

.catalog-map-card h2 {
    margin: 0 0 8px;
}

.catalog-map-card__media {
    display: block;
    overflow: hidden;
    border-radius: 11px;
    background: #fff;
}

.catalog-map-card__media img {
    display: block;
    width: 100%;
    height: clamp(150px, 22vw, 250px);
    object-fit: cover;
}

.sidebar-back-link {
    display: inline-flex;
    margin-top: 12px;
    font: 600 .9rem/1.4 'Fira Sans', Arial, sans-serif;
}

.catalog-page :where(.company-card, .catalog-category-card, .page-header, .filter-panel, .sidebar-search) {
    box-sizing: border-box;
    max-width: 100%;
}

.catalog-page :where(.company-card__body, .company-card__body h2, .company-card__contact) {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.catalog-page table {
    max-width: 100%;
}

.catalog-page td,
.catalog-page th {
    overflow-wrap: anywhere;
    word-break: normal;
}

.catalog-page .vcard {
    width: 100%;
    margin: 18px 0 24px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-spacing: 0;
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: 0 5px 20px rgba(25, 38, 48, .055);
    table-layout: fixed;
}

.catalog-page .vcard td {
    height: auto !important;
    padding: 11px 14px;
    vertical-align: top;
}

.catalog-page .vcard tr:not(:last-child) > td {
    border-bottom: 1px solid var(--sl-border);
}

.catalog-page .vcard tr > td:first-child:not([colspan]) {
    width: 34%;
    color: var(--sl-muted);
    text-align: left !important;
}

.catalog-page .vcard tr > td:last-child {
    text-align: left !important;
}

.catalog-page [itemprop="articleBody"],
.catalog-page .main_font {
    display: flow-root;
    min-width: 0;
    max-width: 100%;
    color: var(--sl-text);
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.catalog-page [itemprop="articleBody"] :where(img, video, iframe) {
    max-width: 100% !important;
    height: auto !important;
}

.catalog-page [itemprop="articleBody"] :where(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.catalog-page .cat_pr,
.catalog-page .vacan {
    box-sizing: border-box;
    max-width: 100%;
    margin: 8px;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .catalog-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .catalog-category-grid,
    .catalog-map-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-map-card__media {
        order: -1;
    }

    .catalog-page .vcard,
    .catalog-page .vcard tbody,
    .catalog-page .vcard tr,
    .catalog-page .vcard td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .catalog-page .vcard tr {
        border-bottom: 1px solid var(--sl-border);
    }

    .catalog-page .vcard tr:last-child {
        border-bottom: 0;
    }

    .catalog-page .vcard tr > td {
        border-bottom: 0 !important;
        text-align: left !important;
    }

    .catalog-page .vcard tr > td:first-child:not([colspan]) {
        padding-bottom: 3px;
        font-weight: 700;
    }

    .catalog-page .vcard tr > td:last-child:not(:first-child) {
        padding-top: 3px;
    }
}

@media (max-width: 480px) {
    .catalog-category-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .catalog-category-card__media {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 680px) {
    .result-card--media {
        grid-template-columns: minmax(0, 1fr);
    }

    .result-card--media > a {
        width: min(100%, 280px);
    }

    .search-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-form__row button {
        width: 100%;
    }

    .help-content .article-card {
        padding: 16px;
    }

    .help-content .prose table,
    .help-content .prose tbody,
    .help-content .prose tr,
    .help-content .prose :where(th, td) {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .help-content .prose table {
        border: 0;
        background: transparent;
    }

    .help-content .prose tr {
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid var(--sl-border);
        border-radius: 10px;
        background: #fff;
    }

    .help-content .prose :where(th, td) {
        border-right: 0;
    }

    .help-content .prose tr > :where(th, td):last-child {
        border-bottom: 0;
    }
}

@media (max-width: 380px) {
    .logo {
        max-width: 205px;
    }

    #CommentForm .g-recaptcha {
        width: 304px !important;
        transform: scale(.88);
        transform-origin: left top;
        margin-bottom: -9px;
    }
}

/* Unified administration lists and bounded pagination. */
.admin-list-header .muted-text {
    margin: 8px 0 0;
}

.admin-header-actions,
.admin-list-toolbar,
.admin-list-toolbar__actions,
.admin-list-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.admin-header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.admin-header-actions form {
    margin: 0;
}

.admin-list-toolbar {
    justify-content: space-between;
    gap: 14px 24px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface-muted);
}

.admin-filter-card {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
}

.admin-filter-card h2 {
    margin: 0;
    font-size: .9rem;
    line-height: 1.3;
}

.admin-filter-card .filter-chips {
    margin: 0;
}

.admin-inline-hint {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--sl-primary);
    border-radius: 7px;
    background: var(--sl-surface-muted);
    color: var(--sl-muted);
}

.admin-list-search {
    flex: 1 1 420px;
}

.admin-list-search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #c9d6dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 1rem/1.35 'Fira Sans', Arial, sans-serif;
}

.admin-list-toolbar__actions {
    justify-content: flex-end;
}

.content-admin-record .admin-record__identity,
.content-admin-record .admin-record__identity > div,
.content-admin-record h3 {
    min-width: 0;
}

.content-admin-record h3 a {
    color: var(--sl-text);
    text-decoration: none;
}

.content-admin-record h3 a:hover,
.content-admin-record h3 a:focus-visible {
    color: var(--sl-primary-dark);
    text-decoration: underline;
}

.content-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 7px !important;
    color: var(--sl-muted);
    font: .88rem/1.45 'Fira Sans', Arial, sans-serif;
}

.content-admin-meta > :not(:last-child)::after {
    margin-left: 14px;
    color: #afbdc4;
    content: "·";
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 1px 8px;
    border: 1px solid var(--sl-border);
    border-radius: 999px;
    background: #fff;
    font-size: .78rem;
    font-weight: 650;
}

.status-badge--success {
    border-color: #a9d8bf;
    background: #edf9f2;
    color: #155c3a;
}

.status-badge--warning {
    border-color: #efc68a;
    background: #fff7e8;
    color: #87510b;
}

.content-keyword-results {
    display: grid;
    gap: 14px;
}

.content-keyword-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.content-keyword-card:has(.content-keyword-card__media) {
    grid-template-columns: 160px minmax(0, 1fr);
}

.content-keyword-card__media {
    display: block;
    align-self: stretch;
    min-height: 120px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--sl-surface-muted);
}

.content-keyword-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-keyword-card__body,
.content-keyword-card__body h2 {
    min-width: 0;
}

.content-keyword-card__body h2,
.content-keyword-card__body p {
    margin-top: 0;
}

.content-keyword-card__body p:last-child {
    margin-bottom: 0;
}

.pagination {
    clear: both;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
    overflow: visible;
}

.pagination li {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
}

.pagination a,
.pagination span,
.pagination li > a,
.pagination li > span {
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    font-size: .92rem;
}

.pagination .pagination__current {
    border-color: var(--sl-primary);
    background: var(--sl-primary);
    color: #fff;
    font-weight: 700;
}

.pagination .pagination__ellipsis {
    min-width: 20px;
    padding-inline: 2px;
    border-color: transparent;
    background: transparent;
    color: var(--sl-muted);
}

.pagination .pagination__control {
    padding-inline: 14px;
    font-weight: 650;
}

@media (max-width: 680px) {
    .admin-page {
        padding: 10px;
    }

    .admin-header-actions,
    .admin-list-toolbar,
    .admin-list-search,
    .admin-list-toolbar__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header-actions,
    .admin-header-actions form,
    .admin-header-actions .button,
    .admin-list-search .button,
    .admin-list-toolbar__actions .button {
        width: 100%;
        box-sizing: border-box;
    }

    .admin-list-search {
        flex-basis: auto;
    }

    .admin-list-toolbar__actions .listing-stats {
        justify-content: center;
    }

    .content-admin-meta {
        display: grid;
        gap: 3px;
    }

    .content-keyword-card:has(.content-keyword-card__media) {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-keyword-card__media {
        min-height: 180px;
    }

    .content-admin-meta > :not(:last-child)::after {
        content: none;
    }

    .pagination {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 2px 0 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .pagination > *,
    .pagination li {
        flex: 0 0 auto;
    }
}

/* Public submission flow: content and registration in one responsive card. */
.guest-form-wrap {
    padding: clamp(18px, 3vw, 30px);
    box-sizing: border-box;
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow);
}

.guest-form-wrap > .form-section-title:first-child {
    margin-top: 0;
}

.guest-form-wrap :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], select, textarea),
.guest-form-wrap > textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #c9d6dc;
    border-radius: 9px;
    background: #fff;
    color: var(--sl-text);
    font: 400 1rem/1.45 'Fira Sans', Arial, sans-serif;
}

.guest-form-wrap > textarea,
.guest-form-wrap .form-field textarea {
    min-height: 110px;
}

.guest-form-wrap input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #aebfc7;
    border-radius: 9px;
    background: var(--sl-surface-muted);
}

.guest-form-wrap .form-section-title {
    margin-top: 28px;
    color: var(--sl-text);
    font-size: 1.05rem;
}

.admin-record__thumb {
    flex: 0 0 82px;
    width: 82px;
    height: 62px;
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    background: var(--sl-surface-muted);
    object-fit: cover;
}

@media (max-width: 680px) {
    .guest-form-wrap {
        padding: 16px;
        border-radius: 11px;
    }

    .admin-record__identity {
        align-items: flex-start;
    }

    .admin-record__thumb {
        width: 72px;
        height: 56px;
    }
}

/* v14.3: restored navigation, search controls and robust content cards. */
.menu-link {
    display: block;
}

.menu-link > a {
    display: grid;
    min-height: 52px;
    place-items: center;
    border-radius: 9px;
}

.sidebar-search-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #b9c9d1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(25, 38, 48, .06);
}

.sidebar-search-control .searchinput {
    width: 100%;
    min-width: 0;
    height: 46px;
    float: none;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--sl-text);
    font: 400 .98rem/1.35 'Fira Sans', Arial, sans-serif;
    outline: 0;
}

.sidebar-search-control .searchinput::placeholder {
    color: #71818b;
    opacity: 1;
}

.sidebar-search-control .searchbutton {
    position: relative;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #c9d6dc !important;
    border-radius: 0 !important;
    background: #edf5f8 !important;
    background-image: none !important;
    color: var(--sl-primary-dark);
    opacity: 1;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.sidebar-search-control .searchbutton::before {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 13px;
    height: 13px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
}

.sidebar-search-control .searchbutton::after {
    position: absolute;
    top: 27px;
    left: 27px;
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.sidebar-search-control .searchbutton:hover,
.sidebar-search-control .searchbutton:focus-visible {
    background: var(--sl-primary) !important;
    color: #fff;
}

.sidebar-search-control:focus-within {
    border-color: var(--sl-primary);
    box-shadow: 0 0 0 3px rgba(20, 124, 168, .16);
}

.sidebar-search-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: var(--sl-muted);
    font: .9rem/1.4 'Fira Sans', Arial, sans-serif;
}

.sidebar-search-option input {
    flex: 0 0 auto;
    margin-top: .18em;
}

.news-article {
    display: flow-root;
    max-width: 100%;
}

.news-article .article-media {
    width: min(42%, 350px);
    max-width: 350px;
    float: left;
    clear: none;
    margin: 20px clamp(18px, 2.6vw, 30px) 12px 0;
    padding: 0;
}

.news-article .article-media .top_img {
    float: none;
    overflow: hidden;
    border-radius: 11px;
}

.news-article .article-media .bigimg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 11px;
    object-fit: contain;
}

.news-article .article-body {
    clear: none;
    max-width: none;
    min-width: 0;
    overflow: visible;
}

.article-body :where(.content-image-left, img[align="left"], img[style*="float: left"], img[style*="float:left"]) {
    float: left;
    margin: .35em 1.3em .8em 0 !important;
}

.article-body :where(.content-image-right, img[align="right"], img[style*="float: right"], img[style*="float:right"]) {
    float: right;
    margin: .35em 0 .8em 1.3em !important;
}

.article-body .content-image-center {
    display: block;
    float: none;
    margin: 1em auto !important;
}

.article-body :where(table, iframe, video, pre) {
    max-width: 100%;
}

.article-body table {
    display: block;
    overflow-x: auto;
}

:where(
    .section-card,
    .article-card,
    .result-card,
    .listing-card,
    .author-card,
    .board-card,
    .media-card,
    .company-card,
    .contact-card,
    .top_article,
    .top_side_news,
    .top_side_news_adv,
    .top_side_article,
    .barter-detail-shell
) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

:where(
    .section-card,
    .article-card,
    .result-card,
    .listing-card,
    .author-card,
    .board-card,
    .media-card,
    .company-card,
    .contact-card,
    .top_article,
    .top_side_news,
    .top_side_news_adv,
    .top_side_article
) :where(h1, h2, h3, h4, p, a, span, div) {
    min-width: 0;
    overflow-wrap: anywhere;
}

.top_side_news,
.top_side_news_adv,
.top_side_article {
    display: flow-root;
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 12px;
    padding: clamp(12px, 2vw, 18px);
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(25, 38, 48, .045);
}

.top_side_news :where(h2, h3, p):first-child,
.top_side_news_adv :where(h2, h3, p):first-child,
.top_side_article :where(h2, h3, p):first-child {
    margin-top: 0;
}

.top_side_news :where(h2, h3, p):last-child,
.top_side_news_adv :where(h2, h3, p):last-child,
.top_side_article :where(h2, h3, p):last-child {
    margin-bottom: 0;
}

:where(.pop_news.table1, .anonse.table1, .margin_but_20.table1) {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 14px !important;
    table-layout: fixed;
    border: 1px solid var(--sl-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(25, 38, 48, .045);
}

:where(.pop_news.table1, .anonse.table1, .margin_but_20.table1) td {
    min-width: 0;
    padding: clamp(8px, 1.5vw, 13px);
    overflow-wrap: anywhere;
    vertical-align: top;
}

:where(.pop_news.table1, .anonse.table1, .margin_but_20.table1) img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.board-card {
    display: grid;
    grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
    gap: clamp(14px, 2.4vw, 22px);
    margin: 0 0 16px;
    overflow: hidden;
}

.board-card__media {
    position: relative;
    display: block;
    align-self: start;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sl-surface-muted);
}

.board-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.board-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff4df;
    color: #84510e;
    font: 700 .72rem/1.2 'Fira Sans', Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(25, 38, 48, .14);
}

.board-card__body {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 10px;
}

.board-card__heading {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 7px 16px;
}

.board-card__heading h2 {
    min-width: min(100%, 220px);
    flex: 1 1 320px;
    margin: 0;
    font-size: clamp(1.08rem, 2.1vw, 1.35rem);
    line-height: 1.25;
}

.board-card__price {
    flex: 0 0 auto;
    color: var(--sl-primary-dark);
    font: 700 1.05rem/1.3 'Fira Sans', Arial, sans-serif;
}

.board-card__meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--sl-muted);
    font: .86rem/1.45 'Fira Sans', Arial, sans-serif;
}

.board-card__summary,
.board-card__details,
.board-card__details p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.board-card__details {
    padding-top: 8px;
    border-top: 1px solid var(--sl-border);
}

.board-card__details summary {
    width: fit-content;
    color: var(--sl-primary-dark);
    cursor: pointer;
    font-weight: 650;
}

.board-card__details[open] summary {
    margin-bottom: 8px;
}

.board-card > .board-card__body > .button {
    width: fit-content;
    max-width: 100%;
    margin-top: 2px;
}

.barter-content-row > td {
    padding-top: clamp(14px, 2.4vw, 24px) !important;
}

.barter-content-flow {
    display: flow-root;
    min-width: 0;
    max-width: 100%;
}

.barter-detail-aside {
    width: min(44%, 430px);
    max-width: 430px;
    float: left;
    margin: 0 clamp(18px, 2.7vw, 30px) 14px 0;
}

.barter-detail-aside .barter-media {
    width: 100%;
    min-height: clamp(280px, 32vw, 430px);
    box-sizing: border-box;
}

.barter-detail-aside .barter-contact-table {
    width: 100%;
    margin-top: 14px;
    table-layout: fixed;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(25, 38, 48, .045);
}

.barter-description {
    min-width: 0;
    padding: 0 !important;
    overflow-wrap: anywhere;
}

.barter-description > :first-child {
    margin-top: 0;
}

.barter-description :where(img, table, iframe, video, pre) {
    max-width: 100%;
}

@media (max-width: 760px) {
    .news-article .article-media {
        width: 100%;
        max-width: 100%;
        float: none;
        clear: both;
        margin: 18px 0;
    }

    .news-article .article-body {
        clear: both;
    }

    .article-body :where(
        img[align="left"],
        img[align="right"],
        .content-image-left,
        .content-image-right,
        .content-image-center,
        img[style*="float: left"],
        img[style*="float:left"],
        img[style*="float: right"],
        img[style*="float:right"]
    ) {
        display: block !important;
        max-width: 100% !important;
        float: none !important;
        margin: 14px auto !important;
    }

    .board-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .board-card__media {
        width: min(100%, 280px);
    }

    .board-card > .board-card__body > .button {
        width: 100%;
    }

    .barter-detail-aside {
        width: 100%;
        max-width: 100%;
        float: none;
        margin: 0 0 18px;
    }

    .barter-detail-aside .barter-media {
        min-height: clamp(250px, 76vw, 430px);
    }

    :where(.pop_news.table1, .anonse.table1, .margin_but_20.table1) td {
        padding: 9px;
    }
}

/* v14.4: final containment rules for modern cards and article media. */
.page-header > :last-child,
.article-card > :last-child,
.section-card > :last-child,
.result-card > :last-child {
    margin-bottom: 0;
}

.section-card {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 7px;
    color: var(--sl-text);
    text-decoration: none;
}

.section-card:hover,
.section-card:focus-visible {
    border-color: #b4d2df;
    color: var(--sl-primary-dark);
    box-shadow: var(--sl-shadow);
}

.section-card span {
    color: var(--sl-muted);
    font: .88rem/1.4 'Fira Sans', Arial, sans-serif;
}

.filter-chip.is-active {
    border-color: var(--sl-primary);
    background: var(--sl-primary);
    color: #fff;
    font-weight: 700;
}

.author-header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(15px, 3vw, 26px);
}

.author-header > div {
    min-width: 0;
}

.author-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    color: var(--sl-text);
    text-decoration: none;
}

.author-card > img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sl-surface-muted);
    object-fit: cover;
}

.author-card > span {
    display: grid;
    min-width: 0;
    gap: 3px;
    overflow-wrap: anywhere;
}

.author-card > small {
    color: var(--sl-muted);
    white-space: nowrap;
}

.article-card > img.article-hero {
    display: block;
    width: min(100%, 960px);
    max-height: 620px;
    margin: 20px auto;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: var(--sl-surface-muted);
    box-shadow: none;
    object-fit: contain;
}

@media (max-width: 680px) {
    .author-header {
        align-items: flex-start;
    }

    .author-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .author-card > img {
        width: 56px;
        height: 56px;
        grid-row: 1 / span 2;
    }

    .author-card > small {
        grid-column: 2;
        white-space: normal;
    }
}

.trade-card-finance {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px 18px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--sl-surface-muted);
    color: var(--sl-muted);
    font: .9rem/1.45 'Fira Sans', Arial, sans-serif;
}

.trade-card-finance strong {
    color: var(--sl-text);
}

.trade-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    clear: both;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--sl-border);
}

.trade-facts h2 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
}

.trade-fact {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: var(--sl-surface-muted);
}

.trade-fact span {
    color: var(--sl-muted);
    font: .86rem/1.4 'Fira Sans', Arial, sans-serif;
}

.trade-fact strong {
    overflow-wrap: anywhere;
    font-size: 1.05rem;
}

.trade-contact {
    clear: both;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--sl-border);
}

.trade-contact h2 {
    margin-top: 0;
}

.trade-contact dl {
    display: grid;
    margin: 0 0 18px;
    border-top: 1px solid var(--sl-border);
}

.trade-contact dl > div {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--sl-border);
}

.trade-contact :where(dt, dd) {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.trade-contact dt {
    color: var(--sl-muted);
    font: 650 .9rem/1.45 'Fira Sans', Arial, sans-serif;
}

.trade-contact .button {
    margin: 4px 8px 4px 0;
}

@media (max-width: 680px) {
    .trade-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .trade-contact dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .trade-contact .button {
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* v14.4: unified public vacancies and resumes. */
.jobs-page > .main,
.job-directory,
.job-listing,
.job-detail {
    min-width: 0;
}

.jobs-sidebar .filter-list > a {
    display: block;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--sl-text);
    font: 500 .92rem/1.35 'Fira Sans', Arial, sans-serif;
    text-decoration: none;
}

.jobs-sidebar .filter-list > a:hover,
.jobs-sidebar .filter-list > a:focus-visible {
    border-color: #c8dce5;
    background: var(--sl-surface-muted);
    color: var(--sl-primary-dark);
}

.jobs-sidebar .filter-list > a.is-active,
.jobs-sidebar .filter-list > a[aria-current="page"] {
    border-color: #acd0df;
    background: #e8f5fa;
    color: var(--sl-primary-dark);
    font-weight: 700;
}

.section-card--accent {
    border-color: #b7d7e4;
    background: linear-gradient(145deg, #f5fbfd, #eaf6fa);
}

.section-card--accent:hover {
    transform: none;
}

.job-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.job-category-card {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
    box-shadow: 0 4px 16px rgba(25, 38, 48, .045);
}

.job-category-card h2 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.02rem;
}

.job-category-card__counts {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.job-category-card__counts a {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--sl-surface-muted);
    color: var(--sl-muted);
    font: 500 .84rem/1.3 'Fira Sans', Arial, sans-serif;
    text-decoration: none;
}

.job-category-card__counts a:hover,
.job-category-card__counts a:focus-visible {
    background: #e4f2f7;
    color: var(--sl-primary-dark);
}

.job-category-card__counts strong {
    display: inline-grid;
    min-width: 22px;
    min-height: 22px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--sl-text);
    font-size: .76rem;
}

.job-card__facts {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin: 0 0 10px;
    color: var(--sl-muted);
    font: 500 .9rem/1.4 'Fira Sans', Arial, sans-serif;
}

.job-card__facts span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.job-card__facts strong {
    color: var(--sl-text);
}

.job-detail__salary {
    display: inline-block;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 9px;
    background: #eaf6fa;
    color: var(--sl-primary-dark);
    font: 500 1rem/1.4 'Fira Sans', Arial, sans-serif;
}

.job-detail__salary strong {
    font-size: 1.15rem;
}

.job-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    clear: both;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-border);
}

.job-facts > div {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 12px 14px;
    background: #fff;
}

.job-facts :where(dt, dd) {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.job-facts dt {
    color: var(--sl-muted);
    font: 600 .8rem/1.35 'Fira Sans', Arial, sans-serif;
    text-transform: uppercase;
}

.job-facts dd {
    color: var(--sl-text);
}

@media (max-width: 680px) {
    .job-directory-grid,
    .job-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .job-category-card {
        padding: 14px;
    }
}

/* v14.4: polls share the same card, form and pagination language. */
.poll-page > .main,
.poll-card,
.poll-archive {
    min-width: 0;
}

.poll-card {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: 0 5px 20px rgba(25, 38, 48, .055);
}

.poll-card > :first-child {
    margin-top: 0;
}

.poll-card > :last-child {
    margin-bottom: 0;
}

.poll-form fieldset {
    display: grid;
    min-width: 0;
    gap: 9px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.poll-option {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--sl-border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font: 500 .94rem/1.4 'Fira Sans', Arial, sans-serif;
}

.poll-option:hover {
    border-color: #acd0df;
    background: #f4fafc;
}

.poll-option input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: var(--sl-primary);
}

.poll-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.poll-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 15px;
    font: 500 .9rem/1.4 'Fira Sans', Arial, sans-serif;
}

.poll-results__items {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.poll-result {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.poll-result__label {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.poll-result__label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.poll-result__track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf1;
}

.poll-result__track span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sl-primary), #62b9d1);
}

.poll-result small,
.poll-results__total {
    color: var(--sl-muted);
}

.poll-archive-card {
    transform: none;
}

.comments-section {
    clear: both;
    min-width: 0;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sl-border);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 680px) {
    .poll-card {
        padding: 16px;
    }

    .poll-result__label {
        align-items: flex-start;
    }
}

/* v14.4: modern shell for still-active legacy modules.
   Explicit placement prevents DOM order from swapping main content and sidebars. */
@supports selector(.content:has(> .center)) {
    .content:has(> .left):has(> .center) {
        display: grid;
        grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
        align-items: start;
        gap: clamp(18px, 2.6vw, 32px);
        overflow: visible;
    }

    .content:has(> .left):has(> .center) > :where(.left, .center, .right) {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        float: none;
    }

    .content:has(> .left):has(> .center) > .left {
        grid-column: 1;
        grid-row: 1;
    }

    .content:has(> .left):has(> .center) > .center {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .content:has(> .left):has(> .center) > .right {
        grid-column: 1;
        grid-row: 2;
    }

    .content:has(> .coll_n):has(> .right_n) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        align-items: start;
        gap: clamp(18px, 2.6vw, 32px);
        overflow: visible;
    }

    .content:has(> .coll_n):has(> .right_n) > :where(.coll_n, .right_n) {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        float: none;
    }

    .content:has(> .coll_n):has(> .right_n) > .coll_n {
        grid-column: 1;
        grid-row: 1;
    }

    .content:has(> .coll_n):has(> .right_n) > .right_n {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 1000px) {
    @supports selector(.content:has(> .center)) {
        .content:has(> .left):has(> .center),
        .content:has(> .coll_n):has(> .right_n) {
            grid-template-columns: minmax(0, 1fr);
        }

        .content:has(> .left):has(> .center) > .center,
        .content:has(> .coll_n):has(> .right_n) > .coll_n {
            grid-column: 1;
            grid-row: 1;
        }

        .content:has(> .left):has(> .center) > .left,
        .content:has(> .coll_n):has(> .right_n) > .right_n {
            grid-column: 1;
            grid-row: 2;
        }

        .content:has(> .left):has(> .center) > .right {
            grid-column: 1;
            grid-row: 3;
        }
    }
}
