/*
Theme Name: Factory Child
Theme URI: https://example.com/factory-child
Description: Child theme for the Site Factory — premium magazine skin. Masthead + sticky section nav, lead-story hero (works without a photo), ruled section blocks with kicker pills, soft card grids, editorial article typography, themed calculator / affiliate / ad styling. All site data comes from factory-site.json via factory-core. Parent: GeneratePress.
Author: Site Factory
Author URI: https://example.com
Template: generatepress
Version: 2.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: factory-child
*/

/* =========================================================================
   1. TOKENS  (from the approved preview — preview/index.html)
   ========================================================================= */
:root {
	--mm-bg: #f7f5f0;          /* paper */
	--mm-paper2: #f2efe4;      /* paper, deeper */
	--mm-surface: #ffffff;
	--mm-surface2: #efece3;
	--mm-ink: #23281f;
	--mm-ink2: #5a6052;        /* moss */
	--mm-line: #ddd8c9;
	--mm-brass: #d9b45c;       /* accent rules only (low contrast on paper) */

	--mm-green: #2f5d3a;   --mm-green-soft: #e3ecdd;   /* sage */
	--mm-brick: #b5502e;   --mm-brick-soft: #f6e3da;   /* blush */
	--mm-gold: #a97c1f;    --mm-gold-soft: #f3ead2;    /* sand */
	--mm-brown: #6b4a2f;   --mm-brown-soft: #eee4d8;
	/* Text-safe variants for small type on the soft tints (WCAG AA ≥ 4.5:1). */
	--mm-brick-ink: #9c4325;
	--mm-gold-ink: #846012;

	--mm-shadow: 0 2px 14px rgba(35, 40, 31, .08);
	--mm-radius: 12px;
	--mm-serif: "Bitter", Georgia, serif;
	--mm-sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mm-wrap: 1120px;

	/* Legacy tokens (factory-core shortcode output may reference these). */
	--fc-ink: var(--mm-ink);
	--fc-muted: var(--mm-ink2);
	--fc-rule: var(--mm-line);
	--fc-bg-soft: var(--mm-surface2);
	--fc-accent: var(--mm-green);
	--fc-accent-ink: #ffffff;
	--fc-warn: var(--mm-brick-ink);
	--fc-cta: var(--mm-brick);
	--fc-cta-hover: var(--mm-brick-ink);
	--fc-radius: 8px;
	--fc-gap: 1.25rem;
}

/* Section tones: 1 brick (This-Season slot), 2 brass/gold, 3 sage/green, 4 brown — cycle in
   topic_categories order, exactly as the preview colours its four sections. */
.fc-tone-0 { --tone: var(--mm-ink2);  --tone-ink: var(--mm-ink2);      --tone-soft: var(--mm-surface2); }
.fc-tone-1 { --tone: var(--mm-brick); --tone-ink: var(--mm-brick-ink); --tone-soft: var(--mm-brick-soft); }
.fc-tone-2 { --tone: var(--mm-gold);  --tone-ink: var(--mm-gold-ink);  --tone-soft: var(--mm-gold-soft); }
.fc-tone-3,
.fc-tone-tool { --tone: var(--mm-green); --tone-ink: var(--mm-green); --tone-soft: var(--mm-green-soft); }
.fc-tone-4 { --tone: var(--mm-brown); --tone-ink: var(--mm-brown);     --tone-soft: var(--mm-brown-soft); }

/* =========================================================================
   2. BASE + GENERATEPRESS RESETS
   ========================================================================= */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.fc-mag {
	margin: 0;
	background: var(--mm-bg);
	color: var(--mm-ink);
	font-family: var(--mm-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}
.fc-mag h1, .fc-mag h2, .fc-mag h3, .fc-mag h4 { font-family: var(--mm-serif); color: var(--mm-ink); }
.fc-mag img { max-width: 100%; height: auto; }
.fc-mag a { color: var(--mm-green); }
.fc-mag a:hover, .fc-mag a:focus { color: var(--mm-ink); }
.fc-mag :focus-visible { outline: 3px solid var(--mm-green); outline-offset: 2px; border-radius: 4px; }
.fc-mag button, .fc-mag select, .fc-mag input:not([type="checkbox"]):not([type="radio"]) { min-height: 2.25rem; font-family: inherit; }

.fc-wrap { max-width: var(--mm-wrap); margin: 0 auto; padding: 0 16px; }

/* GeneratePress containers → full-bleed; our .fc-wrap does the centring. */
.fc-mag .site.grid-container,
.fc-mag .site.container { max-width: none; padding: 0; background: transparent; }
.fc-mag .site-content { display: block; padding: 0; }
.fc-mag.separate-containers .site-main,
.fc-mag .site-main { margin: 0; }
.fc-mag .content-area { width: auto; float: none; max-width: var(--mm-wrap); margin: 0 auto; padding: 26px 16px 60px; }
.fc-mag .is-right-sidebar, .fc-mag .is-left-sidebar { display: none; }

/* =========================================================================
   3. MASTHEAD + SECTION NAV
   ========================================================================= */
.fc-masthead { background: var(--mm-surface); border-bottom: 3px double var(--mm-line); }
.fc-masthead__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 14px; }
.fc-mag .fc-wordmark { display: inline-block; color: var(--mm-ink); text-decoration: none; }
.fc-wordmark__name { display: block; font-family: var(--mm-serif); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1; letter-spacing: -.01em; }
.fc-amp { color: var(--mm-brick); font-style: italic; font-weight: 500; }
.fc-wordmark__sub { display: block; font-family: var(--mm-sans); font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-ink2); margin-top: 6px; }
.fc-mast-note { max-width: 320px; margin: 0; font-size: .88rem; line-height: 1.5; color: var(--mm-ink2); }

