/* lpen-single-post.css — Elementor single-post template 971 (every news and HR
   blog post). Source: single-post/build_single_post.py, which deploys it.

   Every selector contains .elementor-971 or #lpen-ps: lpen-assets/ is enqueued
   site-wide, and the build refuses an unanchored selector. */

/* ---------------------------------------------------------------- layout -- */
/* Elementor drops _flex_basis / _flex_shrink on containers (CLAUDE.md §18q),
   so the two columns are sized here. */
.elementor-971 #lpen-ps-main{flex:1 1 0;min-width:0;width:auto}
.elementor-971 #lpen-ps-side{flex:0 0 352px;width:352px;min-width:0}

/* ---------------------------------------------------------------- meta ---- */
.elementor-971 #lpen-ps-main .elementor-post-info a{color:inherit;text-decoration:none}
.elementor-971 #lpen-ps-main .elementor-post-info a:hover{color:#0F5C96;text-decoration:underline}

/* ---------------------------------------------------------- featured image */
.elementor-971 .elementor-widget-theme-post-featured-image img{
  display:block;width:100%;height:auto;border-radius:10px;border:1px solid #DCE3E9}

/* ---------------------------------------------------------------- prose --- */
/* The post body is WordPress content, not Elementor widgets, so it is styled
   as prose here: left aligned (it was justified), real heading sizes, and
   links that read as links. The kit gives every <p> margin 14px 0. */
.elementor-971 .elementor-widget-theme-post-content{color:#111820;overflow-wrap:break-word}
.elementor-971 .elementor-widget-theme-post-content p{margin:0 0 1.1em;text-align:left}
.elementor-971 .elementor-widget-theme-post-content h2{
  font-size:26px;line-height:1.25;font-weight:700;color:#022E48;margin:1.6em 0 .55em;text-transform:none}
.elementor-971 .elementor-widget-theme-post-content h3{
  font-size:21px;line-height:1.3;font-weight:700;color:#022E48;margin:1.4em 0 .5em;text-transform:none}
.elementor-971 .elementor-widget-theme-post-content h4{
  font-size:18px;line-height:1.35;font-weight:700;color:#022E48;margin:1.3em 0 .4em}
.elementor-971 .elementor-widget-theme-post-content a{color:#0F5C96;text-decoration:underline;
  text-underline-offset:2px;text-decoration-thickness:1px}
.elementor-971 .elementor-widget-theme-post-content a:hover{color:#0B4465;text-decoration-thickness:2px}
.elementor-971 .elementor-widget-theme-post-content ul,
.elementor-971 .elementor-widget-theme-post-content ol{margin:0 0 1.1em;padding-left:1.4em}
.elementor-971 .elementor-widget-theme-post-content li{margin:0 0 .4em}
.elementor-971 .elementor-widget-theme-post-content img{max-width:100%;height:auto;border-radius:6px}
.elementor-971 .elementor-widget-theme-post-content blockquote{
  margin:1.4em 0;padding:4px 0 4px 20px;border-left:3px solid #0F5C96;color:#4A5666}
.elementor-971 .elementor-widget-theme-post-content table{width:100%;border-collapse:collapse;
  font-size:16px;margin:0 0 1.2em;display:block;overflow-x:auto}
.elementor-971 .elementor-widget-theme-post-content th,
.elementor-971 .elementor-widget-theme-post-content td{border:1px solid #DCE3E9;padding:8px 10px;text-align:left}
.elementor-971 .elementor-widget-theme-post-content > :last-child{margin-bottom:0}

/* --------------------------------------------- sidebar: coming up next ---- */
/* The component's card lives on the 38562 grid cell on course pages; here the
   mount sits alone, so it carries its own card, and it is simplified for a
   340px column: no lead paragraph, four rows, the chip under the title. */
.elementor-971 #lpen-ps-up #lpen-up .up__panel{
  background:#fff;border:1px solid #DCE3E9;border-radius:10px;padding:24px;height:auto}
.elementor-971 #lpen-ps-up #lpen-up .up__lead{display:none}
.elementor-971 #lpen-ps-up #lpen-up .up__h{margin-bottom:14px}
.elementor-971 #lpen-ps-up #lpen-up .up__row:nth-child(n+5){display:none}
.elementor-971 #lpen-ps-up #lpen-up .up__link{
  grid-template-columns:48px minmax(0,1fr);column-gap:14px;row-gap:6px;padding:14px 4px}
.elementor-971 #lpen-ps-up #lpen-up .up__when{padding:6px 0}
.elementor-971 #lpen-ps-up #lpen-up .up__d{font-size:18px}
.elementor-971 #lpen-ps-up #lpen-up .up__t{font-size:15px}
.elementor-971 #lpen-ps-up #lpen-up .up__tag{grid-column:2;justify-self:start}

/* --------------------------------------------- sidebar: newsletter -------- */
/* The kit uppercases headings, paragraphs and selects; the eyebrow (a <p>
   heading widget) keeps its own uppercase. */
.elementor-971 #lpen-ps-news h2.elementor-heading-title,
.elementor-971 #lpen-ps-news .elementor-widget-text-editor p,
.elementor-971 #lpen-ps-news select{text-transform:none}
/* Cloudflare Turnstile is a fixed 300px iframe: the card's inner width is
   352 - 2x24 - 2 = 302px, so it fits without overflow. */
.elementor-971 #lpen-ps-news .cf-turnstile,
.elementor-971 #lpen-ps-news iframe{max-width:100%}
.elementor-971 #lpen-ps-news .elementor-heading-title{margin:0}
.elementor-971 #lpen-ps-news p{margin:0}
.elementor-971 #lpen-ps-news .elementor-field-group{margin-bottom:0}
.elementor-971 #lpen-ps-news .elementor-field{min-height:44px}
.elementor-971 #lpen-ps-news .elementor-button{width:100%;min-height:44px;justify-content:center}

/* On desktop the signup travels with the reader. The offset clears the
   header: 121px expanded, 65px condensed, plus 20px (CLAUDE.md §18q, "the
   header has four heights"). No transition on top, or it stops re-resolving
   --lpen-sticky-top. */
@media (min-width:1025px){
  .elementor-971 #lpen-ps-news{position:sticky;top:calc(var(--lpen-sticky-top, 0px) + 141px)}
  body:has(#lpen-hdr.is-scrolled) .elementor-971 #lpen-ps-news{
    top:calc(var(--lpen-sticky-top, 0px) + 85px)}
}

/* ---------------------------------------------------------------- tablet -- */
@media (max-width:1024px){
  .elementor-971 #lpen-ps-main,
  .elementor-971 #lpen-ps-side{flex:1 1 auto;width:100%}
}
@media (min-width:768px) and (max-width:1024px){
  .elementor-971 #lpen-ps-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;align-items:start}
}

/* ------------------------------------------------------------- more news -- */
.elementor-971 #lpen-ps-more .elementor-post{
  background:#fff;border:1px solid #DCE3E9;border-radius:10px;overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s}
.elementor-971 #lpen-ps-more .elementor-post:hover{border-color:#B9CBD9;
  box-shadow:0 2px 6px rgba(1,32,50,.08),0 8px 24px rgba(1,32,50,.06)}
.elementor-971 #lpen-ps-more .elementor-post__thumbnail__link{margin:0 !important;width:100%}
.elementor-971 #lpen-ps-more .elementor-post__thumbnail{border-radius:0}
.elementor-971 #lpen-ps-more .elementor-post__text{padding:16px 18px 20px}
.elementor-971 #lpen-ps-more .elementor-post__title{margin:0}
.elementor-971 #lpen-ps-more .elementor-post__title a{text-decoration:none;color:#022E48}
.elementor-971 #lpen-ps-more .elementor-post__title a:hover{text-decoration:underline;color:#0F5C96}
.elementor-971 #lpen-ps-more .elementor-post__meta-data{border:0;padding:0;margin-top:8px}
