/*
Theme Name: Noir Frame
Theme URI: https://example.com/noir-frame
Author: Your Name
Description: A clean, readable theme with a 1300px white content column framed by black side backgrounds. Uses industry-standard typography sizes, line heights and accessible color contrast.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noir-frame
Tags: one-column, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Layout */
	--nf-max-width: 1300px;
	--nf-gutter: clamp(1rem, 4vw, 3rem);
	--nf-readable-width: 46.875rem; /* 750px, matches theme.json contentSize; rem so every element shares one column */

	/* Colors */
	--nf-side-bg: #000000;          /* side / page background */
	--nf-content-bg: #ffffff;       /* content column background */
	--nf-text: #222222;             /* body text (contrast 15.9:1 on white) */
	--nf-heading: #111111;          /* headings */
	--nf-muted: #595959;            /* meta, captions (7:1 on white, AA/AAA) */
	--nf-link: #cd1732;             /* links (5.6:1 on white, WCAG AA) */
	--nf-accent: #c8102e;           /* buttons, highlights */
	--nf-accent-hover: #9e0c24;
	--nf-border: #dddddd;
	--nf-surface: #f5f5f5;          /* code, blockquote, table stripes */
	--nf-mark: #fff3a3;
	--nf-success: #1e7b34;
	--nf-warning: #8a6100;
	--nf-error: #b00020;

	/* Typography */
	--nf-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--nf-font-heading: var(--nf-font-body);
	--nf-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	/* Type scale (16px base, ~1.25 major-third scale) */
	--nf-fs-xs: 0.75rem;    /* 12px – fine print */
	--nf-fs-sm: 0.875rem;   /* 14px – meta, captions */
	--nf-fs-base: 1rem;     /* 16px – body */
	--nf-fs-lg: 1.125rem;   /* 18px – lead text */
	--nf-fs-h6: 1rem;       /* 16px */
	--nf-fs-h5: 1.25rem;    /* 20px */
	--nf-fs-h4: 1.5rem;     /* 24px */
	--nf-fs-h3: 1.75rem;    /* 28px */
	--nf-fs-h2: 2rem;       /* 32px */
	--nf-fs-h1: 2.5rem;     /* 40px */
	--nf-fs-display: 3rem;  /* 48px – site title / hero */

	--nf-lh-body: 1.6;
	--nf-lh-heading: 1.2;

	--nf-radius: 4px;
	--nf-space: 1.5rem;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	font-size: 100%; /* 16px; respects user browser settings */
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--nf-side-bg);
	color: var(--nf-text);
	font-family: var(--nf-font-body);
	font-size: var(--nf-fs-base);
	font-weight: 400;
	line-height: var(--nf-lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* header + white column fill at least the screen height */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

img, video, iframe, embed, object { max-width: 100%; height: auto; }

/* ==========================================================================
   3. Layout – 1300px white column on black
   ========================================================================== */
.site {
	width: 100%;
	max-width: var(--nf-max-width);
	margin: 0 auto;
	flex: 1 0 auto;
	background: var(--nf-content-bg);
	display: flex;
	flex-direction: column;
}

.site-main,
.site-footer { padding-left: var(--nf-gutter); padding-right: var(--nf-gutter); }

.site-main { flex: 1; padding-top: 3rem; padding-bottom: 4rem; }

/* Comfortable line length for long-form text inside the wide column */
.entry-content > *:not(.alignwide):not(.alignfull),
.entry-header,
.entry-footer,
.comments-area,
.post-navigation,
.page-header {
	max-width: var(--nf-readable-width);
	margin-left: auto;
	margin-right: auto;
}

.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull {
	max-width: none;
	margin-left: calc(-1 * var(--nf-gutter));
	margin-right: calc(-1 * var(--nf-gutter));
}
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Archive grid uses the full 1300px width */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2.5rem;
}
.posts-grid .entry-header,
.posts-grid .entry-summary { max-width: none; }

