/* ==========================================================================
   NephroVet — theme styles (colours, fonts and spacing live in theme.json)
   ========================================================================== */

:root {
	--nv-radius: 12px;
	--nv-line: var(--wp--preset--color--line);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink); }
:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}
img { height: auto; }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ---------- Header ------------------------------------------------------ */
.nv-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .nv-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .nv-header-wrap { top: 0; } }
.nv-header {
	border-bottom: 1px solid var(--nv-line);
	background: rgba(255,255,255,.92) !important;
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}
.nv-brand { min-width: 0; }
.nv-brand__mark { margin: 0 !important; flex-shrink: 0; }
.nv-brand__mark img { display: block; }
.nv-brand .wp-block-site-title { margin: 0; line-height: 1; }
.nv-brand__tag {
	margin: .25rem 0 0 !important;
	font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--slate); line-height: 1; white-space: nowrap;
}
.nv-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); padding: .35rem 0; position: relative; }
.nv-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--wp--preset--color--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nv-nav .wp-block-navigation-item__content:hover::after,
.nv-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.nv-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem 1.5rem; background: var(--wp--preset--color--white);
}
.nv-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.4rem; font-family: var(--wp--preset--font-family--heading);
}
@media (max-width: 781px) {
	.nv-header__cta { display: none !important; }
	.nv-brand__tag { display: none; }
}

/* ---------- Eyebrow / lead ---------------------------------------------- */
.is-style-nv-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-size: .8rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--brand-deep);
	margin-bottom: 0;
}
.has-ink-background-color .is-style-nv-eyebrow,
.nv-hero .is-style-nv-eyebrow,
.nv-podcast .is-style-nv-eyebrow { color: var(--wp--preset--color--brand); }
.nv-newsletter-band .is-style-nv-eyebrow { color: var(--wp--preset--color--ink); opacity: .75; }
.is-style-nv-lead {
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.55; color: var(--wp--preset--color--slate);
}
.has-ink-background-color .is-style-nv-lead { color: #d8d4cf; }

/* ---------- Buttons ------------------------------------------------------ */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--ink);
	padding: calc(.8em - 1.5px) calc(1.6em - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white);
}
.nv-btn-light.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--white); border-color: rgba(255,255,255,.5); }
.nv-btn-light.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }

/* ---------- Hero --------------------------------------------------------- */
.nv-hero { position: relative; overflow: hidden; isolation: isolate; }
.nv-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 80% at 85% 20%, rgba(235,105,10,.28) 0%, rgba(235,105,10,0) 60%),
		radial-gradient(40% 60% at 0% 100%, rgba(235,105,10,.10) 0%, rgba(235,105,10,0) 70%);
}
.nv-hero::after { /* fine grid texture */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
	background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
}
.nv-hero h1 { letter-spacing: -0.025em; margin-top: .6rem; }
.nv-hl { color: var(--wp--preset--color--brand); }
.nv-hero__chips {
	list-style: none; padding: 0; margin: var(--wp--preset--spacing--40) 0 0;
	display: flex; flex-wrap: wrap; gap: .5rem;
}
.nv-hero__chips li {
	font-size: .8rem; font-weight: 500; letter-spacing: .02em;
	padding: .35rem .8rem; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18); color: #e8e4df; background: rgba(255,255,255,.04);
}
.nv-hero__art img {
	filter: drop-shadow(0 30px 60px rgba(235,105,10,.35));
	animation: nv-float 7s ease-in-out infinite;
}
@keyframes nv-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .nv-hero__art img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 781px) {
	.nv-hero__art { order: -1; }
	.nv-hero__art img { width: 160px !important; }
}

