/* =========================================================
   Dave Fuller — nbccommercial.ca
   One stylesheet for every page. Colours and fonts live in
   :root below — change them there and the whole site updates.
   ========================================================= */

:root {
  --ink: #15191f;          /* near-black: headings, dark sections */
  --ink-2: #232a33;        /* slightly lighter dark */
  --text: #3b4350;         /* body text */
  --muted: #6b7380;        /* secondary text */
  --line: #e3e0da;         /* borders */
  --paper: #ffffff;
  --sand: #f6f4f0;         /* warm light background */
  --red: #c8202f;          /* accent — matches Team Powerhouse Realty red */
  --red-dark: #a51825;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 25, 31, .08);
  --max: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #c9ced6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.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);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.brand__tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.nav-ctas { display: flex; gap: 8px; margin-left: 12px; }
.nav-ctas .btn { padding: 9px 18px; font-size: .9rem; color: #fff; }
.nav-ctas .btn:hover { color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav-ctas { margin: 12px 0 0; }
  .nav-ctas .btn { flex: 1; justify-content: center; padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink) url("../images/hero-commercial-building.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,18,23,.94) 0%, rgba(15,18,23,.82) 45%, rgba(15,18,23,.35) 100%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 32px; }
.hero__copy { padding: 100px 0 130px; align-self: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ff5a64; }
.hero p { color: #d3d8df; font-size: 1.15rem; max-width: 600px; }
.hero .btn-row { margin-top: 32px; }
.hero__photo { align-self: end; }
.hero__photo img { width: 100%; max-width: 420px; margin-left: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__copy { padding: 72px 0 24px; }
  .hero__photo img { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .brand__name { font-size: 1.45rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .08em; }
}

/* Page hero for inner pages */
.page-hero { background: var(--ink); color: #c9ced6; padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(200,32,47,.18);
}
.page-hero .container { position: relative; z-index: 1; }
@media (max-width: 640px) { .page-hero::after { width: 260px; height: 260px; border-width: 36px; right: -110px; top: -110px; } }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { max-width: 640px; font-size: 1.1rem; margin: 0; }

/* ---------- Search / intake band ---------- */
.intake { margin-top: -56px; position: relative; z-index: 2; }
.intake__card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  border-top: 4px solid var(--red);
}
.intake__card h2 { font-size: 2rem; }
.intake__card p { margin: 0; }
.intake__actions { display: flex; flex-direction: column; gap: 12px; }
.intake__actions .btn { justify-content: center; }
.intake__or { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .intake__card { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
}

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checks { list-style: none; padding: 0; margin: 24px 0 32px; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(200,32,47,.1); color: var(--red);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: 8px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { padding: 28px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; }
.stat__label { font-size: .9rem; color: #9aa3ae; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* ---------- Testimonial ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote__mark { font-family: Georgia, serif; font-size: 6rem; line-height: .6; color: var(--red); height: 48px; }
.quote blockquote {
  margin: 0 0 28px; font-family: var(--font-head); font-weight: 500; color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3;
}
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: 72px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 620px; }
.cta-band .btn--dark { background: var(--ink); }
.cta-band .btn--ghost-light:hover { color: var(--red); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #d5d1c9; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(200,32,47,.35); border-color: var(--red); }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.radio-row label { font-weight: 500; display: flex; align-items: center; gap: 8px; margin: 0; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; background: #eef7ef; color: #23633a; display: none; }
.form-status.show { display: block; }
.form-status--error { background: #fdeeee; color: var(--red-dark); }
.form-status .btn { margin-top: 12px; }
.newsletter-status.form-status--error { color: #ff8a92; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
@media (max-width: 640px) { .panel { padding: 24px; } }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--ink); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.contact-list .ico { color: var(--red); flex: none; width: 22px; padding-top: 2px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Listings (Investments page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.filter-bar input { font: inherit; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; min-width: 260px; }
.result-count { color: var(--muted); font-size: .9rem; }

.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.listing {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.listing:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.listing__img { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.listing__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing:hover .listing__img img { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--ink);
}
.badge--new { background: var(--red); color: #fff; }
.badge--reduced { background: #f2b33d; color: var(--ink); }
.badge--sold, .badge--leased { background: var(--ink); color: #fff; }
.badge--pending { background: #fff; color: var(--ink); }
.listing__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.listing__price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 8px; }
.listing__title { font-size: 1.3rem; margin-bottom: 10px; }
.listing__body ul { margin: 0 0 18px; padding-left: 18px; font-size: .92rem; color: var(--muted); }
.listing__body ul li { margin-bottom: 4px; }
.listing__link { margin-top: auto; font-weight: 600; text-decoration: none; }
.listing--sold .listing__img img { filter: grayscale(.6); }
@media (max-width: 980px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .listings { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post__img { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__img--plain { display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 1.4rem; letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(135deg, var(--ink), var(--ink-2)); }
.post__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.post__body h3 { font-size: 1.6rem; }
.post__body h3 a { color: var(--ink); text-decoration: none; }
.post__body h3 a:hover { color: var(--red); }
.post__body p { color: var(--muted); font-size: .97rem; }
.post__body .listing__link { margin-top: auto; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* ---------- IDX embed ---------- */
.idx-wrap { min-height: 480px; }
.idx-note { border: 1px dashed #d5d1c9; border-radius: var(--radius); padding: 28px; color: var(--muted); background: #fff; }

/* ---------- Legal text ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.3em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 180px; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid #3a424d; background: #1d232b; color: #fff; }
.newsletter input::placeholder { color: #8b94a0; }
.newsletter .btn { padding: 12px 22px; }
.newsletter-status { font-size: .9rem; color: #8fd3a3; margin-top: 10px; display: none; }
.newsletter-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1217; color: #9aa3ae; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #c9ced6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 16px; }
.brokerage { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-top: 8px; }
.brokerage img { height: 46px; width: auto; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333b46; display: grid; place-items: center; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid #262d36; margin-top: 56px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .8rem; color: #78818d;
}
.footer-bottom .realtor { display: flex; align-items: center; gap: 12px; max-width: 760px; }
.footer-bottom .realtor img { height: 34px; width: auto; filter: invert(1) brightness(2); opacity: .7; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.listing[hidden] { display: none; }
.listing__title a { color: var(--ink); text-decoration: none; }
.listing__title a:hover { color: var(--red); }
.listing__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: rgba(255,255,255,.75);
  font-family: var(--font-head); font-size: 1.4rem; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Listing detail + package pages ---------- */
.detail-head { background: var(--ink); color: #c9ced6; padding: 40px 0 48px; }
.detail-head h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 14px 0 6px; }
.detail-head .badge { position: static; display: inline-block; }
.detail-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.detail-sub { margin: 0; color: #9aa3ae; }
.detail-price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #ff5a64; line-height: 1; }
.back-link { display: inline-block; color: #9aa3ae; text-decoration: none; font-size: .9rem; margin-bottom: 20px; }
.back-link:hover { color: #fff; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.detail-grid > div { display: grid; gap: 24px; }
.gallery { display: grid; gap: 12px; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.detail-list { padding-left: 20px; margin: 0 0 24px; }
.detail-list li { margin-bottom: 10px; }
.package-img { width: 100%; max-width: 420px; max-height: 360px; object-fit: contain; border-radius: 10px; margin-bottom: 24px; }
.agent-card {
  position: sticky; top: 100px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: grid; gap: 12px; text-align: center;
}
.agent-card img { width: 140px; height: 140px; object-fit: cover; object-position: top; border-radius: 50%; margin: 0 auto 4px; background: var(--sand); }
.agent-card strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.agent-card span { font-size: .88rem; color: var(--muted); }
.agent-card .btn { justify-content: center; }
.nda-text { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; font-size: .9rem; background: var(--sand); }
.nda-text p { margin-bottom: .7em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.check input { margin-top: 4px; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .agent-card { position: static; }
}

/* ---------- Blog article ---------- */
.page-hero--post h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 900px; }
.back-link--light { margin-bottom: 18px; }
.article { margin: 0 auto; font-size: 1.08rem; }
.article__hero { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.article h2 { font-size: 2rem; }
.article h3 { font-size: 1.5rem; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: 10px; }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; display: block; overflow-x: auto; }
.article td, .article th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article td p, .article th p, .article li p { margin: 0; }
.article blockquote { border-left: 4px solid var(--red); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--ink); font-style: italic; }
.article a { word-break: break-word; }
.article-cta {
  max-width: 780px; margin: 56px auto 0; padding: 32px; border-radius: var(--radius); background: var(--sand);
  display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.article-cta h3 { margin-bottom: 6px; }
.article-cta p { margin: 0; color: var(--muted); }
.post-nav { max-width: 780px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav span { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }
.posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Small utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