/* ==========================================================================
   4. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--nf-font-heading);
	color: var(--nf-heading);
	line-height: var(--nf-lh-heading);
	margin: 2em 0 0.6em;
	font-weight: 700;
	letter-spacing: -0.01em;
}
h1 { font-size: var(--nf-fs-h1); margin-top: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--nf-fs-h2); }
h3 { font-size: var(--nf-fs-h3); }
h4 { font-size: var(--nf-fs-h4); font-weight: 600; }
h5 { font-size: var(--nf-fs-h5); font-weight: 600; }
h6 { font-size: var(--nf-fs-h6); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p { margin: 0 0 var(--nf-space); }
.lead, .has-lead-font-size { font-size: var(--nf-fs-lg); color: var(--nf-text); }
small, .small { font-size: var(--nf-fs-sm); }
.fine-print { font-size: var(--nf-fs-xs); color: var(--nf-muted); }

strong, b { font-weight: 700; }
em, i { font-style: italic; }
mark { background: var(--nf-mark); color: inherit; padding: 0 0.2em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; } sub { bottom: -0.25em; }
del { color: var(--nf-muted); }
ins { background: #e6f4ea; text-decoration: none; }

/* Links */
/* Links: one color (no separate visited color); underline appears on hover/focus */
a { color: var(--nf-link); text-decoration: none; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--nf-link); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--nf-link);
	outline-offset: 2px;
}

/* Lists */
ul, ol { margin: 0 0 var(--nf-space); padding-left: 1.5em; }
li { margin-bottom: 0.4em; }
li > ul, li > ol { margin: 0.4em 0 0; }
dl { margin: 0 0 var(--nf-space); }
dt { font-weight: 700; }
dd { margin: 0 0 0.75em 1.5em; }

/* Quotes */
blockquote, .wp-block-quote {
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	border-left: 4px solid var(--nf-accent);
	background: var(--nf-surface);
	font-size: var(--nf-fs-lg);
	font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite, .wp-block-quote cite {
	display: block; margin-top: 0.75rem;
	font-size: var(--nf-fs-sm); font-style: normal; color: var(--nf-muted);
}
.wp-block-pullquote { border-top: 4px solid var(--nf-heading); border-bottom: 4px solid var(--nf-heading); padding: 2rem 0; text-align: center; }
.wp-block-pullquote blockquote { background: none; border: 0; font-size: var(--nf-fs-h4); }

/* Code */
code, kbd, samp, pre { font-family: var(--nf-font-mono); font-size: 0.9375em; }
code, kbd { background: var(--nf-surface); padding: 0.15em 0.4em; border-radius: var(--nf-radius); }
kbd { border: 1px solid var(--nf-border); box-shadow: 0 1px 0 var(--nf-border); }
pre {
	background: #1e1e1e; color: #f1f1f1;
	padding: 1.25rem; border-radius: var(--nf-radius);
	overflow-x: auto; line-height: 1.5; margin: 0 0 var(--nf-space);
}
pre code { background: none; padding: 0; color: inherit; }

hr { border: 0; border-top: 1px solid var(--nf-border); margin: 3rem auto; }

/* Figures & captions */
figure { margin: 0 0 var(--nf-space); }
figcaption, .wp-caption-text, .wp-element-caption {
	font-size: var(--nf-fs-sm); color: var(--nf-muted); margin-top: 0.5rem; text-align: center;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 0 0 var(--nf-space); font-size: var(--nf-fs-sm); }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--nf-border); text-align: left; vertical-align: top; }
th { font-weight: 700; color: var(--nf-heading); border-bottom-width: 2px; }
tbody tr:nth-child(even) { background: var(--nf-surface); }
caption { font-size: var(--nf-fs-sm); color: var(--nf-muted); padding: 0.5rem 0; }

/* ==========================================================================
   5. Forms & buttons
   ========================================================================== */