.fc-mainnav { position: sticky; top: 0; z-index: 20; background: var(--mm-surface); border-bottom: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); }
.admin-bar .fc-mainnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .fc-mainnav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .fc-mainnav { top: 0; } }
.fc-mainnav__inner { display: flex; overflow-x: auto; padding-top: 4px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fc-mainnav__inner::-webkit-scrollbar { display: none; }
.fc-menu { display: flex; align-items: center; gap: 4px; flex: 1 0 auto; list-style: none; margin: 0; padding: 0; }
.fc-menu > li { margin: 0; flex: 0 0 auto; }
.fc-mag .fc-menu > li > a { display: block; padding: 10px 12px 9px; border-bottom: 3px solid transparent; font-weight: 600; font-size: .92rem; line-height: 1.4; color: var(--mm-ink); text-decoration: none; white-space: nowrap; }
.fc-mag .fc-menu > li > a:hover { color: var(--mm-green); }
.fc-mag .fc-menu > li.current-menu-item > a,
.fc-mag .fc-menu > li.current_page_item > a,
.fc-mag .fc-menu > li.current-menu-ancestor > a { border-bottom-color: var(--mm-brick); color: var(--mm-brick-ink); }
.fc-menu-sec > a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); margin-right: 7px; vertical-align: 1px; }

/* factory-core appends a search form to the primary menu. */
.fc-menu > li.fc-menu-search { margin-left: auto; padding-left: 12px; }
.fc-mag .fc-mainnav .fc-search-form { display: flex; gap: 4px; align-items: center; margin: 0; }
.fc-mag .fc-mainnav .fc-search-input { width: 11rem; min-height: 2.25rem; padding: 6px 12px; border: 1px solid var(--mm-line); border-radius: 999px; background: var(--mm-bg); color: var(--mm-ink); font-size: .85rem; }
.fc-mag .fc-mainnav .fc-search-submit { min-height: 2.25rem; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--mm-green); color: #fff; font-weight: 600; font-size: .82rem; cursor: pointer; }

/* =========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================= */
.fc-main { display: block; width: 100%; min-width: 0; padding: 26px 0 60px; }
.fc-grid { display: grid; gap: 18px; }
.fc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-measure { max-width: 780px; }
.fc-h2 { margin: 34px 0 12px; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.fc-meta { margin: 10px 0 0; font-size: .8rem; color: var(--mm-ink2); }
.fc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 0; }

/* Kicker pills */
.fc-kicker { display: inline-block; align-self: flex-start; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--tone-soft, var(--mm-surface2)); color: var(--tone-ink, var(--mm-ink2)); font-family: var(--mm-sans); font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }

/* Buttons + links */
.fc-mag .fc-btn { display: inline-block; padding: 11px 20px; border: 1px solid var(--mm-green); border-radius: 8px; background: var(--mm-green); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.3; text-decoration: none; }
.fc-mag .fc-btn:hover, .fc-mag .fc-btn:focus-visible { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.fc-mag .fc-btn--ghost { background: var(--mm-surface); border-color: var(--mm-line); color: var(--mm-ink); }
.fc-mag .fc-btn--ghost:hover, .fc-mag .fc-btn--ghost:focus-visible { background: var(--mm-surface); border-color: var(--mm-green); color: var(--mm-green); }
.fc-mag .fc-backbtn,
.fc-mag .fc-pill { position: relative; z-index: 2; display: inline-block; padding: 8px 16px; border: 1px solid var(--mm-line); border-radius: 999px; background: var(--mm-surface); color: var(--mm-ink); font-weight: 600; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.fc-mag .fc-backbtn:hover, .fc-mag .fc-pill:hover,
.fc-mag .fc-backbtn:focus-visible, .fc-mag .fc-pill:focus-visible { border-color: var(--mm-green); color: var(--mm-green); }
.fc-back { margin: 0 0 18px; }
.fc-readlink { font-weight: 700; font-size: .95rem; color: var(--tone-ink, var(--mm-brick-ink)); }

/* =========================================================================
   5. HOMEPAGE — LEAD STORY HERO
   ========================================================================= */
.fc-hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: 14px; overflow: hidden; box-shadow: var(--mm-shadow); transition: border-color .15s; }
.fc-hero--nophoto { grid-template-columns: 1.45fr 1fr; }
.fc-hero:hover { border-color: var(--mm-green); }
.fc-hero__img img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.fc-hero__body { padding: 30px 30px 26px; display: flex; flex-direction: column; justify-content: center; }
.fc-mag .fc-hero__title { margin: 0 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.005em; }
.fc-mag .fc-hero__title a { color: var(--mm-ink); text-decoration: none; }
.fc-hero__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fc-hero__dek { margin: 0 0 14px; color: var(--mm-ink2); font-size: 1.04rem; }
.fc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 0; }
.fc-hero__actions .fc-call-cta { margin: 0; padding: 0; background: none; border: 0; text-align: left; position: relative; z-index: 2; }
.fc-bigfact { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0 16px; padding: 14px 16px; background: var(--mm-surface2); border-radius: 10px; }
.fc-bigfact b { display: block; font-family: var(--mm-serif); font-size: 1.5rem; line-height: 1.2; color: var(--mm-brick); }
.fc-bigfact span { font-size: .75rem; color: var(--mm-ink2); }

