/*
 * 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;
	/* Overridden per-site by Niche Settings → Layout → Content Width. */
	--nc-container: 1280px;
	--nc-narrow: 1280px;
	/* Masked as currentColor, so it inherits whatever button it sits in. */
	--nc-icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
/* The browser's own `[hidden] { display: none }` is a user-agent rule, so ANY
   author rule that sets `display` on the same element beats it — a card with
   `display: flex` stays on screen after the script hides it. Filtering, the
   compare tray and the modal all rely on the attribute, so it wins here. */
[hidden] { display: none !important; }
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); }

/* Whole-card affiliate link (stretched overlay). Real controls opt back in. */
.nc-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.nc-provider-card-wrap.is-clickable { cursor: pointer; }
.nc-provider-card-wrap.is-clickable .nc-provider-card { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.nc-provider-card-wrap.is-clickable:hover .nc-provider-card { box-shadow: 0 8px 22px rgba(0,0,0,.10); border-color: var(--nc-brand); }
.nc-provider-card-wrap.is-clickable:hover .nc-btn-visit { filter: brightness(.9); }
.nc-provider-card-wrap.is-clickable .nc-card-main,
.nc-provider-card-wrap.is-clickable .nc-social-proof { position: relative; z-index: 2; pointer-events: none; }
.nc-provider-card-wrap.is-clickable .nc-card-main a,
.nc-provider-card-wrap.is-clickable .nc-card-main button,
.nc-provider-card-wrap.is-clickable .nc-social-proof a { pointer-events: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.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; }
/* Fixed logo box so every provider logo occupies an identical footprint. */
.nc-logo { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 42px; overflow: hidden; flex-shrink: 0; }
.nc-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.nc-logo-lg { width: 160px; height: 52px; }
.nc-logo-text { max-width: 100%; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--nc-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }

.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; }

/* ---------- Providers directory grid ---------- */
.nc-provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.nc-pcard {
	display: flex; flex-direction: column; gap: 14px; height: 100%;
	background: #fff; border: 2px solid var(--nc-border); border-radius: 14px;
	padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
	transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.nc-pcard:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); border-color: var(--nc-brand); }
/* Whole-tile affiliate link. The overlay sits under the content, which is
   click-through except for the real controls ("Read Review", "Visit"). */
.nc-pcard.is-clickable { position: relative; cursor: pointer; }
.nc-pcard.is-clickable:hover { transform: translateY(-2px); }
.nc-pcard.is-clickable:hover .nc-btn-visit-sm { filter: brightness(.9); }
.nc-pcard.is-clickable:focus-within { border-color: var(--nc-brand); }
/* The compare checkbox is excluded: it is absolutely positioned and must stay
   clickable, where the rest of the tile is click-through to the offer link. */
