
/* ==========================================================================
   CSS Variables (Design Tokens) - Dark Mode with AAA Contrast
   ========================================================================== */
   :root {
    /* Dark Mode Backgrounds - Pure black for maximum contrast */
    --header-bg: #000000;
    --footer-bg: #000000;
    --body-bg: #253735;
    --card-bg: #1a1a1a;
    
    /* Text Colors - AAA Contrast Ratios */
    --text-dark: #ffffff;  /* White text on black: 21:1 contrast (exceeds AAA) */
    --text-light: #ffffff;  /* White text: 21:1 contrast */
    --text-muted: #b3b3b3;  /* Light gray on black: 7.1:1 contrast (AAA compliant for normal text) */
    
    /* Accent Colors - Light colors for visibility on dark */
    --accent: #ffffff;  /* White accent for links/buttons */
    --accent-hover: #ffffff;  /* Slightly darker white for hover */
    
    /* Search Form */
    --search-bg: #1a1a1a;
    --search-input-bg: #1a1a1a;
    --search-input-text: #ffffff;
    --search-btn-bg: #ffffff;
    --search-btn-text: #000000;
    
    /* Borders - Light borders on dark background */
    --border-color: rgba(255, 255, 255, 0.15);  /* Light border: 6.8:1 contrast */
    --border-dark: rgba(255, 255, 255, 0.25);  /* Darker light border: 8.5:1 contrast */
    
  }
   

  /* inline:all start */
  
  :where(h1) {
    margin-block: 0.67em;
    font-size: 2em;
  }

  .tagline {
    font-size: 14px;
  margin-top: -20px;
  margin-bottom: 25px;
  }

  .search-btn {
    border-radius: 0 10px 10px 0;
    background: white;
    border: none;
    padding: 10px 20px;
    color: #253735;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 185px;
  }

  .search-input {
    background: #253735;
    border: 1px solid white;
    padding: 10px 15px;
    color: var(--search-input-text);
    font-size: 16px;
    width: 100%;
    font-family: 'Helvetica', Arial, sans-serif;
    min-width: 0;
    border-radius: 10px 0 0 10px;
  }

  .search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: 0;
    width: 100%;
  }

  .header-nav {
    margin-bottom: 0;
    margin-top: 35px;
    border-top: 1px solid white;
    padding-top: 31px;
  }

  .header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
      margin-top: 0px;
      margin-bottom: 0px;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 40px;
      row-gap: 40px;
    flex-wrap: wrap;
    row-gap: 15px;
  }

  .header-nav li {
    margin: 0;
    padding: 0;
  }

  #topic-description.homepage-description {
    border-top: 1px solid white;
    padding-top: 30px;
    padding-bottom: 0;
    margin-top: 11px;
  }

  @media (max-width: 1200px) {
    ol.main-listing, ol#main-listing {
      padding-top: 30px;
    }

    .search-btn {
      font-size: 14px;
      min-width: 129px;
    }



    #topic-title {
      margin-top: 20px !important;
    }

    .static-page-content {
      margin-top: 20px !important;
    }

    #topic-description.homepage-description {
      margin-top: 20px !important;
      padding-bottom: 3px;
    }


  }


  @media (min-width: 1200px) {

    .search-results-info {  
      margin-top: 11px !important;
    }

  }




  @media (max-width: 768px) {
    .search-bar {
      width: 100%;
    }

    .search-input {
      width: 100%;
      flex: 1;
      border-radius: 10px 0 0 10px;
    }

  }



  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
  }
  html, body {
    margin: 0;
    padding: 0;
    background: #253735;
    color: #ffffff;
    font-family: 'Helvetica', serif;
    line-height: 1.6;
    font-size: 16px;
  }
  body {
    min-height: 100vh;
  }

  @media (min-width: 990px) {

    body {
      padding-left: 20px !important;
      padding-right: 20px !important;
    }

}

  a {
    color: #ffffff;
    text-decoration: none;
  }
  .site-header {
    color: var(--text-light);
    padding: 0;
  }
  .site-header,
  .content-wrapper,
  .article-wrapper,
  .main-wrapper ,
  .site-footer{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  #topic-description {
font-size: 16px;
  margin-top: -8px;
  margin-bottom: 28px;
  line-height: 29px;
  }
  


  .article-wrapper {
    border-top: 1px solid white;
    margin-top: 18px;
  }

  .static-page-content {
    border-top: 1px solid white;
    margin-top: 11px;
  } 

  .static-page-content h1 {
    margin-top: 30px;
    margin-bottom: -18px;
  }

  .static-page-content h2 {
    margin-top: 20px;
  }

  .static-page-content ul {
    padding-left: 16px;
  }
 
  .static-page-content ul li {
  background: none;
  margin-left: 0;
  padding-left: 4px;
  padding-top: 0;
  padding-bottom: 15px;
  margin-top: 0;
  margin-bottom: 0;
  }

  nav a {
    margin-right: 12px;
    color: var(--accent);
    text-decoration: none;
  }

  .static-page-content ul li:last-child {
    margin-bottom: 15px !important;
    margin-top: 0;
    padding-bottom: 0;
  }

 .static-page-content ul li:first-child {
    padding-top: 0;
  }

  .static-page-content p, .static-page-content li {
    font-size: 18px;
  line-height: 33px;
  font-family: 'Helvetica', Arial, sans-serif;
}

  .article-content {
    padding: 0 40px;
    width: 100%;
    margin: 0 auto;
  }
  .article-content {
    padding: 30px 0 38px;
  
  }
  .site-logo {
    margin: 0;
    line-height: 1;
  }
  
  .site-logo svg {
    display: block;
    height: 60px;
    width: auto;
    margin-top: 22px;
    margin-bottom: 17px;
  }
  .site-logo a {
    color: var(--text-light);
    text-decoration: none;
  }
   
  .site-logo a:hover {
    opacity: 1 !important;
    color: white !important;
  }
  
  .search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: 0;
    width: 100%;
  }
  .search-input {
    background: #253735;
    border: 1px solid white;
    padding: 10px 15px;
    color: var(--search-input-text);
    font-size: 16px;
    width: 100%;
    font-family: 'Helvetica', Arial, sans-serif;
    min-width: 0;
    border-radius: 10px 0 0 10px;
  }
  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .search-btn {
    border-radius: 0 10px 10px 0;
    background: var(--search-btn-bg);
    border: none;
    padding: 10px 20px;
    color: #253735;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 185px;
  }
  
  .search-btn:hover {
    text-decoration: underline !important;
  }
  
  .at-a-glance {
    background: #192b29;
    padding: 28px 30px;
     padding-top: 16px;
    border-radius: 20px;
    margin-bottom: 28px;
    margin-top: 25px;
  }
  

  .at-a-glance h2 {
    margin-bottom: 21px;
  }

  .article-page .search-bar {
    display: none;
  }

  .article-page .header-nav {
    margin-top: 15px;
  }


   
  
  .at-a-glance li {
    padding-left: 2px;
    margin-bottom: 18px;
    line-height: 29px;
  }

  .at-a-glance ul {
    margin-bottom: 0 !important;
  }

  .at-a-glance li:last-child {
    margin-bottom: 0 !important;
  }

  .further-reading {
    background: #192b29;
    padding: 28px 30px;
    padding-top: 16px;
    border-radius: 20px;
    margin-bottom: 28px;
    margin-top: 25px;
  }

  .further-reading h2 {
    margin-bottom: 21px;
  }

  .further-reading li {
    padding-left: 2px;
    margin-bottom: 18px;
    line-height: 29px;
  }

  .further-reading ul {
    margin-bottom: 0 !important;
  }

  .further-reading li:last-child {
    margin-bottom: 0;
  }
  
  .search-btn:focus-visible {
    outline: 3px solid var(--search-btn-text);
    outline-offset: 2px;
  }
  .header-nav {
    margin-bottom: 0;
    margin-top: 35px;
    border-top: 1px solid white;
    padding-top: 31px;
  }
  .header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    row-gap: 15px;
  }
  .header-nav li {
    margin: 0;
    padding: 0;
  }
  .header-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: block;
  }
  
  .header-nav a.active {
    text-decoration: underline;
  }
  
  .header-nav a:focus-visible {
    outline-color: var(--text-light);
  }
  .main-wrapper {
    background: var(--body-bg);
    padding: 0;
  }
  .main-wrapper ol {
    list-style: none; 
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', Arial, sans-serif;
    margin-top: 11px;
    border-top: 1px solid white;
    padding-top: 40px;
  }
  .main-wrapper li {
    margin: 28px 0 24px;
    padding-top: 10px;
    background: #192b29;
    padding: 25px 30px 30px;
    border-radius: 20px;
    
  }

  .main-wrapper li.article-new h2 {
    padding-right: 77px;
  }
  
  .main-wrapper li:last-child {
    margin-bottom: 24px !important;
  }
  
  .main-listing li p, #main-listing li p {
   margin: 3px 0;
  }
  
  .main-listing li p *, #main-listing li p * {
    font-size: 12px;
  }
  
  .more-on-topic.main-wrapper {
    padding-left: 0;
    border-top: 1px solid white;
    margin-top: 32px;
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: -20px;
  }

  .more-on-topic.main-wrapper ol {
    border-top: 0;
    padding-top: 4px;
  }

  .more-on-topic.main-wrapper h2 {
    font-size: 23px;
    margin-top: 14px;
  }

  .more-on-topic.main-wrapper li h2 {
  margin-top: 3px;
  }

  .main-listing li h2, #main-listing li h2 {
    font-size: 25px;
    margin: 3px 0 3px;
  }
  
  
  .main-wrapper li:first-child {
    margin: 0;
    border-top: 0;
    padding-top: 25px;
  }
  
  .language-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-family: 'Helvetica', Arial, sans-serif;
    color: white !important;
    border-bottom: 1px solid white;
    padding-bottom: 17px;
    padding-top: 18px;
  }
  .language-option {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
  }
  
  a.language-option {
    text-decoration: none;
    opacity: 1 !important;
    color: white !important;
    font-weight: 400;
  }
  
  
  
  a.language-option:hover {
    text-decoration: underline;
    opacity: 1 !important;
    color: white !important;
  }
  
  .language-option.language-current {
    font-weight: 600;
  }
  
  /* RSS Button Styles - matches NEW button style but orange */
  .rss-button {
    background-color: #FF771C;
    color: #253735 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    margin-left: auto;
  }
  
  .rss-button:hover {
    text-decoration: underline;
    background-color: #FF771C;
    color: #253735 !important;
  }
  
  .rss-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background-color: #FF771C;
    outline: 2px solid #fff;
    color: #253735 !important;
  }
  
  .rss-button:active {
    background-color: #FF771C;
  }
  
  .main-wrapper {
    background: var(--body-bg);
    padding: 20px 0;
  }
  
  .article-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.3;
  }
  .article-title a {
    color: var(--text-dark);
    text-decoration: none;
  }
  
  .article-meta {
    display: flex;
    gap: 15px;
    font-size: 10px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
  }
  .article-meta time {
    color: var(--text-light);
  }
  .article-meta span {
    color: var(--text-muted);
  }


  @media (max-width: 1200px) {

    .header-container, .main-wrapper, .site-footer {
        padding: 0 20px;
      }

      .back-bar {
        margin-left: 20px;
        margin-right: 20px;
      }
      
      .article-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0px;
        padding-top: 13px;
        margin: 18px 20px 0;
      }
      
      .main-wrapper {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-top: 13px;
      }
    
    }  


  /* inline:all end */
  
  /* inline:root start */
  /* Add homepage-specific critical styles here */
  /* inline:root end */
  
  /* inline:article start */
  /* Add article page critical styles here */
  /* inline:article end */
  
  /* inline:search start */
  /* Add search page critical styles here */
  /* inline:search end */
  
  /* inline:topic start */
  /* Add topic page critical styles here */
  /* inline:topic end */
  
  /* inline:author start */
  /* Add author page critical styles here */
  /* inline:author end */
  
  /* inline:daily start */
  /* Add daily index page critical styles here */
  /* inline:daily end */
  
  /* ==========================================================================
     Reset & Base Styles
     ========================================================================== */
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    background: var(--body-bg);
    color: var(--text-dark);
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
  }
  
  /* ==========================================================================
     Accessibility Utilities
     ========================================================================== */
  
  
  /* WCAG AAA: High contrast focus indicators */
  :focus-visible {
    outline: 3px solid var(--text-light);
    outline-offset: 2px;
  }
  
  /* Ensure links maintain AAA contrast on dark background */
  
  
  
  /* ==========================================================================
     Header Styles
     ========================================================================== */
  
  /* Search Form */
  
  /* Navigation */
  /* ==========================================================================
     Main Content Wrapper
     ========================================================================== */
  
  
  .content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  
  
  
  
  /* Redundant - base .image-placeholder already has these properties */
  
  /* ==========================================================================
     Latest News Section
     ========================================================================== */
  .latest-news {
    margin-top: 60px;
  }
  
  .section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
  }
  
  .section-title {
    font-size: 33px;
    font-weight: normal;
    margin: 0;
    color: var(--text-dark);
  }
  
  
  
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .site-footer {
  
    color: var(--text-light);
    padding: 0;
    margin-top: 0px;
  }
  
  
  .footer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 21px;
    padding-top: 35px;
    border-top: 1px solid white;
    text-align: center;
    border-bottom: 1px solid white;
    padding-bottom: 35px;
    font-size: 20px;

  }
  
  .footer-links-left {
    width: 100%;
    align-content: center;
  }
  
  .footer-links-left a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    font-family: 'Helvetica', Arial, sans-serif;
    margin: 0 17px;
  }
  
  .footer-links-left a:hover {
  
  }
  
  .footer-links-left a:focus-visible {
    outline-color: var(--text-light);
  }
  
  .footer-nav-categories {
    display: flex;
    gap: 40px;
  }
  
  .footer-category-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-category-group a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  }
  
  .further-reading-note  {
    font-size: 14px;
    margin-bottom: 0;
    font-style: italic;
    margin-top: 20px;
    line-height: 24px;
  }

  .footer-category-group a:focus-visible {
    outline-color: var(--text-light);
  }
  
  .footer-copyright {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Helvetica', Arial, sans-serif;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 25px;
  }
  
  /* ==========================================================================
     Article Page Styles
     ========================================================================== */
  
  
  
  .article-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 49px;
    height: 49px;
    background: var(--card-bg);
    border: none;
    border-radius: 29.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  
  .article-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);  /* Light hover on dark background */
  }
  
  .article-close-btn:focus-visible {
    outline-color: var(--text-dark);
  }
  
  .article-tags {
    margin-top: 29px
  }
  
  
  
  
  .article-header {
    margin-bottom: 25px;
  }
  
  .article-title-main {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 15px 0;
  }
  
  .article-meta-text span {
    border-left: 1px solid white;
    padding-left: 12px;
  }
  
  .article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
  }
  
  .article-author-info {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
  }
   
  
  
  .article-meta-text {
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
  }
  
  .article-author {
    font-weight: 500;
  }
  
  .article-author a {
    color: inherit;
    text-decoration: none;
  }
  
  .article-author a:hover {
    text-decoration: underline;
  }
  
  .article-time,
  .article-read-time {
    color: var(--text-dark);
  }
  
  
  
  
  
  
  
  
  
  .topic-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: #253735;  /* Black text on white tag */
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Helvetica', Arial, sans-serif;
    white-space: nowrap;
    margin-right: 15px;
  }
  
  .topic-tag:hover {
    text-decoration: none; 
  }
  
  
  
  /* Article Ad Container */
  .ad-block {
    margin: 2rem auto;
    padding: 1rem 0;
    text-align: center;
    max-width: 100%;
    clear: both;
  }

  .ad-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: 'Helvetica', Arial, sans-serif;
  }

  .article-ad {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
  }

  .article-body, .further-reading {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 18px;
    line-height: 33px;
    color: var(--text-dark);
    margin: 0 auto;
    margin-top: 28px;
  }

