/* =============================================================
   NDT THEME  —  theme.css
   Full front-end styles. All colours, spacing and typography
   driven by CSS custom properties defined in style.css.
   ============================================================= */

/* ── Google Fonts import (Inter) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: var(--ndt-font-size-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ndt-font-body);
    font-size: 1rem;
    line-height: var(--ndt-line-height);
    color: var(--ndt-color-text);
    background-color: var(--ndt-color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ndt-color-link); text-decoration: none; transition: color var(--ndt-transition); }
a:hover { color: var(--ndt-color-link-hover); }
ul, ol { list-style: none; }

/* ── Layout Wrapper ───────────────────────────────────────── */
.ndt-container {
    width: 100%;
    max-width: var(--ndt-layout-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ndt-layout-padding);
    padding-right: var(--ndt-layout-padding);
}

/* Boxed layout mode */
body.ndt-layout-boxed .ndt-container,
body.ndt-layout-boxed #page {
    max-width: var(--ndt-layout-max-width);
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--ndt-shadow-lg);
}

/* Wide layout: container fills more of the viewport */
body.ndt-layout-wide .ndt-container {
    max-width: min(1440px, 96vw);
}

/* Full-width: no horizontal padding cap */
body.ndt-layout-full .ndt-container {
    max-width: 100%;
}

#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1 0 auto; }

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--ndt-color-primary);
    color: var(--ndt-color-footer-heading, #fff);
    padding: 0.5rem 1rem;
    border-radius: var(--ndt-radius-sm);
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Header ───────────────────────────────────────────────── */
#masthead {
    background: var(--ndt-header-bg);
    color: var(--ndt-header-text);
    min-height: var(--ndt-header-height);
    border-bottom: var(--ndt-header-border);
    z-index: 1000;
    width: 100%;
    transition: background var(--ndt-transition), box-shadow var(--ndt-transition);
}

/* Sticky header */
body.ndt-header-sticky #masthead {
    position: sticky;
    top: 0;
}

/* Floating / transparent header — becomes opaque on scroll */
body.ndt-header-floating #masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
}
body.ndt-header-floating #masthead.is-scrolled {
    background: var(--ndt-header-bg);
    box-shadow: var(--ndt-header-shadow);
}
body.ndt-header-floating #content {
    padding-top: var(--ndt-header-height);
}

/* Static (default) */
body.ndt-header-static #masthead {
    position: relative;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--ndt-header-height);
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}
.site-branding img,
.site-branding .custom-logo {
    /* Size is controlled by the Logo Max Width slider in the customizer.
       These are safe fallbacks only — the inline CSS overrides them. */
    max-width: 160px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.site-title {
    font-family: var(--ndt-font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ndt-header-text);
    line-height: 1.2;
}
.site-description {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.55;
    color: var(--ndt-header-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Primary Navigation ───────────────────────────────────── */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: wrap;
}

.main-navigation > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ndt-header-text);
    opacity: 0.85;
    border-radius: var(--ndt-radius-sm);
    transition: opacity var(--ndt-transition), background var(--ndt-transition);
    white-space: nowrap;
}
.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    opacity: 1;
    background: rgba(255,255,255,0.10);
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--ndt-color-surface);
    border-radius: var(--ndt-radius-md);
    box-shadow: var(--ndt-shadow-lg);
    border: 1px solid var(--ndt-color-border);
    padding: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--ndt-transition), transform var(--ndt-transition);
    z-index: 999;
    flex-direction: column;
    gap: 0;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: flex;
}
.main-navigation ul ul li a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ndt-color-text);
    border-radius: var(--ndt-radius-sm);
    transition: background var(--ndt-transition), color var(--ndt-transition);
    white-space: nowrap;
}
.main-navigation ul ul li a:hover {
    background: var(--ndt-color-bg-alt);
    color: var(--ndt-color-primary);
}

/* CTA button in nav */
.main-navigation .menu-item-cta > a {
    background: var(--ndt-btn-bg);
    color: var(--ndt-btn-text) !important;
    opacity: 1 !important;
    border-radius: var(--ndt-btn-radius);
    padding: 0.5rem 1.125rem;
    font-weight: var(--ndt-btn-font-weight);
    box-shadow: var(--ndt-btn-shadow);
    transition: background var(--ndt-transition), box-shadow var(--ndt-transition);
}
.main-navigation .menu-item-cta > a:hover {
    background: var(--ndt-btn-hover-bg);
    box-shadow: 0 4px 18px rgba(79,110,245,0.35);
}

/* Hamburger */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--ndt-radius-sm);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ndt-header-text);
    border-radius: 2px;
    transition: transform var(--ndt-transition), opacity var(--ndt-transition);
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main Content Area ────────────────────────────────────── */
.site-main {
    padding-top: var(--ndt-section-padding);
    padding-bottom: var(--ndt-section-padding);
}

/* Sidebar layout */
.content-area { flex: 1; min-width: 0; }
.widget-area  { width: 300px; flex-shrink: 0; }

.has-sidebar .site-main .ndt-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--ndt-layout-gutter);
    align-items: start;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ndt-font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ndt-color-heading);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.1rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

blockquote {
    border-left: 4px solid var(--ndt-color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--ndt-color-bg-alt);
    border-radius: 0 var(--ndt-radius-md) var(--ndt-radius-md) 0;
    font-style: italic;
    color: var(--ndt-color-text-muted);
}
blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-style: normal;
    color: var(--ndt-color-primary);
}

code {
    font-family: var(--ndt-font-mono);
    font-size: 0.875em;
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-sm);
    padding: 0.15em 0.45em;
    color: var(--ndt-indigo);
}
pre {
    background: var(--ndt-navy);
    color: var(--ndt-blue-light);
    border-radius: var(--ndt-radius-md);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--ndt-color-footer-bottom-link, inherit);
    font-size: inherit;
}

ul.default-list, ol.default-list,
.entry-content ul, .entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
th, td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--ndt-color-border);
    text-align: left;
}
th {
    background: var(--ndt-color-bg-alt);
    font-weight: 700;
    color: var(--ndt-color-heading);
}
tr:nth-child(even) td { background: #FAFBFF; }

hr {
    border: none;
    border-top: 1.5px solid var(--ndt-color-border);
    margin: 2rem 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.ndt-btn,
.wp-block-button__link,
.button,
input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--ndt-btn-bg);
    color: var(--ndt-btn-text);
    border: 2px solid transparent;
    border-radius: var(--ndt-btn-radius);
    padding: var(--ndt-btn-padding);
    font-family: var(--ndt-font-body);
    font-size: var(--ndt-btn-font-size);
    font-weight: var(--ndt-btn-font-weight);
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--ndt-btn-shadow);
    transition: background var(--ndt-transition), color var(--ndt-transition),
                box-shadow var(--ndt-transition), transform var(--ndt-transition);
    white-space: nowrap;
    -webkit-appearance: none;
}
.ndt-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--ndt-btn-hover-bg);
    color: var(--ndt-btn-text);
    box-shadow: 0 6px 24px rgba(79,110,245,0.30);
    transform: translateY(-1px);
}
.ndt-btn:active { transform: translateY(0); }

/* Button variants */
.ndt-btn-outline {
    background: transparent;
    color: var(--ndt-color-primary);
    border-color: var(--ndt-color-primary);
    box-shadow: none;
}
.ndt-btn-outline:hover {
    background: var(--ndt-color-primary);
    color: #fff;
}
.ndt-btn-ghost {
    background: rgba(79,110,245,0.08);
    color: var(--ndt-color-primary);
    border-color: transparent;
    box-shadow: none;
}
.ndt-btn-ghost:hover {
    background: rgba(79,110,245,0.15);
}
.ndt-btn-lg { font-size: 1.1rem; padding: 0.875em 2em; }
.ndt-btn-sm { font-size: 0.8rem; padding: 0.45em 1em; }