.nc-pcard.is-clickable > *:not(.nc-card-link):not(.nc-compare-check) { position: relative; z-index: 2; pointer-events: none; }
.nc-pcard.is-clickable a:not(.nc-card-link),
.nc-pcard.is-clickable button,
.nc-pcard.is-clickable .nc-compare-check,
.nc-pcard.is-clickable .nc-compare-check input { pointer-events: auto; }
.nc-pcard-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nc-pcard-logo { width: 118px; height: 52px; flex-shrink: 0; }
.nc-pcard-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nc-pcard-name { font-size: 19px; font-weight: 800; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.nc-pcard-rating { display: flex; align-items: center; gap: 8px; }
.nc-pcard-rating .nc-star { width: 14px; height: 14px; }
.nc-pcard-score { font-size: 17px; font-weight: 800; color: var(--nc-ink); }
.nc-pcard-desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--nc-ink-muted); overflow-wrap: anywhere; }
.nc-pcard-actions { display: flex; gap: 12px; margin-top: auto; }
.nc-pcard-actions .nc-btn { flex: 1 1 0; min-width: 0; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.nc-pcard-actions .nc-btn-review { flex-grow: 1.6; }
/* "Read Review" is the softer, internal destination; "Visit" stays the brand CTA. */
.nc-btn-review { background: var(--nc-accent); color: #fff; }
.nc-btn-review:hover { filter: brightness(.93); color: #fff; }
.nc-btn-visit-sm::after {
	content: ""; width: 13px; height: 13px; flex-shrink: 0; background: currentColor;
	-webkit-mask: var(--nc-icon-external) center / contain no-repeat;
	mask: var(--nc-icon-external) center / contain no-repeat;
}
@media (max-width: 1024px) {
	.nc-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: one card per row, buttons stacked full-width. */
@media (max-width: 640px) {
	.nc-provider-grid { grid-template-columns: 1fr; gap: 16px; }
	.nc-pcard { padding: 18px; }
	.nc-pcard-actions { flex-direction: column; }
	.nc-pcard-actions .nc-btn { width: 100%; }
}

/* ---------- 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 ---------- */
/* minmax(min(100%, …)) so a long unbroken word can never push a column
   wider than its share and burst the grid out of the container. */
.nc-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.nc-article-grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 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; }

/* ---------- Tables ----------
 * One treatment for the comparison table and for any table an editor drops
 * into an article, review or page. Borders are hairline and the zebra tint
 * sits a couple of percent off white: on a wide comparison row the eye needs
 * only enough contrast to track across, and anything heavier reads as noise.
 * Border/stripe/header colours and the three border styles come from
 * Niche Settings → Design → Tables (body classes + CSS vars).
 */
.nc-compare-table-wrap { margin-top: 36px; }
.nc-table-scroll { overflow-x: auto; }

.nc-compare-table,
.nc-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}
.nc-compare-table { min-width: 640px; }
.nc-prose table { margin: 1.6em 0; display: block; overflow-x: auto; }

.nc-compare-table th,
.nc-prose table th {
	background: var(--nc-table-head);
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--nc-ink);
	padding: 10px 12px;
	border-bottom: 1px solid var(--nc-table-border);
}
.nc-compare-table td,
.nc-prose table td {
	padding: 12px;
	border-bottom: 1px solid var(--nc-table-border);
	vertical-align: middle;
}
.nc-compare-table tbody tr:last-child td,
.nc-prose table tbody tr:last-child td { border-bottom: 0; }

/* Border style: light grid adds the vertical hairlines; minimal drops every
 * rule except the one under the header. */
.nc-tables-grid .nc-compare-table th + th,
.nc-tables-grid .nc-compare-table td + td,
.nc-tables-grid .nc-prose table th + th,
.nc-tables-grid .nc-prose table td + td { border-left: 1px solid var(--nc-table-border); }

.nc-tables-minimal .nc-compare-table td,
.nc-tables-minimal .nc-prose table td { border-bottom: 0; }

/* Alternating row highlight. Applied to even rows so the first row of data
 * stays on white, which keeps the header rule reading as the table's edge. */
.nc-tables-zebra .nc-compare-table tbody tr:nth-child(even),
.nc-tables-zebra .nc-prose table tbody tr:nth-child(even) { background: var(--nc-table-stripe); }

.nc-tables-hover .nc-compare-table tbody tr:hover,
.nc-tables-hover .nc-prose table tbody tr:hover { background: var(--nc-brand-light); }

.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-contact { margin: 12px 0 0; font-size: 13px; }
.nc-footer-contact a { color: rgba(255,255,255,.8); word-break: break-all; }
.nc-footer-contact 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); }

