/* ============================================================
   ytthumbfetch.com - blog.css v1.1.0
   Shared stylesheet for content pages: blogs, guides, tool pages.
   100% standalone - style.css kabhi modify nahi hota, sirf reuse.
   All classes prefixed .yt- (collision-safe with style.css).
   Dark mode: same pattern as style.css
   (@media prefers-dark + html:not([data-theme=light]))
   and forced dark (html[data-theme=dark]).
   ============================================================ */

/* ---------- ARTICLE LAYOUT ---------- */
.yt-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 12px 40px;
}
@media (min-width: 576px) {
    .yt-article { padding: 26px 16px 56px; }
}

/* ---------- BREADCRUMBS ---------- */
.yt-breadcrumbs {
    font-size: 13px;
    color: #5d6b7a;
    margin: 6px 0 14px;
    line-height: 1.6;
}
.yt-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.yt-breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.yt-breadcrumbs li + li::before {
    content: "\203A";
    color: #a0aec0;
    font-weight: 700;
}
.yt-breadcrumbs a {
    color: #5d6b7a;
    text-decoration: none;
}
.yt-breadcrumbs a:hover { color: #d10000; text-decoration: underline; }

/* ---------- ARTICLE HERO ---------- */
.yt-hero { margin-bottom: 26px; }
.yt-hero h1 {
    font-size: calc(1.55rem + 1.3vw);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a202c;
    margin: 0 0 12px;
}
@media (min-width: 1200px) { .yt-hero h1 { font-size: 2.35rem; } }
.yt-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    font-size: 13.5px;
    color: #5d6b7a;
    margin-bottom: 18px;
}
.yt-hero-meta .yt-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.yt-hero-meta svg.fa { color: #d10000; }
.yt-hero-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #2d3748;
    margin-bottom: 22px;
}
.yt-hero-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(45, 55, 72, 0.10);
    background: #eef1f6;
    line-height: 0;
}
.yt-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- ARTICLE TYPOGRAPHY ---------- */
.yt-art h2 {
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.3;
    color: #1a202c;
    letter-spacing: -0.01em;
    margin: 34px 0 12px;
    scroll-margin-top: 86px;
}
@media (min-width: 768px) { .yt-art h2 { font-size: 1.62rem; } }
.yt-art h3 {
    font-size: 1.16rem;
    font-weight: 700;
    color: #1a202c;
    margin: 24px 0 8px;
}
.yt-art p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: #2d3748;
    margin: 0 0 14px;
}
.yt-art ul, .yt-art ol {
    margin: 0 0 16px;
    padding-left: 1.6rem;
    color: #2d3748;
}
.yt-art li {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 7px;
}
.yt-art a {
    color: #c01818;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(208, 16, 16, 0.35);
    text-underline-offset: 2px;
}
.yt-art a:hover { color: #d10000; text-decoration-color: #d10000; }
.yt-art strong { color: #1a202c; font-weight: 700; }
.yt-art img.yt-inline-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 6px 0 18px;
    box-shadow: 0 3px 14px rgba(45, 55, 72, 0.09);
}

/* ---------- TOC ---------- */
.yt-toc {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 28px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.05);
}
.yt-toc-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5d6b7a;
    margin: 0 0 10px;
}
.yt-toc ol {
    list-style: none;
    counter-reset: tocn;
    margin: 0;
    padding: 0;
}
.yt-toc li {
    counter-increment: tocn;
    margin: 0;
}
.yt-toc a {
    display: block;
    padding: 6px 0 6px 30px;
    position: relative;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.45;
    border-radius: 7px;
}
.yt-toc a::before {
    content: counter(tocn);
    position: absolute;
    left: 2px;
    top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #fff1f1;
    color: #d10000;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yt-toc a:hover { background: #fff5f5; color: #d10000; }

/* ---------- TABLES ---------- */
.yt-table-wrap {
    overflow-x: auto;
    margin: 6px 0 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.05);
    -webkit-overflow-scrolling: touch;
}
.yt-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 520px;
}
.yt-table-wrap th {
    background: #1a202c;
    color: #ffffff;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 11px 14px;
    white-space: nowrap;
}
.yt-table-wrap td {
    padding: 11px 14px;
    font-size: 14.5px;
    color: #2d3748;
    border-top: 1px solid #edf1f7;
    line-height: 1.5;
}
.yt-table-wrap tr:nth-child(even) td { background: #f8fafc; }
.yt-table-wrap td strong { color: #1a202c; }

/* ---------- CALLOUTS ---------- */
.yt-callout {
    border-radius: 12px;
    padding: 14px 16px 14px 46px;
    margin: 6px 0 18px;
    font-size: 0.97rem;
    line-height: 1.65;
    position: relative;
    color: #2d3748;
}
.yt-callout::before {
    position: absolute;
    left: 16px;
    top: 15px;
    font-size: 15px;
    line-height: 1;
}
.yt-callout-tip {
    background: #f0faf4;
    border: 1px solid #bfe8cf;
}
.yt-callout-tip::before { content: "\2714"; color: #14874a; }
.yt-callout-warn {
    background: #fff8ec;
    border: 1px solid #f3ddb0;
}
.yt-callout-warn::before { content: "\26A0"; color: #b7791f; }
.yt-callout-note {
    background: #f1f5fb;
    border: 1px solid #c9d8ee;
}
.yt-callout-note::before { content: "\2139"; color: #2b6cb0; }

/* ---------- SIZE DEMO (real pixel comparison boxes) ---------- */
.yt-size-demo {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    margin: 6px 0 20px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.05);
}
.yt-size-demo-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #5d6b7a;
    margin: 0 0 14px;
}
.yt-size-box-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}
.yt-size-box {
    border: 2px solid #d10000;
    background:
        linear-gradient(45deg, #fff1f1 25%, transparent 25%, transparent 75%, #fff1f1 75%),
        linear-gradient(45deg, #fff1f1 25%, #ffffff 25%, #ffffff 75%, #fff1f1 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
    border-radius: 6px;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}
.yt-size-box-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #ffffff;
    background: #d10000;
    padding: 3px 9px;
    border-radius: 5px;
    position: absolute;
    top: -11px;
    left: 10px;
    line-height: 1.4;
    white-space: nowrap;
}
.yt-size-demo-note {
    font-size: 12.5px;
    color: #5d6b7a;
    margin: 12px 0 0;
    line-height: 1.55;
}

/* ---------- CTA CARD (to home tool) ---------- */
.yt-cta-card {
    background: linear-gradient(135deg, #d10000 0%, #9b1414 100%);
    border-radius: 16px;
    padding: 26px 22px;
    margin: 34px 0;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 26px rgba(209, 0, 0, 0.22);
}
.yt-cta-card h2, .yt-cta-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.yt-cta-card p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.99rem;
    line-height: 1.6;
    margin: 0 auto 16px;
    max-width: 460px;
}
.yt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    color: #d10000;
    font-weight: 800;
    font-size: 1rem;
    padding: 13px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.yt-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22); color: #9b1414; }

/* ---------- RELATED POSTS ---------- */
.yt-related { margin: 30px 0 8px; }
.yt-related-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.yt-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) { .yt-related-grid { grid-template-columns: 1fr 1fr; } }
.yt-related-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 16px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.04);
}
.yt-related-card:hover {
    border-color: #d10000;
    box-shadow: 0 4px 16px rgba(209, 0, 0, 0.10);
}
.yt-related-card .yt-rc-kicker {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #d10000;
    margin-bottom: 6px;
}
.yt-related-card .yt-rc-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
}
.yt-related-card .yt-rc-desc {
    font-size: 0.86rem;
    color: #5d6b7a;
    line-height: 1.5;
    margin-top: 6px;
}