/* ── Forms ────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    font-family: var(--ndt-font-body);
    font-size: 0.95rem;
    color: var(--ndt-color-text);
    background: var(--ndt-color-surface);
    border: 1.5px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-md);
    transition: border-color var(--ndt-transition), box-shadow var(--ndt-transition);
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ndt-color-primary);
    box-shadow: 0 0 0 3px rgba(79,110,245,0.15);
}
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ndt-color-heading);
}

/* ── Cards ────────────────────────────────────────────────── */
.ndt-card {
    background: var(--ndt-color-surface);
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-lg);
    box-shadow: var(--ndt-shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--ndt-transition), transform var(--ndt-transition);
}
.ndt-card:hover {
    box-shadow: var(--ndt-shadow-md);
    transform: translateY(-2px);
}
.ndt-card-body { padding: 1.5rem; }
.ndt-card-img img { width: 100%; height: 200px; object-fit: cover; }

/* ── Post Grid ────────────────────────────────────────────── */
.ndt-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.75rem;
}
.ndt-post-card .entry-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.ndt-post-card .entry-title a { color: var(--ndt-color-heading); }
.ndt-post-card .entry-title a:hover { color: var(--ndt-color-primary); }
.ndt-post-card .entry-meta {
    font-size: 0.8rem;
    color: var(--ndt-color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ndt-post-card .entry-excerpt { font-size: 0.9rem; color: var(--ndt-color-text-muted); }

/* ── Thumbnail ────────────────────────────────────────────── */
.post-thumbnail {
    display: block;
    overflow: hidden;
    border-radius: var(--ndt-radius-md) var(--ndt-radius-md) 0 0;
}
.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.ndt-card:hover .post-thumbnail img { transform: scale(1.04); }

/* Category badge */
.entry-cat {
    display: inline-block;
    background: var(--ndt-color-bg-alt);
    color: var(--ndt-color-primary);
    border: 1px solid rgba(79,110,245,0.2);
    border-radius: 999px;
    padding: 0.2em 0.75em;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

/* ── Single Post ──────────────────────────────────────────── */
.entry-header { margin-bottom: 2.5rem; }
.entry-header .entry-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--ndt-color-text-muted);
}
.entry-header .entry-meta a { color: var(--ndt-color-text-muted); }
.entry-header .entry-meta a:hover { color: var(--ndt-color-primary); }

.entry-content {
    font-size: 1.05rem;
    line-height: 1.75;
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2,
.entry-content h3 { margin-top: 2em; margin-bottom: 0.6em; }

/* Featured image */
.single-post .post-thumbnail {
    border-radius: var(--ndt-radius-lg);
    margin-bottom: 2.5rem;
}
.single-post .post-thumbnail img {
    height: 420px;
    border-radius: var(--ndt-radius-lg);
}

/* Author box */
.author-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: var(--ndt-color-bg-alt);
    border-radius: var(--ndt-radius-lg);
    border: 1px solid var(--ndt-color-border);
    margin-top: 3rem;
}
.author-box .author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}
.author-box .author-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ndt-color-heading);
    margin-bottom: 0.35rem;
}
.author-box .author-bio { font-size: 0.9rem; color: var(--ndt-color-text-muted); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination, .posts-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
}
.page-numbers, .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.875rem;
    border-radius: var(--ndt-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ndt-color-text-muted);
    border: 1.5px solid var(--ndt-color-border);
    transition: all var(--ndt-transition);
}
.page-numbers:hover, .nav-links a:hover { border-color: var(--ndt-color-primary); color: var(--ndt-color-primary); }
.page-numbers.current { background: var(--ndt-color-primary); color: #fff; border-color: var(--ndt-color-primary); }

/* ── Widgets ──────────────────────────────────────────────── */
.widget {
    background: var(--ndt-color-surface);
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ndt-color-heading);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ndt-color-primary);
}
.widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ndt-color-border);
    font-size: 0.9rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ndt-color-text); }
.widget ul li a:hover { color: var(--ndt-color-primary); }

/* ── Footer ───────────────────────────────────────────────── */
#colophon {
    background: var(--ndt-color-footer-bg);
    color: var(--ndt-color-footer-text);
    padding-top: var(--ndt-footer-padding-top, 3.5rem);
    padding-bottom: var(--ndt-footer-padding-bottom, 0);
}

.site-footer .ndt-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 36rem;
    padding-bottom: 2rem;
}

.footer-brand-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

.footer-logo-link,
.footer-site-name {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-logo-link img {
    display: block;
}

.footer-tagline {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 60ch;
    color: var(--ndt-color-footer-branding, var(--ndt-color-footer-text));
    opacity: 0.9;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ndt-footer-widget-gap, 2.5rem);
    padding-bottom: 2.5rem;
}

.footer-widget-area {
    min-width: 0;
}

.footer-widget-area .widget {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ndt-color-footer-heading, #fff);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ndt-footer-border-color, rgba(255,255,255,0.12));
}

.footer-widget-area,
.footer-widget-area p,
.footer-widget-area li,
.footer-widget-area span,
.footer-widget-area strong,
.footer-widget-area small {
    color: var(--ndt-color-footer-text);
}

.footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area ul li {
    margin: 0;
    padding: 0.48rem 0;
    border-bottom: 1px solid var(--ndt-footer-border-color, rgba(255,255,255,0.08));
    font-size: 0.92rem;
}

.footer-widget-area ul li:last-child {
    border-bottom: none;
}

.footer-widget-area a {
    color: var(--ndt-color-footer-bottom-link, var(--ndt-color-footer-link, #fff));
    text-decoration: none;
    opacity: 0.88;
    transition: color var(--ndt-transition), opacity var(--ndt-transition);
}

.footer-widget-area a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--ndt-footer-border-color, rgba(255,255,255,0.10));
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    font-size: 0.825rem;
    color: var(--ndt-color-footer-bottom-text, var(--ndt-color-footer-text));
    opacity: 0.78;
}

.footer-no-divider .footer-bottom {
    border-top: none;
}

.footer-bottom-center,
.footer-bottom-stacked {
    justify-content: center;
    text-align: center;
}

.footer-bottom-stacked {
    flex-direction: column;
}

.footer-bottom-no-menu {
    justify-content: center;
}

.footer-bottom a {
    color: inherit;
}

.footer-bottom a:hover {
    opacity: 1;
    color: #fff;
}

.footer-navigation ul {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    font-size: 0.825rem;
    opacity: 0.85;
    transition: opacity var(--ndt-transition);
}

.footer-navigation a:hover {
    opacity: 1;
}

.site-footer.footer-preset-minimal .footer-brand {
    padding-bottom: 1.25rem;
}

.site-footer.footer-preset-minimal .footer-widgets {
    padding-bottom: 1.5rem;
}

.site-footer.footer-preset-brand .footer-brand {
    padding-bottom: 2.5rem;
}

.site-footer.footer-preset-brand .footer-tagline {
    font-size: 1.02rem;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.ndt-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.825rem;
    color: var(--ndt-color-text-muted);
    margin-bottom: 1.5rem;
}
.ndt-breadcrumbs a { color: var(--ndt-color-text-muted); }
.ndt-breadcrumbs a:hover { color: var(--ndt-color-primary); }
.ndt-breadcrumbs .sep { opacity: 0.4; }

