::selection {
  background: #1d4ed8;
  color: #fff;
}

::-moz-selection {
  background: #1d4ed8;
  color: #fff;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.newsroom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: hidden;
}

.newsroom-container-spacing {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.rss-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.rss-link .material-symbols-outlined {
  font-size: 18px !important;
  user-select: none;
  font-variation-settings: 'opsz' 18, 'wght' 300, 'FILL' 0, 'GRAD' 0;
}

@media (hover: hover) and (min-width: 769px) {
  .rss-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

.newsroom-header {
  margin-bottom: 1.5rem;
}

.newsroom-header-top {
  margin-bottom: 0.75rem;
}

.newsroom-title-small {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0;
  padding-left: 0.30rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.newsroom-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsroom-filters {
  position: relative;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  border: none;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  contain: paint;
  will-change: scroll-position;
}

.filter-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--indicator-width, 0);
  height: 32px;
  background: #fff;
  border-radius: 100px;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease-out,
              visibility 0.2s ease-out;
  will-change: transform, width, opacity;
  transform: translate3d(var(--indicator-x, 0), -50%, 0);
  pointer-events: none;
  z-index: 0;
  backface-visibility: hidden;
}

.filter-indicator[data-synced="true"] {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .filter-indicator {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.15s ease-out,
                visibility 0.15s ease-out;
  }
}

.newsroom-filters[data-mask="none"] {
  mask-image: none;
  -webkit-mask-image: none;
}

.newsroom-filters[data-mask="right"] {
  mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
}

.newsroom-filters[data-mask="left"] {
  mask-image: linear-gradient(to left, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to left, black calc(100% - 40px), transparent);
}

.newsroom-filters[data-mask="both"] {
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.newsroom-filter-btn {
  position: relative;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  z-index: 1;
  user-select: none;
  contain: content;
  will-change: transform;
}

.newsroom-filter-btn.active {
  color: #000;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .newsroom-filter-btn:not(.active):hover {
    color: rgba(255, 255, 255, 0.85);
  }
}

.newsroom-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (hover: hover) and (min-width: 769px) {
  .sort-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
  }
}

.sort-container {
  position: relative;
}

.sort-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.sort-btn:not(:hover) {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .sort-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
}

.sort-btn .material-symbols-outlined {
  font-size: 18px !important;
  opacity: 0.8;
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sort-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sort-option .material-symbols-outlined {
  font-size: 18px !important;
  opacity: 0.4;
  transition: inherit;
}

.sort-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.sort-option:not(.active):hover {
  background: rgba(255, 255, 255, 0.04);
}

.sort-option:not(.active):hover .sort-name {
  color: rgba(255, 255, 255, 1);
}

.sort-option:not(.active):hover .material-symbols-outlined {
  opacity: 0.8;
}

.sort-option.active {
  background: rgba(255, 255, 255, 0.08);
  cursor: default;
}

.sort-option.active .sort-name {
  color: #fff;
}

.sort-option.active .material-symbols-outlined {
  color: #fff;
  opacity: 1;
}

.search-container {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 0.5rem 2.5rem 0.5rem 2.5rem;
  display: flex;
  align-items: center;
  min-width: 260px;
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  caret-color: rgb(98, 135, 255);
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px !important;
  user-select: none;
  z-index: 2;
}

.search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px !important;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  user-select: none;
  padding: 4px;
  border-radius: 50%;
}

.search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.search-shortcut {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 0;
  padding-bottom: 4rem;
  position: relative;
}

