/* ===============================
   THE DAYTON ENQUIRER - STYLES
   Last Updated: Feb 20, 2026
================================ */

/* ===============================
   BASE / RESET
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #111;
  background: #f8f8f8;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===============================
   HEADER / NAVIGATION
================================ */
.news-header {
  background: #fff;
  border-bottom: 2px solid #ddd;
  padding: 0 0 0.5rem 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin-bottom: 0.5rem;
}

.logo h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: bold;
}

.logo a {
  text-decoration: none;
  color: #000;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

nav a {
  text-decoration: none;
  text-underline-offset: 1px;
  text-decoration-thickness: 1px;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0;
  font-weight: bold;
  color: #000;
}

nav a:hover {
  text-decoration: underline;
}

nav a + a::before {
  content: "|";
  position: absolute;
  left: -0.35rem;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-weight: normal;
}

/* ===============================
   MARKET TICKER
================================ */
.market-ticker {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  margin-top: 0;
}

.newsletter-strip {
  background: transparent;
  border-bottom: 0;
  display: none;
}

.newsletter-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  width: min(1168px, calc(100% - 0.25rem));
  max-width: none;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-top: 0;
  padding: 0.4rem 0.6rem;
}

.newsletter-strip-copy {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  white-space: nowrap;
}

.newsletter-strip-copy strong {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.newsletter-strip-copy span {
  font-size: 0.92rem;
  color: #333;
}

.newsletter-strip {
  --newsletter-art-text: #111;
  --newsletter-art-arrow: #c32026;
}

.newsletter-strip-artwork {
  display: none;
}

.newsletter-strip-artwork-desktop {
  display: none;
}

.newsletter-desktop-arrow {
  display: none;
}

.newsletter-strip-artwork svg {
  display: block;
  width: 100%;
  height: 100%;
}

.newsletter-strip-artwork .ns-envelope {
  fill: none;
  stroke: var(--newsletter-art-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: newsletterEnvelopeSteps 15s linear infinite;
}

.newsletter-strip-artwork .ns-arrow {
  fill: var(--newsletter-art-arrow);
  opacity: 0;
  animation: newsletterArrowSwap 15s linear infinite;
}

.newsletter-strip-artwork .ns-label,
.newsletter-strip-artwork .ns-label-desktop {
  fill: var(--newsletter-art-text);
  font-family: "Arial Black", "Franklin Gothic Heavy", "Impact", sans-serif;
  font-size: 15.2px;
  font-weight: 900;
  letter-spacing: 0.45px;
  opacity: 0;
  animation: newsletterLabelReveal 15s linear infinite;
}

.newsletter-strip-artwork .ns-label-desktop {
  font-size: 15.9px;
  letter-spacing: 0.38px;
  dominant-baseline: middle;
  transform-origin: left center;
  transform: scaleY(1.12);
}

@keyframes newsletterEnvelopeSteps {
  0%, 8% {
    transform: translateX(0);
    opacity: 1;
  }
  13%, 19% {
    transform: translateX(56px);
    opacity: 1;
  }
  23%, 30% {
    transform: translateX(112px);
    opacity: 1;
  }
  34%, 40% {
    transform: translateX(168px);
    opacity: 1;
  }
  42%, 100% {
    transform: translateX(206px);
    opacity: 0;
  }
}

@keyframes newsletterArrowSwap {
  0%, 40% {
    opacity: 0;
  }
  42%, 100% {
    opacity: 1;
  }
}

@keyframes newsletterLabelReveal {
  0%, 40% {
    opacity: 0;
  }
  42%, 100% {
    opacity: 1;
  }
}

@keyframes newsletterEnvelopeStepsDesktop {
  0%, 8% {
    transform: translateX(0);
    opacity: 1;
  }
  13%, 19% {
    transform: translateX(150px);
    opacity: 1;
  }
  23%, 30% {
    transform: translateX(300px);
    opacity: 1;
  }
  34%, 40% {
    transform: translateX(450px);
    opacity: 1;
  }
  42%, 100% {
    transform: translateX(560px);
    opacity: 0;
  }
}

@media (min-width: 901px) {
  .newsletter-strip-copy {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }

  .newsletter-strip-form {
    flex: 0 0 auto;
  }

  .newsletter-strip-copy strong.newsletter-strip-heading {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 1;
    position: relative;
  }

  .newsletter-strip-title-text,
  .newsletter-strip-copy > span {
    display: none;
  }

  .newsletter-strip-artwork-desktop {
    display: block;
    width: 100%;
    max-width: none;
    height: 32px;
    padding-right: 0.1rem;
  }

  .newsletter-strip-artwork-desktop .ns-arrow {
    display: none;
  }

  .newsletter-desktop-arrow {
    display: block;
    position: absolute;
    right: -0.2rem;
    top: 50%;
    width: 1.5rem;
    height: 0.95rem;
    transform: translateY(-50%);
    color: var(--newsletter-art-arrow);
    pointer-events: none;
    opacity: 0;
    animation: newsletterArrowSwap 15s linear infinite;
  }

  .newsletter-desktop-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .newsletter-desktop-arrow path {
    fill: currentColor;
  }

  .newsletter-strip-artwork-desktop .ns-envelope {
    animation: newsletterEnvelopeStepsDesktop 15s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-strip-artwork .ns-envelope,
  .newsletter-strip-artwork .ns-arrow,
  .newsletter-strip-artwork .ns-label,
  .newsletter-strip-artwork .ns-label-desktop {
    animation: none;
  }

  .newsletter-strip-artwork .ns-envelope {
    opacity: 0;
    transform: translateX(206px);
  }

  .newsletter-strip-artwork-desktop .ns-envelope {
    transform: translateX(560px);
  }

  .newsletter-strip-artwork .ns-arrow,
  .newsletter-strip-artwork .ns-label,
  .newsletter-strip-artwork .ns-label-desktop {
    opacity: 1;
  }

  .newsletter-desktop-arrow {
    opacity: 1;
  }
}

.newsletter-mobile-toggle {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: bold;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.newsletter-mobile-toggle:hover {
  background: #222;
  color: #fff;
}

.newsletter-mobile-toggle:focus,
.newsletter-mobile-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.newsletter-mobile-toggle:active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.newsletter-mobile-toggle.is-close {
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 0;
}

.newsletter-strip-form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

.newsletter-strip-form input[type="email"] {
  border: 1px solid #bbb;
  padding: 0.45rem 0.55rem;
  font-family: inherit;
  font-size: 0.92rem;
  width: 22rem;
}

.newsletter-strip-form button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-strip-form button:hover {
  background: #222;
}

.newsletter-strip-form button:focus,
.newsletter-strip-form button:focus-visible {
  outline: none;
  box-shadow: none;
}

.newsletter-strip-form button:active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.newsletter-strip-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.newsletter-signup-message {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  min-height: 1.1em;
  color: #555;
}

.newsletter-signup-message:empty {
  display: none;
}

.newsletter-signup-message.is-success {
  color: #176e17;
}

.newsletter-signup-message.is-error {
  color: #9a1c1c;
}

.turnstile-floating {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 30;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.turnstile-floating.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===============================
   CAROUSEL
================================ */
.carousel {
  position: relative;
  margin: 1rem auto 1.25rem auto;
  overflow: hidden;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

.slide-text {
  position: absolute;
  bottom: 0.5rem;
  left: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem;
  max-width: 60%;
}

.slide-category {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.slide-text p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-text h2 a {
  color: inherit;
  text-decoration: none;
}

.slide-text h2 a:hover {
  text-decoration: underline;
}

.slide-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.slide-link * {
  text-decoration: none !important;
}

.slide-link:hover h2 {
  text-decoration: underline !important;
}

#prev,
#next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}

/* ===============================
   SECTION BOXES (Homepage)
================================ */
.world-news-section {
  border: 1px solid #ddd;
  max-width: 1168px;
  padding: 1.5rem;
  padding-bottom: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  position: relative;
}

.world-news-title {
  font-size: 2rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0;
}

.world-news-title a {
  text-decoration: none;
  color: inherit;
}

.world-news-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.world-news-content {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

/* ===============================
   FEATURED ARTICLES
================================ */
.featured-article {
  position: relative;
  height: 350px;
  border-radius: 6px;
  overflow: hidden;
}

.featured-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #ddd;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
  color: #fff;
  padding: 0.5rem;
}

.featured-overlay h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.featured-overlay a {
  color: #fff;
  text-decoration: none;
}

.featured-overlay a:hover {
  text-decoration: underline;
}

.featured-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.featured-link * {
  text-decoration: none !important;
}

.featured-link:hover h3,
.featured-link:hover h3 a {
  text-decoration: underline !important;
}

.featured-preview {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  width: 100%;
  min-width: 0;
  padding-right: 0.35rem;
  white-space: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipe {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ===============================
   HEADLINES SIDEBAR
================================ */
.headlines-sidebar {
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}

.headlines-sidebar ul {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: 0;
}

.headlines-sidebar li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.headlines-sidebar a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

.headlines-sidebar a:hover {
  text-decoration: underline;
}

@media (min-width: 901px) {
  .world-news-content .featured-overlay h3 {
    padding-left: 0.35rem;
  }

  .world-news-content .headlines-sidebar {
    height: 350px;
    overflow: hidden;
  }

  .world-news-content .headlines-sidebar ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    padding-top: 0.3rem;
    padding-bottom: 0.15rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    overflow: visible;
    list-style: none;
  }

  .world-news-content .headlines-sidebar li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0;
    line-height: 1.35;
    overflow: visible;
  }

  .world-news-content .headlines-sidebar li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.06em;
    color: #111;
    font-size: 1.05rem;
    line-height: 1;
  }

  .world-news-content .headlines-sidebar a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .world-news-content .headlines-sidebar .article-meta {
    display: block;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
  }

  /* Section pages can have longer sidebar headlines; avoid clipping the last item. */
  .section-page .world-news-content .headlines-sidebar {
    height: auto;
    overflow: visible;
  }

  .section-page .world-news-content .headlines-sidebar ul {
    height: auto;
    justify-content: flex-start;
    gap: 0.55rem;
    padding-bottom: 0;
  }
}

/* ===============================
   MORE HEADLINES (Expandable)
================================ */
#more-headlines-container,
#local-more-headlines-container,
#national-more-headlines-container,
#business-more-headlines-container,
#sports-more-headlines-container,
#health-more-headlines-container,
#entertainment-more-headlines-container,
#technology-more-headlines-container {
  border-top: 1px solid #ddd;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}

#more-headlines-list,
#local-more-headlines-list,
#national-more-headlines-list,
#business-more-headlines-list,
#sports-more-headlines-list,
#health-more-headlines-list,
#entertainment-more-headlines-list,
#technology-more-headlines-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  column-count: 3;
  column-gap: 2rem;
}

#more-headlines-list li,
#local-more-headlines-list li,
#national-more-headlines-list li,
#business-more-headlines-list li,
#sports-more-headlines-list li,
#health-more-headlines-list li,
#entertainment-more-headlines-list li,
#technology-more-headlines-list li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
  break-inside: avoid;
}

#more-headlines-list a,
#local-more-headlines-list a,
#national-more-headlines-list a,
#business-more-headlines-list a,
#sports-more-headlines-list a,
#health-more-headlines-list a,
#entertainment-more-headlines-list a,
#technology-more-headlines-list a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

#more-headlines-list a:hover,
#local-more-headlines-list a:hover,
#national-more-headlines-list a:hover,
#business-more-headlines-list a:hover,
#sports-more-headlines-list a:hover,
#health-more-headlines-list a:hover,
#entertainment-more-headlines-list a:hover,
#technology-more-headlines-list a:hover {
  text-decoration: underline;
}

/* ===============================
   EXPAND BUTTON
================================ */
.more-button {
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  background: transparent;
  border: none;
  border-top: 1px solid #ddd;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-button:hover {
  background-color: #f0f0f0;
}

.more-button .arrow-down {
  font-size: 1.2rem;
  color: #999;
  transition: color 0.2s ease;
  transform: scaleX(2.5);
  display: inline-block;
}

.more-button:hover .arrow-down {
  color: #000;
}

.more-button[aria-expanded="true"] .arrow-down {
  transform: scaleX(2.5) rotate(180deg);
}

/* ===============================
   SEE MORE BUTTON
================================ */
.see-more-container {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: -0.25rem;
}

.see-more-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.see-more-btn:hover {
  background: #333;
}

/* ===============================
   ARTICLE METADATA
================================ */
.article-meta {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.25rem;
  display: flex;
  gap: 0.5rem;
}

.featured-overlay .article-meta {
  color: #ddd;
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: stretch;
}

.featured-overlay .article-meta .time {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1.05;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: center;
  margin: 0;
}

.article-meta .source {
  font-weight: 600;
}

.article-meta .time::before {
  content: "";
  margin-right: 0.25rem;
}

/* ===============================
   BOTTOM ARTICLES SECTION
================================ */
.bottom-articles-section {
  margin: 0.2rem 0 2rem;
  padding-top: 0.2rem;
  border-top: 2px solid #000;
}

.article-newsletter-cta {
  margin: 0.35rem 0 0;
  border: 1px solid #ddd;
  background: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.article-newsletter-cta p {
  margin: 0;
  font-size: 1rem;
}

.article-newsletter-action {
  width: min(100%, 26rem);
  max-width: 100%;
  min-height: 2.95rem;
  position: relative;
}

.article-newsletter-toggle,
.article-newsletter-form {
  position: absolute;
  inset: 0;
}

.article-newsletter-toggle {
  width: 100%;
  border: 1px solid #000;
  cursor: pointer;
}

.article-newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.article-newsletter-cta.is-inline-expanded .article-newsletter-form {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.article-newsletter-cta.is-inline-expanded .article-newsletter-toggle {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.article-newsletter-form input[type="email"] {
  width: 100%;
  height: 2.95rem;
  border: 1px solid #d4d7dd;
  border-radius: 4px;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111318;
  background: #fff;
}

.article-newsletter-form input[type="email"]:focus,
.article-newsletter-form input[type="email"]:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.3);
  outline-offset: 0;
  border-color: #111318;
}

.article-newsletter-form button[type="submit"] {
  height: 2.95rem;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 0 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.article-newsletter-form button[type="submit"]:hover {
  background: #222;
}

.article-newsletter-form .newsletter-signup-message {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  min-height: 1.05rem;
  font-size: 0.8rem;
}

@media (min-width: 901px) {
  .article-newsletter-action {
    width: 13.75rem;
    transition: width 180ms ease;
  }

  .article-newsletter-cta:not(.is-inline-expanded) p {
    white-space: nowrap;
  }

  .article-newsletter-cta.is-inline-expanded .article-newsletter-action {
    width: min(100%, 31rem);
  }
}

.bottom-articles-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
  text-align: left;
}

.bottom-articles-title a {
  text-decoration: none;
  color: #000;
}

.bottom-articles-title a:hover {
  text-decoration: underline;
}

.article-page #related-section.bottom-articles-section {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.article-page + .news-footer {
  margin-top: 1.25rem;
}

.bottom-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bottom-article-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.bottom-article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bottom-article-card a {
  text-decoration: none;
  color: #000;
  display: block;
}

.bottom-article-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.bottom-article-card h4 {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0.5rem 0.6rem 0.25rem;
  font-weight: bold;
  color: #000;
}

.bottom-article-card .bottom-article-source {
  font-size: 0.78rem;
  font-weight: bold;
  color: #666;
  margin: 0 0.6rem 0.6rem;
  display: block;
}

/* ===============================
   SECTION PAGE
================================ */
.section-page {
  padding: 2rem 1rem;
}

#section-title {
  margin-top: -1.5rem;
  margin-bottom: -1rem;
}

.section-page-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.75rem;
}

.section-page-header h2 {
  font-size: 2rem;
  margin: 0.5rem 0 0;
}

.back-link {
  display: none;
}

.section-articles-grid {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  column-count: 3;
  column-gap: 2rem;
}

.section-articles-grid li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
  break-inside: avoid;
}