/* ---------- Topic cards -------------------------------------------------- */
.nv-topic {
	position: relative;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
	background: var(--wp--preset--color--white);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nv-topic:hover { border-color: var(--wp--preset--color--brand); box-shadow: var(--wp--preset--shadow--soft); transform: translateY(-2px); }
.nv-topic h2, .nv-topic h3 { margin-top: .4rem; }
.nv-topic h2 a, .nv-topic h3 a { color: inherit; text-decoration: none; }
.nv-topic h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.nv-topic__num {
	font-family: var(--wp--preset--font-family--heading); font-weight: 700;
	font-size: .85rem; letter-spacing: .1em; color: var(--wp--preset--color--brand-deep);
	margin: 0;
}
.nv-topic__num::before { content: ""; display: inline-block; width: 1.5rem; height: 2px; background: var(--wp--preset--color--brand); vertical-align: middle; margin-right: .6rem; }
.nv-topic__more a { font-weight: 600; text-decoration: none; }
.nv-topic p { color: var(--wp--preset--color--slate); }
.nv-topic .nv-topic__num { color: var(--wp--preset--color--brand-deep); }

/* ---------- Article cards ------------------------------------------------ */
.nv-card { height: 100%; }
.nv-card .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: var(--nv-radius); }
.nv-card .wp-block-post-featured-image img { transition: transform .5s ease; }
.nv-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.nv-card .wp-block-post-title { margin: 0; }
.nv-card .wp-block-post-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.nv-card:hover .wp-block-post-title a { background-size: 100% 1.5px; }
.nv-card .wp-block-post-excerpt { margin: 0; }
.nv-card .wp-block-post-excerpt__excerpt { margin: 0; }
.nv-card .wp-block-post-terms { margin: 0; }
.nv-meta { color: var(--wp--preset--color--slate); font-size: var(--wp--preset--font-size--x-small); margin-top: auto !important; }
.nv-meta > * + *::before { content: "·"; margin-right: .5rem; color: var(--wp--preset--color--line); }
.nv-meta .wp-block-post-date, .nv-meta .nv-reading-time { font-size: inherit; color: inherit; }
.wp-block-nephrovet-reading-time { display: inline; }

/* Branded placeholder when there is no featured image */
.nv-fallback-media { position: relative; display: block; width: 100%; height: auto !important; margin: 0; border-radius: var(--nv-radius); overflow: hidden; aspect-ratio: 16 / 9; }
.nv-feature .nv-fallback-media { aspect-ratio: 3 / 2; }
.nv-fallback-media a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
	position: absolute; inset: 0; text-decoration: none;
	background: radial-gradient(90% 90% at 80% 10%, #3a2414 0%, #1E1E1E 50%, #141414 100%);
	color: #d8d4cf; font-family: var(--wp--preset--font-family--heading);
	font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
}
.nv-fallback-media img { width: 72px; height: 72px; opacity: .95; transition: transform .4s ease; }
.nv-card:hover .nv-fallback-media img { transform: scale(1.06) rotate(-4deg); }

/* Featured (sticky) article */
.nv-featured { padding-top: var(--wp--preset--spacing--50); }
.nv-featured .wp-block-post-template { margin: 0; }
.nv-feature { padding-bottom: var(--wp--preset--spacing--40); border-bottom: 1px solid var(--nv-line); }
.nv-feature .wp-block-post-featured-image { margin: 0; border-radius: var(--nv-radius); overflow: hidden; }
.nv-feature .wp-block-post-title { margin-top: .5rem; }
.nv-readmore { font-weight: 600; font-family: var(--wp--preset--font-family--heading); text-decoration: none; }

/* Hide sections whose query returned nothing (featured, related) */
.nv-hide-empty:not(:has(.wp-block-post)) { display: none; }

/* Section head */
.nv-section__head { margin-bottom: var(--wp--preset--spacing--40); }
.nv-section__head h2 { margin: 0; }
.nv-link-arrow { margin: 0; }
.nv-link-arrow a { font-weight: 600; text-decoration: none; font-family: var(--wp--preset--font-family--heading); }
.nv-empty {
	padding: 2rem; border: 1px dashed var(--nv-line); border-radius: var(--nv-radius);
	color: var(--wp--preset--color--slate); text-align: center;
}