@media (min-width: 901px) {
  .articles-grid::before {
    display: none;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  padding: 0 1.5rem;
}

@media (min-width: 901px) {
  .article-card:nth-child(odd) {
    padding-left: 0;
    padding-right: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .article-card:nth-child(odd):last-child {
    border-right: none;
  }
  .article-card:nth-child(even) {
    padding-right: 0;
    padding-left: 3rem;
  }
}

@media (max-width: 900px) {
  .article-card {
    padding: 0;
    border-right: none !important;
  }
}

.article-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 1.5rem;
}

.article-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #000 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.article-card:hover .article-image-container::after {
  opacity: 1;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.article-image.loaded {
    opacity: 1;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.article-category {
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-date {
    text-transform: uppercase;
}

.article-meta-separator {
  margin: 0 0.15rem;
  opacity: 0.5;
  font-weight: 400;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.article-excerpt {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: none;
}

.skeleton-wrapper {
  display: none;
}

.is-loading .skeleton-wrapper {
  display: block;
}

.is-loading #articles-grid {
  display: none !important;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
}

@media (min-width: 901px) {
  .skeleton-card:nth-child(odd) {
    padding-left: 0;
    padding-right: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .skeleton-card:nth-child(even) {
    padding-right: 0;
    padding-left: 3rem;
  }
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  user-select: none;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-meta {
  height: 0.75rem;
  width: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  margin-bottom: 0.25rem;
}

.skeleton-title {
  height: 1.75rem;
  width: 85%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.skeleton-excerpt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-text {
  height: 0.875rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: newsroomShimmer 1.2s infinite linear;
  transform: translateX(-100%);
}

@keyframes newsroomShimmer {
  to { transform: translateX(100%); }
}

.article-card.skeleton {
  pointer-events: none;
  cursor: default;
}

.article-card.skeleton .article-meta,
.article-card.skeleton .article-title,
.article-card.skeleton .article-excerpt {
  border: none;
  background: transparent;
}

@media (max-width: 1024px) {
    .search-input-wrapper {
        min-width: 200px;
    }
    .search-input-wrapper:focus-within {
        min-width: 240px;
    }
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
    .newsroom-header {
      margin-bottom: 1.5rem;
    }
    .newsroom-header-top {
      margin-bottom: 0.5rem;
    }
    .newsroom-nav-row {
        gap: 0.5rem;
        flex-wrap: nowrap;
        align-items: center;
        position: relative;
        min-height: 42px;
    }
    .newsroom-filters {
        flex: 1;
        min-width: 0;
    }
    .newsroom-actions {
        width: auto;
        justify-content: flex-end;
        gap: 0.4rem;
        position: relative;
        min-height: 42px;
        flex-shrink: 0;
    }

    .rss-link {
        display: none;
    }

    .sort-btn:focus, .sort-btn:active, .rss-link:focus, .rss-link:active {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        outline: none !important;
    }
    .sort-label {
        display: none;
    }
    .sort-btn {
        border: none;
        padding: 0.5rem;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.45);
        -webkit-tap-highlight-color: transparent;
    }

    .newsroom-filter-btn:hover,
    .sort-btn:hover {
        background: transparent !important;
    }
    .sort-container {
        transition: all 0.3s ease;
    }
    .newsroom-actions.searching {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 20;
        padding: 0;
        margin: 0;
    }
    .newsroom-actions.searching .sort-container {
        display: none;
    }
    .search-container {
        flex: 0 0 42px;
        height: 42px;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        justify-content: flex-end;
        align-items: center;
        cursor: pointer;
    }
    .newsroom-actions.searching .search-container {
        flex: 1;
        width: 100%;
    }
    .search-input-wrapper {
        min-width: 42px;
        width: 42px;
        height: 42px;
        background: transparent;
        border-color: transparent;
        padding: 0;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    .newsroom-actions.searching .search-input-wrapper {
        width: 100%;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 100px;
        padding: 0 2.5rem;
        cursor: default;
    }
    .search-input {
        opacity: 0;
        pointer-events: none;
        padding: 0;
        transition: opacity 0.2s ease;
    }
    .newsroom-actions.searching .search-input {
        opacity: 1;
        pointer-events: auto;
    }
    .search-icon {
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
        color: rgba(255, 255, 255, 0.45);
    }
    .newsroom-actions.searching .search-icon {
        left: 1rem;
        transform: translateX(0);
        color: rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 600px) {
  .newsroom-container-spacing {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  
  .newsroom-header {
      margin-bottom: 1rem;
  }

  .newsroom-title-small {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
  }

  .newsroom-filters {
      padding: 0.25rem 0;
  }

  .articles-grid {
      gap: 3.5rem;
  }

  .article-title {
    font-size: 1.375rem;
  }
  
  .article-excerpt {
      font-size: 0.875rem;
  }
}

.error-state-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  width: 100%;
  grid-column: 1 / -1;
  animation: errorFadeIn 0.4s ease-out;
}

.error-state-content {
  text-align: center;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

.error-state-icon {
  font-size: 3rem !important;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
  display: block;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.error-state-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.error-state-message {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.error-state-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.error-state-retry-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.error-state-retry-btn:active {
  background-color: rgba(255, 255, 255, 0.08);
}

@keyframes errorFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}