.section-articles-grid a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
  font-weight: bold;
}

.section-articles-grid a:hover {
  text-decoration: underline;
}

.section-page .world-news-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-page .featured-story-container {
  position: relative;
}

.section-page .headlines-sidebar ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.section-page .headlines-sidebar li {
  margin-bottom: 1rem;
}

.section-page .headlines-sidebar a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 0.95rem;
}

.section-page .headlines-sidebar a:hover {
  text-decoration: underline;
}

@media (min-width: 901px) {
  .section-page .headlines-sidebar ul {
    list-style: none;
    padding-left: 0.1rem;
  }
}

/* ===============================
   PAGINATION
================================ */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pagination-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #333;
}

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
}

.load-more-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.load-more-btn:hover {
  background: #333;
}

/* ===============================
   ARTICLE PAGE
================================ */
.article-page {
  max-width: 800px;
  padding: 2rem 1rem;
  --article-bottom-gap: 0.75rem;
}

.article-content {
  margin-top: -2.5rem;
}

.article-page-header {
  margin-bottom: 1.5rem;
}

.article-loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.article-category {
  margin-bottom: 0.75rem;
}

.article-category a {
  text-decoration: none;
  color: #fff;
  background: #000;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.article-category a:hover {
  background: #333;
}

.article-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem 0;
}