label { display: block; font-weight: 600; font-size: var(--nf-fs-sm); margin-bottom: 0.35rem; color: var(--nf-heading); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select {
	width: 100%; padding: 0.625rem 0.75rem;
	font: inherit; font-size: var(--nf-fs-base); color: var(--nf-text);
	background: #fff; border: 1px solid #8c8c8c; border-radius: var(--nf-radius);
}
input:focus, textarea:focus, select:focus { border-color: var(--nf-link); }
textarea { min-height: 150px; resize: vertical; }

button, .button, input[type="submit"], input[type="button"], input[type="reset"], .wp-block-button__link {
	display: inline-block; padding: 0.75rem 1.5rem;
	font: inherit; font-size: var(--nf-fs-base); font-weight: 600; line-height: 1.2;
	color: #fff; background: var(--nf-accent);
	border: 2px solid var(--nf-accent); border-radius: var(--nf-radius);
	cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
	background: var(--nf-accent-hover); border-color: var(--nf-accent-hover); color: #fff;
}
.is-style-outline .wp-block-button__link { background: transparent; color: var(--nf-accent); }

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */
/* Full-width black header (outside .site): centered logo, menu centered beneath it */
.site-header {
	display: flex; flex-direction: column; align-items: center; gap: 1rem;
	width: 100%;
	padding: 1.5rem var(--nf-gutter) 1.25rem;
	background: var(--nf-side-bg);
	color: #fff;
	text-align: center;
}
.site-branding { width: 100%; display: flex; justify-content: center; }
.site-branding a { display: inline-block; line-height: 0; }
.site-branding a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.header_img {
	display: block;
	width: auto; height: auto;
	max-width: 100%;
	max-height: var(--nf-logo-max-height, 160px); /* change on :root to resize the logo */
}

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.main-navigation li { margin: 0; position: relative; }
.main-navigation a {
	color: var(--nf-heading); text-decoration: none;
	font-size: var(--nf-fs-base); font-weight: 600; padding: 0.5rem 0; display: block;
}
.main-navigation a:hover, .main-navigation a:focus { color: var(--nf-accent); text-decoration: underline; }
.main-navigation .current-menu-item > a { text-decoration: underline; text-underline-offset: 0.3em; }

/* Header menu: white links on the black header (dropdowns stay white with dark links) */
.site-header .main-navigation > div > ul > li > a,
.site-header .main-navigation > ul > li > a { color: #fff; }
.site-header .main-navigation > div > ul > li > a:hover,
.site-header .main-navigation > ul > li > a:hover,
.site-header .main-navigation > div > ul > li > a:focus,
.site-header .main-navigation > ul > li > a:focus { color: #fff; }
.site-header a:focus-visible { outline-color: #fff; }
.main-navigation .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; z-index: 10;
	flex-direction: column; gap: 0; min-width: 200px;
	background: #fff; border: 1px solid var(--nf-border); padding: 0.5rem 0;
}
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { display: flex; }
.main-navigation .sub-menu a { padding: 0.5rem 1rem; font-weight: 400; }

.menu-toggle { display: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: 0.75rem 1rem; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}

/* ==========================================================================
   7. Posts & pages
   ========================================================================== */
.entry-title { font-size: var(--nf-fs-h1); margin-bottom: 0.5rem; }
.posts-grid .entry-title { font-size: var(--nf-fs-h4); margin-top: 1rem; }
.entry-title a { color: var(--nf-heading); text-decoration: none; }
.entry-title a:hover { color: var(--nf-link); text-decoration: underline; }
.entry-meta, .entry-footer { font-size: var(--nf-fs-sm); color: var(--nf-muted); }
.entry-meta a, .entry-footer a { color: var(--nf-muted); }
.entry-header { margin-bottom: 2rem; }
.post-thumbnail img { display: block; width: 100%; border-radius: var(--nf-radius); }
.single .post-thumbnail { max-width: 1200px; margin: 0 auto 2.5rem; }
.sticky .entry-title::before { content: "★ "; color: var(--nf-accent); }

.page-header { margin-bottom: 3rem; }
.page-title { font-size: var(--nf-fs-h1); }
.archive-description { color: var(--nf-muted); }

.post-navigation, .pagination { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--nf-border); }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav-subtitle { display: block; font-size: var(--nf-fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--nf-muted); }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--nf-border); border-radius: var(--nf-radius); text-decoration: none; }
.pagination .page-numbers.current { background: var(--nf-heading); color: #fff; border-color: var(--nf-heading); }

/* ==========================================================================
   8. Comments
   ========================================================================== */
.comments-area { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--nf-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 2rem; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--nf-border); }
.comment-meta { font-size: var(--nf-fs-sm); color: var(--nf-muted); margin-bottom: 0.5rem; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-form p { margin-bottom: 1rem; }

/* ==========================================================================
   9. Widgets & footer
   ========================================================================== */
.site-footer {
	background: var(--nf-content-bg);
	border-top: 1px solid var(--nf-border);
	padding-top: 3rem; padding-bottom: 2rem;
	font-size: var(--nf-fs-sm); color: var(--nf-muted);
}
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.widget-title, .widget h2 { font-size: var(--nf-fs-h6); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 1rem; }
.widget ul { list-style: none; padding: 0; }
.site-info { padding-top: 1.5rem; border-top: 1px solid var(--nf-border); text-align: center; }

.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; margin: 0; }

