@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-Light.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-Light.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-Light.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-ExtraBold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/gilroy/Gilroy-ExtraBold.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: "Gilroy", "Segoe UI", Arial, sans-serif;
    --bg: #ffffff;
    --bg-soft: #f6f8f5;
    --surface: #ffffff;
    --line: #dde5dc;
    --text: #2d342f;
    --muted: #68746d;
    --heading: #101612;
    --accent: #2f6f5e;
    --accent-2: #b96945;
    --accent-soft: #e7f1ed;
    --shadow: 0 10px 28px rgba(27, 40, 33, 0.08);
    --radius: 8px;
}

html {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0;
}

body.search-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-2);
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 40px));
}

.site-header {
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #edf0f5;
    backdrop-filter: blur(12px);
}

.header-top {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    transition: box-shadow .18s ease, transform .18s ease;
}

.site-header.topbar-stuck {
    padding-top: var(--header-top-height, 100px);
}

.site-header.topbar-stuck .header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    box-shadow: 0 12px 30px rgba(27, 40, 33, 0.08);
}

.header-top-inner {
    min-height: 100px;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--heading);
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1.5px solid #2f3446;
    border-radius: 50%;
    background: #fff;
    color: #2f3446;
    font-size: 14px;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.site-brand strong {
    color: #3b4054;
    font-size: 1.36rem;
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
}

.site-brand small {
    color: #3b4054;
    font-size: 0.95rem;
    font-weight: 500;
}

.header-icon-button,
.menu-toggle {
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #596070;
    box-shadow: none;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-logo img {
    width: clamp(180px, 15vw, 220px);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.theme-logo-dark {
    display: none;
}

.header-navigation {
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.header-icon-button {
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.header-icon-button svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

.header-icon-button:hover,
.menu-toggle:hover {
    color: var(--accent);
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: start center;
    padding: 96px 20px 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.search-panel.open {
    pointer-events: auto;
    opacity: 1;
}

.search-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 22, 18, 0.28);
    backdrop-filter: blur(4px);
}

.search-panel-card {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 22, 18, 0.18);
    transform: translateY(-14px) scale(.98);
    transition: transform .22s ease;
}

.search-panel.open .search-panel-card {
    transform: translateY(0) scale(1);
}

.search-panel-card label {
    display: block;
    margin: 0 0 10px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 900;
}

.search-panel-card > div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.search-panel-card input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--heading);
    font-size: 18px;
}

.search-panel-card button[type="submit"] {
    min-height: 42px;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.search-panel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f2;
    color: var(--heading);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #24283a;
    white-space: nowrap;
}

.main-nav a svg {
    width: 19px;
    height: 19px;
    color: #c4cad5;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.main-nav a:hover svg,
.main-nav a.active svg {
    color: var(--accent);
}

.menu-toggle {
    display: none;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    color: #111827;
}

.menu-toggle svg {
    width: 27px;
    height: 27px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.theme-toggle button {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b93a3;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.theme-toggle button:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.theme-toggle button.active[data-theme-value="light"] {
    background: #ffb300;
    color: #fff;
}

.theme-toggle button.active[data-theme-value="dark"] {
    background: #59617e;
    color: #fff;
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
}

.notice {
    margin: 20px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.notice-success {
    border-color: #b9d9c7;
    background: #edf8f0;
}

.notice-error {
    border-color: #e5b4aa;
    background: #fff0ed;
}

.featured-section {
    padding: 34px 0 28px;
    background: var(--bg-soft);
}

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    gap: 34px;
    align-items: center;
}

.featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8ece8;
}

.featured-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.featured-copy h1 {
    margin: 14px 0 14px;
    color: var(--heading);
    font-size: clamp(2.1rem, 4vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.featured-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 620px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: 14px;
    margin: 14px 0;
}

.button,
.read-more,
.contact-form button,
.comment-form button,
.search-form button,
.wide-search button,
.newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.button:hover,
.read-more:hover,
.contact-form button:hover,
.comment-form button:hover,
.search-form button:hover,
.wide-search button:hover,
.newsletter button:hover {
    background: var(--accent-2);
    color: #fff;
}

.content-section,
.page-content {
    padding: 42px 0;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
}

.main-column {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading p,
.archive-header p {
    margin: 0 0 4px;
    color: var(--accent-2);
    font-weight: 800;
    font-size: 13px;
}

.section-heading h2,
.archive-header h1,
.page-header h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: 0;
}

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

.archive-posts-full .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    min-width: 0;
}

.post-card-image {
    display: block;
    background: #edf0ec;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card-body {
    padding: 18px;
}

.post-card h2 {
    margin: 10px 0 8px;
    font-size: 1.24rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.post-card h2 a {
    color: var(--heading);
}

.post-card h2 a:hover {
    color: var(--accent);
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.read-more {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 14px;
}

.sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.sidebar-widget,
.toc-card,
.contact-info {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--surface);
}

.sidebar-widget h2,
.toc-card h2,
.contact-info h2,
.site-footer h2 {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 1rem;
    line-height: 1.25;
}

.search-form,
.newsletter form,
.wide-search {
    display: flex;
    gap: 8px;
}

.search-form input,
.newsletter input,
.wide-search input,
.contact-form input,
.contact-form textarea,
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
}

.compact-list,
.category-list {
    display: grid;
    gap: 10px;
}

.compact-list a,
.category-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--heading);
}

.compact-list small,
.category-list strong,
.muted {
    color: var(--muted);
}

.newsletter p {
    margin-top: 0;
    color: var(--muted);
    font-size: 15px;
}

.archive-header,
.page-header {
    padding: 48px 0 34px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.archive-description,
.page-header p {
    max-width: 760px;
    color: var(--muted);
}

.category-archive-header {
    position: relative;
    overflow: hidden;
    padding: 54px 0 42px;
    background:
        radial-gradient(circle at 84% 24%, rgba(47, 111, 94, .13), transparent 28%),
        linear-gradient(135deg, #f5f8f6, #eef4f1);
}

.category-archive-header::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 310px;
    height: 310px;
    border: 55px solid rgba(185, 105, 69, .08);
    border-radius: 50%;
    content: "";
}

.category-archive-header .container {
    position: relative;
    z-index: 1;
}

.archive-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
}

.archive-breadcrumb a {
    color: var(--muted);
}

.archive-breadcrumb a:hover {
    color: var(--accent);
}

.archive-breadcrumb strong {
    color: var(--heading);
}

.category-archive-header h1 {
    max-width: 900px;
    font-size: clamp(2.2rem, 5vw, 3.35rem);
}

.category-archive-header .archive-description {
    max-width: 820px;
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.7;
}

.category-archive-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.category-archive-summary span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid rgba(47, 111, 94, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.category-posts-section {
    padding: 52px 0 58px;
}

.category-post-archive .post-grid {
    gap: 26px 22px;
}

.category-post-archive .post-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(27, 40, 33, .065);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.category-post-archive .post-card:hover {
    border-color: #c8d8cf;
    box-shadow: 0 18px 40px rgba(27, 40, 33, .1);
    transform: translateY(-3px);
}

.category-post-archive .post-card-image {
    overflow: hidden;
    border-radius: 13px 13px 0 0;
}

.category-post-archive .post-card-image img {
    aspect-ratio: 16 / 10.2;
    transition: transform .4s ease;
}

.category-post-archive .post-card:hover .post-card-image img {
    transform: scale(1.035);
}

.category-post-archive .post-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.category-post-archive .post-card h2 {
    font-size: 1.18rem;
}

.category-post-archive .post-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-post-archive .post-meta {
    margin-top: auto;
    padding-top: 16px;
}

.category-post-archive .read-more {
    align-self: flex-start;
    margin-top: 14px;
}

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

.category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    background: #fff;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.category-card p {
    color: var(--muted);
    font-size: 15px;
}

.empty-state {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.pagination {
    margin-top: 36px;
}

.pagination-enhanced {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(27, 40, 33, .055);
}

.pagination-status {
    min-width: 105px;
}

.pagination-status strong,
.pagination-status span {
    display: block;
    line-height: 1.3;
}

.pagination-status strong {
    color: var(--heading);
    font-size: 14px;
}

.pagination-status span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.pagination-number,
.pagination-direction,
.pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--heading);
    font-size: 13px;
    font-weight: 850;
}

.pagination-direction {
    min-width: 92px;
    padding: 0 12px;
}

.pagination-number:hover,
.pagination-direction:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-number.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.pagination-direction.disabled {
    cursor: not-allowed;
    opacity: .4;
}

.pagination-ellipsis {
    min-width: 24px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.pagination-jump {
    display: grid;
    grid-template-columns: 64px 46px 42px;
    align-items: center;
    gap: 6px;
}

.pagination-jump label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.pagination-jump input {
    width: 46px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--heading);
    text-align: center;
    outline: none;
}

.pagination-jump input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 94, .12);
}

