/*
 * Shared article rendering for TinyMCE, the editor preview and post.php.
 * Keep presentation rules for saved article HTML in this file so the editor
 * and the published article use the same rendering contract.
 */

.ti-article-content {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    --tw-prose-body: #1f2937;
    --tw-prose-headings: #0f172a;
    --tw-prose-lead: #374151;
    --tw-prose-links: #2563eb;
    --tw-prose-bold: #111827;
    --tw-prose-counters: #4b5563;
    --tw-prose-bullets: #64748b;
    --tw-prose-code: #111827;
}

.ti-article-content :where(p, ul, ol, li, blockquote):not(:where(.not-prose, .not-prose *)) {
    text-align: left;
}

.ti-article-content :where([align="center" i], [style*="text-align: center" i], [style*="text-align:center" i]):not(:where(.not-prose, .not-prose *)) {
    text-align: center !important;
}

.ti-article-content :where([align="right" i], [style*="text-align: right" i], [style*="text-align:right" i]):not(:where(.not-prose, .not-prose *)) {
    text-align: right !important;
}

.ti-article-content :where([align="justify" i], [style*="text-align: justify" i], [style*="text-align:justify" i]):not(:where(.not-prose, .not-prose *)) {
    text-align: justify !important;
}

.ti-article-content :where([align="left" i], [style*="text-align: left" i], [style*="text-align:left" i]):not(:where(.not-prose, .not-prose *)) {
    text-align: left !important;
}