/* ── Hero section ─────────────────────────────────────────── */
.ndt-hero {
    background: var(--ndt-navy);
    color: #fff;
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}
.ndt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(79,110,245,0.25), transparent);
    pointer-events: none;
}
.ndt-hero-eyebrow {
    display: inline-block;
    background: rgba(165,180,252,0.15);
    color: var(--ndt-blue-light);
    border: 1px solid rgba(165,180,252,0.25);
    border-radius: 999px;
    padding: 0.3em 1em;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.ndt-hero h1 { color: #fff; margin-bottom: 1rem; }
.ndt-hero .ndt-hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.7);
    max-width: 56ch;
    margin-bottom: 2rem;
    line-height: 1.65;
}
.ndt-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Page Hero (for inner pages) ─────────────────────────── */
.ndt-page-hero {
    background: var(--ndt-navy);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    color: #fff;
}
.ndt-page-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* ── Section utilities ────────────────────────────────────── */
.ndt-section { padding: var(--ndt-section-padding) 0; }
.ndt-section-alt { background: var(--ndt-color-bg-alt); }
.ndt-section-dark { background: var(--ndt-navy); color: #fff; }
.ndt-section-dark h2, .ndt-section-dark h3 { color: #fff; }

.ndt-section-header { text-align: center; max-width: 56ch; margin: 0 auto 3rem; }
.ndt-section-header h2 { margin-bottom: 0.75rem; }
.ndt-section-header p { color: var(--ndt-color-text-muted); font-size: 1.05rem; }

/* ── Feature Grid ─────────────────────────────────────────── */
.ndt-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
}
.ndt-feature-item {
    background: var(--ndt-color-surface);
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-lg);
    padding: 1.75rem;
    transition: box-shadow var(--ndt-transition), transform var(--ndt-transition);
}
.ndt-feature-item:hover {
    box-shadow: var(--ndt-shadow-md);
    transform: translateY(-2px);
}
.ndt-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--ndt-color-bg-alt);
    border-radius: var(--ndt-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    color: var(--ndt-color-primary);
    font-size: 1.4rem;
}
.ndt-feature-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.ndt-feature-item p  { font-size: 0.9rem; color: var(--ndt-color-text-muted); margin: 0; }

/* ── Gutenberg / Block editor ─────────────────────────────── */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--ndt-radius-md); }
.wp-block-image figcaption { font-size: 0.8rem; color: var(--ndt-color-text-muted); text-align: center; margin-top: 0.5rem; }

.wp-block-quote {
    border-left: 4px solid var(--ndt-color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--ndt-color-bg-alt);
    border-radius: 0 var(--ndt-radius-md) var(--ndt-radius-md) 0;
}
.wp-block-quote p { font-size: 1.05rem; font-style: italic; }
.wp-block-quote cite { font-size: 0.875rem; font-weight: 600; font-style: normal; color: var(--ndt-color-primary); }

.wp-block-cover { border-radius: var(--ndt-radius-lg); overflow: hidden; }
.wp-block-separator { border-color: var(--ndt-color-border); }
.wp-block-pullquote blockquote { border: none; background: none; }
.wp-block-pullquote { border-top: 4px solid var(--ndt-color-primary); border-bottom: 4px solid var(--ndt-color-primary); padding: 1.5rem 0; text-align: center; }
.wp-block-pullquote blockquote p { font-size: 1.3rem; font-weight: 700; color: var(--ndt-color-heading); }

/* Button block */
.wp-block-button { margin-bottom: 0; }
.wp-block-button__link {
    background: var(--ndt-btn-bg);
    color: var(--ndt-btn-text);
    border-radius: var(--ndt-btn-radius);
}
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--ndt-color-primary);
    border: 2px solid var(--ndt-color-primary);
    box-shadow: none;
}

/* Alignwide / Alignfull */
.alignwide  { margin-left: calc(-1 * var(--ndt-layout-padding)); margin-right: calc(-1 * var(--ndt-layout-padding)); max-width: unset; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* ── Elementor overrides ──────────────────────────────────── */
.elementor-section-wrap,
.elementor-inner,
.elementor-section {
    min-width: 0;
}
.elementor-page #page { padding: 0; }

/* ── Comments ─────────────────────────────────────────────── */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.3rem; margin-bottom: 2rem; }
.comment-list { margin-bottom: 2rem; }
.comment { margin-bottom: 1.5rem; padding: 1.25rem; background: var(--ndt-color-bg-alt); border-radius: var(--ndt-radius-md); }
.comment-meta { font-size: 0.825rem; color: var(--ndt-color-text-muted); margin-bottom: 0.75rem; }
.comment-author b { font-size: 0.95rem; color: var(--ndt-color-heading); }
.comment-content p { font-size: 0.95rem; }
.comment-reply-link { font-size: 0.825rem; font-weight: 600; color: var(--ndt-color-primary); }

/* ── Search form ──────────────────────────────────────────── */
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] { flex: 1; }

/* ── Accessibility ────────────────────────────────────────── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
:focus-visible {
    outline: 3px solid var(--ndt-color-primary);
    outline-offset: 3px;
}

/* ── Utility classes ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--ndt-color-text-muted); }
.text-primary { color: var(--ndt-color-primary); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .has-sidebar .site-main .ndt-container {
        grid-template-columns: 1fr;
    }
    .widget-area { width: 100%; }
    .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .menu-toggle { display: flex; }
    .main-navigation {
        display: none;
        position: fixed;
        inset: 0;
        top: var(--ndt-header-height);
        background: var(--ndt-header-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem var(--ndt-layout-padding);
        overflow-y: auto;
        gap: 0;
        z-index: 999;
    }
    .main-navigation.is-open { display: flex; }
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .main-navigation > ul > li > a {
        width: 100%;
        font-size: 1.05rem;
        padding: 0.875rem 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        opacity: 0.9;
    }
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--ndt-radius-md);
        margin: 0.5rem 0 0.5rem 1rem;
        padding: 0.25rem;
        display: none !important;
    }
    .main-navigation li.menu-item-has-children.is-open > ul { display: flex !important; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-brand { padding-bottom: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
    .alignwide, .alignfull { margin-left: 0; margin-right: 0; width: 100%; }
    .ndt-hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .ndt-posts-grid { grid-template-columns: 1fr; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    #masthead, #colophon, .widget-area, .post-navigation, .comments-area { display: none; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
/* Back-to-top button — appended to theme.css via wp_add_inline_style */
.ndt-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--ndt-color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79,110,245,0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
    z-index: 998;
}
.ndt-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ndt-back-to-top:hover {
    background: var(--ndt-color-primary-dark);
}