/* ---------- Directory filter / sort / compare ---------- */
.nc-directory-tools { background: var(--nc-gray-bg); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 16px 18px; margin-bottom: 24px; }
.nc-directory-tools[hidden] { display: none; }
.nc-dt-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.nc-dt-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--nc-ink-muted); }
.nc-dt-field select { padding: 8px 10px; border: 1px solid var(--nc-border); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--nc-ink); }
.nc-dt-clear { margin-left: auto; background: none; border: 0; padding: 8px 0; color: var(--nc-brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.nc-dt-clear[hidden] { display: none; }
.nc-dt-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nc-dt-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--nc-border); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.nc-dt-badge:hover { border-color: var(--nc-brand); }
.nc-dt-badge input { margin: 0; }
.nc-dt-count { margin: 12px 0 0; font-size: 13px; color: var(--nc-ink-muted); }

.nc-compare-check { position: absolute; top: 10px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--nc-border); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.nc-compare-check input { margin: 0; }
.nc-provider-card-wrap, .nc-pcard { position: relative; }

.nc-compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--nc-ink); color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.18); }
.nc-compare-tray[hidden] { display: none; }
.nc-compare-tray-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.nc-compare-tray-list { margin: 0; font-size: 14px; font-weight: 600; }
.nc-compare-tray-actions { display: flex; align-items: center; gap: 12px; }
.nc-compare-tray-clear { background: none; border: 0; color: rgba(255,255,255,.75); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.nc-compare-tray-clear:hover { color: #fff; }

.nc-compare-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.nc-compare-modal[hidden] { display: none; }
.nc-compare-modal-inner { position: relative; background: #fff; border-radius: var(--nc-radius); max-width: 960px; width: 100%; max-height: 86vh; overflow: auto; padding: 44px 20px 20px; }
.nc-compare-modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--nc-ink-muted); cursor: pointer; }
.nc-compare-modal-close:hover { color: var(--nc-ink); }
.nc-compare-modal th[scope="row"] { text-align: left; white-space: nowrap; color: var(--nc-ink-muted); font-size: 13px; }
.nc-compare-modal td ul { margin: 0; padding-left: 18px; font-size: 14px; }
.nc-compare-review-link { display: block; margin-top: 8px; font-size: 13px; }
body.nc-modal-open { overflow: hidden; }

@media (max-width: 640px) {
	.nc-dt-row { gap: 10px; }
	.nc-dt-field { flex: 1 1 140px; }
	.nc-dt-clear { margin-left: 0; }
	.nc-compare-tray-inner { justify-content: center; text-align: center; }
}

/* ---------- Matcher quiz ---------- */
.nc-quiz { background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 28px; margin: 24px 0; }
.nc-quiz-title { margin: 0 0 6px; font-size: clamp(20px, 3vw, 26px); }
.nc-quiz-intro { margin: 0 0 18px; color: var(--nc-ink-muted); }
.nc-quiz-progress { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--nc-brand); }
.nc-quiz-step { border: 0; padding: 0; margin: 0 0 22px; }
.nc-quiz-step[hidden] { display: none; }
.nc-quiz-q { font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.nc-quiz-options { display: grid; gap: 8px; }
.nc-quiz-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--nc-border); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.nc-quiz-option:hover { border-color: var(--nc-brand); background: var(--nc-brand-light); }
.nc-quiz-option input { margin: 0; flex: none; }
.nc-quiz-hint { margin: 8px 0 0; font-size: 13px; color: var(--nc-ink-muted); }
.nc-quiz-actions { display: flex; align-items: center; gap: 14px; }
.nc-quiz-actions[hidden] { display: none; }
.nc-quiz-back { background: none; border: 0; padding: 0; color: var(--nc-ink-muted); font: inherit; font-size: 14px; cursor: pointer; }
.nc-quiz-back:hover { color: var(--nc-ink); }
.nc-quiz-back[hidden] { display: none; }
.nc-quiz-subtitle { margin: 28px 0 12px; font-size: 17px; }
.nc-quiz-runners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nc-quiz-restart { margin: 18px 0 0; font-size: 14px; }
.nc-quiz-capture { border-top: 1px solid var(--nc-border); margin-top: 22px; padding-top: 18px; }
.nc-quiz-capture.is-done p { margin: 0; font-weight: 600; color: var(--nc-brand); }
.nc-quiz-capture-label { display: block; font-weight: 600; margin-bottom: 8px; }
.nc-quiz-capture-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-quiz-capture-row input { flex: 1 1 220px; padding: 11px 13px; border: 1px solid var(--nc-border); border-radius: 8px; font: inherit; }
.nc-quiz-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--nc-ink-muted); }
.nc-quiz-consent input { margin-top: 3px; flex: none; }
.nc-quiz-error { margin: 0 0 10px; color: #b32d2e; font-size: 14px; }
@media (max-width: 640px) {
	.nc-quiz { padding: 20px; }
	.nc-quiz-runners { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.nc-contact-card { background: var(--nc-brand-light); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 24px; margin: 24px 0 8px; }
.nc-contact-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--nc-ink-muted); margin: 0 0 6px; }
.nc-contact-card-email { font-size: clamp(19px, 3vw, 24px); font-weight: 700; margin: 0 0 8px; word-break: break-all; }
.nc-contact-card-email a { color: var(--nc-brand); text-decoration: none; }
.nc-contact-card-email a:hover { text-decoration: underline; }
.nc-contact-card-note { margin: 0; font-size: 14px; color: var(--nc-ink-muted); }

/* ---------- 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: 32px; padding: 28px 48px; }
	.nc-card-head { border-bottom: 0; padding-bottom: 0; flex: 0 0 auto; }
	.nc-logo-rank .nc-rank { position: absolute; left: -44px; top: 50%; transform: translate(-50%, -50%); }
	.nc-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 190px; }
	.nc-logo { width: 170px; height: 52px; }
	.nc-rating { align-items: flex-start; text-align: left; }
	.nc-rating-top { align-items: center; }
	.nc-score { font-size: 26px; padding: 5px 10px; }
	.nc-score-word { font-size: 18px; }
	.nc-bullets { flex: 1; font-size: 18px; gap: 12px; }
	.nc-bullet-head { font-size: 23px; }
	.nc-cta-col { width: 210px; flex-shrink: 0; }
	.nc-btn-visit { font-size: 18px; min-height: 48px; padding: 13px 20px; }
	.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; }
}

/* Header CTA button (Header Management) */
.nc-header-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--nc-brand); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 8px; white-space: nowrap; }
.nc-header-cta:hover { background: var(--nc-brand-dark); color: #fff; }

/* Floating provider widget (Widget Management) */
.nc-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 240px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--nc-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 14px 14px 12px; }
.nc-widget[hidden] { display: none; }
.nc-widget-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--nc-ink-muted); cursor: pointer; }
.nc-widget-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--nc-brand); margin-bottom: 8px; padding-right: 16px; }
.nc-widget-list { list-style: none; margin: 0; padding: 0; }
.nc-widget-list li { margin-bottom: 6px; }
.nc-widget-list li:last-child { margin-bottom: 0; }
.nc-widget-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--nc-gray-bg); color: var(--nc-ink); font-weight: 600; font-size: 13.5px; }
.nc-widget-item:hover { background: var(--nc-brand-light); color: var(--nc-ink); }
.nc-widget-rating { background: var(--nc-brand); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
@media (max-width: 600px) { .nc-widget { right: 12px; bottom: 12px; width: 200px; } }

/* ---------- Promotional popup (Settings → Layout → Popup) ---------- */
.nc-popup { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nc-popup[hidden] { display: none; }
.nc-popup-backdrop { position: absolute; inset: 0; background: rgba(9, 12, 20, .55); }
.nc-popup-box {
	position: relative; z-index: 1; width: 100%; max-width: 420px;
	background: #fff; border: 1px solid var(--nc-table-border); border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28); padding: 30px 26px 22px; text-align: center;
	animation: nc-popup-in .22s ease-out;
}
@keyframes nc-popup-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nc-popup-box { animation: none; } }
.nc-popup-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--nc-ink-muted); cursor: pointer; padding: 4px; }
.nc-popup-close:hover { color: var(--nc-ink); }
.nc-popup-image { max-height: 56px; width: auto; margin: 0 auto 14px; display: block; }
.nc-popup-title { font-size: 22px; margin: 0 0 8px; }
.nc-popup-body { color: var(--nc-ink-muted); font-size: 15px; margin: 0 0 18px; }
.nc-popup-cta { display: inline-flex; width: 100%; justify-content: center; }
.nc-popup-dismiss { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--nc-ink-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
/* The page behind a modal must not scroll away under it. */
body.nc-popup-open { overflow: hidden; }
@media (max-width: 600px) { .nc-popup-box { padding: 26px 18px 18px; } .nc-popup-title { font-size: 19px; } }

/* ---------- Author box (internal pages) ---------- */
.nc-author-box { display: flex; gap: 18px; align-items: flex-start; margin: 32px 0; padding: 20px 22px; background: var(--nc-gray-bg); border: 1px solid var(--nc-border); border-radius: 14px; }
.nc-author-media { flex: 0 0 auto; }
/* object-fit matters once a real headshot replaces the square Gravatar. */
.nc-author-avatar { width: 72px; height: 72px; border-radius: 50%; display: block; object-fit: cover; }
.nc-author-eyebrow { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--nc-brand); }
.nc-author-name { margin: 2px 0 2px; font-size: 18px; }
.nc-author-name a { color: var(--nc-ink); }
.nc-author-role { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--nc-ink-muted); }
.nc-author-bio { margin: 0 0 10px; font-size: 14.5px; color: var(--nc-ink); }
.nc-author-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.nc-author-social a { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--nc-brand); background: #fff; border: 1px solid var(--nc-border); border-radius: 999px; padding: 4px 12px; }
.nc-author-social a:hover { background: var(--nc-brand); color: #fff; }
@media (max-width: 600px) { .nc-author-box { flex-direction: column; } }

/* ---------- Footer social row ---------- */
.nc-footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 18px; padding: 0; }
.nc-footer-social a { font-size: 13px; font-weight: 600; opacity: .85; }
.nc-footer-social a:hover { opacity: 1; }

