/* NN News HP — independent Literature / Analysis cards (v1)
   No selectors target the lead carousel, Top Stories, or existing article cards. */
.nn-la-desktop{margin:15px 0 0;min-width:0}
.nn-la-rotator{position:relative;height:185px;overflow:hidden;border:1px solid var(--border);border-radius:9px;background:var(--card);box-shadow:var(--shadow)}
.nn-la-card{display:grid;grid-template-columns:minmax(0,36%) minmax(0,1fr);align-items:stretch;overflow:hidden;min-width:0;color:var(--ink);background:var(--card);border-radius:9px}
.nn-la-desktop .nn-la-card{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .8s ease,visibility 0s linear .8s}
.nn-la-desktop .nn-la-card.is-active{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .8s ease,visibility 0s linear 0s;z-index:1}
.nn-la-photo{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(140deg,#dfebe4,#c9ddce)}
.nn-la-photo img{width:min(100%,185px);height:auto;max-height:100%;aspect-ratio:1/1;object-fit:contain;display:block}
.nn-la-photo-empty{font-size:2.1rem;color:#3e7b64}
.nn-la-body{padding:15px 18px 24px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.nn-la-category{font-size:.79rem;font-weight:700;color:var(--green);border-left:3px solid var(--gold);padding-left:8px;line-height:1.6}
.nn-la-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:7px 0 5px;font-size:1.17rem;font-weight:750;line-height:1.48;overflow-wrap:anywhere}
.nn-la-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:0;color:var(--muted);font-size:.87rem;line-height:1.5;overflow-wrap:anywhere}
.nn-la-meta{display:block;color:var(--muted);font-size:.75rem;margin-top:8px}
.nn-la-desktop .nn-la-card:hover .nn-la-title,.nn-la-mobile .nn-la-card:hover .nn-la-title{color:var(--green)}
.nn-la-nav{position:absolute;z-index:3;bottom:8px;right:10px;display:flex;gap:7px}
.nn-la-nav button{width:26px;height:26px;border-radius:50%;background:var(--card);border:1px solid var(--border);color:var(--green);font-size:17px;line-height:1;padding:0;box-shadow:0 1px 4px #0002}
.nn-la-nav button:hover,.nn-la-nav button:focus-visible{background:var(--deep);color:white}
.nn-la-mobile{display:none}
@media(min-width:701px) and (max-width:1050px){.nn-la-rotator{height:185px}.nn-la-body{padding:10px 12px 22px}.nn-la-title{font-size:1rem}.nn-la-excerpt{font-size:.82rem}}
@media(max-width:700px){
 .nn-la-desktop{display:none!important}
 .nn-la-mobile{display:grid;gap:12px;margin:18px 0 24px;min-width:0}
 .nn-la-mobile .nn-la-card{min-height:154px;grid-template-columns:minmax(0,36%) minmax(0,1fr);border:1px solid var(--border);box-shadow:var(--shadow)}
 .nn-la-mobile .nn-la-photo{min-height:154px}
 .nn-la-mobile .nn-la-body{padding:11px 12px;justify-content:center}
 .nn-la-mobile .nn-la-title{font-size:1rem;margin:5px 0;line-height:1.48}
 .nn-la-mobile .nn-la-excerpt{font-size:.82rem;-webkit-line-clamp:2;line-clamp:2}
 .nn-la-mobile .nn-la-meta{font-size:.74rem;margin-top:5px}
}
@media(max-width:380px){.nn-la-mobile .nn-la-card{grid-template-columns:minmax(0,33%) minmax(0,1fr)}.nn-la-mobile .nn-la-excerpt{display:none}}
@media(prefers-reduced-motion:reduce){.nn-la-desktop .nn-la-card,.nn-la-desktop .nn-la-card.is-active{transition:none}}


/* NN-LA-PROPORTIONS-V2: desktop-only, preserve every image without cropping.
   Photo widths follow original aspect ratio; the shared image height stays fixed. */
@media (min-width:701px) {
  .nn-la-desktop .nn-la-card {
    grid-template-columns:minmax(0,var(--nn-la-photo-width,36%)) minmax(0,1fr);
  }
  .nn-la-desktop .nn-la-photo {
    width:100%;
    height:var(--nn-la-photo-height,100%);
    min-height:0;
    align-self:center;
    justify-self:start;
    background:transparent;
  }
  .nn-la-desktop .nn-la-photo img {
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:none;
    aspect-ratio:auto;
    object-fit:contain;
  }
}


/* NN-LA-MOBILE-WHITE-TOP-CENTER-V1 */
@media (max-width:700px) {
  .nn-la-mobile .nn-la-card {
    background: #fff;
  }

  .nn-la-mobile .nn-la-photo {
    background: #fff !important;
    display: flex;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    box-sizing: border-box;
  }

  .nn-la-mobile .nn-la-photo img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 9px;
  }

  .nn-la-mobile .nn-la-photo img[data-nn-la-aspect="1"] {
    aspect-ratio: 1 / 1 !important;
  }

  .nn-la-mobile .nn-la-photo img[data-nn-la-aspect="1.77777778"] {
    aspect-ratio: 16 / 9 !important;
  }
}


/* NN-DEEP-THOUGHT-BYLINE-V1 */
.nn-la-byline {
    color: var(--green);
    font-weight: 600;
}

@media (max-width:700px) {
    .nn-la-mobile .nn-la-excerpt {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}


/* NN-LA-MOBILE-HEADING-GAP-V2 */
@media (max-width:700px) {
  .hero-layout:has(+ .nn-la-mobile) {
    margin-bottom: 0 !important;
  }

  .hero-layout + .nn-la-mobile {
    margin-top: 0 !important;
  }

  .nn-la-mobile > .section-title {
    margin-top: 12px !important;
  }
}


/* NN-DEEP-THOUGHT-HEADING-TO-CARD-V3 */
@media (max-width:700px) {
  .nn-la-mobile {
    row-gap: 8px !important;
  }

  .nn-la-mobile > .section-title {
    margin-bottom: 6px !important;
  }

  .nn-la-mobile > .nn-la-card + .nn-la-card {
    margin-top: 4px !important;
  }
}
