/* TechVistaLab article styles for the markup produced by wpFormat (format.ts). */
:root { --tvl-accent: #0b6bcb; --tvl-ink: #1f2933; --tvl-muted: #5b6770; --tvl-line: #e3e8ee; --tvl-soft: #f4f7fb; --tvl-good: #1a7f4b; --tvl-bad: #c2352b; }

.entry-content { font-size: 17.5px; line-height: 1.75; color: var(--tvl-ink); }
.entry-content p, .entry-content li { color: var(--tvl-ink); }
.entry-content h2 { margin-top: 2.2em; scroll-margin-top: 90px; }

.tvl-badge { display: inline-block; background: var(--tvl-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }

/* Table of contents */
.tvl-toc { background: var(--tvl-soft); border: 1px solid var(--tvl-line); border-radius: 12px; padding: 18px 24px; margin: 1.6em 0; }
.tvl-toc-title, .tvl-verdict-title { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--tvl-muted); margin: 0 0 8px; }
.tvl-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.tvl-toc li { margin: 4px 0; font-size: 15.5px; break-inside: avoid; }
.tvl-toc a { text-decoration: none; }
@media (max-width: 640px) { .tvl-toc ol { columns: 1; } }

/* Top picks box */
.tvl-verdict { border: 2px solid var(--tvl-accent); border-radius: 14px; padding: 20px 22px; margin: 1.8em 0; background: #fff; }
.tvl-verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tvl-verdict-card { background: var(--tvl-soft); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tvl-verdict-card p { margin: 0; line-height: 1.4; }
.tvl-verdict-name { font-weight: 700; font-size: 16px; margin-top: 8px !important; }
.tvl-verdict-price { color: var(--tvl-accent); font-weight: 700; }
.tvl-verdict-for { color: var(--tvl-muted); font-size: 14.5px; }
.tvl-verdict-link { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* Product header */
.tvl-pickhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 6px; }
.tvl-tagline { color: var(--tvl-muted); font-style: italic; }
.tvl-price { display: inline-block; background: var(--tvl-soft); border: 1px solid var(--tvl-line); border-radius: 8px; padding: 6px 12px; font-size: 15px; margin: 4px 0 14px; }
.tvl-price em { font-style: normal; font-weight: 600; }

/* Pros / cons */
.tvl-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
@media (max-width: 640px) { .tvl-proscons { grid-template-columns: 1fr; } }
.tvl-pros, .tvl-cons { border-radius: 10px; padding: 14px 18px; border: 1px solid var(--tvl-line); }
.tvl-pros { background: #eef8f2; border-color: #c9e8d6; }
.tvl-cons { background: #fdf0ee; border-color: #f3cdc8; }
.tvl-pc-title { font-weight: 700; margin: 0 0 6px; }
.tvl-pros .tvl-pc-title { color: var(--tvl-good); }
.tvl-cons .tvl-pc-title { color: var(--tvl-bad); }
.tvl-pros ul, .tvl-cons ul { list-style: none; margin: 0; padding: 0; }
.tvl-pros li, .tvl-cons li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 15.5px; line-height: 1.55; }
.tvl-pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--tvl-good); font-weight: 700; }
.tvl-cons li::before { content: "\2715"; position: absolute; left: 0; color: var(--tvl-bad); font-weight: 700; }

/* Callouts */
.tvl-callout { border-left: 4px solid var(--tvl-accent); background: var(--tvl-soft); border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 1em 0; }
.tvl-callout strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--tvl-accent); }
.tvl-callout p { margin: 2px 0 0; }
.tvl-take { border-left-color: #e8a317; background: #fff8e6; }
.tvl-take strong { color: #9a6700; }

/* Score bars */
.tvl-score { display: flex; align-items: center; gap: 8px; min-width: 90px; }
.tvl-bar { flex: 1; height: 8px; background: var(--tvl-line); border-radius: 4px; overflow: hidden; }
.tvl-bar span { display: block; height: 100%; background: var(--tvl-accent); border-radius: 4px; }
.tvl-score b { font-size: 14px; min-width: 2.2em; text-align: right; }

/* Buy button */
.tvl-buy { margin: 1.4em 0 .6em; }
.tvl-buy .wp-block-button__link { display: block; text-align: center; background: #ff9900; color: #111; font-weight: 700; border-radius: 10px; padding: 14px 20px; }
.tvl-buy .wp-block-button__link:hover { background: #e68a00; color: #111; }

/* Tables */
.entry-content .wp-block-table table { font-size: 15px; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: 10px 12px; }
.entry-content .wp-block-table thead th { background: var(--tvl-ink); color: #fff; }

/* Product header: photo left, badge / price / button right (stacked on phones) */
.entry-content .tvl-prodhead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; margin: 10px 0 22px; }
.entry-content .tvl-prodhead.tvl-nophoto { grid-template-columns: 1fr; }
@media (max-width: 720px) { .entry-content .tvl-prodhead { grid-template-columns: 1fr; gap: 14px; } }
.entry-content .tvl-prodimg { margin: 0; border: 1px solid var(--tvl-line); border-radius: 14px; background: #fff; padding: 12px; overflow: hidden; }
.entry-content .tvl-prodimg img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; margin: 0 auto; }
.tvl-prodinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tvl-prodinfo .tvl-pickhead { margin: 0; }
.tvl-prodinfo .tvl-price { margin: 0; font-size: 16px; }
.tvl-cta { display: inline-block; background: #ff9900; color: #111 !important; font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 18px; border-radius: 10px; }
.tvl-cta:hover { background: #e68a00; }
