/* nàdar components — plain CSS, every class prefixed nd-. Load after tokens.css.
   WordPress: enqueue tokens.css then this file; add classes in Elementor's "CSS Classes" field.
   Dark theme: set data-theme="dark" on <html> (or any wrapper). Dense tool mode: add .nd-dense. */

/* ---------- Base ---------- */
.nd, .nd-root { font-family: var(--font-sans); font-size: 17px; line-height: 28px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.nd *, .nd-root * { box-sizing: border-box; }
:where(.nd) img { max-width: 100%; display: block; }
:where(.nd) :where(h1, h2, h3, h4) { font-family: var(--font-serif); font-weight: 400; color: var(--text-heading); margin: 0; }
:where(.nd) p { margin: 0; }
:where(.nd) a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(.nd) a:hover { color: var(--text-link-hover); }
.nd :focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.nd-heading { color: var(--text-heading); }
.nd-secondary { color: var(--text-secondary); }
.nd-muted { color: var(--text-muted); }
.nd-tabular { font-variant-numeric: tabular-nums; }
.nd-overline { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.nd-rule { width: 48px; height: var(--border-emphasis); background: var(--brand-secondary); border: 0; margin: 0; }
.nd-rule--olive { background: var(--action-primary); }
.nd-stack > * + * { margin-top: var(--space-4); }
.nd-stack--lg > * + * { margin-top: var(--space-6); }
.nd-row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

/* Theme-swapped artwork: put both logos in, mark them. */
.nd-show-dark { display: none !important; }
[data-theme="dark"] .nd-show-dark { display: revert !important; }
[data-theme="dark"] .nd-hide-dark { display: none !important; }

/* ---------- Layout ---------- */
.nd-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--grid-gutter); }
.nd-container--text { max-width: calc(var(--container-text) + 2 * var(--grid-gutter)); }
.nd-container--wide { max-width: var(--container-wide); }
.nd-section { padding: var(--section-y) 0; background: var(--bg); }
.nd-section--subtle { background: var(--bg-subtle); }
.nd-section--oak { background: var(--bg-oak); }
.nd-section--highlight { background: var(--bg-highlight); }
.nd-section--brand { background: var(--bg-brand); color: var(--text-on-brand); }
.nd-section--brand h1, .nd-section--brand h2, .nd-section--brand h3 { color: var(--text-on-brand); }
.nd-section--brand :focus-visible { outline-color: var(--focus-ring-on-brand); }
.nd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gutter); }
.nd-col-3 { grid-column: span 3; } .nd-col-4 { grid-column: span 4; } .nd-col-5 { grid-column: span 5; } .nd-col-6 { grid-column: span 6; } .nd-col-7 { grid-column: span 7; } .nd-col-8 { grid-column: span 8; } .nd-col-12 { grid-column: span 12; }
@media (max-width: 900px) { .nd-section { padding: var(--section-y-mobile) 0; } .nd-container { padding: 0 var(--grid-gutter-mobile); } .nd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gutter-mobile); } [class*="nd-col-"] { grid-column: span 4; } }

/* Subtle grain — use on bg-oak, bg-brand and paper bands, never over photography. */
.nd-grain { position: relative; isolation: isolate; }
.nd-grain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nd-section--brand.nd-grain::before, [data-theme="dark"] .nd-grain::before { mix-blend-mode: soft-light; opacity: .18; }

/* ---------- Icons (1.5px line, 24px grid; inline SVG uses currentColor) ---------- */
.nd-icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nd-icon--16 { width: 16px; height: 16px; } .nd-icon--24 { width: 24px; height: 24px; } .nd-icon--32 { width: 32px; height: 32px; stroke-width: 1.25; }

