.content-site-body {
    min-width: 320px;
}

.content-site-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 26px;
    align-items: stretch;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 189, 93, 0.22), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(54, 184, 198, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.92), rgba(255, 247, 232, 0.82));
    box-shadow: var(--shadow);
}

.content-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.content-back,
.content-meta-row a {
    width: fit-content;
    color: var(--accent-deep);
    font-weight: 600;
}

.content-back:hover,
.content-meta-row a:hover {
    color: var(--accent);
}

.content-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-pills span,
.content-panel-label,
.content-inline-note {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 252, 246, 0.76);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
}

.content-hero h1,
.content-list-head h2,
.content-panel h2 {
    margin: 0;
    color: var(--accent-deep);
    letter-spacing: 0;
}

.content-hero h1 {
    max-width: 920px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
}

.content-hero p,
.content-panel p,
.content-list-head p,
.content-card p,
.content-feature-card p,
.content-feature-card li,
.content-card-meta,
.content-muted {
    color: var(--muted);
}

.content-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.content-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(121, 94, 52, 0.14);
}

.content-action-row,
.content-cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.content-ghost-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    color: var(--accent-deep);
    font-weight: 700;
}

.content-ghost-btn:hover {
    color: var(--accent);
    border-color: var(--line-strong);
}

.content-hero-card,
.content-panel,
.content-feature-card,
.content-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px) saturate(1.08);
}

.content-hero-card {
    overflow: hidden;
    min-height: 300px;
}

.article-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: clamp(16px, 1.8vw, 24px) clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 26px);
}

.article-detail-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.article-detail-hero .content-back {
    margin-top: -2px;
    color: rgba(124, 76, 17, 0.82);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.article-detail-hero h1 {
    max-width: none;
    font-size: clamp(26px, 2.45vw, 36px);
    line-height: 1.18;
}

.article-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    gap: clamp(22px, 2.4vw, 34px);
    align-items: start;
}

.article-cover-card {
    width: 100%;
    max-width: 400px;
    min-height: 0;
}

.article-detail-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding-top: 2px;
}

.article-detail-intro p {
    max-width: none;
    margin: 0;
    line-height: 1.85;
}

.article-detail-hero .content-cover-art {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    background: linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(249, 239, 216, 0.88));
}

.article-detail-hero .content-cover-art img {
    object-fit: contain;
    background: rgba(255, 252, 246, 0.72);
}

.article-detail-hero .content-cover-overlay {
    display: none;
}

.article-detail-hero .content-card-placeholder {
    min-height: 270px;
}

.content-category-panel {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(54, 184, 198, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 232, 0.78));
    box-shadow: var(--shadow);
}

.content-category-panel[hidden] {
    display: none;
}

.content-category-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.content-category-head h2 {
    margin: 10px 0 0;
    color: var(--accent-deep);
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.15;
}

.content-category-head p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.content-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(121, 94, 52, 0.14);
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.82);
    color: var(--accent-deep);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(68, 49, 18, 0.06);
}

.content-category-chip:hover,
.content-category-chip.is-active {
    border-color: rgba(193, 117, 34, 0.34);
    background: linear-gradient(135deg, rgba(255, 231, 175, 0.95), rgba(255, 252, 246, 0.96));
    color: var(--accent);
}

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

.sitemap-wide {
    grid-column: 1 / -1;
}

.sitemap-stat-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    min-height: 260px;
    padding: 24px;
    text-align: center;
}

.sitemap-stat-card strong {
    color: var(--accent-deep);
    font-size: clamp(46px, 7vw, 86px);
    line-height: 1;
}

.sitemap-stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sitemap-links a,
.sitemap-links span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(121, 94, 52, 0.12);
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.78);
    color: var(--accent-deep);
    font-weight: 700;
}

.sitemap-links a:hover {
    color: var(--accent);
    border-color: rgba(193, 117, 34, 0.3);
}

