/* rich-content.css — extracted from components/rich-content-style.blade.php */
.rich-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: -0.011em;
    font-style: normal;
}
@media (min-width: 768px) {
    .rich-content {
        font-size: 1.0625rem;
        line-height: 1.8;
    }
}
@media (min-width: 1024px) {
    .rich-content {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

/* === Paragraphs === */
.rich-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* === Italic clipping fix === */
.rich-content {
    overflow-x: clip;
    padding-left: 2px;
    padding-right: 2px;
}
.rich-content em,
.rich-content i {
    padding-right: 0.08em;
}
@media (min-width: 768px) {
    .rich-content p {
        margin-bottom: 1.25rem;
    }
}

/* === Headings === */
.rich-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1.25rem 0 0.625rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.375rem;
}
.rich-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.rich-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #334155;
    margin: 0.875rem 0 0.5rem;
    line-height: 1.4;
}
.rich-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0.75rem 0 0.375rem;
    line-height: 1.45;
}
.rich-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    margin: 0.75rem 0 0.375rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rich-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0.75rem 0 0.375rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Desktop headings — restore larger sizes */
@media (min-width: 768px) {
    .rich-content h1 { font-size: 2rem; margin: 2rem 0 1rem; padding-bottom: 0.5rem; }
    .rich-content h2 { font-size: 1.625rem; margin: 1.75rem 0 0.875rem; }
    .rich-content h3 { font-size: 1.375rem; margin: 1.5rem 0 0.75rem; }
    .rich-content h4 { font-size: 1.125rem; margin: 1.25rem 0 0.625rem; }
    .rich-content h5 { font-size: 1rem; margin: 1rem 0 0.5rem; }
    .rich-content h6 { font-size: 0.875rem; margin: 1rem 0 0.5rem; }
}

/* === Lists === */
.rich-content ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
}
.rich-content ol {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
}
.rich-content ul li,
.rich-content ol li {
    margin-bottom: 0.25rem;
    line-height: 1.7;
    color: #334155;
}
.rich-content ul ul,
.rich-content ol ol,
.rich-content ul ol,
.rich-content ol ul {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding-left: 1.25rem;
}
@media (min-width: 768px) {
    .rich-content ul, .rich-content ol { padding-left: 1.75rem; margin-bottom: 1.5rem; }
    .rich-content ul li, .rich-content ol li { margin-bottom: 0.5rem; line-height: 1.8; }
}
/* Nested list markers */
.rich-content ul ul {
    list-style-type: circle;
}
.rich-content ul ul ul {
    list-style-type: square;
}

/* === Blockquote === */
.rich-content blockquote {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #f2b400;
    background: #f0fdfa;
    color: #334155;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}
.rich-content blockquote p:last-child {
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .rich-content blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; }
}

/* === Horizontal Rule === */
.rich-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* === Code === */
.rich-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* === Table === */
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.rich-content th,
.rich-content td {
    border: 1px solid #e5e7eb;
    padding: 0.625rem 0.875rem;
    text-align: left;
}
.rich-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

/* === Images === */
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* === Links === */
.rich-content a {
    color: #0d9488;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rich-content a:hover {
    color: #d99a00;
}

