/* RealEstateInvesting.org — design B "Trusted Advisor" (approved 2026-10-19). Mobile-first, no framework. */
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700 900; font-style: normal; font-display: swap; src: url(/assets/fonts/public-sans-latin-800-normal.woff2) format("woff2"); }

:root {
  --navy: #0f2742;
  --green: #1a6b47;
  --green-dark: #0f4a30;
  --mint: #7fd3a8;
  --ink: #1b2430;
  --ink-2: #3d4957;
  --muted: #4a5768;
  --line: #d5dee8;
  --tint: #eef4f1;
  --soft: #f5f7fa;
  --note: #fbf6e9;
  --on-navy: #c3d0dd;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Public Sans", "Segoe UI", system-ui, sans-serif; font-size: 1.125rem; line-height: 1.7; color: var(--ink); background: #fff; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 56px; padding-bottom: 24px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.brand svg { color: var(--mint); flex: none; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: #fff; }
.brand-name span { color: var(--mint); }
.brand:hover { color: #fff; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a, .nav summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer; }
.nav a:hover, .nav summary:hover { color: var(--mint); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.has-sub { position: relative; }
.has-sub ul { display: block; position: absolute; z-index: 20; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,39,66,.2); padding: 6px; }
.has-sub ul a { color: var(--ink); }
.has-sub ul a:hover { color: var(--green); background: var(--tint); border-radius: 6px; }
.nav-toggle { display: none; }
/* Phones: the menu folds behind a Menu button (only when JavaScript runs, so it can always be opened) */
@media (max-width: 759px) {
  .header-row { flex-wrap: wrap; }
  .js .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 2px solid rgba(255,255,255,.35); border-radius: 10px; background: none; color: #fff; cursor: pointer; }
  .brand-name { font-size: clamp(1.05rem, 5.2vw, 1.3rem); }
  .js .nav-toggle:hover { border-color: var(--mint); color: var(--mint); }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
  .js .nav { display: none; flex-basis: 100%; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .js .nav > ul > li { border-top: 1px solid rgba(255,255,255,.12); }
  .nav a, .nav summary { padding: 12px 4px; font-size: 1.1rem; }
  .has-sub ul { position: static; min-width: 0; background: none; box-shadow: none; padding: 0 0 8px 16px; }
  .has-sub ul a { color: #e3ebf3; }
  .has-sub ul a:hover { color: var(--mint); background: none; }
}

/* Buttons */
.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 999px; line-height: 1.2; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 12px 24px; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* Home */
.home-hero { background: var(--navy); color: #fff; }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 88px; }
.kicker { margin: 0 0 12px; font-size: 1rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.hero-title { margin: 0 0 16px; font-size: clamp(2.2rem, 6vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin: 0 0 12px; font-size: 1.4rem; font-weight: 600; color: #e3ebf3; }
.hero-text { margin: 0 0 28px; color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-card { margin: 0 auto; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; max-width: 360px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hero-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.hero-card figcaption { padding: 12px 6px 2px; font-size: 1rem; }
.seen-in { margin-top: -40px; }
.seen-in-card { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(15,39,66,.12); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.seen-in-card img { height: 28px; width: auto; }
.seen-in .label { font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 2rem; font-weight: 800; }
.section-head a { font-weight: 800; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 28px; }
.article-count { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.topic-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.topic-jump .chip { text-decoration: none; letter-spacing: .04em; }
.topic-jump .chip span { color: var(--muted); font-weight: 700; }
.topic-jump .chip:hover { background: var(--tint); }
.list-heading { margin: 0 0 20px; font-size: 1.6rem; font-weight: 800; }
.topic { margin-top: 56px; scroll-margin-top: 16px; }
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.article-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.article-list a { color: var(--ink); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.article-list a:hover { color: var(--green); }
.article-list time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.post-card h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.card-cat { margin: 4px 0 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.card-excerpt { margin: 0; font-size: 1rem; color: var(--ink-2); }
.card-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.testimonials { display: grid; gap: 24px; padding-bottom: 72px; }
.quote { margin: 0; background: var(--tint); border-radius: 16px; padding: 32px; }
.quote blockquote { margin: 0 0 14px; font-size: 1.3rem; line-height: 1.45; font-weight: 600; }
.quote figcaption { font-size: 1rem; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 48px 0 24px; font-weight: 800; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }

/* Posts and pages */
.post-hero { background: var(--tint); padding: 40px 0 112px; }
.post-hero--page { padding-bottom: 40px; }
.is-archive .post-hero, .is-page .post-hero { padding-bottom: 40px; }
.post-hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.page-kicker { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { background: #fff; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 1rem; color: var(--ink-2); }
.byline-author { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.byline-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hero-image { padding-top: 32px; }
.post-hero--below-image { background: none; padding: 28px 0 0; }
.post-hero--below-image .chip { background: var(--tint); }
.post-hero--below-image + .post-body { padding-top: 24px; }
.hero-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(15,39,66,.18); }
.post-hero--page + .post-body { margin-top: 0; }
.post-body { padding-top: 36px; padding-bottom: 72px; }
.disclosure { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 28px; }
.disclosure svg { flex: none; margin-top: 3px; }

.entry-content > * { margin-top: 0; margin-bottom: 1.25rem; }
.entry-content h2 { font-size: 1.8rem; font-weight: 800; margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.4rem; font-weight: 800; margin-top: 2rem; }
.entry-content h4 { font-size: 1.15rem; font-weight: 800; margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: .9rem; color: var(--muted); text-align: center; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote, .wp-block-quote, .wp-block-pullquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green); color: var(--ink-2); }
.wp-block-pullquote { border: 0; text-align: center; font-size: 1.3rem; padding: 24px 0; }
.aligncenter, .wp-block-image.aligncenter, .has-text-align-center { text-align: center; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.wp-block-image img { display: inline-block; }
.wp-block-columns, .gb-layout-columns-2 > .gb-layout-column-wrap, .gb-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.wp-block-column, .gb-block-layout-column { flex: 1 1 260px; min-width: 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.table-wrap, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--soft); }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.wp-block-embed__wrapper { position: relative; }

/* Buttons from old blocks */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons.is-content-justification-center, .ab-block-button, .gb-block-button { justify-content: center; text-align: center; }
.wp-block-button__link, .ab-button, .gb-button { display: inline-block; background: var(--green) !important; color: #fff !important; font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 999px !important; }
.wp-block-button__link:hover, .ab-button:hover, .gb-button:hover { background: var(--green-dark) !important; }

/* Notices and info boxes */
.gb-block-notice, .ab-block-notice { border-radius: 12px; padding: 0; overflow: hidden; background: var(--note) !important; color: var(--ink) !important; text-align: left !important; }
.gb-notice-title, .ab-notice-title { padding: 10px 18px; font-weight: 800; background: rgba(0,0,0,.05); color: var(--ink) !important; }
.gb-notice-title p, .ab-notice-title p { margin: 0; }
.gb-notice-text, .ab-notice-text { padding: 14px 18px; }
.gb-notice-text > :last-child { margin-bottom: 0; }
.uagb-infobox__content-wrap, .wp-block-uagb-info-box { border-radius: 12px; }
/* Spectra info boxes: their per-block CSS set icon sizes; without it inline SVGs fill the column. */
.uagb-ifb-icon-wrap, .uagb-ifb-icon { color: var(--ink); }
.uagb-ifb-icon-wrap svg, .uagb-ifb-icon svg { width: 45px; height: 45px; fill: currentColor; }
.uagb-ifb-icon-wrap { margin-bottom: 12px; }
.uagb-ifb-separator { width: 30%; border-top: 2px solid var(--ink); margin: 0 0 12px; }
.uagb-infobox-cta-link { display: inline-flex !important; align-items: center; gap: 8px; }
.uagb-infobox-cta-link svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.entry-content svg:not([width]) { max-width: 100%; max-height: 4rem; }
.uagb-faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.uagb-question, .uagb-faq-questions { font-weight: 800; }
.uagb-faq-content { margin-top: 8px; }
.wp-block-uagb-container { margin-bottom: 1.25rem; }

/* Table of contents */
.toc { background: var(--soft); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.toc summary { font-weight: 800; font-size: 1.1rem; cursor: pointer; min-height: 32px; }
.toc ol { margin: 10px 0 0; padding-left: 1.3rem; font-size: 1rem; line-height: 1.8; }
.toc ol ol { margin-top: 0; }

/* Amazon card */
.amzn-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1.5rem; background: #fff; }
.amzn-card__label { flex-basis: 100%; margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.amzn-card__title { flex: 1 1 260px; margin: 0; font-weight: 800; font-size: 1.1rem; line-height: 1.35; }
.amzn-card__note { flex-basis: 100%; margin: 0; font-size: .95rem; color: var(--ink-2); }
.amzn-card__btn { display: inline-flex; align-items: center; min-height: 44px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem; padding: 10px 22px; border-radius: 999px; }
.amzn-card__btn:hover { background: var(--green); color: #fff; }

/* Author and comments */
.author-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin: 48px 0; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-name { margin: 0 0 4px; font-weight: 800; font-size: 1.2rem; }
.author-name a { color: inherit; text-decoration: none; }
.author-box > div { flex: 1 1 300px; }
.author-box p { margin: 0 0 10px; font-size: 1rem; }
.author-links { font-size: 0.95rem; font-weight: 600; }
.comments h2 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }
.comments > p { margin-top: 0; font-size: 1rem; }
.comment { background: var(--soft); border-radius: 12px; padding: 18px 20px; margin-top: 14px; }
.comment .comment { background: #fff; margin-top: 14px; }
.comment-meta { margin: 0 0 6px; font-size: 1rem; }
.comment-body { font-size: 1.05rem; }
.comment-body > :last-child { margin-bottom: 0; }
.tag-author { font-size: .75rem; font-weight: 800; color: var(--green); letter-spacing: .06em; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.footer-col p { margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { color: #fff; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* Offer popup (site.js) */
.offer { position: fixed; z-index: 50; background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(15,39,66,.35); border-radius: 16px; }
.offer[hidden] { display: none; }
.offer--sheet { left: 12px; right: 12px; bottom: 12px; padding: 18px 56px 18px 18px; }
.offer--modal { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); padding: 32px 28px 28px; text-align: center; }
.offer-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(15,39,66,.6); }
.offer-backdrop[hidden] { display: none; }
.offer__label { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer__headline { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.offer--sheet .offer__headline { font-size: 1.05rem; }
.offer__body { margin: 0 0 16px; font-size: 1rem; color: var(--ink-2); }
.offer--sheet .offer__body { display: none; }
.offer__cta { display: inline-flex; align-items: center; min-height: 44px; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; padding: 10px 24px; border-radius: 999px; }
.offer__cta:hover { background: var(--green-dark); color: #fff; }
.offer__no { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; min-height: 44px; }
.offer--sheet .offer__no { display: none; }
.offer__close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.offer__close:hover { background: var(--soft); }

@media (min-width: 760px) {
  .wrap, .wrap-narrow, .wrap-wide { padding-left: 24px; padding-right: 24px; }  /* sides only: the shorthand wiped the vertical padding of .hero-grid, .section, .post-body */
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 56px; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1.4fr; }
  .offer--sheet { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .article-list li { grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .offer { animation: offer-in .25s ease-out; }
  @keyframes offer-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Old Genesis landing-page blocks (/about/, homepage-style sections) */
.entry-content { overflow-wrap: break-word; }
.entry-content [style*="font-size:70px"], .entry-content [style*="font-size:60px"] { font-size: clamp(2rem, 8vw, 4rem) !important; line-height: 1.1; }
.gb-block-container, .wp-block-genesis-blocks-gb-columns { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 1.5rem; }
.gb-container-image-wrap { position: absolute; inset: 0; z-index: 0; }
.gb-container-image { width: 100%; height: 100%; object-fit: cover; opacity: .35; border-radius: 0 !important; }
.gb-container-content, .gb-layout-column-wrap { position: relative; z-index: 1; }
.gb-layout-column-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.ab-profile-box, .wp-block-atomic-blocks-ab-profile-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ab-profile-image-square img { border-radius: 12px; max-width: 220px; }
