/*
Theme Name: NNT
Theme URI: https://neonewstoday.com/
Description: Neo News Today theme (child of Kadence). Phase 1: tokens, Inter, side menu, phone menu, footer, article and simple page templates.
Author: Neo News Today
Template: kadence
Version: 0.1.0
Requires PHP: 8.0
License: GNU General Public License v3 or later
Text Domain: nnt
*/

/* ---------- Inter (self-hosted, variable 100-900; SIL OFL, see assets/fonts/Inter-OFL.txt) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-cyrillic-wght-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-greek-wght-normal.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-vietnamese-wght-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-cyrillic-ext-wght-italic.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-cyrillic-wght-italic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-greek-wght-italic.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-vietnamese-wght-italic.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-latin-ext-wght-italic.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/inter-latin-wght-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Tokens ---------- */
:root {
	--nnt-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nnt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--nnt-ink: #111315;
	--nnt-text-2: #3c4043;
	--nnt-green: #2b842d;          /* green text and links (on white) */
	--nnt-green-on-bg: #287d2a;    /* green text on the grey page background: #2b842d is 4.37:1 there, this is 4.78:1 */
	--nnt-green-btn: #3fc142;      /* buttons */
	--nnt-green-btn-hover: #36a839;
	--nnt-btn-text: #1a1a1a;
	--nnt-green-light: #8fdc91;    /* green on dark */
	--nnt-grey: #707070;
	--nnt-meta: #5f6368;
	--nnt-dark: #111315;           /* side menu */
	--nnt-dark-hover: #1f2326;
	--nnt-dark-2: #1a1d20;
	--nnt-dark-line: #3a3f44;
	--nnt-on-dark: #e8eaed;
	--nnt-on-dark-2: #d6d9dc;
	--nnt-on-dark-3: #aeb3b8;
	--nnt-bg: #f5f6f7;
	--nnt-card: #ffffff;
	--nnt-line: #e3e5e8;
	--nnt-line-2: #d4d7db;
	--nnt-code-bg: #e9ecea;
	--nnt-code-ink: #1d5e1f;
	--nnt-th-bg: #f0f2f1;
	--nnt-r-box: 8px;              /* boxes, cards, images */
	--nnt-r-btn: 5px;              /* buttons, inputs */
	--nnt-side-w: 240px;
	--nnt-read-w: 700px;
	--nnt-rail-w: 260px;
	--nnt-pad: 32px;
	--nnt-admin-bar: 0px;
}
.admin-bar { --nnt-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --nnt-admin-bar: 46px; } }

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.nnt {
	margin: 0;
	background: var(--nnt-bg);
	color: var(--nnt-ink);
	font-family: var(--nnt-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.nnt *, .nnt *::before, .nnt *::after { box-sizing: border-box; }
.nnt a { color: var(--nnt-ink); text-decoration: none; }
.nnt a:hover { color: var(--nnt-green); }
.nnt h1, .nnt h2, .nnt h3, .nnt h4, .nnt h5, .nnt h6 {
	font-family: var(--nnt-font);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: inherit;
}
.nnt :focus-visible { outline: 3px solid var(--nnt-green-btn); outline-offset: 2px; }
.nnt img { max-width: 100%; height: auto; }

.nnt-skip {
	position: absolute; left: 8px; top: -100px; z-index: 1000;
	background: var(--nnt-green-btn); color: var(--nnt-btn-text) !important;
	padding: 10px 16px; border-radius: var(--nnt-r-btn); font-weight: 600;
}
.nnt-skip:focus { top: calc(8px + var(--nnt-admin-bar)); }

.nnt-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nnt-green) !important; }
.nnt-kicker--dark { color: var(--nnt-green-light) !important; }
.nnt-meta { font-size: 13px; color: var(--nnt-meta); }

.nnt-btn,
.nnt .wpcf7 input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 20px;
	background: var(--nnt-green-btn); color: var(--nnt-btn-text);
	font: 600 15px/1 var(--nnt-font); letter-spacing: 0; text-transform: none;
	border: 0; border-radius: var(--nnt-r-btn); cursor: pointer;
}
.nnt-btn:hover,
.nnt .wpcf7 input[type="submit"]:hover { background: var(--nnt-green-btn-hover); color: var(--nnt-btn-text); }

.nnt-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: var(--nnt-dark); color: #fff;
	border: 1px solid var(--nnt-dark-line); border-radius: var(--nnt-r-btn); cursor: pointer;
}
.nnt-iconbtn:hover { background: var(--nnt-dark-hover); color: var(--nnt-green-light); }

/* ---------- Shell: side menu + main ---------- */
.nnt-shell {
	display: grid;
	grid-template-columns: var(--nnt-side-w) minmax(0, 1fr);
	min-height: 100vh;
}
.nnt-topbar { display: none; }
.nnt-side-col { background: var(--nnt-dark); }
.nnt-side {
	display: flex; flex-direction: column; gap: 8px;
	padding: 24px 12px;
	background: var(--nnt-dark);
	color: var(--nnt-on-dark);
	scrollbar-color: var(--nnt-dark-line) transparent;
}
.nnt-side__close { display: none; }
/* Keep the menu in view while reading, only on screens tall enough to show all of it */
@media (min-width: 961px) and (min-height: 1000px) {
	.nnt-side { position: sticky; top: var(--nnt-admin-bar); max-height: calc(100vh - var(--nnt-admin-bar)); overflow-y: auto; }
}
.nnt-main-col { min-width: 0; display: flex; flex-direction: column; padding: var(--nnt-pad); gap: 40px; }
.nnt-main { flex: 1 0 auto; min-width: 0; outline: none; }

