:root {
    --ink: #071426;
    --muted: #627086;
    --line: #dfe6ef;
    --surface: #ffffff;
    --wash: #f4f7fa;
    --postion-blue: #245f9f;
    --postion-blue-dark: #12345a;
    --postion-button-blue: #5a6787;
    --postion-button-blue-top: #6b7897;
    --postion-button-blue-hover: #4d5877;
    --postion-button-blue-shadow: #3c4662;
    --postion-gold: #ffc814;
    --postion-green: #10b981;
    --radius: 8px;
}

[data-theme="dark"] {
    --ink: #edf4ff;
    --muted: #9fb1c7;
    --line: #243b59;
    --surface: #10243c;
    --wash: #071426;
    --postion-blue: #6cb7ff;
    --postion-blue-dark: #2b76bd;
    --postion-button-blue: #5a6787;
    --postion-button-blue-top: #6b7897;
    --postion-button-blue-hover: #4d5877;
    --postion-button-blue-shadow: #3c4662;
}

* {
    box-sizing: border-box;
}

body {
    background:
        linear-gradient(rgba(244, 247, 250, 0.84), rgba(244, 247, 250, 0.94)),
        url("/static/blog/background-light.jpg") center top / cover fixed,
        var(--wash);
    color: var(--ink);
    font-family: "Aptos", "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
    margin: 0;
    min-width: 320px;
}

body[data-theme="dark"] {
    background:
        linear-gradient(rgba(7, 20, 38, 0.9), rgba(7, 20, 38, 0.98)),
        url("/static/blog/background-light.jpg") center top / cover fixed,
        var(--wash);
}

a {
    color: inherit;
}

a:hover {
    color: var(--postion-blue);
    text-decoration: none;
}

.brand-lockup {
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    color: #fff;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    min-height: 72px;
    min-width: 0;
    padding: 10px 12px;
    width: 100%;
}

.brand-lockup img {
    height: 42px;
    max-width: 218px;
    object-fit: contain;
}

.mobile-top-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.blog-upbar {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 16px;
    box-shadow: 0 14px 40px rgba(7, 20, 38, 0.06);
    grid-template-columns: auto minmax(260px, 460px) auto;
    margin-bottom: 26px;
    min-height: 64px;
    padding: 10px 14px;
    position: sticky;
    top: 16px;
    z-index: 10;
}

.upbar-links {
    align-items: center;
    display: flex;
    gap: 8px;
}

.upbar-link {
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    padding: 9px 15px;
}

.upbar-link.active,
.upbar-link:hover {
    background: rgba(36, 95, 159, 0.12);
    color: var(--ink);
}

.search-shell {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    width: 190px;
}

.blog-upbar .search-shell {
    background: var(--wash);
    justify-self: end;
    width: 100%;
}

.search-shell input {
    background: transparent;
    border: 0;
    color: var(--ink);
    outline: 0;
    width: 100%;
}

