/*
Theme Name: Nestilora Editorial — Kadence Child
Template: kadence
Version: 0.3.0
Description: Visual skin for the Nestilora small-space home decor magazine. Parent Kadence Theme required.
Text Domain: nestilora
*/

:root {
	--nl-ink: #263025;
	--nl-muted: #667369;
	--nl-sage: #4f6a56;
	--nl-forest: #43644d;
	--nl-cream: #f9f7f2;
	--nl-sand: #eee9df;
	--nl-border: #dfe4da;
	--nl-serif: Georgia, "Times New Roman", serif;
	--nl-wrap: 1144px;
	--global-palette1: #263025;
	--global-palette2: #43644d;
	--global-palette3: #263025;
	--global-palette4: #3a463b;
	--global-palette5: #667369;
	--global-palette8: #f9f7f2;
	--global-palette9: #fff;
}

body { background: #fff; color: var(--nl-ink); }
h1, h2, h3, h4, .site-title { font-family: var(--nl-serif); letter-spacing: -.025em; }
.entry-content p { line-height: 1.8; }
.entry-content img { border-radius: 12px; }
.entry-title { line-height: 1.13; }
.wp-block-image img { height: auto; }

/* ---------- Header ---------- */
#masthead .site-header-main-section-left .site-title,
.site-branding .site-title {
	font: 800 27px/1 var(--nl-serif);
	letter-spacing: -1px;
	color: var(--nl-ink);
}
.site-branding .site-title::before { content: "⌂ "; color: var(--nl-sage); }
.site-branding .custom-logo { height: 62px; width: auto; max-width: none; }
@media (max-width: 767px) { .site-branding .custom-logo { height: 46px; } }
#masthead { box-shadow: 0 2px 16px #2434240a; background: rgba(255, 255, 255, .97); }
.header-navigation .menu > li > a { font-size: 13px; font-weight: 650; color: var(--nl-ink); }
.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a { color: var(--nl-sage); }
.search-toggle-open { border: 1px solid var(--nl-border); border-radius: 22px; background: #fafcf9; color: var(--nl-muted); }

/* ---------- Home: shared ---------- */
.home .content-container,
.home .entry-content-wrap { padding: 0; }
.home .entry-content > * { margin-block-start: 0; }
.nl-eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 800;
	color: var(--nl-sage);
	margin: 0;
}
/* Kadence (classic theme) wraps group children in __inner-container; target it for layout. */
.entry-content .nl-section { padding: 56px 28px; margin: 0; max-width: none; }
.nl-section > .wp-block-group__inner-container { max-width: var(--nl-wrap); margin-inline: auto; }
.nl-section--alt { background: var(--nl-cream); }
.nl-section-title { margin: 0 0 24px; gap: 20px; }
.nl-section-title > .wp-block-group__inner-container { display: contents; }
.nl-section-title h2 { margin: 8px 0 3px; font: 700 34px/1.15 var(--nl-serif); letter-spacing: -.5px; }
.nl-lede { margin: 5px 0 0; color: var(--nl-muted); font-size: 14px; }
.nl-link { margin: 0; white-space: nowrap; }
.nl-link a { color: var(--nl-forest); font-size: 13px; font-weight: 750; text-decoration: none; }

/* ---------- Hero ---------- */
.wp-block-cover.nl-hero {
	min-height: 420px;
	border-radius: 0 0 23px 23px;
	overflow: hidden;
	padding: 0 7%;
	margin: 0 auto;
	max-width: 1200px;
}
.nl-hero .wp-block-cover__inner-container { width: 100%; max-width: 560px; margin: 0; color: #fff; }
.nl-hero .nl-eyebrow { color: #f1ead8; }
.nl-hero h1 { font: 700 56px/1.06 var(--nl-serif); letter-spacing: -1.5px; margin: 13px 0 16px; color: #fff; }
.nl-hero p:not(.nl-eyebrow) { max-width: 470px; color: #f2f1ed; font-size: 16px; }
.nl-hero__search { max-width: 465px; margin-top: 26px; }
.nl-hero__search .wp-block-search__inside-wrapper {
	background: #fff;
	padding: 6px;
	border: 0;
	border-radius: 10px;
	gap: 6px;
	box-shadow: 0 8px 24px #1b2a2040;
}
.nl-hero__search .wp-block-search__input { border: 0; padding: 13px; color: var(--nl-ink); background: transparent; }
.nl-hero__search .wp-block-search__button {
	background: var(--nl-forest);
	color: #fff;
	border: 0;
	border-radius: 7px;
	padding: 11px 20px;
	font-weight: 650;
	margin: 0;
}
.home .entry-hero-container-inner,
.home .site-main > .entry-hero { display: none; }
/* Cream band behind the hero, as in the preview. */
.home .entry-content { background: linear-gradient(var(--nl-cream) 0 420px, transparent 420px); }

/* ---------- Story cards (query loops) ---------- */
.nl-cards .wp-block-post-template { gap: 21px; margin: 0; padding: 0; }
.nl-cards .wp-block-post {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e7df;
	transition: transform .2s, box-shadow .2s;
	margin: 0;
}
.nl-cards .wp-block-post:hover { transform: translateY(-3px); box-shadow: 0 12px 32px #11221613; }
.nl-cards .wp-block-post-featured-image { margin: 0; }
.nl-cards .wp-block-post-featured-image img { border-radius: 0; object-fit: cover; width: 100%; }
.nl-card__body { padding: 17px 17px 19px; }
.nl-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; }
.nl-tag a { color: var(--nl-sage); text-decoration: none; }
.nl-cards .wp-block-post-title { font: 700 19px/1.22 var(--nl-serif); margin: 7px 0 8px; min-height: 46px; }
.nl-cards .wp-block-post-title a { color: var(--nl-ink); text-decoration: none; }
.nl-meta { font-size: 11px; color: var(--nl-muted); }

/* ---------- Room cards ---------- */
.nl-rooms > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.nl-room { border-radius: 13px; overflow: hidden; background: #fff; border: 1px solid var(--nl-border); }
.nl-room .wp-block-image { margin: 0; }
.nl-room .wp-block-image img { height: 112px; width: 100%; object-fit: cover; border-radius: 0; }
.nl-room h3 { font: 700 15px var(--nl-serif); text-align: center; padding: 13px 3px; margin: 0; }
.nl-room h3 a { color: var(--nl-ink); text-decoration: none; }

/* ---------- Feature ---------- */
.wp-block-media-text.nl-feature { min-height: 330px; border-radius: 17px; overflow: hidden; background: #e4e9de; }
.nl-feature .wp-block-media-text__content { padding: 42px; }
.nl-feature h2 { font: 700 35px/1.1 var(--nl-serif); margin: 13px 0; }
.nl-feature p:not(.nl-eyebrow) { color: #4b6252; font-size: 14px; }
.nl-btn .wp-block-button__link {
	background: var(--nl-forest);
	color: #fff;
	padding: 13px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 750;
}

/* ---------- Article (single post) ---------- */
.single-post .entry-content-wrap { padding-left: 0; padding-right: 0; }
.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-footer { max-width: 740px; margin-left: auto; margin-right: auto; }
.single-post .entry-content { font-size: 18px; line-height: 1.8; color: #333d34; }
.single-post .entry-content p { margin: 0 0 1.1em; }
.single-post .entry-content h2 { font: 700 30px/1.2 var(--nl-serif); margin: 48px 0 14px; scroll-margin-top: 90px; }
.single-post .entry-content h3 { font: 700 21px/1.3 var(--nl-serif); margin: 32px 0 10px; }
.single-post .entry-content ul,
.single-post .entry-content ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.single-post .entry-content li { margin-bottom: .45em; }
.single-post .entry-title { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.6px; }
.single-post .post-thumbnail img,
.single-post .article-post-thumbnail img { border-radius: 14px; }

/* Figures: photos and diagrams use the full content width. */
.single-post .entry-content figure.wp-block-image { margin: 32px 0; }
.single-post .entry-content figure.wp-block-image img { width: 100%; border-radius: 12px; }
.single-post .entry-content figcaption,
.nl-diagram figcaption { font-size: 14px; line-height: 1.55; color: var(--nl-muted); margin-top: 10px; text-align: left; }
.nl-diagram figcaption strong { color: var(--nl-ink); display: block; font: 700 16px var(--nl-serif); margin-bottom: 2px; }

.nl-takeaways,
.nl-toc { border-radius: 14px; padding: 22px 26px; margin: 28px 0; }
.nl-takeaways { background: var(--nl-cream); border-left: 5px solid var(--nl-forest); }
.nl-takeaways h2, .nl-takeaways h3 { margin-top: 0 !important; font-size: 19px !important; }
.nl-takeaways ul { margin-bottom: 0 !important; }
.nl-toc { background: #fff; border: 1px solid var(--nl-border); }
.nl-toc__title { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--nl-sage); margin-bottom: 8px !important; }
.nl-toc ol { margin: 0 !important; font-size: 16px; }
.nl-toc a { color: var(--nl-ink); text-decoration: none; }
.nl-toc a:hover { color: var(--nl-forest); text-decoration: underline; }

.nl-diagram { margin: 36px 0; padding: 22px; background: #fff; border: 1px solid var(--nl-border); border-radius: 14px; }
.nl-diagram__plans { display: grid; gap: 22px; grid-template-columns: 1fr; }
.nl-diagram--pair .nl-diagram__plans { grid-template-columns: 1fr 1fr; }
.nl-diagram svg { display: block; width: 100%; height: auto; }
.nl-diagram:not(.nl-diagram--pair) .nl-diagram__plan { max-width: 520px; margin: 0 auto; }
.nl-diagram__notes { font-size: 14px; line-height: 1.5; margin: 8px 0 0 !important; padding-left: 1.1em !important; color: #45524a; }
.nl-diagram__note { display: block; font-size: 12px; margin-top: 4px; font-style: italic; }

.nl-summary { background: var(--nl-forest); color: #fff; border-radius: 16px; padding: 26px 28px; margin: 44px 0; }
.nl-summary__title { font: 700 22px var(--nl-serif); color: #fff !important; margin: 0 0 14px !important; }
.nl-summary ol { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.nl-summary li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; font-size: 17px; line-height: 1.5; }
.nl-summary__n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--nl-forest); font-weight: 800; font-size: 14px; display: grid; place-items: center; }

.nl-sources { font-size: 15px; background: #f7f7f3; border-radius: 12px; padding: 18px 22px; margin-top: 40px; }
.nl-sources h3 { margin-top: 0 !important; font-size: 17px !important; }
.nl-disclosure { font-size: 14px; color: var(--nl-muted); border-top: 1px solid var(--nl-border); padding-top: 14px; margin-top: 24px; }
.nl-ad-label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9aa39b; margin-bottom: 6px; }

@media (max-width: 760px) {
	.single-post .entry-header,
	.single-post .entry-content { padding-left: 18px; padding-right: 18px; }
	.single-post .entry-content { font-size: 17px; line-height: 1.75; }
	.single-post .entry-content h2 { font-size: 25px; margin-top: 38px; }
	.nl-diagram { padding: 14px; }
	.nl-diagram--pair .nl-diagram__plans { grid-template-columns: 1fr; }
	.nl-summary { padding: 20px; }
}

/* ---------- Reserved ad slots (see 05_AdSense_SEO/Ad_Placement_Map_AR.md) ---------- */
/* Hidden while empty; shows automatically once an AdSense unit is pasted in. No placeholder styling. */
.nl-ad-slot:empty { display: none; }
.nl-ad-slot { min-height: 100px; margin: 0 0 48px; text-align: center; }
.nl-ad-slot[data-ad-zone="HOME-02"] { margin: 32px 0 0; }

/* ---------- Footer ---------- */
.nl-site-footer .nl-footer { background: #263226; color: #fff; padding: 54px 28px 28px; margin: 0; }
.nl-footer > .wp-block-group__inner-container { max-width: var(--nl-wrap); margin-inline: auto; }
.nl-footer p, .nl-footer a { color: #ced8cc; }
.nl-footer a { text-decoration: none; }
.nl-footer a:hover { color: #fff; }
.nl-footer h2, .nl-footer h4 { font: 700 13px system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.nl-footer__logo { font: 800 27px var(--nl-serif); letter-spacing: -1px; color: #fff !important; margin: 0 0 10px; }
.nl-footer__logo b { color: #a9c3ad; }
.nl-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.nl-footer__note { border-top: 1px solid #516454; margin-top: 40px; padding-top: 18px; color: #adbfae !important; font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.nl-cards .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.nl-rooms > .wp-block-group__inner-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
	.entry-content .nl-section { padding: 35px 17px; }
	.wp-block-cover.nl-hero { min-height: 370px !important; border-radius: 0 0 16px 16px; padding: 0 7%; }
	.nl-hero h1 { font-size: 40px; letter-spacing: -.7px; }
	.nl-hero p:not(.nl-eyebrow) { font-size: 13px; }
	.nl-hero__search .wp-block-search__input { font-size: 12px; }
	.nl-hero__search .wp-block-search__button { font-size: 12px; padding: 9px; }
	.nl-section-title h2 { font-size: 29px; }
	.nl-link a { font-size: 12px; }
	.nl-cards .wp-block-post-template { gap: 12px; }
	.home .entry-content { background: linear-gradient(var(--nl-cream) 0 370px, transparent 370px); }
	.nl-section-title h2 { font-size: 26px; }
	.nl-cards .wp-block-post-featured-image img { height: 122px !important; }
	.nl-card__body { padding: 12px; }
	.nl-cards .wp-block-post-title { font-size: 15px; min-height: 42px; }
	.nl-tag { font-size: 9px; }
	.nl-meta { font-size: 10px; }
	.nl-rooms > .wp-block-group__inner-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.nl-room .wp-block-image img { height: 94px; }
	.nl-feature .wp-block-media-text__content { padding: 23px; }
	.nl-feature h2 { font-size: 27px; }
	.wp-block-media-text.nl-feature.is-stacked-on-mobile .wp-block-media-text__media { grid-row: 1; min-height: 235px; }
	.nl-footer__grid { flex-wrap: wrap !important; }
	.nl-footer__grid > .wp-block-column:first-child { flex-basis: 100% !important; }
	.nl-footer__grid > .wp-block-column:not(:first-child) { flex-basis: calc(50% - 1em) !important; }
}

/* Diagram legend for numbered small pieces. */
.nl-diagram__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 8px 0 0 !important; color: #263025; }
.nl-diagram__legend b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #263025; color: #fff; font-size: 12px; margin-right: 4px; }

/* ---------- Article rhythm: callouts, badges, ad zones ---------- */
.nl-callout { margin: 26px 0; padding: 16px 20px; border-radius: 12px; font-size: 16px; line-height: 1.65; }
.nl-callout p { margin: 0 !important; }
.nl-callout--safety { background: #fbf1ea; border-left: 4px solid #b5653b; }
.nl-callout--renter { background: #eef3f6; border-left: 4px solid #4f7891; }
.nl-callout--tip    { background: var(--nl-cream); border-left: 4px solid var(--nl-sage); }
.nl-callout strong  { color: var(--nl-ink); }

.nl-badge { margin: 0 0 8px !important; font: 600 15px/1.3 var(--nl-serif); color: var(--nl-ink); }
.nl-badge span { display: inline-block; font: 800 11px/1 Inter, system-ui, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; margin-right: 6px; vertical-align: 2px; }
.nl-badge--before span { background: #f1e3d8; color: #8a4b2a; }
.nl-badge--after span  { background: #dfeadf; color: #2f5a3a; }
.nl-badge--option span { background: #e8ecf1; color: #3d4f63; }

/* Reserve space only once an ad unit is present (avoids layout shift without empty gaps). */
.single-post .nl-ad-slot:not(:empty) { margin: 36px 0; min-height: 280px; }
@media (min-width: 761px) { .single-post .nl-ad-slot:not(:empty) { min-height: 250px; } }

/* Section rhythm. */
.single-post .entry-content > h2 + p { margin-top: 0; }
.single-post .entry-content > ul + h2,
.single-post .entry-content > p + h2 { margin-top: 52px; }

/* ---------- Related articles ---------- */
.nl-related { max-width: 740px; margin: 48px auto 0; border-top: 1px solid var(--nl-border); padding-top: 28px; }
.nl-related__heading { font: 700 26px var(--nl-serif) !important; margin: 0 0 18px !important; }
.nl-related ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nl-related li { margin: 0 !important; }
.nl-related a { display: block; text-decoration: none; color: var(--nl-ink); border: 1px solid #e5e7df; border-radius: 12px; overflow: hidden; background: #fff; height: 100%; }
.nl-related img { width: 100%; height: 150px; object-fit: cover; display: block; }
.nl-related__cat { display: block; margin: 12px 14px 4px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 800; color: var(--nl-sage); }
.nl-related__title { display: block; margin: 0 14px 14px; font: 700 17px/1.3 var(--nl-serif); }
@media (max-width: 760px) { .nl-related { padding-left: 18px; padding-right: 18px; } .nl-related img { height: 110px; } .nl-related__title { font-size: 15px; } }

/* ---------- Category & search pages (match home cards) ---------- */
.archive .entry-hero-container-inner,
.search .entry-hero-container-inner,
.blog .entry-hero-container-inner { background: var(--nl-cream); }
.archive .entry-hero .archive-title,
.search .entry-hero .search-title,
.archive .page-title { font: 700 clamp(32px, 4vw, 46px)/1.1 var(--nl-serif); letter-spacing: -.6px; }
.archive .archive-description { max-width: 640px; margin: 10px auto 0; color: var(--nl-muted); font-size: 16px; line-height: 1.6; }
.archive .loop-entry,
.search .loop-entry,
.blog .loop-entry { border: 1px solid #e5e7df; border-radius: 14px; overflow: hidden; box-shadow: none; transition: transform .2s, box-shadow .2s; }
.archive .loop-entry:hover,
.search .loop-entry:hover,
.blog .loop-entry:hover { transform: translateY(-3px); box-shadow: 0 12px 32px #11221613; }
.loop-entry .entry-taxonomies a { color: var(--nl-sage); font-size: 11px; letter-spacing: 1.5px; font-weight: 800; }
.loop-entry .entry-title { font: 700 21px/1.25 var(--nl-serif); }
.loop-entry .entry-title a { color: var(--nl-ink); }
.loop-entry .entry-meta { font-size: 12px; color: var(--nl-muted); }
.loop-entry .more-link-wrap a { color: var(--nl-forest); }
.nl-ad-slot--grid { grid-column: 1 / -1; min-height: 250px; margin: 8px 0; }
.search-no-results .entry-content .search-form,
.search .content-wrap .search-form { max-width: 560px; }