.ti-article-content :where(a, button, span)[align="center" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(a, button, span)[style*="text-align: center" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(a, button, span)[style*="text-align:center" i]:not(:where(.not-prose, .not-prose *)) {
    display: flex !important;
    width: fit-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ti-article-content :where(div, section, article, aside, figure, table, img, video, iframe, object, embed)[align="center" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(div, section, article, aside, figure, table, img, video, iframe, object, embed)[style*="text-align: center" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(div, section, article, aside, figure, table, img, video, iframe, object, embed)[style*="text-align:center" i]:not(:where(.not-prose, .not-prose *)) {
    margin-left: auto !important;
    margin-right: auto !important;
}

.ti-article-content :where(a, button, span)[align="right" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(a, button, span)[style*="text-align: right" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(a, button, span)[style*="text-align:right" i]:not(:where(.not-prose, .not-prose *)) {
    display: flex !important;
    width: fit-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ti-article-content :where(div, section, article, aside, figure, table, img, video, iframe, object, embed)[align="right" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(div, section, article, aside, figure, table, img, video, iframe, object, embed)[style*="text-align: right" i]:not(:where(.not-prose, .not-prose *)),
.ti-article-content :where(div, section, article, aside, figure, table, img, video, iframe, object, embed)[style*="text-align:right" i]:not(:where(.not-prose, .not-prose *)) {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ti-article-content :where(p):not(:where(.not-prose, .not-prose *)) {
    color: #1f2937;
    font-size: 1.08rem;
    line-height: 1.85;
    margin-top: 1.05em;
    margin-bottom: 1.05em;
}

.ti-article-content :where(h1, h2, h3, h4, h5, h6):not(:where(.not-prose, .not-prose *)) {
    color: #0f172a;
    letter-spacing: 0;
    margin-top: 1.7em;
    margin-bottom: .7em;
    text-align: left;
}

.ti-article-content :where(a):not(:where(.not-prose, .not-prose *)) {
    color: #2563eb;
    text-underline-offset: 3px;
}

.ti-article-content :where(pre):not(:where(.not-prose, .not-prose *)) {
    background: #0f172a;
    color: #e5e7eb;
}

.ti-article-content :where(table):not(:where(.not-prose, .not-prose *)) {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border: 1px solid #cbd5e1;
    background: #eef3f6;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.ti-article-content :where(table[align="center"]):not(:where(.not-prose, .not-prose *)) {
    margin-left: auto;
    margin-right: auto;
}

.ti-article-content :where(table[align="right"]):not(:where(.not-prose, .not-prose *)) {
    margin-left: auto;
    margin-right: 0;
}

.ti-article-content :where(th, td):not(:where(.not-prose, .not-prose *)) {
    border: 1px solid #cbd5e1;
    padding: 14px 16px;
    color: #020617;
    text-align: left;
    vertical-align: middle;
}

.ti-article-content :where(th):not(:where(.not-prose, .not-prose *)) {
    background: #eef3f6;
    font-weight: 800;
}

.ti-article-content :where(td p, th p):not(:where(.not-prose, .not-prose *)) {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.ti-article-content :where(img, video, audio, iframe, object, embed):not(:where(.not-prose, .not-prose *)) {
    max-width: 100%;
}

.ti-article-content :where(video, audio):not(:where(.not-prose, .not-prose *)) {
    width: 100%;
}

.ti-article-content :where(iframe):not(:where(.not-prose, .not-prose *)) {
    border: 0;
}

.ti-article-content .ti-content-block {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
    background: #f8fafc;
    color: #0f172a;
}

.ti-article-content .ti-content-block p {
    margin: 8px 0 0 !important;
    line-height: 1.7;
}

.ti-article-content .ti-content-block strong {
    color: #0f172a;
}

.ti-article-content .ti-block-info {
    border-left: 5px solid #2563eb;
    background: #eff6ff;
}

.ti-article-content .ti-block-tip {
    border-left: 5px solid #0d9488;
    background: #ecfdf5;
}

.ti-article-content .ti-block-warning {
    border-left: 5px solid #f59e0b;
    background: #fffbeb;
}

.ti-article-content .ti-block-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
}

.ti-article-content .ti-block-cta strong,
.ti-article-content .ti-block-cta p {
    color: #fff !important;
}

.ti-article-content .ti-block-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: #1d4ed8 !important;
    text-decoration: none !important;
    font-weight: 800;
    padding: 10px 14px;
    white-space: nowrap;
}

.ti-article-content .ti-tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-color: color-mix(in srgb, var(--ti-tool-accent, #2563eb) 22%, #dbe5ef);
    border-radius: 22px;
    padding: 20px 22px;
    margin: 24px 0;
    background: linear-gradient(135deg, #fff 0%, var(--ti-tool-soft, #eff6ff) 100%);
    box-shadow: 0 18px 45px var(--ti-tool-glow, rgba(37, 99, 235, .14));
    color: #0f172a !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ti-article-content .ti-tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--ti-tool-accent, #2563eb);
    box-shadow: 0 24px 55px var(--ti-tool-glow, rgba(37, 99, 235, .2));
    text-decoration: none !important;
}

.ti-article-content .ti-tool-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--ti-tool-accent, #2563eb), var(--ti-tool-accent-2, #14b8a6));
}

.ti-article-content .ti-tool-card > span:first-child,
.ti-article-content .ti-tool-card-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ti-tool-accent, #2563eb), var(--ti-tool-accent-2, #14b8a6));
    box-shadow: 0 12px 26px var(--ti-tool-glow, rgba(37, 99, 235, .22));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    flex-shrink: 0;
}

.ti-article-content .ti-tool-card-body {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.ti-article-content .ti-tool-card-kicker {
    color: var(--ti-tool-accent, #2563eb);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ti-article-content .ti-tool-card strong {
    display: block;
    color: #0f172a !important;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 900;
}

.ti-article-content .ti-tool-card small {
    display: block;
    color: #475569;
    font-size: .95rem;
    line-height: 1.55;
}

.ti-article-content .ti-tool-card-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .85);
    color: var(--ti-tool-accent, #2563eb);
    font-size: .8rem;
    font-weight: 900;
    white-space: nowrap;
}

.ti-tool-card--pc-configurator { --ti-tool-accent: #4f46e5; --ti-tool-accent-2: #06b6d4; --ti-tool-soft: #eef2ff; --ti-tool-glow: rgba(79, 70, 229, .18); }
.ti-tool-card--scam-checker { --ti-tool-accent: #dc2626; --ti-tool-accent-2: #f97316; --ti-tool-soft: #fff1f2; --ti-tool-glow: rgba(220, 38, 38, .16); }
.ti-tool-card--password-strength { --ti-tool-accent: #0d9488; --ti-tool-accent-2: #10b981; --ti-tool-soft: #ecfdf5; --ti-tool-glow: rgba(13, 148, 136, .16); }
.ti-tool-card--subnet-calculator { --ti-tool-accent: #2563eb; --ti-tool-accent-2: #06b6d4; --ti-tool-soft: #eff6ff; --ti-tool-glow: rgba(37, 99, 235, .16); }
.ti-tool-card--chmod-calculator { --ti-tool-accent: #ea580c; --ti-tool-accent-2: #f59e0b; --ti-tool-soft: #fff7ed; --ti-tool-glow: rgba(234, 88, 12, .16); }
.ti-tool-card--base-converter { --ti-tool-accent: #7c3aed; --ti-tool-accent-2: #d946ef; --ti-tool-soft: #f5f3ff; --ti-tool-glow: rgba(124, 58, 237, .16); }
.ti-tool-card--data-calculator { --ti-tool-accent: #e11d48; --ti-tool-accent-2: #ec4899; --ti-tool-soft: #fff1f2; --ti-tool-glow: rgba(225, 29, 72, .15); }
.ti-tool-card--wifi-qr { --ti-tool-accent: #059669; --ti-tool-accent-2: #22c55e; --ti-tool-soft: #ecfdf5; --ti-tool-glow: rgba(5, 150, 105, .16); }
.ti-tool-card--dns-lookup { --ti-tool-accent: #c026d3; --ti-tool-accent-2: #ec4899; --ti-tool-soft: #fdf4ff; --ti-tool-glow: rgba(192, 38, 211, .15); }
.ti-tool-card--internet-speed { --ti-tool-accent: #0284c7; --ti-tool-accent-2: #06b6d4; --ti-tool-soft: #f0f9ff; --ti-tool-glow: rgba(2, 132, 199, .16); }

.ti-article-content .ti-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 24px 0;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.ti-article-content .ti-download-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
}

.ti-article-content .ti-download-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.ti-article-content .ti-download-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 14px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    white-space: nowrap;
}

.ti-article-content .ti-content-image {
    margin: 1.75rem 0;
    position: relative;
    clear: both;
}

.ti-article-content .ti-content-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Zarovnanie a obtekanie textu */
.ti-article-content .ti-content-image.ti-img-center {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.ti-article-content .ti-content-image.ti-img-float-left {
    float: left;
    margin: 0.5rem 1.75rem 1.25rem 0;
    max-width: 48%;
    clear: left;
}

.ti-article-content .ti-content-image.ti-img-float-right {
    float: right;
    margin: 0.5rem 0 1.25rem 1.75rem;
    max-width: 48%;
    clear: right;
}

.ti-article-content .ti-content-image.ti-img-full {
    width: 100%;
    max-width: 100% !important;
    clear: both;
}

.ti-article-content .ti-content-image figcaption {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.dark .ti-article-content .ti-content-image figcaption {
    color: #94a3b8;
}

/* Ochrana pred prepadnutím plávajúcich obrázkov cez nadpisy */
.ti-article-content::after,
.ti-article-content h1::before,
.ti-article-content h2::before,
.ti-article-content h3::before,
.ti-article-content h4::before,
.ti-article-content .ti-content-block::before,
.ti-article-content .ti-table-wrap::before {
    content: "";
    display: table;
    clear: both;
}

/* Štýly filtrov a efektov obrázkov */
.ti-filter-grayscale { filter: grayscale(100%) !important; }
.ti-filter-contrast { filter: contrast(135%) brightness(105%) !important; }
.ti-filter-warm { filter: sepia(25%) saturate(130%) brightness(102%) !important; }
.ti-filter-tech { filter: hue-rotate(190deg) saturate(140%) contrast(110%) !important; }
.ti-filter-sepia { filter: sepia(85%) !important; }

/* Zaoblenia a tiene */
.ti-img-radius-none img { border-radius: 0 !important; }
.ti-img-radius-sm img { border-radius: 8px !important; }
.ti-img-radius-md img { border-radius: 14px !important; }
.ti-img-radius-lg img { border-radius: 24px !important; }
.ti-img-radius-full img { border-radius: 9999px !important; }

.ti-img-shadow-none img { box-shadow: none !important; }
.ti-img-shadow-soft img { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important; }
.ti-img-shadow-deep img { box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25) !important; }
.ti-img-shadow-glow img { box-shadow: 0 12px 32px rgba(20, 71, 230, 0.28) !important; }

.ti-img-border-tech img { border: 2px solid #2563eb !important; }
.ti-img-border-subtle img { border: 1px solid #cbd5e1 !important; }
.dark .ti-img-border-subtle img { border-color: #334155 !important; }

/* Galérie - základ a stĺpce */
.ti-article-content .ti-inline-gallery::before,
.ti-article-content .ti-inline-gallery::after,
.ti-article-content .ti-gallery-collage::before,
.ti-article-content .ti-gallery-collage::after,
.ti-article-content .ti-gallery-carousel::before,
.ti-article-content .ti-gallery-carousel::after {
    display: none !important;
    content: none !important;
}

.ti-article-content .ti-inline-gallery {
    display: grid;
    gap: 14px;
    margin: 1.75rem 0;
    clear: both;
}

.ti-article-content .ti-inline-gallery.ti-gallery-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ti-article-content .ti-inline-gallery.ti-gallery-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ti-article-content .ti-inline-gallery.ti-gallery-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ti-article-content .ti-inline-gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.ti-article-content .ti-inline-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
    transition: transform 0.25s ease;
}

.ti-article-content .ti-inline-gallery figure:hover img {
    transform: scale(1.025);
}

.ti-article-content .ti-inline-gallery figcaption {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
}

/* Galéria: Magazínová koláž (Collage) */
.ti-article-content .ti-gallery-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
    gap: 12px;
    margin: 1.75rem 0;
    clear: both;
}
.ti-article-content .ti-gallery-collage figure {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
}
.ti-article-content .ti-gallery-collage figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.ti-article-content .ti-gallery-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    margin: 0;
}

/* Galéria: Carousel / Posuvný pás */
.ti-article-content .ti-gallery-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin: 1.75rem 0;
    clear: both;
}
.ti-article-content .ti-gallery-carousel::-webkit-scrollbar {
    height: 6px;
}
.ti-article-content .ti-gallery-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.dark .ti-article-content .ti-gallery-carousel::-webkit-scrollbar-thumb {
    background: #334155;
}
.ti-article-content .ti-gallery-carousel figure {
    flex: 0 0 75%;
    max-width: 480px;
    margin: 0;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
}
.ti-article-content .ti-gallery-carousel img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
}

/* Interaktívny Before / After porovnávač */
.ti-article-content .ti-before-after {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 2rem 0;
    user-select: none;
    touch-action: pan-y;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    clear: both;
    cursor: ew-resize;
}
.ti-article-content .ti-before-after img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
    pointer-events: none;
}
.ti-article-content .ti-before-after-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid #ffffff;
    box-shadow: 3px 0 12px rgba(0,0,0,0.35);
    pointer-events: none;
}
.ti-article-content .ti-before-after-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    width: 100%;
    object-fit: cover;
}
.ti-article-content .ti-before-after-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    color: #1e40af;
    cursor: ew-resize;
    pointer-events: none;
    z-index: 10;
}
.ti-article-content .ti-before-after-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
}
.ti-article-content .ti-before-after-label--left { left: 12px; }
.ti-article-content .ti-before-after-label--right { right: 12px; }

@media (max-width: 640px) {
    .ti-article-content .ti-inline-gallery.ti-gallery-cols-3,
    .ti-article-content .ti-inline-gallery.ti-gallery-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ti-article-content .ti-gallery-collage {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .ti-article-content .ti-gallery-collage figure:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    .ti-article-content .ti-content-image.ti-img-float-left,
    .ti-article-content .ti-content-image.ti-img-float-right {
        float: none;
        max-width: 100% !important;
        margin: 1.25rem 0;
    }
}

.ti-article-content .ti-related-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 24px 0;
    background: linear-gradient(135deg, #fff, #f8fafc);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    color: #0f172a !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ti-article-content .ti-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--ti-related-accent, #2563eb);
    box-shadow: 0 18px 42px var(--ti-related-glow, rgba(37, 99, 235, .14));
    text-decoration: none !important;
}

.ti-article-content .ti-related-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--ti-related-accent, #2563eb), var(--ti-related-accent-2, #14b8a6));
}

.ti-article-content .ti-related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ti-related-accent, #2563eb), var(--ti-related-accent-2, #14b8a6));
    box-shadow: 0 10px 22px var(--ti-related-glow, rgba(37, 99, 235, .18));
    color: #fff;
    flex-shrink: 0;
}

.ti-article-content .ti-related-image {
    position: relative;
    width: 132px;
    min-height: 92px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.ti-article-content .ti-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
}

.ti-article-content .ti-related-body {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.ti-article-content .ti-related-kicker {
    color: var(--ti-related-accent, #2563eb);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ti-article-content .ti-related-card strong {
    display: block;
    color: #0f172a !important;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 900;
}

.ti-article-content .ti-related-card small {
    display: block;
    color: #475569;
    font-size: .92rem;
    line-height: 1.55;
}

.ti-article-content .ti-related-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: var(--ti-related-accent, #2563eb);
    font-size: .8rem;
    font-weight: 900;
}

.ti-related-card--article { --ti-related-accent: #2563eb; --ti-related-accent-2: #06b6d4; --ti-related-glow: rgba(37, 99, 235, .15); }
.ti-related-card--knowledge { --ti-related-accent: #7c3aed; --ti-related-accent-2: #d946ef; --ti-related-glow: rgba(124, 58, 237, .15); }

.ti-article-content .ti-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.ti-article-content .ti-mini-card {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.ti-article-content .ti-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.ti-article-content .ti-faq-item strong {
    display: block;
    margin-bottom: 6px;
}

.ti-article-content .techtools-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 16px 22px;
    margin: 20px 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #32adba, #0b6f91);
    box-shadow: 0 10px 30px rgba(50, 173, 186, .35);
    color: #fff !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ti-article-content .techtools-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(50, 173, 186, .5);
}

.ti-article-content .techtools-button:active {
    transform: scale(.97);
}

.ti-article-content .techtools-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    font-size: 22px;
    flex-shrink: 0;
}

.ti-article-content .techtools-button strong {
    display: block;
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.ti-article-content .techtools-button small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    opacity: .9;
}

.ti-post-featured-figure img,
.ti-article-content :where(img):not(:where(.not-prose, .not-prose *, .ti-related-card *, .ti-ad-wrap *)) {
    cursor: zoom-in;
    transition: opacity .18s ease, transform .18s ease;
}

.ti-post-featured-figure img:hover,
.ti-article-content :where(img):not(:where(.not-prose, .not-prose *, .ti-related-card *, .ti-ad-wrap *)):hover {
    opacity: .94;
}

.dark .ti-article-content {
    color: #e5e7eb;
    --tw-prose-body: #d1d5db;
    --tw-prose-headings: #f9fafb;
    --tw-prose-lead: #d1d5db;
    --tw-prose-bold: #fff;
    --tw-prose-code: #fff;
}

.dark .ti-article-content :where(p):not(:where(.not-prose, .not-prose *)) {
    color: #d1d5db;
}

.dark .ti-article-content :where(h1, h2, h3, h4, h5, h6):not(:where(.not-prose, .not-prose *)) {
    color: #f9fafb !important;
}

.dark .ti-article-content :where(h1, h2, h3, h4, h5, h6):not(:where(.not-prose, .not-prose *)) :where(span, strong, em, b, i, mark):not(:where(.not-prose, .not-prose *)) {
    color: inherit !important;
}

.dark .ti-article-content :where(table):not(:where(.not-prose, .not-prose *)) {
    border-color: #475569;
    background: #111827;
}

.dark .ti-article-content :where(th, td):not(:where(.not-prose, .not-prose *)) {
    border-color: #475569;
    color: #e5e7eb;
}

.dark .ti-article-content :where(th):not(:where(.not-prose, .not-prose *)) {
    background: #1f2937;
}

.dark .ti-article-content .ti-content-block,
.dark .ti-article-content .ti-mini-card,
.dark .ti-article-content .ti-download-card {
    border-color: #374151;
    background: #111827;
    color: #e5e7eb;
}

.dark .ti-article-content .ti-tool-card {
    border-color: #374151;
    border-color: color-mix(in srgb, var(--ti-tool-accent, #60a5fa) 36%, #374151);
    background: linear-gradient(135deg, #0f172a 0%, #111827 58%, rgba(15, 23, 42, .96) 100%);
    color: #e5e7eb !important;
}

.dark .ti-article-content .ti-tool-card strong,
.dark .ti-article-content .ti-related-card strong,
.dark .ti-article-content .ti-content-block strong,
.dark .ti-article-content .ti-mini-card strong,
.dark .ti-article-content .ti-download-card strong {
    color: #fff !important;
}

.dark .ti-article-content .ti-tool-card small,
.dark .ti-article-content .ti-related-card small {
    color: #cbd5e1;
}

.dark .ti-article-content .ti-tool-card-action {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .86);
}

.dark .ti-article-content .ti-related-card {
    border-color: #374151;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #e5e7eb !important;
}

.dark .ti-article-content .ti-block-info { background: rgba(37, 99, 235, .15); }
.dark .ti-article-content .ti-block-tip { background: rgba(13, 148, 136, .15); }
.dark .ti-article-content .ti-block-warning { background: rgba(245, 158, 11, .14); }

@media (max-width: 700px) {
    .ti-article-content .ti-block-cta,
    .ti-article-content .ti-tool-card,
    .ti-article-content .ti-download-card,
    .ti-article-content .ti-related-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .ti-article-content .ti-related-image {
        width: 100%;
        min-height: 160px;
    }

    .ti-article-content .ti-inline-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .ti-article-content .ti-tool-card-action {
        margin-left: 0;
    }

    .ti-article-content .ti-columns-2 {
        grid-template-columns: 1fr;
    }

    .ti-article-content .ti-pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .ti-article-content .ti-product-box {
        flex-direction: column;
        align-items: stretch;
    }

    .ti-article-content .ti-product-media {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }
}

/* ==========================================================================
   10. REDAKČNÝ BOX: KLADY A ZÁPORY (PROS & CONS / VERDIKT)
   ========================================================================== */
.ti-article-content .ti-pros-cons {
    margin: 28px 0;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 24px;
    overflow: hidden;
}

.ti-article-content .ti-pros-cons-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.ti-article-content .ti-pros-cons-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #eff6ff;
    color: #2563eb;
}

.ti-article-content .ti-pros-cons-title {
    margin: 6px 0 0 0 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.ti-article-content .ti-pros-cons-score-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.ti-article-content .ti-pros-cons-score {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.ti-article-content .ti-pros-cons-verdict {
    margin: 16px 0 !important;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.ti-article-content .ti-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.ti-article-content .ti-pros-box,
.ti-article-content .ti-cons-box {
    border-radius: 18px;
    padding: 18px;
}

.ti-article-content .ti-pros-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ti-article-content .ti-cons-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.ti-article-content .ti-pros-box h4,
.ti-article-content .ti-cons-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ti-article-content .ti-pros-box h4 {
    color: #059669 !important;
}

.ti-article-content .ti-cons-box h4 {
    color: #dc2626 !important;
}

.ti-article-content .ti-pros-list,
.ti-article-content .ti-cons-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ti-article-content .ti-pros-list li,
.ti-article-content .ti-cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    color: #334155;
    margin: 0 !important;
    padding: 0 !important;
}

.ti-article-content .ti-pros-list li i {
    color: #059669;
    margin-top: 2px;
    flex-shrink: 0;
}

.ti-article-content .ti-cons-list li i {
    color: #dc2626;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   11. INTERAKTÍVNY BENCHMARK & VÝKONNOSTNÝ GRAF (MINI BAR CHART)
   ========================================================================== */
.ti-article-content .ti-benchmark-card {
    margin: 28px 0;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 24px;
    overflow: hidden;
}

.ti-article-content .ti-bench-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ti-article-content .ti-bench-unit {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
}

.ti-article-content .ti-bench-title {
    margin: 6px 0 0 0 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.ti-article-content .ti-bench-subtitle {
    margin: 4px 0 0 0 !important;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.ti-article-content .ti-bench-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.ti-article-content .ti-bench-row-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.ti-article-content .ti-bench-row--highlight .ti-bench-row-info {
    color: #0f172a;
    font-weight: 800;
}

.ti-article-content .ti-bench-track {
    width: 100%;
    height: 12px;
    border-radius: 9999px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.ti-article-content .ti-bench-fill {
    height: 100%;
    border-radius: 9999px;
    background: #94a3b8;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ti-article-content .ti-bench-row--highlight .ti-bench-fill {
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.ti-article-content .ti-bench-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #2563eb;
    color: #ffffff;
    margin-left: 6px;
}

.ti-article-content .ti-bench-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   12. KARTA PRODUKTU / CENOVÝ RADAR (SPEC & PRICE BOX)
   ========================================================================== */
.ti-article-content .ti-product-box {
    margin: 28px 0;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 24px;
    overflow: hidden;
    display: flex;
    gap: 24px;
    align-items: center;
}

.ti-article-content .ti-product-media {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.ti-article-content .ti-product-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 !important;
}

.ti-article-content .ti-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

.ti-article-content .ti-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.ti-article-content .ti-product-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.ti-article-content .ti-product-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
}

.ti-article-content .ti-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #f59e0b;
}

.ti-article-content .ti-product-name {
    margin: 0 0 10px 0 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.ti-article-content .ti-product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    font-size: 12px;
}

.ti-article-content .ti-spec-item {
    display: flex;
    gap: 6px;
    line-height: 1.4;
}

.ti-article-content .ti-spec-key {
    color: #64748b;
    font-weight: 500;
}

.ti-article-content .ti-spec-val {
    color: #1e293b;
    font-weight: 700;
}

.ti-article-content .ti-product-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.ti-article-content .ti-product-price-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.ti-article-content .ti-product-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ti-article-content .ti-product-price {
    font-size: 24px;
    font-weight: 900;
    color: #2563eb;
    line-height: 1.1;
}

.ti-article-content .ti-product-old-price {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}

.ti-article-content .ti-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.ti-article-content .ti-product-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* ==========================================================================
   13. DARK MODE PRE NOVÉ BLOKY
   ========================================================================== */
.dark .ti-article-content .ti-pros-cons,
.dark .ti-article-content .ti-benchmark-card,
.dark .ti-article-content .ti-product-box {
    border-color: #374151;
    background: #111827;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark .ti-article-content .ti-pros-cons-header,
.dark .ti-article-content .ti-bench-header,
.dark .ti-article-content .ti-product-action {
    border-color: #1f2937;
}

.dark .ti-article-content .ti-pros-cons-title,
.dark .ti-article-content .ti-bench-title,
.dark .ti-article-content .ti-product-name {
    color: #f9fafb !important;
}

.dark .ti-article-content .ti-pros-cons-verdict {
    background: #1f2937;
    border-color: #374151;
    color: #cbd5e1;
}

.dark .ti-article-content .ti-pros-box {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.dark .ti-article-content .ti-cons-box {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.dark .ti-article-content .ti-pros-list li,
.dark .ti-article-content .ti-cons-list li {
    color: #e2e8f0;
}

.dark .ti-article-content .ti-bench-unit {
    background: #1f2937;
    color: #cbd5e1;
}

.dark .ti-article-content .ti-bench-row-info {
    color: #cbd5e1;
}

.dark .ti-article-content .ti-bench-row--highlight .ti-bench-row-info {
    color: #f9fafb;
}

.dark .ti-article-content .ti-bench-track {
    background: #1f2937;
}

.dark .ti-article-content .ti-bench-fill {
    background: #475569;
}

.dark .ti-article-content .ti-bench-footer {
    border-color: #1f2937;
    color: #64748b;
}

.dark .ti-article-content .ti-product-media {
    background: #1f2937;
    border-color: #374151;
}

.dark .ti-article-content .ti-product-specs {
    background: #1f2937;
    border-color: #374151;
}

.dark .ti-article-content .ti-spec-key {
    color: #94a3b8;
}

.dark .ti-article-content .ti-spec-val {
    color: #f1f5f9;
}

.dark .ti-article-content .ti-product-price {
    color: #60a5fa;
}