/* ---------- Listing pages ------------------------------------------------ */
.nv-page-head { border-bottom: 1px solid var(--nv-line); }
.nv-page-head h1 { margin: 0; }
.nv-page-head .is-style-nv-lead { max-width: 46rem; margin-top: 0; }
.nv-pills { margin-top: .75rem; }
.nv-pills .wp-block-button__link { font-size: .875rem; padding: .45em 1.1em !important; border-width: 1px !important; border-color: var(--nv-line) !important; background: var(--wp--preset--color--white) !important; }
.nv-pills .wp-block-button__link:hover,
.nv-pills .is-current .wp-block-button__link { border-color: var(--wp--preset--color--ink) !important; background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--white) !important; }
.nv-pagination { gap: .5rem; font-family: var(--wp--preset--font-family--heading); }
.nv-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 999px; text-decoration: none; color: var(--wp--preset--color--ink); }
.nv-pagination .page-numbers.current { background: var(--wp--preset--color--ink); color: #fff; }
.nv-search .wp-block-search__input { border-radius: 999px; border: 1px solid var(--nv-line); padding: .7rem 1.1rem; }
.nv-search .wp-block-search__button { border-radius: 999px; margin-left: .5rem; }

/* ---------- Single article ---------------------------------------------- */
.nv-article__head .wp-block-post-title { letter-spacing: -0.02em; margin: 0; }
.nv-article__head .nv-dek p { margin: 0; }
.nv-meta--article { font-size: var(--wp--preset--font-size--small); padding-top: .5rem; }
.nv-meta__author { align-items: center; }
.nv-meta__author .wp-block-post-author__avatar { margin-right: .5rem; }
.nv-meta__author .wp-block-post-author__avatar img { border-radius: 999px; display: block; }
.nv-meta__author .wp-block-post-author__name { font-weight: 600; color: var(--wp--preset--color--ink); margin: 0; }
.nv-article__image img { width: 100%; max-height: 640px; object-fit: cover; }

.nv-content > * { margin-block-start: 1.25em; }
.nv-content h2 { margin-top: 2.2em; scroll-margin-top: 6rem; }
.nv-content h3 { margin-top: 1.8em; scroll-margin-top: 6rem; }
.nv-content :where(p, li) a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.nv-content :where(p, li) a:hover { text-decoration-thickness: 2px; }
.nv-content > p:first-child::first-letter { /* none — keep it clinical */ }
.nv-content ul, .nv-content ol { padding-left: 1.3em; }
.nv-content li { margin: .35em 0; }
.nv-content li::marker { color: var(--wp--preset--color--brand-deep); }
.nv-content figure { margin-block: 2em; }
.nv-content .wp-block-embed { margin-block: 2em; }
.nv-content sup a, .wp-block-footnotes a { text-decoration: none; }
.wp-block-footnotes { border-top: 1px solid var(--nv-line); padding-top: 1.25rem; margin-top: 3rem !important; padding-left: 1.3em; }

.nv-article__foot > * { margin-block-start: 0; }
.nv-tags { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); }
.nv-tags a { text-decoration: none; display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--wp--preset--color--mist); color: var(--wp--preset--color--ink); margin: .15rem .1rem; }
.nv-tags .wp-block-post-terms__separator { display: none; }

.nv-author-box {
	padding: 1.5rem; border-radius: var(--nv-radius);
	background: var(--wp--preset--color--mist); border: 1px solid var(--nv-line);
}
.nv-author-box .wp-block-post-author__avatar img { border-radius: 999px; }
.nv-author-box .wp-block-post-author__byline { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--slate); margin: 0 0 .15rem; }
.nv-author-box .wp-block-post-author__name { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 600; margin: 0 0 .35rem; }
.nv-author-box .wp-block-post-author__bio { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); margin: 0; }

.nv-related { border-top: 1px solid var(--nv-line); margin-top: var(--wp--preset--spacing--50) !important; }
.nv-related > h2 { margin-bottom: var(--wp--preset--spacing--40); }

/* Share */
.nv-share { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.nv-share__label { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: .85rem; margin-right: .4rem; }
.nv-share__btn {
	display: inline-flex; align-items: center; gap: .4rem; justify-content: center;
	min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem; border-radius: 999px;
	border: 1px solid var(--nv-line); background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink); fill: currentColor; text-decoration: none; cursor: pointer;
	font: 500 .8rem/1 var(--wp--preset--font-family--body);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nv-share__btn:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.nv-share__btn svg { fill: currentColor; }

/* Comments (legacy markup) */
.nv-article__foot .comment-respond, .nv-article__foot .comments-title { font-size: var(--wp--preset--font-size--small); }
.nv-article__foot .comment-reply-title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); }
.nv-article__foot textarea, .nv-article__foot input[type=text], .nv-article__foot input[type=email], .nv-article__foot input[type=url] { width: 100%; }

/* ---------- Clinical boxes (Group block → Styles) ------------------------ */
:is(.is-style-nv-key-points, .is-style-nv-pearl, .is-style-nv-caution, .is-style-nv-protocol, .is-style-nv-card) {
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem) !important;
	border-radius: var(--nv-radius);
	margin-block: 2em !important;
}
:is(.is-style-nv-key-points, .is-style-nv-pearl, .is-style-nv-caution, .is-style-nv-protocol, .is-style-nv-card) > :first-child { margin-top: 0; }
:is(.is-style-nv-key-points, .is-style-nv-pearl, .is-style-nv-caution, .is-style-nv-protocol, .is-style-nv-card) > :last-child { margin-bottom: 0; }
:is(.is-style-nv-key-points, .is-style-nv-pearl, .is-style-nv-caution, .is-style-nv-protocol, .is-style-nv-card) > * { margin-block-start: .75rem; }

