/*
 * Niche Compare — front-end styles.
 * Design tokens come from :root vars injected by the theme (settings-driven).
 */

:root {
	--nc-brand: #9f4e2d;
	--nc-brand-dark: #8a4023;
	--nc-brand-light: #FFF7F4;
	--nc-accent: #E18267;
	--nc-ink: #171C2B;
	--nc-ink-muted: #62666F;
	--nc-star: #F5A623;
	--nc-border: #E4E4E4;
	--nc-gray-bg: #F7F7F7;
	--nc-footer: #050000;
	--nc-radius: 10px;
	--nc-container: 1120px;
	--nc-narrow: 768px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body.nc-body {
	margin: 0;
	font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--nc-ink);
	background: #fff;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--nc-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--nc-ink); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

.nc-skip-link { position: absolute; left: -9999px; }
.nc-skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.nc-container { max-width: var(--nc-container); margin: 0 auto; padding-left: 16px; padding-right: 16px; width: 100%; }
.nc-narrow { max-width: var(--nc-narrow); }
.nc-center { text-align: center; }
.nc-section { padding: 40px 0; }
.nc-main { display: block; }

/* ---------- Buttons ---------- */
.nc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 700; font-size: 14px; border-radius: 999px; padding: 10px 20px;
	cursor: pointer; transition: filter .15s ease, background .15s ease, color .15s ease; text-align: center;
	border: 1px solid transparent; line-height: 1.1;
}
.nc-btn:hover { text-decoration: none; }
.nc-btn-brand { background: var(--nc-brand); color: #fff; }
.nc-btn-brand:hover { filter: brightness(.9); color: #fff; }
.nc-btn-outline { border-color: var(--nc-brand); color: var(--nc-brand); background: #fff; }
.nc-btn-outline:hover { background: var(--nc-brand-light); }
.nc-btn-lg { font-size: 17px; padding: 13px 26px; }
.nc-btn-sm { font-size: 12.5px; padding: 7px 14px; }
.nc-btn-visit { background: var(--nc-brand); color: #fff; min-height: 44px; padding: 12px 18px; font-size: 17px; width: 100%; }
.nc-btn-visit:hover { filter: brightness(.9); color: #fff; }

/* ---------- Top bar (disclosure) ---------- */
.nc-topbar { background: var(--nc-gray-bg); color: var(--nc-ink-muted); font-size: 12.5px; }
.nc-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.nc-topbar p { margin: 0; }
.nc-disclosure-toggle { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nc-disclosure-toggle:hover { color: var(--nc-ink); text-decoration: underline; }
.nc-disclosure-panel { border-top: 1px solid var(--nc-border); background: #fff; font-size: 13px; }
.nc-disclosure-panel p { padding: 12px 16px; margin: 0; max-width: var(--nc-container); margin-inline: auto; }

/* ---------- Header ---------- */
.nc-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #f0f0f0; }
.nc-header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.nc-logo-brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--nc-ink); }
.nc-logo-brand:hover { text-decoration: none; }
.nc-logo-suffix { color: var(--nc-brand); }
.nc-nav-list { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nc-nav-list a { color: var(--nc-ink-muted); font-size: 14px; font-weight: 500; }
.nc-nav-list a:hover { color: var(--nc-brand); text-decoration: none; }
.nc-menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nc-menu-bars { display: block; width: 22px; }
.nc-menu-bars span { display: block; height: 2px; background: var(--nc-ink); margin: 4px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.nc-hero { background: var(--nc-gray-bg); padding: 28px 0 32px; }
.nc-hero-page { padding: 26px 0; }
.nc-hero-updated { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--nc-ink-muted); }
.nc-hero-title { font-size: clamp(23px, 4vw, 40px); font-weight: 700; margin: 8px 0 0; max-width: 42rem; }
.nc-hero-sub { font-size: clamp(14px, 2vw, 17px); color: var(--nc-ink-muted); margin: 10px 0 0; max-width: 44rem; }
.nc-hero-features { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; }
.nc-hero-features li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.nc-check-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--nc-brand-light); color: var(--nc-brand); font-size: 11px; font-weight: 700; }

/* ---------- Provider card ---------- */
.nc-provider-list { padding-top: 28px; }
.nc-provider-card-wrap { margin-bottom: 20px; position: relative; }
.nc-ribbon {
	position: relative; z-index: 0; display: inline-flex; justify-content: center; min-width: 130px;
	background: var(--nc-accent); color: #fff; font-weight: 700; font-size: 15px;
	padding: 6px 16px 14px; border-radius: 8px 8px 0 0; margin-bottom: -8px;
}
.nc-provider-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.nc-card-main { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.nc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid #F0F1F4; padding-bottom: 16px; }
.nc-logo-rank { display: flex; align-items: center; gap: 12px; position: relative; }
.nc-rank { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #E1E1E1; color: var(--nc-ink); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.nc-logo { display: inline-flex; align-items: center; height: 30px; }
.nc-logo img { max-height: 30px; width: auto; object-fit: contain; }
.nc-logo-lg { height: 40px; }
.nc-logo-lg img { max-height: 40px; }
.nc-logo-text { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--nc-brand); }

.nc-rating { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex-shrink: 0; }
.nc-rating-top { display: flex; align-items: flex-end; gap: 8px; }
.nc-score { display: inline-flex; align-items: center; justify-content: center; background: var(--nc-accent); color: #fff; font-weight: 500; font-size: 22px; padding: 4px 8px; border-radius: 5px; line-height: 1; letter-spacing: -.02em; }
.nc-score-sm { font-size: 15px; padding: 3px 7px; }
.nc-rating-words { line-height: 1.2; }
.nc-score-word { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; }
.nc-votes { font-size: 13px; color: var(--nc-ink); }

.nc-stars { display: inline-flex; gap: 2px; }
.nc-star { position: relative; display: inline-block; width: 12px; height: 12px; }
.nc-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nc-star-bg { color: var(--nc-border); }
.nc-star-fg { position: absolute; inset: 0; overflow: hidden; color: var(--nc-star); }

.nc-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.nc-bullets li { position: relative; padding-left: 14px; color: var(--nc-ink); }
.nc-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--nc-brand); }
.nc-bullet-head { padding-left: 0 !important; font-size: 20px; font-weight: 700; line-height: 1.3; }
.nc-bullet-head::before { display: none; }

.nc-cta-col { display: flex; flex-direction: column; gap: 8px; }
.nc-offer { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; }

.nc-social-proof { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid #F0F1F4; font-size: 13px; color: var(--nc-ink-muted); animation: nc-fade-in .35s ease-out; }
.nc-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: nc-pulse 2s infinite; }
@keyframes nc-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nc-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.nc-fineprint { font-size: 11.5px; color: var(--nc-ink-muted); margin-top: 10px; }

/* ---------- Top choice panel ---------- */
.nc-top-choice { background: var(--nc-brand-light); padding: 28px 0; margin-top: 20px; }
.nc-top-choice-inner { background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius); box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; }
.nc-top-choice-head { background: var(--nc-accent); color: #fff; text-align: center; font-size: 24px; font-weight: 700; padding: 12px; }

/* ---------- Editorial / prose ---------- */
.nc-editorial { padding-top: 8px; }
.nc-prose { font-size: 17px; line-height: 1.75; color: var(--nc-ink); }
.nc-prose h2 { font-size: clamp(21px, 3vw, 27px); margin: 1.6em 0 .5em; }
.nc-prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.nc-prose p { margin: 0 0 1em; }
.nc-prose ul, .nc-prose ol { margin: 0 0 1em; padding-left: 22px; }
.nc-prose li { margin-bottom: 8px; }
.nc-prose ul li::marker { color: var(--nc-brand); }
.nc-prose img { border-radius: 8px; margin: 1em 0; }
.nc-prose a { color: var(--nc-brand); text-decoration: underline; }
.nc-prose hr { border: 0; border-top: 1px solid var(--nc-border); margin: 2em 0; }
.nc-prose blockquote { border-left: 3px solid var(--nc-brand); padding-left: 16px; color: var(--nc-ink-muted); margin: 1em 0; }

/* ---------- Section head ---------- */
.nc-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nc-section-head h2 { font-size: 21px; margin: 0; }
.nc-viewall { font-size: 14px; font-weight: 500; color: var(--nc-brand); }

/* ---------- Article cards ---------- */
.nc-article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nc-article-grid-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.nc-article-card { display: flex; gap: 12px; background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s ease; }
.nc-article-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); text-decoration: none; }
.nc-article-emoji { width: 44px; height: 44px; border-radius: 50%; background: var(--nc-brand-light); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.nc-article-body { min-width: 0; display: flex; flex-direction: column; }
.nc-article-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--nc-brand); }
.nc-article-title { font-size: 14px; font-weight: 700; color: var(--nc-ink); margin: 2px 0; line-height: 1.35; }
.nc-article-card:hover .nc-article-title { color: var(--nc-brand); }
.nc-article-desc { font-size: 12px; color: var(--nc-ink-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-article-meta { font-size: 10.5px; color: var(--nc-ink-muted); margin-top: 6px; }

/* ---------- FAQ ---------- */
.nc-faq-section { background: #F1F1F1; }
.nc-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nc-faq-item { background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius); overflow: hidden; }
.nc-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; font-size: 15px; font-weight: 600; color: var(--nc-ink); }
.nc-faq-item summary::-webkit-details-marker { display: none; }
.nc-faq-item summary:hover { background: rgba(159,78,45,.05); }
.nc-faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.nc-faq-icon::before, .nc-faq-icon::after { content: ""; position: absolute; background: var(--nc-brand); border-radius: 2px; }
.nc-faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.nc-faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; transition: transform .2s ease; }
.nc-faq-item[open] .nc-faq-icon::after { transform: rotate(90deg); opacity: 0; }
.nc-faq-answer { padding: 0 16px 16px; font-size: 14px; line-height: 1.65; color: var(--nc-ink-muted); }
.nc-faq-answer p { margin: 0; }

/* ---------- CTA banner ---------- */
.nc-cta-wrap { padding: 24px 0; }
.nc-cta-banner { background: var(--nc-brand-light); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 28px; text-align: center; }
.nc-cta-banner h3 { font-size: 22px; margin: 0 0 8px; }
.nc-cta-banner p { font-size: 14.5px; color: var(--nc-ink-muted); margin: 0 0 18px; }

/* ---------- Breadcrumbs ---------- */
.nc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: var(--nc-ink-muted); }
.nc-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--nc-ink-muted); }
.nc-breadcrumbs a { color: var(--nc-ink-muted); }
.nc-breadcrumbs a:hover { color: var(--nc-brand); }