/* The no-photo hero's right column: tagline + numbered pillars on deeper paper. */
.fc-promise { position: relative; padding: 30px 28px; background: var(--mm-paper2); border-left: 1px solid var(--mm-line); display: flex; flex-direction: column; justify-content: center; }
.fc-promise::before { content: ""; position: absolute; top: 0; left: 28px; width: 56px; height: 4px; background: var(--mm-brass); border-radius: 0 0 2px 2px; }
.fc-promise__tagline { margin: 0 0 14px; font-family: var(--mm-serif); font-style: italic; font-weight: 500; font-size: 1.32rem; line-height: 1.3; color: var(--mm-ink); }
.fc-promise__list { list-style: none; counter-reset: fc-promise; margin: 0; padding: 0; }
.fc-promise__list li { counter-increment: fc-promise; display: grid; grid-template-columns: 1.8rem 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--mm-line); font-size: .93rem; line-height: 1.45; color: var(--mm-ink2); }
.fc-promise__list li::before { content: counter(fc-promise, decimal-leading-zero); font-family: var(--mm-serif); font-weight: 700; color: var(--mm-brick-ink); }

/* Pillar strip (shown under a photo hero). */
.fc-pillars { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; }
.fc-pillars li { margin: 0; padding: 12px 14px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-left: 4px solid var(--mm-brass); border-radius: 10px; font-size: .9rem; color: var(--mm-ink2); }

/* Page content on the homepage (e.g. [site_search]). */
.fc-home-intro { margin: 22px 0 0; padding: 18px 20px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); }
.fc-home-intro > :last-child { margin-bottom: 0; }

/* =========================================================================
   6. SECTION HEADS, CARDS, RAIL, PANELS
   ========================================================================= */
.fc-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 40px 0 6px; scroll-margin-top: 84px; }
.fc-mag .fc-sec-head h2 { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.fc-sec-head p { flex: 1; min-width: 220px; margin: 0; font-size: .92rem; color: var(--mm-ink2); }
.fc-mag .fc-sec-head__more { padding: 8px 4px; font-weight: 700; font-size: .92rem; color: var(--mm-green); text-decoration: none; white-space: nowrap; }
.fc-mag .fc-sec-head__more:hover { text-decoration: underline; }
.fc-sec-rule { height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--tone, var(--mm-ink2)); }

.fc-card { position: relative; display: flex; flex-direction: column; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); overflow: hidden; box-shadow: var(--mm-shadow); transition: border-color .15s; }
.fc-card:hover, .fc-card:focus-within { border-color: var(--mm-green); }
.fc-card--noimg,
.fc-card--noimg:hover,
.fc-card--noimg:focus-within { border-top: 4px solid var(--tone, var(--mm-line)); }
.fc-card__img img { display: block; width: 100%; height: 170px; object-fit: cover; }
.fc-card__pad { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 16px 14px; }
.fc-card__pad .fc-kicker { margin: 0 0 2px; }
.fc-mag .fc-card__title { margin: 0; font-size: 1.14rem; font-weight: 700; line-height: 1.3; }
.fc-mag .fc-card__title a { color: var(--mm-ink); text-decoration: none; }
.fc-card__link::after { content: ""; position: absolute; inset: 0; }
.fc-card__link:focus-visible { outline: none; }
.fc-card:focus-within { outline: 3px solid var(--mm-green); outline-offset: 2px; }
.fc-card__dek { flex: 1; margin: 0; font-size: .92rem; line-height: 1.5; color: var(--mm-ink2); }
.fc-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; font-size: .78rem; color: var(--mm-ink2); }
.fc-card__price { font-family: var(--mm-serif); font-weight: 700; font-size: 1rem; color: var(--mm-gold-ink); }

.fc-panel { position: relative; display: block; padding: 20px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); color: var(--mm-ink); }
.fc-mag .fc-panel__title { margin: 0 0 6px; font-size: 1.17rem; font-weight: 700; line-height: 1.3; }
.fc-mag .fc-panel__sub { margin: 18px 0 6px; font-size: 1rem; }
.fc-panel > :last-child { margin-bottom: 0; }