/* Logo */
.nnt-logo { display: flex; align-items: center; gap: 10px; }
.nnt-side .nnt-logo { padding: 8px 16px 24px; gap: 9px; }
.nnt-side .nnt-logo__word { letter-spacing: .01em; } /* icon + word = 184px: equal 28px gaps in the 240px menu */
.nnt-logo__img { display: block; border-radius: 4px; flex: none; }
.nnt-logo__word { font-weight: 800; font-size: 15px; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.nnt a.nnt-logo:hover .nnt-logo__word { color: var(--nnt-green-light); }

/* Search */
.nnt-search { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.nnt-search__label { font-size: 12px; color: var(--nnt-on-dark-3); padding: 0 16px; }
.nnt .nnt-search__input {
	margin: 0 16px; min-height: 44px; padding: 0 12px;
	background: var(--nnt-dark-hover); border: 1px solid var(--nnt-dark-line); border-radius: var(--nnt-r-btn);
	color: #fff; font: 400 15px var(--nnt-font);
	width: auto;
}
.nnt .nnt-search__input::placeholder { color: var(--nnt-on-dark-3); }
/* Dark search fields: keep light text in every state (Kadence's input:focus sets a dark colour), green focus ring,
   and a light-grey clear button instead of the browser's blue one. */
.nnt .nnt-search__input,
.nnt .nnt-search__input:focus,
.nnt .nnt-searchbox--dark .nnt-input,
.nnt .nnt-searchbox--dark .nnt-input:focus {
	color: #e8eaed; -webkit-text-fill-color: #e8eaed; caret-color: #e8eaed;
}
.nnt .nnt-search__input:focus,
.nnt .nnt-searchbox--dark .nnt-input:focus {
	background: var(--nnt-dark-hover); border-color: var(--nnt-green); outline: 2px solid var(--nnt-green); outline-offset: 1px; box-shadow: none;
}
.nnt .nnt-search__input::placeholder,
.nnt .nnt-searchbox--dark .nnt-input::placeholder { color: var(--nnt-on-dark-3); -webkit-text-fill-color: var(--nnt-on-dark-3); opacity: 1; }
/* Light search fields (search results page, 404): dark text in every state, same green focus ring. */
.nnt .nnt-searchbox:not(.nnt-searchbox--dark) .nnt-input,
.nnt .nnt-searchbox:not(.nnt-searchbox--dark) .nnt-input:focus {
	color: var(--nnt-ink); -webkit-text-fill-color: var(--nnt-ink); caret-color: var(--nnt-ink);
}
.nnt .nnt-searchbox:not(.nnt-searchbox--dark) .nnt-input:focus { border-color: var(--nnt-green); outline: 2px solid var(--nnt-green); outline-offset: 1px; box-shadow: none; }
/* Clear ("x") button of search fields: a small grey cross that matches each field. */
.nnt input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer;
	background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* Menu */
.nnt-nav__list, .nnt-nav__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.nnt-nav__list a {
	display: block; padding: 8px 16px; border-radius: 4px;
	color: var(--nnt-on-dark); font-size: 15px; font-weight: 500; line-height: 1.3;
}
/* Touch screens (phones, iPad): keep a 40px+ tap target. */
@media (pointer: coarse) {
	.nnt-nav__list .sub-menu a, .nnt-nav__list > li:not(.menu-item-has-children) > a { padding-top: 10px; padding-bottom: 11px; }
}
.nnt-nav__list a:hover,
.nnt-nav__list .current-menu-item > a { background: var(--nnt-dark-hover); color: var(--nnt-green-light); }
/* Top-level items with children are group headings */
.nnt-nav__list > .menu-item-has-children { margin-top: 16px; }
.nnt-nav__list > .menu-item-has-children > a,
.nnt-nav__list > .menu-item-has-children > .nnt-nav__heading {
	display: block; padding: 4px 16px; background: none;
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--nnt-green-light);
}
.nnt-nav__list > .menu-item-has-children > a:hover { text-decoration: underline; background: none; }
.nnt-side__empty { padding: 0 16px; font-size: 14px; }
.nnt-side__empty a { color: var(--nnt-green-light); text-decoration: underline; }

/* Footer */
.nnt-footer {
	display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
	font-size: 14px; padding: 8px 0 24px;
}
.nnt-footer__brand { font-weight: 700; letter-spacing: -0.01em; }
.nnt-footer__list { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* ---------- Breadcrumb ---------- */
.nnt-crumbs { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.nnt-crumbs a { color: var(--nnt-meta); }

/* ---------- Single article ---------- */
.nnt-article-wrap { display: flex; gap: 40px; align-items: flex-start; }
.nnt-article { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.nnt-read { max-width: var(--nnt-read-w); }
.nnt-article__head { display: flex; flex-direction: column; gap: 14px; }
.nnt-article__title { margin: 0; font-size: 42px; line-height: 1.1; }
.nnt-byline { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.nnt-byline__avatar { width: 36px; height: 36px; border-radius: 50%; background: #d7e9d8; display: block; }
.nnt-byline__name { font-weight: 600; font-size: 14px; }
.nnt-hero { margin: 0; }
.nnt-hero__img {
	display: block; width: 100%; height: auto;
	aspect-ratio: 768 / 432; object-fit: cover;
	border-radius: var(--nnt-r-box); background: #12261a;
}
.nnt-article__foot { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.nnt-tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nnt-tag {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--nnt-line-2); background: #fff; border-radius: var(--nnt-r-btn);
	font: 500 14px var(--nnt-font); color: var(--nnt-ink); cursor: pointer;
}
button.nnt-tag:hover { color: var(--nnt-green); }
.nnt-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nnt-share__label { font-weight: 600; }
.nnt-ai-note {
	margin: 0; font-size: 13px; line-height: 1.5; color: var(--nnt-meta);
	border-top: 1px solid var(--nnt-line); padding-top: 16px;
}

/* Right rail */
.nnt-rail {
	flex: 0 0 var(--nnt-rail-w); width: var(--nnt-rail-w);
	display: flex; flex-direction: column; gap: 24px;
	position: sticky; top: calc(var(--nnt-pad) + var(--nnt-admin-bar));
}
.nnt-signup {
	background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box);
	padding: 22px; display: flex; flex-direction: column; gap: 10px;
	overflow: hidden; /* the scaled reCAPTCHA keeps its 304px layout box */
}
.nnt-signup__h { margin: 0; font-size: 19px; line-height: 1.25; }
.nnt-signup__p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--nnt-on-dark-2); }
/* CF7 sign-up form (id 30159) inside the dark box; its markup uses the old Stack grid classes */
.nnt-signup .wpcf7 { margin: 0; }
.nnt-signup .wpcf7 form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.nnt-signup .wpcf7 .row { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.nnt-signup .wpcf7 [class*="col-"] { padding: 0; width: 100%; font-size: 12px; line-height: 1.45; color: var(--nnt-on-dark-3); }
.nnt-signup .wpcf7 p { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nnt-signup .wpcf7 label { font-size: 13px; font-weight: 600; color: var(--nnt-on-dark-2); }
.nnt-signup .wpcf7 .wpcf7-form-control-wrap { display: block; }
.nnt-signup__consent { font-size: 12px; line-height: 1.45; color: var(--nnt-on-dark-3); }
.nnt-signup .wpcf7 br { display: none; }
.nnt-signup .wpcf7 input[type="text"],
.nnt-signup .wpcf7 input[type="email"] {
	width: 100%; min-height: 44px; padding: 0 12px; margin: 0;
	border: 1px solid var(--nnt-dark-line); border-radius: var(--nnt-r-btn);
	background: var(--nnt-dark-2); color: #fff; font: 400 15px var(--nnt-font);
}
.nnt-signup .wpcf7 input::placeholder { color: var(--nnt-on-dark-3); }
.nnt-signup .wpcf7 input[type="submit"] { width: 100%; }
.nnt-signup { position: relative; }
.nnt-signup .wpcf7-spinner { position: absolute; right: 30px; margin: 12px 0 0; }
.nnt-signup .wpcf7-not-valid-tip { color: #ffb4ab; font-size: 13px; }
.nnt-signup .wpcf7-response-output { margin: 4px 0 0 !important; padding: 8px 10px !important; border-radius: var(--nnt-r-btn); font-size: 13px; color: var(--nnt-on-dark); }
/* reCAPTCHA v2 widget is 304px wide: scale it to fit the 216px box */
.nnt-signup .wpcf7-recaptcha, .nnt-signup .g-recaptcha { transform: scale(.71); transform-origin: 0 0; height: 56px; }

.nnt-latest { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 20px; }
.nnt-latest__h { margin: 0 0 4px; font-size: 18px; }
.nnt-latest__list { list-style: none; margin: 0; padding: 0; }
.nnt-latest__item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--nnt-line); }
.nnt-latest__item:last-child { border-bottom: 0; }
.nnt-latest__date { font-size: 13px; color: var(--nnt-meta); }
.nnt-latest__item a { font-weight: 600; font-size: 14px; line-height: 1.4; }

/* ---------- Simple page (board EventC) ---------- */
.nnt-page { display: flex; flex-direction: column; gap: 32px; }
.nnt-page__head { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--nnt-line); padding-bottom: 24px; }
.nnt-page__title { margin: 0; font-size: 44px; line-height: 1.05; }
.nnt-body--page > p,
.nnt-body--page > ul,
.nnt-body--page > ol,
.nnt-body--page > h2,
.nnt-body--page > h3,
.nnt-body--page > h4,
.nnt-body--page > blockquote { max-width: 760px; }

/* ---------- Body formats (article board) ---------- */
.nnt-body { font-size: 18px; line-height: 1.7; color: var(--nnt-ink); overflow-wrap: break-word; }
.nnt-body > * { margin-top: 0; margin-bottom: 0; }
.nnt-body > * + * { margin-top: 20px; }
.nnt-body li p, .nnt-body blockquote p, .nnt-body td p, .nnt-body th p { margin: 0; }
.nnt-body > h2 + *, .nnt-body > h3 + *, .nnt-body > h4 + * { margin-top: 12px; }
.nnt-body h2 { margin: 32px 0 0; font-size: 26px; line-height: 1.2; }
.nnt-body h3 { margin: 28px 0 0; font-size: 21px; line-height: 1.25; }
.nnt-body h4 { margin: 24px 0 0; font-size: 18px; line-height: 1.3; }
.nnt-body > h2:first-child, .nnt-body > h3:first-child { margin-top: 0; }
.nnt-body strong, .nnt-body b { font-weight: 700; }
.nnt-body a { color: var(--nnt-green-on-bg); text-decoration: underline; text-underline-offset: 3px; }
.nnt-body a:hover { color: var(--nnt-ink); }
.nnt-body code, .nnt-body kbd {
	font-family: var(--nnt-mono); font-size: .86em;
	background: var(--nnt-code-bg); color: var(--nnt-code-ink);
	padding: 2px 6px; border-radius: 4px;
}
.nnt-body pre {
	background: var(--nnt-dark); color: var(--nnt-on-dark);
	border-radius: var(--nnt-r-box); padding: 18px 20px; overflow-x: auto;
	font-family: var(--nnt-mono); font-size: 14px; line-height: 1.6; white-space: pre;
	border: 0;
}
.nnt-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; border-radius: 0; }
.nnt-body ul, .nnt-body ol { padding-left: 26px; }
.nnt-body li + li { margin-top: 8px; }
.nnt-body li > ul, .nnt-body li > ol { margin-top: 8px; }
.nnt-body ul li::marker { color: var(--nnt-green); }
.nnt-body ol li::marker { color: var(--nnt-green); font-weight: 700; }
.nnt-body blockquote:not(.twitter-tweet):not(.instagram-media) {
	margin: 24px 0 0; padding: 4px 0 4px 20px;
	border-left: 4px solid var(--nnt-green-btn);
	font-size: 20px; line-height: 1.5; font-weight: 600; font-style: normal;
	color: var(--nnt-ink); background: none;
}
.nnt-body blockquote p + p { margin-top: 12px; }
.nnt-body blockquote cite { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; font-style: normal; color: var(--nnt-meta); }
.nnt-body hr { border: 0; border-top: 1px solid var(--nnt-line); margin: 28px 0; height: 0; background: none; }
.nnt-body hr + p > em:only-child, .nnt-body hr + p em:only-child { color: var(--nnt-text-2); }

/* Images and captions */
.nnt-body img { border-radius: var(--nnt-r-box); height: auto; max-width: 100%; }
.nnt-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.nnt-body .alignleft { float: left; margin: 6px 24px 12px 0; }
.nnt-body .alignright { float: right; margin: 6px 0 12px 24px; }
.nnt-body figure, .nnt-body .wp-caption {
	margin: 24px 0 0; max-width: 100% !important; width: auto !important;
	display: flex; flex-direction: column; gap: 8px;
}
.nnt-body figure img, .nnt-body .wp-caption img { display: block; width: 100%; }
.nnt-body figcaption, .nnt-body .wp-caption-text { font-size: 13px; line-height: 1.5; color: var(--nnt-meta); margin: 0; }
.nnt-body::after { content: ""; display: table; clear: both; }

/* Tables (wrapped in .nnt-table by functions.php) */
.nnt-table, .nnt-body .wp-block-table {
	overflow-x: auto; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); background: #fff;
}
.nnt-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; margin: 0; border: 0; }
.nnt-body th, .nnt-body td { padding: 10px 14px; text-align: left; vertical-align: top; border: 0; border-top: 1px solid var(--nnt-line); }
.nnt-body thead th, .nnt-body tr:first-child > th { background: var(--nnt-th-bg); border-top: 0; font-weight: 700; }
.nnt-body table tr:first-child > td { border-top: 0; }
.nnt-body thead + tbody tr:first-child > td { border-top: 1px solid var(--nnt-line); }

