/*
Theme Name: Novum
Theme URI: https://example.com/novum
Author: Novum
Description: תבנית מגזין יוקרתית בעברית (RTL) לחדשנות במגוון תחומים – טכנולוגיה, עסקים, מדע, עיצוב, בריאות ועוד. שער מגזין, מדורים בצבעים, תוכן עניינים אוטומטי, זמן קריאה ופס התקדמות. מהירה, נגישה וידידותית לגוגל; שומרת על כל התוכן, הכתובות והכותרות הקיימים. תואמת Yoast SEO ו-Rank Math.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novum
Tags: rtl-language-support, news, blog, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================
   1. Tokens
   ========================================================== */
:root {
	--nv-ink: #0c0c0e;
	--nv-ink-2: #17171a;
	--nv-ink-3: #26262b;
	--nv-text: #2b2a28;
	--nv-muted: #75706a;
	--nv-paper: #f6f4ef;
	--nv-white: #ffffff;
	--nv-line: #e2ddd3;
	--nv-line-dark: rgba(255,255,255,.12);
	--nv-champ: #c2a26a;
	--nv-champ-deep: #9a7c45;
	--nv-champ-light: #eadfc4;
	--cat: var(--nv-champ);
	--nv-serif: "Noto Serif Hebrew", "Frank Ruhl Libre", Georgia, serif;
	--nv-sans: "Heebo", "Assistant", "Segoe UI", Arial, sans-serif;
	--nv-wrap: 1280px;
	--nv-read: 700px;
	--nv-ease: cubic-bezier(.2,.7,.2,1);
	--nv-shadow: 0 30px 60px -30px rgba(12,12,14,.35);
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--nv-paper); color: var(--nv-text);
	font-family: var(--nv-sans); font-size: 17px; line-height: 1.75; font-weight: 400;
	direction: rtl; text-align: right;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--nv-ink); color: var(--nv-champ-light); }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--nv-ease); }
:focus-visible { outline: 2px solid var(--nv-champ); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--nv-serif); color: var(--nv-ink); font-weight: 600; line-height: 1.2; margin: 1.6em 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.3em; }
ul, ol { padding-right: 1.3em; padding-left: 0; }
hr { border: 0; border-top: 1px solid var(--nv-line); margin: 3rem 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.8rem; font-size: .95rem; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--nv-line); text-align: right; }
th { font-weight: 700; color: var(--nv-ink); border-bottom: 2px solid var(--nv-ink); }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000; top: 1rem; right: 1rem; padding: .8rem 1.2rem; background: var(--nv-ink); color: #fff; }

.nv-wrap { width: 100%; max-width: var(--nv-wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .nv-wrap { padding: 0 16px; } body { font-size: 16.5px; } }

.nv-kicker { font: 700 .72rem var(--nv-sans); letter-spacing: .28em; color: var(--nv-champ-deep); margin: 0 0 .8rem; }
.nv-button {
	display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 2rem;
	background: var(--nv-ink); color: #fff; border: 1px solid var(--nv-ink);
	font: 600 .85rem var(--nv-sans); letter-spacing: .14em; cursor: pointer; transition: all .3s var(--nv-ease);
}
.nv-button:hover { background: transparent; color: var(--nv-ink); }
.nv-button::after { content: "←"; transition: transform .3s var(--nv-ease); }
.nv-button:hover::after { transform: translateX(-4px); }

/* Category label */
.nv-label {
	display: inline-flex; align-items: center; gap: .5rem;
	font: 700 .7rem var(--nv-sans); letter-spacing: .22em; color: var(--cat);
}
.nv-label::before { content: ""; width: 7px; height: 7px; background: var(--cat); }
.nv-label:hover { color: var(--nv-ink); }

.nv-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .8rem; color: var(--nv-muted); letter-spacing: .02em; }
.nv-meta > span + span::before { content: "/"; margin-left: .8rem; color: var(--nv-line); }
.nv-meta .nv-author a { color: var(--nv-ink); font-weight: 600; }

/* ==========================================================
   3. Header
   ========================================================== */
.nv-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.nv-progress span { display: block; height: 100%; width: 0; background: linear-gradient(270deg, var(--nv-champ-deep), var(--nv-champ), var(--nv-champ-light)); }