/* ---------- MINI TOOL WIDGET (standalone tool pages) ---------- */
.yt-tool-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 18px;
    margin: 10px 0 30px;
    box-shadow: 0 4px 18px rgba(45, 55, 72, 0.07);
}
@media (min-width: 576px) { .yt-tool-box { padding: 26px 24px; } }
.yt-tool-input-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 640px) {
    .yt-tool-input-row { flex-direction: row; }
    .yt-tool-input-row .yt-tool-input { flex: 1; }
}
.yt-tool-input {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 15px;
    color: #1a202c;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.yt-tool-input:focus {
    border-color: #d10000;
    box-shadow: 0 0 0 4px rgba(209, 0, 0, 0.10);
}
.yt-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d10000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
    min-height: 48px;
}
.yt-tool-btn:hover { background: #a80d0d; }
.yt-tool-btn:active { transform: scale(0.98); }
.yt-tool-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.yt-tool-btn.yt-btn-ghost {
    background: #ffffff;
    color: #d10000;
    border: 2px solid #d10000;
}
.yt-tool-btn.yt-btn-ghost:hover { background: #fff1f1; }
.yt-tool-status {
    font-size: 14px;
    color: #5d6b7a;
    margin-top: 10px;
    min-height: 20px;
    line-height: 1.5;
}
.yt-tool-status.yt-ok { color: #14874a; font-weight: 600; }
.yt-tool-status.yt-err { color: #c53030; font-weight: 600; }

/* thumbnail result grid (preview page / shorts page) */
.yt-thumb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}
@media (min-width: 640px) { .yt-thumb-grid { grid-template-columns: 1fr 1fr; } }
.yt-thumb-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
    text-align: center;
}
.yt-thumb-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f1f4f8;
}
.yt-thumb-card .yt-tc-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #1a202c;
    margin: 8px 0 2px;
}
.yt-thumb-card .yt-tc-dim {
    font-size: 11.5px;
    color: #5d6b7a;
    margin-bottom: 8px;
}
.yt-thumb-card .yt-tc-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 800;
    color: #d10000;
    border: 2px solid #d10000;
    border-radius: 9px;
    padding: 7px 14px;
    text-decoration: none;
    transition: background 0.15s ease;
    min-height: 34px;
}
.yt-thumb-card .yt-tc-dl:hover { background: #fff1f1; }
.yt-thumb-card .yt-tc-dl.yt-tc-na {
    color: #a0aec0;
    border-color: #e2e8f0;
    pointer-events: none;
}

/* resizer canvas output */
.yt-resize-canvas-wrap {
    text-align: center;
    margin-top: 16px;
}
.yt-resize-canvas-wrap canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f1f4f8;
}