.fc-rail__list { list-style: none; margin: 0; padding: 0; }
.fc-rail__list li { margin: 0; }
.fc-mag .fc-rail__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--mm-line); color: var(--mm-ink); text-decoration: none; }
.fc-rail__list li:last-child .fc-rail__row { border-bottom: 0; }
.fc-rail__row b { font-family: var(--mm-serif); font-weight: 700; line-height: 1.35; }
.fc-mag .fc-rail__row:hover b { color: var(--tone-ink, var(--mm-gold-ink)); }
.fc-rail__amt { font-weight: 700; color: var(--tone-ink, var(--mm-gold-ink)); white-space: nowrap; }
.fc-rail__row--more b { font-family: var(--mm-sans); font-weight: 700; color: var(--mm-green); }

.fc-disclosure,
.fc-ftc-disclosure { max-width: 760px; margin: 14px 0 0; padding: 10px 12px; background: var(--mm-brown-soft); border: 0; border-radius: 8px; font-size: .82rem; line-height: 1.5; color: var(--mm-ink2); }
.fc-disclosure p { margin: 0; }
.fc-disclosure p + p { margin-top: 6px; }

/* Editorial desk / author */
.fc-author { max-width: 760px; margin: 28px 0 0; padding: 18px 20px; background: var(--mm-surface2); border-left: 4px solid var(--mm-brass); border-radius: 10px; }
.fc-section--desk .fc-author { margin-top: 40px; }
.fc-author p { margin: 0; }
.fc-author__name { font-family: var(--mm-serif); font-weight: 700; font-size: 1.1rem; color: var(--mm-ink); }
.fc-author__title { margin-top: 2px !important; font-size: .85rem; color: var(--mm-ink2); }
.fc-author__bio { margin-top: 8px !important; font-size: .95rem; line-height: 1.55; }
.fc-mag .fc-author__more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--mm-green); text-decoration: none; }

.fc-callout { margin: 18px 0; padding: 16px 18px; background: var(--mm-surface2); border-radius: 10px; }
.fc-callout p { margin: 0; }
.fc-callout b, .fc-callout strong { font-family: var(--mm-serif); }
.fc-safety { font-size: .95rem; color: var(--mm-ink2); }

/* =========================================================================
   7. ARTICLES (theme templates + GeneratePress default page/post)
   ========================================================================= */
.fc-article { max-width: 760px; margin: 0 auto; }
.fc-article__head { margin: 0 0 6px; }
.fc-mag .fc-article__title,
.fc-mag .inside-article .entry-title { margin: 6px 0 12px; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.005em; }
.fc-lede { font-size: 1.15rem; line-height: 1.55; color: var(--mm-ink2); }
.fc-article__lead { margin: 20px 0; }
.fc-article__lead img,
.fc-mag .inside-article .featured-image img,
.fc-mag .page-header-image-single img { display: block; width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; }

/* GP default template → same measure + look */
.fc-mag.separate-containers .inside-article,
.fc-mag .inside-article { max-width: 760px; margin: 0 auto; padding: 0; background: transparent; }
.fc-mag .entry-header { margin-bottom: 8px; }
.fc-mag .entry-meta { font-size: .8rem; color: var(--mm-ink2); }
.fc-mag .site-main > .fc-wrap { padding: 0; }

