/* ==== your existing CSS (unchanged) ==== */
html {
  width: 100%;
  overflow-x: hidden;
}

html, body { overscroll-behavior-y: none; }

.logo { top:30px !important; }

:root {
  --page-text-color:var(--foregroundColor);
  --page-color:var(--backgroundColor);
  --page-padding-top: 70px;
  --page-padding-bottom: 100px;
  --page-padding-side: 50px;
  --page-padding-mobile-top: 35px;
  --page-padding-mobile-bottom: 50px;
  --page-padding-mobile-side: 30px;
  --article-padding: 0.5rem;
  --article-border: 4px;
  --article-bg: transparent;
  --article-border-color:var(--foregroundColor);
  --footer-gap: 0rem;
  --footer-font-size: 0.9rem;
}

  .news-sort-buttons { padding-left:10px; }

/* Page wrapper */
.news-page {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--page-padding-top) var(--page-padding-side) var(--page-padding-bottom) var(--page-padding-side);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Masonry container */
.news-grid { position: relative; }

/* Article cell (applied on <li>) */
.article {
  position: absolute; /* Masonry positioning */
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  margin-top:0.5rem;
  background:  var(--page-color);
}

.spoof { margin-top:0.0rem; }

/* Featured article */
.article.featured {
  color:var(--page-color);
  background-color: var(--page-text-color);
}

/* Article inner */
.article-inner {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  padding: var(--article-padding);
  box-sizing: border-box;
  background-color: transparent;
  color:inherit;
}

.featured { padding: 1rem; padding-top:1.5rem; }

/* News block: imagery */
.news-block.imagery {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  margin-top:0.5rem;
}

/* IMAGE STYLING */
.article img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  background-color: transparent;
}

/* Caption */
.image-caption {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  background-color: transparent;
}

/* News block: bodycopy */
.news-block.bodycopy {
  font-size: 0.8rem;
  line-height: 1.3rem;
  color: var(--page-text-color);
  background-color: transparent;
}

/* Footer */
.article-footer { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align:right;
  gap: var(--footer-gap);
  font-size: var(--footer-font-size);
  margin-top:0.5rem;
  padding-top:0.4rem;
  padding-bottom:0.5rem;
  border-top: 1px solid var(--article-border-color);
  border-bottom: var(--article-border) solid var(--article-border-color);
  box-sizing: border-box;
  background-color: transparent;
}

/* Copy URL button */
.copy-url {
  cursor: pointer;
  color:var(--page-text-color);
  font-size: var(--footer-font-size);
  font-weight:bold;
  margin-left: auto;
  border:0;
  background:transparent;
}

/* Additional - your overrides */
#vignette { display: none; }

.ch_news_bodycopy { max-width: 100% !important; }

.featured .article-footer { border-bottom:0; }

.ch_news_bodycopy p, .ch_news_bodycopy {
  color:var(--page-text-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

.ch_news { color:var(--page-text-color); }

.featured .ch_news {
  font-size:2.5rem !important;
  line-height:2.8rem !important;
  color:var(--page-color);
}

.featured .ch_news_bodycopy, .featured .ch_news_bodycopy p, .featured .copy-url {
  color:var(--page-color);
}

.featured .ch_news_bodycopy, .featured .ch_news_bodycopy p {
  font-size:1.0rem;
  line-height:1.2rem; 
}

.duo-tone {
  position: relative;
  width: 100%;
  overflow:hidden;
  background-color:#ffffff;
  mix-blend-mode: multiply;
}

.featured_bg { background-color:var(--backgroundColor); }

.duo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  filter: grayscale(100%);
}

.base-01 { height: 100%; width: 100%; background-color: var(--page-color); }
.screen { mix-blend-mode: screen; }
.multiply { background-blend-mode: multiply; background-color: var(--page-color); }

.base-02 { height: 100%; width: 100%; background-color:var(--page-text-color); }

.img {
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.gray_not_used { filter: grayscale(100%) !important; }

.date-display {
  color:var(--page-text-color);
  padding-top:0.3rem;
  padding-bottom:0.5rem;
  margin-top:0.5rem;
  margin-bottom:0.5rem;
  border-top:1px solid var(--page-text-color);
  border-bottom:1px solid var(--page-text-color);
}

.featured .date-display {
  color:var(--page-color);
  border-top:1px solid var(--page-color);
  border-bottom:1px solid var(--page-color);
  width:100%;
}

/* --- Custom radios for .news-filter --- */
.news-filter {
  --radio-size: 12px;
  --radio-border: 2px;
  --radio-dot: 5px;
  --radio-color: var(--foregroundColor);
  --radio-focus: 0px;
  padding-right:0px;
}

.news-filter .news-filter__option {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
}

.news-filter input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--radio-size);
  height: var(--radio-size);
  border-radius: 50%;
  margin: 0;
  margin-left:8px;
  background: transparent;
  border: var(--radio-border) solid var(--radio-color);
  display: inline-grid;
  place-content: center;
  position: relative;
  cursor: pointer;
}