/* ---------- FAQ on new pages (reuses .yt-faq-* from style.css) ---------- */
.yt-faq-section { margin-top: 34px; }
.yt-faq-section .yt-faq-main-title {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ---------- BLOG HUB ---------- */
.yt-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 8px 0 26px;
}
@media (min-width: 640px) { .yt-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .yt-hub-grid { grid-template-columns: 1fr 1fr 1fr; } }
.yt-hub-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 17px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.05);
}
.yt-hub-card:hover {
    border-color: #d10000;
    box-shadow: 0 6px 20px rgba(209, 0, 0, 0.10);
    transform: translateY(-2px);
}
.yt-hub-card .yt-hc-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d10000;
    margin-bottom: 7px;
}
.yt-hub-card .yt-hc-title {
    font-size: 1.02rem;
    font-weight: 750;
    color: #1a202c;
    line-height: 1.4;
}
.yt-hub-card .yt-hc-desc {
    font-size: 0.88rem;
    color: #5d6b7a;
    line-height: 1.55;
    margin-top: 7px;
}
.yt-hub-card .yt-hc-more {
    font-size: 0.85rem;
    font-weight: 800;
    color: #d10000;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---------- AUTHOR BOX (E-E-A-T) ---------- */
.yt-author-box {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 26px 0;
    align-items: flex-start;
}
.yt-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff1f1;
    color: #d10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 19px;
    flex-shrink: 0;
    border: 2px solid #f3c4c4;
}
.yt-author-info p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 0;
}
.yt-author-info .yt-author-name {
    font-weight: 800;
    color: #1a202c;
    font-size: 0.98rem;
}

/* ---------- UPDATED BADGE ---------- */
.yt-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f1;
    border: 1px solid #f3c4c4;
    color: #a31414;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
}

