/* New Home Investing Knowledge — site styles */
:root {
  --ink: #142235;
  --ink-2: #33445b;
  --muted: #5d6b7e;
  --line: #dfe5ec;
  --paper: #ffffff;
  --cream: #f6f3ec;
  --blue: #1d4e89;
  --blue-dark: #12345e;
  --blue-soft: #e8f0fa;
  --amber: #e2a03f;
  --amber-dark: #b97a1d;
  --green: #2f7d5b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 34, 53, .06), 0 8px 24px rgba(20, 34, 53, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink-2); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-dark); text-decoration: none; margin-bottom: .6rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--amber); color: var(--ink); font-weight: 700; padding: .8em 1.3em; border-radius: 10px; text-decoration: none; border: 2px solid var(--amber); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: background .15s, transform .15s; }
.btn:hover { background: #f0b456; color: var(--ink); transform: translateY(-1px); }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-small { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--blue-dark); }
.btn-amz { background: var(--ink); border-color: var(--ink); color: #fff; font-size: .9rem; padding: .6em 1em; }
.btn-amz:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Top bar + header */
.topbar { background: var(--ink); color: #c9d4e2; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-phone { white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.1; }
.brand-text strong { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 12px; display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .topbar .wrap > span { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand-text { font-size: 1rem; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #dbe6f4; padding: 72px 0 80px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--amber); }
.hero .lead { font-size: 1.15rem; color: #dbe6f4; max-width: 38em; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points .icon { color: var(--amber); margin-top: .25em; }
.blueprint { color: #9cc0ec; width: 100%; height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 52px 0 60px; } }

/* Page hero */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-hero h1 { max-width: 22em; margin-bottom: .4em; }
.page-hero .lead { font-size: 1.12rem; max-width: 46em; color: var(--ink-2); margin: 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #a5b0bf; }
.breadcrumbs a { color: var(--muted); }
.post-meta { color: var(--muted); font-size: .92rem; margin: 0; }
.post-meta a { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-title { margin-bottom: .4em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.feature-icon .icon { width: 24px; height: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700; display: grid; place-items: center; }
.steps strong { color: var(--ink); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pillar .feature-icon { margin: 0; }
.pillar > .icon:last-child { margin-left: auto; color: var(--amber-dark); }
.pillar:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--blue); }
@media (max-width: 900px) { .feature-grid, .pillar-grid { grid-template-columns: 1fr 1fr; } .split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .feature-grid, .pillar-grid { grid-template-columns: 1fr; } .section { padding: 48px 0; } .section-head.row { flex-direction: column; align-items: flex-start; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 16 / 9; background: var(--blue-soft); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; height: 100%; color: var(--blue); background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(29, 78, 137, .08) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(29, 78, 137, .08) 19px 20px), var(--blue-soft); }
.card-placeholder .icon { width: 56px; height: 56px; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { font-size: .72rem; margin-bottom: .4rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .5em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { font-size: .95rem; color: var(--muted); }
.card-body .meta { margin-top: auto; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; font-weight: 600; }

/* Article */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; padding-bottom: 64px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; gap: 40px; } }
.prose { max-width: 760px; min-width: 0; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--amber-dark); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); font-style: italic; color: var(--ink); }
.prose strong { color: var(--ink); }
.post-figure { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); }
.post-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cream); color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.callout { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 10px; padding: 18px 20px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.disclosure { font-size: .86rem; color: var(--muted); background: var(--cream); border-radius: 8px; padding: 10px 14px; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 0 0 28px; background: #fff; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.toc ol { margin: 10px 0 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.faq { margin-top: 2.4em; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 22px; border-radius: var(--radius); background: var(--cream); }
.author-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; }
.author-box p { margin: 0 0 4px; font-size: .95rem; }
.author-name { font-weight: 700; color: var(--ink); }

/* Products */
.products { margin: 2em 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--cream)); }
.products-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.product-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.product-icon .icon { width: 22px; height: 22px; }
.product-body { display: flex; flex-direction: column; flex: 1; }
.product .product-name { font-size: 1rem; margin: 0 0 6px; }
.product p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.product .btn { margin-top: auto; align-self: flex-start; }
.products-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.product-section { margin-top: 44px; }
.product-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.product-section h2 .icon { color: var(--amber-dark); }
.amz-inline { font-weight: 600; }
.sidebar .products { padding: 0; border: 0; background: none; margin: 0 0 10px; }
.sidebar .product-grid { grid-template-columns: 1fr; gap: 10px; }
.sidebar .product { padding: 14px; flex-direction: row; }
.sidebar .product p { display: none; }
.sidebar .products-note { display: none; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.widget-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.widget-cta { background: var(--blue); color: #dbe6f4; border-color: var(--blue); }
.widget-cta .widget-title { color: #fff; font-family: var(--serif); font-size: 1.25rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.link-list li:last-child { border: 0; }
.link-list a { text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.count { color: var(--muted); font-size: .85rem; }
@media (min-width: 1001px) { .sidebar > .widget:first-child { position: sticky; top: 96px; } }

/* Free training */
.training-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .training-grid { grid-template-columns: 1fr; } }
.hero-training .hero-points .icon { color: var(--green); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.form-card form { display: grid; gap: 14px; margin-top: 16px; }
.form-card label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.form-card input, .form-card select { font: inherit; padding: 12px 14px; border: 1px solid #c5cfdb; border-radius: 10px; background: #fff; width: 100%; }
.form-card input:focus, .form-card select:focus { outline: 3px solid rgba(29, 78, 137, .25); border-color: var(--blue); }
.optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }
.form-errors { background: #fdecec; border: 1px solid #f3b9b9; color: #8a1f1f; border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.form-errors p { margin: 0; }
.lesson-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.lesson-list a { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.lesson-list a:hover { border-color: var(--blue); }
.lesson-list strong { display: block; color: var(--ink); }
.lesson-list small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.lesson-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700; display: grid; place-items: center; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #dbe6f4; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 40em; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* Footer */
.site-footer { background: var(--ink); color: #aebbd0; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #dbe4f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text strong { color: var(--amber); }
.footer-contact { line-height: 2; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #8797ae; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Resources page */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 1.4em 0 2em; }
.resource { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; }
.resource h3 { margin-top: 0 !important; font-size: 1.05rem; }
.resource ul { margin: 0; padding-left: 1.1em; }
.resource li { font-size: .95rem; }
.sidebar .product { align-items: flex-start; }
.sidebar .product-icon { width: 36px; height: 36px; }
.sidebar .product .product-name { font-size: .92rem; }
.sidebar .btn-amz { font-size: .8rem; padding: .45em .8em; }
/* Photos */
.hero-photo { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 4px solid rgba(255, 255, 255, .12); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; }
.hero-photo figcaption .icon { color: var(--blue); }
.rounded-photo { width: 100%; border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 860px) { .hero-photo { display: block; margin-top: 8px; } .hero-photo img { aspect-ratio: 16 / 10; } }