.news-filter input[type="radio"]::before {
  content: "";
  width: var(--radio-dot);
  height: var(--radio-dot);
  border-radius: 50%;
  background: var(--radio-color);
  transform: scale(0);
  transition: transform 140ms ease-out;
}

.news-filter input[type="radio"]:checked::before { transform: scale(1); }
.news-filter input[type="radio"]:hover { filter: brightness(0.9); }

.news-filter input[type="radio"]:focus-visible {
  outline: var(--radio-focus) solid color-mix(in srgb, var(--radio-color) 50%, transparent);
  outline-offset: 2px;
}

.news-filter input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
.news-filter .news-filter__option > span { line-height: 1; padding-right:5px; }

.news-sort-buttons.styled-sort { display: flex; }

.news-sort-buttons.styled-sort button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--page-text-color);
  font-size:11px;
  font-weight:bold;
}

.news_filter_horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top:1px solid var(--page-text-color);
  border-bottom:4px solid var(--page-text-color);
  color: var(--page-text-color);
  font-family:'helvetica';
  font-weight:bold;
  margin-bottom:0px;
  font-size:11px;
  padding-top:5px;
  padding-bottom:5px;
  margin-left:10px;
  margin-right:10px;
}

.news-filter.icon-toggle { display: flex; align-items: center; }
.news-filter.icon-toggle label { cursor: pointer; display: flex; align-items: center; }
.news_sort_filter_label { padding-left:2px; padding-right:10px; }
.news-filter.icon-toggle i.fa-square-check { display: none; }
.news-filter.icon-toggle input:checked + i.fa-square { display: none; }
.news-filter.icon-toggle input:checked + i.fa-square + i.fa-square-check { display: inline-block; }

.news_strapline { font-size: 60px; text-align:center; color:var(--page-text-color); padding-bottom:30px; font-family:'oswald'; font-weight:800; }

.news-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  padding: 0.5rem;
  background-color: var(--page-color);
  box-sizing: border-box;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.header-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  padding: 2px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: var(--article-border) solid var(--page-text-color);
}

.masthead {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 0.5rem;
}

.masthead h1 { font-size: 3rem; line-height:3rem; margin: 0; letter-spacing: 0.05em; }
.header-panel .panel-content { width: 100%; padding: 0.0rem; font-size: 1rem; line-height: 1.4; }

.header-panel a.panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.panel-content a { font-family:'arvo'; text-decoration: underline; color: var(--link-color, inherit); }
a.panel-link:hover { border:1px solid var(--page-text-color); }

.article-inner a {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
  font-size:1.0em;
  display: inline;
  filter: brightness(2) saturate(2);
  transition: transform 0.3s ease, filter 0.3s ease, background 0.3s ease;
}

.article.featured .article-inner a {
  background: none;
  color: var(--page-color);
  text-decoration: none;
  filter: none;
  transform: none;
}

.article-inner a[href^="http"] { word-break: break-word; }

.article-inner ::selection {
  background: rgba(255, 255, 0, 0.9);
  color: black;
  mix-blend-mode: multiply;
  filter: brightness(1.5) saturate(1.5);
}

.article-inner ::-moz-selection {
  background: rgba(255, 255, 0, 0.9);
  color: black;
  mix-blend-mode: multiply;
  filter: brightness(1.5) saturate(1.5);
}

.article.featured ::selection {
  background:rgba(255, 255, 0, 0.3);
  color: #FFFF00;
  mix-blend-mode: multiply;
  filter: none;
}
.article.featured ::-moz-selection {
  background:rgba(255, 255, 0, 0.3);
  color: #FFFF00;
  mix-blend-mode: multiply;
  filter: none;
}