/* Search overlay */
.ndt-search-overlay {
    position: fixed;
    inset: 0;
    top: var(--ndt-header-height);
    background: rgba(13,27,74,0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    padding-top: 3rem;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.ndt-search-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.ndt-search-overlay .search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.ndt-search-overlay input[type="search"] {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
}
.ndt-search-overlay input[type="search"]::placeholder { color: rgba(255,255,255,0.4); }
.ndt-search-overlay input[type="search"]:focus {
    border-color: var(--ndt-blue-light);
    box-shadow: 0 0 0 3px rgba(165,180,252,0.2);
}
.ndt-search-close {
    position: absolute;
    top: -2rem;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.ndt-search-close:hover { color: #fff; }

/* Post navigation */
.post-navigation {
    display: none !important;
}
.nav-previous, .nav-next {
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-md);
    padding: 1.1rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-previous:hover, .nav-next:hover {
    border-color: var(--ndt-color-primary);
    box-shadow: var(--ndt-shadow-sm);
}
.nav-next { text-align: right; }
.nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ndt-color-text-muted);
    margin-bottom: 0.3rem;
}
.nav-title { font-weight: 600; color: var(--ndt-color-heading); font-size: 0.95rem; }
.nav-previous a, .nav-next a { text-decoration: none; }

/* Video embed wrapper */
.ndt-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--ndt-radius-md);
    margin: 1.5rem 0;
}
.ndt-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ndt-main-with-sidebar grid */
.ndt-main-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ndt-layout-gutter);
}
.has-sidebar .ndt-main-with-sidebar {
    grid-template-columns: 1fr 300px;
    align-items: start;
}
@media (max-width: 900px) {
    .has-sidebar .ndt-main-with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Entry tags */
.entry-tags {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}
.entry-tags a {
    display: inline-block;
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    border-radius: 999px;
    padding: 0.2em 0.7em;
    margin: 0 0.25rem 0.25rem 0;
    color: var(--ndt-color-text-muted);
    font-size: 0.8rem;
    transition: all 0.2s;
}
.entry-tags a:hover {
    background: var(--ndt-color-primary);
    border-color: var(--ndt-color-primary);
    color: #fff;
}

/* ── Page Title Banner (ndt_the_page_title_banner) ───────── */
.ndt-page-title-banner {
	width: 100%;
}
.ndt-page-title-banner .page-title {
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.2;
	margin: 0;
}
.ndt-page-title-banner .archive-description {
	margin-top: .6rem;
	font-size: 1rem;
	line-height: 1.65;
	max-width: 60ch;
}
/* Remove top margin from main content when directly after banner */
.ndt-page-title-banner + #main,
.ndt-page-title-banner + div > #main {
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

/* Breadcrumb colours driven by Customizer via inline CSS —
   defaults here as fallback */
.ndt-breadcrumbs {
	color: var(--ndt-color-text-muted, #5A6A8A);
}
.ndt-breadcrumbs a {
	color: var(--ndt-color-text-muted, #5A6A8A);
}
.ndt-breadcrumbs a:hover {
	color: var(--ndt-color-primary, #4F6EF5);
}


/* ── v1.1.2 polish pass ─────────────────────────────── */
.page-content,
.ndt-single-post .entry-header,
.ndt-single-post .entry-content,
.ndt-single-post .entry-footer,
.ndt-single-post .author-box,
.post-navigation,
.comments-area {
    max-width: var(--ndt-layout-content-max);
}

@media (min-width: 681px) {
    body.ndt-header-logo-center .site-header-inner {
        position: relative;
    }
    body.ndt-header-logo-center .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }
    body.ndt-header-logo-center .main-navigation {
        margin-left: auto;
        padding-right: 0.5rem;
    }
}

@media (max-width: 680px) {
    body.ndt-header-logo-center .site-branding {
        position: static;
        transform: none;
    }
}


/* 1.1.4 header color token polish */
#masthead {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--ndt-header-border-color, transparent);
}
.main-navigation > ul > li > a {
    color: var(--ndt-header-link, var(--ndt-header-text));
}
.main-navigation > ul > li > a:hover,
.main-navigation > ul > li > a:focus {
    color: var(--ndt-header-link-hover, var(--ndt-header-link, var(--ndt-header-text)));
}
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    color: var(--ndt-header-link-active, var(--ndt-header-link, var(--ndt-header-text)));
    background: var(--ndt-header-active-bg, rgba(255,255,255,0.10));
}
body.ndt-header-floating #masthead.is-scrolled {
    background: var(--ndt-header-sticky-bg, var(--ndt-header-bg));
}
@media (max-width: 1024px) {
    .main-navigation {
        background: var(--ndt-mobile-menu-bg, var(--ndt-header-bg));
    }
    .main-navigation a,
    .main-navigation ul ul a {
        color: var(--ndt-mobile-menu-link, var(--ndt-header-link, var(--ndt-header-text)));
    }
    .main-navigation ul ul {
        background: var(--ndt-mobile-menu-bg, var(--ndt-header-bg));
    }
}


/* ── v1.1.5 component/system pass ───────────────────────── */
.site-header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end;
}
.site-header.header-layout-standard .site-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
}
.site-header.header-layout-standard .main-navigation {
    justify-self: end;
}
.site-header.header-layout-centered .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}
.site-header.header-layout-centered .site-branding {
    justify-self: center;
}
.site-header.header-layout-centered .main-navigation {
    justify-self: start;
}
.site-header.header-layout-centered .site-header-tools {
    justify-self: end;
}
.site-header.header-layout-compact .site-header-inner {
    height: max(56px, calc(var(--ndt-header-height) - 10px));
}
.site-header.header-layout-compact .main-navigation > ul > li > a {
    padding: 0.45rem 0.75rem;
    font-size: 0.86rem;
}
.site-header.header-layout-stacked .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    height: auto;
    padding: 0.9rem 0;
    row-gap: 0.9rem;
}
.site-header.header-layout-stacked .site-branding,
.site-header.header-layout-stacked .main-navigation,
.site-header.header-layout-stacked .site-header-tools {
    width: 100%;
    justify-content: center;
}
.site-header.header-layout-stacked .main-navigation > ul {
    justify-content: center;
}

/* Unified tables, forms, cards and alerts */
table {
    overflow: hidden;
    border-radius: var(--ndt-table-radius, var(--ndt-radius-md));
    box-shadow: var(--ndt-shadow-sm);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ndt-color-surface);
}
tr:first-child th:first-child { border-top-left-radius: var(--ndt-table-radius, var(--ndt-radius-md)); }
tr:first-child th:last-child { border-top-right-radius: var(--ndt-table-radius, var(--ndt-radius-md)); }
tr:last-child td:first-child { border-bottom-left-radius: var(--ndt-table-radius, var(--ndt-radius-md)); }
tr:last-child td:last-child { border-bottom-right-radius: var(--ndt-table-radius, var(--ndt-radius-md)); }
tr:nth-child(even) td { background: color-mix(in srgb, var(--ndt-color-bg-alt) 60%, white); }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    border-radius: var(--ndt-input-radius, var(--ndt-radius-md));
    box-shadow: 0 1px 2px rgba(13,27,74,0.03);
}
.ndt-card,
.wp-block-group.is-style-default,
.wp-block-latest-posts__list li,
.widget,
.comment-body {
    border-radius: var(--ndt-card-radius, var(--ndt-radius-lg));
}
.ndt-card,
.comment-body,
.widget {
    box-shadow: var(--ndt-card-shadow, var(--ndt-shadow-sm));
}
.widget,
.comment-body {
    background: var(--ndt-color-surface);
    border: 1px solid var(--ndt-color-border);
    padding: 1.25rem;
}
.comment-list .children .comment-body { margin-top: 1rem; }
.ndt-alert,
.wp-block-group.is-style-ndt-alert {
    padding: 1rem 1.1rem;
    border: 1px solid var(--ndt-color-border);
    border-left: 4px solid var(--ndt-color-primary);
    border-radius: var(--ndt-input-radius, var(--ndt-radius-md));
    background: var(--ndt-color-bg-alt);
    color: var(--ndt-color-text);
    margin: 1rem 0;
}
.ndt-alert strong { color: var(--ndt-color-heading); }
.ndt-alert-info { border-left-color: #2563eb; }
.ndt-alert-success { border-left-color: #16a34a; background: #f0fdf4; }
.ndt-alert-warning { border-left-color: #d97706; background: #fff7ed; }
.ndt-alert-error { border-left-color: #dc2626; background: #fef2f2; }

/* Site preset nuances */
body.ndt-site-preset-saas .ndt-card,
body.ndt-site-preset-saas .widget,
body.ndt-site-preset-saas .comment-body { transform: translateZ(0); }
body.ndt-site-preset-saas .ndt-btn,
body.ndt-site-preset-saas .wp-block-button__link,
body.ndt-site-preset-saas .button,
body.ndt-site-preset-saas input[type="submit"],
body.ndt-site-preset-saas button[type="submit"] {
    letter-spacing: .01em;
}
body.ndt-site-preset-docs .entry-content,
body.ndt-site-preset-docs .page-content {
    line-height: 1.8;
}
body.ndt-site-preset-docs table { font-size: 0.95rem; }
body.ndt-site-preset-portfolio h1,
body.ndt-site-preset-portfolio h2,
body.ndt-site-preset-portfolio h3 {
    letter-spacing: -0.04em;
}
body.ndt-site-preset-business .site-footer { backdrop-filter: saturate(1.05); }

/* Starter templates */
.ndt-starter-hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--ndt-header-bg), color-mix(in srgb, var(--ndt-header-bg) 78%, var(--ndt-color-primary)));
    color: #fff;
}
.ndt-starter-hero h1,
.ndt-starter-hero p,
.ndt-starter-hero .ndt-starter-kicker { color: inherit; }
.ndt-starter-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    margin-bottom: 1rem;
}
.ndt-starter-hero p {
    max-width: 60ch;
    opacity: .82;
    font-size: 1.05rem;
}
.ndt-starter-actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}
.ndt-starter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}
.ndt-starter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}
.ndt-starter-stat {
    padding: 1rem 1.1rem;
    border-radius: var(--ndt-card-radius, var(--ndt-radius-lg));
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
}
.ndt-starter-stat strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: .35rem;
    color: #fff;
}
.ndt-starter-section { padding: var(--ndt-section-padding) 0; }
.ndt-starter-section.alt { background: var(--ndt-color-bg-alt); }
.ndt-starter-shell { max-width: min(100%, var(--ndt-layout-max-width)); margin: 0 auto; padding: 0 var(--ndt-layout-padding); }
.ndt-starter-content { max-width: var(--ndt-layout-content-max); }