/* === Content tabs by h2 === */
.wiki-tabs {
    margin: 0.875rem 0 1.5rem;
    background: transparent;
}
.wiki-tab-nav-wrap {
    position: relative;
    margin: 0.25rem -0.25rem 1.15rem;
    padding: 0 0.25rem;
}
.wiki-tab-nav-wrap::before,
.wiki-tab-nav-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 1.4rem;
    pointer-events: none;
}
.wiki-tab-nav-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 25%, rgba(255, 255, 255, 0));
}
.wiki-tab-nav-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 25%, rgba(255, 255, 255, 0));
}
.wiki-tab-nav {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.35rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    scrollbar-width: none;
    scroll-padding: 0.75rem;
    scroll-snap-type: x proximity;
}
.wiki-tab-nav::-webkit-scrollbar {
    display: none;
}
.wiki-tab-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(78vw, 20rem);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    white-space: nowrap;
    scroll-snap-align: start;
}
.rich-content h2.wiki-tab-button {
    margin: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: normal;
}
.wiki-tab-button:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #111827;
}
.rich-content h2.wiki-tab-button:hover {
    color: #111827;
}
.wiki-tab-button.is-active {
    background: #fff;
    border-color: rgba(242, 180, 0, 0.45);
    color: #111827;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(242, 180, 0, 0.08);
}
.rich-content h2.wiki-tab-button.is-active {
    color: #111827;
}
.wiki-tab-button:focus-visible {
    outline: 2px solid rgba(242, 180, 0, 0.75);
    outline-offset: 2px;
}
.wiki-tab-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 900;
}
.wiki-tab-button.is-active .wiki-tab-index {
    border-color: #f2b400;
    background: #f2b400;
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(217, 154, 0, 0.9);
}
.wiki-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wiki-tab-panels {
    padding: 0;
}
.wiki-tab-panel {
    animation: wikiTabPanelIn .18s ease-out both;
}
.wiki-tab-panel[hidden] {
    display: none !important;
}
.rich-content .wiki-tab-panel > h2:first-child {
    display: none !important;
}
@keyframes wikiTabPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .wiki-tab-panel {
        animation: none;
    }
}
@media (min-width: 768px) {
    .wiki-tab-nav-wrap {
        margin-bottom: 1.35rem;
    }
    .wiki-tab-nav {
        gap: 0.55rem;
        padding: 0.4rem;
    }
    .wiki-tab-button {
        font-size: 0.875rem;
        padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    }
    .rich-content h2.wiki-tab-button {
        font-size: 0.875rem;
        padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    }
    .wiki-tab-index {
        width: 1.55rem;
        height: 1.55rem;
        font-size: 0.75rem;
    }
}