.fa-clipboard, .fa-arrow-up-from-bracket { min-width:18px; }
.preload_me { position:fixed; left:-1000000px; }

@media (max-width: 1024px) {
  .masthead h1 { font-size: 2.8rem; line-height:2.8rem; }
  .header-panel .panel-content { font-size: 0.8rem; }
}

@media (max-width: 900px) {
  .masthead h1 { font-size: 2.4rem; line-height:2.4rem;  }
  .header-panel .panel-content { font-size: 0.7rem; }
}

.featured h1 {
  font-size:2.5vw !important;
  line-height: 2.5vw !important;
  margin-bottom:0.5vw !important;
}



/* ====== Accessibility helpers appended (safe additions) ====== */

/* Screen-reader only utility */
.sr-only {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Visible focus outlines on key elements */
:where(a, button, .date-link):focus-visible {
  outline:2px solid currentColor;
  outline-offset:2px;
  text-decoration:underline;
}

/* Make the date tap target look like a link */
.date-link {
  text-decoration: none;
  color: inherit;
}
.date-link:hover,
.date-link:focus-visible {
  text-decoration: underline;
}

/* Reduce motion preference */
@media (prefers-reduced-motion:reduce) {
  * { animation:none !important; transition:none !important; }
}







@media (min-width: 600px) and (max-width: 744px) {
  
  .featured h1 {
  font-size:5.5vw !important;
  line-height: 6.0vw !important;
}
  
  .logo { top:5px !important; }
  .left-panel, .right-panel { display:none; }
  
  .masthead { flex: 1 1 100%; text-align: center; }
  .news_filter_horizontal { margin-left:0px; margin-right:0px; }
  
  .news-grid-holder {
    position: fixed;
    top: 140px; left: var(--page-padding-mobile-side); right: var(--page-padding-mobile-side);
    bottom:0px;
    overflow-y: hidden;
  }
  
  .scroll-y{
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom:100px;
  }
  .scroll-y::-webkit-scrollbar{ width: 0; height: 0; }
  
  .scroll-y{
    padding-right: 1rem;
    margin-right: -1rem;
  }
  
  .news-header-bar { height:50px; padding:0; }
  .news-page {
    padding: var(--page-padding-mobile-top) var(--page-padding-mobile-side) var(--page-padding-mobile-bottom) var(--page-padding-mobile-side);
  }
}


@media (max-width: 599px) {
  h1, .featured h1 {
    font-size:7vw !important;
    line-height: 7vw !important;
   
    margin-bottom:0px !important;
  }

  .news-grid-holder {
    position: fixed;
    top: 140px; left: 30px; right: 30px;
    bottom:0px;
    overflow-y: hidden;
    padding-bottom:100px;
  }

  .scroll-y{
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .scroll-y::-webkit-scrollbar{ width: 0; height: 0; }

  .scroll-y{
    padding-right: 1rem;
    margin-right: -1rem;
  }

  /* NEWS */
  .logo { top:3px !important; }
  .left-panel, .right-panel { display:none; }

  .masthead { flex: 1 1 100%; text-align: center; }
  .masthead h1 { font-size:1.8rem; line-height:1.8rem;  }
  .news-header-bar { height:30px; padding:0; }

  .news-page {
    padding: var(--page-padding-mobile-top) var(--page-padding-mobile-side) var(--page-padding-mobile-bottom) var(--page-padding-mobile-side);
  }

  .featured { padding: 0.5rem;  padding-top:1.25rem; }

  .featured .ch_news {
    font-size:1.75rem !important;
    line-height:2.0rem !important;
  }

  .news_filter_horizontal {
    margin-left:2px; margin-right:0;
    border-bottom:1px solid var(--page-text-color);
    padding-bottom:3px;
  }

  .news_sort_filter_label { padding-right:9px; }
  .news-sort-buttons { margin-top: 5px; padding-left:0px; }

  .news-block.bodycopy { font-size:0.85rem; line-height:1.0rem; }

  .featured .ch_news_bodycopy, .featured .ch_news_bodycopy p {
    font-size:0.85rem;
    line-height:1.0rem;
  }

 
}