/* ==========================================================================
   ASHBORN PARTNERS — BUSINESS GROWTH INSIGHTS (business articles + index)
   Used only by business-insights.html and the business-*.html articles.
   Part 1 is the same gateway header/footer/card styling the Resources page
   uses (copied so these pages look identical); part 2 is article styling.
   Generated pages: see tools/build-business-articles.js.
   ========================================================================== */
/* A darker brand green for small text, links and focus rings, so they meet
   WCAG AA contrast (about 5.5:1 or better on the site's light backgrounds). */
:root { --biz-green: #176b43; }

  :root {
    --gateway-serif: 'Playfair Display', Georgia, serif;
  }

  body { background: var(--bg); overflow-x: hidden; }

  /* ---- header (matches the gateway page) ---- */
  .gateway-header {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .gateway-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .gateway-nav {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .gateway-nav a {
    /* two-word labels must not break onto a second line */
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
  }
  .gateway-nav a:hover { color: var(--biz-green); }
  .gateway-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: var(--bg);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 999px;
    transition: background 0.2s var(--ease);
  }
  .gateway-cta:hover { background: var(--biz-green); }

  @media (max-width: 1180px) {
    .gateway-nav { gap: 20px; font-size: 0.88rem; }
  }

  @media (max-width: 900px) {
    .gateway-nav { display: none; }
  }

  /* ---- content hero ---- */
  .content-hero {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 32px 8px;
    text-align: center;
    overflow: hidden;
  }
  .content-tag {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--biz-green);
    margin-bottom: 20px;
  }
  .content-hero h1 {
    font-family: var(--gateway-serif);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 22px;
  }
  .content-hero > p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 8px;
  }

  .content-hero { position: relative; }
  .watermark-mark {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
  }
  .watermark-mark img { width: 100%; height: 100%; object-fit: contain; }

  /* ---- resource list ---- */
  .resource-list {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .resource-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  }
  .resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -18px rgba(16,36,28,0.25);
    border-color: var(--biz-green);
  }

  .resource-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .resource-state-tag {
    display: inline-block;
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--biz-green);
  }
  .resource-date {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .resource-card h3 {
    font-family: var(--gateway-serif);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
  }
  .resource-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
  }
  .resource-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s var(--ease);
  }
  .resource-card:hover .resource-arrow { background: var(--biz-green); color: #fff; }

  .resource-note {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px 90px;
    text-align: center;
  }
  .resource-note p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* ---- footer ---- */
  .gateway-footer {
    background: #10241c;
    color: rgba(244,245,241,0.75);
    margin-top: 0;
  }
  .gateway-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 32px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    border-bottom: 1px solid rgba(244,245,241,0.1);
  }
  .gateway-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .gateway-footer-brand img { height: 34px; }
  .gateway-footer-tagline {
    margin-top: 12px;
    font-size: 0.88rem;
    color: rgba(244,245,241,0.55);
    line-height: 1.5;
    max-width: 230px;
  }
  .gateway-footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
  }
  .gateway-footer-links a {
    color: rgba(244,245,241,0.75);
    text-decoration: none;
    font-size: 0.9rem;
  }
  .gateway-footer-links a:hover { color: var(--accent); }
  .gateway-footer-contact h3 {
    font-family: var(--gateway-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 10px;
  }
  .gateway-footer-contact p {
    font-size: 0.85rem;
    color: rgba(244,245,241,0.6);
    line-height: 1.6;
    margin: 0 0 8px;
  }
  .gateway-footer-contact p:last-child { margin-bottom: 0; }
  .gateway-footer-contact a { color: rgba(244,245,241,0.6); text-decoration: none; }
  .gateway-footer-contact a:hover { color: var(--accent); text-decoration: underline; }
  .gateway-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(244,245,241,0.6);
    text-decoration: none;
  }
  .gateway-footer-social-link:hover { color: var(--accent); }
  .gateway-footer-social-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(244,245,241,0.12);
    flex-shrink: 0;
    position: relative;
    transition: background 0.18s var(--ease);
  }
  .gateway-footer-social-link:hover .gateway-footer-social-icon { background: var(--biz-green); }
  .gateway-footer-social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 11px;
    height: 11px;
    background: var(--text-on-dark);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }
  .gateway-footer-copyright {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(169,188,179,0.75);
  }

  @media (max-width: 620px) {
    .resource-card { grid-template-columns: 1fr; }
    .resource-arrow { display: none; }
    .watermark-mark { display: none; }
  }