/* === Post show semantic content === */
.post-show-page .post-content-card {
    border-color: #edf2f7 !important;
    background:
        radial-gradient(circle at 0 0, rgba(242, 180, 0, 0.07), transparent 34%),
        linear-gradient(180deg, #ffffff, #fbfcff) !important;
    box-shadow: 0 18px 46px -38px rgba(15, 23, 42, 0.42) !important;
}
.post-show-page .post-content-heading {
    letter-spacing: -0.02em;
}
.post-show-page .post-content-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    flex: 0 0 auto;
    gap: 0.3rem;
    border: 1px solid #e6edf5;
    border-radius: 999px;
    background: #fff;
    padding: 0.2rem 0.3rem 0.2rem 0.55rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.35);
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.post-show-page .post-content-toggle:hover,
.post-show-page .post-content-toggle.is-expanded {
    border-color: rgba(242, 180, 0, 0.5);
    background: #fffaf0;
    color: #1f2937;
}
.post-show-page .post-content-toggle:focus-visible {
    outline: 2px solid rgba(242, 180, 0, 0.5);
    outline-offset: 2px;
}
.post-show-page .post-content-toggle-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.16rem;
    height: 1.16rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #d99a00;
}
.post-show-page .post-content-toggle.is-expanded .post-content-toggle-dot {
    background: #f2b400;
    color: #fff;
}
.post-show-page .post-content-toggle svg {
    width: 0.78rem;
    height: 0.78rem;
    transform-origin: center;
    transition: transform .18s ease;
}
.post-show-page .post-content-toggle-text {
    white-space: nowrap;
}
.post-show-page .post-content-body {
    contain: layout style;
}
.post-show-page .post-rich-content {
    --post-content-line: #e6edf5;
    --post-content-soft: #f8fafc;
    --post-content-paper: #ffffff;
    --post-content-ink: #1f2937;
    --post-content-muted: #64748b;
    --post-content-accent: #f2b400;
    overflow-x: visible;
    padding: 0;
    color: var(--post-content-ink);
    font-size: clamp(0.94rem, 0.92rem + 0.2vw, 1.04rem);
    line-height: 1.72;
}
.post-show-page .post-rich-content p {
    margin: 0 0 0.85rem;
    color: var(--post-content-ink);
    text-align: left;
}
.post-show-page .post-rich-content h1,
.post-show-page .post-rich-content h2:not(.wiki-tab-button),
.post-show-page .post-rich-content h3,
.post-show-page .post-rich-content h4 {
    border: 0;
    color: #111827;
    letter-spacing: -0.025em;
}
.post-show-page .post-rich-content h2:not(.wiki-tab-button) {
    margin: 1.15rem 0 0.55rem;
    font-size: clamp(1.08rem, 1rem + 0.45vw, 1.38rem);
    font-weight: 820;
}
.post-show-page .post-rich-content h3 {
    margin: 0.9rem 0 0.4rem;
    font-size: clamp(1rem, 0.96rem + 0.25vw, 1.16rem);
    font-weight: 760;
}
.post-show-page .post-rich-content ul,
.post-show-page .post-rich-content ol {
    margin: 0 0 0.9rem;
    padding-left: 1.15rem;
}
.post-show-page .post-rich-content li {
    margin-bottom: 0.28rem;
    color: var(--post-content-ink);
    line-height: 1.65;
}
.post-show-page .post-rich-content blockquote {
    margin: 0.85rem 0;
    border-left: 3px solid var(--post-content-accent);
    border-radius: 0.8rem;
    background: #fffaf0;
    padding: 0.75rem 0.9rem;
    color: #334155;
    font-style: normal;
}
.post-show-page .post-rich-content a {
    color: #d99a00;
    font-weight: 650;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 180, 0, 0.28);
}
.post-show-page .post-rich-content a:hover {
    color: #b77900;
    border-bottom-color: rgba(242, 180, 0, 0.56);
}
.post-show-page .post-rich-content .wiki-tabs {
    margin: 0;
}
.post-show-page .post-rich-content .wiki-tab-nav-wrap {
    margin: 0 0 0.9rem;
    padding: 0;
    overflow: visible;
}
.post-show-page .post-rich-content .wiki-tab-nav-wrap::before,
.post-show-page .post-rich-content .wiki-tab-nav-wrap::after {
    display: none;
    content: none;
}
.post-show-page .post-rich-content .wiki-tab-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.45rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    scroll-snap-type: none;
}
.post-show-page .post-rich-content .wiki-tab-button,
.post-show-page .post-rich-content h2.wiki-tab-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 2.25rem;
    margin: 0;
    gap: 0.45rem;
    border: 1px solid var(--post-content-line);
    border-radius: 999px;
    background: var(--post-content-paper);
    padding: 0.38rem 0.65rem 0.38rem 0.38rem;
    color: var(--post-content-muted);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: normal;
    box-shadow: none;
}
.post-show-page .post-rich-content .wiki-tab-button:hover,
.post-show-page .post-rich-content .wiki-tab-button.is-active,
.post-show-page .post-rich-content h2.wiki-tab-button:hover,
.post-show-page .post-rich-content h2.wiki-tab-button.is-active {
    border-color: rgba(242, 180, 0, 0.48);
    background: #fffaf0;
    color: #111827;
}
.post-show-page .post-rich-content .wiki-tab-button.is-active,
.post-show-page .post-rich-content h2.wiki-tab-button.is-active {
    box-shadow: inset 0 0 0 1px rgba(242, 180, 0, 0.13);
}
.post-show-page .post-rich-content .wiki-tab-index {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    border-color: var(--post-content-line);
    background: var(--post-content-soft);
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1.25rem;
    box-shadow: none;
}
.post-show-page .post-rich-content .wiki-tab-button.is-active .wiki-tab-index {
    border-color: var(--post-content-accent);
    background: var(--post-content-accent);
    color: #fff;
    box-shadow: none;
}
.post-show-page .post-rich-content .wiki-tab-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-show-page .post-rich-content .wiki-tab-panels {
    margin: 0;
    padding: 0;
}
.post-show-page .post-rich-content .wiki-tab-panel {
    animation: wikiTabPanelIn .16s ease-out both;
}
.post-show-page .post-rich-content .wiki-section {
    margin: 0;
    color: var(--post-content-ink);
}
.post-show-page .post-rich-content .wiki-section + .wiki-section {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--post-content-line);
}
.post-show-page .post-rich-content .wiki-prose-flow {
    max-width: none;
}
.post-show-page .post-rich-content .wiki-section-intro {
    margin-bottom: 0.7rem;
}
.post-show-page .post-rich-content .wiki-kv-list,
.post-show-page .post-rich-content .wiki-data-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    margin: 0.25rem 0 0.9rem;
    border: 1px solid var(--post-content-line);
    border-radius: 1rem;
    background: var(--post-content-paper);
}
.post-show-page .post-rich-content .wiki-kv-row,
.post-show-page .post-rich-content .wiki-data-row {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
    align-items: stretch;
    border-bottom: 1px solid var(--post-content-line);
}
.post-show-page .post-rich-content .wiki-kv-row:nth-child(odd),
.post-show-page .post-rich-content .wiki-data-row:nth-child(odd) {
    border-right: 1px solid var(--post-content-line);
}
.post-show-page .post-rich-content .wiki-kv-row dt,
.post-show-page .post-rich-content .wiki-data-row dt {
    display: flex;
    align-items: center;
    margin: 0;
    border-right: 1px solid var(--post-content-line);
    background: var(--post-content-soft);
    padding: 0.55rem 0.7rem;
    color: var(--post-content-muted);
    font-size: 0.78em;
    font-weight: 560;
    line-height: 1.35;
}
.post-show-page .post-rich-content .wiki-kv-row dd,
.post-show-page .post-rich-content .wiki-data-row dd {
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0.75rem;
    color: var(--post-content-ink);
    font-size: 0.92em;
    font-weight: 430;
    line-height: 1.55;
}
.post-show-page .post-rich-content table.info-grid {
    overflow: hidden;
    margin: 0.25rem 0 0.9rem;
    border: 1px solid var(--post-content-line);
    border-radius: 1rem;
    background: var(--post-content-paper);
    border-collapse: separate;
    border-spacing: 0;
}
.post-show-page .post-rich-content table.info-grid td {
    border-color: var(--post-content-line);
    padding: 0.6rem 0.75rem;
    font-size: 0.92em;
    line-height: 1.55;
}
.post-show-page .post-rich-content table.info-grid .info-label {
    width: 20%;
    background: var(--post-content-soft);
    color: var(--post-content-muted);
    font-size: 0.78em;
    font-weight: 560;
}
.post-show-page .post-rich-content .wiki-section-blocks,
.post-show-page .post-rich-content .wiki-list-flow--grouped {
    display: block;
    margin: 0;
    border-top: 1px solid var(--post-content-line);
}
.post-show-page .post-rich-content .wiki-section-block,
.post-show-page .post-rich-content .wiki-list-card {
    display: block;
    border: 0;
    border-bottom: 1px solid var(--post-content-line);
    border-radius: 0;
    background: transparent;
    padding: 0.62rem 0 0.7rem;
    box-shadow: none;
}
.post-show-page .post-rich-content .wiki-section-block:last-child,
.post-show-page .post-rich-content .wiki-list-card:last-child {
    border-bottom: 0;
}
.post-show-page .post-rich-content .wiki-section-block h3,
.post-show-page .post-rich-content .wiki-list-card h3 {
    position: relative;
    margin: 0 0 0.42rem;
    padding-left: 0.72rem;
    color: #334155;
    font-size: 0.86em;
    font-weight: 680;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.post-show-page .post-rich-content .wiki-section-block h3::before,
.post-show-page .post-rich-content .wiki-list-card h3::before {
    content: '';
    position: absolute;
    top: 0.18em;
    bottom: 0.18em;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: var(--post-content-accent);
}
.post-show-page .post-rich-content .wiki-section-block-body,
.post-show-page .post-rich-content .wiki-list-card-body {
    min-width: 0;
}
.post-show-page .post-rich-content .wiki-section-block-body p,
.post-show-page .post-rich-content .wiki-list-card-body p,
.post-show-page .post-rich-content .wiki-section-block-body li,
.post-show-page .post-rich-content .wiki-list-card-body li {
    font-size: 0.94em;
    font-weight: 430;
    line-height: 1.62;
}
.post-show-page .post-rich-content .wiki-timeline {
    position: relative;
    margin-top: 0.15rem;
    padding-left: 1.15rem;
}
.post-show-page .post-rich-content .wiki-timeline::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    bottom: 0.65rem;
    left: 0.25rem;
    width: 1px;
    background: var(--post-content-line);
}
.post-show-page .post-rich-content .wiki-timeline-item {
    position: relative;
    padding: 0 0 0.85rem;
}
.post-show-page .post-rich-content .wiki-timeline-dot {
    position: absolute;
    top: 0.55rem;
    left: -1.02rem;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: var(--post-content-accent);
    box-shadow: 0 0 0 3px rgba(242, 180, 0, 0.14);
}
.post-show-page .post-rich-content .wiki-timeline-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.post-show-page .post-rich-content .wiki-timeline-card h3 {
    margin: 0 0 0.35rem;
    color: #111827;
    font-size: 0.98em;
    font-weight: 720;
    line-height: 1.35;
}
.post-show-page .post-rich-content .wiki-timeline-body {
    color: var(--post-content-ink);
}
.post-show-page .post-content-skeleton {
    display: grid;
    gap: 0.7rem;
    padding: 0.25rem 0;
}
.post-show-page .post-content-skeleton span {
    display: block;
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
    background-size: 180% 100%;
    animation: postContentSkeleton 1.1s ease-in-out infinite;
}
.post-show-page .post-content-skeleton span:nth-child(1) { width: 92%; }
.post-show-page .post-content-skeleton span:nth-child(2) { width: 78%; }
.post-show-page .post-content-skeleton span:nth-child(3) { width: 86%; }
@keyframes postContentSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (max-width: 767px) {
    .post-show-page .post-content-card {
        padding: 0.7rem !important;
    }
    .post-show-page .post-content-heading {
        margin-bottom: 0.65rem !important;
    }
    .post-show-page .post-content-toggle {
        min-height: 1.7rem;
        padding: 0.18rem 0.28rem 0.18rem 0.5rem;
        font-size: 0.66rem;
    }
    .post-show-page .post-content-toggle-dot {
        width: 1.08rem;
        height: 1.08rem;
    }
    .post-show-page .post-content-toggle svg {
        width: 0.74rem;
        height: 0.74rem;
    }
    .post-show-page .post-rich-content {
        font-size: 0.94rem;
        line-height: 1.66;
    }
    .post-show-page .post-rich-content .wiki-tab-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }
    .post-show-page .post-rich-content .wiki-tab-button,
    .post-show-page .post-rich-content h2.wiki-tab-button {
        min-height: 2rem;
        gap: 0.35rem;
        padding: 0.32rem 0.5rem 0.32rem 0.32rem;
        font-size: 0.68rem;
    }
    .post-show-page .post-rich-content .wiki-tab-index {
        width: 1.08rem;
        height: 1.08rem;
        flex-basis: 1.08rem;
        font-size: 0.6rem;
        line-height: 1.08rem;
    }
    .post-show-page .post-rich-content .wiki-kv-list,
    .post-show-page .post-rich-content .wiki-data-list {
        grid-template-columns: 1fr;
        border-radius: 0.8rem;
    }
    .post-show-page .post-rich-content .wiki-kv-row,
    .post-show-page .post-rich-content .wiki-data-row {
        grid-template-columns: minmax(5.8rem, 31%) minmax(0, 1fr);
        border-right: 0 !important;
    }
    .post-show-page .post-rich-content .wiki-kv-row dt,
    .post-show-page .post-rich-content .wiki-data-row dt,
    .post-show-page .post-rich-content .wiki-kv-row dd,
    .post-show-page .post-rich-content .wiki-data-row dd {
        padding: 0.45rem 0.55rem;
    }
    .post-show-page .post-rich-content table.info-grid,
    .post-show-page .post-rich-content table.info-grid tbody,
    .post-show-page .post-rich-content table.info-grid tr,
    .post-show-page .post-rich-content table.info-grid td {
        display: block;
    }
    .post-show-page .post-rich-content table.info-grid tr {
        display: grid;
        grid-template-columns: minmax(5.8rem, 31%) minmax(0, 1fr);
        border-bottom: 1px solid var(--post-content-line);
    }
    .post-show-page .post-rich-content table.info-grid tr:last-child {
        border-bottom: 0;
    }
    .post-show-page .post-rich-content table.info-grid td {
        border: 0;
        padding: 0.45rem 0.55rem;
    }
    .post-show-page .post-rich-content table.info-grid td:nth-child(n + 3) {
        border-top: 1px solid var(--post-content-line);
    }
    .post-show-page .post-rich-content table.info-grid .info-label {
        width: auto;
        border-right: 1px solid var(--post-content-line);
    }
    .post-show-page .post-rich-content table.info-grid .info-value[colspan] {
        grid-column: 2 / -1;
    }
    .post-show-page .post-rich-content .wiki-section-block,
    .post-show-page .post-rich-content .wiki-list-card {
        padding: 0.55rem 0;
    }
    .post-show-page .post-rich-content .wiki-section-block h3,
    .post-show-page .post-rich-content .wiki-list-card h3 {
        font-size: 0.78em;
    }
}