.nv-strip { background: var(--nv-ink); color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .06em; }
.nv-strip .nv-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.nv-tagline { color: var(--nv-champ-light); letter-spacing: .2em; font-size: .72rem; }
.nv-search-btn { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: .4rem 0; }
.nv-search-btn:hover { color: #fff; }
@media (max-width: 760px) { .nv-tagline { display: none; } }

.nv-masthead { text-align: center; padding: 2.6rem 32px 2rem; }
.nv-masthead .custom-logo { margin: 0 auto; max-height: 110px; width: auto; }
.nv-logo { margin: 0; font-family: var(--nv-serif); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.02em; }
.nv-logo a { color: var(--nv-ink); }
.nv-logo a:hover { color: var(--nv-ink-3); }

.nv-nav {
	position: sticky; top: 0; z-index: 100;
	background: rgba(246,244,239,.92); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
	border-top: 3px double var(--nv-ink); border-bottom: 1px solid var(--nv-ink);
}
.admin-bar .nv-nav { top: 32px; }
.nv-nav .nv-wrap { display: flex; justify-content: center; }
.nv-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nv-menu li { position: relative; }
.nv-menu a { display: block; padding: .95rem 1.15rem; font-size: .9rem; font-weight: 600; letter-spacing: .08em; color: var(--nv-ink); }
.nv-menu > li > a::after { content: ""; position: absolute; right: 1.15rem; left: 1.15rem; bottom: -1px; height: 3px; background: var(--nv-champ); transform: scaleX(0); transition: transform .3s var(--nv-ease); }
.nv-menu > li > a:hover::after, .nv-menu > .current-menu-item > a::after, .nv-menu > .current-menu-ancestor > a::after, .nv-menu > .current-cat > a::after { transform: scaleX(1); }
.nv-menu .sub-menu, .nv-menu .children {
	list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; right: 0; min-width: 230px; background: var(--nv-ink);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--nv-ease); z-index: 60; box-shadow: var(--nv-shadow);
}
.nv-menu li:hover > .sub-menu, .nv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nv-menu .sub-menu a { color: rgba(255,255,255,.85); padding: .55rem 1.3rem; font-weight: 500; letter-spacing: .02em; }
.nv-menu .sub-menu a:hover { color: var(--nv-champ-light); }
.nv-menu .sub-menu .sub-menu { right: 100%; top: -.5rem; }

.nv-menu-toggle { display: none; align-items: center; gap: .6rem; margin: 0 auto; background: none; border: 0; padding: .9rem 0; font: 700 .85rem var(--nv-sans); letter-spacing: .2em; color: var(--nv-ink); cursor: pointer; }
.nv-menu-toggle .bars { width: 20px; height: 12px; background: linear-gradient(var(--nv-ink),var(--nv-ink)) top/100% 2px no-repeat, linear-gradient(var(--nv-ink),var(--nv-ink)) bottom/60% 2px no-repeat; background-position: top right, bottom right; }
@media (max-width: 900px) {
	.nv-nav .nv-wrap { flex-direction: column; }
	.nv-menu-toggle { display: inline-flex; }
	.nv-menu { display: none; flex-direction: column; padding-bottom: .6rem; }
	.nv-nav.is-open .nv-menu { display: flex; }
	.nv-menu a { text-align: center; border-top: 1px solid var(--nv-line); }
	.nv-menu > li > a::after { display: none; }
	.nv-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
	.admin-bar .nv-nav { top: 0; }
}

/* Ticker */
.nv-ticker { border-bottom: 1px solid var(--nv-line); background: var(--nv-white); font-size: .88rem; }
.nv-ticker .nv-wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 46px; }
.nv-ticker-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .72rem; letter-spacing: .22em; color: var(--nv-ink); }
.nv-ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 0 rgba(192,57,43,.5); animation: nv-pulse 2s infinite; }
@keyframes nv-pulse { 70% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); } }
.nv-ticker-track { flex: 1; overflow: hidden; display: flex; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.nv-ticker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; animation: nv-tick 60s linear infinite; }
.nv-ticker-track:hover .nv-ticker-list, .nv-ticker-track:focus-within .nv-ticker-list { animation-play-state: paused; }
.nv-ticker-list li { white-space: nowrap; padding-left: 2.5rem; }
.nv-ticker-list li::before { content: "◆"; font-size: .5rem; color: var(--nv-champ); margin-left: 1rem; vertical-align: middle; }
.nv-ticker-list a:hover { color: var(--nv-champ-deep); }
@keyframes nv-tick { to { transform: translateX(100%); } }