/* ==========================================================================
   Part 2 — business article pages
   ========================================================================== */
.biz-breadcrumbs {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 32px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.biz-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.biz-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.biz-breadcrumbs li + li::before { content: '/'; color: var(--border); }
.biz-breadcrumbs a { color: var(--biz-green); text-decoration: underline; text-underline-offset: 3px; }
.biz-breadcrumbs [aria-current="page"] { color: var(--text-muted); }

.biz-article-header { max-width: 760px; margin: 0 auto; padding: 28px 32px 8px; }
.biz-article-header h1 {
  font-family: var(--gateway-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 18px;
}
.biz-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.biz-meta a { color: var(--biz-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.biz-category {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--biz-green);
  margin-bottom: 16px;
}

.biz-article { max-width: 760px; margin: 0 auto; padding: 24px 32px 16px; color: var(--text); }
.biz-article p, .biz-article li { font-size: 1.05rem; line-height: 1.72; }
.biz-article p { margin: 0 0 18px; }
.biz-article h2 {
  font-family: var(--gateway-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  margin: 44px 0 14px;
}
.biz-article h3 { font-family: var(--gateway-serif); font-size: 1.18rem; margin: 26px 0 8px; }
.biz-article ul, .biz-article ol { margin: 0 0 20px; padding-left: 1.3em; }
.biz-article li { margin-bottom: 8px; }
.biz-article a { color: var(--biz-green); text-decoration: underline; text-underline-offset: 3px; }
.biz-article sup a { text-decoration: none; font-weight: 600; padding: 0 2px; }
.biz-lede { font-size: 1.15rem !important; }

.biz-takeaway {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--biz-green);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 26px 0 8px;
  box-shadow: var(--shadow-card);
}
.biz-takeaway p { margin: 0; }
.biz-takeaway-label, .biz-example-label {
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--biz-green);
  margin-bottom: 6px !important;
}
.biz-example-label { margin-top: 4px; }

.biz-checklist { list-style: none; padding-left: 0 !important; }
.biz-checklist li { position: relative; padding-left: 32px; }
.biz-checklist li::before {
  content: '';
  position: absolute; left: 0; top: 0.35em;
  width: 18px; height: 18px;
  border: 2px solid var(--biz-green);
  border-radius: 5px;
}

.biz-refs { max-width: 760px; margin: 0 auto; padding: 8px 32px 0; font-size: 0.9rem; color: var(--text-muted); }
.biz-refs h2 { font-family: var(--gateway-serif); font-size: 1.1rem; color: var(--text); margin: 24px 0 10px; }
.biz-refs ol { padding-left: 1.3em; margin: 0; }
.biz-refs li { margin-bottom: 6px; line-height: 1.55; }
.biz-refs a { color: var(--text-muted); overflow-wrap: anywhere; }

.biz-cta {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 32px;
}
.biz-cta-inner {
  background: #10241c;
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 32px 32px 30px;
}
.biz-cta h2 { font-family: var(--gateway-serif); color: var(--text-on-dark); font-size: 1.45rem; margin: 0 0 10px; }
.biz-cta p { color: rgba(244,245,241,0.78); margin: 0 0 20px; line-height: 1.65; }
.biz-cta .btn { display: inline-flex; min-height: 48px; align-items: center; }

.biz-related { max-width: 760px; margin: 0 auto; padding: 36px 32px 80px; }
.biz-related h2 { font-family: var(--gateway-serif); font-size: 1.25rem; margin: 0 0 14px; }
.biz-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.biz-related a { color: var(--biz-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; line-height: 1.5; }
.biz-related .biz-related-all { margin-top: 18px; display: inline-block; }

/* index page cards: whole-card link without a second keyboard stop */
.biz-index-card h2, .biz-index-card h3 { font-family: var(--gateway-serif); font-size: 1.2rem; line-height: 1.35; margin: 0 0 8px; }
.biz-index-card h2 a, .biz-index-card h3 a { color: var(--text); text-decoration: none; }
.biz-index-card h2 a::after, .biz-index-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.biz-index-card { position: relative; }
.biz-index-card:focus-within { outline: 3px solid var(--biz-green); outline-offset: 3px; }
.biz-index-card h2 a:focus, .biz-index-card h3 a:focus { outline: none; }
.biz-index-card .biz-index-by { margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.biz-index-card .resource-date + .resource-date::before { content: '\00b7'; margin-right: 10px; }
.biz-index-note { max-width: 880px; margin: 0 auto; padding: 0 32px 90px; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.biz-index-note a { color: var(--biz-green); font-weight: 600; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--biz-green); outline-offset: 3px; }

@media (max-width: 620px) {
  .biz-breadcrumbs, .biz-article-header, .biz-article, .biz-refs, .biz-cta, .biz-related { padding-left: 18px; padding-right: 18px; }
  .biz-cta-inner { padding: 26px 22px; }
  .biz-article p, .biz-article li { font-size: 1.02rem; }
}
.biz-index-card .resource-card-top { flex-wrap: wrap; row-gap: 6px; }
.biz-index-card .resource-date { white-space: nowrap; }

/* ==========================================================================
   Part 3 — banner, author blocks, tables, topic groups (Oct 2026)
   ========================================================================== */
/* Banner: same footprint as the homeowner article hero image. The crop is
   anchored on the logo (it sits right of centre in the artwork). */
.biz-banner { max-width: 1180px; margin: 18px auto 0; padding: 0 32px; }
.biz-banner img {
  display: block;
  width: 100%;
  height: clamp(190px, 34vw, 420px);
  object-fit: cover;
  object-position: 64% 50%;
  border-radius: var(--radius-lg);
  background: #0b0b0b;
}

.biz-article-header .author-byline { margin-top: 20px; }
.biz-author { max-width: 760px; margin: 12px auto 0; padding: 0 32px; }
.biz-author .author-card { margin: 0; }
.biz-author .author-card-link { color: var(--biz-green); }
.biz-article-header .author-byline-name a:hover,
.biz-author .author-card-link:hover { color: var(--biz-green); }

/* Tables (worked examples and fill-in scorecards) scroll inside themselves
   on small screens instead of widening the page. */
.biz-article table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.95rem;
}
.biz-article th, .biz-article td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 90px;
}
.biz-article th { background: var(--bg-alt); font-weight: 700; }
.biz-article td:empty::after { content: '\00a0'; }

/* Index page: topic jump links and groups */
.biz-topic-nav { max-width: 880px; margin: 0 auto; padding: 8px 32px 0; }
.biz-topic-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.biz-topic-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--white); color: var(--biz-green); font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.biz-topic-nav a:hover { border-color: var(--biz-green); }
.biz-topic-nav a span { color: var(--text-muted); font-weight: 500; }
.biz-topic { scroll-margin-top: 90px; }
.biz-topic > h2 {
  max-width: 880px; margin: 0 auto; padding: 44px 32px 0;
  font-family: var(--gateway-serif); font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--text);
}
.biz-topic .resource-list { padding-top: 18px; padding-bottom: 10px; }
.biz-topic:last-of-type .resource-list { padding-bottom: 40px; }

@media (max-width: 620px) {
  .biz-banner, .biz-author, .biz-topic-nav { padding-left: 18px; padding-right: 18px; }
  .biz-topic > h2 { padding-left: 18px; padding-right: 18px; }
  .biz-author .author-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
}