.nv-box__label {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: var(--wp--preset--font-family--heading); font-weight: 700;
	font-size: .78rem !important; letter-spacing: .14em; text-transform: uppercase; margin: 0;
}
.nv-box__label::before {
	content: ""; width: 1.15rem; height: 1.15rem; flex-shrink: 0;
	background: currentColor; -webkit-mask: var(--nv-icon) center / contain no-repeat; mask: var(--nv-icon) center / contain no-repeat;
}

.is-style-nv-key-points {
	background: var(--wp--preset--color--brand-tint);
	border-left: 4px solid var(--wp--preset--color--brand);
	border-top-left-radius: 4px !important; border-bottom-left-radius: 4px !important;
}
.is-style-nv-key-points .nv-box__label { color: var(--wp--preset--color--brand-deep); --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2a1 1 0 0 0-1 1v1H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V3a1 1 0 0 0-1-1zm1 2h4v2h-4zm-.3 12.7-2.4-2.4 1.4-1.4 1.7 1.7 4.6-4.6 1.4 1.4z'/%3E%3C/svg%3E"); }
.is-style-nv-key-points li::marker { color: var(--wp--preset--color--brand); }
.is-style-nv-key-points ul, .is-style-nv-key-points ol { margin-bottom: 0; }

.is-style-nv-pearl {
	background: var(--wp--preset--color--teal-tint);
	border-left: 4px solid var(--wp--preset--color--teal);
	border-top-left-radius: 4px !important; border-bottom-left-radius: 4px !important;
}
.is-style-nv-pearl .nv-box__label { color: var(--wp--preset--color--teal); --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.3A7 7 0 0 0 12 2zm-3 18v1a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1z'/%3E%3C/svg%3E"); }

.is-style-nv-caution {
	background: var(--wp--preset--color--alert-tint);
	border-left: 4px solid var(--wp--preset--color--alert);
	border-top-left-radius: 4px !important; border-bottom-left-radius: 4px !important;
}
.is-style-nv-caution .nv-box__label { color: var(--wp--preset--color--alert); --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zm-1 7h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E"); }

.is-style-nv-protocol {
	background: var(--wp--preset--color--ink); color: #eeeae5;
}
.is-style-nv-protocol :is(h2, h3, h4, strong) { color: var(--wp--preset--color--white); }
.is-style-nv-protocol a { color: var(--wp--preset--color--brand); }
.is-style-nv-protocol .nv-box__label { color: var(--wp--preset--color--brand); --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v2H4zm0 5h10v2H4zm0 5h16v2H4zm0 5h10v2H4z'/%3E%3C/svg%3E"); }
.is-style-nv-protocol .is-style-nv-steps > li::before { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink); }

.is-style-nv-card { background: var(--wp--preset--color--white); border: 1px solid var(--nv-line); box-shadow: var(--wp--preset--shadow--soft); }

/* ---------- Lists -------------------------------------------------------- */
.is-style-nv-steps { list-style: none; padding-left: 0 !important; counter-reset: nv-step; }
.is-style-nv-steps > li { counter-increment: nv-step; position: relative; padding-left: 2.6rem; margin: .9rem 0; }
.is-style-nv-steps > li::before {
	content: counter(nv-step); position: absolute; left: 0; top: -.05em;
	width: 1.8rem; height: 1.8rem; border-radius: 999px; display: grid; place-items: center;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white);
	font: 700 .85rem/1 var(--wp--preset--font-family--heading);
}
.is-style-nv-checklist { list-style: none; padding-left: 0 !important; }
.is-style-nv-checklist > li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.is-style-nv-checklist > li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 999px;
	background: var(--wp--preset--color--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A84A05'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.is-style-nv-references { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate); line-height: 1.55; padding-left: 1.8em !important; }
.is-style-nv-references > li { margin: .5em 0; padding-left: .3em; }
.is-style-nv-references > li::marker { color: var(--wp--preset--color--slate); font-weight: 600; font-size: .9em; }
ul.is-style-nv-references { list-style: none; padding-left: 0 !important; }
ul.is-style-nv-references > li { border-left: 2px solid var(--wp--preset--color--brand); padding-left: .9rem; }
.nv-references-title { border-top: 1px solid var(--nv-line); padding-top: 1.5rem; margin-top: 3rem !important; }

.nv-timeline { list-style: none; padding-left: 0 !important; border-left: 2px solid var(--nv-line); margin-left: .4rem; }
.nv-timeline > li { position: relative; padding: 0 0 1.4rem 1.5rem; margin: 0; color: var(--wp--preset--color--slate); font-size: var(--wp--preset--font-size--small); }
.nv-timeline > li strong { color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--medium); font-family: var(--wp--preset--font-family--heading); font-weight: 600; }
.nv-timeline > li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 999px; background: var(--wp--preset--color--brand); box-shadow: 0 0 0 4px var(--wp--preset--color--white); }

/* ---------- Tables (scroll sideways on phones) --------------------------- */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table :is(th, td) { border-color: var(--nv-line); padding: .6em .8em; }
.is-style-nv-clinical table { border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; }
.is-style-nv-clinical :is(th, td) { border: 0; border-bottom: 1px solid var(--nv-line); text-align: left; vertical-align: top; }
.is-style-nv-clinical thead th { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--heading); font-weight: 600; white-space: nowrap; }
.is-style-nv-clinical tbody tr:nth-child(even) td { background: var(--wp--preset--color--mist); }
.is-style-nv-clinical tbody td:first-child { font-weight: 600; }
.wp-block-table figcaption, .wp-element-caption { margin-top: .6rem; text-align: left; }