/* ---------- Inline affiliate links + inline CTA (provider pages) ---------- */
.nc-inline-aff { color: var(--nc-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.nc-inline-aff:hover { color: var(--nc-brand-dark); }
.nc-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0; padding: 16px 20px; background: var(--nc-brand-light); border: 1px solid var(--nc-border); border-left: 4px solid var(--nc-brand); border-radius: 12px; }
.nc-inline-cta-text { display: flex; flex-direction: column; gap: 2px; }
.nc-inline-cta-text strong { font-size: 16px; }
.nc-inline-cta-offer { font-size: 13px; font-weight: 700; color: var(--nc-brand); }

/* ---------- Sticky provider CTA bar ---------- */
.nc-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--nc-border); box-shadow: 0 -6px 24px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .25s ease; padding: 10px 0; }
.nc-sticky-cta.is-visible { transform: translateY(0); }
.nc-sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nc-sticky-cta-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nc-sticky-cta-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.nc-sticky-cta-meta strong { font-size: 15px; }
.nc-sticky-cta-rating { color: var(--nc-star); font-weight: 800; font-size: 13px; }
.nc-sticky-cta-price { color: var(--nc-ink-muted); font-size: 13px; }
.nc-logo-sm img { max-height: 28px; width: auto; }
@media (max-width: 600px) {
	.nc-sticky-cta-meta { gap: 6px; }
	.nc-sticky-cta-info .nc-logo-sm { display: none; }
	.nc-sticky-cta .nc-btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
}