/* ---------- Buttons ---------- */
.nd-btn { --_h: var(--control-height); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--_h); padding: 0 var(--space-5); border-radius: var(--radius-sm); border: var(--border-hairline) solid transparent; font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: .01em; text-decoration: none !important; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; white-space: nowrap; }
.nd-btn .nd-icon { width: 16px; height: 16px; transition: transform .18s ease; }
.nd-btn:hover .nd-icon--chevron { transform: translateX(2px); }
.nd-btn--primary { background: var(--action-primary); color: var(--on-action-primary) !important; }
.nd-btn--primary:hover { background: var(--action-primary-hover); }
.nd-btn--secondary { background: transparent; color: var(--action-secondary) !important; border-color: var(--action-secondary); }
.nd-btn--secondary:hover { background: var(--action-secondary-hover-bg); }
.nd-btn--ghost { background: transparent; color: var(--action-secondary) !important; padding: 0 var(--space-3); }
.nd-btn--ghost:hover { background: var(--action-secondary-hover-bg); }
.nd-btn--cta { background: var(--action-cta); color: var(--on-action-cta) !important; }
.nd-btn--cta:hover { background: var(--action-cta-hover); }
.nd-btn--on-brand { background: transparent; color: var(--text-on-brand) !important; border-color: var(--text-on-brand); }
.nd-btn--on-brand:hover { background: rgba(255, 255, 255, .1); }
.nd-btn--on-brand:focus-visible, .nd-btn--cta:focus-visible { outline-color: var(--focus-ring-on-brand); }
.nd-btn--pill { border-radius: var(--radius-pill); }
.nd-btn--lg { --_h: 56px; padding: 0 var(--space-6); font-size: 16px; }
.nd-btn--sm, .nd-dense .nd-btn { --_h: var(--control-height-compact); padding: 0 var(--space-4); font-size: 14px; }
.nd-btn--block { width: 100%; }
.nd-btn[disabled], .nd-btn--disabled { background: var(--bg-subtle) !important; color: var(--text-disabled) !important; border-color: var(--border) !important; cursor: not-allowed; }
.nd-link { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 500; font-size: 15px; color: var(--text-link); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nd-link .nd-icon { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.nd-field { display: flex; flex-direction: column; gap: var(--space-2); }
.nd-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
.nd-label .nd-optional { font-weight: 400; color: var(--text-muted); }
.nd-input, .nd-select, .nd-textarea { width: 100%; min-height: var(--control-height); padding: 0 var(--space-4); font: 400 16px/24px var(--font-sans); color: var(--text); background: var(--surface); border: var(--border-hairline) solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease; appearance: none; }
.nd-textarea { padding: var(--space-3) var(--space-4); min-height: 120px; resize: vertical; }
.nd-select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d7563' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.nd-input::placeholder, .nd-textarea::placeholder { color: var(--text-muted); }
.nd-input:hover, .nd-select:hover, .nd-textarea:hover { border-color: var(--text-secondary); }
.nd-input:focus, .nd-select:focus, .nd-textarea:focus { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; border-color: var(--focus-ring); }
.nd-input[disabled] { background: var(--surface-sunken); color: var(--text-disabled); border-color: var(--border); }
.nd-help { font-size: 13px; line-height: 20px; color: var(--text-muted); }
.nd-field--invalid .nd-input, .nd-field--invalid .nd-select, .nd-field--invalid .nd-textarea { border-color: var(--error); background: var(--error-soft); }
.nd-field--invalid .nd-help { color: var(--error); display: flex; gap: 6px; align-items: center; }
.nd-check { display: inline-flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 24px; color: var(--text); cursor: pointer; }
.nd-check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: var(--border-hairline) solid var(--border-strong); border-radius: var(--radius-xs); background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.nd-check input[type="radio"] { border-radius: 50%; }
.nd-check input:checked { background: var(--action-primary); border-color: var(--action-primary); }
.nd-check input[type="checkbox"]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-action-primary); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.nd-check input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-action-primary); }
.nd-check input:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.nd-input-group { display: flex; align-items: stretch; }
.nd-input-group .nd-affix { display: grid; place-items: center; padding: 0 var(--space-3); background: var(--surface-sunken); border: var(--border-hairline) solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--text-muted); font-size: 14px; }
.nd-input-group .nd-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.nd-dense .nd-input, .nd-dense .nd-select { min-height: var(--control-height-compact); font-size: 14px; padding: 0 var(--space-3); }
.nd-dense .nd-select { padding-right: 32px; background-position: right 10px center; }
.nd-dense .nd-label { font-size: 13px; line-height: 16px; }
.nd-dense .nd-field { gap: 6px; }
.nd-dense .nd-input-group .nd-affix { padding: 0 var(--space-2); font-size: 13px; }

/* ---------- Tags & chips ---------- */
.nd-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 500; background: var(--row-selected); color: var(--text-heading); white-space: nowrap; }
.nd-tag--outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-secondary); }
.nd-tag--success { background: var(--success-soft); color: var(--success); }
.nd-tag--warning { background: var(--warning-soft); color: var(--warning); }
.nd-tag--error { background: var(--error-soft); color: var(--error); }
.nd-tag--info { background: var(--info-soft); color: var(--info); }
.nd-tag__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nd-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.nd-chip:hover { border-color: var(--border-strong); color: var(--text); }
.nd-chip[aria-pressed="true"] { background: var(--action-primary); border-color: var(--action-primary); color: var(--on-action-primary); }