/* ---------- Figures ------------------------------------------------------ */
.is-style-nv-framed { padding: .6rem; border: 1px solid var(--nv-line); border-radius: calc(var(--nv-radius) + 4px); background: var(--wp--preset--color--white); }
.is-style-nv-framed img { border-radius: var(--nv-radius); }
.is-style-nv-framed figcaption { padding: 0 .4rem .2rem; }
.nv-media__caption { color: var(--wp--preset--color--slate); margin-top: .5rem !important; }
.wp-block-embed iframe { border-radius: var(--nv-radius); }
.wp-block-separator.is-style-nv-accent { border: 0; height: 3px; width: 64px; background: var(--wp--preset--color--brand); opacity: 1; margin-left: auto; margin-right: auto; }

/* ---------- Portrait / about --------------------------------------------- */
.nv-portrait img { border-radius: 20px; box-shadow: var(--wp--preset--shadow--lift); width: 100%; }
.nv-about-teaser .nv-portrait, .nv-about-hero .nv-portrait { margin: 0; position: relative; }
.nv-about-hero .nv-portrait::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 40%; border-right: 3px solid var(--wp--preset--color--brand); border-bottom: 3px solid var(--wp--preset--color--brand); border-bottom-right-radius: 24px; pointer-events: none; }
.nv-about-hero h1 { margin-top: .5rem; }

/* ---------- Newsletter band & forms ------------------------------------- */
.nv-newsletter-band { position: relative; overflow: hidden; }
.nv-newsletter-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; border: 60px solid rgba(255,255,255,.12); pointer-events: none; }
.nv-newsletter-band h2 { color: var(--wp--preset--color--ink); letter-spacing: -0.02em; }
.nv-newsletter-band__art img { filter: drop-shadow(0 18px 30px rgba(20,20,20,.25)); }
@media (max-width: 781px) { .nv-newsletter-band__art { display: none; } }