.pagination-jump button {
    width: 42px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.category-seo-section {
    padding: 16px 0 72px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.category-seo-article {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(27, 40, 33, .075);
}

.category-seo-article > header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.category-seo-article > header p {
    margin: 0 0 7px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.category-seo-article > header h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
}

.category-seo-content {
    color: var(--text);
}

.category-seo-content h2,
.category-seo-content h3 {
    scroll-margin-top: 110px;
    color: var(--heading);
    line-height: 1.3;
}

.category-seo-content h2 {
    margin: 42px 0 14px;
    font-size: 1.65rem;
}

.category-seo-content h2:first-child {
    margin-top: 0;
}

.category-seo-content h3 {
    margin: 30px 0 10px;
    font-size: 1.25rem;
}

.category-seo-content p,
.category-seo-content ul,
.category-seo-content ol {
    margin: 0 0 20px;
}

.category-seo-content a {
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.category-seo-content blockquote,
.category-seo-content .info-box {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: var(--bg-soft);
}

.article-page {
    background: #fff;
}

.article-shell {
    padding: 34px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 26px;
}

.article-header {
    width: min(780px, 100%);
    margin: 0 auto 24px;
}

.article-header h1 {
    margin: 14px 0;
    color: var(--heading);
    font-size: clamp(2.25rem, 5vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.article-header p {
    color: var(--muted);
    font-size: 1.08rem;
}

.article-cover {
    margin: 26px 0;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 8.8;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.article-cover figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 780px) 1fr;
    gap: 30px;
    align-items: start;
}

.toc-card {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    font-size: 14px;
}

.toc-card ol {
    margin: 0;
    padding-left: 18px;
}

.toc-card li {
    margin: 8px 0;
}

.toc-level-3 {
    margin-left: 12px;
}

.article-content {
    width: min(780px, 100%);
    color: #252b27;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.78;
}

.article-content h2,
.article-content h3 {
    color: var(--heading);
    font-family: var(--font-sans);
    line-height: 1.25;
    letter-spacing: 0;
}

.article-content h2 {
    margin: 38px 0 14px;
    font-size: clamp(1.65rem, 3vw, 2rem);
}

.article-content h3 {
    margin: 28px 0 10px;
    font-size: 1.35rem;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 0 0 24px;
}

.article-content img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin: 26px 0;
}

.article-content .article-card-note-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(560px, 100%);
    margin: 24px auto 30px;
    align-items: start;
}

.article-content .article-card-note-figure {
    width: min(260px, 100%);
    margin: 24px auto;
    text-align: center;
}

.article-content .article-card-note-gallery .article-card-note-figure {
    width: 100%;
    margin: 0;
}

.article-content .article-card-note-figure img {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(38, 72, 60, .1);
}

.article-content .article-card-note-figure figcaption {
    display: none;
}

.article-content .article-card-note-pin {
    display: none;
}

@media (max-width: 560px) {
    .article-content .article-card-note-gallery {
        width: min(360px, 100%);
        gap: 10px;
    }
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-family: var(--font-sans);
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.article-content th {
    background: var(--bg-soft);
    color: var(--heading);
}

.article-content blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content .info-box {
    margin: 26px 0;
    padding: 16px 18px;
    border: 1px solid #c7d9d0;
    border-radius: var(--radius);
    background: #f0f7f4;
    font-family: var(--font-sans);
    font-size: 16px;
}

.article-content .note-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 14px 0;
    padding: 15px 16px;
    border: 1px solid rgba(185, 105, 69, .24);
    border-radius: 8px;
    background: #fff7f5;
}

.article-content .note-box p {
    margin: 0;
}

.article-content .note-copy,
.article-content .note-box button,
.article-content button[data-card-note-copy] {
    min-width: 96px;
    padding: 9px 13px;
    border: 1px solid rgba(185, 105, 69, .28);
    border-radius: 8px;
    background: #ffffff;
    color: #8b3f24;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.article-content .note-copy:hover,
.article-content .note-copy.copied,
.article-content .note-box button:hover,
.article-content .note-box button.copied,
.article-content button[data-card-note-copy]:hover,
.article-content button[data-card-note-copy].copied {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.article-content .article-faq {
    display: grid;
    gap: 12px;
    margin: 38px 0;
    padding: 24px;
    border: 1px solid rgba(44, 122, 91, .18);
    border-radius: 20px;
    background: linear-gradient(145deg, #f5fbf8, #fff);
}

.article-content .article-faq > h2 {
    margin: 0 0 5px;
}

.article-content .faq-item {
    overflow: hidden;
    border: 1px solid rgba(37, 48, 71, .1);
    border-radius: 14px;
    background: #fff;
}

.article-content .faq-item summary {
    position: relative;
    padding: 15px 48px 15px 17px;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    font-weight: 850;
}

.article-content .faq-item summary::-webkit-details-marker {
    display: none;
}

.article-content .faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 900;
}

.article-content .faq-item[open] summary::after {
    content: "−";
}

.article-content .faq-item > :not(summary) {
    margin: 0;
    padding: 0 17px 16px;
}

html[data-theme="dark"] .article-content .article-faq {
    border-color: rgba(107, 204, 160, .24);
    background: linear-gradient(145deg, #182722, #172029);
}

html[data-theme="dark"] .article-content .faq-item {
    border-color: rgba(255, 255, 255, .1);
    background: #202a35;
}

html[data-theme="dark"] .article-content .note-box {
    border-color: rgba(238, 169, 132, .24);
    background: #241f22;
}

html[data-theme="dark"] .article-content .article-card-note-figure img {
    box-shadow: 0 10px 24px rgba(7, 9, 18, .28);
}

html[data-theme="dark"] .article-content .note-copy,
html[data-theme="dark"] .article-content .note-box button,
html[data-theme="dark"] .article-content button[data-card-note-copy] {
    border-color: rgba(238, 169, 132, .32);
    background: #1b222b;
    color: #f1c2aa;
}

html[data-theme="dark"] .article-content .note-copy:hover,
html[data-theme="dark"] .article-content .note-copy.copied,
html[data-theme="dark"] .article-content .note-box button:hover,
html[data-theme="dark"] .article-content .note-box button.copied,
html[data-theme="dark"] .article-content button[data-card-note-copy]:hover,
html[data-theme="dark"] .article-content button[data-card-note-copy].copied {
    border-color: #f1c2aa;
    background: #f1c2aa;
    color: #241f22;
}

@media (max-width: 640px) {
    .article-content .note-box {
        grid-template-columns: 1fr;
    }

    .article-content .note-copy,
    .article-content .note-box button,
    .article-content button[data-card-note-copy] {
        width: 100%;
    }
}

.tag-list,
.share-box,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-list {
    margin: 28px 0;
}

.tag-list a,
.share-box a,
.social-links a {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
}

.share-box {
    margin: 22px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-sans);
}

.related-posts,
.comments {
    width: min(920px, 100%);
    margin: 46px auto 0;
}

.article-clean .article-shell {
    width: min(1560px, calc(100% - 72px));
    padding: 26px 0 64px;
}

.article-reading-card {
    background: #fff;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width .12s linear;
}

.article-clean .clean-breadcrumb,
.article-clean .article-header,
.article-clean .compact-toc,
.article-clean .article-content,
.article-clean .article-footer,
.article-clean .article-end-panel {
    width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.article-clean .clean-breadcrumb {
    margin-bottom: 22px;
}

.article-clean .article-header {
    width: 100%;
    margin-bottom: 22px;
}

.article-clean .article-header h1 {
    max-width: none;
    margin: 14px 0 12px;
    font-size: clamp(2.15rem, 5vw, 3.05rem);
    line-height: 1.08;
}

.article-clean .article-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.article-social-share {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 auto 28px;
}

.article-social-share-link {
    --share-color: #111;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--share-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(27, 40, 33, 0.1);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.article-social-share-link:hover {
    opacity: .94;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(27, 40, 33, 0.14);
}

.article-social-share-link img {
    width: 21px;
    height: 21px;
    display: block;
    filter: brightness(0) invert(1);
}

.article-social-share-link.facebook {
    --share-color: #0866ff;
}

.article-social-share-link.x,
.article-social-share-link.threads {
    --share-color: #000;
}

.article-social-share-link.linkedin {
    --share-color: #0a66c2;
}

.article-social-share-link.whatsapp {
    --share-color: #25d366;
}

.article-social-share-link.telegram {
    --share-color: #26a5e4;
}

.article-social-share-link.pinterest {
    --share-color: #e60023;
}

.article-social-share-link.tumblr {
    --share-color: #36465d;
}

.article-clean .article-cover {
    width: min(1060px, 100%);
    margin: 26px auto 32px;
}

.article-clean .article-cover img {
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.article-detail-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 32px;
    align-items: start;
    margin: 0 auto;
}

.article-detail-main {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6ece8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(27, 40, 33, .08);
}

.article-detail-main .article-cover,
.article-detail-main .article-content,
.article-detail-main .article-tags-row,
.article-detail-main .reaction-card,
.article-detail-main .article-end-panel,
.article-detail-main .community-comments {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.article-detail-main .article-layout,
.article-detail-main .article-tags-row,
.article-detail-main .reaction-card,
.article-detail-main .article-end-panel,
.article-detail-main .community-comments {
    width: min(980px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}

.article-detail-main .article-cover {
    margin-top: 0;
    margin-bottom: 0;
}

.article-detail-main .article-cover img {
    aspect-ratio: 16 / 7.8;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.article-action-bar {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px auto 34px;
    padding: 12px;
    width: min(980px, calc(100% - 64px));
    border: 1px solid #e1eae4;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f5f8f6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 12px 24px rgba(27, 40, 33, .06);
    overflow: visible;
}

.article-action-reactions,
.article-action-save {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.article-action-reactions {
    margin-right: auto;
}

.article-action-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 13px 8px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #7f8998;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
    white-space: nowrap;
}

.article-action-button i {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f4f2;
    color: #9aa3b2;
    font-style: normal;
    transition: background .16s ease, color .16s ease;
}

.article-action-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.article-action-button span {
    display: grid;
    gap: 1px;
    min-width: 0;
    color: inherit;
    line-height: 1.1;
}

.article-action-button strong {
    color: #1d2733;
    font-size: 15px;
    font-weight: 900;
}

.article-action-button em {
    color: #8b94a3;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.article-action-button:hover,
.article-action-button.selected {
    border-color: #dce8e2;
    background: #fff;
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(27, 40, 33, .07);
}

.article-action-button:hover strong,
.article-action-button:hover em,
.article-action-button.selected strong,
.article-action-button.selected em {
    color: currentColor;
}

.article-action-button.like.selected {
    color: #2f80ed;
}

.article-action-button.like.selected i {
    background: #e8f2ff;
    color: #2f80ed;
}

.article-action-button.dislike.selected {
    color: #d75b56;
}

.article-action-button.dislike.selected i {
    background: #fff0ee;
    color: #d75b56;
}

.article-action-button.save.selected {
    color: var(--accent);
}

.article-action-button.save.selected i {
    background: var(--accent-soft);
    color: var(--accent);
}

.article-action-button.comment:hover i,
.article-action-button.share:hover i {
    background: #eef7f3;
    color: var(--accent);
}

.article-action-button.share {
    margin-left: 0;
}

.article-action-save.is-loading .article-action-button {
    opacity: .62;
    pointer-events: none;
}

.article-action-status {
    position: absolute;
    right: 16px;
    bottom: -22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
}

.article-clean .article-layout {
    display: block;
}

.article-clean .compact-toc {
    position: static;
    max-height: none;
    overflow: hidden;
    padding: 0;
    margin-bottom: 28px;
    background: var(--bg-soft);
}

.article-clean .article-toggle-toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.article-clean .compact-toc summary {
    cursor: pointer;
    padding: 14px 16px;
    color: var(--heading);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 850;
    list-style: none;
}

.article-clean .compact-toc summary::-webkit-details-marker {
    display: none;
}

.article-clean .compact-toc summary::after {
    content: "+";
    float: right;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.article-clean .compact-toc[open] summary::after {
    content: "-";
}

.article-clean .compact-toc ol {
    padding: 0 18px 16px 34px;
}

.article-clean .article-content {
    color: #202620;
    font-size: 19px;
    line-height: 1.84;
}

.article-clean .article-content > :first-child {
    margin-top: 0;
}

.article-clean .article-content h2 {
    margin-top: 44px;
}

.article-clean .article-footer {
    margin-top: 34px;
}

.article-end-panel {
    display: grid;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-share-mini {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px;
}

.article-share-mini > span {
    color: var(--heading);
    font-weight: 850;
}

.article-share-mini a,
.article-share-mini button {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--heading);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.article-share-mini a:hover,
.article-share-mini button:hover {
    border-color: #cbd8ce;
    background: var(--bg-soft);
    color: var(--accent);
}

.article-share-mini small {
    color: var(--accent);
    font-weight: 800;
}

.reaction-card {
    width: min(920px, 100%);
    margin: 38px auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.reaction-card.is-loading {
    opacity: .72;
    pointer-events: none;
}

.reaction-card h2 {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    color: #2f3446;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
}

.reaction-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 16px 16px;
}

.reaction-button {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 92px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.reaction-button:hover,
.reaction-button.selected {
    border-color: #dce5dc;
    background: var(--bg-soft);
    transform: translateY(-2px);
}

.reaction-emoji {
    font-size: 2.45rem;
    line-height: 1;
}

.reaction-count {
    color: #8a90aa;
    font-size: 15px;
    font-weight: 800;
}

@media (min-width: 761px) {
    .article-page.article-clean {
        background: #f7f8fb;
    }

    .article-reading-card {
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .article-clean .clean-breadcrumb {
        width: 100%;
        margin: 0 0 18px;
        padding: 0;
        border-bottom: 1px solid var(--line);
    }

    .article-clean .article-header {
        padding-top: 2px;
    }

    .article-clean .article-header h1 {
        font-size: clamp(2.3rem, 3.5vw, 3rem);
    }
}

.article-clean .tag-list {
    margin: 0 0 14px;
}

.article-clean .share-box {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.article-clean .related-posts,
.article-clean .comments {
    width: min(1040px, 100%);
    margin-top: 46px;
}

.article-clean .comments {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.article-clean .comment {
    background: var(--bg-soft);
}

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

.comment {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.comment time {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.comment-form,
.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

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

.contact-info {
    align-self: start;
}

.prose {
    font-size: 18px;
    line-height: 1.78;
}

.prose h2 {
    color: var(--heading);
}

.ad-wrap {
    margin-top: 18px;
}

.ad-slot {
    width: 100%;
    min-height: 96px;
    margin: 22px 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ad-slot[data-size="300x250"] {
    min-height: 250px;
}

.ad-slot[data-size="320x100"] {
    min-height: 100px;
}

.ad-placeholder {
    width: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    border: 1px dashed #b9c8bf;
    border-radius: var(--radius);
    background: #f4f7f4;
    color: #6d7b72;
    font-size: 13px;
    font-family: var(--font-sans);
}

.grid-ad {
    grid-column: 1 / -1;
}

.article-ad {
    width: min(780px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.ad-sidebar {
    margin: 0;
}

.site-footer {
    background: #17211c;
    color: #dce5df;
    padding: 42px 0 24px;
}

.site-footer a {
    display: block;
    color: #e8f0eb;
    margin: 6px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 28px;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand small,
.site-footer p {
    color: #b8c7be;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #b8c7be;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1025px) {
    .hide-desktop {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hide-tablet {
        display: none;
    }
}

@media (max-width: 1200px) {
    .header-top-inner {
        position: relative;
        min-height: 82px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 12px;
    }

    .header-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 35;
        display: block;
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        width: 40px;
        height: 40px;
    }

    .main-nav {
        position: absolute;
        top: 8px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - 100px);
        overflow: auto;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow);
        white-space: normal;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: var(--radius);
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: var(--bg-soft);
    }
}

@media (max-width: 1024px) {
    .header-top-inner {
        min-height: 82px;
    }

    .header-actions {
        gap: 18px;
    }

    .featured-post,
    .layout-with-sidebar,
    .article-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .toc-card {
        position: static;
    }

    .article-layout {
        gap: 18px;
    }

    .toc-card {
        width: min(780px, 100%);
        margin: 0 auto;
    }

    .compact-grid,
    .category-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pagination-enhanced {
        grid-template-columns: 1fr;
    }

    .pagination-status {
        text-align: center;
    }

    .pagination-jump {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .container,
    .narrow {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .site-header.topbar-stuck {
        padding-top: 0;
    }

    .site-header.topbar-stuck .header-top {
        position: static;
        box-shadow: none;
    }

    .header-top-inner {
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
    }

    .site-logo {
        min-width: 0;
    }

    .site-logo img {
        width: min(178px, 48vw);
        max-height: 50px;
    }

    .header-actions {
        gap: 4px;
    }

    .theme-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        justify-content: center;
        padding: 3px;
    }

    .theme-toggle button {
        display: none;
        width: 32px;
        height: 32px;
    }

    html[data-theme="light"] .theme-toggle button[data-theme-value="dark"],
    html[data-theme="dark"] .theme-toggle button[data-theme-value="light"] {
        display: inline-grid;
    }

    .theme-toggle button[data-theme-value="dark"],
    .theme-toggle button[data-theme-value="light"] {
        background: transparent;
        color: #596070;
    }

    .header-popular-link {
        display: none;
    }

    .header-icon-button {
        width: 34px;
        height: 34px;
    }

    .header-icon-button svg {
        width: 22px;
        height: 22px;
    }

    .search-panel {
        padding-top: 84px;
    }

    .search-panel-card {
        padding: 16px;
    }

    .search-panel-card > div {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .search-panel-card button[type="submit"] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .main-nav {
        left: 14px;
        right: 14px;
        max-height: calc(100vh - 92px);
    }

    .brand small {
        display: none;
    }

    .featured-section {
        padding: 22px 0;
    }

    .featured-copy h1,
    .article-header h1 {
        font-size: 2rem;
    }

    .post-grid,
    .compact-grid,
    .category-archive-grid,
    .form-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .category-archive-header {
        padding: 36px 0 30px;
    }

    .category-archive-header .archive-description {
        font-size: 16px;
    }

    .category-posts-section {
        padding: 34px 0 42px;
    }

    .pagination-enhanced {
        padding: 13px;
    }

    .pagination-pages {
        gap: 5px;
    }

    .pagination-direction {
        min-width: 82px;
        padding: 0 9px;
        font-size: 12px;
    }

    .pagination-number {
        min-width: 37px;
        height: 37px;
    }

    .category-seo-section {
        padding: 12px 0 48px;
    }

    .category-seo-article {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .category-seo-content {
        font-size: 17px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .search-form,
    .newsletter form,
    .wide-search {
        flex-direction: column;
    }

    .article-content,
    .prose {
        font-size: 17px;
        line-height: 1.75;
    }

    .article-cover img {
        aspect-ratio: 16 / 11;
    }

    .article-clean .article-shell {
        width: min(100% - 28px, 960px);
        padding-top: 22px;
    }

    .article-reading-card {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .article-clean .article-header h1 {
        font-size: 2rem;
    }

    .article-upgraded .article-hero-header {
        margin-bottom: 14px;
    }

    .article-social-share {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        margin: 0 auto 18px;
        padding: 0 0 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .article-social-share::-webkit-scrollbar {
        display: none;
    }

    .article-social-share-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 7px;
        box-shadow: 0 8px 16px rgba(27, 40, 33, 0.1);
    }

    .article-social-share-link img {
        width: 19px;
        height: 19px;
    }

    .reaction-card {
        margin-top: 30px;
    }

    .reaction-card h2 {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .reaction-options {
        grid-template-columns: repeat(5, minmax(58px, 1fr));
        gap: 6px;
        overflow-x: auto;
        padding: 14px 10px;
    }

    .reaction-button {
        min-height: 76px;
    }

    .reaction-emoji {
        font-size: 2rem;
    }

    .article-end-panel {
        gap: 16px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .article-share-mini {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-clean .share-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .hide-mobile {
        display: none;
    }
}

.article-upgraded .article-hero-header {
    width: 100%;
    margin: 10px 0 28px;
}

.article-share-panel svg,
.comment-login-actions svg,
.comment-form-foot button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.article-tags-row {
    width: min(920px, 100%);
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags-row a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #d8e3dd;
    border-radius: 999px;
    background: #f8fbf9;
    color: var(--accent);
    font-size: 14px;
    font-weight: 850;
}

.article-reaction-card {
    box-shadow: 0 12px 28px rgba(27, 40, 33, 0.06);
}

.reaction-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eef7f3;
    color: var(--accent);
}

.reaction-icon svg {
    width: 23px;
    height: 23px;
}

.reaction-button span:not(.reaction-icon) {
    color: var(--heading);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
}

.article-share-panel > span,
.article-share-panel a,
.article-share-panel button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-related-strip,
.community-comments {
    width: min(1040px, 100%);
    margin: 42px auto 0;
}

.article-section-title {
    margin-bottom: 16px;
}

.article-section-title span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
}

.article-section-title h2 {
    margin: 3px 0 0;
    color: var(--heading);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    line-height: 1.2;
}

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

.related-mini-card {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--heading);
}

.related-mini-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.related-mini-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.related-mini-card strong {
    font-size: 1rem;
    line-height: 1.3;
}

.article-related-sidebar {
    position: static;
    display: grid;
    gap: 16px;
    align-self: start;
    padding: 18px;
    border: 1px solid #e6ece8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(27, 40, 33, .06);
}

.article-related-sidebar h2 {
    margin: 0;
    padding-left: 14px;
    border-left: 6px solid #ff6161;
    color: var(--heading);
    font-size: 1.35rem;
    line-height: 1.2;
}

.sidebar-related-card {
    display: grid;
    gap: 9px;
    overflow: hidden;
    border: 1px solid #edf1ef;
    border-radius: 10px;
    background: #fff;
    color: var(--heading);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sidebar-related-card:hover {
    border-color: #dce8e2;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(27, 40, 33, .08);
}

.sidebar-related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.sidebar-related-card span {
    padding: 0 16px;
    color: #ff6161;
    font-size: 12px;
    font-weight: 850;
}

.sidebar-related-card strong {
    padding: 0 16px;
    font-size: 1.24rem;
    line-height: 1.25;
}

.sidebar-related-card p {
    margin: 0;
    padding: 0 16px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}

.sidebar-related-card small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 0 16px 16px;
    color: #9aa3b2;
    font-size: 13px;
    font-style: normal;
}

.sidebar-related-card i {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-style: normal;
}

.sidebar-related-card svg {
    width: 17px;
    height: 17px;
}

.comments-panel {
    border: 1px solid #dfe6e2;
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.comments-panel-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 16px 22px;
    color: #fff;
    background: linear-gradient(135deg, #225f50 0%, #5d42d9 100%);
}

.comments-panel-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
}

.comments-panel-icon svg {
    width: 25px;
    height: 25px;
}

.comments-panel-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.comments-panel-header p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.35;
}

.comments-panel-header strong {
    min-width: 44px;
    text-align: right;
    font-size: 1.1rem;
}

.community-comment-form {
    margin: 0;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfb;
}

.comment-compose {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.comment-avatar,
.profile-avatar {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #edf8f3, #f7f1ff);
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border: 1px solid #d6e3dc;
    font-size: 14px;
}

.comment-compose label {
    display: grid;
    gap: 8px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 850;
}

.comment-compose textarea {
    min-height: 116px;
    resize: vertical;
    border: 2px solid #cfd9d3;
    background: #fff;
    line-height: 1.55;
}

.comment-compose textarea:focus {
    border-color: #5d42d9;
    outline: 3px solid rgba(93, 66, 217, .14);
}

.comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-left: 58px;
}

.comment-form-foot small {
    color: #d14b41;
    font-size: 13px;
    font-weight: 750;
}

.comment-form-foot small.is-ok {
    color: var(--accent);
}

.comment-form-foot button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 134px;
    min-height: 46px;
}

.comment-login-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfb;
}

.comment-login-card > span {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eef7f3;
    color: var(--accent);
}

.comment-login-card > span svg {
    width: 24px;
    height: 24px;
}

.comment-login-card h3 {
    margin: 0 0 4px;
    color: var(--heading);
    font-size: 1.05rem;
}

.comment-login-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.comment-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.comment-login-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--heading);
    font-size: 14px;
    font-weight: 850;
}

.comment-login-actions a:first-child {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.community-comments .comment-list {
    padding: 20px 22px 22px;
}

.community-comments .comment {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.community-comments .comment:last-child {
    border-bottom: 0;
}

.comment-body header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-body strong {
    color: var(--heading);
    font-size: 1rem;
    line-height: 1.2;
}

.comment-body em {
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef7f3;
    color: var(--accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.comment-body time {
    color: var(--muted);
    font-size: 13px;
}

.comment-body p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.comments-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 32px 18px;
    color: var(--muted);
    text-align: center;
}

.comments-empty svg {
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.comments-empty strong {
    color: var(--heading);
    font-size: 1.05rem;
}

.account-page {
    padding: 54px 0 68px;
    background: var(--bg-soft);
}

.account-shell {
    display: grid;
    place-items: center;
}

.account-card,
.profile-summary {
    width: min(620px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 48px rgba(27, 40, 33, 0.07);
}

.account-card {
    padding: 28px;
}

.account-kicker {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.account-card h1,
.account-card h2,
.profile-summary h1 {
    margin: 6px 0 10px;
    color: var(--heading);
    line-height: 1.15;
}

.account-card h1 {
    font-size: clamp(1.9rem, 4vw, 2.45rem);
}

.account-card h2,
.profile-summary h1 {
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.account-card p,
.profile-summary p,
.account-switch {
    color: var(--muted);
}

.account-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.account-form label {
    display: grid;
    gap: 7px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 850;
}

.account-form input,
.account-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    background: #fff;
    color: var(--text);
}

.account-form input:focus,
.account-form textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(47, 111, 94, .14);
}

.account-form button,
.profile-logout,
.profile-admin-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 900;
}

.account-form button {
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

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

.account-switch {
    margin-top: 18px;
    font-size: 15px;
}

.account-switch a {
    font-weight: 900;
}

.profile-shell {
    grid-template-columns: 320px minmax(0, 620px);
    align-items: start;
    justify-content: center;
    gap: 22px;
}

.profile-summary {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border: 1px solid #d6e3dc;
    font-size: 1.4rem;
}

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

.profile-stats span {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 14px;
}

.profile-stats strong {
    display: block;
    color: var(--heading);
    font-size: 1.4rem;
    line-height: 1.1;
}

.profile-admin-link {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.profile-logout {
    width: 100%;
    border: 1px solid #e4cbc2;
    background: #fff6f2;
    color: #b65d3d;
    cursor: pointer;
}

.auth-modal[hidden] {
    display: none;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 38, .72);
}

.auth-dialog {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    max-height: min(720px, calc(100vh - 32px));
    overflow: auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.auth-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #071226;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #eef1f4;
}

.auth-tabs button {
    min-height: 72px;
    border: 0;
    border-top: 4px solid transparent;
    background: #fff;
    color: #071226;
    font: inherit;
    font-size: 17px;
    font-weight: 850;
    cursor: pointer;
}

.auth-tabs button.active {
    border-top-color: #ff6161;
    background: #f9fafc;
}

.auth-panel {
    display: none;
    gap: 16px;
    padding: 28px 34px 34px;
}

.auth-panel.active {
    display: grid;
}

.auth-panel label {
    display: grid;
    gap: 7px;
    color: #6d7686;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.auth-panel input {
    width: 100%;
    min-height: 58px;
    border: 2px solid #d8dde5;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: #071226;
    font: inherit;
    font-size: 16px;
}

.auth-panel input:focus {
    border-color: #0b2d7b;
    outline: 3px solid rgba(11, 45, 123, .12);
}

.password-input {
    position: relative;
    display: block;
}

.password-input input {
    padding-right: 50px;
}

.password-input button {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #071226;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-input svg {
    width: 20px;
    height: 20px;
}

.auth-submit {
    width: min(190px, 100%);
    min-height: 54px;
    justify-self: center;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: #0b2d7b;
    color: #fff;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 900px) {
    .article-detail-grid,
    .article-related-grid,
    .profile-shell {
        grid-template-columns: 1fr;
    }

    .article-related-sidebar {
        position: static;
        margin-top: 34px;
    }

    .profile-summary {
        width: min(620px, 100%);
    }

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

    .comment-login-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .article-tags-row,
    .article-related-strip,
    .community-comments {
        width: 100%;
    }

    .article-action-bar {
        width: calc(100% - 12px);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 0;
        gap: 4px;
        overflow: visible;
        margin: 8px auto 22px;
        padding: 6px;
        border-radius: 12px;
    }

    .article-action-reactions,
    .article-action-save {
        display: contents;
    }

    .article-action-button {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        flex-direction: column;
        gap: 3px;
        padding: 6px 2px;
        border-radius: 10px;
        white-space: normal;
        box-shadow: none;
        transform: none;
    }

    .article-action-button i {
        width: 30px;
        height: 30px;
    }

    .article-action-button svg {
        width: 17px;
        height: 17px;
    }

    .article-action-button span {
        width: 100%;
        line-height: 1.05;
        text-align: center;
    }

    .article-action-button strong {
        font-size: 12px;
    }

    .article-action-button em {
        display: block;
        overflow-wrap: anywhere;
        font-size: 9.5px;
        line-height: 1.05;
    }

    .article-action-status {
        display: none;
    }

    .article-related-sidebar {
        gap: 14px;
    }

    .sidebar-related-card strong {
        font-size: 1.08rem;
    }

    .reaction-icon {
        width: 38px;
        height: 38px;
    }

    .comments-panel-header {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .comments-panel-header strong {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
    }

    .community-comment-form,
    .community-comments .comment-list {
        padding: 16px 14px;
    }

    .comment-form-foot {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
    }

    .comment-form-foot button {
        width: 100%;
    }

    .comment-compose,
    .community-comments .comment {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .comment-avatar {
        width: 38px;
        height: 38px;
    }

    .account-page {
        padding: 30px 0 46px;
    }

    .account-card,
    .profile-summary {
        padding: 20px;
    }

    .auth-modal {
        align-items: start;
        padding: 26px 18px;
    }

    .auth-modal-close {
        top: -16px;
        right: -10px;
        width: 46px;
        height: 46px;
    }

    .auth-panel {
        padding: 24px 20px 28px;
    }

    .auth-tabs button {
        min-height: 64px;
    }

    .account-form-grid,
    .profile-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .article-page.article-clean {
        background: #f5f7f6;
    }

    .article-clean .article-shell {
        width: min(1500px, calc(100% - 64px));
        padding: 30px 0 76px;
    }

    .article-reading-card {
        background: transparent;
    }

    .article-clean .clean-breadcrumb {
        margin-bottom: 28px;
        padding: 0 0 15px;
        border-bottom-color: #dfe6e2;
        color: #718078;
        font-size: 13px;
    }

    .article-clean .article-header {
        max-width: 1120px;
        margin: 0 0 22px;
    }

    .article-clean .article-header h1 {
        max-width: 1080px;
        margin: 0 0 16px;
        color: #101b16;
        font-size: clamp(2.55rem, 3.35vw, 3.75rem);
        line-height: 1.07;
    }

    .article-clean .article-header p {
        max-width: 860px;
        color: #617068;
        font-size: 1.17rem;
        line-height: 1.7;
    }

    .article-social-share {
        gap: 7px;
        margin-bottom: 30px;
    }

    .article-social-share-link {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        box-shadow: 0 7px 16px rgba(23, 36, 29, .09);
    }

    .article-social-share-link img {
        width: 18px;
        height: 18px;
    }

    .article-clean .compact-toc {
        width: min(1060px, 100%);
        margin: 0 0 30px;
    }

    .article-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
        gap: 38px;
    }

    .article-detail-main {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .article-detail-main .article-cover {
        overflow: hidden;
        border: 1px solid #dfe7e2;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(28, 43, 35, .1);
    }

    .article-detail-main .article-cover img {
        aspect-ratio: 16 / 8.35;
        border-radius: 0;
    }

    .article-detail-main .article-cover figcaption {
        padding: 10px 16px;
        color: #748078;
        font-size: 12px;
    }

    .article-action-bar {
        width: calc(100% - 40px);
        min-height: 76px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        margin: 20px auto 32px;
        padding: 8px;
        border-color: #dfe7e2;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 14px 32px rgba(28, 43, 35, .1);
    }

    .article-action-reactions,
    .article-action-save {
        display: contents;
    }

    .article-action-button {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        gap: 9px;
        padding: 7px 10px;
        border: 0;
        border-right: 1px solid #e8edea;
        border-radius: 0;
    }

    .article-action-button.share {
        border-right: 0;
    }

    .article-action-button i {
        width: 35px;
        height: 35px;
        flex: 0 0 auto;
    }

    .article-action-button:hover,
    .article-action-button.selected {
        border-color: #e8edea;
        border-radius: 10px;
        transform: none;
        box-shadow: none;
    }

    .article-action-button strong {
        font-size: 14px;
    }

    .article-action-button em {
        font-size: 11px;
    }

    .article-action-status {
        right: 10px;
        bottom: -24px;
    }

    .article-detail-main .article-layout {
        width: 100%;
        padding: 58px clamp(48px, 6vw, 82px);
        border: 1px solid #e1e8e4;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 14px 36px rgba(28, 43, 35, .065);
    }

    .article-clean .article-content {
        max-width: 840px;
        margin: 0 auto;
        color: #26312b;
        font-size: 18.5px;
        line-height: 1.86;
    }

    .article-clean .article-content h2 {
        margin-top: 50px;
        color: #14221b;
        font-size: 1.75rem;
        line-height: 1.28;
    }

    .article-clean .article-content h3 {
        color: #1c2b23;
        line-height: 1.35;
    }

    .article-clean .article-content img {
        border-radius: 12px;
    }

    .article-detail-main .article-tags-row,
    .article-detail-main .article-end-panel,
    .article-detail-main .community-comments {
        width: 100%;
    }

    .article-tags-row {
        gap: 8px;
        margin-top: 26px;
    }

    .article-tags-row a {
        border-color: #dce6e0;
        background: #fff;
    }

    .article-end-panel {
        margin-top: 26px;
        padding: 20px 22px;
        border: 1px solid #e1e8e4;
        border-radius: 12px;
        background: #fff;
    }

    .article-related-sidebar {
        gap: 18px;
        padding: 2px 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .article-related-sidebar h2 {
        padding: 0 0 14px 16px;
        border-bottom: 1px solid #dfe6e2;
        border-left-width: 4px;
        font-size: 1.45rem;
    }

    .sidebar-related-card {
        gap: 8px;
        border-color: #e0e7e3;
        border-radius: 12px;
        box-shadow: 0 10px 26px rgba(28, 43, 35, .055);
    }

    .sidebar-related-card:hover {
        border-color: #cbdad2;
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(28, 43, 35, .1);
    }

    .sidebar-related-card img {
        aspect-ratio: 16 / 9;
        border-radius: 11px 11px 0 0;
    }

    .sidebar-related-card span {
        padding-top: 4px;
        color: #2b7966;
        font-size: 11px;
        text-transform: uppercase;
    }

    .sidebar-related-card strong {
        font-size: 1.12rem;
        line-height: 1.35;
    }

    .sidebar-related-card p {
        color: #647169;
        font-size: 13.5px;
        line-height: 1.55;
    }

    .sidebar-related-card small {
        margin-top: 2px;
        padding-top: 10px;
        border-top: 1px solid #edf1ef;
    }

    .community-comments {
        margin-top: 34px;
    }

    .comments-panel {
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(28, 43, 35, .055);
    }
}

.site-footer {
    padding: 52px 0 0;
    border-top: 1px solid #dce3e8;
    background: #fbfcfd;
    color: #233047;
}

.site-footer .container {
    width: min(1480px, calc(100% - 64px));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.12fr 1.12fr .88fr 1.08fr;
    gap: 0;
}

.footer-column {
    min-width: 0;
    padding: 0 32px 42px;
    border-left: 1px solid #dce3e8;
}

.footer-column:first-child {
    padding-left: 0;
    border-left: 0;
}

.footer-column:last-child {
    padding-right: 0;
}

.site-footer .footer-column h2 {
    margin: 0 0 18px;
    color: #0d1d39;
    font-size: 1.38rem;
    line-height: 1.2;
}

.footer-column nav {
    display: grid;
    gap: 8px;
}

.site-footer .footer-column a {
    display: inline;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    color: #14326d;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .16s ease, transform .16s ease;
}

.site-footer .footer-column a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.site-footer .footer-all-link {
    margin-top: 5px;
    color: var(--accent);
    font-weight: 900;
}

.footer-contact {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dce3e8;
}

.site-footer .footer-contact a {
    color: #536172;
    font-size: 14px;
}

.footer-bottom {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid #dce3e8;
    color: #657083;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    width: 170px;
    height: auto;
    max-height: 48px;
}

.site-footer .footer-bottom p {
    margin: 0;
    color: #657083;
    font-size: 14px;
}

.footer-bottom > div {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}

.site-footer .footer-bottom a {
    display: inline;
    margin: 0;
    color: #14326d;
}

.legal-page-heading {
    width: min(1120px, calc(100% - 40px));
}

.legal-page-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-page-heading h1 {
    max-width: 900px;
}

.legal-page-shell {
    width: min(1120px, calc(100% - 40px));
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.legal-page-nav {
    display: grid;
    gap: 4px;
    padding-right: 24px;
    border-right: 1px solid var(--line);
}

.legal-page-nav strong {
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 15px;
}

.legal-page-nav a {
    padding: 9px 10px;
    border-radius: 6px;
    color: #5d6962;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.legal-page-nav a:hover,
.legal-page-nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.legal-prose {
    min-width: 0;
    max-width: 790px;
    color: #354139;
}

.legal-prose .page-lead {
    margin-top: 0;
    color: #243129;
    font-size: 1.15rem;
    line-height: 1.75;
}

.legal-prose h2 {
    margin: 42px 0 12px;
    font-size: 1.5rem;
    line-height: 1.28;
}

.legal-prose h2:first-of-type {
    margin-top: 32px;
}

.legal-prose p,
.legal-prose li {
    line-height: 1.82;
}

.legal-prose ul {
    padding-left: 22px;
}

.legal-prose li + li {
    margin-top: 7px;
}

.legal-notice {
    margin: 24px 0 8px;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    background: #f1f7f4;
    color: #354139;
    font-size: 15px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.legal-prose table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-prose th,
.legal-prose td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-prose th {
    background: #f3f6f4;
    color: var(--heading);
}

.legal-prose tr:last-child td {
    border-bottom: 0;
}

.contact-page {
    background: #f7f9f8;
}

.contact-page .contact-grid {
    width: min(1120px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 28px;
    align-items: start;
}

.contact-form-card,
.contact-page .contact-info {
    margin: 0;
    padding: 30px;
    border: 1px solid #dfe7e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(28, 43, 35, .055);
}

.contact-form-card > div > span,
.contact-page .contact-info > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-form-card h2,
.contact-page .contact-info h2 {
    margin: 4px 0 8px;
    color: var(--heading);
    font-size: 1.5rem;
}

.contact-form-card > div > p,
.contact-page .contact-info > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 15px;
}

.contact-form-card label {
    display: grid;
    gap: 7px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 850;
}

.contact-form-card label small {
    color: var(--muted);
    font-weight: 500;
}

.contact-privacy-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.contact-page .contact-info dl {
    display: grid;
    gap: 0;
    margin: 22px 0;
}

.contact-page .contact-info dl div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contact-page .contact-info dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.contact-page .contact-info dd {
    margin: 4px 0 0;
    color: var(--heading);
    font-weight: 750;
}

.legal-consent {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 9px !important;
    text-transform: none !important;
}

.account-form .legal-consent input,
.auth-panel .legal-consent input {
    appearance: auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    border: initial;
    border-radius: 3px;
    accent-color: var(--accent);
}

.legal-consent span {
    color: #4e5b53;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.legal-consent a,
.legal-consent-note a {
    color: var(--accent);
    font-weight: 850;
}

.legal-consent-note {
    margin: -5px 0 0 29px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-column {
        padding: 0 28px 38px;
    }

    .footer-column:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .footer-column:nth-child(even) {
        padding-right: 0;
        border-left: 1px solid #dce3e8;
    }

    .footer-column:nth-child(n+3) {
        padding-top: 34px;
        border-top: 1px solid #dce3e8;
    }

    .legal-page-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-page-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 0 22px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .legal-page-nav strong {
        grid-column: 1 / -1;
    }

    .legal-prose {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .site-footer {
        padding-top: 38px;
    }

    .site-footer .container {
        width: min(100% - 28px, 1180px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column,
    .footer-column:first-child,
    .footer-column:nth-child(odd),
    .footer-column:nth-child(even),
    .footer-column:nth-child(n+3) {
        padding: 25px 0;
        border-top: 1px solid #dce3e8;
        border-left: 0;
    }

    .footer-column:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .site-footer .footer-column h2 {
        font-size: 1.2rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .footer-bottom > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .legal-page-heading,
    .legal-page-shell,
    .contact-page .contact-grid {
        width: min(100% - 28px, 1180px);
    }

    .legal-page-nav {
        grid-template-columns: 1fr;
    }

    .legal-prose .page-lead {
        font-size: 1.05rem;
    }

    .legal-prose h2 {
        margin-top: 34px;
        font-size: 1.3rem;
    }

    .contact-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card,
    .contact-page .contact-info {
        padding: 22px;
    }
}

@media (max-width: 380px) {
    .header-top-inner {
        gap: 6px;
    }

    .site-logo img {
        width: min(140px, 44vw);
    }

    .theme-toggle {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .theme-toggle button {
        width: 28px;
        height: 28px;
    }
}

.home-redesign {
    background: var(--bg);
}

.home-showcase {
    padding: 24px 0 42px;
    border-bottom: 1px solid #e6ebe8;
    background: #f5f7f8;
}

.home-showcase-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.home-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.home-section-header h1,
.home-section-header h2 {
    max-width: 860px;
    margin: 4px 0 0;
    color: var(--heading);
    line-height: 1.13;
}

.home-section-header h1 {
    font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.home-section-header h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.home-eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-slider-controls {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.home-slider-controls button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d9e1dd;
    border-radius: 50%;
    background: #fff;
    color: #243129;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.home-slider-controls button:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.home-slider-controls svg,
.home-section-link svg {
    width: 19px;
    height: 19px;
}

.home-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 54px) / 4);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 0 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-slider-track::-webkit-scrollbar,
.home-category-track::-webkit-scrollbar {
    display: none;
}

.home-slider-card {
    min-width: 0;
    height: clamp(430px, 34vw, 540px);
    overflow: hidden;
    border-radius: 16px;
    background: #20231f;
    scroll-snap-align: start;
    box-shadow: 0 16px 34px rgba(27, 40, 33, .1);
}

.home-slider-card > a {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    color: #fff;
}

.home-slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.home-slider-card:hover img {
    transform: scale(1.035);
}

.home-slider-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 10, .08) 18%, rgba(8, 13, 10, .22) 45%, rgba(8, 13, 10, .94) 100%);
}

.home-slider-category,
.home-slider-featured {
    position: absolute;
    top: 16px;
    z-index: 1;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.home-slider-category {
    left: 16px;
    background: rgba(255, 255, 255, .94);
    color: #26312b;
}

.home-slider-category::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    content: "";
}

.home-slider-featured {
    right: 16px;
    background: #ff6b35;
    color: #fff;
}

.home-slider-featured svg {
    width: 14px;
    height: 14px;
}

.home-slider-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    display: grid;
    gap: 9px;
}

.home-slider-copy strong {
    color: #fff;
    font-size: clamp(1.22rem, 1.55vw, 1.55rem);
    line-height: 1.22;
}

.home-slider-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-style: normal;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-slider-copy small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
}

.home-slider-copy small span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.home-slider-copy small svg {
    width: 15px;
    height: 15px;
}

.home-slider-progress {
    height: 3px;
    overflow: hidden;
    margin-top: 8px;
    border-radius: 999px;
    background: #dfe5e2;
}

.home-slider-progress span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--accent);
    transition: width .2s ease;
}

.home-categories {
    padding: 56px 0 60px;
    background: var(--bg);
    content-visibility: auto;
    contain-intrinsic-size: 620px;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.home-category-track {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 3vw, 46px);
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-category-item {
    width: 190px;
    flex: 0 0 190px;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: var(--heading);
    text-align: center;
    scroll-snap-align: start;
}

.home-category-image {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border: 1px solid #dbece4;
    border-radius: 34px;
    background: linear-gradient(135deg, #f5fcf8 0%, #e7f6ef 100%);
    color: var(--accent);
    box-shadow: 0 12px 28px rgba(24, 108, 74, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-category-item:nth-child(2n) .home-category-image {
    background: linear-gradient(135deg, #fff8f5 0%, #ffece3 100%);
    color: #d96236;
}

.home-category-item:nth-child(3n) .home-category-image {
    background: linear-gradient(135deg, #f2fbff 0%, #e3f3fb 100%);
    color: #28779a;
}

.home-category-item:hover .home-category-image {
    transform: translateY(-4px);
    border-color: rgba(24, 108, 74, .22);
    box-shadow: 0 18px 34px rgba(27, 40, 33, .12);
}

.home-category-image img {
    display: none;
}

.home-category-image svg {
    width: 58px;
    height: 58px;
}

.home-category-item strong {
    font-size: 15px;
    line-height: 1.25;
}

.home-category-item small {
    color: var(--muted);
    font-size: 12px;
}

.home-latest {
    padding: 62px 0;
    border-top: 1px solid #e5ebe7;
    background: #f7f9f8;
    content-visibility: auto;
    contain-intrinsic-size: 980px;
}

.home-latest .home-section-header {
    position: relative;
    justify-content: center;
    padding: 0 210px;
    text-align: center;
}

.home-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
}

.home-post-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    margin-top: 14px;
    border: 1px solid #dfe7e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(27, 40, 33, .075);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-post-card:hover {
    border-color: #cbdad2;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(27, 40, 33, .11);
}

.home-post-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10.2;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #edf6f2;
}

.home-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #edf6f2;
    color: var(--accent);
}

.home-image-placeholder svg {
    width: 54px;
    height: 54px;
}

.home-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-post-card:hover .home-post-card-image img {
    transform: scale(1.035);
}

.home-post-category {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 1;
    max-width: calc(100% - 34px);
    overflow: hidden;
    padding: 6px 17px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: 0 8px 18px rgba(27, 40, 33, .14);
}

.home-post-card:nth-child(3n+2) .home-post-category {
    background: #2c7fa7;
}

.home-post-card:nth-child(3n) .home-post-category {
    background: #b57b00;
}

.home-post-card-body {
    padding: 22px 22px 20px;
}

.home-post-card h3 {
    margin: 0 0 11px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.home-post-card h3 a,
.home-popular-grid h3 a {
    color: var(--heading);
}

.home-post-card h3 a:hover,
.home-popular-grid h3 a:hover {
    color: var(--accent);
}

.home-post-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-post-card-footer {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid #e1e8e4;
}

.home-post-author,
.home-post-stats,
.home-post-stats small {
    display: inline-flex;
    align-items: center;
}

.home-post-author {
    min-width: 0;
    gap: 9px;
    overflow: hidden;
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-post-author i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #ccd5d0;
    border-radius: 50%;
    background: #f7f9f8;
    color: var(--heading);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.home-post-stats {
    flex: 0 0 auto;
    gap: 13px;
}

.home-post-stats small {
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.home-post-stats small:last-child {
    color: #e8376c;
}

.home-post-stats svg {
    width: 15px;
    height: 15px;
}

.home-all-posts-link {
    position: absolute;
    right: 0;
    bottom: 2px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
}

.home-all-posts-link:hover {
    background: var(--accent-2);
    color: #fff;
}

.home-popular {
    padding: 58px 0 68px;
    background: var(--bg);
    content-visibility: auto;
    contain-intrinsic-size: 520px;
}

.home-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-popular-grid article {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 17px;
    padding: 25px 26px;
    border-left: 1px solid var(--line);
}

.home-popular-grid article:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-popular-grid article > span {
    color: #c9d1cc;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.home-popular-grid article > div > a {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-popular-grid h3 {
    margin: 6px 0 10px;
    font-size: 1.1rem;
    line-height: 1.32;
}

.home-popular-grid small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
}

.home-popular-grid small svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 1180px) {
    .home-slider-track {
        grid-auto-columns: calc((100% - 36px) / 3);
    }

    .home-category-track {
        justify-content: flex-start;
    }

}

@media (max-width: 900px) {
    .home-latest .home-section-header {
        align-items: center;
        flex-direction: column;
        padding: 0;
    }

    .home-all-posts-link {
        position: static;
    }

    .home-post-grid,
    .archive-posts-full .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-slider-track {
        grid-auto-columns: calc((100% - 18px) / 2);
    }

    .home-slider-card {
        height: 470px;
    }

}

@media (max-width: 700px) {
    .home-showcase {
        padding: 26px 0 32px;
    }

    .home-section-header {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .home-section-header h1 {
        font-size: 1.7rem;
    }

    .home-section-header h2 {
        font-size: 1.55rem;
    }

    .home-slider-controls {
        display: none;
    }

    .home-showcase-toolbar {
        display: none;
    }

    .home-slider-track {
        width: calc(100% + 14px);
        grid-auto-columns: 86%;
        gap: 12px;
        padding-right: 14px;
    }

    .home-slider-card {
        height: clamp(360px, 82vh, 430px);
        border-radius: 14px;
    }

    .home-slider-category,
    .home-slider-featured {
        top: 13px;
    }

    .home-slider-category {
        left: 13px;
    }

    .home-slider-featured {
        right: 13px;
    }

    .home-slider-copy {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .home-slider-copy strong {
        font-size: 1.25rem;
    }

    .home-categories,
    .home-latest,
    .home-popular {
        padding: 44px 0;
    }

    .home-category-track {
        width: calc(100% + 14px);
        justify-content: flex-start;
        gap: 16px;
        margin-right: -14px;
        padding-right: 14px;
    }

    .home-category-item {
        width: 136px;
        flex-basis: 136px;
    }

    .home-category-image {
        width: 96px;
        height: 96px;
        border-radius: 26px;
    }

    .home-category-item:nth-child(2n) .home-category-image {
        border-radius: 26px;
    }

    .home-post-grid,
    .archive-posts-full .post-grid {
        grid-template-columns: 1fr;
    }

    .home-post-card-body {
        padding: 20px;
    }

    .home-popular-grid {
        grid-template-columns: 1fr;
    }

    .home-popular-grid article,
    .home-popular-grid article:first-child {
        padding: 20px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-popular-grid article:first-child {
        border-top: 0;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #282b3d;
    --bg-soft: #2e3247;
    --surface: #34384f;
    --line: #4a506a;
    --text: #e2e5ef;
    --muted: #aeb5c9;
    --heading: #f7f8fc;
    --accent: #75c9ae;
    --accent-2: #ff946e;
    --accent-soft: #344d4d;
    --shadow: 0 14px 34px rgba(9, 11, 22, .24);
}

html[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

html[data-theme="dark"] ::selection {
    background: #537f78;
    color: #fff;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #8f97ae;
    opacity: 1;
}

html[data-theme="dark"] .theme-logo-light {
    display: none;
}

html[data-theme="dark"] .theme-logo-dark {
    display: block;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .header-top {
    border-color: var(--line);
    background: rgba(45, 48, 68, .96);
}

html[data-theme="dark"] .site-header.topbar-stuck .header-top {
    box-shadow: 0 12px 30px rgba(8, 10, 20, .28);
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .header-icon-button,
html[data-theme="dark"] .menu-toggle {
    color: #d9deeb;
}

html[data-theme="dark"] .main-nav a svg {
    color: #929bb3;
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .main-nav a:hover svg,
html[data-theme="dark"] .main-nav a.active svg,
html[data-theme="dark"] .header-icon-button:hover,
html[data-theme="dark"] .menu-toggle:hover {
    color: var(--accent);
}

html[data-theme="dark"] .theme-toggle {
    border-color: #565d78;
    background: #393d55;
}

html[data-theme="dark"] .theme-toggle button {
    color: #aeb6cc;
}

html[data-theme="dark"] .theme-toggle button.active[data-theme-value="dark"] {
    background: #68718e;
    color: #fff;
}

html[data-theme="dark"] .search-panel-backdrop,
html[data-theme="dark"] .auth-modal-backdrop {
    background: rgba(12, 14, 27, .72);
}

html[data-theme="dark"] .search-panel-card,
html[data-theme="dark"] .search-panel-card > div,
html[data-theme="dark"] .search-panel-close {
    border-color: var(--line);
    background: var(--surface);
    color: var(--heading);
}

html[data-theme="dark"] .search-panel-card {
    box-shadow: 0 24px 70px rgba(5, 7, 15, .42);
}

html[data-theme="dark"] .search-panel-card input {
    color: var(--heading);
}

html[data-theme="dark"] .notice {
    border-color: var(--line);
    background: var(--surface);
}

html[data-theme="dark"] .notice-success {
    border-color: #477765;
    background: #30483f;
    color: #d8f2e8;
}

html[data-theme="dark"] .notice-error {
    border-color: #865d63;
    background: #4b353e;
    color: #ffe0e2;
}

html[data-theme="dark"] .featured-section,
html[data-theme="dark"] .archive-header,
html[data-theme="dark"] .page-header,
html[data-theme="dark"] .account-page,
html[data-theme="dark"] .contact-page {
    border-color: var(--line);
    background: var(--bg-soft);
}

html[data-theme="dark"] .category-archive-header {
    background:
        radial-gradient(circle at 84% 24%, rgba(117, 201, 174, .12), transparent 28%),
        linear-gradient(135deg, #303449, #2b2f43);
}

html[data-theme="dark"] .category-archive-summary span {
    border-color: var(--line);
    background: rgba(52, 56, 79, .88);
}

html[data-theme="dark"] .featured-image,
html[data-theme="dark"] .post-card-image {
    border-color: var(--line);
    background: #3b4057;
}

html[data-theme="dark"] .post-card,
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .toc-card,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .related-mini-card,
html[data-theme="dark"] .reaction-card,
html[data-theme="dark"] .comment,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .profile-summary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

html[data-theme="dark"] .category-seo-section {
    border-color: var(--line);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

html[data-theme="dark"] .category-seo-article,
html[data-theme="dark"] .pagination-enhanced {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(5, 7, 15, .22);
}

html[data-theme="dark"] .category-seo-content blockquote,
html[data-theme="dark"] .category-seo-content .info-box {
    background: var(--bg-soft);
}

html[data-theme="dark"] .post-card h2 a,
html[data-theme="dark"] .compact-list a,
html[data-theme="dark"] .category-list a,
html[data-theme="dark"] .pagination a {
    color: var(--heading);
}

html[data-theme="dark"] .pagination a {
    border-color: var(--line);
    background: var(--surface);
}

html[data-theme="dark"] .pagination-number,
html[data-theme="dark"] .pagination-direction,
html[data-theme="dark"] .pagination-jump input {
    border-color: var(--line);
    background: var(--bg-soft);
    color: var(--heading);
}

html[data-theme="dark"] .pagination-number.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #17251f;
}

html[data-theme="dark"] .search-form input,
html[data-theme="dark"] .newsletter input,
html[data-theme="dark"] .wide-search input,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .comment-form input,
html[data-theme="dark"] .comment-form textarea,
html[data-theme="dark"] .account-form input,
html[data-theme="dark"] .account-form textarea {
    border-color: #555c78;
    background: #2b2f43;
    color: var(--heading);
}

html[data-theme="dark"] .ad-placeholder {
    border-color: #5c637c;
    background: #303449;
    color: #aeb5c9;
}

html[data-theme="dark"] .article-page,
html[data-theme="dark"] .article-page.article-clean,
html[data-theme="dark"] .article-reading-card {
    background: var(--bg);
}

html[data-theme="dark"] .article-clean .clean-breadcrumb {
    border-color: var(--line);
    color: var(--muted);
}

html[data-theme="dark"] .article-header h1,
html[data-theme="dark"] .article-clean .article-header h1,
html[data-theme="dark"] .article-clean .article-content h2,
html[data-theme="dark"] .article-clean .article-content h3,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3 {
    color: var(--heading);
}

html[data-theme="dark"] .article-header p,
html[data-theme="dark"] .article-clean .article-header p,
html[data-theme="dark"] .article-cover figcaption {
    color: var(--muted);
}

html[data-theme="dark"] .article-detail-main,
html[data-theme="dark"] .article-detail-main .article-cover {
    border-color: var(--line);
    background: transparent;
}

html[data-theme="dark"] .article-detail-main .article-cover {
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(7, 9, 18, .28);
}

html[data-theme="dark"] .article-detail-main .article-layout,
html[data-theme="dark"] .article-action-bar,
html[data-theme="dark"] .article-end-panel,
html[data-theme="dark"] .article-related-sidebar,
html[data-theme="dark"] .sidebar-related-card,
html[data-theme="dark"] .comments-panel {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(7, 9, 18, .2);
}

html[data-theme="dark"] .article-clean .article-content,
html[data-theme="dark"] .article-content,
html[data-theme="dark"] .sidebar-related-card p,
html[data-theme="dark"] .comment-body p {
    color: var(--text);
}

html[data-theme="dark"] .article-content th,
html[data-theme="dark"] .article-content blockquote,
html[data-theme="dark"] .article-content .info-box {
    border-color: var(--line);
    background: var(--bg-soft);
    color: var(--text);
}

html[data-theme="dark"] .article-action-button {
    border-color: var(--line);
    color: #b7bfd1;
}

html[data-theme="dark"] .article-action-button i {
    background: #3d425a;
    color: #adb6cb;
}

html[data-theme="dark"] .article-action-button strong {
    color: var(--heading);
}

html[data-theme="dark"] .article-action-button em {
    color: var(--muted);
}

html[data-theme="dark"] .article-action-button:hover,
html[data-theme="dark"] .article-action-button.selected {
    border-color: #5b637f;
    background: #3b4058;
}

html[data-theme="dark"] .article-action-button.like.selected i {
    background: #344d69;
}

html[data-theme="dark"] .article-action-button.dislike.selected i {
    background: #563c45;
}

html[data-theme="dark"] .article-action-button.save.selected i,
html[data-theme="dark"] .article-action-button.comment:hover i,
html[data-theme="dark"] .article-action-button.share:hover i {
    background: var(--accent-soft);
}

html[data-theme="dark"] .article-tags-row a,
html[data-theme="dark"] .article-share-mini a,
html[data-theme="dark"] .article-share-mini button,
html[data-theme="dark"] .comment-login-actions a {
    border-color: var(--line);
    background: #383d54;
    color: var(--heading);
}

html[data-theme="dark"] .article-clean .article-toggle-toc,
html[data-theme="dark"] .article-clean .compact-toc {
    border-color: var(--line);
    background: var(--surface);
}

html[data-theme="dark"] .article-related-sidebar h2,
html[data-theme="dark"] .sidebar-related-card small {
    border-color: var(--line);
}

html[data-theme="dark"] .sidebar-related-card:hover {
    border-color: #626b87;
    box-shadow: 0 16px 32px rgba(7, 9, 18, .3);
}

html[data-theme="dark"] .comments-panel-header {
    background: linear-gradient(135deg, #386b63 0%, #4e496f 100%);
}

html[data-theme="dark"] .community-comment-form,
html[data-theme="dark"] .comment-login-card {
    border-color: var(--line);
    background: #303449;
}

html[data-theme="dark"] .comment-avatar,
html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .comment-login-card > span,
html[data-theme="dark"] .reaction-icon,
html[data-theme="dark"] .comment-body em {
    border-color: #59617b;
    background: #3b4d50;
    color: var(--accent);
}

html[data-theme="dark"] .comment-compose textarea {
    border-color: #59617b;
    background: #292d41;
    color: var(--heading);
}

html[data-theme="dark"] .community-comments .comment {
    border-color: var(--line);
}

html[data-theme="dark"] .comment-login-actions a:first-child {
    border-color: var(--accent);
    background: var(--accent);
    color: #17251f;
}

html[data-theme="dark"] .profile-stats span {
    border-color: var(--line);
    background: #303449;
}

html[data-theme="dark"] .profile-logout {
    border-color: #75545c;
    background: #4a343d;
    color: #ffb8b8;
}

html[data-theme="dark"] .auth-dialog,
html[data-theme="dark"] .auth-modal-close,
html[data-theme="dark"] .auth-tabs button {
    border-color: var(--line);
    background: var(--surface);
    color: var(--heading);
}

html[data-theme="dark"] .auth-dialog {
    box-shadow: 0 24px 70px rgba(4, 5, 12, .52);
}

html[data-theme="dark"] .auth-tabs {
    border-color: var(--line);
}

html[data-theme="dark"] .auth-tabs button.active {
    border-top-color: var(--accent-2);
    background: #3b4058;
}

html[data-theme="dark"] .auth-panel label {
    color: #bbc1d1;
}

html[data-theme="dark"] .auth-panel input {
    border-color: #59617b;
    background: #292d41;
    color: var(--heading);
}

html[data-theme="dark"] .password-input button {
    color: #d9deeb;
}

html[data-theme="dark"] .auth-submit {
    background: var(--accent);
    color: #17251f;
}

html[data-theme="dark"] .site-footer {
    border-color: #474d65;
    background: #25283a;
    color: var(--text);
}

html[data-theme="dark"] .footer-column,
html[data-theme="dark"] .footer-contact,
html[data-theme="dark"] .footer-bottom {
    border-color: #474d65;
}

html[data-theme="dark"] .site-footer .footer-column h2 {
    color: var(--heading);
}

html[data-theme="dark"] .site-footer .footer-column a,
html[data-theme="dark"] .site-footer .footer-bottom a {
    color: #b9d8ff;
}

html[data-theme="dark"] .site-footer .footer-column a:hover,
html[data-theme="dark"] .site-footer .footer-all-link {
    color: var(--accent);
}

html[data-theme="dark"] .site-footer .footer-contact a,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .site-footer .footer-bottom p {
    color: var(--muted);
}

html[data-theme="dark"] .legal-page-nav,
html[data-theme="dark"] .legal-table-wrap,
html[data-theme="dark"] .legal-prose th,
html[data-theme="dark"] .legal-prose td {
    border-color: var(--line);
}

html[data-theme="dark"] .legal-page-nav a {
    color: #c4cad9;
}

html[data-theme="dark"] .legal-page-nav a:hover,
html[data-theme="dark"] .legal-page-nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

html[data-theme="dark"] .legal-prose,
html[data-theme="dark"] .legal-prose .page-lead,
html[data-theme="dark"] .legal-notice {
    color: var(--text);
}

html[data-theme="dark"] .legal-notice,
html[data-theme="dark"] .legal-prose th {
    background: #323d48;
}

html[data-theme="dark"] .legal-prose table {
    background: var(--surface);
}

html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .contact-page .contact-info {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(7, 9, 18, .2);
}

html[data-theme="dark"] .contact-page .contact-info dl div {
    border-color: var(--line);
}

html[data-theme="dark"] .legal-consent span {
    color: #c6ccda;
}

@media (max-width: 1200px) {
    html[data-theme="dark"] .main-nav {
        border-color: var(--line);
        background: var(--surface);
        box-shadow: 0 16px 36px rgba(7, 9, 18, .36);
    }

    html[data-theme="dark"] .main-nav a:hover,
    html[data-theme="dark"] .main-nav a.active {
        background: var(--accent-soft);
    }
}

@media (max-width: 1024px) {
    html[data-theme="dark"] .footer-column:nth-child(even),
    html[data-theme="dark"] .footer-column:nth-child(n+3) {
        border-color: #474d65;
    }
}

html[data-theme="dark"] .home-redesign,
html[data-theme="dark"] .home-categories,
html[data-theme="dark"] .home-popular {
    background: var(--bg);
}

html[data-theme="dark"] .home-showcase,
html[data-theme="dark"] .home-latest {
    border-color: var(--line);
    background: var(--bg-soft);
}

html[data-theme="dark"] .home-slider-controls button {
    border-color: var(--line);
    background: var(--surface);
    color: var(--heading);
}

html[data-theme="dark"] .home-slider-controls button:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #17251f;
}

html[data-theme="dark"] .home-slider-card {
    background: #1d2030;
    box-shadow: 0 16px 34px rgba(5, 7, 15, .3);
}

html[data-theme="dark"] .home-slider-progress {
    background: #454b63;
}

html[data-theme="dark"] .home-category-image {
    border-color: #515872;
    background: #344b4b;
}

html[data-theme="dark"] .home-image-placeholder {
    background: #344b4b;
}

html[data-theme="dark"] .home-category-item:nth-child(2n) .home-category-image {
    background: #51413f;
}

html[data-theme="dark"] .home-category-item:nth-child(3n) .home-category-image {
    background: #34495a;
}

html[data-theme="dark"] .home-category-item:hover .home-category-image {
    box-shadow: 0 16px 30px rgba(5, 7, 15, .28);
}

html[data-theme="dark"] .home-post-card {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(5, 7, 15, .2);
}

html[data-theme="dark"] .home-post-card:hover {
    border-color: #626b87;
    box-shadow: 0 12px 26px rgba(5, 7, 15, .28);
}

html[data-theme="dark"] .home-post-card-footer {
    border-color: var(--line);
}

html[data-theme="dark"] .home-post-author i {
    border-color: var(--line);
    background: var(--bg-soft);
}

html[data-theme="dark"] .home-popular-grid,
html[data-theme="dark"] .home-popular-grid article {
    border-color: var(--line);
}

html[data-theme="dark"] .home-popular-grid article > span {
    color: #69718a;
}

@media (max-width: 760px) {
    html[data-theme="dark"] .theme-toggle button[data-theme-value="dark"],
    html[data-theme="dark"] .theme-toggle button[data-theme-value="light"] {
        color: #d9deeb;
    }

    html[data-theme="dark"] .footer-column,
    html[data-theme="dark"] .footer-column:first-child,
    html[data-theme="dark"] .footer-column:nth-child(odd),
    html[data-theme="dark"] .footer-column:nth-child(even),
    html[data-theme="dark"] .footer-column:nth-child(n+3) {
        border-color: #474d65;
    }
}

/* Advanced search */
.search-page-header {
    padding: 52px 0 42px;
    background:
        radial-gradient(circle at 82% 18%, rgba(47, 111, 94, .13), transparent 28%),
        linear-gradient(135deg, var(--bg-soft), var(--surface));
}

.search-page-header .container {
    max-width: 1180px;
}

.search-page-intro {
    max-width: 760px;
    margin: 12px 0 0 !important;
    color: var(--muted) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.65;
}

.advanced-search-form {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) minmax(180px, .7fr) minmax(170px, .65fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(27, 40, 33, .07);
}

.advanced-search-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.advanced-search-form label > span {
    color: var(--heading);
    font-size: 12px;
    font-weight: 850;
}

.advanced-search-form input,
.advanced-search-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: var(--bg-soft);
    color: var(--heading);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.advanced-search-form input:focus,
.advanced-search-form select:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(47, 111, 94, .11);
}

.advanced-search-form button,
.search-reset {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 900;
}

.advanced-search-form button {
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.advanced-search-form button:hover {
    background: var(--accent-2);
}

.search-reset {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--heading);
}

.search-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-results-section {
    padding-top: 44px;
}

.search-results-heading {
    align-items: end;
}

.search-results-heading small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.search-result-grid mark {
    padding: 0 .12em;
    border-radius: 4px;
    background: #fff0a8;
    color: inherit;
}

.search-empty-state {
    padding: 44px;
    text-align: center;
}

.search-empty-state > p {
    max-width: 650px;
    margin: 10px auto 0;
}

.search-empty-icon {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 38px;
    line-height: 1;
}

.search-empty-state h3 {
    margin: 34px 0 18px;
    color: var(--heading);
}

.search-tips {
    max-width: 530px;
    margin: 24px auto 0;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    text-align: left;
}

.search-tips strong {
    color: var(--heading);
}

.search-tips ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.search-category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.search-category-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
}

.search-category-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-category-links span {
    min-width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
}

html[data-theme="dark"] .search-page-header {
    background:
        radial-gradient(circle at 82% 18%, rgba(95, 174, 148, .12), transparent 28%),
        linear-gradient(135deg, var(--bg-soft), var(--surface));
}

html[data-theme="dark"] .advanced-search-form,
html[data-theme="dark"] .search-tips,
html[data-theme="dark"] .search-category-links a {
    border-color: var(--line);
    background: var(--surface);
}

html[data-theme="dark"] .advanced-search-form input,
html[data-theme="dark"] .advanced-search-form select,
html[data-theme="dark"] .search-reset {
    border-color: var(--line);
    background: var(--bg-soft);
    color: var(--heading);
}

html[data-theme="dark"] .search-result-grid mark {
    background: #66551f;
    color: #fff2b4;
}

@media (max-width: 1080px) {
    .advanced-search-form {
        grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(160px, .75fr)) auto;
    }

    .search-reset {
        grid-column: 1 / -1;
        min-height: 40px;
    }
}

@media (max-width: 760px) {
    .search-page-header {
        padding: 36px 0 30px;
    }

    .advanced-search-form {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .advanced-search-form button,
    .search-reset {
        width: 100%;
    }

    .search-empty-state {
        padding: 30px 18px;
    }

    .search-result-grid {
        grid-template-columns: 1fr;
    }
}
