/*
Theme Name:         AI News
Theme URI:          https://ai-news.mmargraf.ddns.net/
Author:             Markus (AI Theme Developer)
Author URI:         https://mmargraf.ddns.net
Description:        Modernes Dark-Theme für KI-Nachrichten. Block-basiert, performance-optimiert, Full Site Editing.
Requires at least:  6.9
Tested up to:       6.9
Requires PHP:       8.3
Version:            2.0.0
License:            GNU General Public License v2 or later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        ai-news
Tags:               news, blog, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, wide-blocks, dark-mode

AI News - Ein professionelles Dark-Theme für Nachrichtenportale.
Entwickelt für Heise-ähnliche Portale mit moderner dunkler Ästhetik.
*/

/* ============================================
   CSS Custom Properties (Fallback)
   ============================================ */
:root {
  /* Colors */
  --wp--preset--color--primary: #ef4444;
  --wp--preset--color--secondary: #334155;
  --wp--preset--color--accent: #22d3ee;
  --wp--preset--color--background: #f8fafc;
  --wp--preset--color--surface: #ffffff;
  --wp--preset--color--surface-hover: #f1f5f9;
  --wp--preset--color--surface-border: #e2e8f0;
  --wp--preset--color--text: #0f172a;
  --wp--preset--color--text-muted: #64748b;
  --wp--preset--color--primary: #ef4444;
  --wp--preset--color--success: #22c55e;
  --wp--preset--color--warning: #f59e0b;
  --wp--preset--color--error: #ef4444;
  
  /* Spacing */
  --wp--custom--spacing--xs: 0.25rem;
  --wp--custom--spacing--sm: 0.5rem;
  --wp--custom--spacing--md: 1rem;
  --wp--custom--spacing--lg: 2rem;
  --wp--custom--spacing--xl: 4rem;
  
  /* Typography */
  --wp--preset--font-size--small: 0.8125rem;
  --wp--preset--font-size--medium: 0.9375rem;
  --wp--preset--font-size--large: 1.125rem;
  --wp--preset--font-size--x-large: 1.375rem;
  --wp--preset--font-size--xx-large: 1.75rem;
  --wp--preset--font-size--huge: 2.25rem;
  
  /* Effects */
  --wp--custom--effects--glow-sm: 0 0 10px rgba(34, 211, 238, 0.15);
  --wp--custom--effects--glow-md: 0 0 20px rgba(34, 211, 238, 0.25);
  --wp--custom--effects--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --wp--custom--effects--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --wp--custom--effects--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Base Reset & Typography
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.65;
  color: var(--wp--preset--color--text);
  background-color: var(--wp--preset--color--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #06b6d4;
  opacity: 0.9;
}

/* ============================================
   Layout
   ============================================ */
.wp-site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--wp--custom--spacing--lg) var(--wp--custom--spacing--md);
  width: 100%;
}

.site-main.wide {
  max-width: 1400px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--text);
  border-bottom: 1px solid var(--wp--preset--color--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.85);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--wp--custom--spacing--md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--custom--spacing--md);
}

.site-title {
  margin: 0;
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-title a {
  color: var(--wp--preset--color--text);
  display: flex;
  align-items: center;
  gap: var(--wp--custom--spacing--sm);
}

.site-title a:hover {
  color: var(--wp--preset--color--accent);
  opacity: 1;
}

/* ============================================
   Menu Toggle (Hamburger)
   ============================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wp--preset--color--text);
  cursor: pointer;
  padding: var(--wp--custom--spacing--sm);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: var(--wp--preset--color--surface-hover);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* ============================================
   Desktop Navigation with Categories
   ============================================ */
.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--wp--custom--spacing--lg);
}

.desktop-nav .nav-menu li {
  margin: 0;
}

.desktop-nav .nav-menu a {
  color: var(--wp--preset--color--text-muted);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--wp--custom--spacing--xs) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.desktop-nav .nav-menu a:hover,
.desktop-nav .nav-menu a[aria-current="page"] {
  color: var(--wp--preset--color--accent);
  border-bottom-color: var(--wp--preset--color--accent);
  opacity: 1;
}

/* ============================================
   Breaking News Ticker
   ============================================ */
.breaking-news {
  background: linear-gradient(90deg, var(--wp--preset--color--primary), #dc2626);
  color: #ffffff;
  padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
}

.breaking-news__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--wp--custom--spacing--md);
}

.breaking-news__label {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
}

.breaking-news__link,
.breaking-news__link:hover {
  color: #ffffff;
  opacity: 0.95;
}

/* ============================================
   Article Cards
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--wp--custom--spacing--lg);
}

.article-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--wp--preset--color--accent);
  box-shadow: var(--wp--custom--effects--glow-md);
  transform: translateY(-4px);
}

.article-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.05);
}

.article-card__content {
  padding: var(--wp--custom--spacing--md);
}

.article-card__category {
  display: inline-block;
  background: var(--wp--preset--color--accent);
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--spacing--sm);
}

.article-card__title {
  margin: 0 0 var(--wp--custom--spacing--sm);
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.3;
  font-weight: 600;
}

.article-card__title a {
  color: var(--wp--preset--color--text);
}

.article-card__title a:hover {
  color: var(--wp--preset--color--accent);
}

.article-card__meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}

/* ============================================
   Featured Article
   ============================================ */