/* ---------- Cards ---------- */
.nd-card { background: var(--surface); border: var(--border-hairline) solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.nd-media { position: relative; overflow: hidden; background: var(--oak-200); }
.nd-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nd-ratio-4x3 { aspect-ratio: 4 / 3; } .nd-ratio-3x2 { aspect-ratio: 3 / 2; } .nd-ratio-4x5 { aspect-ratio: 4 / 5; } .nd-ratio-16x9 { aspect-ratio: 16 / 9; } .nd-ratio-1x1 { aspect-ratio: 1; } .nd-ratio-3x4 { aspect-ratio: 3 / 4; }

/* Project card: photo leads, text sits below, quiet. */
.nd-project-card { display: block; text-decoration: none !important; color: inherit !important; }
.nd-project-card .nd-media { border-radius: var(--radius-xs); }
.nd-project-card:hover .nd-media img { transform: scale(1.03); }
.nd-project-card__body { padding-top: var(--space-4); display: grid; gap: var(--space-1); }
.nd-project-card__title { font: 400 20px/28px var(--font-serif); color: var(--text-heading); }
.nd-project-card__meta { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.nd-project-card__fact { font-size: 15px; line-height: 24px; color: var(--text-secondary); }

/* Service card: image tile with title on a bottom scrim (as on the website). */
.nd-service-card { position: relative; display: block; border-radius: var(--radius-xs); overflow: hidden; color: var(--text-on-brand) !important; text-decoration: none !important; }
.nd-service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 19, 14, .72) 0%, rgba(20, 19, 14, .3) 45%, rgba(20, 19, 14, 0) 70%); }
.nd-service-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--space-5); display: grid; gap: var(--space-1); }
.nd-service-card__title { font: 400 24px/32px var(--font-serif); color: #ffffff; }
.nd-service-card__text { font-size: 15px; line-height: 22px; color: #f3f0e4; }
.nd-service-card:hover img { transform: scale(1.03); }
.nd-service-card:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }

/* Testimonial card */
.nd-testimonial { background: var(--surface); border: var(--border-hairline) solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-5); align-content: start; }
.nd-testimonial--plain { background: transparent; border: 0; padding: 0; text-align: center; justify-items: center; }
.nd-testimonial__quote { font: italic 400 20px/32px var(--font-serif); color: var(--text); margin: 0; }
.nd-testimonial__quote::before { content: "“"; } .nd-testimonial__quote::after { content: "”"; }
.nd-testimonial__by { display: grid; gap: 2px; }
.nd-testimonial__name { font: 500 15px/20px var(--font-sans); color: var(--text); }
.nd-testimonial__role { font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* Rating */
.nd-rating { display: inline-flex; gap: 2px; color: var(--brand-primary); }
[data-theme="dark"] .nd-rating { color: var(--brand-secondary); }
.nd-rating svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.nd-rating svg.nd-star--empty { fill: none; stroke: currentColor; stroke-width: 1.5; }
.nd-review-summary { display: flex; gap: var(--space-5); align-items: center; }
.nd-review-summary__score { font: 400 48px/56px var(--font-serif); color: var(--text-heading); }
.nd-review-summary__text { display: grid; gap: var(--space-1); font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* ---------- Navigation ---------- */
.nd-topstrip { background: var(--bg-brand-strong); color: var(--text-on-brand-muted); font-size: 13px; line-height: 20px; text-align: center; padding: 6px var(--space-4); }
.nd-topstrip a { color: var(--text-on-brand) !important; }
.nd-header { background: var(--bg-brand); color: var(--text-on-brand); }
.nd-header__inner { height: var(--header-height); display: flex; align-items: center; gap: var(--space-6); }
.nd-header__logo img { height: 40px; width: auto; }
.nd-header--light { background: var(--bg); border-bottom: 1px solid var(--border); color: var(--text); }
.nd-nav { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nd-nav a { color: inherit !important; text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nd-nav a:hover { border-bottom-color: currentColor; }
.nd-nav a[aria-current="page"] { border-bottom-color: var(--brand-secondary); }
.nd-header--light .nd-nav a[aria-current="page"] { border-bottom-color: var(--action-primary); }
.nd-nav .nd-icon { width: 14px; height: 14px; }
.nd-header :focus-visible { outline-color: var(--focus-ring-on-brand); }
.nd-header--light :focus-visible { outline-color: var(--focus-ring); }
.nd-menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-left: auto; cursor: pointer; }
@media (max-width: 900px) { .nd-header__inner { height: 64px; } .nd-nav, .nd-header .nd-btn { display: none; } .nd-menu-btn { display: inline-flex; } }
.nd-breadcrumb { display: flex; gap: var(--space-2); font-size: 13px; line-height: 20px; color: var(--text-muted); list-style: none; padding: 0; margin: 0; }
.nd-breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border-strong); }
.nd-breadcrumb a { color: var(--text-muted) !important; }
.nd-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--border); }
.nd-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--space-3) 0; font: 500 14px/20px var(--font-sans); color: var(--text-muted); cursor: pointer; }
.nd-tab:hover { color: var(--text); }
.nd-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--action-primary); }
.nd-footer { background: var(--bg-brand); color: var(--text-on-brand-muted); font-size: 14px; line-height: 22px; }
.nd-footer h4, .nd-footer .nd-footer__head { font: 500 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-accent-on-brand); margin: 0 0 var(--space-4); }
.nd-footer a { color: var(--text-on-brand-muted) !important; text-decoration: none; }
.nd-footer a:hover { color: var(--text-on-brand) !important; text-decoration: underline; }
.nd-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.nd-footer__base { background: var(--bg-brand-strong); padding: var(--space-4) 0; font-size: 12px; line-height: 16px; }
.nd-footer :focus-visible { outline-color: var(--focus-ring-on-brand); }

