/* Nest in Small, redesign to the owner's homepage draft (12 Oct 2026).
   Loaded after the theme stack on every page: the draft's palette (linen, terracotta, sand, sage, dark brown),
   Bricolage Grotesque headings with DM Sans and DM Mono, the new header and footer, the home page, the layout
   library cards (after the Terracotta, Linen & Sage preview) and the tool pages. */

@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 500 800;
	font-stretch: 100%;
	font-display: swap;
	src: url(/assets/nis/fonts/bricolage-grotesque-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Palette and type ---------- */
:root {
	--global-palette1: #A84A2A;
	--global-palette2: #8C3B1F;
	--global-palette3: #2B1F1A;
	--global-palette4: #4A3A31;
	--global-palette5: #6B5A4E;
	--global-palette6: #8A7362;
	--global-palette7: #E3D6C4;
	--global-palette8: #F6EFE6;
	--global-palette9: #FBF7F1;
	--global-palette10: #E7A94B;
	--global-heading-font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
	--nis-head: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
	--nis-bg: #F6EFE6;
	--nis-accent: #A84A2A;
	--nis-accent-dark: #8C3B1F;
	--nis-ink: #2B1F1A;
	--nis-text: #4A3A31;
	--nis-body: #5C4B40;
	--nis-muted: #6B5A4E;
	--nis-line: #E3D6C4;
	--nis-rule: #D9C9B3;
	--nis-card: #FBF7F1;
	--nis-paper: #FFFDF9;
	--nis-ochre: #E7A94B;
	--nis-ochre-soft: #F4DDB0;
	--nis-ochre-ink: #5A3D12;
	--nis-sand: #F8E7DE;
	--nis-blush: #F8E7DE;
	--nis-sage: #B8C6AA;
	--nis-sage-soft: #E4EBDC;
	--nis-sage-ink: #3A5229;
	--nis-olive-bg: #E4EBDC;
	--nis-olive-ink: #3A5229;
	--nis-clay-bg: #F8D9CB;
	--nis-clay-ink: #7A2E14;
	--nis-control: #D9C9B3;
	--nis-dark: #2B1F1A;
	--nis-dark-2: #3A2B23;
	--nis-dark-line: #4A3A31;
}
body { background: var(--nis-bg); color: var(--nis-text); }
.site, .content-bg, body.content-style-unboxed .site { background: var(--nis-bg); }
h1, h2, h3, h4, .entry-title, .archive-title, .page-title { font-family: var(--nis-head); color: var(--nis-ink); }
h1, h2, .entry-title, .archive-title, .page-title { font-weight: 800; letter-spacing: -0.03em; }
h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
.entry-content h2, .entry-content h3 { line-height: 1.12; }
h1 em, h2 em, .archive-title em, .post-archive-hero-section .archive-title em { font-style: normal; color: var(--nis-accent); }
a { color: var(--nis-accent); }
a:hover { color: var(--nis-accent-dark); }
:focus-visible { outline: 2px solid var(--nis-accent); outline-offset: 2px; }
.screen-reader-text:focus { background: var(--nis-paper); color: var(--nis-ink); }

/* The draft's dark band, sand panel and chips (the theme's sage layer is set back to them). */
.nis-band--dark { background: var(--nis-dark); color: var(--nis-bg); }
.nis-band--dark h2, .nis-band--dark h3 { color: var(--nis-bg); }
.nis-band--dark p { color: #D9C9B3; }
.nis-band--dark .nis-kicker { color: var(--nis-ochre); }
.nis-step { background: transparent; border-color: var(--nis-dark-line); }
.nis-panel { background: var(--nis-ochre-soft); border: 0; }
.nis-panel p { color: #4A3520; }
.nis-panel .nis-kicker { color: var(--nis-ochre-ink); }
.nis-chip { background: var(--nis-ochre-soft); color: var(--nis-ochre-ink); }
.nis-eyebrow, .nis-kicker { color: var(--nis-accent); }
.wp-block-group.is-style-nis-rule { background: var(--nis-ochre-soft); }
.wp-block-group.is-style-nis-rule .nis-mono { color: var(--nis-ochre-ink); }
.wp-block-table.is-style-nis thead th { background: #EFE4D4; }
.wp-block-button__link, .button, .wp-element-button { border-radius: 999px; }
.post-archive-hero-section .entry-hero-container-inner { background: var(--nis-card); border-bottom-color: var(--nis-line); }
.post-archive-hero-section .archive-title { font-weight: 800; letter-spacing: -0.03em; }
.nis-sv__k--ok { background: repeating-linear-gradient(45deg, #B8C6AA 0 2px, #E4EBDC 2px 5px); }

/* ---------- Header ---------- */
.nh { position: relative; z-index: 60; background: var(--nis-bg); border-bottom: 1px solid var(--nis-line); font-family: 'DM Sans', system-ui, sans-serif; }
.nh-in { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 12px 26px; }
.nh-logo { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--nis-ink); text-decoration: none; }
.nh-logo:hover { color: var(--nis-ink); }
.nh-logo svg { color: var(--nis-accent); }
.nh-logo span { font-family: var(--nis-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.nh-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.nh-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0 18px; }
.nh-item { position: relative; display: flex; align-items: center; margin: 0; }
.nh-top { color: var(--nis-ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 0; white-space: nowrap; }
.nh-top:hover { color: var(--nis-accent); }
.nh-item.is-active > .nh-top { color: var(--nis-accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--nis-accent); }
.nh-caret { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 30px; margin: 0 0 0 1px; padding: 0; border: 0; background: none; color: var(--nis-muted); cursor: pointer; border-radius: 6px; }
.nh-caret:hover { color: var(--nis-accent); background: none; }
.nh-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.nh-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 280px; padding: 14px 10px 10px; background: var(--nis-paper); border: 1px solid var(--nis-line); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(91, 52, 26, 0.4); }
.nh-menu-k { margin: 0 10px 6px; font-family: var(--nis-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nis-accent); }
.nh-menu ul { list-style: none; margin: 0; padding: 0; }
.nh-menu li { margin: 0; }
.nh-menu a { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 12px; color: var(--nis-ink); text-decoration: none; }
.nh-menu a:hover, .nh-menu a[aria-current="page"] { background: var(--nis-card); color: var(--nis-ink); }
.nh-menu b { font-size: 15px; font-weight: 700; }
.nh-menu span { font-size: 13px; color: var(--nis-muted); }
.nh-cta { flex: none; display: inline-block; background: var(--nis-accent); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.nh-cta:hover, .nh-cta:focus-visible { background: var(--nis-accent-dark); color: #fff; }
.nh-cta-m, .nh-toggle { display: none; }
@media (min-width: 1121px) {
	.nh-item:hover > .nh-menu, .nh-item:focus-within > .nh-menu, .nh-item.is-open > .nh-menu { display: block; }
	.nh-item:hover > .nh-caret { color: var(--nis-accent); }
}
@media (max-width: 1120px) {
	.nh-in { flex-wrap: wrap; }
	.nh-logo { margin-right: auto; }
	.nh-toggle { order: 3; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--nis-rule); border-radius: 999px; background: var(--nis-paper); color: var(--nis-ink); font: 700 15px 'DM Sans', system-ui, sans-serif; cursor: pointer; }
	.nh-toggle:hover { background: var(--nis-card); color: var(--nis-ink); }
	.nh-bars, .nh-bars::before, .nh-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
	.nh-bars { position: relative; }
	.nh-bars::before, .nh-bars::after { content: ""; position: absolute; left: 0; }
	.nh-bars::before { top: -5px; } .nh-bars::after { top: 5px; }
	.nh.is-menu-open .nh-bars { background: transparent; }
	.nh.is-menu-open .nh-bars::before { top: 0; transform: rotate(45deg); }
	.nh.is-menu-open .nh-bars::after { top: 0; transform: rotate(-45deg); }
	.nh > .nh-in > .nh-cta { order: 2; }
	.nh-nav { order: 4; display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 6px 0 12px; }
	.nh.is-menu-open .nh-nav { display: flex; }
	.nh-list { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--nis-line); }
	.nh-item { flex-wrap: wrap; border-bottom: 1px solid var(--nis-line); }
	.nh-top { flex: 1 1 auto; font-family: var(--nis-head); font-size: 20px; font-weight: 700; padding: 14px 0; }
	.nh-item.is-active > .nh-top { box-shadow: none; }
	.nh-caret { width: 44px; height: 44px; }
	.nh-menu { position: static; flex: 1 1 100%; min-width: 0; padding: 0 0 10px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
	.nh-item.is-open > .nh-menu { display: block; }
	.nh-menu-k { display: none; }
	.nh-menu a { padding: 8px 10px; }
}
@media (max-width: 560px) {
	.nh-in { padding: 12px 16px; gap: 10px; }
	.nh-logo span { font-size: 20px; }
	.nh > .nh-in > .nh-cta { display: none; }
	.nh-cta-m { display: block; text-align: center; padding: 15px; }
	.nh-toggle-label { display: none; }
	.nh-toggle { width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Footer ---------- */
.nf { background: var(--nis-dark); color: #D9C9B3; font: 15px/1.6 'DM Sans', system-ui, sans-serif; }
.nf-in { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; display: flex; flex-wrap: wrap; gap: 40px 48px; }
.nf-brand { flex: 1 1 300px; min-width: 0; }
.nf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--nis-bg); text-decoration: none; }
.nf-logo:hover { color: #fff; }
.nf-logo svg { color: var(--nis-ochre); }
.nf-logo span { font-family: var(--nis-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nf-brand p { margin: 16px 0 22px; max-width: 34ch; color: #D9C9B3; }
.nf-cta { display: inline-block; background: var(--nis-ochre); color: var(--nis-dark); text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.nf-cta:hover { background: #F0BC69; color: var(--nis-dark); }
.nf-cols { flex: 2 1 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.nf-h { margin: 0 0 12px; color: var(--nis-bg); font-weight: 700; }
.nf-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nf-cols li { margin: 0; }
.nf-cols a { color: #D9C9B3; text-decoration: none; }
.nf-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nf-base { box-sizing: border-box; max-width: 1152px; margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--nis-dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: #A8968A; }
.nf-base p { margin: 0; }
@media (max-width: 1200px) { .nf-base { margin: 0 24px; } }
@media (max-width: 760px) { .nf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nf-in { padding-top: 48px; } }
@media (max-width: 560px) { .nf-base { margin: 0 16px; } .nf-in { padding-left: 16px; padding-right: 16px; } }
body.nh-locked { overflow: hidden; }
@media (min-width: 1121px) { body.nh-locked { overflow: auto; } }

/* ---------- Home page ---------- */
.hp { font-family: 'DM Sans', system-ui, sans-serif; color: var(--nis-ink); }
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp p { margin: 0; }
.hp h1, .hp h2, .hp h3 { margin: 0; color: inherit; }
.hp-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hp-k { font-family: var(--nis-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nis-accent); margin-bottom: 12px; }
.hp-h2 { font-family: var(--nis-head); font-weight: 800; font-size: clamp(32px, 4.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 20px; margin-bottom: 28px; }
.hp-more { font-weight: 700; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }

.hp-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hp-hero-text { flex: 1 1 480px; min-width: 0; }
.hp-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--nis-ochre-soft); color: var(--nis-ochre-ink); padding: 7px 14px; border-radius: 999px; font-family: var(--nis-mono); font-size: 13px; font-weight: 500; }
.hp-hero h1 { font-family: var(--nis-head); font-weight: 800; font-size: clamp(44px, 6.2vw, 68px); line-height: 1; letter-spacing: -0.035em; margin: 22px 0; color: var(--nis-ink); }
.hp-lede { font-size: 20px; line-height: 1.55; color: var(--nis-body); margin: 0 0 32px !important; max-width: 520px; }
.hp-form { background: var(--nis-card); border: 1px solid var(--nis-line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; max-width: 540px; margin: 0; }
.hp-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 120px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--nis-body); margin: 0; }
.hp-pair { display: flex; gap: 6px; }
.hp-unit { position: relative; flex: 1 1 0; min-width: 0; }
.hp-unit input { width: 100%; }
.hp-unit em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 500; color: var(--nis-muted); pointer-events: none; }
.hp .hp-form input, .hp .hp-form select { height: 48px; border: 1px solid var(--nis-rule); background: #fff; border-radius: 10px; padding: 0 26px 0 12px; font-family: var(--nis-mono); font-size: 15px; color: var(--nis-ink); margin: 0; box-shadow: none; }
.hp .hp-form select { font-family: 'DM Sans', system-ui, sans-serif; padding-right: 30px; }
.hp .hp-form input:focus, .hp .hp-form select:focus { outline: 2px solid var(--nis-accent); outline-offset: 1px; border-color: var(--nis-accent); }
.hp-also { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; border: 0; }
.hp-chipbtn { border: 1px solid var(--nis-rule); background: #fff; color: var(--nis-ink); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.2; }
.hp-chipbtn:hover { border-color: var(--nis-accent); background: #fff; color: var(--nis-ink); }
.hp-chipbtn { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.hp-chipbtn input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hp-chipbtn::before { content: "+"; font-weight: 700; }
.hp-chipbtn:has(input:checked) { border: 1.5px solid var(--nis-accent); background: var(--nis-sand); color: var(--nis-accent-dark); font-weight: 700; }
.hp-chipbtn:has(input:checked)::before { content: "✓"; }
.hp-chipbtn:has(input:focus-visible) { outline: 2px solid var(--nis-accent); outline-offset: 2px; }
.hp-also-k { font-size: 13px; font-weight: 700; color: var(--nis-body); margin-right: 4px; }
.hp-go { display: block; width: 100%; background: var(--nis-dark); color: var(--nis-bg); border: 0; text-align: center; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.hp-go:hover { background: #000; color: #fff; }
.hp-fine { font-size: 13px; color: var(--nis-muted); }
.hp-plan-wrap { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.hp-plan { width: 100%; max-width: 480px; background: var(--nis-card); border: 1px solid var(--nis-line); border-radius: 24px; padding: 28px 28px 24px; box-shadow: 0 30px 60px -30px rgba(91, 52, 26, 0.35); }
.hp-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hp-plan-k { font-family: var(--nis-mono); font-size: 12px; color: var(--nis-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.hp-plan-t { font-family: var(--nis-head); font-weight: 700; font-size: 22px; margin-top: 4px !important; }
.hp-fits { display: inline-flex; align-items: center; gap: 6px; background: var(--nis-sage-soft); color: var(--nis-sage-ink); padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.hp-dim { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--nis-mono); font-size: 12px; color: var(--nis-accent-dark); }
.hp-dim i { flex: 1; height: 1px; background: #C98E74; }
.hp-room { position: relative; width: 100%; aspect-ratio: 120 / 134; border: 4px solid var(--nis-ink); background: var(--nis-paper); }
.hp-room > * { position: absolute; }
.hp-r-win { left: -4px; top: 25%; width: 4px; height: 26%; background: var(--nis-paper); border-left: 1.5px solid var(--nis-ink); border-right: 1.5px solid var(--nis-ink); }
.hp-r-side { top: 0; width: 23.3%; height: 62.7%; background: repeating-linear-gradient(45deg, rgba(231, 169, 75, 0.32) 0 6px, transparent 6px 12px); }
.hp-r-side.l { left: 0; } .hp-r-side.r { right: 0; }
.hp-r-ns { top: 0; width: 16.6%; height: 11.9%; background: #EADFCF; border: 1.5px solid #8A7362; }
.hp-r-ns.l { left: 4%; } .hp-r-ns.r { right: 4%; }
.hp-r-bed { left: 23.3%; top: 0; width: 53.4%; height: 62.7%; background: var(--nis-sand); border: 2px solid var(--nis-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hp-r-bed i { position: absolute; left: 8%; right: 8%; top: 5%; height: 12%; border: 1.5px solid #C98E74; border-radius: 6px; }
.hp-r-bed b { font-family: var(--nis-head); font-weight: 700; font-size: 15px; color: var(--nis-accent-dark); }
.hp-r-bed small { font-family: var(--nis-mono); font-size: 11px; color: var(--nis-accent-dark); }
.hp-r-lab { top: 30%; width: 21%; text-align: center; font-family: var(--nis-mono); font-size: 12px; font-weight: 500; color: var(--nis-ochre-ink); }
.hp-r-lab.l { left: 1%; } .hp-r-lab.r { right: 1%; }
.hp-r-walk { left: 0; right: 0; top: 62.7%; height: 22.4%; background: repeating-linear-gradient(45deg, rgba(78, 106, 59, 0.16) 0 6px, transparent 6px 12px); display: flex; align-items: center; justify-content: center; }
.hp-r-walk span { background: var(--nis-paper); border: 1px solid var(--nis-sage); padding: 4px 10px; border-radius: 999px; font-family: var(--nis-mono); font-size: 12px; color: var(--nis-sage-ink); }
.hp-r-desk { left: 0; bottom: 0; width: 35%; height: 14.9%; background: #EADFCF; border: 1.5px solid #8A7362; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--nis-body); }
.hp-r-door { right: -4px; bottom: 0; width: 4px; height: 22.4%; background: var(--nis-paper); }
.hp-r-swing { right: 0; bottom: 0; width: 25%; height: 22.4%; border-top: 1.5px dashed #8A7362; border-left: 1.5px dashed #8A7362; border-top-left-radius: 100% 100%; }
.hp-r-leaf { right: 0; bottom: 0; width: 25%; height: 3px; background: var(--nis-ink); }
.hp-room-a { aspect-ratio: 120 / 144; }
.hp-a-side { top: 0; width: 23.3%; height: 58.3%; background: repeating-linear-gradient(45deg, rgba(231, 169, 75, 0.32) 0 6px, transparent 6px 12px); }
.hp-a-side.l { left: 0; } .hp-a-side.r { right: 0; }
.hp-a-bed { left: 23.3%; top: 0; width: 53.4%; height: 58.3%; background: var(--nis-sand); border: 2px solid var(--nis-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hp-a-bed i { position: absolute; left: 8%; right: 8%; top: 5%; height: 11%; border: 1.5px solid #C98E74; border-radius: 6px; }
.hp-a-bed b { font-family: var(--nis-head); font-weight: 700; font-size: 15px; color: var(--nis-accent-dark); }
.hp-a-bed small { font-family: var(--nis-mono); font-size: 11px; color: var(--nis-accent-dark); }
.hp-a-lab { top: 27%; width: 23.3%; text-align: center; font-family: var(--nis-mono); font-size: 12px; font-weight: 500; color: var(--nis-ochre-ink); }
.hp-a-lab.l { left: 0; } .hp-a-lab.r { right: 0; }
.hp-a-walk { left: 0; right: 0; top: 58.3%; height: 24.3%; background: repeating-linear-gradient(45deg, rgba(78, 106, 59, 0.16) 0 6px, transparent 6px 12px); display: flex; align-items: center; justify-content: center; }
.hp-a-walk span { background: var(--nis-paper); border: 1px solid var(--nis-sage); padding: 4px 10px; border-radius: 999px; font-family: var(--nis-mono); font-size: 12px; color: var(--nis-sage-ink); }
.hp-a-desk { left: 30%; top: 82.6%; width: 40%; height: 17.4%; background: #EADFCF; border: 1.5px solid #8A7362; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--nis-body); }
.hp-a-dresser { left: 72.5%; top: 86.8%; width: 26.7%; height: 13.2%; background: #EADFCF; border: 1.5px solid #8A7362; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--nis-body); }
.hp-a-win { right: -4px; top: 13.9%; width: 4px; height: 33.3%; background: var(--nis-paper); border-left: 1.5px solid var(--nis-ink); border-right: 1.5px solid var(--nis-ink); }
.hp-a-door { left: -4px; top: 75%; width: 4px; height: 20.8%; background: var(--nis-paper); }
.hp-a-swing { left: 0; top: 75%; width: 25%; height: 20.8%; border-right: 1.5px dashed #8A7362; border-bottom: 1.5px dashed #8A7362; border-bottom-right-radius: 100% 100%; }
.hp-a-leaf { left: 0; top: 75%; width: 25%; height: 3px; background: var(--nis-ink); }
.hp-plan-note { margin-top: 12px !important; font-size: 13px; line-height: 1.5; color: var(--nis-muted); }
.hp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--nis-body); }
.hp-legend span { display: flex; align-items: center; gap: 6px; }
.hp-legend i { width: 14px; height: 14px; }
.hp-legend .k1 { background: repeating-linear-gradient(45deg, rgba(231, 169, 75, 0.6) 0 3px, transparent 3px 6px); border: 1px solid var(--nis-ochre); }
.hp-legend .k2 { background: repeating-linear-gradient(45deg, rgba(78, 106, 59, 0.4) 0 3px, transparent 3px 6px); border: 1px solid var(--nis-sage); }
.hp-legend .k3 { height: 10px; border-top: 1.5px dashed #8A7362; border-left: 1.5px dashed #8A7362; border-top-left-radius: 14px; }

.hp-dark { background: var(--nis-dark); color: var(--nis-bg); }
.hp-dark .hp-wrap { padding-top: 72px; padding-bottom: 72px; }
.hp-dark-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.hp-dark h2 { font-family: var(--nis-head); font-weight: 800; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; max-width: 620px; color: var(--nis-bg); }
.hp-dark-head p { font-size: 17px; line-height: 1.6; color: #D9C9B3; max-width: 380px; }
.hp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hp-step { border: 1px solid var(--nis-dark-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.hp-step-k { font-family: var(--nis-mono); font-size: 13px; color: var(--nis-ochre); text-transform: uppercase; }
.hp-step h3 { font-family: var(--nis-head); font-weight: 700; font-size: 24px; color: var(--nis-bg); letter-spacing: -0.015em; }
.hp-step p { color: #D9C9B3; line-height: 1.6; }

.hp-tools { padding-top: 88px; padding-bottom: 40px; }
.hp-tools .hp-h2 { margin-bottom: 40px; }
.hp-tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.hp-tool { background: var(--nis-card); border: 1px solid var(--nis-line); color: var(--nis-ink); text-decoration: none; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.hp-tool:hover { border-color: var(--nis-accent); color: var(--nis-ink); }
.hp-tool svg { color: var(--nis-accent); }
.hp-tool h3 { font-family: var(--nis-head); font-weight: 700; font-size: 22px; }
.hp-tool p { color: var(--nis-body); line-height: 1.55; font-size: 15px; }
.hp-tool .go { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 14px; color: var(--nis-accent); }
.hp-tool.is-main { grid-row: span 2; background: var(--nis-accent); border-color: var(--nis-accent); color: #fff; padding: 32px; gap: 14px; min-height: 340px; }
.hp-tool.is-main:hover { background: var(--nis-accent-dark); color: #fff; }
.hp-tool.is-main svg { color: #fff; }
.hp-tool.is-main h3 { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1.05; margin-top: auto; }
.hp-tool.is-main p { color: #FBE6DC; }
.hp-tool.is-main .go { color: #fff; margin-top: 0; }

.hp-lib { padding-top: 64px; padding-bottom: 40px; }
.hp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-tab { background: transparent; color: var(--nis-ink); border: 1px solid var(--nis-rule); border-radius: 999px; padding: 11px 18px; font-weight: 500; font-size: 14px; cursor: pointer; line-height: 1.2; }
.hp-tab:hover { border-color: var(--nis-ink); background: transparent; color: var(--nis-ink); }
.hp-tab[aria-selected="true"] { background: var(--nis-dark); color: var(--nis-bg); border-color: var(--nis-dark); font-weight: 700; }
.hp-panel[hidden] { display: none; }
.hp-sizes { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp-sizes > span { font-size: 14px; color: var(--nis-muted); margin-right: 6px; }
.hp-sizes a.sz { font-family: var(--nis-mono); font-size: 14px; color: var(--nis-ink); text-decoration: none; border: 1px solid var(--nis-rule); border-radius: 8px; padding: 10px 12px; }
.hp-sizes a.sz:hover { border-color: var(--nis-accent); color: var(--nis-accent-dark); }
.hp-sizes a.all { font-weight: 700; font-size: 14px; padding: 10px 4px; }

.hp-rules { padding-top: 72px; padding-bottom: 72px; }
.hp-rules-in { background: var(--nis-ochre-soft); border-radius: 28px; padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hp-rules-text { flex: 1 1 360px; min-width: 0; }
.hp-rules .hp-k { color: var(--nis-ochre-ink); }
.hp-rules h2 { font-family: var(--nis-head); font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.hp-rules-text p { font-size: 17px; line-height: 1.6; color: #4A3520; margin-bottom: 26px; }
.hp-btn-dark { display: inline-block; background: var(--nis-dark); color: var(--nis-bg); text-decoration: none; padding: 14px 22px; border-radius: 999px; font-weight: 700; }
.hp-btn-dark:hover { background: #000; color: #fff; }
.hp-stats { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp-stat { background: var(--nis-card); border-radius: 16px; padding: 22px; color: var(--nis-ink); text-decoration: none; }
a.hp-stat:hover { color: var(--nis-ink); box-shadow: inset 0 0 0 1.5px var(--nis-accent); }
.hp-stat b { display: block; font-family: var(--nis-mono); font-weight: 500; font-size: 36px; line-height: 1.1; color: var(--nis-accent); }
.hp-stat span { display: block; font-size: 15px; font-weight: 700; margin-top: 6px; }

.hp-guides { padding-top: 24px; padding-bottom: 72px; }
.hp-ggrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.hp-guide { text-decoration: none; color: var(--nis-ink); display: flex; flex-direction: column; gap: 14px; }
.hp-guide:hover { color: var(--nis-ink); }
.hp-guide:hover h3 { color: var(--nis-accent-dark); }
.hp-guide-art { height: 200px; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hp-guide-art svg { width: auto; height: 150px; max-width: 90%; }
.hp-guide .hp-k { font-size: 12px; margin: 0; }
.hp-guide h3 { font-family: var(--nis-head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.hp-latest { margin-top: 44px; border-top: 1px solid var(--nis-line); padding-top: 24px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px 40px; }
.hp-latest h3 { font-family: var(--nis-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nis-accent); }
.hp-latest ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.hp-latest li { margin: 0; border-bottom: 1px solid var(--nis-line); }
.hp-latest li a { display: block; padding: 11px 0; color: var(--nis-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.hp-latest li a:hover { color: var(--nis-accent-dark); }
@media (max-width: 860px) { .hp-latest { grid-template-columns: 1fr; } .hp-latest ul { grid-template-columns: 1fr; } }

.hp-fix { background: var(--nis-accent); color: #fff; }
.hp-fix .hp-wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; justify-content: space-between; }
.hp-fix-text { flex: 1 1 480px; min-width: 0; }
.hp-fix .hp-k { color: #FBE6DC; }
.hp-fix h2 { font-family: var(--nis-head); font-weight: 800; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 16px; color: #fff; }
.hp-fix p { font-size: 18px; line-height: 1.6; color: #FBE6DC; max-width: 520px; }
.hp-btn-white { background: #fff; color: var(--nis-accent-dark); text-decoration: none; padding: 18px 28px; border-radius: 999px; font-weight: 700; font-size: 17px; }
.hp-btn-white:hover { background: var(--nis-card); color: var(--nis-ink); }
@media (max-width: 560px) {
	.hp-wrap { padding-left: 16px; padding-right: 16px; }
	.hp-hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
	.hp-lede { font-size: 18px; }
	.hp-form { padding: 18px; }
	.hp-plan { padding: 20px 18px 18px; }
	.hp-tools { padding-top: 64px; }
	.hp-tool.is-main { min-height: 0; }
	.hp-stats { gap: 10px; }
	.hp-stat { padding: 16px; }
	.hp-stat b { font-size: 28px; }
}

/* ---------- Layout cards (after the Terracotta, Linen & Sage preview's layout library) ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lib-card { display: flex; flex-direction: column; background: var(--nis-paper); border: 1px solid var(--nis-line); border-radius: 18px; overflow: hidden; color: var(--nis-ink); }
.lib-art { display: flex; align-items: center; justify-content: center; height: 200px; padding: 14px; background: var(--nis-card); border-bottom: 1px solid var(--nis-line); }
.lib-art svg { height: 172px !important; width: auto !important; max-width: 100%; display: block; }
.lib-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1 1 auto; }
.lib-tag { align-self: flex-start; background: var(--nis-sage-soft); color: var(--nis-sage-ink); border: 1px solid #D3DDC8; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.lib-card h3 { margin: 2px 0 0; font-family: var(--nis-head); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.lib-card h3 a { color: inherit; text-decoration: none; }
.lib-card h3 a::after { content: ""; position: absolute; inset: 0; }
.lib-card { position: relative; }
.lib-card:hover { border-color: var(--nis-accent); }
.lib-meta { font-family: var(--nis-mono); font-size: 12px; font-weight: 500; color: var(--nis-muted); }
.lib-desc { font-size: 14px; line-height: 1.55; color: var(--nis-body); }
.lib-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--nis-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13.5px; font-weight: 700; }
.lib-foot span { color: var(--nis-accent-dark); }
.lib-foot a { position: relative; z-index: 1; color: var(--nis-ink); text-decoration: underline; text-underline-offset: 3px; }
.lib-foot a:hover { color: var(--nis-accent-dark); }

/* ---------- Room switcher on the layout library pages ---------- */
.nis-libnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.nis-libnav li { margin: 0; }
.nis-libnav a { display: inline-block; border: 1px solid var(--nis-rule); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--nis-ink); text-decoration: none; }
.nis-libnav a:hover { border-color: var(--nis-ink); color: var(--nis-ink); }
.nis-libnav a[aria-current="page"] { background: var(--nis-dark); border-color: var(--nis-dark); color: var(--nis-bg); font-weight: 700; }

/* ---------- Tool pages built on the v2 planning tools (fit checker, storage finder) ---------- */
.nis-v2 .nis-app { --ink: #2B1F1A; --text: #4A3A31; --muted: #6B5A4E; --paper: #FBF7F1; --line: #E3D6C4; --accent: #A84A2A; --mint: #E4EBDC; --white: #FFFDF9; --red: #A64236; --sand: #F8E7DE; border-radius: 22px; }
.nis-v2 .nis-app .nis-top { display: none; }
.nis-v2 .nis-app .nis-intro, .nis-v2 .nis-app .nis-footer { display: none; }
.nis-v2 .nis-app h2, .nis-v2 .nis-app h3, .nis-v2 .nis-app h4, .nis-v2 .nis-app .nis-section-heading h3, .nis-v2 .nis-app .nis-answer h4,
.nis-v2 .nis-app .nis-stage-notes h4, .nis-v2 .nis-app .nis-empty h3, .nis-v2 .nis-app .nis-fact-strip strong, .nis-v2 .nis-app .nis-library-intro h3,
.nis-v2 .nis-app .nis-example-body h4, .nis-v2 .nis-app .nis-guide-card > h3, .nis-v2 .nis-app .nis-result-hero h3 { font-family: var(--nis-head); font-weight: 700; letter-spacing: -0.02em; }
.nis-v2 .nis-app .nis-note-num, .nis-v2 .nis-app .nis-piece-number { font-family: var(--nis-mono); }
.nis-v2 .nis-app em { font-style: normal; }
.nis-v2 .nis-app { font-family: 'DM Sans', system-ui, sans-serif; }

/* ---------- Room planner hub ---------- */
.nis-rp { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 8px 0 0; }
.nis-rp a { display: flex; flex-direction: column; gap: 10px; background: var(--nis-card); border: 1px solid var(--nis-line); border-radius: 22px; padding: 26px; color: var(--nis-ink); text-decoration: none; }
.nis-rp a:hover { border-color: var(--nis-accent); color: var(--nis-ink); }
.nis-rp a.is-main { background: var(--nis-accent); border-color: var(--nis-accent); color: #fff; }
.nis-rp a.is-main:hover { background: var(--nis-accent-dark); }
.nis-rp svg { color: var(--nis-accent); }
.nis-rp a.is-main svg { color: #fff; }
.nis-rp b { font-family: var(--nis-head); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.nis-rp span { font-size: 15px; line-height: 1.55; color: var(--nis-body); }
.nis-rp a.is-main span { color: #FBE6DC; }
.nis-rp em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 14px; color: var(--nis-accent); }
.nis-rp a.is-main em { color: #fff; }