@media (max-width: 1024px) {
    .site-header.header-layout-centered .site-header-inner,
    .site-header.header-layout-standard .site-header-inner {
        display: flex;
    }
}


/* ── v1.1.6 editorial system ─────────────────────────────── */
.single-post .content-area {
    min-width: 0;
}
.single-post .ndt-single-post {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-xl);
    box-shadow: 0 18px 50px rgba(13,27,74,0.06);
    padding: clamp(1.4rem, 2vw, 2rem);
}
.single-post .entry-header {
    margin-bottom: 2rem;
}
.single-post .entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
}
.single-post .entry-header .entry-meta {
    gap: 0.75rem 1rem;
}
.single-post .entry-header .entry-meta time,
.single-post .entry-header .entry-meta .author,
.single-post .entry-header .entry-meta .categories {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ndt-color-border);
}
.single-post .entry-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--ndt-color-text);
}
.single-post .entry-content > * + * {
    margin-top: 1.35em;
}
.single-post .entry-content > h2,
.single-post .entry-content > h3,
.single-post .entry-content > h4 {
    scroll-margin-top: 6rem;
}
.single-post .entry-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-top: 2.2em;
    margin-bottom: 0.55em;
}
.single-post .entry-content h3 {
    font-size: clamp(1.3rem, 2.3vw, 1.65rem);
    line-height: 1.25;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
}
.single-post .entry-content h4 {
    font-size: 1.08rem;
    text-transform: none;
    color: var(--ndt-color-heading);
    margin-top: 1.5em;
}
.single-post .entry-content p,
.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .entry-content figure,
.single-post .entry-content table,
.single-post .entry-content pre,
.single-post .entry-content blockquote {
    max-width: 100%;
}
.single-post .entry-content a {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.14em;
}
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 1.3rem;
    padding-left: 0;
    list-style: none;
}
.single-post .entry-content ul li,
.single-post .entry-content ol li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.85rem;
}
.single-post .entry-content ul li::before {
    content: '';
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ndt-blue), var(--ndt-blue-light));
    box-shadow: 0 0 0 5px rgba(79,110,245,0.10);
}
.single-post .entry-content ol {
    counter-reset: ndt-ol;
}
.single-post .entry-content ol li::before {
    counter-increment: ndt-ol;
    content: counter(ndt-ol);
    position: absolute;
    top: 0.08em;
    left: 0;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    color: var(--ndt-color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.single-post .entry-content blockquote,
.wp-block-quote.is-style-ndt-quote {
    margin: 2rem 0;
    padding: 1.4rem 1.5rem;
    border-left: 4px solid var(--ndt-color-primary);
    background: linear-gradient(180deg, rgba(79,110,245,0.05) 0%, rgba(165,180,252,0.08) 100%);
    border-radius: 0 var(--ndt-radius-md) var(--ndt-radius-md) 0;
    color: var(--ndt-color-heading);
    font-size: 1.1rem;
}
.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}
.single-post .entry-content pre {
    padding: 1.2rem 1.35rem;
    border-radius: var(--ndt-radius-md);
}
.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-md);
    background: #fff;
    box-shadow: 0 8px 24px rgba(13,27,74,0.05);
}
.single-post .entry-content th,
.single-post .entry-content td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--ndt-color-border);
    text-align: left;
    vertical-align: top;
}
.single-post .entry-content th {
    background: var(--ndt-color-bg-alt);
    color: var(--ndt-color-heading);
    font-weight: 700;
}
.single-post .entry-content tr:last-child td {
    border-bottom: none;
}
.single-post .entry-content img,
.single-post .entry-content .wp-block-image img {
    border-radius: var(--ndt-radius-lg);
}
.single-post .entry-content .wp-block-image figcaption,
.single-post .entry-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ndt-color-text-muted);
    margin-top: 0.65rem;
}
.single-post .entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ndt-color-border);
}
.single-post .entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0;
}
.single-post .entry-tags a {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ndt-indigo);
    background: var(--ndt-color-bg-alt);
}
.single-post .comments-area {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-xl);
    padding: clamp(1.25rem, 2vw, 2rem);
    box-shadow: 0 12px 30px rgba(13,27,74,0.05);
}
.single-post .comment-reply-title,
.single-post .comments-title {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.wp-block-group.is-style-ndt-surface,
.ndt-editorial-surface {
    background: #fff;
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-lg);
    box-shadow: 0 10px 30px rgba(13,27,74,0.05);
    padding: clamp(1.1rem, 2vw, 1.5rem);
}
.wp-block-group.is-style-ndt-highlight,
.ndt-editorial-highlight,
.ndt-cta-banner {
    background: linear-gradient(180deg, rgba(79,110,245,0.06) 0%, rgba(165,180,252,0.10) 100%);
    border: 1px solid rgba(79,110,245,0.16);
    border-radius: var(--ndt-radius-lg);
    padding: clamp(1.2rem, 2.2vw, 1.8rem);
}
.ndt-cta-banner {
    background: linear-gradient(135deg, var(--ndt-navy) 0%, var(--ndt-indigo) 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(13,27,74,0.14);
}
.ndt-cta-banner h2,
.ndt-cta-banner h3,
.ndt-cta-banner p {
    color: inherit;
}
.wp-block-buttons.is-style-ndt-buttons-inline {
    gap: 0.8rem;
}
@media (max-width: 900px) {
    .single-post .ndt-single-post {
        padding: 1.15rem;
        border-radius: var(--ndt-radius-lg);
    }
    .single-post .entry-content {
        font-size: 1rem;
        line-height: 1.82;
    }
    .single-post .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* ── v1.1.7 editorial kit ───────────────────────────────── */
.ndt-editorial-kicker,
.ndt-editorial-eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ndt-color-primary);
}
.ndt-editorial-lead {
    color: var(--ndt-color-text-muted);
    max-width: 62ch;
}
.ndt-editorial-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: radial-gradient(circle at top right, rgba(79,110,245,0.14), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.ndt-editorial-hero::after {
    content: '';
    position: absolute;
    inset: auto -5rem -5rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(165,180,252,0.35) 0%, rgba(165,180,252,0) 72%);
    pointer-events: none;
}
.ndt-editorial-hero > * {
    position: relative;
    z-index: 1;
}
.ndt-editorial-chip-row {
    gap: 0.7rem;
}
.ndt-editorial-chip-row p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    color: var(--ndt-indigo);
    font-size: 0.84rem;
    font-weight: 600;
}
.ndt-editorial-card-grid,
.ndt-editorial-stat-row,
.ndt-editorial-compare {
    gap: 1.1rem;
}
.ndt-editorial-card-grid .wp-block-column,
.ndt-editorial-stat-row .wp-block-column,
.ndt-editorial-compare .wp-block-column {
    min-width: 0;
}
.ndt-editorial-card-grid .ndt-editorial-surface,
.is-style-ndt-feature-grid .ndt-editorial-surface {
    height: 100%;
}
.ndt-editorial-stat-row .ndt-editorial-surface {
    text-align: center;
}
.ndt-stat-value {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
}
.ndt-stat-label {
    margin: 0.45rem 0 0;
    color: var(--ndt-color-text-muted);
}
.ndt-editorial-faq {
    display: grid;
    gap: 0.95rem;
}
.ndt-editorial-faq .wp-block-details {
    margin: 0;
}
.ndt-editorial-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ndt-color-heading);
}
.ndt-editorial-faq summary::-webkit-details-marker {
    margin-right: 0.45rem;
}
.is-style-ndt-hero-cover.wp-block-cover {
    border-radius: var(--ndt-radius-xl);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(13,27,74,0.10);
}
.is-style-ndt-hero-cover.wp-block-cover .wp-block-cover__inner-container {
    max-width: min(100%, 880px);
}
.is-style-ndt-feature-grid {
    gap: 1.1rem;
}
.is-style-ndt-feature-grid > .wp-block-column > .wp-block-group {
    height: 100%;
}
.single-post .entry-content .ndt-editorial-hero,
.single-post .entry-content .ndt-editorial-surface,
.single-post .entry-content .ndt-editorial-highlight,
.single-post .entry-content .ndt-cta-banner {
    max-width: 100%;
}
.single-post .comment-form textarea,
.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"],
.single-post .comment-form input[type="url"] {
    border-radius: 14px;
    border: 1px solid var(--ndt-color-border);
    background: #fff;
}
.single-post .comment-list .comment-body {
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-lg);
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
@media (max-width: 900px) {
    .ndt-editorial-card-grid,
    .ndt-editorial-stat-row,
    .ndt-editorial-compare {
        gap: 0.9rem;
    }
}