.article-byline {
  display: flex;
  gap: 1rem;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: var(--article-bottom-gap);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #ddd;
}

.article-share-btn {
  border: 1px solid #c8ccd4;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
}

.article-share-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: var(--article-bottom-gap);
}

.article-share-row-top {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
}

.article-share-row-bottom {
  display: none;
}

.article-share-btn:hover {
  background: #f1f3f7;
}

.article-share-btn:active {
  background: #e8ebf1;
}

.article-share-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.article-source {
  font-weight: bold;
  color: #000;
}

#article-date {
  margin-left: -1rem;
}

.article-image-container {
  margin-bottom: 1.5rem;
}

.article-image-container img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 4px;
}

.image-meta {
  margin-top: -0.08rem;
  padding: 0.15rem 0 0.1rem;
  font-size: 0.85rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
}

.image-caption {
  display: block;
  flex: 1 1 26rem;
  min-width: 0;
  margin-bottom: 0;
  margin-top: 0;
  font-style: italic;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.image-credit {
  display: block;
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0;
  white-space: nowrap;
}

.article-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0.8rem;
}

.article-description p {
  margin-bottom: 1rem;
}

.article-description p:last-child {
  margin-bottom: 0;
}

.read-full-btn {
  display: block;
  text-align: center;
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 3rem;
}