.featured-article {
  display: flex;
  gap: var(--wp--custom--spacing--lg);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--wp--custom--spacing--xl);
}

.featured-article__content {
  flex: 1;
  padding: var(--wp--custom--spacing--lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article__category {
  display: inline-block;
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--spacing--md);
  width: fit-content;
}

.featured-article__title {
  font-size: var(--wp--preset--font-size--huge);
  margin: var(--wp--custom--spacing--md) 0 var(--wp--custom--spacing--md);
  line-height: 1.1;
  font-weight: 800;
}

.featured-article__title a {
  color: var(--wp--preset--color--text);
}

.featured-article__title a:hover {
  color: var(--wp--preset--color--accent);
}

.featured-article__excerpt {
  color: var(--wp--preset--color--text-muted);
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.6;
  margin-bottom: var(--wp--custom--spacing--md);
}

.featured-article__meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}

.featured-article__image {
  flex: 0 0 50%;
  overflow: hidden;
}

.featured-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .featured-article__image img {
  transform: scale(1.05);
}

/* ============================================
   Single Post
   ============================================ */
.single-post .entry-header {
  margin-bottom: var(--wp--custom--spacing--lg);
  padding-bottom: var(--wp--custom--spacing--md);
  border-bottom: 1px solid var(--wp--preset--color--surface-border);
}

.single-post .entry-title {
  font-size: var(--wp--preset--font-size--huge);
  margin-bottom: var(--wp--custom--spacing--md);
  line-height: 1.1;
}

.single-post .entry-meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}

.single-post .entry-content {
  max-width: 720px;
  margin: 0 auto;
}

.single-post .post-thumbnail {
  margin-bottom: var(--wp--custom--spacing--lg);
}

.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================================
   Sidebar
   ============================================ */
.site-sidebar {
  background: var(--wp--preset--color--surface);
  padding: var(--wp--custom--spacing--md);
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--surface-border);
}

.sidebar-widget {
  margin-bottom: var(--wp--custom--spacing--lg);
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget__title {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--wp--custom--spacing--md);
  padding-bottom: var(--wp--custom--spacing--sm);
  border-bottom: 2px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--text);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--text);
  padding: var(--wp--custom--spacing--xl) var(--wp--custom--spacing--md);
  margin-top: var(--wp--custom--spacing--xl);
  border-top: 1px solid var(--wp--preset--color--surface-border);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--wp--custom--spacing--lg);
}

.site-footer__widget h3 {
  font-size: var(--wp--preset--font-size--medium);
  margin-bottom: var(--wp--custom--spacing--md);
  color: var(--wp--preset--color--text);
  font-weight: 600;
}

.site-footer__widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__widget li {
  margin-bottom: var(--wp--custom--spacing--sm);
}

.site-footer__widget a {
  color: var(--wp--preset--color--text-muted);
}

.site-footer__widget a:hover {
  color: var(--wp--preset--color--accent);
}

.site-footer__bottom {
  max-width: 1200px;
  margin: var(--wp--custom--spacing--lg) auto 0;
  padding-top: var(--wp--custom--spacing--md);
  border-top: 1px solid var(--wp--preset--color--surface-border);
  text-align: center;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}

.site-footer__bottom a {
  color: var(--wp--preset--color--text-muted);
}

.site-footer__bottom a:hover {
  color: var(--wp--preset--color--accent);
}

/* ============================================
   Search Form
   ============================================ */
.search-form {
  display: flex;
  gap: var(--wp--custom--spacing--sm);
}

.search-form__input {
  flex: 1;
  padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 6px;
  font-size: var(--wp--preset--font-size--medium);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form__input:focus {
  outline: none;
  border-color: var(--wp--preset--color--accent);
  box-shadow: var(--wp--custom--effects--glow-sm);
}

.search-form__button {
  padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
  background: var(--wp--preset--color--accent);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-form__button:hover {
  background: #06b6d4;
  box-shadow: var(--wp--custom--effects--glow-sm);
}

/* ============================================
   Tags
   ============================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--custom--spacing--sm);
}

.tag-cloud__link {
  display: inline-block;
  padding: var(--wp--custom--spacing--xs) var(--wp--custom--spacing--sm);
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--text-muted);
  font-size: var(--wp--preset--font-size--small);
  border-radius: 4px;
  border: 1px solid var(--wp--preset--color--surface-border);
  transition: all 0.2s ease;
}

.tag-cloud__link:hover {
  background: var(--wp--preset--color--accent);
  color: #0f172a;
  border-color: var(--wp--preset--color--accent);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--wp--custom--spacing--sm);
  margin-top: 6rem;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--text);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--wp--preset--color--accent);
  color: #0f172a;
  border-color: var(--wp--preset--color--accent);
}

.pagination .page-numbers.dots {
  background: transparent;
  border: none;
  width: auto;
}

/* ============================================
   Posts Grid Layouts
   ============================================ */
.posts-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--custom--spacing--lg);
  margin-top: var(--wp--custom--spacing--xl);
}