.nv-search-panel { background: var(--nv-ink); padding: 1.6rem 0; }
.nv-search-panel .nv-search { max-width: 720px; margin: 0 auto; border-color: var(--nv-line-dark); background: transparent; }
.nv-search-panel input[type=search] { color: #fff; font-size: 1.3rem; font-family: var(--nv-serif); }
.nv-search-panel input::placeholder { color: rgba(255,255,255,.45); }

/* ==========================================================
   4. Cards
   ========================================================== */
.nv-card { position: relative; display: flex; flex-direction: column; }
.nv-card-media { display: block; position: relative; overflow: hidden; background: var(--nv-ink-3); aspect-ratio: 3 / 2; }
.nv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--nv-ease); }
.nv-card:hover .nv-card-media img { transform: scale(1.045); }
.nv-noimg { display: block; width: 100%; height: 100%; background:
	radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--nv-champ) 40%, transparent), transparent 55%),
	linear-gradient(135deg, var(--nv-ink-2), var(--nv-ink-3)); }
.nv-card-body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.nv-card-title { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.nv-card-title a { background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat; transition: background-size .45s var(--nv-ease); padding-bottom: 2px; }
.nv-card-title a:hover { background-size: 100% 1px; }
.nv-excerpt { color: var(--nv-muted); font-size: .97rem; line-height: 1.65; }
.nv-excerpt p { margin: 0; }

/* lead */
.nv-card--lead { height: 100%; min-height: 560px; justify-content: flex-end; background: var(--nv-ink); color: #fff; }
.nv-card--lead .nv-card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.nv-card--lead .nv-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,12,14,.95) 0%, rgba(12,12,14,.6) 40%, rgba(12,12,14,0) 75%); }
.nv-card--lead .nv-card-body { position: relative; z-index: 2; padding: 2.6rem 2.6rem 2.4rem; gap: .8rem; }
.nv-card--lead .nv-card-title { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; color: #fff; font-weight: 700; }
.nv-card--lead .nv-excerpt { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 640px; }
.nv-card--lead .nv-meta, .nv-card--lead .nv-meta .nv-author a { color: rgba(255,255,255,.7); }
.nv-card--lead .nv-meta > span + span::before { color: rgba(255,255,255,.25); }
.nv-card--lead .nv-label { color: var(--nv-champ-light); }
.nv-card--lead .nv-label::before { background: var(--cat); }
@media (max-width: 700px) { .nv-card--lead { min-height: 460px; } .nv-card--lead .nv-card-body { padding: 1.6rem 1.3rem; } }

/* compact (thumb + title side by side) */
.nv-card--compact { flex-direction: row; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 0; border-top: 1px solid var(--nv-line); }
.nv-card--compact:first-child { border-top: 0; padding-top: 0; }
.nv-card--compact .nv-card-media { width: 120px; flex-shrink: 0; aspect-ratio: 1; }
.nv-card--compact .nv-card-body { padding: 0; gap: .4rem; }
.nv-card--compact .nv-card-title { font-size: 1.1rem; }

/* list (numbered, no image) */
.nv-card--list { flex-direction: row; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--nv-line); }
.nv-card--list .nv-card-body { padding: 0; gap: .35rem; }
.nv-card--list .nv-card-title { font-size: 1.05rem; line-height: 1.35; }
.nv-num { font-family: var(--nv-serif); font-size: 1.9rem; font-weight: 400; line-height: 1; color: var(--nv-champ); min-width: 2.2rem; }

/* ==========================================================
   5. Home – hero & sections
   ========================================================== */