/* Notices */
.notice { padding: 1rem 1.25rem; border-left: 4px solid; border-radius: var(--nf-radius); background: var(--nf-surface); margin-bottom: var(--nf-space); }
.notice-success { border-color: var(--nf-success); }
.notice-warning { border-color: var(--nf-warning); }
.notice-error { border-color: var(--nf-error); }

/* ==========================================================================
   9b. Homepage & homepage block patterns
   The homepage is a normal page (Settings → Reading → static homepage).
   Each section is a block pattern under "Noir Frame Homepage" in the inserter,
   so these styles are keyed to block styles/classes, not to the homepage itself.
   ========================================================================== */

/* Front page wrapper: sections sit in a 1200px band inside the 1300px column */
.home-content > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.home-content > * + * { margin-top: 3.5rem; }
.home-content > .alignfull { max-width: none; }
.home-content > h1 { font-size: var(--nf-fs-display); margin-bottom: 0; }

/* Hero gallery — Gallery block, style "Hero (click to swap)".
   Script adds a large image above the thumbnails; clicking a thumbnail swaps it in. */
.wp-block-gallery.is-style-nf-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 1rem;
	border-top: 4px solid var(--nf-heading);
	border-bottom: 4px solid var(--nf-heading);
	padding: 2rem 0;
}
.is-style-nf-hero .nf-hero__main { flex: 0 0 100%; margin: 0 0 0.5rem; }
.is-style-nf-hero .nf-hero__main img {
	display: block; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover;
	border-radius: var(--nf-radius); background: var(--nf-surface);
}
.wp-block-gallery.is-style-nf-hero.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: calc(25% - 0.75rem); max-width: 210px; flex-grow: 0;
}
.wp-block-gallery.is-style-nf-hero.has-nested-images figure.wp-block-image img {
	aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px;
}
.is-style-nf-hero.nf-hero--ready figure.wp-block-image {
	cursor: pointer; opacity: 0.6; outline: 2px solid transparent; outline-offset: 2px;
	border-radius: var(--nf-radius); transition: opacity .15s ease;
}
.is-style-nf-hero.nf-hero--ready figure.wp-block-image:hover,
.is-style-nf-hero.nf-hero--ready figure.wp-block-image:focus-visible { opacity: 1; }
.is-style-nf-hero.nf-hero--ready figure.wp-block-image.is-active { opacity: 1; outline-color: var(--nf-heading); }

/* Intro panel — Group block, style "Boxed panel" */
.wp-block-group.is-style-nf-panel {
	position: relative;
	border: 2px solid var(--nf-heading);
	padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}
.wp-block-group.is-style-nf-panel > h2:first-child { margin-top: 0; }
.wp-block-group.is-style-nf-panel > p { max-width: var(--nf-readable-width); font-size: var(--nf-fs-lg); }
.wp-block-group.is-style-nf-panel > .wp-block-buttons { margin-top: 2rem; }

/* Corner tag — Paragraph block, style "Corner tag" (the "v.01" in the panel) */
p.is-style-nf-corner-tag {
	font-family: var(--nf-font-mono); font-size: var(--nf-fs-xs) !important; color: var(--nf-muted);
	text-align: right; margin: 1rem 0 0;
}
.is-style-nf-panel > p.is-style-nf-corner-tag {
	position: absolute; right: 1rem; bottom: 0.75rem; margin: 0; max-width: none;
}

/* Join the conversation — Group block with class "nf-join" */
.nf-join > h2 { font-size: var(--nf-fs-h3); margin: 0 0 1rem; }
.nf-join .frm_forms { max-width: 800px; }

/* Content cards — Columns block, style "Cards" */
.wp-block-columns.is-style-nf-cards { gap: 2.5rem; }
.is-style-nf-cards .wp-block-image { margin: 0; }
.is-style-nf-cards .wp-block-image img {
	display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--nf-radius); background: var(--nf-surface);
}
.is-style-nf-cards h3 { font-size: var(--nf-fs-h5); margin: 1rem 0 0.4rem; }
.is-style-nf-cards h3 a { color: var(--nf-heading); }
.is-style-nf-cards h3 a:hover, .is-style-nf-cards h3 a:focus { color: var(--nf-link); }
.is-style-nf-cards p { font-size: var(--nf-fs-sm); color: var(--nf-muted); margin: 0; }