.posts-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wp--custom--spacing--lg);
  margin-top: var(--wp--custom--spacing--xl);
}

/* ============================================
   Grid Article Card
   ============================================ */
.grid-article-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.grid-article-card:hover {
  border-color: var(--wp--preset--color--accent);
  box-shadow: var(--wp--custom--effects--glow-md);
}

.grid-article-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.grid-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-article-card:hover .grid-article-card__image img {
  transform: scale(1.05);
}

.grid-article-card__content {
  padding: var(--wp--custom--spacing--md);
}

.grid-article-card__title {
  font-size: var(--wp--preset--font-size--large);
  margin: var(--wp--custom--spacing--sm) 0;
  line-height: 1.3;
}

.grid-article-card__title a {
  color: var(--wp--preset--color--text);
}

.grid-article-card__title a:hover {
  color: var(--wp--preset--color--accent);
}

.grid-article-card__excerpt {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
  margin-top: var(--wp--custom--spacing--sm);
}

/* ============================================
   Compact Article List
   ============================================ */
.posts-list-compact {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--spacing--md);
  margin-top: var(--wp--custom--spacing--xl);
}

.compact-article-card {
  display: flex;
  gap: var(--wp--custom--spacing--md);
  padding: var(--wp--custom--spacing--md);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 8px;
  background: var(--wp--preset--color--surface);
  transition: all 0.2s ease;
}

.compact-article-card:hover {
  border-color: var(--wp--preset--color--accent);
}

.compact-article-card__content {
  flex: 0 0 65%;
}

.compact-article-card__image {
  flex: 0 0 35%;
  border-radius: 6px;
  overflow: hidden;
}

.compact-article-card__image img {
  width: 100%;
  max-width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.compact-article-card__title {
  font-size: var(--wp--preset--font-size--large);
  margin: var(--wp--custom--spacing--xs) 0;
  line-height: 1.3;
}

.compact-article-card__title a {
  color: var(--wp--preset--color--text);
}

.compact-article-card__title a:hover {
  color: var(--wp--preset--color--accent);
}

.compact-article-card__excerpt {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
  margin-top: var(--wp--custom--spacing--xs);
}

/* ============================================
   Article Meta & Category
   ============================================ */
.article-category {
  display: inline-block;
  background: var(--wp--preset--color--accent);
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

.article-meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.wp-block-button__link {
  background: var(--wp--preset--color--accent);
  color: #0f172a;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wp-block-button__link:hover {
  background: #06b6d4;
  box-shadow: var(--wp--custom--effects--glow-sm);
  opacity: 1;
}

/* ============================================
   Blockquote & Highlight
   ============================================ */
.wp-block-quote {
  border-left: 4px solid var(--wp--preset--color--accent);
  padding-left: var(--wp--custom--spacing--md);
  margin: var(--wp--custom--spacing--lg) 0;
  color: var(--wp--preset--color--text-muted);
  font-style: italic;
}

/* ============================================
   Code Blocks
   ============================================ */
.wp-block-code {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--surface-border);
  border-radius: 6px;
  padding: var(--wp--custom--spacing--md);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--wp--preset--color--accent);
  color: #0f172a;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--wp--preset--color--background);
}

::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--surface-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wp--preset--color--text-muted);
}

/* ============================================
   Mobile Menu (hidden by default, shown via JS)
   ============================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  z-index: 10000;
  flex-direction: column;
  padding: var(--wp--custom--spacing--lg);
  gap: var(--wp--custom--spacing--lg);
}

.mobile-menu-overlay.is-open {
  display: flex;
}

.mobile-menu-overlay .menu-close {
  align-self: flex-end;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-menu-overlay .mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--spacing--lg);
}

.mobile-menu-overlay .mobile-nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-overlay .mobile-nav-menu a {
  color: #fff;
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu-overlay .mobile-nav-menu a:hover {
  color: var(--wp--preset--color--accent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .featured-article {
    flex-direction: column;
  }
  
  .featured-article__content,
  .featured-article__image {
    flex: none;
    width: 100%;
  }
  
  .featured-article__image {
    order: -1;
  }
  
  .featured-article__image img {
    height: 220px;
  }
  
  .posts-grid-3col,
  .posts-grid-2col {
    grid-template-columns: 1fr;
  }
  
  .compact-article-card {
    flex-direction: column;
  }
  
  .compact-article-card__content,
  .compact-article-card__image {
    flex: none;
    width: 100%;
  }
  
  .compact-article-card__image {
    order: -1;
  }
  
  .compact-article-card__image img {
    height: 200px;
  }
  
  .featured-article__title {
    font-size: var(--wp--preset--font-size--xx-large);
  }

  .single-post .entry-title {
    font-size: var(--wp--preset--font-size--xx-large);
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Accessibility
   ============================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--wp--preset--color--surface);
  border-radius: 4px;
  box-shadow: var(--wp--custom--effects--shadow-md);
  clip: auto !important;
  color: var(--wp--preset--color--accent);
  display: block;
  font-size: var(--wp--preset--font-size--medium);
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================
   Focus States
   ============================================ */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}