/* Nido design system: inner pages (2026-11-13, Josh: "form fields and fonts on other pages like
   showroom and journal don't match the new theme").
   Loaded only on body.nd-inner (inc/nido-ds-pages.php): every page that is not a design template
   (home, product, collection) and not Tile Match. It does not rebuild those pages; it moves their
   type to Jost and their form controls and buttons to the tokens used on Tile Match.
   Specificity: style.css and the page templates' inline <style> blocks set Inter / Montserrat with
   !important. The :not(#nd-… *) guard keeps the new nav, menu sheet and footer out of scope and its
   ID weight lets these rules win those class selectors. */

/* ── Type ─────────────────────────────────────────────────────────────────────────────── */
body.nd-inner,
body.nd-inner :is(h1,h2,h3,h4,h5,h6,p,a,li,dt,dd,td,th,label,legend,input,select,textarea,button,blockquote,figcaption,small,strong,b,em,span,div,address,option,caption,summary,cite):not(#nd-header *, #nd-menu *, #nd-footer *):not([class*="icon"]):not([class*="fa-"]):not(.dashicons) {
	font-family: var(--font-sans) !important;
}
body.nd-inner :is(h1,h2):not(#nd-header *, #nd-menu *, #nd-footer *) {
	font-weight: 300 !important;
	letter-spacing: -0.02em !important;
}
/* No colour here: some pages (order samples, download hub) set headings white on a dark hero. */
body.nd-inner :is(h3,h4,h5,h6):not(#nd-header *, #nd-menu *, #nd-footer *) {
	font-weight: 400 !important;
	letter-spacing: -0.01em !important;
}

/* ── Form controls ────────────────────────────────────────────────────────────────────── */
/* Cart and checkout keep their own order-request styling (built and checked on 2026-11-12). */
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],input[type=url],input[type=date],input[type=number]:not(.qty),input:not([type]),select,textarea):not(#nd-header *, #nd-menu *, #nd-footer *) {
	border: 1px solid var(--hairline) !important;
	border-radius: var(--radius-button) !important;
	background-color: var(--white) !important;
	color: var(--charcoal) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-shadow: none !important;
	transition: border-color .15s;
}
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],input[type=url],input[type=date],input[type=number]:not(.qty),input:not([type]),select):not(#nd-header *, #nd-menu *, #nd-footer *) {
	height: 52px !important;
	min-height: 52px !important;
}
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],input[type=url],input[type=date],input[type=number]:not(.qty),input:not([type])):not(#nd-header *, #nd-menu *, #nd-footer *) {
	padding: 0 16px !important;
}
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) select:not(#nd-header *, #nd-menu *, #nd-footer *) {
	padding-left: 16px !important;
}
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) textarea:not(#nd-header *, #nd-menu *, #nd-footer *) {
	padding: 14px 16px !important;
	line-height: 1.5 !important;
}
body.nd-inner :is(input,textarea,select):not(#nd-header *, #nd-menu *, #nd-footer *):hover {
	border-color: #A9A294 !important;
}
body.nd-inner :is(input,textarea,select):not(#nd-header *, #nd-menu *, #nd-footer *):focus {
	border-color: var(--charcoal) !important;
	outline: 2px solid var(--olive) !important;
	outline-offset: 1px;
}
body.nd-inner :is(input,textarea):not(#nd-header *, #nd-menu *, #nd-footer *)::placeholder {
	color: #8A8781 !important;
	font-weight: 400 !important;
	opacity: 1;
}

/* Field labels: sentence case, as on Tile Match (not the old 11px uppercase). Checkbox and radio
   labels are left alone. */
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) form label:not(#nd-header *, #nd-menu *, #nd-footer *):not(:has(input[type=checkbox], input[type=radio])) {
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--charcoal) !important;
}

/* ── Buttons ──────────────────────────────────────────────────────────────────────────── */
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) :is(button[type=submit],input[type=submit],.nido-contact-btn,.wp-block-button__link,.woocommerce-button,.woocommerce-Button):not(#nd-header *, #nd-menu *, #nd-footer *):not(.search-submit) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: var(--radius-button) !important;
	background: var(--charcoal) !important;
	color: var(--white) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-shadow: none !important;
	transition: opacity .15s;
}
body.nd-inner:not(.woocommerce-cart):not(.woocommerce-checkout) :is(button[type=submit],input[type=submit],.nido-contact-btn,.wp-block-button__link,.woocommerce-button,.woocommerce-Button):not(#nd-header *, #nd-menu *, #nd-footer *):hover {
	opacity: .88;
}