.content-card-placeholder,
.content-empty {
    display: grid;
    gap: 12px;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.content-empty {
    width: 100%;
    min-height: 180px;
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
}

.content-cover-art {
    position: relative;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

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

.content-cover-overlay {
    position: absolute;
    inset: auto 18px 18px 18px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(24, 19, 12, 0.06), rgba(24, 19, 12, 0.72));
    color: #fff;
}

.content-cover-overlay strong {
    font-size: 17px;
    line-height: 1.35;
}

.content-shell {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

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

.content-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.content-panel {
    padding: 22px;
}

.content-sidebar .content-panel {
    display: grid;
    gap: 14px;
}

.content-sidebar .content-panel-label {
    width: 100%;
    display: flex;
    min-height: 0;
    align-items: center;
    border: 1px solid rgba(121, 94, 52, 0.11);
    border-left: 4px solid rgba(193, 117, 34, 0.5);
    border-radius: 9px;
    padding: 8px 10px;
    background: rgba(255, 250, 239, 0.68);
    box-shadow: none;
    color: var(--accent-deep);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.content-sidebar .content-panel p {
    margin: 0;
    line-height: 1.75;
}

.content-sidebar .content-cta-stack {
    margin-top: 2px;
}

.content-panel h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.2;
}

.content-panel p {
    margin: 0;
}

.content-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.content-inline-note {
    border-radius: 999px;
}

.content-toc {
    display: grid;
    gap: 8px;
}

.content-toc a {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--accent-deep);
    background: rgba(255, 252, 246, 0.74);
    border: 1px solid rgba(121, 94, 52, 0.1);
    font-size: 14px;
    line-height: 1.5;
}

.content-toc a.level-3 {
    margin-left: 14px;
    font-size: 13px;
}

.content-toc a:hover {
    border-color: var(--line-strong);
    color: var(--accent);
}

.article-prose {
    padding: clamp(22px, 2.6vw, 34px);
    min-width: 0;
}

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

.article-prose h1,
.article-prose h2,
.article-prose h3 {
    color: var(--accent-deep);
    letter-spacing: 0;
    scroll-margin-top: 120px;
}

.article-prose h1 {
    font-size: 32px;
    line-height: 1.12;
}

.article-prose h2 {
    margin-top: 1.8em;
    margin-bottom: 0.65em;
    font-size: 30px;
    line-height: 1.18;
}

.article-prose h3 {
    margin-top: 1.45em;
    margin-bottom: 0.55em;
    font-size: 22px;
    line-height: 1.26;
}

.article-prose p,
.article-prose li,
.article-prose blockquote,
.article-prose figcaption,
.article-prose td,
.article-prose th {
    font-size: 17px;
    line-height: 1.95;
    color: #3d3428;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 1.1em;
    padding-left: 1.5em;
}

.article-prose a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-prose img {
    display: block;
    width: auto;
    max-width: min(100%, 720px);
    max-height: min(58vh, 520px);
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(121, 94, 52, 0.12);
    background: #fff;
    box-shadow: 0 18px 48px rgba(83, 58, 23, 0.12);
}

.article-prose figure {
    display: grid;
    justify-items: center;
    margin: 1.4em 0 1.8em;
}

.article-prose figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.article-prose video {
    display: block;
    width: min(100%, 720px);
    max-width: 100%;
    max-height: min(58vh, 520px);
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(121, 94, 52, 0.12);
    background: #fff;
    box-shadow: 0 18px 48px rgba(83, 58, 23, 0.12);
}

.article-lightbox-image {
    cursor: zoom-in;
}

.article-related {
    display: grid;
    gap: 14px;
}

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

.article-related-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(121, 94, 52, 0.12);
    background: rgba(255, 252, 246, 0.82);
    color: var(--accent-deep);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(121, 94, 52, 0.22);
    box-shadow: 0 18px 40px rgba(83, 58, 23, 0.1);
}

.article-related-card span {
    font-size: 12px;
    color: var(--muted);
}

.article-related-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.article-related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.article-prose blockquote {
    margin: 1.4em 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    background: rgba(255, 248, 232, 0.78);
}

.article-prose pre,
.article-prose code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.article-prose pre {
    overflow: auto;
    margin: 1.4em 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(121, 94, 52, 0.12);
    background: #fffdf8;
}

.article-prose code {
    padding: 0.18em 0.45em;
    border-radius: 8px;
    background: rgba(242, 189, 93, 0.15);
    color: var(--accent-deep);
}

.article-prose pre code {
    padding: 0;
    background: transparent;
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(121, 94, 52, 0.12);
    background: rgba(255, 255, 255, 0.88);
}

.article-prose th,
.article-prose td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(121, 94, 52, 0.08);
    text-align: left;
    vertical-align: top;
}

.article-prose th {
    color: var(--accent-deep);
    background: rgba(255, 248, 232, 0.82);
}

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

.content-toolbar-field {
    display: grid;
    gap: 8px;
}

.content-toolbar-field span {
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
}

.content-toolbar-field input,
.content-toolbar-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(121, 94, 52, 0.16);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 15px;
}

.content-toolbar-field input:focus,
.content-toolbar-field select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(184, 127, 25, 0.12);
}