/* ---------- Review CPT ---------- */
.nc-review-score { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.nc-review-score-num { font-weight: 800; font-size: 18px; color: var(--nc-ink); }
.nc-review-verdict { font-size: 18px; font-weight: 600; color: var(--nc-ink); margin: 8px 0 0; }
.nc-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: stretch; }
.nc-review-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nc-border); border-radius: 14px; overflow: hidden; color: var(--nc-ink); }
.nc-review-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.nc-review-card-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.nc-review-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1 1 auto; }
.nc-review-card-rating { align-self: flex-start; background: var(--nc-brand); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
/* The date sits on the card floor, so stretched cards don't leave a gap under it. */
.nc-review-card .nc-article-meta { margin-top: auto; }
/* Each item is a review card stacked on its provider card. Both stretch to the
   row height, so every column in a row ends level. */
.nc-review-item { display: flex; flex-direction: column; gap: 12px; }
/* Subgrid additionally shares the two row tracks across the whole grid row, so
   the provider cards start at the same y even when the titles above them wrap
   to a different number of lines. Without it the items still stretch and the
   column bottoms still line up — only the seam between the halves drifts. */
@supports (grid-template-rows: subgrid) {
	.nc-review-item { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
	/* A review with no featured provider fills both tracks itself. */
	.nc-review-item:not(:has(.nc-review-provider)) .nc-review-card { grid-row: span 2; }
}
@media (max-width: 600px) { .nc-review-grid { grid-template-columns: 1fr; } }

/* Featured provider card inside a review */
.nc-review-provider { margin: 28px 0; }
.nc-review-provider-eyebrow {
	margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
	text-transform: uppercase; color: var(--nc-ink-muted);
}
.nc-review-provider-bottom .nc-review-provider-eyebrow { color: var(--nc-brand); font-size: 15px; text-transform: none; letter-spacing: 0; }
.nc-review-provider .nc-provider-card-wrap { margin-bottom: 0; }
/* In the archive grid the card sits under each review, tighter and smaller.
   It lives in a grid column rather than the full container, so it keeps the
   stacked layout at every viewport width — the wide row layout would squeeze
   the bullets down to one word per line. */
.nc-review-provider-archive { margin: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
/* Fill the grid row: eyebrow on top, then the card box taking the rest, so the
   card borders start and end at the same height across the row. */
.nc-review-provider-archive .nc-provider-card-wrap { display: flex; flex-direction: column; flex: 1 1 auto; }
.nc-review-provider-archive .nc-ribbon { align-self: flex-start; }
/* Reserve the ribbon's slot on cards that have none, but only when a sibling
   card in the grid actually shows one. Matches .nc-ribbon: its 6px + 14px
   padding and one 15px/1.55 line, less the -8px it tucks behind the card. */
.nc-review-grid:has(.nc-ribbon) .nc-provider-card-wrap:not(:has(.nc-ribbon))::before {
	content: ""; display: block; height: calc(6px + 14px - 8px + (15px * 1.55));
}
.nc-review-provider-archive .nc-provider-card { display: flex; flex-direction: column; flex: 1 1 auto; }
.nc-review-provider-archive .nc-card-main { flex: 1 1 auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
.nc-review-provider-archive .nc-card-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; border-bottom: 1px solid #F0F1F4; padding-bottom: 12px; }
.nc-review-provider-archive .nc-logo { width: 96px; height: 34px; }
.nc-review-provider-archive .nc-rating { align-items: flex-end; text-align: right; }
.nc-review-provider-archive .nc-score { font-size: 18px; padding: 4px 8px; }
.nc-review-provider-archive .nc-score-word { font-size: 15px; }
.nc-review-provider-archive .nc-bullets { flex: none; font-size: 14.5px; gap: 8px; }
.nc-review-provider-archive .nc-bullet-head { font-size: 16.5px; }
/* Bullet lists differ in length, so the CTA anchors to the card floor. */
.nc-review-provider-archive .nc-cta-col { width: auto; margin-top: auto; }
.nc-review-provider-archive .nc-btn-visit { font-size: 15px; min-height: 42px; padding: 11px 18px; }

/* ---------- Customer rating badge on provider cards ---------- */
.nc-card-cust { margin: 4px 0 2px; }
.nc-cust-rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nc-ink-muted); }
.nc-cust-rating .nc-stars { font-size: 14px; }
.nc-cust-rating-num { font-weight: 800; color: var(--nc-ink); }
.nc-cust-rating-count { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Customer reviews section (single provider) ---------- */
.nc-customer-reviews { margin: 32px 0; }
.nc-customer-reviews-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--nc-border); }
.nc-customer-reviews-head h2 { margin: 0; }
.nc-customer-agg { display: inline-flex; align-items: center; gap: 8px; color: var(--nc-ink-muted); }
.nc-customer-agg .nc-stars { font-size: 18px; }
.nc-customer-agg strong { font-size: 18px; color: var(--nc-ink); }
.nc-customer-review-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nc-customer-review { background: var(--nc-gray-bg); border: 1px solid var(--nc-border); border-radius: 12px; padding: 14px 16px; }
.nc-customer-review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.nc-customer-review-author { font-weight: 700; }
.nc-customer-review-top time { color: var(--nc-ink-muted); font-size: 13px; }
.nc-customer-review-stars .nc-stars { font-size: 15px; }
.nc-customer-review-body { font-size: 14.5px; }
.nc-customer-review-empty { margin: 16px 0 0; padding: 16px 18px; color: var(--nc-ink-muted); background: var(--nc-gray-bg); border: 1px dashed var(--nc-border); border-radius: 12px; }

/* Post / review article comments (comments.php) */
.nc-comments { margin: 32px 0; }
.nc-comments-title { margin-bottom: 16px; }
.nc-comment-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nc-comment-list .children { list-style: none; margin: 14px 0 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 14px; border-left: 2px solid var(--nc-border); }
.nc-comment-avatar { border-radius: 50%; }
.nc-comment-pending { color: var(--nc-ink-muted); font-size: 13px; }
.nc-comment-reply { margin-top: 8px; font-size: 14px; }
.nc-comments-closed { color: var(--nc-ink-muted); }
@media (max-width: 600px) {
	.nc-comment-list .children { padding-left: 12px; }
}

/* ---------- Write-a-review form ---------- */
.nc-review-login-prompt {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--nc-brand-light); border: 1px solid var(--nc-border); border-radius: 14px; padding: 20px;
}
.nc-review-login-copy { display: flex; flex-direction: column; gap: 2px; }
.nc-review-login-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nc-review-login-copy strong { font-size: 17px; }
.nc-review-login-copy span,
.nc-review-login-alt { color: var(--nc-ink-muted); font-size: 14px; }