.theme-toggle {
    background: var(--postion-gold);
    border: 0;
    border-radius: 999px;
    color: #071426;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    height: 54px;
    padding: 0;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.16s ease;
    width: 64px;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle img {
    display: block;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(180deg, #6b7897 0%, #5a6787 100%);
    box-shadow:
        0 4px 0 #3c4662,
        0 10px 18px rgba(8, 12, 20, 0.24);
}

.feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 18px;
    max-width: 860px;
}

.feed-tabs a {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    padding: 8px 14px;
}

.feed-tabs a.active,
.feed-tabs a:hover {
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    border-color: rgba(202, 214, 233, 0.42);
    box-shadow: 0 3px 0 var(--postion-button-blue-shadow);
    color: #fff;
}

.icon-link img {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.login-link {
    color: var(--postion-blue);
    font-weight: 800;
}

.primary-action {
    align-items: center;
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow:
        0 4px 0 var(--postion-button-blue-shadow),
        0 10px 18px rgba(8, 12, 20, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
}

.primary-action:hover {
    background: linear-gradient(180deg, #7381a2 0%, var(--postion-button-blue-hover) 100%);
    box-shadow:
        0 6px 0 var(--postion-button-blue-shadow),
        0 14px 22px rgba(8, 12, 20, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
}

.secondary-action {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--postion-blue);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
}

.secondary-action:hover {
    background: rgba(36, 95, 159, 0.1);
    color: var(--postion-blue-dark);
}

.app-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 360px;
    min-height: 100vh;
}

.left-rail {
    background: #06090f;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    color: #fff;
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.left-rail::-webkit-scrollbar {
    display: none;
}

[data-theme="dark"] .left-rail {
    background: #06090f;
}

[data-theme="dark"] .brand-lockup img {
    filter: brightness(1.2);
}

.rail-item,
.rail-group a,
.rail-group button {
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    color: #cbd5e1;
    display: flex;
    font: inherit;
    font-weight: 800;
    gap: 12px;
    min-height: 42px;
    padding: 9px 14px;
    text-align: left;
    width: 100%;
}

.rail-item.active,
.rail-group a.active {
    background: rgba(61, 77, 116, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #fff;
}

.rail-item:hover,
.rail-group a:hover,
.rail-group button:hover {
    background: rgba(61, 77, 116, 0.48);
    color: #fff;
}

.rail-group {
    margin-top: 28px;
}

.rail-group p {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.rail-group span {
    color: var(--postion-gold);
    font-size: 13px;
    font-weight: 950;
    width: 26px;
}

.rail-group form {
    margin: 0;
}

.rail-group button {
    background: transparent;
    cursor: pointer;
}

.feed-shell {
    padding: 28px 40px 48px;
    position: relative;
}

.feed-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.feed-heading h1 {
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
    margin: 0;
}

.eyebrow {
    color: var(--postion-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.feed-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.feed-actions:empty {
    display: none;
}

.empty-state,
.error-state {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 250, 0.96)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 36px rgba(7, 20, 38, 0.08);
    margin: 0 auto 26px;
    max-width: 860px;
    padding: clamp(30px, 5vw, 48px);
    text-align: center;
}

[data-theme="dark"] .empty-state,
[data-theme="dark"] .error-state {
    background: var(--surface);
}

.empty-state h2,
.error-state h2 {
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 950;
    line-height: 1.12;
    margin: 0 0 12px;
}

.empty-state p,
.error-state p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    margin: 0 auto 20px;
    max-width: 620px;
}

.empty-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.error-state img {
    background: #071426;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius);
    display: block;
    height: 56px;
    margin: 0 auto 22px;
    object-fit: contain;
    padding: 8px 14px;
    width: auto;
}

.composer-card,
.post-card,
.form-card,
.profile-card,
.empty-feed,
.news-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.composer-card {
    align-items: center;
    color: var(--muted);
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
    margin: 0 auto 24px;
    max-width: 860px;
    min-height: 78px;
    padding: 14px 18px;
}

.composer-card:hover {
    border-color: rgba(36, 95, 159, 0.35);
    box-shadow: 0 14px 34px rgba(7, 20, 38, 0.08);
    color: var(--ink);
}

.composer-card img,
.composer-dot {
    border-radius: 50%;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.composer-dot {
    align-items: center;
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    color: #fff;
    display: flex;
    font-weight: 950;
    justify-content: center;
}

.composer-card strong {
    align-items: center;
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--postion-button-blue-shadow);
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 950;
    height: 42px;
    justify-content: center;
    min-width: 72px;
    padding: 0 14px;
}

.post-card {
    margin: 0 auto 26px;
    max-width: 860px;
    overflow: hidden;
    padding: 28px 30px 0;
}

.post-card-top {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 24px;
}

.article-img {
    border-radius: 50%;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.post-meta-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-meta-line a {
    color: var(--ink);
    font-weight: 950;
}

.post-meta-line span,
.post-card-top p {
    color: var(--muted);
    margin: 0;
}

.post-open-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    padding: 8px 14px;
}

.post-open-link:hover {
    background: rgba(36, 95, 159, 0.1);
    border-color: rgba(36, 95, 159, 0.32);
    color: var(--postion-blue);
}

.post-card h2 {
    color: var(--ink);
    font-size: 30px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.18;
    margin-bottom: 18px;
}

.post-cover {
    aspect-ratio: 16 / 7;
    border-radius: var(--radius);
    display: block;
    margin-bottom: 22px;
    object-fit: cover;
    width: 100%;
}

.detail-cover {
    aspect-ratio: 16 / 8;
}

.topic-chip {
    background: rgba(255, 200, 20, 0.18);
    border: 1px solid rgba(255, 200, 20, 0.34);
    border-radius: 999px;
    color: #725900;
    font-size: 12px;
    font-weight: 950;
    padding: 4px 9px;
}

[data-theme="dark"] .topic-chip {
    color: #ffe58a;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.tag-row span {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    padding: 5px 10px;
}

.article-title {
    color: var(--ink);
}

.article-content {
    color: #13233a;
    font-size: 18px;
    line-height: 1.58;
    white-space: pre-line;
}

.see-more {
    color: var(--postion-blue);
    display: inline-block;
    font-weight: 900;
    margin-bottom: 24px;
}

.post-card-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: 0 -30px;
    padding: 14px 30px;
}

.post-card-footer p {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

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

.metric-button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-weight: 850;
    margin-right: 8px;
    min-height: 36px;
    padding: 7px 13px;
}

.metric-button:hover,
.metric-button.is-liked {
    background: #fff8d7;
    border-color: #f2c94c;
    color: #6f5600;
}

.post-owner-actions {
    display: flex;
    gap: 10px;
}

.post-owner-actions a {
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 850;
    padding: 8px 14px;
}

.danger-link {
    color: #d83a52;
}

.right-rail {
    padding: 28px 28px 28px 0;
}

.right-actions-card {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr auto;
    margin-bottom: 22px;
}

.right-new-post {
    min-height: 54px;
    width: 100%;
}

.news-card {
    margin-bottom: 22px;
    padding: 24px;
}

.section-title-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.news-card h2 {
    color: var(--ink);
    font-size: 22px;
    font-weight: 950;
    margin: 0;
}

.section-title-row span {
    color: var(--muted);
    font-weight: 850;
}

.news-card article {
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
    padding: 14px 0;
}

.news-card article + article,
.news-card.compact a + a {
    border-top: 1px solid var(--line);
}

.news-dot {
    border-radius: 50%;
    display: block;
    height: 14px;
    margin-top: 6px;
    width: 14px;
}

.news-dot.green {
    background: var(--postion-green);
}

.news-dot.gold {
    background: var(--postion-gold);
}

.news-dot.blue {
    background: var(--postion-blue);
}

.news-card h3 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.25;
    margin: 0 0 6px;
}

.news-card p {
    color: var(--muted);
    margin: 0;
}

.news-card.compact a {
    display: block;
    font-weight: 900;
    line-height: 1.35;
    padding: 14px 0;
}

.trending-card {
    padding: 24px 22px;
}

.trending-topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 18px;
}

.trending-topic-row a {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--postion-blue);
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
}

.trending-list {
    display: grid;
    gap: 18px;
}

.trending-post {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
    min-width: 0;
}

.trending-post img,
.trending-initial {
    border-radius: 50%;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

.trending-initial {
    align-items: center;
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    color: #fff;
    display: flex;
    font-weight: 950;
    justify-content: center;
}

.trending-post strong {
    color: var(--ink);
    display: block;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.trending-post small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 4px;
}

.trending-post:hover strong {
    color: var(--postion-blue);
}

.trending-empty {
    background: var(--wash);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.comments-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 auto 26px;
    max-width: 860px;
    padding: 26px 30px;
}

.attachments-panel {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 24px 0;
    padding: 18px;
}

.attachments-panel h3 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    margin-bottom: 14px;
}

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

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

.attachment-card img,
.attachment-card video {
    display: block;
    max-height: 280px;
    object-fit: cover;
    width: 100%;
}

.file-link {
    color: var(--postion-blue);
    display: block;
    font-weight: 900;
    padding: 16px;
}

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

.comment-form textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 104px;
    padding: 14px 16px;
    resize: vertical;
    width: 100%;
}

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

.comment-card {
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
}

.comment-card img {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.comment-card p,
.muted-copy {
    color: var(--muted);
    margin: 4px 0 0;
}

.reply-form {
    margin-top: 10px;
}

.reply-form input {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    min-height: 38px;
    padding: 8px 14px;
    width: 100%;
}

.reply-card {
    background: var(--wash);
    border-left: 3px solid var(--postion-blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 10px;
    padding: 10px 12px;
}

.reply-card strong {
    color: var(--ink);
    font-size: 13px;
}

.newsletter-card form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.newsletter-card input {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 42px;
    padding: 8px 12px;
}

.newsletter-card button {
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow:
        0 4px 0 var(--postion-button-blue-shadow),
        0 10px 18px rgba(8, 12, 20, 0.22);
    color: #fff;
    font-weight: 950;
    min-height: 42px;
}

.comment-login {
    margin-bottom: 22px;
}

.form-card,
.profile-card,
.empty-feed,
.content-section,
.public-profile-card {
    margin: 0 auto 26px;
    max-width: 820px;
    padding: 30px;
}

.form-card-heading h2,
.profile-card h2,
.empty-feed h2,
.content-section h2,
.content-section legend {
    color: var(--ink);
    font-weight: 950;
}

.form-card input,
.form-card textarea,
.profile-card input,
.content-section input,
.content-section textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 46px;
}

.content-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.guide-section p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.resource-library-head {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 auto 24px;
    max-width: 1100px;
    padding: 24px 28px;
}

.resource-library-head h2 {
    color: var(--ink);
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 950;
    margin: 0 0 8px;
}

.resource-library-head p:last-child {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 680px;
}

.resource-admin-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.resource-admin-actions p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    max-width: 220px;
    text-align: right;
}

.resource-folder-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto 24px;
    max-width: 1100px;
}