/* ── v1.1.8 auto post hero + content patterns ───────────────── */
.single-post .ndt-single-post {
    display: grid;
    gap: 1.6rem;
}
.single-post .entry-header.ndt-post-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: center;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(79,110,245,0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.single-post .ndt-post-hero::after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(165,180,252,0.34) 0%, rgba(165,180,252,0) 72%);
    pointer-events: none;
}
.single-post .ndt-post-hero > * {
    position: relative;
    z-index: 1;
}
.single-post .ndt-post-hero-copy {
    min-width: 0;
}
.single-post .ndt-post-hero-taxonomy {
    margin-bottom: 1rem;
}
.single-post .ndt-post-hero-cat,
.single-post .entry-cat {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.1rem;
    padding: 0 .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(79,110,245,0.08);
    border: 1px solid rgba(79,110,245,0.16);
    color: var(--ndt-color-primary);
    text-decoration: none;
}
.single-post .ndt-post-hero .entry-title {
    margin: 0;
    max-width: 12ch;
}
.single-post .ndt-post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}
.single-post .ndt-post-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0 .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ndt-color-border);
    color: var(--ndt-color-text-muted);
    font-size: .84rem;
    font-weight: 600;
}
.single-post .ndt-post-meta-pill-primary {
    background: var(--ndt-color-bg-alt);
    color: var(--ndt-indigo);
}
.single-post .ndt-post-hero-excerpt {
    margin-top: 1.15rem;
    max-width: 62ch;
    color: var(--ndt-color-text-muted);
    font-size: 1.08rem;
    line-height: 1.85;
}
.single-post .ndt-post-hero-excerpt p:last-child {
    margin-bottom: 0;
}
.single-post .ndt-post-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.1rem;
}
.single-post .ndt-post-tag-chip,
.single-post .entry-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 .85rem;
    border-radius: 999px;
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    color: var(--ndt-indigo);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}
.single-post .ndt-post-tag-chip:hover,
.single-post .entry-tags a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13,27,74,0.08);
}
.single-post .ndt-post-hero-media {
    margin: 0;
    align-self: stretch;
    min-height: 100%;
}
.single-post .ndt-post-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: calc(var(--ndt-radius-lg) - 2px);
    box-shadow: 0 12px 28px rgba(13,27,74,0.10);
}
.single-post .entry-footer {
    margin-top: .2rem;
}
.single-post .entry-footer .ndt-post-tag-row {
    margin-top: 0;
}
.single-post .author-box {
    margin-top: .2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.single-post .comments-area {
    margin-top: .2rem;
}
.ndt-plugin-hero {
    padding: clamp(1.6rem, 3vw, 2.4rem);
    background: linear-gradient(135deg, var(--ndt-navy) 0%, var(--ndt-indigo) 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(13,27,74,0.16);
}
.ndt-plugin-hero h1,
.ndt-plugin-hero h2,
.ndt-plugin-hero h3,
.ndt-plugin-hero p,
.ndt-plugin-hero .ndt-editorial-kicker {
    color: inherit;
}
.ndt-plugin-hero .ndt-editorial-chip-row p {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.ndt-docs-shell {
    display: grid;
    gap: 1rem;
}
.ndt-docs-card-grid {
    gap: 1rem;
}
.ndt-docs-card-grid .ndt-editorial-surface {
    height: 100%;
}
.ndt-docs-card-grid h3 {
    margin-bottom: .55rem;
}
.ndt-waitlist-banner {
    display: grid;
    gap: 1rem;
}
.ndt-waitlist-banner .wp-block-buttons {
    margin-top: .35rem;
}
@media (max-width: 980px) {
    .single-post .entry-header.ndt-post-hero {
        grid-template-columns: 1fr;
    }
    .single-post .ndt-post-hero .entry-title {
        max-width: none;
    }
    .single-post .ndt-post-hero-media img {
        min-height: 240px;
    }
}


/* ── v1.1.9 archive / blog / docs refinement ───────────────── */
.ndt-archive-main .content-area {
    display: grid;
    gap: 1.4rem;
}
.ndt-archive-intro {
    display: grid;
    gap: 1rem;
    padding: clamp(1.4rem, 2.4vw, 2rem);
    background:
        radial-gradient(circle at top right, rgba(79,110,245,0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.ndt-archive-intro-kicker,
.single-post .ndt-post-hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2rem;
    padding: 0 .8rem;
    border-radius: 999px;
    background: rgba(79,110,245,0.08);
    border: 1px solid rgba(79,110,245,0.14);
    color: var(--ndt-color-primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ndt-archive-intro-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.03em;
}
.ndt-archive-intro-description {
    color: var(--ndt-color-text-muted);
    max-width: 72ch;
    font-size: 1.02rem;
    line-height: 1.85;
}
.ndt-archive-intro-description p { margin: 0; }
.ndt-archive-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}
.ndt-archive-empty-state {
    padding: 1.4rem 1.5rem;
}
.ndt-posts-grid-archive {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}
.ndt-post-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border: 1px solid rgba(221,227,245,.9);
}
.ndt-post-card-media {
    position: relative;
    min-height: 220px;
    border-radius: var(--ndt-radius-lg) var(--ndt-radius-lg) 0 0;
}
.ndt-post-card-media img {
    height: 220px;
}
.ndt-post-card-media-placeholder {
    display: flex;
    align-items: flex-end;
    padding: 1.1rem;
    text-decoration: none;
    background:
        radial-gradient(circle at top right, rgba(165,180,252,.34), transparent 28%),
        linear-gradient(135deg, var(--ndt-indigo) 0%, var(--ndt-blue) 100%);
}
.ndt-post-card-placeholder-label {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ndt-post-card .ndt-card-body {
    display: grid;
    align-content: start;
    gap: .85rem;
    padding: 1.35rem;
}
.ndt-post-card-topline,
.ndt-post-card-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.ndt-post-card-readtime,
.ndt-post-card-meta-line {
    color: var(--ndt-color-text-muted);
    font-size: .84rem;
}
.ndt-post-card .entry-title {
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 0;
}
.ndt-post-card .entry-excerpt {
    font-size: .96rem;
    line-height: 1.8;
    color: var(--ndt-color-text-muted);
}
.ndt-post-card .entry-excerpt p:last-child {
    margin-bottom: 0;
}
.ndt-post-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .2rem;
    color: var(--ndt-color-primary);
    font-weight: 700;
    text-decoration: none;
}
.ndt-post-card-link:hover {
    color: var(--ndt-color-link-hover);
}
.ndt-archive-main-docs .ndt-archive-intro,
.ndt-post-card-docs {
    border-color: rgba(79,110,245,.12);
}
.ndt-post-card-docs .entry-cat {
    background: rgba(79,110,245,.06);
}
.single-post .ndt-single-post-docs {
    gap: 1.8rem;
}
.single-post .ndt-single-post-docs .entry-content {
    max-width: min(100%, 860px);
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    border: 1px solid rgba(221,227,245,.95);
    border-radius: var(--ndt-radius-lg);
    padding: clamp(1.25rem, 2.2vw, 2rem);
    box-shadow: 0 16px 40px rgba(13,27,74,.04);
}
.single-post .ndt-single-post-docs .entry-content > h2,
.single-post .ndt-single-post-docs .entry-content > h3 {
    position: relative;
    padding-top: .35rem;
}
.single-post .ndt-single-post-docs .entry-content > h2::before,
.single-post .ndt-single-post-docs .entry-content > h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ndt-blue) 0%, var(--ndt-blue-light) 100%);
}
.single-post .ndt-single-post-docs .entry-content ul,
.single-post .ndt-single-post-docs .entry-content ol {
    padding-left: 1.2rem;
}
.single-post .ndt-single-post-docs .entry-content code {
    background: var(--ndt-color-bg-alt);
    border: 1px solid var(--ndt-color-border);
    border-radius: 8px;
    padding: .12rem .4rem;
    font-size: .92em;
}
.single-post .ndt-single-post-docs .entry-content pre {
    border-radius: 18px;
    border: 1px solid var(--ndt-color-border);
    background: #0e1f52;
    color: #fff;
    padding: 1rem 1.1rem;
    overflow: auto;
}
.single-post .ndt-single-post-docs .entry-footer {
    margin-top: -.4rem;
}
@media (max-width: 900px) {
    .ndt-archive-intro-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
    .ndt-post-card-media,
    .ndt-post-card-media img {
        min-height: 200px;
        height: 200px;
    }
}
@media (max-width: 640px) {
    .ndt-post-card .ndt-card-body {
        padding: 1.1rem;
    }
    .single-post .ndt-single-post-docs .entry-content {
        padding: 1rem;
        border-radius: 16px;
    }
}


/* ── v1.2.0 listing hub / search / docs refinement ───────────────── */
.ndt-listing-main .content-area {
    display: grid;
    gap: 1.4rem;
}
.ndt-listing-intro {
    position: relative;
    overflow: hidden;
}
.ndt-listing-intro::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165,180,252,.28) 0%, rgba(165,180,252,0) 70%);
    pointer-events: none;
}
.ndt-listing-intro .search-form,
.ndt-search-empty-state .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem;
    margin-top: .4rem;
    max-width: 760px;
}
.ndt-listing-intro .search-form label,
.ndt-search-empty-state .search-form label {
    margin: 0;
}
.ndt-search-field {
    width: 100%;
    min-height: 3.25rem;
    border-radius: 14px;
    border: 1px solid var(--ndt-color-border);
    background: rgba(255,255,255,.96);
    color: var(--ndt-color-text);
    padding: 0 1rem;
    box-shadow: 0 10px 28px rgba(13,27,74,.05);
}
.ndt-search-field:focus {
    outline: none;
    border-color: rgba(79,110,245,.5);
    box-shadow: 0 0 0 4px rgba(79,110,245,.12);
}
.ndt-search-submit {
    min-height: 3.25rem;
    border: 0;
    border-radius: 14px;
    padding: 0 1.15rem;
    background: linear-gradient(135deg, var(--ndt-blue) 0%, var(--ndt-indigo) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(79,110,245,.2);
}
.ndt-posts-grid-index,
.ndt-search-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
}
.blog .ndt-post-card,
.search .ndt-post-card,
.archive .ndt-post-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.blog .ndt-post-card:hover,
.search .ndt-post-card:hover,
.archive .ndt-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(13,27,74,.1);
    border-color: rgba(79,110,245,.18);
}
.ndt-search-empty-state {
    display: grid;
    gap: 1rem;
    padding: clamp(1.3rem, 2.5vw, 2rem);
}
.ndt-search-empty-state h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}
.ndt-search-empty-state p {
    margin: 0;
    color: var(--ndt-color-text-muted);
}
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin-top: .35rem;
}
.navigation.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    padding: .65rem;
    border: 1px solid var(--ndt-color-border);
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(13,27,74,.05);
}
.navigation.pagination .page-numbers {
    min-width: 2.25rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 .75rem;
    color: var(--ndt-color-text);
    text-decoration: none;
    font-weight: 700;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
    background: var(--ndt-ice);
    color: var(--ndt-color-primary);
}
@media (max-width: 680px) {
    .ndt-listing-intro .search-form,
    .ndt-search-empty-state .search-form {
        grid-template-columns: 1fr;
    }
    .navigation.pagination .nav-links {
        border-radius: 18px;
        justify-content: center;
    }
}