.nc-review-form-card {
	margin-top: 22px; background: #fff; border: 1px solid var(--nc-border); border-radius: 14px;
	padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.nc-review-form-card #respond { margin: 0; }
.nc-review-form-title { font-size: 20px; margin: 0 0 4px; }
.nc-review-form-title small { font-weight: 400; font-size: 14px; }
.nc-review-form-title small a { margin-left: 6px; }
.nc-review-form { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.nc-review-form p { margin: 0; }

.nc-review-loggedin { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nc-ink-muted); }
.nc-review-loggedin strong { color: var(--nc-ink); }
.nc-review-avatar { border-radius: 50%; flex-shrink: 0; }

.nc-review-field { display: flex; flex-direction: column; gap: 6px; }
.nc-review-field > label { font-weight: 700; font-size: 15px; }
.nc-review-required { color: var(--nc-brand); }
.nc-review-textarea {
	width: 100%; resize: vertical; min-height: 130px; padding: 12px 14px;
	font: inherit; font-size: 15px; color: var(--nc-ink);
	background: var(--nc-gray-bg); border: 1px solid var(--nc-border); border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nc-review-textarea::placeholder { color: var(--nc-ink-muted); opacity: .85; }
.nc-review-textarea:focus {
	background: #fff; border-color: var(--nc-brand); outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nc-brand) 18%, transparent);
}

/* Star selector. Inputs run 5→1 in the DOM so the sibling combinator can fill
   every star to the left of the hovered/checked one; row-reverse flips the row
   back to 1→5 on screen, and the rating word (order:-1) lands after them. */
.nc-review-stars-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; }
.nc-review-stars-field > legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.nc-review-stars-input { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.nc-review-stars-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nc-review-stars-input label {
	display: inline-flex; color: #DADCE0; cursor: pointer; padding: 2px;
	transition: color .12s ease, transform .12s ease;
}
.nc-review-stars-input label svg { width: 30px; height: 30px; }
.nc-review-stars-input label:hover,
.nc-review-stars-input label:hover ~ label,
.nc-review-stars-input input:checked ~ label { color: var(--nc-star); }
.nc-review-stars-input label:hover { transform: scale(1.08); }
.nc-review-stars-input input:focus-visible + label { outline: 2px solid var(--nc-brand); outline-offset: 2px; border-radius: 4px; }
.nc-review-stars-word { order: -1; margin-left: 10px; font-size: 14px; font-weight: 700; color: var(--nc-ink-muted); }
.nc-review-word { display: none; }
#nc-cust-rating-1:checked ~ .nc-review-stars-word .nc-review-word-1,
#nc-cust-rating-2:checked ~ .nc-review-stars-word .nc-review-word-2,
#nc-cust-rating-3:checked ~ .nc-review-stars-word .nc-review-word-3,
#nc-cust-rating-4:checked ~ .nc-review-stars-word .nc-review-word-4,
#nc-cust-rating-5:checked ~ .nc-review-stars-word .nc-review-word-5 { display: inline; }

.nc-review-note { font-size: 13px; color: var(--nc-ink-muted); }
.nc-review-submit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nc-review-submit { min-height: 46px; padding: 12px 26px; font-size: 15px; }
.nc-review-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nc-ink-muted); }