/* Reading type — phone-first; body copy ≈19px (estate senior-readable order). */
.fc-prose,
.fc-mag .inside-article .entry-content { font-size: 1.125rem; line-height: 1.7; }
.fc-prose > *:first-child { margin-top: 0; }
.fc-prose p, .fc-mag .entry-content p { margin: 0 0 16px; }
.fc-prose h2, .fc-mag .entry-content h2 { margin: 32px 0 10px; font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.fc-prose h3, .fc-mag .entry-content h3 { margin: 24px 0 8px; font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
.fc-prose h4, .fc-mag .entry-content h4 { margin: 20px 0 6px; font-size: 1.02rem; }
.fc-prose ul, .fc-prose ol, .fc-mag .entry-content ul, .fc-mag .entry-content ol { margin: 0 0 16px 1.3em; padding: 0; }
.fc-prose li, .fc-mag .entry-content li { margin: 0 0 6px; }
.fc-prose a, .fc-mag .entry-content a { color: var(--mm-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.fc-prose img, .fc-mag .entry-content img { border-radius: 10px; }
.fc-prose figure, .fc-mag .entry-content figure { margin: 20px 0; }
.fc-prose figcaption, .fc-mag .entry-content figcaption { margin-top: 6px; font-size: .82rem; color: var(--mm-ink2); }
.fc-prose blockquote, .fc-mag .entry-content blockquote { margin: 18px 0; padding: 16px 18px; background: var(--mm-surface2); border: 0; border-radius: 10px; font-style: normal; font-size: 1.05rem; }
.fc-prose blockquote p:last-child, .fc-mag .entry-content blockquote p:last-child { margin: 0; }
.fc-prose hr, .fc-mag .entry-content hr { border: 0; border-top: 1px solid var(--mm-line); margin: 28px 0; }
.fc-prose table, .fc-mag .entry-content table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .95rem; line-height: 1.45; border: 0; }
.fc-prose th, .fc-prose td, .fc-mag .entry-content th, .fc-mag .entry-content td { padding: 9px 10px; border: 0; border-bottom: 1px solid var(--mm-line); text-align: left; vertical-align: top; }
.fc-prose th, .fc-mag .entry-content th { font-family: var(--mm-sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-ink2); }
.fc-prose td:last-child, .fc-prose th:last-child,
.fc-mag .entry-content td:last-child, .fc-mag .entry-content th:last-child { text-align: right; font-weight: 600; }
.fc-prose--legal { font-size: 1rem; }
.fc-prose--legal td:last-child, .fc-prose--legal th:last-child { text-align: left; font-weight: 400; }

/* Gutenberg buttons in content */
.fc-mag .wp-block-button__link { background: var(--mm-green); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; }

/* Related */
.fc-related { margin-top: 8px; }

/* =========================================================================
   8. PAGE HEADS, ABOUT, CONTACT, TOOLS
   ========================================================================= */
.fc-page-head { margin: 0 0 20px; }
.fc-mag .fc-page-head__title { margin: 6px 0 8px; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.fc-page-head__lede { max-width: 720px; margin: 0; font-size: 1.05rem; color: var(--mm-ink2); }

.fc-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; }
.fc-step { margin: 0; padding: 18px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); }
.fc-step__n { display: block; font-family: var(--mm-serif); font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--mm-brick); }
.fc-mag .fc-step__title { margin: 8px 0 0; font-size: 1.1rem; }
.fc-step__text { margin: 8px 0 0; font-family: var(--mm-serif); font-size: 1.02rem; line-height: 1.45; color: var(--mm-ink); }
.fc-step__title + .fc-step__text { font-family: var(--mm-sans); font-size: .93rem; color: var(--mm-ink2); }

.fc-mixbar { display: flex; height: 44px; margin: 4px 0 18px; border-radius: 10px; overflow: hidden; font-size: .82rem; font-weight: 700; color: #fff; }
.fc-mixbar > div { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 8px; background: var(--tone-ink); text-align: center; }
.fc-mixbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-mag a.fc-secpanel { border-top: 4px solid var(--tone); text-decoration: none; color: var(--mm-ink); transition: border-color .15s; }
.fc-mag a.fc-secpanel:hover { border-color: var(--mm-green); border-top-color: var(--tone); }
.fc-secpanel p { margin: 0 0 10px; font-size: .95rem; color: var(--mm-ink2); }
.fc-secpanel__count { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tone-ink); }

.fc-ticks { list-style: none; margin: 0; padding: 0; }
.fc-ticks li { position: relative; margin: 0 0 8px; padding-left: 1.6em; font-size: .97rem; }
.fc-ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--mm-green); }
.fc-contact-email { font-size: 1.1rem; font-weight: 600; margin: 4px 0 0; word-break: break-word; }

.fc-tool__body > p { max-width: 720px; color: var(--mm-ink2); }
.fc-companion { margin: 18px 0 0; }

/* =========================================================================
   9. FACTORY-CORE SHORTCODE OUTPUT (class names unchanged)
   ========================================================================= */
/* [site_search] */
.fc-mag .fc-search-band { margin: 0; }
.fc-mag .fc-search-band__title { margin: 0 0 10px; font-family: var(--mm-serif); font-size: 1.2rem; font-weight: 700; }
.fc-mag .fc-search-form--large { display: flex; gap: 8px; max-width: 640px; margin: 0; }
.fc-mag .fc-search-form--large .fc-search-input { flex: 1; min-width: 0; min-height: 2.75rem; padding: 10px 14px; border: 1px solid var(--mm-line); border-radius: 10px; background: var(--mm-bg); color: var(--mm-ink); font-size: 1rem; }
.fc-mag .fc-search-form--large .fc-search-submit { min-height: 2.75rem; padding: 0 20px; border: 0; border-radius: 10px; background: var(--mm-green); color: #fff; font-weight: 700; cursor: pointer; }
.fc-mag .fc-search-submit:hover { background: var(--mm-ink); }

/* [ad_slot] */
.fc-ad-slot { display: block; margin: 30px 0; text-align: center; overflow: hidden; }
.fc-ad-slot--header { min-height: 90px; border-bottom: 1px solid var(--mm-line); padding-bottom: var(--fc-gap); }
.fc-ad-slot--incontent { min-height: 250px; padding: var(--fc-gap) 0; border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.fc-ad-slot--sidebar { min-height: 250px; }
.fc-ad-slot--footer { min-height: 90px; border-top: 1px solid var(--mm-line); padding-top: var(--fc-gap); }
.fc-ad-slot:empty { display: none; }
.fc-ad-label { display: block; margin-bottom: .25rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-ink2); }
.fc-ad-placeholder { display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--mm-surface2); border: 1px dashed var(--mm-line); border-radius: 8px; color: var(--mm-ink2); font-size: .8rem; }