.further-reading {
  margin-top: 25px;
}

  .further-reading h2 {
    font-size: 23px;
  }

  .further-reading ul {
    margin-top: -10px;
  }
  
  .hcat {
    font-style: italic;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 18px;
    line-height: 33px;
    color: var(--text-dark);
    margin: 0 auto;
    margin-top: 28px;
  }
  
  .article-body p {
    margin: 0 0 1.3em 0;
  }



  .article-body ul,  .further-reading ul {
    margin-bottom: 25px;
    padding-left:  16px;
    margin-top: -10px;
  }
  
  .article-body h2 {
    font-size: 23px;

  }

  .article-body ul {
    margin-top: 12px;
    margin-bottom: 25px; 
  }

  .article-body .at-a-glance ul {
    margin-top: -10px;
  }


  .article-body .hcat {
    font-style: italic;
  }
  
  .article-body p:last-child {
    margin-bottom: 0;
  }
  
  .article-body figure {
    margin: 2em 0;
    width: 100%;
  }
  
  .article-body figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
  }
  
  .article-body figcaption {
    font-family: 'Georgia', serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.4;
  }
  
  .article-body hr {
    border: none;
    border-top: 1px solid var(--border-dark);
    margin: 2em 0;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .article-body .attributions {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border-dark);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
  }
  
  .article-body .attributions a {
    color: var(--text-light);
    text-decoration: underline;
    font-weight: 600;
  }
  
  
  
  /* ==========================================================================
     Search Results Page
     ========================================================================== */
  .search-results-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
  }
  
  .search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
  }
  
  .search-header h1 {
    font-size: 33px;
    font-weight: normal;
    margin: 0 0 20px 0;
    color: var(--text-dark);
  }
  
  .search-results-info {
    color: white;
    font-family: 'Helvetica', Arial, sans-serif;
    margin-bottom: 20px;
    border-top: 1px solid white;
      margin-top: 20px;
      font-size: 15px;
      padding-top: 19px;
  
  }



  #topic-title {
    font-size: 30px;
    margin-top: 11px;
    border-top: 1px solid white;
    padding-top: 24px;
  }

  
  .search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .search-result-item {
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
  }
  
  .search-result-item a {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .search-result-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-family: 'Georgia', serif;
    color: var(--text-dark);
  }
  
  .search-result-title a {
    color: var(--text-dark);
  }
  
  .search-result-title a:hover {
    color: var(--accent);
  }
  
  .search-result-meta {
    font-size: 12px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .search-result-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Georgia', serif;
    margin: 0;
  }
  
  .search-result-topic {
    display: none;
  }
  
  .no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
  }
  
  .no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
  }
  
  .no-results h2 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: var(--text-dark);
  }
  
  .no-results p {
    font-size: 16px;
    margin: 0;
    color: var(--text-muted);
  }
  
  .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 16px;
    font-family: 'Helvetica', Arial, sans-serif;
  }
  
  .spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 20px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .highlight {
    background: rgba(255, 255, 0, 0.3);  /* Yellow highlight for dark mode */
    color: #000000;  /* Black text on yellow highlight */
    padding: 2px 4px;
    border-radius: 2px;
  }
  
  /* ==========================================================================
     Legacy Styles (for day pages and admin)
     ========================================================================== */
  .container {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px;
    background: var(--body-bg);
  }
  
  nav {
    margin-bottom: 20px;
  }
  
  nav a {
    margin-right: 12px;
    color: var(--accent);
    text-decoration: none;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
  .card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
  }
  
  h1 {
    font-size: 28px;
    margin: 0 0 16px;
    color: var(--text-dark);
  }
  
  h2 {
    font-size: 20px;
    margin: 12px 0;
    color: var(--text-dark);
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  .list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .list li:last-child {
    border-bottom: 0;
  }
 
  .search-intro {
    display: none;
  }
  
  .list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .list-item a {
    flex: 1;
  }
  
  .delete-btn {
    background: var(--accent);
    color: #000000;  /* Black text on white button */
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
  }
  
  
  
  .delete-btn:active {
    transform: scale(0.95);
  }
  
  .delete-btn:focus-visible {
    outline-color: var(--accent);
  }
  
  
  
  /* ==========================================================================
     Pagination Styles
     ========================================================================== */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 17px 0 17px;
    flex-wrap: wrap;
  }
  
  
  
  
  
  .pagination a,
  .pagination .pagination-pages span, .pagination-disabled {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 4px;
    min-width: 40px;
    height: 40px;
    text-align: center;      
    line-height: 22px; 
  }
  
  .pagination a, .pagination-disabled {
    color: var(--accent);
    border: 1px solid var(--border-color);
  }
  
  .pagination-disabled {
    display: none;
  }
  
  .pagination a {
    margin-right: 0;
  }
  
  .pagination span {
    padding-left: 18px;
    padding-right: 18px;
  }
  
  .pagination a {
    padding-left: 18px;
    padding-right: 18px;
  }
  
  .pagination .pagination-pages {
    padding-left: 0;
    padding-right: 0;
  }
  
  .pagination .pagination-pages a {
  padding: 8px 8px;
  }  
  
  .pagination .pagination-current {
    background: var(--accent);
    color: #000000;  /* Black text on white background */
    font-weight: 600;
    border: 1px solid var(--accent);
  }
  
  .pagination .pagination-disabled {
    color: var(--text-disabled);
    cursor: not-allowed;
  }
  
  .pagination .pagination-ellipsis {
    color: var(--text-muted);
    padding: 8px 4px;
  }
  
  .pagination .pagination-pages {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .back-bar {
    font-family: 'Helvetica',Arial,sans-serif;
    font-size: 17px;
    font-weight: 900;
    border-top: 1px solid white;
    padding-top: 20px; 
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto; 
    margin-top: 34px;
  }
  
  .related-articles .more-on-topic.main-wrapper { 
    margin-bottom: 0px !important;
  }




  .error-content {
    border-top: 1px solid white;
  padding-top: 60px;
  padding-bottom: 45px;
  text-align: center;
  margin-top: 20px;
  }

  .error-content h1 {
    font-size: 60px;
  margin-bottom: 0;
  line-height: 40px;
  font-family: helvetica;
  }

  .error-content .error-link { 
    font-weight: bold;
  margin: 0 22px 0;
  }

  .error-content .error-actions {
    margin-top: 40px;
  }

  /* ==========================================================================
     Responsive Design
     ========================================================================== */
  @media (max-width: 1200px) {
   
    .back-bar {
      margin-left: 20px;
      margin-right: 20px;
    }

    .content-wrapper {
      padding: 0 20px;
    }
  
    .pagination {
  
      padding: 17px 0 8px;
  
    }
    
    .header-container, .main-wrapper, .site-footer {
      padding: 0 20px;
    }
  
    .main-wrapper {
      padding-top: 20px;
      padding-bottom: 20px;
      padding-top: 13px;
    }
  
    .article-wrapper {
      padding-top: 0 !important;
      padding-bottom: 0px;
      padding-top: 13px;
      margin: 18px 20px 0;
    }


  
    .article-body ul {
      margin-top: -10px;
      margin-bottom: -8px;
        }
 
        .article-body ul,  .further-reading ul {
          margin-bottom: 25px;
          padding-left:  16px;
          margin-top: -10px;
        }

    .at-a-glance li {
      line-height: 29px;
    }
  
    .articles-grid {
      grid-template-columns: 1fr;
    }
    
    .main-wrapper li:last-child {
      margin-bottom: 12px !important;
    }
  
    .search-intro {
      display: none;
    }
    
    .articles-main {
      grid-template-columns: 1fr;
    }
    
    .article-card-large {
      grid-column: span 1;
    }
    
    .article-tags {
      margin-top: 26px;
      margin-bottom: 29px; 
    }
  
  
    .search-btn {
      font-size: 14px;
      min-width: 129px;
    }
  
    ol.main-listing, ol#main-listing {
      padding-top: 30px;
  
    }
  
    .main-listing li:last-child, #main-listing li:last-child {
      margin-bottom: 10px
    }
  
    .main-listing li h2, #main-listing li h2 {
      font-size: 22px;
      margin: 3px 0 8px;
      line-height: 29px;
    }
  
  
    .main-listing li, #main-listing li {
      margin-bottom: 24px;
      padding-bottom: 28px;
    }
  
    .footer-links-left a {
      margin: 0 7px;
    }
  
    .main-listing li p, #main-listing li p {
      margin: 3px 0 0;
    
    }
  
    
    .article-body {
      max-width: 100%;

    }

    .further-reading {
      font-family: 'Helvetica', Arial, sans-serif;
      font-size: 18px;
      line-height: 33px;
      color: var(--text-dark);
      margin: 0 auto;
     margin-top: 0px;
      margin-top: 28px;    }
    
    .author-wrapper {
      padding: 30px 20px;
    }
  
    .article-content {
      width: 100%;
    }
    
    .author-header {
      padding: 30px 20px;
    }
    
    .author-bio {
      padding: 30px 20px;
    }
    
    .author-articles {
      padding: 30px 20px;
    }
  }
  
  @media (max-width: 768px) {
    .search-bar {
      width: 100%;
    }
    
    .search-input {
      width: 100%;
      flex: 1;
      border-radius: 10px 0 0 10px;
    }
    
    .header-nav {
      flex-wrap: wrap;
      gap: 20px;
    }
    
    .footer-nav {
      flex-direction: column;
      gap: 30px;
    }
    
    .footer-links-left {
      flex-wrap: wrap;
      gap: 20px;
      line-height: 26px
    }
    
    .article-content {
      padding: 0;
      margin: 28px 0px;
    }
  
    .more-on-topic.main-wrapper ol {
      padding-bottom: 12px !important; 
    }

    .more-on-topic.main-wrapper ol h2 {
      font-size: 22px;
      line-height: 29px;
    }

    .more-on-topic.main-wrapper h2 {
      font-size: 27px;
      line-height: 39px;
    }

    .related-articles .more-on-topic.main-wrapper { 
      margin-bottom: -20px !important;
    }

    .footer-links-left a {
      display: block;
  margin-bottom: 17px !important;
  font-size: 16px;
    }

    .footer-links-left {
      margin-bottom: -17px;
    }

    .article-title-main {
      font-size: 36px;
      line-height: 46px;
      margin-bottom: 14px;
   }

   .header-nav ul {
    margin-top: -10px;
  margin-bottom: -10px;
  row-gap: 10px;
   }
  
   .article-body h2 {
    font-size: 27px;
    margin-bottom: 19px;
    line-height: 39px;
  }

   /* Article Ad Container - Mobile */
   .ad-block {
     margin: 1.5rem auto;
     padding: 0.75rem 0;
   }

   .ad-label {
     font-size: 11px;
     margin-bottom: 0.4rem;
   }

   .article-ad {
     margin: 0 auto;
   }
  
   .article-body {
    margin-top: 21px;
    line-height: 31px;
   }
    
      .footer-copyright {
        margin-bottom: 22px;
      }
    
      .article-body .footer-copyright {
        margin-bottom: 22px;
      }  
    


    .article-body ul {
      margin-top: 0;
  margin-bottom: 22px;
    }

    .article-body ul li {
  margin-bottom: 15px;
    }
  
    .article-body .at-a-glance ul {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }



    
   
  }
  
  /* Contact Form Styles */
  .contact-form-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
  }
  
  .contact-form {
    max-width: 820px;
    
  }
  
  .contact-form .form-group {
    margin-bottom: 1.5rem;
  }
  
  .contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
  }
  
  .contact-form .form-group .required {
    color: #d32f2f;
  }
  
  .contact-form .form-group input,
  .contact-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
  }
  
  .contact-form .form-group input:focus,
  .contact-form .form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
  }
  
  .contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .contact-form .form-group.has-error input,
  .contact-form .form-group.has-error textarea {
    border-color: #d32f2f;
  }
  
  .contact-form .error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }
  
  .contact-form .submit-button {
    background: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid white;
  }
  
  .contact-form .submit-button:hover:not(:disabled) {
    background-color: transparent;
  }
  
  .contact-form .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .contact-form .form-status {
    display: block;
    margin-top: 0;
    padding: 0;
    border-radius: 4px;
    margin-top: 34px;
    padding: 10px 10px 8px;
    font-size: 16px;
  }
  
  .contact-form .form-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
  }
  
  .contact-form .form-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
  }

  .contact-form .form-group #acknowledgement {
    float: left;
    width: 12px;
    margin-right: 11px;
  }
  
  @media (max-width: 768px) {
    .contact-form {
      max-width: 100%;
    }
    
    .contact-form .submit-button {
      width: 100%;
    }



}


  
  /* New article badge */
  .main-listing li {
    position: relative;
  }
  
  .main-listing li.article-new::before {
    content: "NEW";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
    z-index: 1;
    line-height: 1.2;
  }
  