.content-search-btn {
    width: fit-content;
}

.content-list-hero .content-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 22px;
}

.content-list-hero .content-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.content-list-hero .content-toolbar-field {
    min-width: 0;
}

.content-list-hero .content-toolbar-field:first-child {
    grid-column: 1 / -1;
}

.content-list-hero .content-search-btn {
    width: auto;
    min-height: 46px;
    align-self: end;
    padding: 0 20px;
    white-space: nowrap;
}

.content-list-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

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

.content-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.content-load-more-wrap[hidden] {
    display: none;
}

.content-load-more-btn {
    min-width: 180px;
    min-height: 44px;
    border: 1px solid rgba(193, 117, 34, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 231, 175, 0.96), rgba(255, 252, 246, 0.96));
    color: var(--accent-deep);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(68, 49, 18, 0.08);
}

.content-load-more-btn:hover {
    color: var(--accent);
    border-color: rgba(193, 117, 34, 0.42);
    box-shadow: var(--shadow);
}

.content-load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    box-shadow: none;
}

.content-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}

.content-list-hero .content-list-pagination {
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.content-list-hero .content-page-meta {
    flex: 1;
    text-align: center;
}

.content-page-btn {
    min-width: 92px;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent-deep);
    font-weight: 700;
    cursor: pointer;
}

.content-page-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.content-page-meta {
    color: var(--muted);
    font-size: 14px;
}

.content-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    gap: 18px;
    padding: 22px;
    margin-bottom: 18px;
}

.content-feature-copy,
.content-card-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.content-feature-card h2,
.content-card h3 {
    margin: 0;
    color: var(--accent-deep);
    letter-spacing: 0;
}

.content-feature-card h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
}

.content-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.content-card:hover,
.content-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.content-card-cover,
.content-feature-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255, 248, 232, 0.72);
}

.content-feature-cover {
    border-radius: 18px;
}

.content-card-cover img,
.content-feature-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-copy {
    padding: 18px;
}

.content-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.content-card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(121, 94, 52, 0.1);
    background: rgba(255, 252, 246, 0.78);
}

.content-feature-actions,
.content-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.content-card-actions .text-link,
.content-feature-actions .text-link {
    font-weight: 700;
}

.info-page-hero .content-action-row .text-link {
    align-self: center;
}

.info-hero-panel {
    display: grid;
    gap: 16px;
    height: 100%;
    padding: 22px;
}

.info-highlight-list,
.info-link-stack {
    display: grid;
    gap: 12px;
}

.info-highlight-card,
.info-link-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(121, 94, 52, 0.1);
    background: rgba(255, 252, 246, 0.78);
}

.info-highlight-card strong,
.info-link-card strong {
    color: var(--accent-deep);
    font-size: 15px;
}

.info-highlight-card p,
.info-link-card span {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.info-link-card:hover {
    border-color: var(--line-strong);
    color: inherit;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

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

    .content-sidebar {
        position: static;
        order: 2;
    }

    .content-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .article-cover-card {
        max-width: 420px;
    }

    .content-category-head {
        flex-direction: column;
        align-items: start;
    }

    .content-list-head {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 680px) {
    .content-site-page {
        gap: 20px;
    }

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

    .content-hero {
        padding: 20px;
        border-radius: 18px;
    }

    .content-hero h1 {
        font-size: 30px;
    }

    .article-detail-hero h1 {
        font-size: 28px;
    }

    .article-detail-hero-grid {
        gap: 16px;
    }

    .article-cover-card {
        max-width: 100%;
    }

    .article-detail-hero .content-card-placeholder {
        min-height: 180px;
    }

    .content-list-hero .content-toolbar {
        grid-template-columns: 1fr;
    }

    .content-list-hero .content-search-btn {
        width: 100%;
    }

    .content-list-hero .content-list-pagination {
        justify-content: center;
    }

    .content-panel,
    .article-prose,
    .content-feature-card {
        padding: 18px;
    }

    .content-list-grid {
        grid-template-columns: 1fr;
    }

    .content-hero-card,
    .content-cover-art {
        min-height: 220px;
    }

    .content-meta-row span {
        font-size: 13px;
    }

    .article-prose h2 {
        font-size: 26px;
    }

    .article-prose h3 {
        font-size: 20px;
    }

    .article-prose p,
    .article-prose li,
    .article-prose blockquote,
    .article-prose figcaption,
    .article-prose td,
    .article-prose th {
        font-size: 16px;
        line-height: 1.9;
    }
}