.resource-folder-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-weight: 900;
    min-height: 112px;
    overflow: hidden;
    padding: 18px 18px 16px;
    position: relative;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.resource-folder-card::before {
    background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.resource-folder-card > * {
    position: relative;
    z-index: 1;
}

.resource-folder-card strong {
    color: var(--ink);
    font-size: 19px;
    line-height: 1.15;
    margin-top: auto;
}

.resource-folder-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    margin-top: 6px;
}

.resource-folder-tab {
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    border-radius: 0 0 8px 8px;
    height: 34px;
    left: 18px;
    position: absolute;
    top: 0;
    width: 54px;
}

.resource-folder-card.active,
.resource-folder-card:hover {
    border-color: rgba(90, 103, 135, 0.5);
    box-shadow:
        0 16px 30px rgba(7, 20, 38, 0.12),
        0 3px 0 var(--postion-button-blue-shadow);
    transform: translateY(-2px);
}

.resource-folder-card.active::before,
.resource-folder-card:hover::before {
    opacity: 1;
}

.resource-folder-card.active strong,
.resource-folder-card:hover strong {
    color: #ffffff;
}

.resource-folder-card.active small,
.resource-folder-card:hover small {
    color: rgba(255, 255, 255, 0.72);
}

.resource-course {
    display: grid;
    gap: 30px;
    margin: 0 auto 34px;
    max-width: 1100px;
}