/* ── Contacts (showroom) page: page-contacts.php ─────────────────────────────────────── */
body.nd-inner .nido-contact-wrap { background: var(--paper); padding-top: 120px; }
body.nd-inner p.nido-contact-eyebrow,
body.nd-inner p.nido-contact-aside__label {
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: .18em !important;
	color: var(--olive-deep) !important;
}
body.nd-inner p.nido-contact-subheading { font-size: 17px !important; color: var(--graphite) !important; }
body.nd-inner .nido-contact-aside__value,
body.nd-inner .nido-contact-aside__value a { font-size: 16px !important; color: var(--charcoal) !important; }
/* The submit button was 10px narrower than the fields above it. */
body.nd-inner .nido-contact-row--submit .nido-contact-btn { width: 100%; }
body.nd-inner .nido-contact-row--two { gap: 16px; }
body.nd-inner .nido-contact-row { margin-bottom: 20px; }
body.nd-inner .nido-contact-select-arrow { right: 16px; }

/* ── Journal (blog archive) + single posts ───────────────────────────────────────────── */
body.nd-inner.blog .pxl-content-wrap,
body.nd-inner.archive .pxl-content-wrap,
body.nd-inner.single-post .pxl-content-wrap { padding-top: 120px; padding-bottom: 120px; }
body.nd-inner .nido-journal-title { font-size: clamp(40px, 5vw, 64px) !important; line-height: 1.05 !important; margin-bottom: 48px !important; }
body.nd-inner .pxl-item--archive { padding: 32px 0; border-top: 1px solid var(--hairline); }
body.nd-inner .pxl-item--archive .item--meta,
body.nd-inner .pxl-item--archive .item--meta a,
body.nd-inner .pxl-item--archive .item--meta li {
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: .18em !important;
	text-transform: uppercase;
	color: var(--olive-deep) !important;
}
body.nd-inner .pxl-item--archive .item--title,
body.nd-inner .pxl-item--archive .item--title a {
	font-size: clamp(24px, 2.4vw, 32px) !important;
	font-weight: 300 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	color: var(--charcoal) !important;
}
body.nd-inner .pxl-item--archive .item--excerpt { font-size: 17px !important; line-height: 1.6 !important; color: var(--graphite) !important; }
/* "Read more": the theme's line-and-circle icon becomes the text link with arrow used on Tile Match. */
body.nd-inner a.pxl-btn-line { display: inline-flex !important; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--charcoal); }
body.nd-inner a.pxl-btn-line .btn-text { font-size: 16px !important; font-weight: 400 !important; letter-spacing: normal !important; text-transform: none !important; color: var(--charcoal) !important; }
body.nd-inner a.pxl-btn-line .btn-icon { display: none !important; }
body.nd-inner a.pxl-btn-line::after { content: "→"; font-family: var(--font-sans); color: var(--charcoal); transition: transform .15s; }
body.nd-inner a.pxl-btn-line:hover::after { transform: translateX(3px); }
body.nd-inner.single-post .pxl-item--post > h1.pxl-item--title { line-height: 1.15 !important; margin-bottom: 24px !important; }
body.nd-inner.single-post .pxl-item--post :is(p,li) { font-size: 17px !important; line-height: 1.7 !important; color: var(--graphite) !important; }
body.nd-inner a.pxl-btn-line .btn-text { margin: 0 !important; padding: 0 !important; }
body.nd-inner :is(input,textarea):not(#nd-header *, #nd-menu *, #nd-footer *)::placeholder { text-transform: none !important; letter-spacing: normal !important; }
/* Checkbox / radio labels ("Remember me", terms): sentence case, regular weight. */
body.nd-inner form label:not(#nd-header *, #nd-menu *, #nd-footer *):has(input[type=checkbox], input[type=radio]) {
	display: inline-flex !important; align-items: center; gap: 8px;
	font-size: 15px !important; font-weight: 400 !important; letter-spacing: normal !important; text-transform: none !important; color: var(--charcoal) !important;
}
body.nd-inner form label:has(input[type=checkbox], input[type=radio]) :is(span, strong) { font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit !important; text-transform: none !important; }
body.nd-inner input[type=checkbox]:not(#nd-header *, #nd-menu *, #nd-footer *) { width: 18px; height: 18px; accent-color: var(--charcoal); }
/* "Remember me" keeps its own row above the Log in button. */
body.nd-inner form label.woocommerce-form-login__rememberme { display: flex !important; margin: 4px 0 16px; }
body.nd-inner form.woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 12px; }

/* ── Keyboard focus + link hover (13 Nov, filters-hover-fix) ─────────────────────────────
   The parent theme drops the outline on links and buttons, so Tab showed nothing on these pages.
   Charcoal ring with a white gap: visible on the paper background and on the dark heroes
   (/order-samples/, /download-hub/). Mouse clicks don't trigger :focus-visible. */
body.nd-inner :is(a, button, input[type=submit], input[type=button], [role=button], summary):not(#nd-header *, #nd-menu *, #nd-footer *):focus-visible {
	outline: 2px solid var(--charcoal) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px var(--white) !important;
}
/* style.css turns every link light olive (#a6a182, 2.4:1 on paper) on hover. Links in running copy take
   their paragraph's colour (charcoal on paper, white on the dark heroes) and an underline instead. */
body.nd-inner :is(.pxl-entry-content, .pxl-item--post, .nido-contact-aside, .nido-account-wrap, .woocommerce-privacy-policy-text, .nos-wrap) :is(p, li, td, dd, span) > a:not(.button, .btn, .elementor-button, [class*=btn]):hover { color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; }
body.nd-inner a.pxl-btn-line:hover, body.nd-inner a.pxl-btn-line:hover .btn-text { color: var(--charcoal) !important; }

/* ── Old uppercase buttons → design-system buttons (live QA, 13 Nov) ──────────────────────────
   404 (404.php), Shortlist (Elementor buttons), empty cart ("Return to shop"), journal share links,
   sidebar search. Charcoal = primary, outline = secondary; sentence case, Jost 400, 10px radius. */
body.nd-inner a.nido-404-btn,
body.nd-inner .elementor-button:not(#nd-header *, #nd-menu *, #nd-footer *),
body.woocommerce-cart a.button.wc-backward {
	display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px !important;
	border: 1px solid var(--charcoal) !important; border-radius: var(--radius-button) !important;
	background: var(--charcoal) !important; color: var(--white) !important;
	font-family: var(--font-sans) !important; font-size: 16px !important; font-weight: 400 !important;
	letter-spacing: normal !important; text-transform: none !important; text-decoration: none !important; box-shadow: none !important;
	transition: opacity .15s;
}
body.nd-inner a.nido-404-btn:hover,
body.nd-inner .elementor-button:not(#nd-header *, #nd-menu *, #nd-footer *):hover,
body.woocommerce-cart a.button.wc-backward:hover { opacity: .88; color: var(--white) !important; background: var(--charcoal) !important; }
body.nd-inner a.nido-404-btn--ghost, body.nd-inner a.nido-404-btn--ghost:hover { background: transparent !important; color: var(--charcoal) !important; }
body.nd-inner .elementor-button .elementor-button-text, body.nd-inner .elementor-button .elementor-button-icon { font: inherit !important; letter-spacing: inherit !important; text-transform: none !important; color: inherit !important; }
body.nd-inner .pxl--social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.nd-inner .pxl--social .label { font-size: 15px !important; font-weight: 500 !important; letter-spacing: normal !important; text-transform: none !important; color: var(--charcoal) !important; margin-right: 4px; }
body.nd-inner .pxl--social a { display: inline-flex !important; align-items: center; min-height: 40px; padding: 0 14px !important; border: 1px solid var(--hairline) !important; border-radius: var(--radius-pill) !important; background: var(--white) !important; color: var(--charcoal) !important; font-size: 14px !important; font-weight: 400 !important; letter-spacing: normal !important; text-transform: none !important; }
body.nd-inner .pxl--social a:hover { border-color: var(--charcoal) !important; }
/* Sidebar search (author/category archives): the icon button sat outside its field at 390px. */
body.nd-inner .widget_search .searchform-wrap { position: relative; display: flex; }
body.nd-inner .widget_search .search-field { flex: 1 1 auto; min-width: 0; padding-right: 52px !important; }
body.nd-inner .widget_search .search-submit { position: absolute !important; right: 4px; top: 50%; transform: translateY(-50%); width: 40px !important; height: 40px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden; }
/* About + Shortlist headings render as h1 now (inc/nido-site-tidy.php); keep the size they had as h2 (live, 13 Nov). */
body.nd-inner .elementor-element-b65d4e8 h1.pxl-item--title { font-size: 44px !important; line-height: 44px !important; letter-spacing: -0.02em !important; }
@media (max-width: 767px) { body.nd-inner .elementor-element-b65d4e8 h1.pxl-item--title { font-size: 28px !important; } }
body.nd-inner .elementor-element-2c95b42 h1.pxl-item--title { font-size: 22px !important; line-height: 44px !important; letter-spacing: -0.02em !important; }