/* Embeds: YouTube and other iframes, X posts */
.nnt-body iframe { max-width: 100%; border: 0; }
.nnt-body iframe[src*="youtube.com"],
.nnt-body iframe[src*="youtube-nocookie.com"],
.nnt-body iframe[src*="player.vimeo.com"] {
	display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--nnt-r-box); background: #12261a;
}
.nnt-body p > iframe:only-child { margin: 0; }
.nnt-body .wp-block-embed__wrapper, .nnt-body .wp-block-embed { margin: 0; }
.nnt-body blockquote.twitter-tweet {
	margin: 24px 0 0; padding: 18px;
	border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); background: #fff;
	font-size: 15px; line-height: 1.5; font-weight: 400;
}
.nnt-body .twitter-tweet-rendered { margin-left: 0 !important; margin-right: auto !important; }
.nnt-body .twitter-tweet-rendered iframe { border-radius: var(--nnt-r-box); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
	.nnt-article-wrap { flex-direction: column; align-items: stretch; }
	.nnt-rail { position: static; width: auto; flex: none; max-width: var(--nnt-read-w); }
}

/* Phone: top bar + slide-out menu from the right */
@media (max-width: 960px) {
	:root { --nnt-pad: 16px; }
	.nnt-shell { display: block; }
	.nnt-topbar {
		position: sticky; top: var(--nnt-admin-bar); z-index: 50;
		display: flex; align-items: center; justify-content: space-between; gap: 10px;
		padding: 12px 16px; background: var(--nnt-dark); color: #fff;
	}
	.nnt-topbar .nnt-logo__word { font-size: 13px; }
	.nnt-topbar__actions { display: flex; gap: 6px; }
	.nnt-topbar .nnt-iconbtn { width: 44px; height: 44px; }
	/* Fixed, clipped layer: keeps the closed menu from widening the page */
	.nnt-side-col { position: fixed; inset: 0; z-index: 100000; overflow: hidden; overflow: clip; pointer-events: none; background: none; }
	.nnt-side {
		position: absolute; top: 0; right: 0; bottom: 0; pointer-events: auto;
		overflow-y: auto; overscroll-behavior: contain;
		width: min(300px, 86vw); max-height: none; height: 100%;
		box-shadow: -12px 0 30px rgba(0, 0, 0, .35);
		transform: translateX(100%); visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.nnt-side.is-open { transform: translateX(0); visibility: visible; transition: transform .25s ease, visibility 0s; }
	.nnt-side__close { display: inline-flex; align-self: flex-end; margin: 0 8px 4px; flex: none; }
	.nnt-backdrop { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .5); }
	.nnt-backdrop[hidden] { display: none; }
	html.nnt-menu-open, html.nnt-menu-open body { overflow: hidden; }
	.nnt-main-col { gap: 32px; }
	.nnt-article { gap: 16px; }
	.nnt-rail { max-width: none; }
}
@media (max-width: 640px) {
	.nnt-article__title { font-size: 28px; line-height: 1.12; }
	.nnt-page__title { font-size: 30px; }
	.nnt-body { font-size: 17px; line-height: 1.65; }
	.nnt-body h2 { font-size: 21px; }
	.nnt-body h3 { font-size: 19px; }
	.nnt-body pre { padding: 14px; font-size: 12.5px; }
	.nnt-body table { font-size: 14px; }
	.nnt-body .alignleft, .nnt-body .alignright { float: none; margin: 0 auto; display: block; }
	.nnt-byline { gap: 10px; }
	.nnt-byline__avatar { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.nnt-side, .nnt-side.is-open { transition: none; }
}



/* ==================================================================
   Phase 2: homepage, lists, search, 404, author
   ================================================================== */
.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; }