/* ---------- Hero & CTA ---------- */
.nd-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #ffffff; overflow: hidden; background: var(--stone-800); }
.nd-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 19, 14, .7) 0%, rgba(20, 19, 14, .25) 45%, rgba(20, 19, 14, 0) 75%); }
.nd-hero__content { position: relative; z-index: 1; padding-bottom: var(--space-8); display: grid; gap: var(--space-4); max-width: 720px; }
.nd-hero__title { font: 400 64px/72px var(--font-serif); letter-spacing: -.01em; color: #ffffff; margin: 0; }
.nd-hero__lead { font: 300 20px/32px var(--font-sans); color: #f3f0e4; }
@media (max-width: 900px) { .nd-hero { min-height: 480px; } .nd-hero__title { font-size: 40px; line-height: 48px; } }
.nd-cta-band { background: var(--bg-brand); color: var(--text-on-brand); padding: var(--space-8) 0; text-align: center; }
.nd-cta-band__inner { max-width: 640px; margin: 0 auto; display: grid; gap: var(--space-4); justify-items: center; padding: 0 var(--space-4); }
.nd-cta-band__title { font: 400 32px/40px var(--font-serif); color: var(--text-on-brand); margin: 0; }
.nd-cta-band__text { font-size: 17px; line-height: 28px; color: var(--text-on-brand-muted); }
.nd-cta-band__text a { color: var(--text-on-brand) !important; }
.nd-cta-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-7); }
@media (max-width: 900px) { .nd-cta-split { grid-template-columns: 1fr; } }
.nd-banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text); font-size: 15px; line-height: 24px; }
.nd-banner > .nd-icon { color: var(--info); margin-top: 2px; }
.nd-banner__title { font-weight: 500; }
.nd-banner--success { background: var(--success-soft); } .nd-banner--success > .nd-icon { color: var(--success); }
.nd-banner--warning { background: var(--warning-soft); } .nd-banner--warning > .nd-icon { color: var(--warning); }
.nd-banner--error { background: var(--error-soft); } .nd-banner--error > .nd-icon { color: var(--error); }
.nd-banner--brand { background: var(--bg-highlight); } .nd-banner--brand > .nd-icon { color: var(--text-heading); }

/* ---------- Accordion (process steps) ---------- */
.nd-accordion { border-top: 1px solid var(--border); }
.nd-accordion__item { border-bottom: 1px solid var(--border); }
.nd-accordion__btn { width: 100%; display: flex; gap: var(--space-3); align-items: center; background: none; border: 0; padding: var(--space-4) 0; text-align: left; font: 400 18px/28px var(--font-serif); color: var(--text-heading); cursor: pointer; }
.nd-accordion__num { font: 500 12px/16px var(--font-sans); letter-spacing: .14em; color: var(--text-muted); min-width: 24px; }
.nd-accordion__btn .nd-icon { margin-left: auto; transition: transform .2s ease; }
.nd-accordion__btn[aria-expanded="true"] .nd-icon { transform: rotate(180deg); }
.nd-accordion__panel { padding: 0 0 var(--space-5) 36px; color: var(--text-secondary); font-size: 16px; line-height: 26px; }
.nd-accordion__btn[aria-expanded="false"] + .nd-accordion__panel { display: none; }