/* ============================================================
   DARK MODE (mirrors style.css pattern)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .yt-hero h1 { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-hero-lead { color: #c9d4e2; }
    html:not([data-theme="light"]) .yt-breadcrumbs,
    html:not([data-theme="light"]) .yt-hero-meta,
    html:not([data-theme="light"]) .yt-size-demo-note { color: #9aa8bc; }
    html:not([data-theme="light"]) .yt-breadcrumbs a { color: #9aa8bc; }
    html:not([data-theme="light"]) .yt-breadcrumbs a:hover { color: #d10000; }
    html:not([data-theme="light"]) .yt-toc,
    html:not([data-theme="light"]) .yt-size-demo,
    html:not([data-theme="light"]) .yt-tool-box,
    html:not([data-theme="light"]) .yt-thumb-card,
    html:not([data-theme="light"]) .yt-related-card,
    html:not([data-theme="light"]) .yt-hub-card,
    html:not([data-theme="light"]) .yt-author-box { background: #171e27; border-color: #263041; }
    html:not([data-theme="light"]) .yt-toc a { color: #c9d4e2; }
    html:not([data-theme="light"]) .yt-toc a:hover { background: rgba(209, 0, 0, 0.12); color: #ff7b7b; }
    html:not([data-theme="light"]) .yt-art h2,
    html:not([data-theme="light"]) .yt-art h3,
    html:not([data-theme="light"]) .yt-art strong { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-art p,
    html:not([data-theme="light"]) .yt-art li { color: #b6c2d0; }
    html:not([data-theme="light"]) .yt-art a { color: #ff7b7b; text-decoration-color: rgba(255, 123, 123, 0.4); }
    html:not([data-theme="light"]) .yt-art a:hover { color: #ff9d9d; }
    html:not([data-theme="light"]) .yt-table-wrap { border-color: #263041; }
    html:not([data-theme="light"]) .yt-table-wrap table { background: #171e27; }
    html:not([data-theme="light"]) .yt-table-wrap th { background: #263041; }
    html:not([data-theme="light"]) .yt-table-wrap td { color: #b6c2d0; border-top-color: #222b38; }
    html:not([data-theme="light"]) .yt-table-wrap tr:nth-child(even) td { background: #131922; }
    html:not([data-theme="light"]) .yt-table-wrap td strong { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-callout-tip { background: #0f2318; border-color: #1d4a30; color: #b6c2d0; }
    html:not([data-theme="light"]) .yt-callout-warn { background: #2a2010; border-color: #5a431c; color: #d8cfae; }
    html:not([data-theme="light"]) .yt-callout-note { background: #101c2e; border-color: #1d3a5f; color: #b6c2d0; }
    html:not([data-theme="light"]) .yt-size-box {
        border-color: #ff7b7b;
        background:
            linear-gradient(45deg, rgba(209,0,0,0.16) 25%, transparent 25%, transparent 75%, rgba(209,0,0,0.16) 75%),
            linear-gradient(45deg, rgba(209,0,0,0.16) 25%, #1a2029 25%, #1a2029 75%, rgba(209,0,0,0.16) 75%);
        background-size: 14px 14px;
        background-position: 0 0, 7px 7px;
    }
    html:not([data-theme="light"]) .yt-tool-input { background: #141a22; border-color: #263041; color: #e8edf4; }
    html:not([data-theme="light"]) .yt-tool-input:focus { border-color: #d10000; }
    html:not([data-theme="light"]) .yt-tool-status { color: #9aa8bc; }
    html:not([data-theme="light"]) .yt-updated-badge { background: rgba(209, 0, 0, 0.14); border-color: #5b2020; color: #ff9d9d; }
    html:not([data-theme="light"]) .yt-author-info p { color: #b6c2d0; }
    html:not([data-theme="light"]) .yt-author-info .yt-author-name { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-related-title { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-hub-card .yt-hc-title { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-related-card .yt-rc-title,
    html:not([data-theme="light"]) .yt-hub-card .yt-hc-title { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-related-card .yt-rc-desc,
    html:not([data-theme="light"]) .yt-hub-card .yt-hc-desc { color: #9aa8bc; }
    html:not([data-theme="light"]) .yt-thumb-card .yt-tc-name { color: #e8edf4; }
    html:not([data-theme="light"]) .yt-resize-canvas-wrap canvas { background: #131922; border-color: #263041; }
}

/* forced dark (any system): html[data-theme="dark"] */
html[data-theme="dark"] .yt-hero h1 { color: #e8edf4; }
html[data-theme="dark"] .yt-hero-lead { color: #c9d4e2; }
html[data-theme="dark"] .yt-breadcrumbs,
html[data-theme="dark"] .yt-hero-meta,
html[data-theme="dark"] .yt-size-demo-note { color: #9aa8bc; }
html[data-theme="dark"] .yt-breadcrumbs a { color: #9aa8bc; }
html[data-theme="dark"] .yt-breadcrumbs a:hover { color: #d10000; }
html[data-theme="dark"] .yt-toc,
html[data-theme="dark"] .yt-size-demo,
html[data-theme="dark"] .yt-tool-box,
html[data-theme="dark"] .yt-thumb-card,
html[data-theme="dark"] .yt-related-card,
html[data-theme="dark"] .yt-hub-card,
html[data-theme="dark"] .yt-author-box { background: #171e27; border-color: #263041; }
html[data-theme="dark"] .yt-toc a { color: #c9d4e2; }
html[data-theme="dark"] .yt-toc a:hover { background: rgba(209, 0, 0, 0.12); color: #ff7b7b; }
html[data-theme="dark"] .yt-art h2,
html[data-theme="dark"] .yt-art h3,
html[data-theme="dark"] .yt-art strong { color: #e8edf4; }
html[data-theme="dark"] .yt-art p,
html[data-theme="dark"] .yt-art li { color: #b6c2d0; }
html[data-theme="dark"] .yt-art a { color: #ff7b7b; text-decoration-color: rgba(255, 123, 123, 0.4); }
html[data-theme="dark"] .yt-art a:hover { color: #ff9d9d; }
html[data-theme="dark"] .yt-table-wrap { border-color: #263041; }
html[data-theme="dark"] .yt-table-wrap table { background: #171e27; }
html[data-theme="dark"] .yt-table-wrap th { background: #263041; }
html[data-theme="dark"] .yt-table-wrap td { color: #b6c2d0; border-top-color: #222b38; }
html[data-theme="dark"] .yt-table-wrap tr:nth-child(even) td { background: #131922; }
html[data-theme="dark"] .yt-table-wrap td strong { color: #e8edf4; }
html[data-theme="dark"] .yt-callout-tip { background: #0f2318; border-color: #1d4a30; color: #b6c2d0; }
html[data-theme="dark"] .yt-callout-warn { background: #2a2010; border-color: #5a431c; color: #d8cfae; }
html[data-theme="dark"] .yt-callout-note { background: #101c2e; border-color: #1d3a5f; color: #b6c2d0; }
html[data-theme="dark"] .yt-size-box {
    border-color: #ff7b7b;
    background:
        linear-gradient(45deg, rgba(209,0,0,0.16) 25%, transparent 25%, transparent 75%, rgba(209,0,0,0.16) 75%),
        linear-gradient(45deg, rgba(209,0,0,0.16) 25%, #1a2029 25%, #1a2029 75%, rgba(209,0,0,0.16) 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
}
html[data-theme="dark"] .yt-tool-input { background: #141a22; border-color: #263041; color: #e8edf4; }
html[data-theme="dark"] .yt-tool-input:focus { border-color: #d10000; }
html[data-theme="dark"] .yt-tool-status { color: #9aa8bc; }
html[data-theme="dark"] .yt-updated-badge { background: rgba(209, 0, 0, 0.14); border-color: #5b2020; color: #ff9d9d; }
html[data-theme="dark"] .yt-author-info p { color: #b6c2d0; }
html[data-theme="dark"] .yt-author-info .yt-author-name { color: #e8edf4; }
html[data-theme="dark"] .yt-related-title { color: #e8edf4; }
html[data-theme="dark"] .yt-related-card .yt-rc-title,
html[data-theme="dark"] .yt-hub-card .yt-hc-title { color: #e8edf4; }
html[data-theme="dark"] .yt-related-card .yt-rc-desc,
html[data-theme="dark"] .yt-hub-card .yt-hc-desc { color: #9aa8bc; }
html[data-theme="dark"] .yt-thumb-card .yt-tc-name { color: #e8edf4; }
html[data-theme="dark"] .yt-resize-canvas-wrap canvas { background: #131922; border-color: #263041; }

/* ---------- STICKY MOBILE CTA (blogs only) ---------- */
.yt-sticky-cta {
    display: none;
}

@media (max-width: 767px) {
    .yt-sticky-cta {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        align-items: center;
        justify-content: center;
        gap: 9px;
        background: #d10000;
        color: #ffffff;
        font-weight: 800;
        font-size: 15px;
        padding: 14px 18px;
        border-radius: 14px;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(209, 0, 0, 0.35);
        min-height: 50px;
    }
    .yt-sticky-cta:hover { color: #ffffff; background: #a80d0d; }
    .yt-article { padding-bottom: 92px; }
}

/* ---------- FOOTER EXTRA COLUMNS (safe additive) ---------- */
@media (max-width: 767px) {
    .footer-links-side { row-gap: 18px; }
}