.nnt-home, .nnt-list { display: flex; flex-direction: column; gap: 40px; }
.nnt-list { gap: 32px; }
.nnt-section { display: flex; flex-direction: column; gap: 16px; }
.nnt-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nnt-section__h { margin: 0; font-size: 26px; line-height: 1.2; }
.nnt-section__h--sm { font-size: 22px; }
.nnt .nnt-more { font-weight: 600; color: var(--nnt-green); }
.nnt .nnt-more:hover { color: var(--nnt-ink); }
.nnt-box { background: var(--nnt-card); border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 24px; }
.nnt-placeholder {
	border: 1px dashed #c4c8cc; border-radius: var(--nnt-r-box); padding: 28px;
	color: var(--nnt-meta); font-size: 15px; background: transparent;
}
.nnt-placeholder--dark { background: var(--nnt-dark); color: var(--nnt-on-dark-3); border-color: var(--nnt-dark-line); }

/* Cards (used everywhere) */
.nnt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nnt-card { background: var(--nnt-card); border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); overflow: hidden; display: flex; flex-direction: column; }
.nnt-card__img { display: block; aspect-ratio: 16 / 9; background: #12261a; }
.nnt-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.nnt-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.nnt-card__title { margin: 0; font-size: 18px; line-height: 1.25; }
.nnt .nnt-card__title a, .nnt-body .nnt-card__title a { color: var(--nnt-ink); text-decoration: none; }
.nnt .nnt-card__title a:hover { color: var(--nnt-green); }
@media (max-width: 1000px) { .nnt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nnt-grid { grid-template-columns: 1fr; } }

/* Paging */
.nnt-pager { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.nnt .nnt-pg {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
	border: 1px solid var(--nnt-line-2); background: #fff; border-radius: var(--nnt-r-btn);
	font-weight: 600; font-size: 15px; color: var(--nnt-ink); text-decoration: none;
}
.nnt .nnt-pg:hover { border-color: var(--nnt-green); color: var(--nnt-green); }
.nnt .nnt-pg.is-current { background: var(--nnt-green-btn); border-color: var(--nnt-green-btn); color: var(--nnt-btn-text); }
.nnt-pg-dots { padding: 0 6px; }

/* Chips */
.nnt-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nnt .nnt-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--nnt-line-2); background: #fff; border-radius: var(--nnt-r-btn);
	font-size: 14px; font-weight: 500; color: var(--nnt-ink);
}
.nnt .nnt-chip:hover { border-color: var(--nnt-green); color: var(--nnt-green); }
.nnt .nnt-chip.is-on { background: var(--nnt-ink); border-color: var(--nnt-ink); color: #fff; }
.nnt-chip__n { font-size: 12px; color: var(--nnt-meta); }
.nnt-chip.is-on .nnt-chip__n { color: var(--nnt-on-dark-3); }
.nnt .nnt-chip-more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--nnt-green); }

/* Inputs + search box */
.nnt .nnt-input {
	min-height: 44px; padding: 0 12px; width: 100%;
	border: 1px solid #c4c8cc; border-radius: var(--nnt-r-btn); background: #fff;
	font: 400 15px var(--nnt-font); color: var(--nnt-ink);
}
.nnt-searchbox { display: flex; gap: 8px; flex-wrap: wrap; max-width: 720px; margin: 0; }
.nnt-searchbox .nnt-input { flex: 1 1 260px; width: auto; }
.nnt .nnt-searchbox--dark .nnt-input { background: var(--nnt-dark-2); border-color: var(--nnt-dark-line); color: #fff; }
.nnt .nnt-searchbox--dark .nnt-input::placeholder { color: var(--nnt-on-dark-3); }

/* Homepage carousel (category-page shape) */
.nnt-carousel { position: relative; background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box); overflow: hidden; }
.nnt-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.nnt-carousel__track::-webkit-scrollbar { display: none; }
.nnt-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-wrap: wrap; align-items: center; }
.nnt-slide__img { flex: 7 1 420px; min-width: 0; display: block; aspect-ratio: 768 / 432; background: #12261a; }
.nnt-slide__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.nnt-slide__text { flex: 5 1 300px; min-width: 0; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.nnt-slide__h { margin: 0; font-size: 30px; line-height: 1.12; }
.nnt .nnt-slide__h a { color: #fff; }
.nnt .nnt-slide__h a:hover { color: var(--nnt-green-light); }
.nnt-slide__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nnt-on-dark-2); }
.nnt-slide__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.nnt-slide__row .nnt-btn { margin-right: auto; }
.nnt-dots { display: flex; gap: 6px; }
.nnt-pausebtn[hidden], .nnt-pausebtn .nnt-i-play, .nnt-pausebtn.is-paused .nnt-i-pause { display: none; }
.nnt-pausebtn.is-paused .nnt-i-play { display: block; }
.nnt-dot { width: 28px; height: 4px; border-radius: 2px; background: #4a4f55; }
.nnt-dot.is-on { background: var(--nnt-green-btn); }
@media (max-width: 640px) {
	.nnt-slide__text { padding: 18px; }
	.nnt-slide__h { font-size: 24px; line-height: 1.15; }
}

/* Homepage: earlier this week + podcast, Git box */
.nnt-home__split { display: flex; flex-wrap: wrap; gap: 32px; }
.nnt-home__split > * { flex: 3 1 400px; min-width: 0; }
.nnt-home__split > .nnt-placeholder--dark { flex: 2 1 300px; }
.nnt-earlier .nnt-section__h { margin-bottom: 8px; }
.nnt-earlier__list { list-style: none; margin: 0; padding: 0; }
.nnt-earlier__list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--nnt-line); }
.nnt-earlier__list li:last-child { border-bottom: 0; }
.nnt-earlier__list time { width: 64px; flex: none; }
.nnt-earlier__list a { font-weight: 600; line-height: 1.4; }
.nnt-devbox { display: flex; flex-direction: column; gap: 12px; }

/* List pages */
.nnt-list__head { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--nnt-line); padding-bottom: 24px; }
.nnt-list__title { margin: 0; font-size: 44px; line-height: 1.05; }
.nnt-list__title--sm { font-size: 36px; }
.nnt-list__desc { margin: 0; font-size: 17px; line-height: 1.55; color: var(--nnt-text-2); max-width: 640px; }
.nnt-list__head .nnt-chips { padding-top: 6px; }
.nnt-feature { background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box); overflow: hidden; display: flex; flex-wrap: wrap; }
.nnt-feature__img { flex: 7 1 420px; min-width: 0; display: block; aspect-ratio: 768 / 432; background: #12261a; }
.nnt-feature__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.nnt-feature__text { flex: 5 1 300px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.nnt-feature__h { margin: 0; font-size: 28px; line-height: 1.15; }
.nnt .nnt-feature__h a { color: #fff; }
.nnt .nnt-feature__h a:hover { color: var(--nnt-green-light); }
.nnt-feature__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nnt-on-dark-2); }

/* Search results */
.nnt-results { max-width: 900px; }
.nnt-result { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--nnt-line); flex-wrap: wrap; }
.nnt-result__img { width: 200px; max-width: 100%; flex: none; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #12261a; display: block; }
.nnt-result__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.nnt-result__text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.nnt-result__date { text-transform: none; letter-spacing: 0; font-weight: 400; }
.nnt-result__h { margin: 0; font-size: 20px; line-height: 1.25; }
.nnt-result__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nnt-text-2); }
.nnt-result__p mark { background: #e3f3e3; color: var(--nnt-ink); padding: 0 2px; border-radius: 2px; }
.nnt-noresults { display: flex; flex-direction: column; gap: 14px; }
.nnt-noresults__tips { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--nnt-text-2); }