/* ---------- Provider review ---------- */
.nc-single-provider, .nc-single-post, .nc-single-page { padding-top: 24px; padding-bottom: 24px; }
.nc-review-hero { background: var(--nc-gray-bg); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 24px; margin-bottom: 24px; }
.nc-review-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nc-review-hero h1 { font-size: clamp(24px, 4vw, 34px); margin: 8px 0; }
.nc-review-tagline { font-size: 16px; color: var(--nc-ink-muted); margin: 0 0 12px; }
.nc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nc-badge { background: var(--nc-brand-light); color: var(--nc-brand); border: 1px solid var(--nc-border); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.nc-review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.nc-price-tag { font-size: 16px; font-weight: 700; }
.nc-key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.nc-key-facts > div { background: #fff; border: 1px solid var(--nc-border); border-radius: 8px; padding: 12px; text-align: center; }
.nc-key-facts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--nc-ink-muted); }
.nc-key-facts strong { font-size: 18px; }
.nc-review-overview, .nc-features, .nc-testimonials, .nc-faq-section-inline { margin-bottom: 28px; }
.nc-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.nc-pros, .nc-cons { border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 18px; }
.nc-pros { background: #f0fdf4; }
.nc-cons { background: #fef2f2; }
.nc-pros h3, .nc-cons h3 { margin-top: 0; }
.nc-pros ul, .nc-cons ul { margin: 0; padding-left: 20px; }
.nc-pros li, .nc-cons li { margin-bottom: 8px; }
.nc-feature-list { columns: 2; gap: 24px; padding-left: 20px; }
.nc-callout { background: var(--nc-brand-light); border-left: 3px solid var(--nc-brand); border-radius: 6px; padding: 14px 16px; margin-bottom: 28px; font-size: 15px; }
.nc-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.nc-testimonial { background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 18px; margin: 0; }
.nc-testimonial blockquote { margin: 10px 0; font-size: 14px; line-height: 1.6; }
.nc-testimonial figcaption { font-size: 13px; font-weight: 600; color: var(--nc-ink-muted); }
.nc-related { margin-top: 40px; }

/* ---------- Compare table ---------- */
.nc-compare-table-wrap { margin-top: 36px; }
.nc-table-scroll { overflow-x: auto; }
.nc-compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.nc-compare-table th { background: var(--nc-gray-bg); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--nc-border); }
.nc-compare-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; vertical-align: middle; }
.nc-td-bestfor { color: var(--nc-ink-muted); max-width: 260px; }

