/* Blog hub (/blog/, wrapper class .rc-kc). Ported verbatim from the two inline <style> blocks of the live page.
   Source of truth now; imported by components/blog/BlogHub.tsx. */
  .rc-kc {
    --olive:         #9EA471;
    --olive-dark:    #8a9062;
    --charcoal:      #313230;
    --amber:         #F5A623;
    --light-gray:    #f5f5f5;
    --neutral:       #efefef;
    --white:         #ffffff;
    --body-text:     #333333;
    --divider:       rgba(0,0,0,0.08);
    --divider-soft:  rgba(31,30,29,0.08);
    --font-body:     'Inter', sans-serif;
    --font-accent:   'Outfit', sans-serif;

    font-family: var(--font-body);
    color: var(--body-text);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
  }
  .rc-kc * { box-sizing: border-box; }
  :where(.rc-kc h1, .rc-kc h2, .rc-kc h3, .rc-kc h4, .rc-kc p, .rc-kc ul, .rc-kc ol) { margin: 0; padding: 0; }
  :where(.rc-kc ul) { list-style: none; }

  .rc-kc .rc-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

  .rc-kc .rc-eyebrow {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 10px;
  }
  .rc-kc .rc-section-head { text-align: center; margin-bottom: 40px; }
  .rc-kc .rc-section-head h2 {
    font-family: var(--font-accent);
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 12px;
    text-wrap: balance;
  }
  .rc-kc .rc-section-head .rc-section-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: #666;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* ─── BUTTONS ────────────────────────── */
  .rc-kc .rc-btn-primary,
  .rc-kc .rc-btn-primary:link,
  .rc-kc .rc-btn-primary:visited {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--olive);
    color: var(--white) !important;
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 32px;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.2s;
  }
  .rc-kc .rc-btn-primary:hover { background: var(--olive-dark); }
  .rc-kc .rc-btn-primary svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

  /* ─── 1. HERO ────────────────────────── */
  .rc-kc .rc-hero {
    background: var(--charcoal);
    padding: 72px 0 64px;
  }
  .rc-kc .rc-hero .rc-inner { text-align: center; }
  .rc-kc .rc-hero h1 {
    font-family: var(--font-body);
    font-size: 40px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    text-wrap: balance;
  }
  .rc-kc .rc-hero-sub {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
    text-wrap: pretty;
  }

  /* ─── 2. BROWSE BY TOPIC (FILTER) ────── */
  .rc-kc .rc-topics { background: var(--white); padding: 80px 0; }
  .rc-kc .rc-topics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
  }
  .rc-kc .rc-topic-card {
    background: var(--light-gray);
    border: 1px solid var(--divider-soft);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
  }
  /* button reset so the filter cards look identical to the old <a> cards */
  .rc-kc button.rc-topic-card {
    width: 100%;
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
  }
  .rc-kc .rc-topic-card:hover {
    border-color: var(--olive);
    transform: translateY(-2px);
    background: var(--white);
  }
  .rc-kc .rc-topic-card:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
  }
  /* active (currently-selected) filter */
  .rc-kc .rc-topic-card.is-active {
    border-color: var(--olive);
    background: rgba(158,164,113,0.10);
  }
  .rc-kc .rc-topic-card.is-active .rc-topic-icon { background: var(--olive); }
  .rc-kc .rc-topic-card.is-active .rc-topic-icon svg { fill: var(--white); }
  .rc-kc .rc-topic-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(158,164,113,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: background 0.2s;
  }
  .rc-kc .rc-topic-icon svg { width: 24px; height: 24px; fill: var(--olive); transition: fill 0.2s; }
  .rc-kc .rc-topic-card h3 {
    font-family: var(--font-accent);
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 8px;
    /* Reserve 2 lines so 1-line and 2-line labels keep cards the same height */
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .rc-kc .rc-topic-count {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--olive);
    margin-top: auto;
    padding-top: 12px;
  }

  /* ─── 3. RECENTLY PUBLISHED (GRID) ───── */
  .rc-kc .rc-recent { background: var(--light-gray); padding: 80px 0; scroll-margin-top: 20px; }
  .rc-kc .rc-results-count {
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: #888;
    margin: -20px auto 32px;
  }
  .rc-kc .rc-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .rc-kc .rc-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--font-body);
    font-size: 15px;
    color: #888;
    padding: 40px 0;
  }
  .rc-kc .rc-article-card {
    background: var(--white);
    border: 1px solid var(--divider-soft);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
  }
  .rc-kc .rc-article-card:hover {
    border-color: var(--olive);
    transform: translateY(-2px);
  }
  .rc-kc .rc-article-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--neutral);
  }
  .rc-kc .rc-article-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
  }
  .rc-kc .rc-article-card:hover .rc-article-photo img { transform: scale(1.04); }
  .rc-kc .rc-article-body {
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .rc-kc .rc-article-tag {
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 10px;
    align-self: flex-start;
  }
  .rc-kc .rc-article-body h3 {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 10px;
    text-wrap: balance;
  }
  .rc-kc .rc-article-body h3 a { color: inherit; text-decoration: none; }
  .rc-kc .rc-article-body h3 a:hover { color: var(--olive); }
  .rc-kc .rc-article-excerpt {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    text-wrap: pretty;
  }
  .rc-kc .rc-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: #888;
    padding-top: 14px;
    border-top: 1px solid var(--divider);
  }
  .rc-kc .rc-article-link {
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--olive);
    text-decoration: none;
    letter-spacing: 1px;
  }
  .rc-kc .rc-article-link:hover { color: var(--olive-dark); }

  /* ─── 4. HELP NAV ────────────────────── */
  .rc-kc .rc-help { background: var(--white); padding: 72px 0; }
  .rc-kc .rc-help-head { text-align: center; margin-bottom: 36px; }
  .rc-kc .rc-help-head h2 {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 10px;
    text-wrap: balance;
  }
  .rc-kc .rc-help-head p {
    font-family: var(--font-body);
    font-size: 15px;
    color: #666;
    max-width: 580px;
    margin: 0 auto;
  }
  .rc-kc .rc-help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
  }
  .rc-kc .rc-help-card {
    background: var(--light-gray);
    border: 1px solid var(--divider-soft);
    border-radius: 8px;
    padding: 22px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
  }
  .rc-kc .rc-help-card:hover {
    border-color: var(--olive);
    transform: translateY(-2px);
    background: var(--white);
  }
  .rc-kc .rc-help-icon svg { width: 22px; height: 22px; fill: var(--olive); }
  .rc-kc .rc-help-card-title {
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
  }
  .rc-kc .rc-help-card-sub {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: #777;
    line-height: 1.4;
  }

  /* ─── 5. CLOSING CTA ─────────────────── */
  .rc-kc .rc-close { background: var(--neutral); }
  .rc-kc .rc-close-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .rc-kc .rc-close-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .rc-kc .rc-close-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 64px 48px;
  }
  .rc-kc .rc-close-content h2 {
    font-family: var(--font-accent);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--charcoal);
    margin-bottom: 24px;
    max-width: 420px;
    text-wrap: balance;
  }

  /* ─── RESPONSIVE ─────────────────────── */
  @media (max-width: 1200px) {
    .rc-kc .rc-inner { padding: 0 32px; }
    .rc-kc .rc-topics-grid { gap: 12px; }
  }
  @media (max-width: 960px) {
    .rc-kc .rc-hero { padding: 56px 0 48px; }
    .rc-kc .rc-hero h1 { font-size: 32px; }
    .rc-kc .rc-section-head h2 { font-size: 26px; }

    .rc-kc .rc-topics { padding: 56px 0; }
    .rc-kc .rc-topics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }

    .rc-kc .rc-recent { padding: 56px 0; }
    .rc-kc .rc-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .rc-kc .rc-help { padding: 56px 0; }
    .rc-kc .rc-help-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }

    .rc-kc .rc-close-inner { grid-template-columns: 1fr; }
    .rc-kc .rc-close-photo { min-height: 280px; }
    .rc-kc .rc-close-photo img { height: 280px; }
    .rc-kc .rc-close-content { padding: 48px 24px; }
    .rc-kc .rc-close-content h2 { font-size: 28px; }
  }
  @media (max-width: 768px) {
    .rc-kc .rc-inner { padding: 0 20px; }
    .rc-kc .rc-hero { padding: 48px 0 40px; }
    .rc-kc .rc-hero h1 { font-size: 28px; }
    .rc-kc .rc-hero-sub { font-size: 16px; }

    .rc-kc .rc-topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }

    .rc-kc .rc-article-grid { grid-template-columns: 1fr; max-width: 460px; }

    .rc-kc .rc-close-content h2 { font-size: 24px; }
  }
  @media (max-width: 480px) {
    .rc-kc .rc-inner { padding: 0 16px; }
    .rc-kc .rc-hero { padding: 40px 0 32px; }
    .rc-kc .rc-hero h1 { font-size: 26px; }

    .rc-kc .rc-topics { padding: 44px 0; }
    .rc-kc .rc-topic-card { padding: 20px 14px; }

    .rc-kc .rc-recent { padding: 44px 0; }
    .rc-kc .rc-article-photo { height: 180px; }
    .rc-kc .rc-article-body { padding: 20px 18px 18px; }
    .rc-kc .rc-article-body h3 { font-size: 17px; }

    .rc-kc .rc-help { padding: 48px 0; }
    .rc-kc .rc-help-grid { grid-template-columns: 1fr; }

    .rc-kc .rc-close-content { padding: 40px 20px; }
    .rc-kc .rc-close-content h2 { font-size: 22px; }
  }

  /* reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .rc-kc * { transition: none !important; }
    .rc-kc .rc-recent { scroll-behavior: auto; }
  }