@media (max-width: 782px) {
	.wp-block-gallery.is-style-nf-hero.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 0.5rem); }
}

/* Formidable Forms: layout grid for every form on the site.
   Mirrors Formidable's 12-column layout classes, so the column widths
   set in the form builder (Field settings → Layout) work even with
   Formidable's own styling turned off. */
.frm_forms fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.frm_forms .frm_fields_container {
	display: grid; grid-template-columns: repeat(12, 1fr);
	gap: 1.25rem 1rem; align-items: start;
}
.frm_forms .frm_fields_container > * { grid-column: span 12; margin: 0; }
.frm_forms .frm_fields_container > .frm_hidden,
.frm_forms .frm_fields_container > .frm_verify,
.frm_forms .frm_fields_container > input[type="hidden"] { display: none; }

.frm_forms .frm_fields_container > .frm3, .frm_forms .frm_fields_container > .frm_fourth { grid-column: span 3; }
.frm_forms .frm_fields_container > .frm4, .frm_forms .frm_fields_container > .frm_third { grid-column: span 4; }
.frm_forms .frm_fields_container > .frm6, .frm_forms .frm_fields_container > .frm_half { grid-column: span 6; }
.frm_forms .frm_fields_container > .frm8, .frm_forms .frm_fields_container > .frm_two_thirds { grid-column: span 8; }
.frm_forms .frm_fields_container > .frm9, .frm_forms .frm_fields_container > .frm_three_fourths { grid-column: span 9; }

/* Name field's First / Last sub-fields */
.frm_forms .frm_combo_inputs_container { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.frm_forms .frm_combo_inputs_container > * { margin: 0; }
.frm_forms .frm_combo_inputs_container .frm_description { margin-top: 0.25rem; }

.frm_forms .frm_primary_label { margin-bottom: 0.35rem; }
.frm_forms .frm_description { font-size: var(--nf-fs-xs); color: var(--nf-muted); margin-top: 0.25rem; }
.frm_forms textarea { min-height: 150px; }
.frm_forms .frm_submit { margin-top: 0.25rem; }

@media (max-width: 600px) {
	.frm_forms .frm_fields_container > * { grid-column: span 12 !important; }
	.frm_forms .frm_combo_inputs_container { grid-template-columns: 1fr; }
}

/* Formidable Forms: theme styling for every form on the site */
.frm_forms .frm_required { color: var(--nf-error); }
.frm_forms .frm_error,
.frm_forms .frm_error_style {
	color: var(--nf-error); font-size: var(--nf-fs-sm); margin-top: 0.35rem;
}
.frm_forms .frm_error_style {
	padding: 0.75rem 1rem; border-left: 4px solid var(--nf-error);
	background: var(--nf-surface); border-radius: var(--nf-radius);
}
.frm_forms .frm_blank_field input,
.frm_forms .frm_blank_field textarea,
.frm_forms .frm_blank_field select { border-color: var(--nf-error); }
.frm_message {
	padding: 1rem 1.25rem; border-left: 4px solid var(--nf-success);
	background: var(--nf-surface); border-radius: var(--nf-radius); color: var(--nf-text);
}
.frm_message p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Responsive type & nav
   ========================================================================== */
@media (max-width: 782px) {
	:root {
		--nf-fs-h1: 2rem;      /* 32px */
		--nf-fs-h2: 1.75rem;   /* 28px */
		--nf-fs-h3: 1.5rem;    /* 24px */
		--nf-fs-h4: 1.25rem;   /* 20px */
		--nf-fs-h5: 1.125rem;  /* 18px */
		--nf-fs-display: 2.25rem;
	}
	.menu-toggle { display: inline-block; padding: 0.5rem 1rem; }
	.main-navigation { width: 100%; }
	.main-navigation ul.menu { display: none; flex-direction: column; align-items: center; }
	.main-navigation.toggled ul.menu { display: flex; }
	.main-navigation .sub-menu { position: static; display: flex; border: 0; padding-left: 1rem; }
	.site-header .main-navigation .sub-menu { background: transparent; align-items: center; padding: 0; }
	.site-header .main-navigation .sub-menu a { color: #d9d9d9; }
	.alignleft, .alignright { float: none; margin: 0 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

@media print {
	body, .site { background: #fff; }
	.site-header nav, .site-footer, .comments-area, .post-navigation { display: none; }
	a { color: #000; }
}