/* [affiliate_box] / [affiliate_item] — the preview's pick box */
.fc-affiliate-box,
.fc-affiliate-item { display: grid; gap: .45rem; margin: 16px 0; padding: 16px 18px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: 10px; }
.fc-affiliate-box__title,
.fc-affiliate-item__title { margin: 0; font-family: var(--mm-serif); font-size: 1.17rem; font-weight: 700; line-height: 1.3; color: var(--mm-ink); }
.fc-affiliate-box__price,
.fc-affiliate-item__price { margin: 0; font-family: var(--mm-serif); font-weight: 700; color: var(--mm-gold-ink); }
.fc-mag .fc-affiliate-box__link,
.fc-mag .fc-affiliate-item__link { justify-self: start; display: inline-block; margin-top: 4px; padding: 10px 18px; background: var(--mm-brown); color: #fff; border-radius: 8px; font-weight: 700; font-size: .92rem; text-decoration: none; }
.fc-mag .fc-affiliate-box__link:hover, .fc-mag .fc-affiliate-box__link:focus,
.fc-mag .fc-affiliate-item__link:hover, .fc-mag .fc-affiliate-item__link:focus { background: var(--mm-ink); color: #fff; }
.fc-affiliate-box__disclosure,
.fc-affiliate-item__disclosure { margin: 0; font-size: .76rem; line-height: 1.45; color: var(--mm-ink2); }

/* [call_cta] */
.fc-call-cta { display: block; margin: 2rem 0; padding: 1.25rem; text-align: center; background: var(--mm-surface2); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); }
.fc-mag .fc-call-cta__btn { display: inline-block; padding: .85rem 1.5rem; background: var(--mm-brick); color: #fff; border-radius: 8px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.fc-mag .fc-call-cta__btn:hover, .fc-mag .fc-call-cta__btn:focus { background: var(--mm-brick-ink); color: #fff; }
.fc-call-cta__hint { display: block; margin-top: .5rem; font-size: .85rem; color: var(--mm-ink2); }

/* Calculators (factory-core) — the preview's tool panel */
.fc-calc { margin: 20px 0; padding: 20px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); font-size: 1rem; }
.fc-mag .fc-calc h3 { margin: 0 0 12px; font-size: 1.17rem; color: var(--mm-ink); }
.fc-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-bottom: 14px; }
.fc-calc__row--full { grid-template-columns: 1fr; }
.fc-calc__field { display: flex; flex-direction: column; gap: 5px; }
.fc-calc__field label, .fc-calc label { font-size: .85rem; font-weight: 600; color: var(--mm-ink); }
.fc-calc input:not([type="checkbox"]):not([type="radio"]), .fc-calc select { width: 100%; padding: 9px 10px; border: 1px solid var(--mm-line); border-radius: 8px; background: var(--mm-bg); color: var(--mm-ink); font: inherit; font-size: 1rem; }
.fc-calc input:focus, .fc-calc select:focus { outline: 2px solid var(--mm-green); outline-offset: 1px; }
.fc-mag .fc-calc__submit { padding: 11px 22px; border: 0; border-radius: 8px; background: var(--mm-green); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
.fc-mag .fc-calc__submit:hover { background: var(--mm-ink); }
.fc-calc__result { margin-top: 16px; padding: 18px; background: var(--mm-green-soft); border: 0; border-radius: 10px; color: var(--mm-ink); font-size: .95rem; }
.fc-calc__result b, .fc-calc__result strong { font-family: var(--mm-serif); color: var(--mm-green); }
.fc-calc__result .fc-calc__big, .fc-calc__big { display: block; font-family: var(--mm-serif); font-weight: 700; font-size: 1.9rem; line-height: 1.15; color: var(--mm-green); }
.fc-calc__result--warn { background: var(--mm-brick-soft); }
.fc-calc__error { margin-top: .75rem; padding: .6rem .8rem; background: var(--mm-brick-soft); border: 1px solid var(--mm-brick); border-radius: 8px; color: var(--mm-brick-ink); font-size: .9rem; }
.fc-calc__note { margin-top: .75rem; font-size: .85rem; color: var(--mm-ink2); }

/* Legacy card media (fc_card_media helper) */
.fc-card__media { display: block; aspect-ratio: 16 / 9; background: var(--mm-surface2); overflow: hidden; }
.fc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-card__media--fallback { display: flex; align-items: flex-end; padding: 12px 14px; aspect-ratio: auto; min-height: 64px; border-bottom: 1px solid var(--mm-line); }
.fc-card__media-label { font-family: var(--mm-serif); font-weight: 700; color: var(--mm-ink2); }

/* =========================================================================
   10. LEAD TEMPLATES (chips, CTA band, sticky call bar)
   ========================================================================= */
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-mag .fc-chip { display: inline-block; padding: 8px 14px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: 999px; color: var(--mm-ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.fc-mag .fc-chip:hover { border-color: var(--mm-green); color: var(--mm-green); }
.fc-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 40px 0 0; padding: 24px; background: var(--mm-green-soft); border-radius: 14px; }
.fc-mag .fc-cta-band__title { margin: 0; font-size: 1.4rem; font-weight: 800; }
.fc-cta-band .fc-call-cta { margin: 0; padding: 0; background: none; border: 0; }
.fc-contact-lead__grid { align-items: start; }

.fc-stickybar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--mm-brick); box-shadow: 0 -2px 12px rgba(0, 0, 0, .15); }
.fc-mag .fc-stickybar__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .7rem 1rem; color: #fff; text-decoration: none; }
.fc-stickybar__label { font-size: .8rem; letter-spacing: .02em; opacity: .95; }
.fc-stickybar__num { font-size: 1.05rem; font-weight: 700; }