/* 404 */
.nnt-404 { background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box); padding: 44px 36px; display: flex; flex-direction: column; gap: 14px; }
.nnt-404__h { margin: 0; font-size: 40px; line-height: 1.1; }
.nnt-404__p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--nnt-on-dark-2); max-width: 560px; }
.nnt-404 .nnt-searchbox { max-width: 560px; }
.nnt-404__links { display: flex; gap: 16px; flex-wrap: wrap; }
.nnt .nnt-404__links a { color: var(--nnt-green-light); font-weight: 600; }
.nnt .nnt-404__links a:hover { color: #fff; }

/* Author */
.nnt-author { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--nnt-line); padding-bottom: 28px; }
.nnt-author__img { width: 112px; height: 112px; border-radius: 50%; flex: none; background: #d7e9d8; }
.nnt-author__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.nnt-author .nnt-list__title { font-size: 40px; }
.nnt-author__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

@media (max-width: 640px) {
	.nnt-home, .nnt-list { gap: 24px; }
	.nnt-list__title, .nnt-author .nnt-list__title { font-size: 30px; }
	.nnt-list__title--sm { font-size: 28px; }
	.nnt-feature__text { padding: 18px; }
	.nnt-feature__h { font-size: 22px; }
	.nnt-404 { padding: 28px 20px; }
	.nnt-404__h { font-size: 30px; }
	.nnt-section__h { font-size: 22px; }
	.nnt-result__img { width: 100%; }
	.nnt-author__img { width: 80px; height: 80px; }
}

.nnt .nnt-devbox .nnt-ga__title { margin: 0 0 12px; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

/* Green text that sits on the grey page background (not on white cards) */
.nnt .nnt-more, .nnt .nnt-chip-more,
.nnt .nnt-crumbs .nnt-kicker, .nnt-author .nnt-kicker, .nnt-devbox ~ * .nnt-kicker { color: var(--nnt-green-on-bg) !important; }

/* ==================================================================
   Phase 3: WIR band and page, podcast, Follow, Contact, Developer activity
   ================================================================== */
/* YouTube lite embed */
.nnt .nnt-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #12261a; cursor: pointer; overflow: hidden; border-radius: inherit; }
.nnt .nnt-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.nnt-yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 6px; background: var(--nnt-green-btn); color: var(--nnt-btn-text); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.nnt .nnt-yt:hover .nnt-yt__play, .nnt .nnt-yt:focus-visible .nnt-yt__play { background: var(--nnt-green-btn-hover); }
.nnt iframe.nnt-yt--playing { border: 0; height: auto; }
.nnt-card__img .nnt-yt__play { width: 44px; height: 44px; }

/* WIR band (homepage) */
.nnt-wir { background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box); padding: 28px 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.nnt-wir__main { flex: 1 1 520px; min-width: 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nnt-wir__media { width: 260px; max-width: 100%; flex: none; border-radius: 5px; overflow: hidden; }
.nnt-wir__media img { display: block; width: 100%; height: auto; border-radius: 0; }
.nnt-wir__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nnt-wir__h { margin: 0; font-size: 22px; line-height: 1.2; }
.nnt .nnt-wir__h a { color: #fff; }
.nnt .nnt-wir__h a:hover { color: var(--nnt-green-light); }
.nnt-wir__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nnt-on-dark-2); }
.nnt-wir__links { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.nnt .nnt-wir__links a { color: var(--nnt-green-light); font-weight: 600; }
.nnt .nnt-wir__links a:hover { color: #fff; }
.nnt .nnt-wir__links a.nnt-wir__quiet { color: var(--nnt-on-dark-2); font-weight: 500; font-size: 14px; }
.nnt-wir__signup.nnt-signup { flex: 0 0 250px; max-width: 100%; background: var(--nnt-dark-2); border-radius: 6px; padding: 18px; gap: 8px; }
.nnt-wir__signup .nnt-signup__h { font-size: 16px; }
.nnt-wir__signup .wpcf7 input[type="email"] { background: var(--nnt-dark); }
/* WIR page: larger media */
.nnt-wir--large { padding: 0; gap: 0; align-items: stretch; overflow: hidden; }
.nnt-wir--large .nnt-wir__main { flex: 1 1 640px; gap: 0; align-items: stretch; }
.nnt-wir--large .nnt-wir__media { flex: 7 1 380px; width: auto; border-radius: 0; }
.nnt-wir--large .nnt-wir__media img { height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.nnt-wir--large .nnt-wir__text { flex: 5 1 280px; padding: 28px; justify-content: center; }
.nnt-wir--large .nnt-wir__h { font-size: 26px; }
.nnt-wir--large .nnt-wir__signup { margin: 22px; align-self: center; }
@media (max-width: 640px) {
	.nnt-wir { padding: 18px; }
	.nnt-wir__media { width: 100%; }
	.nnt-wir__signup.nnt-signup { flex: 1 1 100%; }
	.nnt-wir--large { padding: 0; }
	.nnt-wir--large .nnt-wir__text { padding: 18px; }
	.nnt-wir--large .nnt-wir__signup { margin: 0 18px 18px; }
}

/* Card extras */
.nnt-card__img .nnt-yt, .nnt-card__img > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.nnt-card__links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.nnt .nnt-card__links a { color: var(--nnt-green); font-weight: 600; }
.nnt-yearform { display: flex; gap: 8px; align-items: center; }
.nnt .nnt-select { width: auto; min-width: 110px; }
.nnt .nnt-btn--quiet { background: #fff; border: 1px solid var(--nnt-line-2); color: var(--nnt-ink); }
.js .nnt-yearform .nnt-btn--quiet { display: none; }

/* Podcast */
.nnt-podbox { flex: 2 1 300px; min-width: 0; background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.nnt-podbox .nnt-yt { border-radius: 6px; }
.nnt-podbox__h { margin: 0; font-size: 18px; line-height: 1.3; }
.nnt .nnt-podbox__h a, .nnt .nnt-feature--video .nnt-feature__h a { color: #fff; }
.nnt-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.nnt .nnt-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--nnt-dark-line); border-radius: var(--nnt-r-btn); color: var(--nnt-on-dark); font-size: 14px; font-weight: 500; }
.nnt .nnt-pill:hover { background: var(--nnt-dark-hover); color: var(--nnt-green-light); }
.nnt-feature--video .nnt-feature__img { aspect-ratio: 16 / 9; }

/* Follow page */
.nnt-emailband { background: var(--nnt-dark); color: #fff; border-radius: var(--nnt-r-box); padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.nnt-emailband__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.nnt-emailband__h { margin: 0; font-size: 26px; line-height: 1.2; }
.nnt-emailband__form.nnt-signup { flex: 0 1 360px; padding: 0; background: none; }
.nnt-follow__intro { margin: 6px 0 0; }
.nnt-follow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nnt .nnt-soc { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); color: var(--nnt-ink); height: 100%; }
.nnt a.nnt-soc:hover { border-color: var(--nnt-green); }
.nnt a.nnt-soc:hover .nnt-soc__name { color: var(--nnt-green); }
.nnt-soc__ico { width: 44px; height: 44px; border-radius: 6px; background: var(--nnt-dark); color: var(--nnt-green-light); display: flex; align-items: center; justify-content: center; flex: none; }
.nnt-soc__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nnt-soc__name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
@media (max-width: 640px) { .nnt-follow { grid-template-columns: 1fr; } .nnt-emailband { padding: 20px; } }

/* Forms (Contact; CF7 states) */
.nnt-contact { padding: 24px; }
.nnt-form .nnt-cf-fields { display: flex; flex-direction: column; gap: 16px; }
.nnt-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .nnt-g2 { grid-template-columns: 1fr; } }
.nnt-fl { display: flex; flex-direction: column; gap: 6px; }
.nnt-fl label { font-size: 14px; font-weight: 600; }
.nnt-form .wpcf7-form-control-wrap { display: block; }
.nnt-form input[type="text"], .nnt-form input[type="email"], .nnt-form select, .nnt-form textarea {
	width: 100%; min-height: 44px; padding: 0 12px; margin: 0;
	border: 1px solid #c4c8cc; border-radius: var(--nnt-r-btn); background: #fff;
	font: 400 15px/1.5 var(--nnt-font); color: var(--nnt-ink);
}
.nnt-form select { max-width: 420px; }
.nnt-form textarea { padding: 12px; min-height: 180px; }
.nnt-form [aria-invalid="true"], .nnt-form .wpcf7-not-valid { border: 2px solid #c62828 !important; }
.nnt .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #c62828; }
.nnt-signup .wpcf7-not-valid-tip { color: #ffb4ab; }
.nnt-cf-submit { display: flex; align-items: center; gap: 10px; }
.nnt .wpcf7 form.submitting input[type="submit"] { opacity: .75; cursor: progress; }
.nnt .wpcf7 .wpcf7-spinner { margin: 0; }
/* Response box: validation and failure as alerts above nothing else changing */
.nnt .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; font-size: 14px; line-height: 1.45; border: 1px solid; }
.nnt .wpcf7 form.invalid .wpcf7-response-output, .nnt .wpcf7 form.unaccepted .wpcf7-response-output, .nnt .wpcf7 form.payment-required .wpcf7-response-output { background: #fdecec; border-color: #f3b9b9; color: #8a1c1c; }
.nnt .wpcf7 form.failed .wpcf7-response-output, .nnt .wpcf7 form.aborted .wpcf7-response-output, .nnt .wpcf7 form.spam .wpcf7-response-output { background: #fdf3f3; border-color: #f3b9b9; color: #8a1c1c; }
.nnt .wpcf7 form.sent .wpcf7-response-output { background: #f1faf1; border-color: #b9e3ba; color: #1d5e1f; }
.nnt-signup .wpcf7 form .wpcf7-response-output { background: var(--nnt-dark-hover) !important; border-color: var(--nnt-dark-line) !important; color: var(--nnt-on-dark) !important; }
.nnt-signup .wpcf7 form.sent .wpcf7-response-output { border-color: var(--nnt-green-btn) !important; }
/* Contact: after sending, the form makes way for the thank-you panel */
.nnt-sent { display: none; }
.nnt-form.sent .nnt-cf-fields, .nnt-form.sent .wpcf7-response-output { display: none; }
.nnt-form.sent .nnt-sent { display: flex; flex-direction: column; gap: 12px; outline: none; }
.nnt-sent__ok { width: 48px; height: 48px; border-radius: 50%; background: var(--nnt-green-btn); display: flex; align-items: center; justify-content: center; }
.nnt-sent__h { margin: 0; font-size: 22px; }
.nnt-sent p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nnt-text-2); }
.nnt .nnt-sent a { font-weight: 600; color: var(--nnt-green); }

/* Developer activity page (plugin markup) */
.nnt-ga-page { display: flex; flex-direction: column; gap: 24px; }
.nnt-ga-page__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nnt-ga-page__stat { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.nnt-ga-page__stat span { font-size: 13px; color: var(--nnt-meta); }
.nnt-ga-page__stat b { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.nnt-ga-page__orgs { display: flex; gap: 8px; flex-wrap: wrap; }
.nnt .nnt-ga-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--nnt-line-2); background: #fff; border-radius: var(--nnt-r-btn); font-size: 14px; font-weight: 500; color: var(--nnt-ink); }
.nnt .nnt-ga-chip.is-on { background: var(--nnt-ink); border-color: var(--nnt-ink); color: #fff; }
.nnt-ga-page__cols { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.nnt-ga-page__box { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 24px; display: flex; flex-direction: column; }
.nnt-ga-page__box h2 { margin: 0 0 4px; font-size: 22px; }
.nnt-ga-page__feed { flex: 2 1 480px; min-width: 0; }
.nnt-ga-page__top { flex: 1 1 260px; min-width: 0; }
.nnt-ga-page__top h2 { font-size: 19px; }
.nnt-ga-page__row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--nnt-line); flex-wrap: wrap; align-items: baseline; }
.nnt-ga-page__row:last-of-type { border-bottom: 0; }
.nnt-ga-page__tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: #e3f3e3; color: #1d5e1f; flex: none; }
.nnt-ga-page__tag--commits { background: #eef0f2; color: var(--nnt-text-2); }
.nnt-ga-page__what { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nnt .nnt-ga-page__what a { font-weight: 700; overflow-wrap: anywhere; }
.nnt-ga-page__ver { color: var(--nnt-green); }
.nnt-ga-page__line { font-size: 14px; color: var(--nnt-meta); overflow-wrap: anywhere; }
.nnt-ga-page__when { font-size: 13px; color: var(--nnt-meta); }
.nnt-ga-page__toprow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--nnt-line); font-size: 14px; }
.nnt .nnt-ga-page__toprow a { font-weight: 600; overflow-wrap: anywhere; }
.nnt-ga-page__toprow span { color: var(--nnt-meta); }
.nnt-ga-page__muted { font-size: 12px; color: var(--nnt-meta); padding-top: 10px; margin: 0; }
@media (max-width: 760px) { .nnt-ga-page__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nnt-form p { margin: 0; }
.nnt-form br { display: none; }

/* Podcast buttons with platform icons (brand colours for the icon only) */
.nnt .nnt-pill { gap: 8px; }
.nnt .nnt-pill svg { flex: none; }
.nnt .nnt-pill--youtube svg { color: #ff3b3b; }
.nnt .nnt-pill--spotify svg { color: #1ed760; }
.nnt .nnt-pill--applepodcasts svg { color: #b462f5; }
.nnt .nnt-yt-link { display: inline-flex; align-items: center; gap: 6px; }
.nnt .nnt-yt-link svg { color: #ff3b3b; flex: none; }

/* Homepage "More recent stories": fills the height next to the podcast box (see carousel.js) */
.nnt-earlier { display: flex; flex-direction: column; }
.nnt-earlier__list { position: relative; }
.nnt-earlier:not(.is-fit) .nnt-earlier__list li:nth-child(n+6) { display: none; }
.nnt-earlier.is-fit .nnt-earlier__list { flex: 1 1 0; min-height: 0; height: 0; overflow: hidden; }
/* The li rule above sets display:flex, which beat the browser's [hidden] rule: hidden items still showed, cut off. */
.nnt-earlier__list li[hidden] { display: none; }
.nnt-earlier .nnt-earlier__list li { border-bottom: 0; }
.nnt-earlier .nnt-earlier__list li + li { border-top: 1px solid var(--nnt-line); } /* Divider between every pair of shown items */

/* ==================================================================
   Phase 4: monthly reports (archive and single report)
   ================================================================== */
.nnt .nnt-btn--white { background: #fff; color: var(--nnt-btn-text); }
.nnt-vtag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: #e3f3e3; color: #1d5e1f; }
.nnt-vtag--dev { background: #e6ecfb; color: #2a4aa0; }
.nnt-vtag--special { background: #fbeee0; color: #8a4b10; }

/* Archive */
.nnt-rstatsline { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 6px; }
.nnt-rstatsline b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.nnt .nnt-rlatest { background: linear-gradient(120deg, var(--r-from), var(--r-to)); color: #fff; border-radius: var(--nnt-r-box); padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.nnt a.nnt-rlatest:hover { color: #fff; }
.nnt a.nnt-rlatest:hover .nnt-btn { background: var(--nnt-green-btn); }
.nnt-rlatest__text { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.nnt-rlatest__h { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.nnt-rlatest__p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }
.nnt .nnt-rhead__kicker { color: rgba(255,255,255,.88) !important; }
.nnt-ryear { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nnt .nnt-rcardx { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); overflow: hidden; display: flex; flex-direction: column; color: var(--nnt-ink); }
.nnt a.nnt-rcardx:hover { border-color: var(--nnt-green); color: var(--nnt-ink); }
.nnt-rcardx__top { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--r-from), var(--r-to)); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.nnt-rcardx__kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.nnt-rcardx__period { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.nnt-rcardx__foot { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Single report */
.nnt-report { display: flex; flex-direction: column; gap: 28px; }
.nnt-rhead { background: linear-gradient(120deg, var(--r-from), var(--r-to)); color: #fff; border-radius: var(--nnt-r-box); padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.nnt-rhead__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.nnt-rhead__h { margin: 0; font-size: 48px; line-height: 1.02; color: #fff; }
.nnt-rhead__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; color: rgba(255,255,255,.9); }
.nnt-rhead__chip { background: rgba(255,255,255,.18); border-radius: 4px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.nnt-rhead__lang { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.nnt .nnt-rhead__lang select { width: 220px; border: 0; min-height: 42px; }
.nnt-rhead__langlist { margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.nnt .nnt-rhead__langlist a { color: #fff; text-decoration: underline; }
.nnt-snav { position: sticky; top: var(--nnt-admin-bar); z-index: 20; background: rgba(245,246,247,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--nnt-line); padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 960px) { .nnt-snav { top: calc(var(--nnt-admin-bar) + 68px); } }
.nnt .nnt-snav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--nnt-r-btn); font-size: 14px; font-weight: 600; border: 1px solid var(--nnt-line-2); background: #fff; white-space: nowrap; flex: none; color: var(--nnt-ink); }
.nnt .nnt-snav a.is-on { background: var(--nnt-ink); color: #fff; border-color: var(--nnt-ink); }
.nnt-snav__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.nnt-rsec { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: calc(var(--nnt-admin-bar) + 80px); }
.nnt-rsech { border-radius: var(--nnt-r-box); padding: 26px 28px; color: #fff; background: linear-gradient(120deg, var(--r-from), var(--r-to)); }
.nnt-rsech__h { margin: 0; font-size: 32px; line-height: 1.15; color: #fff; }
.nnt-rmod { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.nnt-rmod--recruitment, .nnt-rmod--social, .nnt-rmod--liquidity { max-width: none; }
.nnt-rflag { display: flex; align-items: center; gap: 14px; }
.nnt-rflag__ic { width: 52px; height: 52px; border-radius: var(--nnt-r-box); display: flex; align-items: center; justify-content: center; flex: none; background: color-mix(in srgb, var(--r-accent) 14%, #fff); }
.nnt-rflag__ic img { width: 34px; height: 34px; object-fit: contain; border-radius: 0; }
.nnt-rflag__h { margin: 0; font-size: 22px; }
.nnt-rprose { font-size: 17px; line-height: 1.7; color: #24272a; overflow-wrap: break-word; }
.nnt-rprose > * { margin: 0; }
.nnt-rprose > * + * { margin-top: 14px; }
.nnt-rprose a { color: var(--nnt-green-on-bg); text-decoration: underline; text-underline-offset: 3px; }
.nnt-rprose img { border-radius: 6px; }
.nnt-rprose ul, .nnt-rprose ol { padding-inline-start: 24px; }
.nnt-rprose h2, .nnt-rprose h3, .nnt-rprose h4 { font-size: 18px; margin-top: 18px; }
.nnt-rprose .ngd-title, .nnt-rprose .ngd-title p { color: var(--r-accent); font-weight: 700; }
/* Accordion */
.nnt-racc { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); overflow: hidden; }
.nnt-racc details { border-top: 1px solid var(--nnt-line); }
.nnt-racc details:first-child { border-top: 0; }
.nnt-racc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; font-weight: 700; font-size: 15px; letter-spacing: .02em; min-height: 44px; }
.nnt-racc summary::-webkit-details-marker { display: none; }
.nnt-racc summary img { width: 36px; height: 36px; border-radius: 7px; object-fit: contain; flex: none; }
.nnt-racc__chev { margin-inline-start: auto; transition: transform .2s; color: var(--r-accent); flex: none; }
.nnt-racc details[open] .nnt-racc__chev { transform: rotate(180deg); }
.nnt-racc__body { padding: 0 18px 18px 68px; font-size: 15px; line-height: 1.65; color: var(--nnt-text-2); }
[dir="rtl"] .nnt-racc__body { padding: 0 68px 18px 18px; }
/* Cards (recruitment) */
.nnt-rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nnt-rcard { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.nnt-rcard__mono { width: 40px; height: 40px; border-radius: var(--nnt-r-box); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; background: var(--r-accent); overflow: hidden; }
.nnt-rcard__mono img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 0; }
.nnt-rcard__h { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.nnt-rcard__p { font-size: 14px; line-height: 1.55; color: var(--nnt-text-2); }
.nnt-rcard__p p { margin: 0; }
/* Timeline (events) */
.nnt-rtl { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: flex; flex-direction: column; }
.nnt-rtl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: color-mix(in srgb, var(--r-accent) 25%, #fff); }
.nnt-rtl li { position: relative; padding: 10px 0; display: flex; gap: 16px; flex-wrap: wrap; }
.nnt-rtl li::before { content: ""; position: absolute; left: -24px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--r-accent); border: 2px solid var(--nnt-bg); }
.nnt-rtl b { flex: 0 0 120px; font-size: 14px; color: var(--r-accent); filter: brightness(.8); }
.nnt-rtl .nnt-rprose { flex: 1 1 300px; font-size: 15px; line-height: 1.55; }
[dir="rtl"] .nnt-rtl { padding: 0 26px 0 0; }
[dir="rtl"] .nnt-rtl::before { left: auto; right: 7px; }
[dir="rtl"] .nnt-rtl li::before { left: auto; right: -24px; }
/* Stats (social) */
.nnt-rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nnt .nnt-rstat { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 16px; display: flex; flex-direction: column; gap: 2px; color: var(--nnt-ink); }
.nnt a.nnt-rstat:hover { border-color: var(--r-accent); }
.nnt-rstat__top { display: flex; gap: 8px; align-items: center; }
.nnt-rstat__top img { width: 22px; height: 22px; object-fit: contain; border-radius: 0; }
.nnt-rstat b { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.nnt-rstat__unit { font-size: 12px; }
/* Exchanges (liquidity) */
.nnt-rex { display: flex; flex-direction: column; gap: 14px; }
.nnt-rex__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nnt-rex__total { font-weight: 600; }
.nnt-rex__total b { color: var(--r-accent); filter: brightness(.8); font-size: 20px; margin-inline-start: 6px; }
.nnt-rex__filter { display: flex; align-items: center; gap: 8px; }
.nnt-rex__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nnt-rex__list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--nnt-line); border-radius: 6px; font-size: 14px; font-weight: 600; min-height: 44px; }
.nnt-rex__list li[hidden] { display: none; }
.nnt-rex__new { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--r-accent); color: #fff; }
/* Progress (fallback) */
.nnt-rprog { display: flex; gap: 12px; align-items: center; }
.nnt-rprog__bar { flex: 1; height: 10px; border-radius: 5px; background: var(--nnt-line); overflow: hidden; }
.nnt-rprog__bar span { display: block; height: 100%; background: var(--r-accent); }
@media (max-width: 1000px) { .nnt-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nnt-rex__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nnt-rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.nnt-rhead, .nnt .nnt-rlatest { padding: 22px; }
	.nnt-rhead__h { font-size: 32px; }
	.nnt-rlatest__h { font-size: 30px; }
	.nnt .nnt-rhead__lang, .nnt .nnt-rhead__lang select { width: 100%; }
	.nnt-rsech { padding: 20px; }
	.nnt-rsech__h { font-size: 24px; }
	.nnt-rgrid { grid-template-columns: 1fr; }
	.nnt-rex__list { grid-template-columns: 1fr; }
	.nnt-racc__body { padding: 0 16px 16px; }
	[dir="rtl"] .nnt-racc__body { padding: 0 16px 16px; }
	.nnt-rprose { font-size: 16px; }
}

/* ==================================================================
   Phase 5: core blocks in rebuilt pages (simple full-width style)
   ================================================================== */
.nnt-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.nnt-body .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--nnt-green-btn); color: var(--nnt-btn-text) !important; border-radius: var(--nnt-r-btn); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.nnt-body .wp-block-button__link:hover { background: var(--nnt-green-btn-hover); }
.nnt-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.nnt-body .wp-block-column { flex: 1 1 0; min-width: 220px; }
.nnt-body .wp-block-columns + .wp-block-columns { margin-top: 20px; }
.nnt-body .nnt-people .wp-block-column { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.nnt-body .nnt-people .wp-block-column:empty { visibility: hidden; }
.nnt-body .nnt-people .wp-block-column > * { margin: 0; }
.nnt-body .nnt-people img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.nnt-body .nnt-people h3 { font-size: 17px; margin: 0; }
.nnt-body .nnt-people p { font-size: 14px; color: var(--nnt-meta); }
.nnt-body .wp-block-embed { margin: 24px 0 0; }
.nnt-body .wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--nnt-r-box); }
.nnt-body .wp-block-separator { border: 0; border-top: 1px solid var(--nnt-line); margin: 28px 0; }
.nnt-body .nnt-posts-sc { margin-top: 24px; }
.nnt-body--page > .wp-block-image, .nnt-body--page > figure { max-width: 760px; }
@media (max-width: 640px) { .nnt-body .wp-block-column { flex-basis: 100%; } }

/* iPad fixes (30 Nov): hero/feature images fill the whole height of their dark box (centre crop, no bars) */
.nnt-slide, .nnt-feature { align-items: stretch; }
.nnt-slide__img, .nnt-feature__img { aspect-ratio: auto; align-self: stretch; }
.nnt-slide__img img, .nnt-feature__img img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 768 / 432; object-fit: cover; object-position: center; }
.nnt-feature--video .nnt-feature__img { aspect-ratio: auto; display: flex; }
.nnt-feature--video .nnt-feature__img .nnt-yt { height: 100%; min-height: 100%; }
/* Podcast buttons: when they wrap, rows are filled evenly */
.nnt-podbox .nnt-pill { flex: 1 1 auto; justify-content: center; }
/* Rebuilt pages: images keep their own size (logos stay small), never wider than the column */
.nnt-body .wp-block-image img, .nnt-body figure.wp-block-image img { width: auto; max-width: 100%; height: auto; }
.nnt-body .wp-block-image { margin-left: 0; margin-right: 0; }
.nnt-body .nnt-people .wp-block-column:not(:has(*)) { visibility: hidden; } /* Padding columns in the last row */
/* Card grids inside page content ([nnt_posts] on Neo Live, Interviews...): same tight cards as everywhere else */
.nnt-body .nnt-posts-sc .nnt-card__body > * { margin: 0; }
.nnt-body .nnt-posts-sc .nnt-card__title { font-size: 18px; line-height: 1.25; margin: 0; }
.nnt-body .nnt-posts-sc .nnt-card__body { gap: 8px; }
.nnt-body .nnt-posts-sc p, .nnt-body .nnt-posts-sc h3 { margin: 0; }
.nnt-body .nnt-pager { margin-top: 24px; }
/* New NNT icon (transparent hexagon): no tile behind it */
.nnt-logo__img { border-radius: 0; object-fit: contain; }

/* Development groups (plugin nnt-devgroups) */
.nnt-dg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nnt-dg__card { background: #fff; border: 1px solid var(--nnt-line); border-radius: var(--nnt-r-box); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: calc(var(--nnt-admin-bar) + 24px); }
.nnt-dg__logo { height: 120px; background: var(--nnt-bg); display: flex; align-items: center; justify-content: center; padding: 18px 28px; border-bottom: 1px solid var(--nnt-line); }
.nnt-dg__logo img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.nnt-dg__mono { font-size: 28px; font-weight: 800; color: var(--nnt-green-on-bg); }
.nnt-dg__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nnt-dg__h { margin: 0; font-size: 20px; line-height: 1.2; }
.nnt-dg__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nnt-text-2); }
.nnt-dg__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.nnt .nnt-dg__links .nnt-tag { min-height: 36px; font-size: 13px; padding: 0 12px; }
.nnt .nnt-dg__links .nnt-dg__act { border-color: var(--nnt-green); color: var(--nnt-green-on-bg); }
.nnt-dg__projects { border-top: 1px solid var(--nnt-line); padding-top: 10px; }
.nnt-dg__projects summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; color: var(--nnt-ink); }
.nnt-dg__projects ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nnt-dg__projects li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.5; color: var(--nnt-text-2); }
.nnt-dg__projects li strong { color: var(--nnt-ink); }
.nnt-dg__plinks { display: flex; gap: 12px; }
.nnt .nnt-dg__plinks a { color: var(--nnt-green-on-bg); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 13px; }
@media (max-width: 1100px) { .nnt-dg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nnt-dg { grid-template-columns: 1fr; } .nnt-dg__logo { height: 100px; } }

/* ---------- Article layout (Customize > Article layout; previews ?layout=left|centred|centred-justified, ?heading=centred) ---------- */
.nnt-layout-centred .nnt-article > * { width: 100%; max-width: var(--nnt-read-w); margin-left: auto; margin-right: auto; }
.nnt-layout-centred .nnt-article > .nnt-hero { max-width: calc(var(--nnt-read-w) + 140px); }
@media (max-width: 1100px) {
	.nnt-layout-centred .nnt-rail { width: 100%; margin-left: auto; margin-right: auto; }
}
.nnt-layout-justified .nnt-body > p,
.nnt-layout-justified .nnt-body > blockquote p {
	text-align: justify; text-justify: inter-word;
	-webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
}
.nnt-layout-heading .nnt-crumbs,
.nnt-layout-heading .nnt-byline { justify-content: center; }
.nnt-layout-heading .nnt-article__head { text-align: center; align-items: center; }
.nnt-layout-heading .nnt-article__title { text-wrap: balance; }
.nnt-hero-column .nnt-article > .nnt-hero { width: 100%; max-width: var(--nnt-read-w); }
.nnt-hero-column:not(.nnt-layout-centred) .nnt-article > .nnt-hero { margin-left: 0; }