.read-full-btn[hidden] {
  display: none !important;
}

.read-full-btn:hover {
  background: #333;
}

/* ===============================
   ARTICLE NAVIGATION (Prev/Next)
================================ */
.article-navigation {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.nav-arrow {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  transition: color 0.2s;
}

.nav-arrow:hover {
  color: #0066cc;
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-arrow:disabled:hover {
  color: #000;
}

.nav-label {
  font-size: 0.9rem;
}

/* ===============================
   FOOTER
================================ */
.news-footer {
  background: #000;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: #fff;
  transition: color 0.3s, transform 0.2s;
  display: inline-block;
}

.social-links a:hover {
  color: #ccc;
  transform: scale(1.1);
}

.social-links svg {
  display: block;
}

.copyright {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

/* ===============================
   MOBILE RESPONSIVENESS
================================ */

/* Tablets and below */
@media (max-width: 900px) {
  .world-news-content {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .featured-article {
    height: 280px;
  }

  .bottom-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-page .world-news-content {
    grid-template-columns: 1fr;
  }

  .newsletter-strip-inner {
    width: calc(100% - 2rem);
    gap: 0.5rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .newsletter-strip-copy {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    gap: 0.2rem;
  }

  .article-newsletter-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-newsletter-action {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --mobile-nav-equal-gap: 0.5rem;
  }

  .article-share-row-bottom,
  .article-newsletter-cta {
    display: none !important;
  }

  .article-description {
    margin-bottom: 0.6rem;
  }

  .article-navigation {
    margin: 0.5rem 0 0;
    padding: 0.75rem 0 var(--mobile-nav-equal-gap);
  }

  .article-page #related-section.bottom-articles-section {
    margin-top: 1.5rem;
    padding-top: var(--mobile-nav-equal-gap);
  }

  .article-newsletter-cta {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    gap: 0.3rem;
  }

  .article-newsletter-cta p {
    display: none;
  }

  .news-header {
    padding-top: 0.55rem;
  }

  .newsletter-strip-form input[type="email"],
  .article-newsletter-form input[type="email"] {
    font-size: 16px;
  }

  .article-image-container .image-meta {
    margin-top: -0.12rem !important;
    padding-top: 0 !important;
    padding-bottom: 0.04rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 0.5rem !important;
    row-gap: 0.02rem !important;
    align-items: end !important;
  }

  .article-image-container .image-credit {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    transform: translateY(-0.16rem);
  }

  .article-image-container .image-caption {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: -0.14rem 0 0 !important;
    text-align: left !important;
  }

  .logo h1 {
    font-size: 2rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }

  nav a:nth-child(6)::before {
    content: none;
  }

  /* Carousel mobile adjustments */
  .slide img {
    border-radius: 6px;
    margin: 0;
    padding: 0;
  }

  .slide-text {
    bottom: 0;
    padding: 0.75rem 1rem 0.5rem 1rem;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    height: auto;
    max-height: 35%;
    min-height: 100px;
  }

  .slide-text p {
    display: none !important;
  }

  .slide-text h2 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .slide-category {
    padding-bottom: 0.25rem;
  }

  /* Featured preview limit */
  .featured-preview,
  .featured-overlay .featured-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
  }

  .slide-text p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* More headlines mobile layout */
  #more-headlines-list,
  #local-more-headlines-list,
  #national-more-headlines-list,
  #business-more-headlines-list,
  #sports-more-headlines-list,
  #health-more-headlines-list,
  #entertainment-more-headlines-list,
  #technology-more-headlines-list {
    column-count: 1;
  }

  .section-articles-grid {
    column-count: 1;
  }

  .pagination-container {
    display: none;
  }

  .newsletter-strip {
    --mobile-signup-height: 2.1rem;
    --mobile-signup-min-width: 4.15rem;
    --mobile-signup-pad-x: 0.18rem;
    --mobile-signup-font-size: 0.68rem;
    --mobile-strip-pad-y: 0.32rem;
    --mobile-strip-min-height: 3.2rem;
  }

  .newsletter-strip-inner {
    width: calc(100% - 1.8rem);
    margin: 0 auto;
    min-height: var(--mobile-strip-min-height);
    padding-top: var(--mobile-strip-pad-y);
    padding-bottom: var(--mobile-strip-pad-y);
  }

  .newsletter-strip .newsletter-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: var(--mobile-signup-height);
    min-width: var(--mobile-signup-min-width);
    padding: 0 var(--mobile-signup-pad-x);
    line-height: 1;
    font-size: var(--mobile-signup-font-size);
    letter-spacing: 0.01em;
  }

  .newsletter-strip.is-mobile-collapsed .newsletter-strip-inner,
  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem;
  }

  .newsletter-strip.is-mobile-collapsed .newsletter-strip-copy,
  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-copy {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
  }

  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-copy strong.newsletter-strip-heading {
    display: block;
    width: 100%;
    line-height: 1;
    margin: 0;
  }

  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-title-text {
    display: none;
  }

  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-artwork:not(.newsletter-strip-artwork-desktop) {
    display: block;
    width: 100%;
    max-width: none;
    height: 32px;
    padding: 0;
  }

  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-artwork-desktop {
    display: none;
  }

  .newsletter-strip.is-mobile-collapsed .newsletter-strip-copy > span,
  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-copy > span,
  .newsletter-strip.is-mobile-collapsed .newsletter-strip-form,
  .newsletter-strip:not(.is-mobile-expanded) .newsletter-strip-form {
    display: none;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-inner {
    position: relative;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) var(--mobile-signup-min-width);
    column-gap: 0.35rem;
    row-gap: 0;
    width: 100%;
    align-items: center;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-form input[type="email"] {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
    min-height: 2.55rem;
    padding: 0.4rem 0.45rem;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-form input[type="email"]:focus,
  .newsletter-strip.is-mobile-expanded .newsletter-strip-form input[type="email"]:focus-visible {
    outline: none;
    box-shadow: none;
    max-width: 100%;
    border-color: #bbb;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-form button[type="submit"] {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    width: var(--mobile-signup-min-width);
    min-width: var(--mobile-signup-min-width);
    margin: 0;
    min-height: var(--mobile-signup-height);
    height: var(--mobile-signup-height);
    padding: 0 var(--mobile-signup-pad-x);
    font-size: var(--mobile-signup-font-size);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    border-radius: 0;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-copy,
  .newsletter-strip.is-mobile-expanded .newsletter-mobile-toggle {
    display: none;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-strip-artwork {
    display: none !important;
  }

  .newsletter-strip.is-mobile-expanded .newsletter-signup-message {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .article-content h1 {
    font-size: 1.5rem;
  }

  .bottom-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   END OF STYLESHEET
================================ */


/* ===============================
   THEME TOGGLE + DARK MODE
================================ */
:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

.theme-toggle {
  position: fixed;
  top: 0.55rem;
  right: 0.8rem;
  z-index: 1500;
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  margin: 0;
  transition: color 0.2s ease, transform 0.2s ease, opacity 220ms ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
}

.theme-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] body {
  color: #ececec;
  background: #101114;
}

html[data-theme="dark"] .news-header {
  background: #13161a;
  border-bottom-color: #333942;
}

html[data-theme="dark"] .logo a,
html[data-theme="dark"] nav a {
  color: #f3f4f6;
}

html[data-theme="dark"] nav a:not(:last-child)::after {
  color: #7a818d;
}

html[data-theme="dark"] .market-ticker {
  background: #0f1216;
  border-bottom-color: #333942;
}

html[data-theme="dark"] .newsletter-strip {
  --newsletter-art-text: #f3f4f6;
  --newsletter-art-arrow: #c32026;
  background: transparent;
  border-bottom-color: transparent;
}

html[data-theme="dark"] .newsletter-strip-inner {
  background: #121820;
  border-color: #333942;
}

html[data-theme="dark"] .newsletter-strip-copy span,
html[data-theme="dark"] .newsletter-signup-message {
  color: #adb8c8;
}

html[data-theme="dark"] .newsletter-strip-form input[type="email"] {
  background: #0d131a;
  color: #e8edf7;
  border-color: #394352;
}

html[data-theme="dark"] .newsletter-strip-form button {
  background: #eef2f8;
  color: #111318;
  border-color: #eef2f8;
}

html[data-theme="dark"] .newsletter-strip-form button:hover {
  background: #c7d0de;
}

html[data-theme="dark"] .newsletter-strip-form button:active {
  background: #aeb9ca;
  border-color: #aeb9ca;
  color: #111318;
}

html[data-theme="dark"] .newsletter-mobile-toggle {
  background: #eef2f8;
  color: #111318;
  border-color: #eef2f8;
}

html[data-theme="dark"] .newsletter-mobile-toggle:hover {
  background: #c7d0de;
  color: #111318;
  border-color: #c7d0de;
}

html[data-theme="dark"] .newsletter-mobile-toggle:active {
  background: #aeb9ca;
  color: #111318;
  border-color: #aeb9ca;
}

html[data-theme="dark"] .newsletter-mobile-toggle.is-close,
html[data-theme="dark"] .newsletter-mobile-toggle.is-close:hover {
  background: transparent;
  border-color: #808a9a;
  color: #eef2f8;
}

html[data-theme="dark"] .world-news-section,
html[data-theme="dark"] .bottom-article-card,
html[data-theme="dark"] .article-newsletter-cta {
  background: #171b22;
  border-color: #333942;
}

html[data-theme="dark"] .world-news-title,
html[data-theme="dark"] .section-page-header,
html[data-theme="dark"] .bottom-articles-section {
  border-bottom-color: #4a5362;
  border-top-color: #4a5362;
}

html[data-theme="dark"] .headlines-sidebar a,
html[data-theme="dark"] #more-headlines-list a,
html[data-theme="dark"] #local-more-headlines-list a,
html[data-theme="dark"] #national-more-headlines-list a,
html[data-theme="dark"] #business-more-headlines-list a,
html[data-theme="dark"] #sports-more-headlines-list a,
html[data-theme="dark"] #health-more-headlines-list a,
html[data-theme="dark"] #entertainment-more-headlines-list a,
html[data-theme="dark"] #technology-more-headlines-list a,
html[data-theme="dark"] .section-articles-grid a,
html[data-theme="dark"] .bottom-article-card a,
html[data-theme="dark"] .bottom-article-card h4,
html[data-theme="dark"] .bottom-articles-title a,
html[data-theme="dark"] .article-source,
html[data-theme="dark"] .nav-arrow,
html[data-theme="dark"] .section-page .headlines-sidebar a {
  color: #eef2f8;
}

html[data-theme="dark"] .world-news-content .headlines-sidebar li::before {
  color: #eef2f8;
}

html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .image-meta,
html[data-theme="dark"] .article-byline,
html[data-theme="dark"] .article-loading,
html[data-theme="dark"] .bottom-article-card .bottom-article-source,
html[data-theme="dark"] .page-info,
html[data-theme="dark"] .article-description {
  color: #b6beca;
}

html[data-theme="dark"] .article-share-btn {
  border-color: #4a5260;
  color: #e8edf7;
}

html[data-theme="dark"] .article-share-btn:hover {
  background: #252c37;
}

html[data-theme="dark"] .article-share-btn:active {
  background: #2d3542;
}

html[data-theme="dark"] .more-button,
html[data-theme="dark"] #more-headlines-container,
html[data-theme="dark"] #local-more-headlines-container,
html[data-theme="dark"] #national-more-headlines-container,
html[data-theme="dark"] #business-more-headlines-container,
html[data-theme="dark"] #sports-more-headlines-container,
html[data-theme="dark"] #health-more-headlines-container,
html[data-theme="dark"] #entertainment-more-headlines-container,
html[data-theme="dark"] #technology-more-headlines-container,
html[data-theme="dark"] .article-navigation,
html[data-theme="dark"] .article-byline {
  border-color: #333942;
}

html[data-theme="dark"] .more-button:hover {
  background: #202632;
}

html[data-theme="dark"] .more-button .arrow-down {
  color: #9aa3b1;
}

html[data-theme="dark"] .more-button:hover .arrow-down {
  color: #eef2f8;
}

html[data-theme="dark"] .see-more-btn,
html[data-theme="dark"] .pagination-btn,
html[data-theme="dark"] .load-more-btn,
html[data-theme="dark"] .read-full-btn,
html[data-theme="dark"] .article-category a {
  background: #eef2f8;
  color: #111318;
}

html[data-theme="dark"] .see-more-btn:hover,
html[data-theme="dark"] .pagination-btn:hover:not(:disabled),
html[data-theme="dark"] .load-more-btn:hover,
html[data-theme="dark"] .read-full-btn:hover,
html[data-theme="dark"] .article-category a:hover {
  background: #c7d0de;
}

html[data-theme="dark"] .article-newsletter-form input[type="email"] {
  background: #0f141d;
  color: #eef2f8;
  border-color: #394352;
}

html[data-theme="dark"] .article-newsletter-form input[type="email"]:focus,
html[data-theme="dark"] .article-newsletter-form input[type="email"]:focus-visible {
  border-color: #9ba6b8;
  outline-color: rgba(210, 220, 235, 0.35);
}

html[data-theme="dark"] .article-newsletter-form button[type="submit"] {
  background: #eef2f8;
  color: #111318;
  border-color: #eef2f8;
}

html[data-theme="dark"] .article-newsletter-form button[type="submit"]:hover {
  background: #c7d0de;
}

html[data-theme="dark"] .pagination-btn:disabled {
  background: #4f5866;
  color: #cfd7e3;
}

html[data-theme="dark"] .nav-arrow:hover {
  color: #9dc2ff;
}

html[data-theme="dark"] .news-footer {
  background: #050608;
}
@media (max-width: 768px) {
  .theme-toggle {
    top: 0.45rem;
    right: 0.6rem;
  }

  html.mobile-theme-toggle-hidden .theme-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  html.mobile-theme-toggle-idle .theme-toggle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