.nv-newsletter { max-width: 34rem; margin-top: 1.25rem; }
.nv-newsletter__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.nv-newsletter input[type=email] {
	flex: 1 1 14rem; min-width: 0; padding: .85rem 1.2rem; border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--ink); background: var(--wp--preset--color--white);
	font: inherit; font-size: 1rem; color: var(--wp--preset--color--ink);
}
.nv-newsletter button { border: 0; cursor: pointer; }
.nv-newsletter-band .nv-newsletter button,
.nv-newsletter-band .mailpoet_submit { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--white) !important; }
.nv-newsletter-band .nv-newsletter button:hover { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--ink) !important; }
.nv-newsletter__fine { font-size: var(--wp--preset--font-size--x-small); margin: .6rem 0 0 1.2rem; opacity: .8; }
.nv-notice { margin-top: .8rem; padding: .7rem 1rem; border-radius: 10px; background: var(--wp--preset--color--teal-tint); color: var(--wp--preset--color--teal); font-weight: 500; font-size: var(--wp--preset--font-size--small); }
.nv-notice--error { background: var(--wp--preset--color--alert-tint); color: var(--wp--preset--color--alert); }
.nv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nv-contact { margin-block: 2rem; }
.nv-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.nv-contact p { margin: 0 0 1rem; }
.nv-contact label { display: block; font-weight: 600; font-size: var(--wp--preset--font-size--small); margin-bottom: .35rem; }
.nv-contact :is(input, select, textarea), .nv-newsletter input { box-sizing: border-box; }
.nv-contact :is(input, select, textarea) {
	width: 100%; padding: .75rem 1rem; border: 1px solid #cfcac4; border-radius: 10px;
	font: inherit; font-size: 1rem; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
}
.nv-contact :is(input, select, textarea):focus { border-color: var(--wp--preset--color--brand); outline: 2px solid rgba(235,105,10,.25); outline-offset: 0; }
.nv-contact button { border: 0; cursor: pointer; }
.nv-contact__fine { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--slate); }

/* ---------- Podcast ------------------------------------------------------ */
.nv-podcast { border-radius: var(--nv-radius); }

/* ---------- Footer ------------------------------------------------------- */
.nv-footer { font-size: var(--wp--preset--font-size--small); }
.nv-footer .wp-block-site-title { color: var(--wp--preset--color--white); margin: 0; }
.nv-footer .wp-block-site-title a { color: var(--wp--preset--color--white); }
.nv-footer__h { color: var(--wp--preset--color--brand) !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 1rem; }
.nv-footer__list { list-style: none; padding: 0; margin: 0; }
.nv-footer__list li { margin: .45rem 0; }
.nv-footer__list a { color: #e8e4df !important; text-decoration: none; }
.nv-footer__list a:hover { color: var(--wp--preset--color--brand) !important; }
.nv-footer__rule { border-color: rgba(255,255,255,.12) !important; background: rgba(255,255,255,.12) !important; opacity: 1; }
.nv-footer__bottom { color: #a9a49e; gap: 1rem 2rem; }
.nv-footer__bottom p { margin: 0; }
.nv-footer__disclaimer { max-width: 40rem; }
.nv-copyright { margin: 0; color: #a9a49e; }
.nv-social a { color: #fff; }

/* ---------- Small screens ------------------------------------------------ */
@media (max-width: 781px) {
	.nv-feature { gap: 1.25rem; }
	.nv-section__head { margin-bottom: 1.25rem; }
}

/* ---------- Coming soon page -------------------------------------------- */
.nv-soon {
	min-height: 100vh; min-height: 100svh; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: center;
	position: relative; overflow: hidden; isolation: isolate;
}
.nv-soon::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(55% 55% at 50% 30%, rgba(235,105,10,.30) 0%, rgba(235,105,10,0) 70%),
		radial-gradient(40% 50% at 0% 100%, rgba(235,105,10,.10) 0%, rgba(235,105,10,0) 70%);
}
.nv-soon::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
	background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000 0%, transparent 75%);
	mask-image: radial-gradient(60% 60% at 50% 35%, #000 0%, transparent 75%);
}
.nv-soon__brand .wp-block-site-title { font-size: 1.2rem; }
.nv-soon__brand figure { margin: 0; }
.nv-soon__art { margin-top: var(--wp--preset--spacing--40) !important; }
.nv-soon__art img { filter: drop-shadow(0 30px 60px rgba(235,105,10,.35)); animation: nv-float 7s ease-in-out infinite; }
.nv-soon h1 { letter-spacing: -0.025em; margin-top: .5rem; }
.nv-soon .is-style-nv-lead { color: #d8d4cf; }
.nv-soon__signup { margin-top: var(--wp--preset--spacing--40) !important; }
.nv-soon__signup .nv-newsletter { margin-inline: auto; }
.nv-soon__signup .nv-newsletter input[type=email] { border-color: transparent; }
.nv-soon__signup .nv-newsletter__fine { color: #a9a49e; text-align: center; margin-left: 0; }
.nv-soon .nv-notice { text-align: center; }
.nv-soon__chips { justify-content: center; }
.nv-soon .nv-copyright { text-align: center; margin-top: var(--wp--preset--spacing--50) !important; }
@media (max-width: 600px) { .nv-soon__art img { width: 150px !important; } }
@media (prefers-reduced-motion: reduce) { .nv-soon__art img { animation: none; } }