/* ---------- Post ---------- */
.nc-post-header, .nc-page-header { margin: 6px 0 18px; }
.nc-post-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--nc-brand); }
.nc-post-header h1 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0; }
.nc-post-meta { font-size: 13px; color: var(--nc-ink-muted); }
.nc-post-thumb { margin-bottom: 24px; }
.nc-post-thumb img { width: 100%; border-radius: var(--nc-radius); }
.nc-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.nc-tags a { background: var(--nc-gray-bg); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--nc-ink-muted); }
.nc-pagination { margin-top: 32px; }
.nc-pagination .page-numbers { display: inline-flex; padding: 8px 12px; border: 1px solid var(--nc-border); border-radius: 6px; margin: 0 3px; font-size: 14px; }
.nc-pagination .current { background: var(--nc-brand); color: #fff; border-color: var(--nc-brand); }

/* ---------- Footer ---------- */
.nc-med-disclaimer { background: #0f172a; color: #e2e8f0; font-size: 12.5px; }
.nc-med-disclaimer p { padding: 10px 16px; margin: 0; max-width: var(--nc-container); margin-inline: auto; }
.nc-footer { background: var(--nc-footer); color: #fff; }
.nc-footer .nc-container { padding-top: 40px; padding-bottom: 40px; }
.nc-footer-brand { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.nc-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.nc-footer-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.nc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.nc-footer-col li { margin-bottom: 7px; }
.nc-footer-col a { color: rgba(255,255,255,.8); font-size: 13px; }
.nc-footer-col a:hover { color: #fff; }
.nc-footer-legal { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.6); }
.nc-copyright { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- Misc ---------- */
.nc-empty { background: var(--nc-gray-bg); border: 1px dashed var(--nc-border); border-radius: var(--nc-radius); padding: 32px; text-align: center; color: var(--nc-ink-muted); }
.nc-404-code { font-size: 72px; font-weight: 800; color: var(--nc-brand); margin: 0; }
.nc-404 { padding: 80px 0; }

/* ---------- Desktop provider card layout ---------- */
@media (min-width: 768px) {
	.nc-card-main { flex-direction: row; align-items: center; gap: 24px; padding: 24px 40px; }
	.nc-card-head { border-bottom: 0; padding-bottom: 0; flex: 0 0 auto; }
	.nc-logo-rank .nc-rank { position: absolute; left: -40px; top: 50%; transform: translate(-50%, -50%); }
	.nc-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 150px; }
	.nc-rating { align-items: flex-start; text-align: left; }
	.nc-rating-top { align-items: center; }
	.nc-bullets { flex: 1; }
	.nc-cta-col { width: 180px; flex-shrink: 0; }
	.nc-review-hero-top { align-items: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.nc-menu-toggle { display: block; }
	.nc-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--nc-border); box-shadow: 0 8px 20px rgba(0,0,0,.08); display: none; }
	.nc-nav.is-open { display: block; }
	.nc-nav-list { flex-direction: column; gap: 0; padding: 8px 16px; max-width: var(--nc-container); margin: 0 auto; }
	.nc-nav-list li { border-bottom: 1px solid #f2f2f2; }
	.nc-nav-list a { display: block; padding: 12px 0; }
	.nc-article-grid { grid-template-columns: 1fr; }
	.nc-proscons, .nc-key-facts { grid-template-columns: 1fr 1fr; }
	.nc-footer-cols { grid-template-columns: 1fr 1fr; }
	.nc-feature-list { columns: 1; }
	.nc-header-inner { position: relative; }
}