.nv-hero { padding-top: 2.6rem; padding-bottom: 3.5rem; }
.nv-hero-grid { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,3fr) minmax(0,3fr); gap: 2.2rem; }
.nv-hero-side { display: flex; flex-direction: column; gap: 2rem; }
.nv-hero-side .nv-excerpt { display: none; }
.nv-hero-list { border-right: 1px solid var(--nv-line); padding-right: 2rem; }
.nv-hero-list .nv-card--list:first-of-type { border-top: 2px solid var(--nv-ink); }
@media (max-width: 1100px) {
	.nv-hero-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
	.nv-hero-list { grid-column: 1 / -1; border-right: 0; padding-right: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 2rem; }
	.nv-hero-list .nv-kicker { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .nv-hero-grid { grid-template-columns: minmax(0,1fr); } .nv-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
@media (max-width: 520px) { .nv-hero-side { grid-template-columns: 1fr; } }

.nv-section { padding: 4rem 0; border-top: 1px solid var(--nv-line); }
.nv-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; padding-top: 1.1rem; border-top: 3px solid var(--nv-ink); position: relative; }
.nv-section-head::before { content: ""; position: absolute; top: -3px; right: 0; width: 90px; height: 3px; background: var(--cat); }
.nv-section-title { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.nv-more { font-size: .78rem; font-weight: 700; letter-spacing: .16em; color: var(--nv-ink); white-space: nowrap; }
.nv-more::after { content: " ←"; color: var(--cat); }
.nv-more:hover { color: var(--cat); }

.nv-section-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 2.8rem; }
.nv-section-lead .nv-card-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.nv-section-lead .nv-card-media { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .nv-section-grid { grid-template-columns: minmax(0,1fr); gap: 1.8rem; } }

.nv-section--dark { background: var(--nv-ink); color: rgba(255,255,255,.78); border-top: 0; }
.nv-section--dark .nv-section-head { border-top-color: rgba(255,255,255,.9); }
.nv-section--dark .nv-section-title, .nv-section--dark .nv-card-title, .nv-section--dark .nv-more { color: #fff; }
.nv-section--dark .nv-excerpt, .nv-section--dark .nv-meta { color: rgba(255,255,255,.6); }
.nv-section--dark .nv-meta .nv-author a { color: #fff; }
.nv-section--dark .nv-meta > span + span::before { color: rgba(255,255,255,.2); }
.nv-section--dark .nv-card--compact { border-top-color: var(--nv-line-dark); }

.nv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3rem 2.2rem; }
@media (max-width: 960px) { .nv-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .nv-grid-3 { grid-template-columns: minmax(0,1fr); } }
.nv-archive-link { text-align: center; margin: 3.5rem 0 0; }

/* ==========================================================
   6. Archive
   ========================================================== */
.nv-archive-head { padding: 2.4rem 0 3rem; text-align: center; border-bottom: 1px solid var(--nv-line); margin-bottom: 3rem; position: relative; }
.nv-archive-head::after { content: ""; position: absolute; bottom: -2px; right: 50%; transform: translateX(50%); width: 120px; height: 3px; background: var(--cat); }
.nv-archive-head h1 { margin: 0; font-weight: 700; }
.nv-archive-head .nv-kicker { color: var(--cat); }
.nv-archive-desc { max-width: 680px; margin: 1.1rem auto 0; color: var(--nv-muted); font-size: 1.08rem; }
.nv-archive { padding-bottom: 4rem; }
.nv-archive.has-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 3.5rem; align-items: start; }
.nv-archive.has-sidebar .nv-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.nv-archive-grid > .nv-card--lead { grid-column: 1 / -1; min-height: 520px; }
@media (max-width: 980px) { .nv-archive.has-sidebar { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) { .nv-archive.has-sidebar .nv-grid-3 { grid-template-columns: minmax(0,1fr); } }
.nv-empty { text-align: center; padding: 3rem 0; }
.nv-empty .nv-search { max-width: 520px; margin: 1.5rem auto 0; }

.nv-crumbs { font-size: .8rem; color: var(--nv-muted); margin-bottom: 1.4rem; }
.nv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: inherit; }
.nv-archive-head .nv-crumbs ol, .nv-article-head .nv-crumbs ol { justify-content: center; }
.nv-crumbs li + li::before { content: "/"; margin-left: .45rem; color: var(--nv-line); }
.nv-crumbs a:hover { color: var(--nv-ink); }

.nv-pagination { margin-top: 3.5rem; text-align: center; }
.nv-pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.nv-pagination .page-numbers { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1rem; border: 1px solid var(--nv-line); font-weight: 600; transition: all .25s; }
.nv-pagination .page-numbers.current, .nv-pagination a.page-numbers:hover { background: var(--nv-ink); border-color: var(--nv-ink); color: #fff; }

/* ==========================================================
   7. Single article
   ========================================================== */
.nv-article-head { text-align: center; max-width: 980px; padding-top: 2.6rem; padding-bottom: 2.4rem; }
.nv-article-title { margin: 1rem 0 1.1rem; font-size: clamp(2.1rem, 5.2vw, 4.1rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.nv-standfirst { font-family: var(--nv-serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: var(--nv-muted); max-width: 760px; margin: 0 auto 1.8rem; }
.nv-byline { display: inline-flex; align-items: center; gap: .9rem; text-align: right; padding-top: 1.3rem; border-top: 1px solid var(--nv-line); }
.nv-byline img { border-radius: 50%; }
.nv-byline-name { font-weight: 700; color: var(--nv-ink); }
.nv-byline .nv-meta { font-size: .78rem; }
.nv-article-media { margin: 0 auto; max-width: var(--nv-wrap); }
.nv-article-media img { width: 100%; max-height: 720px; object-fit: cover; }
.nv-article-media figcaption { font-size: .8rem; color: var(--nv-muted); padding-top: .7rem; }

.nv-article-body { display: grid; grid-template-columns: 1fr minmax(0, var(--nv-read)) 1fr; gap: 2rem; padding-top: 3.2rem; padding-bottom: 4rem; }
.nv-article-body .nv-content { grid-column: 2; }
.nv-article-rail { grid-column: 1; justify-self: end; }
.nv-article-rail .nv-share { position: sticky; top: 90px; flex-direction: column; }
.nv-article-body.is-single-col { grid-template-columns: minmax(0, var(--nv-read)); justify-content: center; }
.nv-article-body.is-single-col .nv-content { grid-column: 1; }
.nv-share-bottom { display: none; }
@media (max-width: 1000px) {
	.nv-article-body { grid-template-columns: minmax(0,1fr); max-width: calc(var(--nv-read) + 64px); }
	.nv-article-body .nv-content { grid-column: 1; }
	.nv-article-rail { display: none; }
	.nv-share-bottom { display: block; margin: 2.4rem 0; }
}

.nv-content { font-size: 1.1rem; line-height: 1.85; color: var(--nv-text); }
.nv-content > p:first-of-type { font-size: 1.25rem; line-height: 1.75; color: var(--nv-ink); }
.nv-content h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 2.2em; scroll-margin-top: 90px; }
.nv-content h3 { font-size: 1.35rem; scroll-margin-top: 90px; }
.nv-content a { color: var(--nv-ink); text-decoration: underline; text-decoration-color: var(--nv-champ); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nv-content a:hover { color: var(--nv-champ-deep); }
.nv-content img { margin: 2rem auto; }
.nv-content figure, .nv-content .wp-caption { margin: 2.4rem 0; max-width: 100%; }
.nv-content figcaption, .nv-content .wp-caption-text { font-size: .82rem; color: var(--nv-muted); }
.nv-content ul li::marker { color: var(--nv-champ); }
.nv-content .alignleft { float: left; margin: .4rem 1.6rem 1rem 0; }
.nv-content .alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.nv-content .aligncenter { margin-left: auto; margin-right: auto; }
.nv-content .alignwide { margin-left: -8vw; margin-right: -8vw; max-width: none; }
.nv-content::after { content: ""; display: table; clear: both; }
@media (max-width: 1000px) { .nv-content .alignwide { margin-left: 0; margin-right: 0; } }
@media (max-width: 600px) { .nv-content .alignleft, .nv-content .alignright { float: none; margin: 1rem auto; } }

.nv-content blockquote, blockquote {
	margin: 2.6rem 0; padding: 0 1.8rem 0 0; border-right: 3px solid var(--nv-champ);
	font-family: var(--nv-serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.45; color: var(--nv-ink);
}
blockquote p:last-child { margin: 0; }
blockquote cite { display: block; margin-top: .8rem; font: 600 .82rem var(--nv-sans); letter-spacing: .12em; color: var(--nv-muted); font-style: normal; }

.nv-toc { margin: 0 0 2.6rem; padding: 1.6rem 1.8rem; background: var(--nv-white); border-top: 3px solid var(--nv-ink); }
.nv-toc-title { font: 700 .72rem var(--nv-sans); letter-spacing: .24em; color: var(--nv-champ-deep); margin: 0 0 .8rem; }
.nv-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.nv-toc li { counter-increment: toc; display: flex; gap: .8rem; padding: .45rem 0; border-top: 1px solid var(--nv-line); font-size: 1rem; line-height: 1.5; }
.nv-toc li:first-child { border-top: 0; }
.nv-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--nv-serif); color: var(--nv-champ); min-width: 1.8rem; }
.nv-content .nv-toc a { text-decoration: none; color: var(--nv-ink); }
.nv-content .nv-toc a:hover { color: var(--nv-champ-deep); }

.nv-share { display: flex; align-items: center; gap: .5rem; }
.nv-share-title { font: 700 .66rem var(--nv-sans); letter-spacing: .22em; color: var(--nv-muted); }
.nv-share a, .nv-share button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--nv-line); border-radius: 50%; background: var(--nv-white); color: var(--nv-ink); cursor: pointer; transition: all .25s var(--nv-ease); padding: 0; }
.nv-share a:hover, .nv-share button:hover { background: var(--nv-ink); border-color: var(--nv-ink); color: var(--nv-champ-light); }
.nv-copy.is-copied { background: var(--nv-champ); border-color: var(--nv-champ); color: #fff; }
.nv-content .nv-share a { text-decoration: none; }

.nv-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.6rem; }
.nv-content .nv-tags a { text-decoration: none; font-size: .82rem; padding: .35rem 1rem; border: 1px solid var(--nv-line); background: var(--nv-white); }
.nv-content .nv-tags a:hover { border-color: var(--nv-ink); background: var(--nv-ink); color: #fff; }

.nv-author-box { display: flex; gap: 1.4rem; align-items: flex-start; margin-top: 3rem; padding: 2rem; background: var(--nv-white); border-top: 3px solid var(--nv-ink); }
.nv-author-box img { border-radius: 50%; flex-shrink: 0; }
.nv-author-box h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.nv-content .nv-author-box h2 a { text-decoration: none; }
.nv-author-box p { margin: 0; font-size: .97rem; color: var(--nv-muted); }
.nv-author-box .nv-kicker { margin-bottom: .3rem; }

.nv-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3rem; }
.nv-content .nv-post-nav a { text-decoration: none; display: block; padding: 1.4rem 0; border-top: 1px solid var(--nv-ink); font-family: var(--nv-serif); font-size: 1.12rem; line-height: 1.4; font-weight: 600; }
.nv-post-nav small { display: block; font: 700 .68rem var(--nv-sans); letter-spacing: .22em; color: var(--nv-champ-deep); margin-bottom: .4rem; }
.nv-post-nav .is-next { text-align: left; grid-column: 2; }
@media (max-width: 600px) { .nv-post-nav { grid-template-columns: 1fr; } .nv-post-nav .is-next { grid-column: 1; text-align: right; } }

.nv-related { padding-bottom: 4.5rem; }

/* ==========================================================
   8. Sidebar, search, comments
   ========================================================== */
.nv-sidebar { position: sticky; top: 90px; }
.nv-sidebar .widget { margin-bottom: 2.6rem; font-size: .97rem; }
.nv-sidebar .widget-title, .nv-sidebar .widget h2 { font-size: 1.15rem; margin: 0 0 1rem; padding-top: .8rem; border-top: 3px solid var(--nv-ink); }
.nv-sidebar ul { list-style: none; margin: 0; padding: 0; }
.nv-sidebar li { padding: .6rem 0; border-bottom: 1px solid var(--nv-line); }
.nv-sidebar li a:hover { color: var(--nv-champ-deep); }
@media (max-width: 980px) { .nv-sidebar { position: static; } }

.nv-search { display: flex; border: 1px solid var(--nv-line); background: var(--nv-white); }
.nv-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: .95rem 1.1rem; font: inherit; color: var(--nv-ink); }
.nv-search input[type=search]:focus { outline: none; }
.nv-search button { border: 0; background: var(--nv-champ); color: var(--nv-ink); padding: 0 1.5rem; font: 700 .8rem var(--nv-sans); letter-spacing: .16em; cursor: pointer; transition: background .25s; }
.nv-search button:hover { background: var(--nv-champ-light); }

.nv-comments { margin-top: 3.5rem; padding-top: 1.2rem; border-top: 3px solid var(--nv-ink); }
.nv-comments-title { font-size: 1.5rem; margin: 0 0 1.5rem; }
.nv-comments .comment-list { list-style: none; padding: 0; }
.nv-comments .children { list-style: none; padding-right: 2rem; border-right: 1px solid var(--nv-line); }
.nv-comments .comment-body { padding: 1.4rem 0; border-bottom: 1px solid var(--nv-line); }
.nv-comments .comment-author img { border-radius: 50%; float: right; margin-left: .8rem; }
.nv-comments .comment-author .fn { font-style: normal; font-weight: 700; }
.nv-comments .comment-metadata { font-size: .78rem; }
.nv-comments .comment-metadata a, .nv-comments .reply a { color: var(--nv-muted); text-decoration: none; }
input[type=text], input[type=email], input[type=url], textarea { width: 100%; border: 1px solid var(--nv-line); background: var(--nv-white); padding: .85rem 1rem; font: inherit; color: var(--nv-ink); }
input:focus, textarea:focus { border-color: var(--nv-ink); outline: none; }
.comment-form input[type=submit] { background: var(--nv-ink); color: #fff; border: 1px solid var(--nv-ink); padding: .95rem 2rem; font: 600 .85rem var(--nv-sans); letter-spacing: .14em; cursor: pointer; }
.comment-form input[type=submit]:hover { background: transparent; color: var(--nv-ink); }

/* ==========================================================
   9. Footer
   ========================================================== */
.nv-footer { background: var(--nv-ink); color: rgba(255,255,255,.65); font-size: .95rem; margin-top: 0; }
.nv-footer-top { padding: 4.5rem 0 2.5rem; border-bottom: 1px solid var(--nv-line-dark); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.nv-footer .nv-logo a { color: #fff; }
.nv-footer-tag { margin: 0; color: var(--nv-champ-light); letter-spacing: .18em; font-size: .78rem; }
.nv-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.5rem; padding: 3rem 0; }
@media (max-width: 900px) { .nv-footer-cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .nv-footer-cols { grid-template-columns: minmax(0,1fr); } }
.nv-footer .widget-title, .nv-footer .widget h2 { color: #fff; font-family: var(--nv-sans); font-size: .75rem; font-weight: 700; letter-spacing: .24em; margin: 0 0 1.2rem; }
.nv-footer ul { list-style: none; margin: 0; padding: 0; }
.nv-footer li { padding: .3rem 0; }
.nv-footer a:hover { color: var(--nv-champ-light); }
.nv-footer-cats { columns: 2; column-gap: 1.5rem; }
.nv-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--nv-line-dark); font-size: .8rem; color: rgba(255,255,255,.45); }
.nv-footer-bottom p { margin: 0; }
.nv-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }

.nv-top { position: fixed; left: 1.3rem; bottom: 1.3rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--nv-ink); color: var(--nv-champ-light); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--nv-ease); z-index: 90; box-shadow: var(--nv-shadow); }
.nv-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.nv-top:hover { background: var(--nv-champ); color: var(--nv-ink); }

.nv-404 { text-align: center; padding: 4rem 16px 5rem; }
.nv-404-num { font-family: var(--nv-serif); font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; line-height: 1; margin: 0; color: var(--nv-ink); -webkit-text-stroke: 1px var(--nv-ink); color: transparent; }
.nv-404 .nv-search { max-width: 520px; margin: 2rem auto; }

/* WP core */
.sticky .nv-label::after { content: "✦"; color: var(--nv-champ); }
.bypostauthor > .comment-body .fn::after { content: " ✦"; color: var(--nv-champ); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.wp-block-button__link { background: var(--nv-ink); color: #fff; border-radius: 0; }
.wp-block-pullquote { border-top: 3px solid var(--nv-ink); border-bottom: 1px solid var(--nv-ink); }
.wp-block-pullquote blockquote { border: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.nv-ticker-track { overflow-x: auto; }
}
@media print {
	.nv-strip, .nv-nav, .nv-ticker, .nv-sidebar, .nv-footer, .nv-top, .nv-share, .nv-related, .nv-comments, .nv-progress { display: none !important; }
	body { background: #fff; }
}