/* ---------- Tables ---------- */
.nd-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; color: var(--text); }
.nd-table caption { text-align: left; font: 400 20px/28px var(--font-serif); color: var(--text-heading); padding-bottom: var(--space-3); }
.nd-table th { text-align: left; font: 500 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-strong); }
.nd-table td { padding: var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.nd-table .nd-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nd-table tfoot td { border-bottom: 0; border-top: 1px solid var(--border-strong); font-weight: 500; }
.nd-table--tool { font-size: 14px; line-height: 20px; background: var(--surface); }
.nd-table--tool th { font-size: 12px; letter-spacing: .02em; text-transform: none; background: var(--surface-sunken); padding: 10px var(--space-3); border-bottom: 1px solid var(--border); position: sticky; top: 0; color: var(--text-secondary); }
.nd-table--tool td { padding: 0 var(--space-3); height: var(--row-height); vertical-align: middle; }
.nd-table--tool tbody tr:hover { background: var(--row-hover); }
.nd-table--tool tbody tr[aria-selected="true"] { background: var(--row-selected); }
.nd-dense .nd-table--tool td { height: var(--row-height-compact); }
.nd-table__sort { display: inline-flex; gap: 4px; align-items: center; }
.nd-table__primary { font-weight: 500; color: var(--text); }
.nd-table__sub { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }

/* ---------- Internal tools ---------- */
.nd-app { display: grid; grid-template-columns: var(--tool-sidebar) 1fr; grid-template-rows: var(--tool-topbar) 1fr; min-height: 640px; background: var(--bg-subtle); font-size: 14px; line-height: 20px; color: var(--text); }
.nd-app__sidebar { grid-row: 1 / 3; background: var(--bg-brand); color: var(--text-on-brand-muted); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-5); }
.nd-app__brand { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-2) var(--space-2); color: var(--text-on-brand); font: 400 14px/20px var(--font-sans); }
.nd-app__brand img { height: 28px; width: auto; }
.nd-app__brand span { opacity: .8; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: var(--space-3); }
.nd-sidenav { display: grid; gap: 2px; }
.nd-sidenav__label { font: 500 11px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-brand-muted); opacity: .8; padding: var(--space-2) var(--space-3) var(--space-1); }
.nd-sidenav a { display: flex; align-items: center; gap: var(--space-3); height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--text-on-brand-muted) !important; text-decoration: none; font-size: 14px; }
.nd-sidenav a:hover { background: rgba(255, 255, 255, .08); color: var(--text-on-brand) !important; }
.nd-sidenav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: var(--text-on-brand) !important; box-shadow: inset 2px 0 0 var(--brand-secondary); }
.nd-sidenav .nd-count { margin-left: auto; font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.nd-app__sidebar :focus-visible { outline-color: var(--focus-ring-on-brand); }
.nd-app__topbar { display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-6); background: var(--surface); border-bottom: 1px solid var(--border); }
.nd-search { display: flex; align-items: center; gap: var(--space-2); height: 36px; width: 320px; padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); background: var(--bg-subtle); font-size: 14px; }
.nd-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--row-selected); color: var(--text-heading); display: grid; place-items: center; font: 500 12px/1 var(--font-sans); flex: none; }
.nd-app__main { padding: var(--space-6); display: grid; gap: var(--space-5); align-content: start; overflow: hidden; }
.nd-pagehead { display: flex; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.nd-pagehead__title { font: 400 24px/32px var(--font-serif); color: var(--text-heading); margin: 0; }
.nd-pagehead__actions { margin-left: auto; display: flex; gap: var(--space-2); }
.nd-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nd-panel__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); font: 500 16px/24px var(--font-sans); }
.nd-panel__body { padding: var(--space-4); }
.nd-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-4); display: grid; gap: var(--space-1); }
.nd-stat__label { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--text-muted); }
.nd-stat__value { font: 400 28px/36px var(--font-serif); color: var(--text); font-variant-numeric: tabular-nums; }
.nd-stat__delta { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.nd-stat__delta--up { color: var(--success); } .nd-stat__delta--down { color: var(--error); }
.nd-toolbar { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.nd-pagination { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); font-size: 13px; color: var(--text-muted); }
.nd-iconbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; }
.nd-iconbtn:hover { background: var(--row-hover); color: var(--text); }
.nd-bar { height: 8px; border-radius: 4px; background: var(--bg-subtle); overflow: hidden; }
.nd-bar > span { display: block; height: 100%; background: var(--data-1); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { .nd *, .nd *::before, .nd *::after { transition: none !important; } }
