/* ============================================================================
   YugaSpecs — Article page (single.php) for blog posts / Buying Guides listicles.
   Self-contained editorial layout. Inherits the --ygt-* tokens from app.css.
   Prefix: .yart- (article) / .yart-cm (comments). No app.js, no SPA chrome.
   ========================================================================== */

.ygt-article-body {
	margin: 0;
	background: var(--ygt-bg, #F8FAFC);
	color: var(--ygt-text, #0F172A);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.ygt-article-body * { box-sizing: border-box; }

/* ── Top nav ─────────────────────────────────────────────────────────────── */
.yart-nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--ygt-border, #E2E8F0);
}
.yart-nav__inner {
	max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
	height: 62px; display: flex; align-items: center; gap: 1.25rem;
}
.yart-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ygt-text, #0F172A); font-weight: 800; }
.yart-brand__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 9px; color: #fff;
	background: linear-gradient(135deg, var(--ygt-primary, #6366F1), var(--ygt-primary-dark, #4F46E5));
	box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}
.yart-brand__text { font-size: 1.06rem; letter-spacing: -.02em; }
.yart-brand__img { height: 30px; width: auto; display: block; }
.yart-nav__links { display: flex; align-items: center; gap: 1.4rem; margin-left: .75rem; }
.yart-nav__links a { text-decoration: none; color: var(--ygt-text-secondary, #64748B); font-weight: 600; font-size: .92rem; transition: color .15s ease; }
.yart-nav__links a:hover { color: var(--ygt-primary, #6366F1); }
.yart-nav__search { margin-left: auto; display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem; background: var(--ygt-bg, #F1F5F9); border: 1px solid var(--ygt-border, #E2E8F0); border-radius: 999px; color: var(--ygt-text-muted, #94A3B8); transition: border-color .15s ease, box-shadow .15s ease; }
.yart-nav__search:focus-within { border-color: var(--ygt-primary-light, #818CF8); box-shadow: 0 0 0 3px var(--ygt-primary-bg, rgba(99,102,241,.1)); }
.yart-nav__search input { border: 0; background: transparent; outline: none; font: inherit; font-size: .9rem; color: var(--ygt-text, #0F172A); width: 150px; }

/* ── Layout column ───────────────────────────────────────────────────────── */
.yart-main { max-width: 720px; margin: 0 auto; padding: 2.4rem 1.25rem 1rem; }

/* ── Article head ────────────────────────────────────────────────────────── */
.yart__cat {
	display: inline-block; text-decoration: none;
	font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
	color: var(--ygt-primary, #6366F1); background: var(--ygt-primary-bg, rgba(99,102,241,.1));
	padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.yart__title {
	margin: 0 0 1rem; font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.12;
	font-weight: 900; letter-spacing: -.025em; color: var(--ygt-text, #0F172A);
}
.yart__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: var(--ygt-text-secondary, #64748B); font-size: .9rem; }
.yart__author { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.yart__avatar { border-radius: 50%; display: block; }
.yart__by { font-weight: 700; color: var(--ygt-text, #0F172A); transition: color .15s ease; }
.yart__author:hover .yart__by { color: var(--ygt-primary, #6366F1); }
.yart__date { color: inherit; text-decoration: none; transition: color .15s ease; }
.yart__date:hover { color: var(--ygt-primary, #6366F1); }
.yart__dot { color: var(--ygt-text-muted, #94A3B8); }

/* ── Hero image ──────────────────────────────────────────────────────────── */
.yart__hero { margin: 1.8rem 0 0; }
.yart__hero img {
	display: block; width: 100%; max-height: 460px; object-fit: cover;
	border-radius: 16px; border: 1px solid var(--ygt-border, #E2E8F0);
	box-shadow: 0 12px 30px rgba(16, 24, 40, .10);
}

/* ── Content typography ──────────────────────────────────────────────────── */
.yart__content { margin-top: 2rem; font-size: 1.075rem; line-height: 1.78; color: #1f2a3a; }
.yart__content > p { margin: 0 0 1.3rem; }
.yart__content > p:first-of-type { font-size: 1.16rem; line-height: 1.7; color: var(--ygt-text, #0F172A); }
.yart__content h2 { margin: 2.4rem 0 .9rem; font-size: 1.62rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--ygt-text, #0F172A); }
.yart__content h3 { margin: 1.9rem 0 .7rem; font-size: 1.26rem; font-weight: 800; letter-spacing: -.01em; color: var(--ygt-text, #0F172A); }
.yart__content a { color: var(--ygt-primary-dark, #4F46E5); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.yart__content a:hover { color: var(--ygt-primary, #6366F1); }
.yart__content ul, .yart__content ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.yart__content li { margin: .4rem 0; }
.yart__content img { max-width: 100%; height: auto; border-radius: 12px; }
.yart__content blockquote { margin: 1.6rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--ygt-primary, #6366F1); background: var(--ygt-primary-bg, rgba(99,102,241,.06)); border-radius: 0 10px 10px 0; color: var(--ygt-text-secondary, #475569); font-style: italic; }
.yart__content hr { border: 0; border-top: 1px solid var(--ygt-border, #E2E8F0); margin: 2.2rem 0; }
.yart__content code { background: var(--ygt-border-light, #F1F5F9); padding: .12em .4em; border-radius: 6px; font-size: .9em; }

/* "Top Picks" summary list from the listicle generator */
.yart__content ol { counter-reset: none; }

.yart__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.yart__tags a { text-decoration: none; font-size: .78rem; font-weight: 600; color: var(--ygt-text-secondary, #64748B); background: #fff; border: 1px solid var(--ygt-border, #E2E8F0); padding: .35rem .7rem; border-radius: 999px; }
.yart__tags a:hover { border-color: var(--ygt-primary-light, #818CF8); color: var(--ygt-primary, #6366F1); }

/* ── Related articles ────────────────────────────────────────────────────── */
.yart-related { max-width: 1080px; margin: 3rem auto 0; padding: 2.4rem 1.25rem 0; border-top: 1px solid var(--ygt-border, #E2E8F0); }
.yart-related__title { margin: 0 0 1.4rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ygt-text, #0F172A); }
.yart-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.yart-card { display: flex; flex-direction: column; text-decoration: none; background: var(--ygt-card, #fff); border: 1px solid var(--ygt-border, #E2E8F0); border-radius: 14px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.yart-card:hover { transform: translateY(-3px); border-color: var(--ygt-primary-light, #818CF8); box-shadow: 0 16px 32px rgba(16, 24, 40, .12); }
.yart-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--ygt-border-light, #F1F5F9); overflow: hidden; }
.yart-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yart-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ygt-primary-light, #818CF8), var(--ygt-primary, #6366F1)); opacity: .85; }
.yart-card__body { padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .4rem; }
.yart-card__title { font-weight: 700; font-size: .98rem; line-height: 1.32; color: var(--ygt-text, #0F172A); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yart-card__date { font-size: .78rem; color: var(--ygt-text-muted, #94A3B8); }

/* ── Comments (Reddit-style) ─────────────────────────────────────────────── */
.yart-comments { max-width: 720px; margin: 3rem auto 0; padding: 2.4rem 1.25rem 0; border-top: 1px solid var(--ygt-border, #E2E8F0); }
.yart-cm__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.yart-cm__title { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--ygt-text, #0F172A); }
.yart-cm__title span { color: var(--ygt-primary, #6366F1); }
.yart-cm__sort { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--ygt-border-light, #F1F5F9); border-radius: 999px; }
.yart-cm__sortbtn { font-size: .8rem; font-weight: 700; color: var(--ygt-text-secondary, #64748B); text-decoration: none; padding: .3rem .85rem; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.yart-cm__sortbtn.is-active { background: #fff; color: var(--ygt-primary, #6366F1); box-shadow: 0 1px 3px rgba(16,24,40,.08); }

.yart-cm__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.yart-cm__list .children { list-style: none; margin: .35rem 0 0; padding-left: 1.5rem; position: relative; }
.yart-cm__list .children::before { content: ''; position: absolute; left: .55rem; top: .15rem; bottom: .5rem; width: 2px; background: var(--ygt-border, #E2E8F0); border-radius: 2px; transition: background .15s ease; }
.yart-cm__list .children:hover::before { background: var(--ygt-primary-light, #818CF8); }
.yart-cm__item { margin: 0 0 .35rem; }

/* comment row: vote column + body */
.yart-cm__row { display: flex; gap: .75rem; padding: .35rem 0; }
.yart-cm__votes { display: flex; flex-direction: column; align-items: center; gap: .1rem; flex: 0 0 auto; width: 30px; padding-top: .1rem; }
.yart-cm__vote { appearance: none; border: 0; background: transparent; cursor: pointer; padding: 2px; line-height: 0; border-radius: 6px; color: var(--ygt-text-muted, #94A3B8); transition: color .12s ease, background .12s ease, transform .08s ease; }
.yart-cm__vote:hover { background: var(--ygt-border-light, #F1F5F9); color: var(--ygt-text-secondary, #64748B); }
.yart-cm__vote:active { transform: scale(.9); }
.yart-cm__vote--up.is-active { color: #F97316; }
.yart-cm__vote--down.is-active { color: #6366F1; }
.yart-cm__score { font-size: .8rem; font-weight: 800; color: var(--ygt-text-secondary, #64748B); min-width: 1ch; text-align: center; }
.yart-cm__score.is-pos { color: #F97316; }
.yart-cm__score.is-neg { color: #6366F1; }

.yart-cm__main { flex: 1 1 auto; min-width: 0; }
.yart-cm__head { display: flex; align-items: center; gap: .45rem; margin-bottom: .25rem; font-size: .82rem; color: var(--ygt-text-muted, #94A3B8); }
.yart-cm__avatar { border-radius: 50%; display: block; width: 24px; height: 24px; }
.yart-cm__author, .yart-cm__author a { font-weight: 700; font-style: normal; color: var(--ygt-text, #0F172A); text-decoration: none; font-size: .86rem; }
.yart-cm__author a:hover { color: var(--ygt-primary, #6366F1); }
.yart-cm__sep { color: var(--ygt-border, #E2E8F0); }
.yart-cm__time { color: var(--ygt-text-muted, #94A3B8); }
.yart-cm__collapse { appearance: none; border: 0; background: transparent; cursor: pointer; color: var(--ygt-text-muted, #94A3B8); font-weight: 700; font-size: .82rem; padding: 0 .2rem; margin-left: .1rem; }
.yart-cm__collapse:hover { color: var(--ygt-primary, #6366F1); }
.yart-cm__body { color: #1f2a3a; font-size: .95rem; line-height: 1.6; }
.yart-cm__body p { margin: 0 0 .6rem; }
.yart-cm__body p:last-child { margin-bottom: 0; }
.yart-cm__moderation { font-size: .82rem; color: var(--ygt-text-muted, #94A3B8); margin: 0 0 .4rem; }
.yart-cm__actions { margin-top: .35rem; }
.yart-cm__actions a, .yart-cm__list .comment-reply-link { font-size: .78rem; font-weight: 700; color: var(--ygt-text-secondary, #64748B); text-decoration: none; }
.yart-cm__actions a:hover { color: var(--ygt-primary, #6366F1); }

/* collapsed thread: hide body + replies, keep the header row */
.yart-cm__item.is-collapsed > .yart-cm__row .yart-cm__bodywrap { display: none; }
.yart-cm__item.is-collapsed > .children { display: none; }

.yart-cm__closed { color: var(--ygt-text-muted, #94A3B8); font-size: .9rem; }

.yart-cm__formtitle { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 800; color: var(--ygt-text, #0F172A); }
.yart-cm .comment-form { display: flex; flex-direction: column; gap: 1rem; }
.yart-cm .comment-form p { margin: 0; }
.yart-cm .comment-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--ygt-text-secondary, #64748B); margin-bottom: .35rem; }
.yart-cm .comment-form input[type="text"],
.yart-cm .comment-form input[type="email"],
.yart-cm .comment-form input[type="url"],
.yart-cm .comment-form textarea {
	width: 100%; font: inherit; font-size: .95rem; color: var(--ygt-text, #0F172A);
	padding: .7rem .85rem; background: #fff;
	border: 1px solid var(--ygt-border, #E2E8F0); border-radius: 10px; outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.yart-cm .comment-form textarea { min-height: 130px; resize: vertical; }
.yart-cm .comment-form input:focus, .yart-cm .comment-form textarea:focus { border-color: var(--ygt-primary-light, #818CF8); box-shadow: 0 0 0 3px var(--ygt-primary-bg, rgba(99,102,241,.1)); }
.yart-cm .comment-form .form-submit { margin-top: .25rem; }
.yart-cm .comment-form .submit {
	appearance: none; cursor: pointer; border: 0;
	font: inherit; font-weight: 800; font-size: .92rem; color: #fff;
	padding: .75rem 1.5rem; border-radius: 10px;
	background: linear-gradient(135deg, var(--ygt-primary, #6366F1), var(--ygt-primary-dark, #4F46E5));
	box-shadow: 0 6px 16px rgba(99, 102, 241, .32); transition: transform .15s ease, box-shadow .15s ease;
}
.yart-cm .comment-form .submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(99, 102, 241, .42); }
.yart-cm .comment-form .comment-notes, .yart-cm .comment-form .comment-form-cookies-consent { font-size: .8rem; color: var(--ygt-text-muted, #94A3B8); }
.yart-cm .comment-form .comment-form-cookies-consent input { width: auto; margin-right: .4rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.yart-footer { margin-top: 3.5rem; border-top: 1px solid var(--ygt-border, #E2E8F0); background: #fff; }
.yart-footer__inner { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.yart-footer__copy { margin: 0; color: var(--ygt-text-secondary, #64748B); font-size: .88rem; }
.yart-footer__copy a { color: var(--ygt-primary, #6366F1); text-decoration: none; font-weight: 600; }
.yart-footer__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.yart-footer__links a { color: var(--ygt-text-secondary, #64748B); text-decoration: none; font-size: .88rem; font-weight: 600; }
.yart-footer__links a:hover { color: var(--ygt-primary, #6366F1); }

/* ── Archive / Guides hub ────────────────────────────────────────────────── */
.yart-archive { max-width: 1080px; }
.yart-archive__head { margin-bottom: 1.8rem; }
.yart-archive__sub { margin: .5rem 0 0; color: var(--ygt-text-secondary, #64748B); font-size: 1.02rem; line-height: 1.6; max-width: 640px; }
.yart-archive__grid { margin-top: .4rem; }
.yart-archive__empty { color: var(--ygt-text-muted, #94A3B8); font-size: 1rem; padding: 2rem 0; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.yart-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2.6rem 0 .5rem; }
.yart-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 .7rem;
	text-decoration: none; font-weight: 700; font-size: .9rem;
	color: var(--ygt-text-secondary, #64748B); background: #fff;
	border: 1px solid var(--ygt-border, #E2E8F0); border-radius: 10px;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.yart-pagination .page-numbers:hover { border-color: var(--ygt-primary-light, #818CF8); color: var(--ygt-primary, #6366F1); }
.yart-pagination .page-numbers.current {
	color: #fff; border-color: transparent;
	background: linear-gradient(135deg, var(--ygt-primary, #6366F1), var(--ygt-primary-dark, #4F46E5));
}
.yart-pagination .page-numbers.dots { border: 0; background: transparent; }

/* ── Breadcrumb (visible nav above the article; pairs with BreadcrumbList JSON-LD) ── */
.yart-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; font-size: .82rem; color: var(--ygt-text-muted, #94A3B8); }
.yart-breadcrumb a { color: var(--ygt-text-secondary, #64748B); text-decoration: none; font-weight: 600; transition: color .15s ease; }
.yart-breadcrumb a:hover { color: var(--ygt-primary, #6366F1); }
.yart-breadcrumb__sep { color: var(--ygt-text-muted, #CBD5E1); }
.yart-breadcrumb [aria-current="page"] { color: var(--ygt-text, #0F172A); font-weight: 700; }

/* ── Author box (E-E-A-T) ───────────────────────────────────────────────────── */
.yart-author {
	display: flex; gap: 1.1rem; align-items: flex-start;
	margin: 2.5rem 0; padding: 1.5rem;
	background: var(--ygt-surface, #fff);
	border: 1px solid var(--ygt-border, #E2E8F0); border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.yart-author__avatar { flex: 0 0 auto; line-height: 0; }
.yart-author__img, .yart-author__avatar img { width: 64px; height: 64px; border-radius: 50%; display: block; border: 2px solid var(--ygt-border, #E2E8F0); }
.yart-author__body { min-width: 0; }
.yart-author__eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ygt-text-muted, #94A3B8); }
.yart-author__name { display: inline-block; margin: .15rem 0 .5rem; font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; color: var(--ygt-text, #0F172A); text-decoration: none; }
.yart-author__name:hover { color: var(--ygt-primary, #6366F1); }
.yart-author__bio { margin: 0 0 .7rem; font-size: .95rem; line-height: 1.6; color: var(--ygt-text-secondary, #475569); }
.yart-author__links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; font-size: .88rem; }
.yart-author__more { color: var(--ygt-primary, #6366F1); font-weight: 700; text-decoration: none; }
.yart-author__more:hover { text-decoration: underline; }
.yart-author__site { color: var(--ygt-text-secondary, #64748B); font-weight: 600; text-decoration: none; }
.yart-author__site:hover { color: var(--ygt-primary, #6366F1); }

/* ── Author profile header (the /author/<slug>/ E-E-A-T entity page) ─────────── */
.yart-profile {
	display: flex; gap: 1.6rem; align-items: flex-start;
	margin: 0 0 2.5rem; padding: 1.75rem;
	background: linear-gradient(180deg, var(--ygt-primary-bg, rgba(99,102,241,.06)), var(--ygt-surface, #fff) 70%);
	border: 1px solid var(--ygt-border, #E2E8F0); border-radius: 20px;
}
.yart-profile__avatar { flex: 0 0 auto; line-height: 0; }
.yart-profile__img, .yart-profile__avatar img { width: 96px; height: 96px; border-radius: 50%; display: block; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.yart-profile__body { min-width: 0; }
.yart-profile__eyebrow { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ygt-primary, #6366F1); }
.yart-profile__name { margin: .25rem 0 .6rem; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; color: var(--ygt-text, #0F172A); line-height: 1.1; }
.yart-profile__bio { font-size: .98rem; line-height: 1.65; color: var(--ygt-text-secondary, #475569); margin: 0 0 1rem; }
.yart-profile__bio a { color: var(--ygt-primary, #6366F1); text-decoration: none; font-weight: 600; }
.yart-profile__bio a:hover { text-decoration: underline; }
.yart-profile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; font-size: .9rem; color: var(--ygt-text-secondary, #64748B); }
.yart-profile__stat strong { color: var(--ygt-text, #0F172A); font-weight: 800; }
.yart-profile__link { color: var(--ygt-primary, #6366F1); font-weight: 700; text-decoration: none; }
.yart-profile__link:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.yart-nav__links { display: none; }
	.yart-nav__search input { width: 110px; }
	.yart-brand__img { height: 26px; }
	.yart-main { padding-top: 1.8rem; }
	.yart__content { font-size: 1.02rem; }
	.yart-author { flex-direction: column; gap: .85rem; padding: 1.25rem; }
	.yart-author__img, .yart-author__avatar img { width: 56px; height: 56px; }
	.yart-profile { flex-direction: column; gap: 1rem; padding: 1.35rem; }
	.yart-profile__img, .yart-profile__avatar img { width: 80px; height: 80px; }
	.yart-profile__name { font-size: 1.55rem; }
}
@media (max-width: 420px) {
	.yart-nav__search { display: none; }
}