.resource-section {
    display: grid;
    gap: 16px;
}

.resource-section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.resource-section-head h3 {
    color: var(--ink);
    font-size: 26px;
    font-weight: 950;
    line-height: 1.15;
    margin: 0;
}

.resource-section-head a {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
}

.resource-section-head a:hover {
    color: var(--postion-button-blue-hover);
}

.resource-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    max-width: none;
}

.resource-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.resource-card:hover {
    border-color: rgba(90, 103, 135, 0.42);
    box-shadow: 0 18px 34px rgba(7, 20, 38, 0.12);
    transform: translateY(-2px);
}

.resource-card--empty {
    border-style: dashed;
}

.resource-card--empty .resource-media {
    background:
        linear-gradient(rgba(13, 13, 13, 0.88), rgba(13, 13, 13, 0.88)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 14px);
}

.resource-card--empty .resource-media span {
    color: rgba(255, 255, 255, 0.82);
}

.resource-media {
    align-items: center;
    aspect-ratio: 16 / 8;
    background: #111827;
    color: #fff;
    display: flex;
    font-size: 22px;
    font-weight: 950;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.resource-media img,
.resource-media video {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.resource-card-body {
    padding: 18px 20px 20px;
}

.resource-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.resource-meta-row span {
    background: rgba(255, 200, 20, 0.16);
    border: 1px solid rgba(255, 200, 20, 0.34);
    border-radius: 999px;
    color: #725900;
    font-size: 12px;
    font-weight: 950;
    padding: 5px 9px;
}

[data-theme="dark"] .resource-meta-row span {
    color: #ffe58a;
}

.resource-card h3 {
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.2;
    margin: 0 0 8px;
}

.resource-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 16px;
}

.resource-open-link {
    color: var(--postion-button-blue-hover);
    font-weight: 950;
}

.resource-open-link:hover {
    color: var(--postion-button-blue-shadow);
}

.resource-empty {
    grid-column: 1 / -1;
}

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

.guide-grid article {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.guide-grid strong,
.guide-grid span {
    display: block;
}

.guide-grid strong {
    color: var(--ink);
    font-weight: 950;
    margin-bottom: 6px;
}

.guide-grid span {
    color: var(--muted);
    line-height: 1.45;
}

.content-section .btn,
.btn-outline-info {
    background: linear-gradient(180deg, var(--postion-button-blue-top) 0%, var(--postion-button-blue) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow:
        0 4px 0 var(--postion-button-blue-shadow),
        0 10px 18px rgba(8, 12, 20, 0.22);
    color: #fff;
    font-weight: 900;
    min-height: 42px;
    padding: 9px 18px;
}

.content-section .btn:hover,
.btn-outline-info:hover {
    background: linear-gradient(180deg, #7381a2 0%, var(--postion-button-blue-hover) 100%);
    color: #fff;
}

.profile-hero {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.public-profile-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
}

.public-profile-card img {
    border-radius: 50%;
    height: 96px;
    object-fit: cover;
    width: 96px;
}

.public-profile-card h2 {
    color: var(--ink);
    font-weight: 950;
    margin: 0 0 4px;
}

.public-profile-card strong {
    color: var(--postion-blue);
    display: block;
    margin-bottom: 6px;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: var(--ink);
    font-weight: 950;
    margin-top: 24px;
}

.markdown-content code {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 5px;
}

.account-img {
    border-radius: 50%;
    height: 104px;
    object-fit: cover;
    width: 104px;
}

.pagination-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 28px 0;
}

.pagination-row a,
.pagination-row span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 850;
    padding: 8px 14px;
}

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

    .right-rail {
        display: none;
    }

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

@media (max-width: 820px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .left-rail {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        height: auto;
        padding: 16px;
        position: static;
    }

    .blog-upbar {
        grid-template-columns: 1fr;
        position: static;
    }

    .upbar-links {
        overflow-x: auto;
    }

    .rail-group {
        display: none;
    }

    .feed-shell {
        padding: 20px 14px 36px;
    }

    .feed-heading,
    .post-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .post-card {
        padding: 22px 18px 0;
    }

    .post-card h2 {
        font-size: 24px;
    }

    .post-card-footer {
        margin: 0 -18px;
        padding: 14px 18px;
    }

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

    .resource-library-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .resource-folder-grid {
        grid-template-columns: 1fr;
    }
}