/* =========================================================================
   11. FOOTER (columns + GeneratePress copyright bar)
   ========================================================================= */
.fc-mag .site-footer { background: var(--mm-surface); color: var(--mm-ink2); }
.fc-footer { padding: 28px 0 22px; border-top: 1px solid var(--mm-line); background: var(--mm-surface); font-size: .88rem; color: var(--mm-ink2); }
.fc-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.fc-footer p { margin: 0; }
.fc-footer__name { margin: 0 0 8px !important; font-family: var(--mm-serif); font-weight: 800; font-size: 1.3rem; line-height: 1.1; color: var(--mm-ink); }
.fc-footer__brand p:not(.fc-footer__name) { max-width: 420px; line-height: 1.55; }
.fc-footer__head { margin: 0 0 6px !important; font-family: var(--mm-serif); font-weight: 700; color: var(--mm-ink); }
.fc-footer__list { list-style: none; margin: 0; padding: 0; }
.fc-footer__list li { margin: 0; }
.fc-mag .fc-footer__list a { display: block; padding: 5px 0; color: var(--mm-ink2); text-decoration: none; }
.fc-mag .fc-footer__list a:hover { color: var(--mm-green); }
.fc-mag .site-info { padding: 14px 16px 22px; background: var(--mm-paper2); border-top: 1px solid var(--mm-line); color: var(--mm-ink2); font-size: .8rem; line-height: 1.7; text-align: center; }
.fc-mag .site-info .inside-site-info { max-width: var(--mm-wrap); margin: 0 auto; padding: 0; justify-content: center; }
.fc-mag .site-info a { color: var(--mm-ink2); }
.fc-mag .site-info a:hover { color: var(--mm-green); }
.fc-capstone { display: inline-block; margin-top: 6px; }

/* =========================================================================
   11b. NEWSLETTER (v2.1.0 — factory-core [newsletter_form]; renders only when
        factory-site.json "newsletter"."enabled" is "yes")
   ========================================================================= */
/* Homepage panel: sage tint, brass rule, Bitter headline. */
.fc-newsletter__panel { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px 34px; align-items: center; margin-top: 40px; padding: 30px 30px 28px; background: var(--mm-green-soft); border: 1px solid var(--mm-line); border-radius: 14px; box-shadow: var(--mm-shadow); }
.fc-newsletter__panel::before { content: ""; position: absolute; top: 0; left: 30px; width: 56px; height: 4px; background: var(--mm-brass); border-radius: 0 0 2px 2px; }
.fc-newsletter__copy .fc-kicker { background: var(--mm-surface); }
.fc-mag .fc-newsletter__title { margin: 0 0 10px; font-family: var(--mm-serif); font-size: clamp(1.45rem, 2.8vw, 1.9rem); font-weight: 800; line-height: 1.18; color: var(--mm-ink); }
.fc-newsletter__blurb { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--mm-ink2); }