/* Post show final parity: keep generated wiki UI from inheriting large prose headings. */
.post-show-page #ct-p.post-rich-content {
    font-size: 16px !important;
    line-height: 1.72 !important;
}
.post-show-page #ct-p.post-rich-content .wiki-tabs,
.post-show-page #ct-p.post-rich-content .wiki-tab-panels,
.post-show-page #ct-p.post-rich-content .wiki-tab-panel,
.post-show-page #ct-p.post-rich-content .wiki-section,
.post-show-page #ct-p.post-rich-content .wiki-prose-flow,
.post-show-page #ct-p.post-rich-content .wiki-section-blocks,
.post-show-page #ct-p.post-rich-content .wiki-section-block-body,
.post-show-page #ct-p.post-rich-content .wiki-list-flow,
.post-show-page #ct-p.post-rich-content .wiki-list-card-body {
    font-size: 1em !important;
}
.post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2.wiki-tab-button,
.post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2[data-wiki-tab-button] {
    min-height: 32px !important;
    margin: 0 !important;
    padding: 5px 9px 5px 5px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2.wiki-tab-button .wiki-tab-label,
.post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2[data-wiki-tab-button] .wiki-tab-label {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}
.post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2.wiki-tab-button .wiki-tab-index,
.post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2[data-wiki-tab-button] .wiki-tab-index {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    font-size: 11px !important;
    line-height: 22px !important;
}
.post-show-page #ct-p.post-rich-content .wiki-section--cards .wiki-section-block h3,
.post-show-page #ct-p.post-rich-content .wiki-section--list .wiki-list-card h3 {
    font-size: 0.86em !important;
    font-weight: 560 !important;
    line-height: 1.35 !important;
}
.post-show-page #ct-p.post-rich-content .wiki-section--cards .wiki-section-block-body p,
.post-show-page #ct-p.post-rich-content .wiki-section--cards .wiki-section-block-body li,
.post-show-page #ct-p.post-rich-content .wiki-section--list .wiki-list-card-body p,
.post-show-page #ct-p.post-rich-content .wiki-section--list .wiki-list-card-body li,
.post-show-page #ct-p.post-rich-content .wiki-prose-flow p,
.post-show-page #ct-p.post-rich-content .wiki-prose-flow li {
    font-size: 0.9em !important;
    font-weight: 430 !important;
    line-height: 1.58 !important;
}
.post-show-page #ct-p.post-rich-content strong,
.post-show-page #ct-p.post-rich-content b {
    font-weight: 520 !important;
}
@media (max-width: 767px) {
    .post-show-page #ct-p.post-rich-content {
        font-size: 15.5px !important;
        line-height: 1.66 !important;
    }
    .post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2.wiki-tab-button,
    .post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2[data-wiki-tab-button] {
        min-height: 30px !important;
        padding: 4px 7px 4px 4px !important;
        font-size: 10.5px !important;
    }
    .post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2.wiki-tab-button .wiki-tab-index,
    .post-show-page #ct-p.post-rich-content .wiki-tab-nav > h2[data-wiki-tab-button] .wiki-tab-index {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
        font-size: 9.5px !important;
        line-height: 18px !important;
    }
}