@media (max-width: 600px) {
	.nc-review-form-card { padding: 18px; }
	.nc-review-submit { width: 100%; }
	.nc-review-stars-input label svg { width: 34px; height: 34px; }
}

/* ---------- Front-end account page ([nc_account]) ---------- */
.nc-account { max-width: 620px; }
.nc-account h2 { margin: 22px 0 10px; }
.nc-account-form p { margin: 0 0 14px; }
.nc-account-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.nc-account-form input[type="text"],
.nc-account-form input[type="email"],
.nc-account-form input[type="tel"],
.nc-account-form input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--nc-border); border-radius: 8px; font-size: 15px; }
.nc-account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nc-account-hint { color: var(--nc-ink-muted); font-size: 13px; }
.nc-account-check { font-weight: 500 !important; display: inline-flex; align-items: center; gap: 8px; }
.nc-account-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.nc-account-logout { color: var(--nc-ink-muted); }
.nc-account-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14.5px; }
.nc-account-notice-success { background: #eafaef; border: 1px solid #b6e6c6; color: #1c7a3f; }
.nc-account-notice-error { background: #fdecec; border: 1px solid #f3c2c2; color: #a12626; }
.nc-account-links { margin-top: 12px; color: var(--nc-ink-muted); }
@media (max-width: 600px) { .nc-account-row { grid-template-columns: 1fr; } }