/* ── v1.2.1 docs / support hub refinements ────────────────── */
.ndt-docs-hub-panel {
    display: grid;
    gap: 1rem;
    padding: clamp(1.35rem, 2.2vw, 1.85rem);
    background:
        radial-gradient(circle at top right, rgba(79,110,245,0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.ndt-docs-hub-panel-single {
    margin-top: .2rem;
}
.ndt-docs-hub-panel-head {
    display: grid;
    gap: .7rem;
}
.ndt-docs-hub-panel-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -.02em;
}
.ndt-docs-hub-panel-intro {
    margin: 0;
    color: var(--ndt-color-text-muted);
    line-height: 1.8;
    max-width: 72ch;
}
.ndt-docs-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1rem;
}
.ndt-docs-hub-card {
    display: grid;
    gap: .55rem;
    align-content: start;
    padding: 1.1rem 1rem;
    min-height: 100%;
    border-radius: calc(var(--ndt-radius-lg) - 4px);
    border: 1px solid rgba(221,227,245,.92);
    background: #fff;
    box-shadow: 0 8px 24px rgba(13,27,74,0.05);
    color: inherit;
    text-decoration: none;
    transition: transform var(--ndt-transition), box-shadow var(--ndt-transition), border-color var(--ndt-transition);
}
.ndt-docs-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79,110,245,.26);
    box-shadow: 0 16px 34px rgba(13,27,74,0.10);
}
.ndt-docs-hub-card-label {
    color: var(--ndt-color-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.ndt-docs-hub-card-text {
    color: var(--ndt-color-text-muted);
    font-size: .95rem;
    line-height: 1.7;
}
.ndt-docs-article-notice {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    margin: .15rem 0 0;
    padding: .85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(79,110,245,.14);
    background: rgba(79,110,245,.06);
    color: var(--ndt-color-text-muted);
    font-size: .92rem;
}
.ndt-docs-article-notice strong {
    color: var(--ndt-indigo);
}
.ndt-archive-main-docs .ndt-post-card,
.ndt-post-card-docs {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}
.ndt-archive-main-docs .ndt-post-card-link,
.ndt-post-card-docs .ndt-post-card-link {
    color: var(--ndt-indigo);
}
.ndt-archive-main-docs .ndt-archive-empty-state {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.ndt-troubleshooting-callout {
    gap: 1rem;
}
.ndt-troubleshooting-callout ul {
    margin: 0;
}
@media (max-width: 782px) {
    .ndt-docs-article-notice {
        border-radius: 18px;
        line-height: 1.6;
    }
}


/* v1.2.3 advanced docs ux */
.ndt-article-layout-docs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    align-items: start;
}
.ndt-docs-sidebar {
    position: relative;
}
.ndt-docs-sidebar-inner {
    position: sticky;
    top: calc(var(--ndt-header-height) + 1.25rem);
    display: grid;
    gap: 1rem;
}
.ndt-docs-sidebar-panel {
    padding: 1.1rem 1rem;
}
.ndt-docs-sidebar-title,
.ndt-related-docs-title {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    line-height: 1.2;
}
.ndt-docs-toc ol {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ndt-docs-toc li {
    margin: 0;
    padding: 0;
}
.ndt-docs-toc a,
.ndt-docs-topic-pill {
    display: block;
    border: 1px solid var(--ndt-color-border);
    border-radius: 999px;
    background: var(--ndt-color-bg-alt);
    color: var(--ndt-indigo);
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    line-height: 1.35;
    transition: transform var(--ndt-transition), box-shadow var(--ndt-transition), border-color var(--ndt-transition), background var(--ndt-transition);
}
.ndt-docs-toc a:hover,
.ndt-docs-topic-pill:hover {
    border-color: var(--ndt-color-primary);
    background: #fff;
    box-shadow: var(--ndt-shadow-sm);
    transform: translateY(-1px);
}
.ndt-docs-toc-level-3 a {
    margin-left: 1rem;
    font-size: 0.84rem;
}
.ndt-docs-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.ndt-docs-topic-filters {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
}
.ndt-docs-topic-filters .ndt-editorial-eyebrow,
.ndt-docs-sidebar-panel .ndt-editorial-eyebrow,
.ndt-related-docs .ndt-editorial-eyebrow {
    margin-bottom: 0.6rem;
}
.ndt-related-docs {
    margin-top: 1.5rem;
    padding: clamp(1.15rem, 2vw, 1.5rem);
}
.ndt-related-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.ndt-related-doc-card {
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-md);
    background: #fff;
    padding: 1rem;
}
.ndt-related-doc-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    line-height: 1.35;
}
.ndt-related-doc-card p {
    margin: 0 0 0.9rem;
    color: var(--ndt-color-text-muted);
    font-size: 0.94rem;
}
@media (max-width: 1024px) {
    .ndt-article-layout-docs {
        grid-template-columns: 1fr;
    }
    .ndt-docs-sidebar-inner {
        position: static;
    }
}
@media (max-width: 767px) {
    .ndt-related-docs-grid {
        grid-template-columns: 1fr;
    }
    .ndt-docs-topic-pills {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* v1.2.4 docs taxonomy + easy content system */
.ndt-post-tag-row-doc-products {
    margin-top: 0.75rem;
}
.ndt-post-tag-chip-product {
    background: rgba(79,110,245,0.08);
    border-color: rgba(79,110,245,0.16);
    color: var(--ndt-color-primary-dark);
}
.ndt-docs-sidebar-archive {
    min-width: 290px;
}
.ndt-docs-sidebar-archive .ndt-docs-sidebar-inner {
    position: sticky;
    top: calc(var(--ndt-header-height, 72px) + 1.5rem);
}
.ndt-docs-product-pills .ndt-docs-topic-pill {
    background: linear-gradient(180deg,#fff 0%,#f7f9ff 100%);
}
.is-style-ndt-faq-card,
.wp-block-details.is-style-ndt-faq-card,
.ndt-editorial-faq .wp-block-details {
    border: 1px solid var(--ndt-color-border);
    border-radius: var(--ndt-radius-md);
    background: #fff;
    box-shadow: var(--ndt-shadow-sm);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}
.is-style-ndt-faq-card summary,
.ndt-editorial-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ndt-color-heading);
}
ul.is-style-ndt-check-list,
.wp-block-list.is-style-ndt-check-list {
    list-style: none;
    padding-left: 0;
}
ul.is-style-ndt-check-list li,
.wp-block-list.is-style-ndt-check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
}
ul.is-style-ndt-check-list li::before,
.wp-block-list.is-style-ndt-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.02rem;
    color: var(--ndt-color-primary);
    font-weight: 800;
}
.ndt-doc-article-starter,
.ndt-release-shell {
    margin-bottom: 1.5rem;
}
.tax-ndt_doc_section .ndt-archive-intro,
.tax-ndt_doc_product .ndt-archive-intro {
    background:
        radial-gradient(circle at top right, rgba(79,110,245,0.12), transparent 30%),
        linear-gradient(180deg,#fff 0%,#f7f9ff 100%);
}
.single-post .ndt-single-post-docs .entry-header .entry-cat {
    pointer-events: none;
}
@media (max-width: 1024px) {
    .ndt-docs-sidebar-archive {
        min-width: 0;
    }
    .ndt-docs-sidebar-archive .ndt-docs-sidebar-inner {
        position: static;
    }
}


/* ── v1.2.5 docs usability + support navigation ───────────────── */
.ndt-docs-overview-panel { margin: 0 0 1.5rem; }
.ndt-docs-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.ndt-docs-overview-column h3 { margin:0 0 .75rem; font-size:1rem; }
.ndt-docs-topic-count { display:inline-flex; min-width:1.5rem; justify-content:center; margin-left:.35rem; padding:.1rem .4rem; border-radius:999px; background:rgba(79,110,245,.10); color:var(--ndt-blue); font-size:.78rem; }
.ndt-docs-context-line { margin:.2rem 0 .75rem; color:var(--ndt-color-text-muted); font-size:.92rem; }
.ndt-docs-link-list { list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.ndt-docs-link-list li { margin:0; }
.ndt-docs-link-list a { display:block; padding:.65rem .8rem; border-radius:12px; border:1px solid var(--ndt-color-border); color:var(--ndt-color-text); text-decoration:none; background:#fff; transition:all .18s ease; }
.ndt-docs-link-list a:hover { border-color:var(--ndt-blue-light); transform:translateY(-1px); box-shadow:0 8px 20px rgba(13,27,74,.06); }
.ndt-docs-link-list li.is-current a { background:linear-gradient(180deg, rgba(79,110,245,.08), rgba(79,110,245,.03)); border-color:rgba(79,110,245,.28); color:var(--ndt-indigo); font-weight:700; }
.ndt-post-doc-product-chip { background:rgba(13,27,74,.04); color:var(--ndt-indigo); border-color:rgba(13,27,74,.08); }
.ndt-product-docs-hero { position:relative; overflow:hidden; }
.ndt-product-docs-hero::after { content:""; position:absolute; inset:auto -8% -30% auto; width:240px; height:240px; border-radius:999px; background:radial-gradient(circle, rgba(79,110,245,.18), transparent 68%); pointer-events:none; }
.is-style-ndt-specs-table table, .single-post .entry-content .is-style-ndt-specs-table table { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--ndt-color-border); border-radius:16px; overflow:hidden; background:#fff; }
.is-style-ndt-specs-table th, .is-style-ndt-specs-table td { padding:.85rem 1rem; border-bottom:1px solid var(--ndt-color-border); }
.is-style-ndt-specs-table tr:last-child td { border-bottom:0; }
.is-style-ndt-specs-table th { background:var(--ndt-ice); color:var(--ndt-navy); text-align:left; }
@media (max-width: 900px) { .ndt-docs-overview-grid { grid-template-columns:1fr; } }


/* === NDT 1.2.6 docs usability layer === */
.ndt-docs-starter-panel,
.ndt-docs-starter-latest{margin-top:0}
.ndt-docs-starter-panel .ndt-docs-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ndt-docs-starter-panel .ndt-docs-overview-column h3{margin:0 0 12px;color:var(--ndt-navy)}
.ndt-docs-sidebar .ndt-editorial-eyebrow{display:block;margin-bottom:10px}
.ndt-docs-link-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ndt-docs-link-list li a{text-decoration:none;color:var(--ndt-navy);font-weight:600}
.ndt-docs-link-list li.is-current a{color:var(--ndt-blue)}
.is-style-ndt-media-panel,.wp-block-media-text.is-style-ndt-media-panel{border:1px solid var(--ndt-border);border-radius:20px;padding:18px;background:linear-gradient(180deg,#fff 0%,#f8faff 100%)}
.is-style-ndt-soft-divider,.wp-block-separator.is-style-ndt-soft-divider{border:none;height:1px;background:linear-gradient(90deg,transparent,rgba(79,110,245,.22),transparent);max-width:none}
@media (max-width: 781px){.ndt-docs-starter-panel .ndt-docs-overview-grid{grid-template-columns:1fr}}
