/* =========================================================================
   NewsOn theme
   Colors and fonts follow Elementor's global Site Settings, so blog, shop,
   search and 404 pages match whichever starter site you imported.
   ========================================================================= */

/* Metric-matched local fallbacks for the two site fonts (measured against the web fonts): while Source Serif 4 /
   IBM Plex Sans load, text is set in Times New Roman / Arial scaled to the same width and line box, so the swap
   does not move the layout (CLS). Nothing is downloaded: local() only. Latin letters and punctuation only (unicode-range):
   arrows and other symbols the web fonts lack keep falling through to the same system font as before. */
@font-face { font-family: "NewsOn Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); font-weight: 100 500; size-adjust: 104%; ascent-override: 100%; descent-override: 33%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "NewsOn Serif Fallback"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"); font-weight: 600 900; size-adjust: 104%; ascent-override: 100%; descent-override: 33%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "NewsOn Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); font-weight: 100 500; size-adjust: 101%; ascent-override: 101%; descent-override: 27%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "NewsOn Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); font-weight: 600 900; size-adjust: 97%; ascent-override: 105%; descent-override: 28%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
:root {
	/* the yellow accent comes from Theme Options (--nw-accent-fallback), NOT Elementor's Primary global: Elementor paints
	   headings in Primary by default, and yellow is never text on white. Elementor kits keep Primary = ink and offer
	   the yellow as the custom global "NewsOn Yellow". */
	--nw-accent: var(--nw-accent-fallback, #FFD60A);
	--nw-accent-ink: #0a0a0a;   /* text and icons ON the accent: black on yellow */
	--nw-accent-hover: #F5C400; /* a deeper yellow for hovers on yellow fills */
	/* --nw-accent-text is left unset on purpose: "accent" text falls back to the surrounding text color (ink on light pages, white on dark bands; yellow has 1.4:1 on white,
	   so it is never text there) — kickers / labels get a yellow marker instead; dark contexts set it to the accent. */
	--nw-accent-2: var(--e-global-color-accent, var(--nw-accent-2-fallback, #0a0a0a)); /* = ink: never a second hue */
	--nw-ink: var(--e-global-color-secondary, #0a0a0a);
	--nw-text: var(--e-global-color-text, #262626);
	--nw-mute: #6b6b6b;
	--nw-line: #e5e5e5;
	--nw-soft: #f6f6f5;
	--nw-bg: #ffffff;
	--nw-radius: 0px;
	--nw-max: 1200px;
	--nw-wrap: 1344px; /* the site container = the shared header bar: max width incl. gutters … */
	--nw-gut: 32px;    /* … and its side gutter (16px once the header switches to its mobile bar) */
	--nw-font: var(--e-global-typography-text-font-family, "IBM Plex Sans"), "NewsOn Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--nw-font-head: var(--e-global-typography-primary-font-family, "Source Serif 4"), "NewsOn Serif Fallback", Georgia, "Times New Roman", serif;
	--nw-font-read: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif; /* article reading text */
	--nw-shadow: none;
	--nw-float: 0 12px 24px rgba(0,0,0,.06); /* dropdowns and other floating layers only */
}
body:has(.mmx-wrap.is-mobile) { --nw-gut: 16px; }
@media (max-width: 767px) { :root { --nw-gut: 16px; } }

/* Dark mode: the Dark Mode Toggle's "palette" mode repaints surfaces and text itself (--nwdm-* colors);
   on black the yellow accent may be text too (about 13:1 on #0a0a0a). The default "invert" mode is handled
   in the plugin's dark-mode.css (yellow fills are counter-inverted, lines use a pre-inverted gold).
   The Night scheme (Theme Options → Colors) sets the full inverse: headings #f5f5f4, text #d6d3d1, page #0a0a0a;
   accent text follows --nw-ink there, so it stays readable. */
html.nwdm-m-palette.nwdm-dark { --nw-accent: #FFD60A; --nw-accent-text: #FFD60A; }
/* dark surfaces of the theme: accent text may be yellow there */
.nw-footer, .site-footer, .nw-ah-dark, .nwsd-dark, .is-dark, .nw-dark { --nw-accent-text: var(--nw-accent); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--nw-bg); color: var(--nw-text); font-family: var(--nw-font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--nw-ink); font-family: var(--nw-font-head); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); } h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); } h3 { font-size: 1.35rem; } h4 { font-size: 1.15rem; }
p { margin: 0 0 1.2em; }
a { color: var(--nw-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(a:hover) { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
img, video, iframe { max-width: 100%; height: auto; }
figure { margin: 0 0 1.5em; }
hr { border: 0; border-top: 1px solid var(--nw-line); margin: 2.5em 0; }
blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--nw-ink); background: none; border-radius: 0; font-family: var(--nw-font-head); font-size: 1.3em; line-height: 1.4; color: var(--nw-ink); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { overflow: auto; padding: 1.2em 1.4em; border-radius: 0; background: #0a0a0a; color: #e5e5e5; }
:not(pre) > code { padding: .15em .4em; border-radius: 0; background: var(--nw-soft); color: var(--nw-ink); }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
th, td { padding: .7em .9em; border-bottom: 1px solid var(--nw-line); text-align: left; }
:focus-visible { outline: 2px solid var(--nw-ink, #0a0a0a); outline-offset: 2px; box-shadow: 0 0 0 4px var(--nw-accent); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: calc(var(--nw-radius) * 0.56); background: #fff; color: var(--nw-ink); border: 1px solid var(--nw-ink); }

.nw-container { width: 100%; max-width: calc(var(--nw-max) + 2 * var(--nw-gut)); margin: 0 auto; padding: 0 var(--nw-gut); } /* content edges = the header bar's (80–1360 at 1440 with the default 1280 content width) */
@media (min-width: 601px) { /* reading columns and framed figures that are narrower by design keep their own inner width */
	.nw-container.nw-narrow, .nw-container.nwsd-shell, :is(.nwsd-feature, .nwsd-framed, .nwsd-editorial, .nwsd-dark, .nwsd-rail, .nwsd-soft) .nw-container.nwsd-figwrap { padding-left: 24px; padding-right: 24px; }
}
.nw-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.nw-section { padding-top: 64px; padding-bottom: 88px; }

/* ---------- buttons, forms ---------- */
/* plain submit buttons use :where() so any widget button style (a class) wins over the theme default */
.nw-btn, :where(button[type="submit"], input[type="submit"]), .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--nw-radius);
	background: var(--nw-ink); color: var(--nw-bg, #fff); font: 600 13px/1 var(--nw-font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	box-shadow: none; transition: background-color .25s ease, color .25s ease;
}
.nw-btn, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce .button { color: var(--nw-bg, #fff) !important; }
.nw-btn:hover, :where(button[type="submit"], input[type="submit"]):hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wp-block-button__link:hover { background: var(--nw-accent); color: var(--nw-accent-ink, #0a0a0a); }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d4d4d4; border-radius: 0; background: #fff; color: var(--nw-ink); font: 400 16px/1.5 var(--nw-font); transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--nw-ink, #0a0a0a); outline-offset: 2px; border-color: var(--nw-ink); box-shadow: none; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }

/* ---------- header (default) ---------- */
.nw-header { position: relative; z-index: 50; background: var(--nw-bg); border-top: 3px solid var(--nw-ink); border-bottom: 1px solid var(--nw-ink); }
.nw-sticky-header .nw-header { position: sticky; top: 0; }
.admin-bar.nw-sticky-header .nw-header { top: 32px; }
.nw-header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nw-brand { flex-shrink: 0; }
.nw-brand img { max-height: 48px; width: auto; display: block; }
.nw-site-title { display: inline-flex; align-items: center; gap: 10px; color: var(--nw-ink); font: 600 24px/1 var(--nw-font-head); text-decoration: none; letter-spacing: -.01em; }
.nw-site-mark { width: 36px; height: 36px; border-radius: 0; display: grid; place-items: center; color: #fff; font-size: 17px; background: var(--nw-ink); box-shadow: inset 0 -3px 0 var(--nw-accent); text-transform: uppercase; }
.nw-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nw-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nw-menu li { position: relative; margin: 0; }
.nw-menu a { display: block; padding: 9px 12px; border-radius: 0; color: var(--nw-ink); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .2s ease, color .2s ease; }
.nw-menu a:hover, .nw-menu .current-menu-item > a, .nw-menu .current_page_item > a { background: none; color: var(--nw-ink); box-shadow: inset 0 -3px 0 var(--nw-accent); }
.nw-menu .sub-menu a, .nw-menu .children a { text-transform: none; letter-spacing: 0; font-size: 14px; box-shadow: none; }
.nw-menu .sub-menu a:hover, .nw-menu .children a:hover { box-shadow: none; text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.nw-menu .sub-menu, .nw-menu .children { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--nw-ink); border-top: 3px solid var(--nw-accent); border-radius: 0; box-shadow: var(--nw-float); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.nw-menu li:hover > .sub-menu, .nw-menu li:focus-within > .sub-menu, .nw-menu li:hover > .children, .nw-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.nw-menu .sub-menu a, .nw-menu .children a { border-radius: 0; }
.nw-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.nw-menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--nw-ink); border-radius: 0; background: #fff; cursor: pointer; box-shadow: none; padding: 0; min-height: 0; }
.nw-burger { display: grid; gap: 5px; width: 20px; margin: auto; }
.nw-burger i { display: block; height: 2px; border-radius: 0; background: var(--nw-ink); transition: transform .3s ease, opacity .3s ease; }
.nw-menu-open .nw-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nw-menu-open .nw-burger i:nth-child(2) { opacity: 0; }
.nw-menu-open .nw-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nw-menu-toggle { display: grid; }
	.nw-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--nw-ink); box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
	.nw-menu-open .nw-nav { opacity: 1; visibility: visible; transform: none; }
	.nw-menu { flex-direction: column; align-items: stretch; }
	.nw-menu a { border-radius: 0; padding: 12px 14px; }
	.nw-menu .sub-menu, .nw-menu .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
}
@media (max-width: 782px) { .admin-bar.nw-sticky-header .nw-header { top: 0; } }

/* ---------- page hero ---------- */
.nw-hero { position: relative; overflow: hidden; padding: 84px 0 70px; text-align: center; background: var(--nw-bg); border-bottom: 1px solid var(--nw-ink); }
.nw-hero-title { margin: 12px auto 10px; max-width: 900px; }
.nw-hero-sub { max-width: 660px; margin: 0 auto; color: var(--nw-mute); font-size: 1.08rem; }
.nw-hero-sub p:last-child { margin: 0; }
.nw-eyebrow, .nw-pill { display: inline-block; padding: 0; border-radius: 0; background: none; color: var(--nw-accent-text, currentColor); font: 700 12px/1.4 var(--nw-font); letter-spacing: .08em; text-transform: uppercase; box-shadow: none; text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .28em; text-decoration-skip-ink: none; }
.nw-pill:hover { color: var(--nw-ink); }
.nw-hero-post .entry-meta { justify-content: center; }

/* ---------- layout + sidebar ---------- */
.nw-layout { display: block; }
.nw-has-sidebar .nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.nw-sidebar { position: relative; }
.widget { margin: 0 0 32px; padding: 0; border: 0; border-radius: 0; background: none; }
.widget-title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--nw-ink); font: 700 12px/1.3 var(--nw-font); letter-spacing: .1em; text-transform: uppercase; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 9px 0; border-bottom: 1px solid #ececec; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--nw-ink); text-decoration: none; } .widget :where(a):hover { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
@media (max-width: 1000px) { .nw-has-sidebar .nw-layout { grid-template-columns: 1fr; } .nw-sidebar { position: static; } }

/* ---------- cards ---------- */
.nw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.nw-has-sidebar .nw-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.nw-card { display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 0; background: none; box-shadow: none; }
.nw-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nw-soft); }
.nw-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.nw-card:hover .nw-card-media img { transform: scale(1.03); }
.nw-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 0 0; }
.nw-card-body .nw-pill { align-self: flex-start; margin-bottom: 10px; }
.nw-card-title { margin: 0 0 10px; font-size: 1.4rem; line-height: 1.2; font-weight: 600; }
.nw-card-title a { color: var(--nw-ink); text-decoration: none; } .nw-card-title :where(a):hover { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.nw-card-excerpt { color: var(--nw-mute); font-size: 15.5px; } .nw-card-excerpt p { margin: 0 0 14px; }
.nw-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid #ececec; font-size: 13px; }
.nw-card-date { color: var(--nw-mute); }
.nw-card-more { color: var(--nw-ink); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nw-card-more:hover { text-decoration: underline; text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.sticky .nw-card { box-shadow: inset 0 3px 0 var(--nw-accent); }

.pagination, .nav-links { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 0; border: 1px solid var(--nw-line); color: var(--nw-ink); font-weight: 600; text-decoration: none; }
.page-numbers.current { background: var(--nw-ink); border-color: var(--nw-ink); color: #fff; }
.page-numbers:not(.current):not(.dots):hover { border-color: var(--nw-ink); text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }

/* ---------- single ---------- */
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--nw-mute); font-size: 13px; }
.entry-meta a { color: inherit; }
.nw-feature { margin: 0 0 40px; border-radius: 0; overflow: hidden; box-shadow: none; }
.nw-feature img { display: block; width: 100%; }
.entry-content { color: var(--nw-text); font-family: var(--nw-font-read); font-size: 1.12em; line-height: 1.6; }
.entry-content a:not(.wp-block-button__link):not(.nw-btn):not(.nwad-a) { color: var(--nw-ink); text-decoration: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:not(.wp-block-button__link):not(.nw-btn):not(.nwad-a):hover { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.entry-content > * { max-width: 100%; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content img { border-radius: var(--nw-radius); }
.alignleft { float: left; margin: .4em 1.6em 1em 0; } .alignright { float: right; margin: .4em 0 1em 1.6em; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { color: var(--nw-mute); font-size: 14px; text-align: center; margin-top: 8px; }
.nw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.nw-tags a { padding: 6px 12px; border-radius: 0; border: 1px solid var(--nw-line); background: none; color: var(--nw-ink); font: 600 12px/1.4 var(--nw-font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.nw-tags a:hover { border-color: var(--nw-ink); text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.post-navigation { margin: 48px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-navigation a { display: block; padding: 18px 20px; border: 0; border-top: 1px solid var(--nw-ink); border-radius: 0; color: var(--nw-ink); text-decoration: none; transition: color .2s ease; }
.post-navigation :where(a):hover { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.post-navigation .nav-next { text-align: right; }
.nw-nav-label { display: block; color: var(--nw-mute); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nw-nav-title { display: block; margin-top: 4px; font-weight: 700; }
@media (max-width: 1000px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; } }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { text-align: left; } }

/* ---------- comments ---------- */
.nw-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--nw-line); }
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { margin: 0 0 18px; padding: 18px 0; border-radius: 0; background: none; border-bottom: 1px solid #ececec; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--nw-ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 4px 0 10px; } .comment-metadata a { color: var(--nw-mute); }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--nw-ink); }
.comment-form p { margin-bottom: 16px; }

/* ---------- empty + 404 ---------- */
.nw-empty { padding: 48px; border: 1px solid var(--nw-ink); border-radius: 0; text-align: center; }
.nw-empty h2 { margin-top: 0; }
.nw-empty .search-form { margin: 18px auto 0; }
.nw-404 { padding: 110px 0 120px; text-align: center; background: none; }
.nw-404-code { display: block; font: 600 clamp(90px, 18vw, 180px)/1 var(--nw-font-head); letter-spacing: -.04em; color: var(--nw-ink); }
.nw-404-code::after { content: ''; display: block; width: 60px; height: 3px; margin: 18px auto 0; background: var(--nw-accent); }
.nw-404 .search-form { margin: 28px auto; }

/* ---------- footer (default) ---------- */
.nw-footer { margin-top: 0; background: #0a0a0a; color: #a3a3a3; font-size: 15px; }
.nw-footer a { color: #a3a3a3; text-decoration: none; } .nw-footer a:hover { color: #fff; text-decoration: underline; }
.nw-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 32px; }
.nw-footer .widget { padding: 0; border: 0; background: transparent; }
.nw-footer .widget-title { color: #fff; border: 0; padding: 0; }
.nw-footer .widget-title::before { content: ''; display: inline-block; width: 24px; height: 2px; margin: 0 10px 0 0; vertical-align: middle; background: var(--nw-accent); }
.nw-footer .widget li { border-color: #262626; }
.nw-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid #262626; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nw-copy { margin: 0; }
.nw-footer-menu { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 782px) { .nw-footer-widgets { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- builder pages ---------- */
.nw-full > .elementor { width: 100%; }

/* ---------- WooCommerce touch-ups ---------- */
.nw-shop .woocommerce-products-header__title { margin-top: 0; }
.woocommerce ul.products li.product { border: 0; border-radius: 0; padding: 0 0 18px; background: none; box-shadow: none; }
.woocommerce ul.products li.product img { border-radius: var(--nw-radius); }
.woocommerce span.onsale { background: var(--nw-ink); border-radius: 0; min-height: 0; line-height: 1; padding: 8px 12px; }
.woocommerce .price, .woocommerce ul.products li.product .price { color: var(--nw-ink) !important; font-weight: 700; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.nw-container { padding: 0 16px; }
	.nw-section { padding-top: 44px; padding-bottom: 64px; }
	.nw-hero { padding: 60px 0 50px; }
	.nw-cards { grid-template-columns: 1fr; }
	.nw-empty { padding: 32px 20px; }
}

/* Comfortable reading width for posts without a sidebar */
body:not(.nw-has-sidebar) .nw-single .nw-content { max-width: 820px; margin-left: auto; margin-right: auto; }

/* WooCommerce sets shop-loop buttons to inline-block, which pins the label to the top of our 46px button. */
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product a.added_to_cart { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }

/* ---------- theme settings ---------- */
body { font-size: var(--nw-font-size, 17px); }
.nw-cards.nw-cols-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.nw-cards.nw-cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.nw-has-sidebar .nw-cards.nw-cols-2, .nw-has-sidebar .nw-cards.nw-cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.nw-cards.nw-cards-list, .nw-has-sidebar .nw-cards.nw-cards-list { grid-template-columns: 1fr; gap: 24px; }
.nw-cards-list .nw-card { flex-direction: row; align-items: stretch; }
.nw-cards-list .nw-card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 700px) { .nw-cards-list .nw-card { flex-direction: column; } .nw-cards-list .nw-card-media { flex-basis: auto; aspect-ratio: 16 / 10; min-height: 0; } }
.nw-author { display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 8px; padding: 24px 0; border: 0; border-top: 1px solid var(--nw-ink); border-bottom: 1px solid var(--nw-line); border-radius: 0; background: none; }
.nw-author img { border-radius: 50%; flex: none; }
.nw-author-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nw-mute); }
.nw-author-name { display: inline-block; margin: 2px 0 6px; font-family: var(--nw-font-head); font-size: 1.25rem; font-weight: 600; color: var(--nw-ink); text-decoration: none; }
.nw-author-name:hover { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.nw-author p { margin: 0; font-size: .95em; }
.nw-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--nw-ink); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1), visibility .6s; }
.nw-to-top.is-on { opacity: 1; visibility: visible; transform: none; }
body:has([data-newson-stt]) .nw-to-top { display: none !important; } /* a Scroll to Top element on the page replaces the global button */
.nw-to-top:hover { background: var(--nw-accent); color: var(--nw-accent-ink, #0a0a0a); }
.nw-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Header designs without their own sticky mode (e.g. a mega menu bar) stay at the top. */
.nw-hdr-tpl { position: sticky; top: 0; z-index: 999; }
.admin-bar .nw-hdr-tpl { top: 32px; }
@media (max-width: 782px) { .admin-bar .nw-hdr-tpl { top: 0; } }
.nw-hdr-tpl .nwmain-header { box-shadow: 0 1px 0 rgba(10,10,10,.08); }
.nw-hdr-tpl{--mmx-gap:6px}

/* ---------- sidebar on the left (Blog layout setting) ---------- */
.nw-sidebar-left.nw-has-sidebar .nw-layout { grid-template-columns: 320px minmax(0, 1fr); }
.nw-sidebar-left.nw-has-sidebar .nw-layout > .nw-sidebar { order: -1; }
.nw-has-sidebar .nw-layout.nw-tpl-layout { padding-top: 40px; }
.nw-tpl-layout > .nw-content > .elementor { width: 100%; }
@media (max-width: 1000px) { .nw-sidebar-left.nw-has-sidebar .nw-layout { grid-template-columns: 1fr; } .nw-sidebar-left.nw-has-sidebar .nw-layout > .nw-sidebar { order: 0; } }

/* =========================================================================
   Single post — layouts (Theme Options → Single Post, or the box under each post)
   and header styles: classic · overlay · split · minimal · magazine
   ========================================================================= */
.nw-has-sidebar.single-post .nw-layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.nw-sidebar-left.nw-has-sidebar.single-post .nw-layout { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
body.nw-post-full .nw-single .nw-content { max-width: none; }
body.nw-post-centered .nw-single .nw-content { max-width: 720px; }
.nw-post-centered .nw-single .entry-content { font-size: 1.08rem; line-height: 1.85; }
.nw-ph-dek { max-width: 680px; margin: 0 auto 18px; color: var(--nw-mute); font-size: 1.14rem; line-height: 1.6; }

/* overlay: the headline on the photo */
.nw-ph-overlay:not(.nw-ph-noimg) { padding: 180px 0 76px; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.82)), var(--nw-ph-img) center / cover no-repeat; color: #fff; } /* black photo scrim */
.nw-ph-overlay:not(.nw-ph-noimg) .nw-hero-title, .nw-ph-overlay:not(.nw-ph-noimg) .nw-ph-dek, .nw-ph-overlay:not(.nw-ph-noimg) .entry-meta, .nw-ph-overlay:not(.nw-ph-noimg) .entry-meta a { color: #fff; }
.nw-ph-overlay:not(.nw-ph-noimg) .nw-ph-dek { opacity: .88; }

/* split: text beside the photo */
.nw-ph-split { text-align: left; padding: 64px 0; }
.nw-ph-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.nw-ph-split .nw-hero-title { margin-left: 0; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.nw-ph-split .nw-ph-dek { margin-left: 0; }
.nw-ph-split .entry-meta { justify-content: flex-start; }
.nw-ph-fig { margin: 0; }
.nw-ph-fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--nw-radius); box-shadow: none; }

/* minimal: no photo, a big title and a rule */
.nw-ph-minimal { background: #fff; text-align: left; padding: 90px 0 30px; }
.nw-ph-minimal .nw-narrow { border-bottom: 1px solid var(--nw-ink); padding-bottom: 30px; }
.nw-ph-minimal .nw-hero-title { margin-left: 0; font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -.02em; }
.nw-ph-minimal .nw-ph-dek { margin-left: 0; }
.nw-ph-minimal .entry-meta { justify-content: flex-start; }

/* magazine: a wide photo with the headline card over its edge */
.nw-ph-magazine { padding: 34px 0 10px; background: #fff; }
.nw-ph-mag .nw-ph-fig img { aspect-ratio: 21 / 9; }
.nw-ph-card { position: relative; max-width: 820px; margin: -110px auto 0; padding: 34px 40px 30px; border-radius: 0; background: #fff; box-shadow: none; }
.nw-ph-card::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 60px; height: 3px; border-radius: 0; background: var(--nw-accent); }

/* drop cap for the first paragraph (classic editor posts use the block class too) */
p.has-drop-cap:not(:focus)::first-letter { float: left; margin: .08em .12em 0 0; font-family: var(--nw-font-head); font-size: 4.6em; font-weight: 600; line-height: .82; color: var(--nw-ink); }
.entry-content figure.wp-block-image { margin: 2.2em 0; }
.entry-content figure.wp-block-image img { width: 100%; height: auto; border-radius: var(--nw-radius); }
.entry-content figure.wp-block-image figcaption { margin-top: 10px; color: var(--nw-mute); font-size: .88rem; text-align: center; }

@media (max-width: 900px) {
	.nw-ph-grid { grid-template-columns: 1fr; gap: 28px; }
	.nw-ph-card { margin-top: -40px; padding: 24px 22px; }
	.nw-ph-overlay:not(.nw-ph-noimg) { padding: 120px 0 54px; }
	.nw-has-sidebar.single-post .nw-layout, .nw-sidebar-left.nw-has-sidebar.single-post .nw-layout { grid-template-columns: 1fr; }
}

/* ---------- sticky sidebars: the sidebar stays in view while the article scrolls ---------- */
@media (min-width: 1025px) {
	.elementor-column.nw-sticky-side > .elementor-widget-wrap { position: sticky; top: var(--nw-side-top, 100px); align-self: flex-start; height: auto; }
	.elementor-section:has(> .elementor-container > .nw-sticky-side), .elementor-section:has(> .elementor-container > .nw-sticky-side) > .elementor-container { overflow: visible !important; }
	.nw-has-sidebar .nw-layout, .nw-page-side { align-items: start; }
	.nw-sidebar { position: sticky; top: var(--nw-side-top, 100px); }
}

/* ---------- page layouts (box under the page editor) ---------- */
.nw-page-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.nw-page-side.is-left { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
.nw-page-side.is-left > .nw-sidebar { order: -1; }
.nw-page-layout-contained .nw-page-body, .nw-page-side .nw-page-body { max-width: none; }
.nw-page-layout-contained .elementor-section.elementor-section-stretched { left: 0 !important; width: 100% !important; }
@media (max-width: 1000px) { .nw-page-side, .nw-page-side.is-left { grid-template-columns: 1fr; } .nw-page-side.is-left > .nw-sidebar { order: 0; } }

/* =========================================================================
   Page Options (box under every page and post)
   ========================================================================= */
/* transparent header over the first section */
body.nwpo-transparent .nw-header { position: absolute; left: 0; right: 0; z-index: 50; background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
body.nwpo-transparent.nwpo-htext-light .nw-header, body.nwpo-transparent.nwpo-htext-light .nw-header a, body.nwpo-transparent.nwpo-htext-light .nw-header .nw-brand { color: #fff !important; }
body.nwpo-transparent .nw-hero { padding-top: 150px; }
/* header / footer hidden — also the ready websites' header & footer elements inside the page */
body.nwpo-no-header .elementor-widget-newson-site-header, body.nwpo-no-header .nw-header { display: none !important; }
body.nwpo-no-footer .elementor-widget-newson-site-footer, body.nwpo-no-footer .nw-footer { display: none !important; }
/* boxed layout */
body.nwpo-boxed { background: #eeeeee; }
body.nwpo-boxed #page { max-width: 1280px; margin: 32px auto; background: #fff; border-radius: 0; box-shadow: none; border: 1px solid var(--nw-ink); }
/* sticky sidebar off */
body.nwpo-nosticky .nw-sidebar, body.nwpo-nosticky .nw-sticky-side > .elementor-widget-wrap, body.nw-nosticky .nw-sidebar { position: static !important; }
/* title bar */
.nw-hero.nwpo-hero-light, .nw-hero.nwpo-hero-light .nw-hero-title, .nw-hero.nwpo-hero-light .nw-hero-sub, .nw-hero.nwpo-hero-light .entry-meta, .nw-hero.nwpo-hero-light .entry-meta a, .nw-hero.nwpo-hero-light .nw-ph-dek { color: #fff; }
.nw-hero.nwpo-hero-dark .nw-hero-title { color: var(--nw-ink); }
.nw-hero.nwpo-hero-small { padding: 46px 0 40px; }
.nw-hero.nwpo-hero-large { padding: 150px 0 130px; }
.nw-hero.nwpo-hero-screen { min-height: 92vh; display: flex; align-items: center; }
.nw-hero.nwpo-hero-screen > .nw-container { width: 100%; }
.nw-hero.nwpo-hero-left { text-align: left; }
.nw-hero.nwpo-hero-left .nw-hero-title, .nw-hero.nwpo-hero-left .nw-hero-sub { margin-left: 0; }
.nw-hero.nwpo-hero-left .entry-meta { justify-content: flex-start; }
.nwpo-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; opacity: .85; }
.nwpo-hero-left .nwpo-crumbs { justify-content: flex-start; }
.nwpo-crumbs a { color: inherit; text-decoration: none; }
.nwpo-crumbs a:hover { text-decoration: underline; }
.nwpo-crumbs i { font-style: normal; opacity: .45; }
/* post parts hidden for this post (theme design and Elementor post designs) */
body.nwpo-hide-featured .nw-feature, body.nwpo-hide-featured .nwpp-p-featured, body.nwpo-hide-featured .nwpp-figure, body.nwpo-hide-featured .nw-ph-fig { display: none !important; }
body.nwpo-hide-meta .entry-meta, body.nwpo-hide-meta .nwpp-p-meta, body.nwpo-hide-meta .nwpp-meta { display: none !important; }
body.nwpo-hide-author .elementor-widget-newson-author-box, body.nwpo-hide-author .nw-author-box { display: none !important; }
body.nwpo-hide-related .nwpp-p-related, body.nwpo-hide-related .nwpp-related, body.nwpo-hide-related .nw-related { display: none !important; }
body.nwpo-hide-share .elementor-widget-newson-social-share, body.nwpo-hide-share .nw-share { display: none !important; }
body.nwpo-hide-nav .post-navigation, body.nwpo-hide-nav .elementor-widget-newson-post-navigation { display: none !important; }
body.nwpo-hide-comments #comments, body.nwpo-hide-comments .elementor-widget-newson-post-comments, body.nwpo-hide-comments .comments-area { display: none !important; }
/* featured media */
.nwpo-media { margin: 0 0 2em; }
.nwpo-video iframe, .nwpo-video video { width: 100% !important; height: auto; aspect-ratio: 16 / 9; border-radius: var(--nw-radius); display: block; }
.nwpo-audio { padding: 18px; border-radius: 0; background: var(--nw-soft); }
.nwpo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.nwpo-gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; display: block; transition: transform .6s ease; }
.nwpo-gallery-grid a:hover img { transform: scale(1.03); }
/* table of contents */
.nwpo-toc { margin: 1.6em 0; padding: 20px 24px; border-radius: 0; background: none; border: 1px solid var(--nw-line); border-top: 3px solid var(--nw-ink); }
.nwpo-toc b { display: block; margin-bottom: 8px; font-family: var(--nw-font-head); font-size: 1.05rem; }
.nwpo-toc ol { margin: 0; padding-left: 1.2em; }
.nwpo-toc li { margin: 4px 0; }
.nwpo-toc a { color: inherit; text-decoration: none; }
.nwpo-toc :where(a):hover { text-decoration-line: underline; text-decoration-color: var(--nw-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
/* reading progress */
.nwpo-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 99999; pointer-events: none; }
.nwpo-progress span { display: block; height: 100%; background: var(--nw-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s linear; }
.admin-bar .nwpo-progress { top: 32px; }
/* one-page current link */
.nwpo-onepage a.is-current { color: var(--nw-accent-text, currentColor) !important; text-decoration-line: underline !important; text-decoration-color: var(--nw-accent) !important; text-decoration-thickness: 3px !important; text-underline-offset: .28em !important; text-decoration-skip-ink: none !important; }

/* ---------- WooCommerce: shop sidebar + product page layouts (Theme Options → Shop) ---------- */
.nw-shop-side { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 40px; align-items: start; }
.nw-shop-side.is-left { grid-template-columns: minmax(250px, 1fr) minmax(0, 3fr); }
.nw-shop-side.is-left > .nw-shop-sidebar { order: -1; }
@media (max-width: 1000px) { .nw-shop-side, .nw-shop-side.is-left { grid-template-columns: 1fr; } .nw-shop-side.is-left > .nw-shop-sidebar { order: 0; } }
@media (min-width: 900px) {
	.nw-pp-gallery-right.woocommerce div.product, .nw-pp-sticky.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
	.nw-pp-gallery-right.woocommerce div.product > *, .nw-pp-sticky.woocommerce div.product > * { grid-column: 1 / -1; }
	.nw-pp-gallery-right.woocommerce div.product > .woocommerce-product-gallery, .nw-pp-sticky.woocommerce div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; width: 100% !important; float: none !important; }
	.nw-pp-gallery-right.woocommerce div.product > .summary, .nw-pp-sticky.woocommerce div.product > .summary { grid-column: 2; grid-row: 1; width: 100% !important; float: none !important; }
	.nw-pp-gallery-right.woocommerce div.product > .woocommerce-product-gallery { grid-column: 2; }
	.nw-pp-gallery-right.woocommerce div.product > .summary { grid-column: 1; }
	.nw-pp-sticky.woocommerce div.product > .summary { position: sticky; top: 100px; }
}
.nw-pp-tabs-accordion .woocommerce-tabs ul.wc-tabs, .nw-pp-tabs-stacked .woocommerce-tabs ul.wc-tabs { display: none !important; }
.nw-pp-acc { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 10px 0 0; padding: 16px 20px; border: 0; border-top: 1px solid var(--nw-ink); border-radius: 0; background: #fff; color: var(--nw-ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.nw-pp-acc::after { content: '+'; font-size: 20px; color: var(--nw-accent-text, currentColor); }
.nw-pp-acc[aria-expanded="true"]::after { content: '–'; }
.nw-pp-tabs-stacked .nw-pp-acc { cursor: default; }
.nw-pp-tabs-stacked .nw-pp-acc::after { display: none; }
.nw-pp-tabs-accordion .woocommerce-Tabs-panel, .nw-pp-tabs-stacked .woocommerce-Tabs-panel { padding: 18px 20px; }

/* WordPress core classes */
.bypostauthor>.comment-body .fn:after,.bypostauthor>article .fn:after{content:"\2022";margin-left:6px;color: var(--nw-accent-text, currentColor)}
.gallery-caption{display:block;margin-top:6px;font-size:.875em;line-height:1.5;opacity:.8}

/* Classic [gallery] shortcode (Theme Unit Test) */
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:1.6em 0}
.gallery-columns-1{grid-template-columns:minmax(0,1fr)}.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gallery-columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gallery-columns-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gallery-columns-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gallery-columns-9{grid-template-columns:repeat(9,minmax(0,1fr))}
.gallery-item{margin:0;min-width:0}.gallery-icon img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:0}
.gallery br{display:none}
@media(max-width:640px){.gallery[class*="gallery-columns-"]:not(.gallery-columns-1){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Very long words (titles, links) never push the layout wider */
.post-navigation .nav-links>div{min-width:0}
.post-navigation a,.nw-nav-title,.entry-title,.page-title,.comment-content,.entry-content{overflow-wrap:anywhere}

/* back-to-top: round button so its circular scroll-progress ring and edge line match (a global square rule made it a square inside a circle) */
.nw-to-top{border-radius:50%!important}

/* the page never scrolls sideways: a label or a full-bleed strip that reaches past the right edge of a phone (a bar chart value badge on /auto/) no longer widens the page; nothing inside the screen changes */
html{overflow-x:clip}