/* The form itself (shared by the panel, the footer band and any [newsletter_form]). */
.fc-nl { position: relative; }
.fc-nl p { margin: 0; }
.fc-nl__title { font-family: var(--mm-serif); font-weight: 700; font-size: 1.17rem; line-height: 1.3; color: var(--mm-ink); }
.fc-nl__blurb { margin-top: 4px !important; font-size: .95rem; color: var(--mm-ink2); }
.fc-nl__title + .fc-nl__form, .fc-nl__blurb + .fc-nl__form, .fc-nl__msg + .fc-nl__form { margin-top: 12px; }
.fc-nl__form { margin: 0; }
.fc-nl__row { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-mag .fc-nl__input { flex: 1 1 220px; min-width: 0; min-height: 2.75rem; margin: 0; padding: 10px 14px; border: 1px solid var(--mm-line); border-radius: 8px; background: var(--mm-bg); color: var(--mm-ink); font: inherit; font-size: 1rem; }
.fc-mag .fc-nl__input::placeholder { color: var(--mm-ink2); opacity: .75; }
.fc-mag .fc-nl__input:focus { border-color: var(--mm-green); outline: 2px solid var(--mm-green); outline-offset: 1px; }
.fc-mag .fc-nl__btn { flex: 0 0 auto; min-height: 2.75rem; margin: 0; padding: 10px 22px; border: 1px solid var(--mm-brass); border-radius: 8px; background: var(--mm-brass); color: var(--mm-ink); font-family: var(--mm-sans); font-weight: 700; font-size: .98rem; line-height: 1.3; cursor: pointer; }
.fc-mag .fc-nl__btn:hover, .fc-mag .fc-nl__btn:focus-visible { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.fc-nl__msg { padding: 10px 12px; border-radius: 8px; background: var(--mm-surface); border-left: 4px solid var(--mm-green); font-size: .93rem; line-height: 1.5; color: var(--mm-ink); }
.fc-nl__msg--err { border-left-color: var(--mm-brick); color: var(--mm-brick-ink); }
.fc-nl__privacy { margin-top: 10px !important; font-size: .78rem; line-height: 1.5; color: var(--mm-ink2); }
.fc-mag .fc-nl__privacy a { color: var(--mm-ink2); text-decoration: underline; }
.fc-mag .fc-nl__privacy a:hover { color: var(--mm-green); }

/* Footer band: compact one-line form above the footer columns. */
.fc-footer-nl { padding: 20px 0; border-top: 1px solid var(--mm-line); background: var(--mm-paper2); }
.fc-footer-nl__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 10px 28px; align-items: center; }
.fc-footer-nl__head { position: relative; margin: 0; padding-top: 10px; font-family: var(--mm-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--mm-ink); }
.fc-footer-nl__head::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--mm-brass); border-radius: 2px; }
.fc-mag .fc-nl--compact .fc-nl__input { min-height: 2.5rem; padding: 8px 12px; font-size: .95rem; }
.fc-mag .fc-nl--compact .fc-nl__btn { min-height: 2.5rem; padding: 8px 18px; font-size: .92rem; }
.fc-nl--compact .fc-nl__privacy { margin-top: 6px !important; font-size: .74rem; }

@media (max-width: 820px) {
	.fc-newsletter__panel { grid-template-columns: 1fr; padding: 26px 20px 22px; }
	.fc-newsletter__panel::before { left: 20px; }
	.fc-footer-nl__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.fc-mag .fc-nl__btn { flex: 1 1 100%; }
}
@media print {
	.fc-newsletter, .fc-footer-nl { display: none !important; }
}

/* =========================================================================
   12. RESPONSIVE (phone-first readability)
   ========================================================================= */
@media (max-width: 1000px) and (min-width: 821px) {
	.fc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.fc-hero, .fc-hero--nophoto { grid-template-columns: 1fr; }
	.fc-hero__img img { min-height: 200px; max-height: 240px; }
	.fc-hero__body { padding: 22px 20px 20px; }
	.fc-promise { padding: 22px 20px; border-left: 0; border-top: 1px solid var(--mm-line); }
	.fc-promise::before { left: 20px; }
	.fc-grid--3, .fc-grid--2, .fc-calc__row, .fc-footer__cols { grid-template-columns: 1fr; }
	.fc-mast-note { display: none; }
	.fc-masthead__inner { padding-top: 16px; padding-bottom: 12px; }
	.fc-mag .fc-sec-head h2 { font-size: 1.38rem; }
	.fc-sec-head { margin-top: 32px; }
	.fc-mag .fc-mainnav .fc-search-input { width: 9rem; }
	.fc-cta-band { padding: 20px; }
}
@media (max-width: 640px) {
	.fc-prose table, .fc-mag .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.fc-mag .fc-call-cta__btn { display: block; width: 100%; }
	.fc-bigfact { gap: 12px 18px; }
	.fc-mixbar { font-size: .72rem; }
	.fc-lead .fc-stickybar { display: block; }
	body.fc-lead { padding-bottom: 4.25rem; }
}

/* =========================================================================
   13. PRINT (guides print clean)
   ========================================================================= */
@media print {
	body, .site, .site-content, #content, .fc-main { background: #fff !important; color: #000 !important; font-size: 11pt; line-height: 1.35; }
	.fc-ad-slot, .fc-call-cta, .fc-affiliate-box__link, .fc-affiliate-item__link, .fc-calc__submit,
	.fc-masthead, .fc-mainnav, .fc-footer, .site-footer, .fc-related, .fc-back, .fc-stickybar,
	.site-header, .main-navigation, .sidebar, .widget-area, .comments-area, #comments, button, .wp-block-button { display: none !important; }
	.fc-card, .fc-panel, .fc-hero { box-shadow: none !important; }
	.fc-affiliate-box, .fc-affiliate-item, .fc-calc { border: 1px solid #000; page-break-inside: avoid; }
	.fc-ftc-disclosure, .fc-disclosure { border-top: 1px solid #000; color: #000; background: none; }
	.fc-prose a[href]::after, .entry-content a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333; }
	h1, h2, h3 { page-break-after: avoid; }
	img { max-width: 100% !important; height: auto !important; }
	table, th, td { border: 1px solid #000; padding: .25rem .4rem; }
}
