/* CHADS Journal library — page-specific styles. */
.ch-blog-hub {
    position: relative;
    overflow: hidden;
    background: var(--ch-bg);
    color: var(--ch-text);
  }
  .ch-blog-hub,
  .ch-blog-hub * { box-sizing: border-box; }
  .ch-blog-hub a { text-decoration: none; }
  .ch-blog-hub__shell {
    width: min(var(--ch-shell), calc(100% - var(--ch-gutter)));
    margin: 0 auto;
  }
  .ch-blog-hub__section { padding: 76px 0; }
  .ch-blog-hub__section + .ch-blog-hub__section { border-top: 1px solid var(--ch-line); }
  .ch-blog-hub__section--opening {
    position: relative;
    isolation: isolate;
    padding-top: 64px;
    background: linear-gradient(180deg, rgba(7,17,29,.82), rgba(3,7,12,.98));
  }
  .ch-blog-hub__section--opening::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('chads-cognition-bg.webp') right 12% center / min(980px, 72vw) auto no-repeat;
    opacity: .18;
    pointer-events: none;
  }
  .ch-blog-hub__section--opening::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #03070c 0%, rgba(3,7,12,.94) 48%, rgba(3,7,12,.58) 100%);
    pointer-events: none;
  }
  .ch-blog-hub__section--library { background: rgba(7,17,29,.34); }
  .ch-blog-hub__eyebrow {
    margin: 0 0 10px;
    color: var(--ch-gold-light);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
  }
  .ch-blog-hub__heading {
    max-width: 850px;
    margin: 0;
    color: var(--ch-text);
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.2;
  }
  .ch-blog-hub__lead {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--ch-muted);
    font-size: .98rem;
    line-height: 1.82;
  }

  /* Essential editorial entry points */
  .ch-blog-feature-grid {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    grid-template-rows: repeat(2, minmax(190px, auto));
    gap: 18px;
    margin-top: 34px;
  }
  .ch-blog-feature {
    position: relative;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--ch-line);
    border-radius: 14px;
    background: var(--ch-panel);
    color: var(--ch-text) !important;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
  }
  .ch-blog-feature--primary {
    grid-row: 1 / 3;
    min-height: 398px;
    padding: 36px;
    background:
      linear-gradient(145deg, rgba(212,173,89,.13), rgba(7,17,29,.96) 46%),
      var(--ch-panel);
  }
  .ch-blog-feature::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(212,173,89,.14);
    border-radius: 50%;
    pointer-events: none;
  }
  .ch-blog-feature:hover {
    border-color: rgba(212,173,89,.48);
    background-color: var(--ch-panel-2);
    transform: translateY(-3px);
  }
  .ch-blog-feature__label {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    color: var(--ch-gold-light);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .14em;
  }
  .ch-blog-feature h3 {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 19px 0 0;
    color: #fff;
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.48;
  }
  .ch-blog-feature--primary h3 {
    margin-top: auto;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.35;
  }
  .ch-blog-feature p {
    position: relative;
    z-index: 1;
    margin: 13px 0 0;
    color: var(--ch-muted);
    font-size: .91rem;
    line-height: 1.75;
  }
  .ch-blog-feature__more {
    position: relative;
    z-index: 1;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 21px;
    color: var(--ch-gold-light);
    font-size: .82rem;
    font-weight: 900;
  }
  .ch-blog-story {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 18px;
    padding: 27px 29px;
    border: 1px solid rgba(212,173,89,.28);
    border-radius: 14px;
    background: linear-gradient(115deg, rgba(212,173,89,.10), rgba(7,17,29,.96) 38%);
    color: var(--ch-text) !important;
    transition: transform .22s ease, border-color .22s ease;
  }
  .ch-blog-story:hover {
    border-color: rgba(212,173,89,.55);
    transform: translateY(-2px);
  }
  .ch-blog-story__mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(212,173,89,.48);
    border-radius: 50%;
    color: var(--ch-gold-light);
    font-size: 1.3rem;
    font-weight: 900;
  }
  .ch-blog-story__label {
    margin: 0 0 8px;
    color: var(--ch-gold-light);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .14em;
  }
  .ch-blog-story h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.5;
  }
  .ch-blog-story p {
    margin: 8px 0 0;
    color: var(--ch-muted);
    font-size: .88rem;
    line-height: 1.7;
  }
  .ch-blog-story__action {
    color: var(--ch-gold-light);
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
  }

  /* Visitor-oriented category navigator */
  .ch-blog-route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
  }
  .ch-blog-route {
    position: relative;
    display: flex;
    min-height: 225px;
    flex-direction: column;
    overflow: hidden;
    padding: 27px;
    border: 1px solid var(--ch-line);
    border-radius: 14px;
    background: var(--ch-panel);
    color: var(--ch-text) !important;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
  }
  .ch-blog-route:hover {
    border-color: rgba(212,173,89,.48);
    background: var(--ch-panel-2);
    transform: translateY(-3px);
  }
  .ch-blog-route__index {
    color: var(--ch-gold);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .16em;
  }
  .ch-blog-route h3 {
    margin: 18px 0 9px;
    color: #fff;
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.45;
  }
  .ch-blog-route p {
    margin: 0;
    color: var(--ch-muted);
    font-size: .9rem;
    line-height: 1.72;
  }
  .ch-blog-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px;
  }
  .ch-blog-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid rgba(212,173,89,.30);
    border-radius: 999px;
    color: var(--ch-gold-light);
    font-size: .61rem;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
  }
  .ch-blog-route__more {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 17px;
    color: rgba(255,255,255,.58);
    font-size: .77rem;
    font-weight: 900;
  }

  /* Search */
  .ch-blog-search-panel {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid var(--ch-line);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
  }
  .ch-blog-search-panel__title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
  }
  .ch-blog-search-panel__copy {
    margin: 6px 0 0;
    color: var(--ch-muted);
    font-size: .86rem;
    line-height: 1.65;
  }
  .ch-blog-hub__search {
    position: relative;
    max-width: 760px;
    margin-top: 17px;
  }
  .ch-blog-hub__search i {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 1;
    color: #6b5630;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .ch-blog-hub__search input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 48px !important;
    border: 1px solid rgba(212,173,89,.32) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18) !important;
  }

  /* Article library */
  .ch-blog-topic {
    padding-top: 74px;
    scroll-margin-top: 110px;
  }
  .ch-blog-topic:first-of-type { padding-top: 0; }
  .ch-blog-topic__head {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(300px, 1fr);
    gap: 38px;
    align-items: end;
    margin-bottom: 25px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--ch-line);
  }
  .ch-blog-topic__index {
    display: block;
    margin-bottom: 8px;
    color: var(--ch-gold);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .16em;
  }
  .ch-blog-topic__head h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.4vw, 2.08rem);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.35;
  }
  .ch-blog-topic__head p {
    margin: 0;
    color: var(--ch-muted);
    font-size: .94rem;
    line-height: 1.78;
  }
  .ch-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .ch-blog-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--ch-line);
    border-radius: 14px;
    background: var(--ch-panel);
    color: var(--ch-text) !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
  }
  .ch-blog-card:hover {
    border-color: rgba(212,173,89,.42);
    background: var(--ch-panel-2);
    transform: translateY(-2px);
  }
  .ch-blog-card__type {
    align-self: flex-start;
    margin-bottom: 15px;
    color: rgba(255,255,255,.46);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .11em;
  }
  .ch-blog-card h4 {
    margin: 0;
    color: #fff;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.61;
  }
  .ch-blog-card .ch-blog-labels {
    margin-top: 17px;
    padding-top: 0;
  }
  .ch-blog-card__more {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 21px;
    color: rgba(255,255,255,.48);
    font-size: .78rem;
    font-weight: 900;
  }
  .ch-blog-card:hover .ch-blog-card__more { color: var(--ch-gold-light); }

  /* Free content / program distinction */
  .ch-blog-program-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 25px 28px;
    border: 1px solid rgba(212,173,89,.28);
    border-radius: 12px;
    background: linear-gradient(110deg, rgba(212,173,89,.08), rgba(7,17,29,.92) 42%);
  }
  .ch-blog-program-note p {
    margin: 0;
    color: var(--ch-muted);
    font-size: .91rem;
    line-height: 1.75;
  }
  .ch-blog-program-note p + p { margin-top: 6px; }
  .ch-blog-program-note strong { color: #fff; }
  .ch-blog-program-note a {
    color: var(--ch-gold-light) !important;
    font-size: .83rem;
    font-weight: 900;
    white-space: nowrap;
  }

  /* Latest */
  .ch-blog-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
  }
  .ch-blog-latest {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--ch-line);
    border-radius: 14px;
    background: var(--ch-panel);
    color: var(--ch-text) !important;
    transition: border-color .2s ease, transform .2s ease;
  }
  .ch-blog-latest:hover {
    border-color: rgba(212,173,89,.42);
    transform: translateY(-2px);
  }
  .ch-blog-latest__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,.46);
    font-size: .74rem;
    font-weight: 800;
  }
  .ch-blog-latest__tag {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--ch-gold);
    color: #07111d;
    font-size: .67rem;
    font-weight: 900;
  }
  .ch-blog-latest h3 {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.55;
  }
  .ch-blog-latest__excerpt {
    margin: 14px 0 0;
    color: var(--ch-muted);
    font-size: .88rem;
    line-height: 1.7;
  }
  .ch-blog-latest__more {
    display: inline-flex;
    margin-top: auto;
    padding-top: 20px;
    color: var(--ch-gold-light);
    font-size: .82rem;
    font-weight: 900;
  }

  @media (max-width: 991px) {
    .ch-blog-feature-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .ch-blog-feature--primary {
      grid-column: 1 / -1;
      grid-row: auto;
      min-height: 330px;
    }
    .ch-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-blog-topic__head { grid-template-columns: 1fr; gap: 12px; }
    .ch-blog-story { grid-template-columns: 64px minmax(0, 1fr); }
    .ch-blog-story__action { grid-column: 2; }
    .ch-blog-program-note { grid-template-columns: 1fr; gap: 16px; }
    .ch-blog-program-note a { justify-self: start; }
  }
  @media (max-width: 767px) {
    .ch-blog-hub__shell { width: calc(100% - 30px); }
    .ch-blog-hub__section { padding: 56px 0; }
    .ch-blog-hub__section--opening { padding-top: 42px; }
    .ch-blog-hub__heading { font-size: 1.85rem; }
    .ch-blog-hub__lead { font-size: .93rem; }
    .ch-blog-feature-grid,
    .ch-blog-route-grid,
    .ch-blog-grid,
    .ch-blog-latest-grid { grid-template-columns: 1fr; }
    .ch-blog-feature--primary {
      grid-column: auto;
      min-height: 300px;
      padding: 28px;
    }
    .ch-blog-feature { min-height: 220px; padding: 24px; }
    .ch-blog-feature--primary h3 { font-size: 1.7rem; }
    .ch-blog-story {
      grid-template-columns: 1fr;
      gap: 14px;
      padding: 24px;
    }
    .ch-blog-story__mark { width: 56px; height: 56px; }
    .ch-blog-story__action { grid-column: auto; }
    .ch-blog-route { min-height: 220px; padding: 24px; }
    .ch-blog-search-panel { padding: 22px; }
    .ch-blog-topic { padding-top: 58px; }
    .ch-blog-card { min-height: 205px; padding: 22px; }
    .ch-blog-program-note { padding: 23px; }
    .ch-blog-latest { min-height: 0; padding: 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ch-blog-feature,
    .ch-blog-story,
    .ch-blog-route,
    .ch-blog-card,
    .ch-blog-latest { transition: none; }
  }


/* Category color logic: plain-language navigation first, CHADS terminology second. */
.ch-blog-route--foundations { background: linear-gradient(145deg, rgba(20,50,78,.90), rgba(7,17,29,.98)); border-color: rgba(111,178,227,.28); }
.ch-blog-route--input { background: linear-gradient(145deg, rgba(12,60,82,.82), rgba(7,17,29,.98)); border-color: rgba(99,183,202,.28); }
.ch-blog-route--communication { background: linear-gradient(145deg, rgba(72,31,77,.80), rgba(7,17,29,.98)); border-color: rgba(206,123,210,.26); }
.ch-blog-route--practice { background: linear-gradient(145deg, rgba(74,58,22,.52), rgba(7,17,29,.98)); border-color: rgba(212,173,89,.32); }
.ch-blog-route--foundations .ch-blog-route__index,
.ch-blog-topic--foundations .ch-blog-topic__index { color: var(--ch-blue-light); }
.ch-blog-route--input .ch-blog-route__index,
.ch-blog-topic--input .ch-blog-topic__index { color: #9bcad5; }
.ch-blog-route--communication .ch-blog-route__index,
.ch-blog-topic--communication .ch-blog-topic__index { color: #d7a1d8; }
.ch-blog-route--practice .ch-blog-route__index,
.ch-blog-topic--practice .ch-blog-topic__index { color: var(--ch-gold-light); }
.ch-blog-topic { scroll-margin-top: 92px; }
.ch-blog-topic--foundations { --topic-line: rgba(111,178,227,.52); }
.ch-blog-topic--input { --topic-line: rgba(99,183,202,.52); }
.ch-blog-topic--communication { --topic-line: rgba(206,123,210,.48); }
.ch-blog-topic--practice { --topic-line: rgba(212,173,89,.52); }
.ch-blog-topic__head { border-top-color: var(--topic-line, rgba(212,173,89,.45)); }
.ch-blog-latest-grid { content-visibility: auto; contain-intrinsic-size: 700px; }
@media (max-width: 767px) {
  .ch-blog-hub__section--opening::before { background-position: 72% 16%; background-size: 980px auto; opacity: .11; }
  .ch-blog-hub__section--opening::after { background: linear-gradient(180deg, rgba(3,7,12,.72), #03070c 72%); }
}
