/* ANL Professional 2.3 — Editorial polish; no homepage replacement.
   Designed to layer over 2.2 colour mapping and user-created GenerateBlocks layouts.
   Preserve sidebar embeds, custom query blocks, related-story grids and category colours. */

/* Stronger, still compact masthead */
body.anl-professional .main-navigation .main-nav > ul > li > a {
  font-size: 14px; font-weight: 700; letter-spacing: .005em;
}
@media(min-width: 769px){
  body.anl-professional .main-navigation .inside-navigation {
    min-height: 54px;
  }
  body.anl-professional .main-navigation .main-nav > ul > li > a {
    line-height: 54px;
  }
}
/* More comfortable reading without increasing density dramatically */
body.anl-professional.home .gb-loop-item h2,
body.anl-professional.home .gb-loop-item h3,
body.anl-professional.home .gb-loop-item h4 {
  line-height: 1.4;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}
body.anl-professional.home .gb-loop-item h2 a,
body.anl-professional.home .gb-loop-item h3 a,
body.anl-professional.home .gb-loop-item h4 a {
  text-decoration: none;
}
body.anl-professional.home .gb-loop-item h2 a:hover,
body.anl-professional.home .gb-loop-item h3 a:hover,
body.anl-professional.home .gb-loop-item h4 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* Give section heading bars clear, uniform sizing, retaining existing colours. */
body.anl-professional.home :is(
  .gb-element-2e185fee,
  .gb-element-d206bd30,
  .gb-element-e8ab9a90,
  .gb-element-db65774e
) {
  min-height: 42px;
  box-sizing: border-box;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 8px !important;
  box-shadow: 0 2px 7px rgba(14,35,67,.09);
}
/* Make the usual post-query cards visually tidy, without modifying hero layout. */
body.anl-professional.home .gb-loop-item {
  min-width: 0;
}
body.anl-professional.home .gb-loop-item :is(.gb-headline,.gb-text) {
  overflow-wrap: anywhere;
}
body.anl-professional.home .gb-loop-item img {
  display: block;
  border-radius: 7px;
}
/* Avoid image hover jumps and unnecessary animations on dense newsroom screens. */
body.anl-professional.home .gb-loop-item:hover {
  transform: none;
}
/* Cards from the optional theme-native homepage. */
body.anl-professional .anl-story-title {line-height: 1.45 !important;}
body.anl-professional .anl-card-compact .anl-story-title {
  font-size: 14px !important;
}
body.anl-professional .anl-card-sidebar .anl-story-title {
  font-size: 13px !important;
}
body.anl-professional .anl-side-panel .anl-card-sidebar {
  padding-top: 12px;
  padding-bottom: 12px;
}
/* Clean, readable widgets; embeds (FB/YouTube iframe/video) remain untouched. */
body.anl-professional #right-sidebar .widget-title,
body.anl-professional #right-sidebar h2.widget-title {
  font-size: 18px;
  line-height: 1.35;
}
body.anl-professional #right-sidebar .inside-right-sidebar {
  min-width: 0;
}
/* Keep embeds contained without distorting their height. */
body.anl-professional #right-sidebar iframe {
  max-width: 100%;
}
/* Footer rhythm */
body.anl-professional .site-footer,
body.anl-professional #colophon {line-height: 1.6;}
body.anl-professional .site-footer a:focus-visible,
body.anl-professional #colophon a:focus-visible {
  outline: 2px solid #fbbf24; outline-offset: 3px;
}
/* Avoid horizontal overflows and protect the working related-stories non-carousel. */
body.anl-professional .anl-related-grid {
  min-width: 0;
}
body.anl-professional .anl-related-grid > * {min-width:0;}
@media (max-width: 767px) {
  body.anl-professional .main-navigation .menu-toggle {
    min-height: 46px;
  }
  body.anl-professional.home .gb-loop-item h2,
  body.anl-professional.home .gb-loop-item h3 {
    line-height: 1.45;
  }
  body.anl-professional .anl-card-compact .anl-story-title {
    font-size: 14px !important;
  }
  body.anl-professional .anl-card-sidebar .anl-story-title {
    font-size: 13px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.anl-professional .gb-loop-item,
  body.anl-professional .anl-story-card { transition: none !important; }
}
