/* =============================================================
   NEWSPAPER THEME — screen.css
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Barlow:wght@400;500;600;700&display=swap');

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  background-color: var(--color-site-bg, #f8f5ef);
  color: var(--color-body-text, #1a1a1a);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent, #c0392b); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent, #c0392b); opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.2em; }

/* ===================== UTILITY ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rule { border: none; border-top: 1px solid var(--color-rule, #d0c9be); margin: 24px 0; }
.rule--thick { border-top-width: 3px; border-color: var(--color-accent, #c0392b); }
.section-label { font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted, #666); }
.tag-badge {
  display: inline-block;
  background: transparent;
  color: var(--color-accent, #c0392b);
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--color-accent, #c0392b);
}
.tag-badge:hover { opacity: 0.85; color: var(--color-accent, #c0392b); }

/* ===================== ANNOUNCEMENT BAR ===================== */
.announcement-bar { background: var(--color-announce-bg, #c0392b); color: var(--color-announce-text, #fff); font-family: 'Barlow', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; overflow: hidden; height: 34px; display: flex; align-items: center; }
.announcement-bar.hidden { display: none; }
.announcement-bar__track { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.announcement-bar__track span { padding: 0 48px; }
.announcement-bar__track a { color: var(--color-announce-text, #fff); font-weight: 700; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===================== HEADER ===================== */
.site-header { background: var(--color-header-bg, #1a1a1a); color: var(--color-header-text, #f5f0e8); border-bottom: 3px solid var(--color-accent, #c0392b); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: 1280px; margin: 0 auto; }
.site-header__logo a { display: flex; align-items: center; gap: 12px; color: var(--color-header-text, #f5f0e8); }
.site-header__logo img { height: 44px; width: auto; }
.site-header__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; color: var(--color-header-text, #f5f0e8); line-height: 1; }
.site-header__nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.site-header__nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; width: 100%; justify-content: inherit; }
.site-header__nav li { list-style: none; margin: 0; padding: 0; }
.site-header__nav a { font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-header-text, #f5f0e8); padding: 6px 12px; border-radius: 3px; transition: background 0.2s, color 0.2s; display: block; white-space: nowrap; }
.site-header__nav a:hover, .site-header__nav a.active { background: var(--color-accent, #c0392b); color: #fff; }
.site-header--nav-center .site-header__nav { justify-content: center; flex: 1; }
.site-header--nav-left   .site-header__nav { justify-content: flex-start; flex: none; margin-right: auto; }
.site-header--nav-right  .site-header__nav { justify-content: flex-end; flex: none; margin-left: auto; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__actions a { font-family: 'Barlow', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-header-text, #f5f0e8); padding: 6px 14px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; transition: all 0.2s; }
.site-header__actions a.btn-subscribe { background: var(--color-accent, #c0392b); border-color: var(--color-accent, #c0392b); color: #fff; }
.site-header__actions a:hover { opacity: 0.85; }
.site-header__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-header-text, #f5f0e8); }
.site-header__burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: all 0.3s; }

/* ===================== DATELINE ===================== */
.dateline { background: var(--color-content-bg, #fff); border-bottom: 1px solid var(--color-rule, #d0c9be); padding: 8px 0; font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: var(--color-muted, #666); letter-spacing: 0.06em; }
.dateline__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.dateline__edition { font-weight: 700; text-transform: uppercase; }

/* ===================== LAYOUT: MAIN + SIDEBAR ===================== */
.site-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.layout-wrapper { display: grid; gap: 40px; }
.layout-wrapper.sidebar-right { grid-template-columns: 1fr 320px; grid-template-areas: "content sidebar"; }
.layout-wrapper.sidebar-right .content-area { grid-area: content; }
.layout-wrapper.sidebar-right .sidebar-area { grid-area: sidebar; }
.layout-wrapper.sidebar-left { grid-template-columns: 300px 1fr; grid-template-areas: "sidebar content"; }
.layout-wrapper.sidebar-left .content-area { grid-area: content; }
.layout-wrapper.sidebar-left .sidebar-area { grid-area: sidebar; }
.layout-wrapper.no-sidebar { grid-template-columns: 1fr; }
.layout-wrapper.no-sidebar .sidebar-area { display: none; }
.layout-wrapper.two-sidebars { grid-template-columns: 260px 1fr 260px; grid-template-areas: "sidebar content sidebar2"; }
.layout-wrapper.two-sidebars .content-area { grid-area: content; }
.layout-wrapper.two-sidebars .sidebar-area { grid-area: sidebar; }
.layout-wrapper.two-sidebars .sidebar2-area { grid-area: sidebar2; }
.content-area { background: var(--color-content-bg, #fff); border-radius: 4px; padding: 32px; }

/* ===================== FEATURED SECTION ===================== */
.featured-section { margin-bottom: 40px; }
.featured-section__header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--color-accent, #c0392b); }
.featured-section__header h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted, #666); }
.featured-layout--large-stacked { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1px; background: var(--color-rule, #d0c9be); }
.featured-layout--large-stacked .featured-main { grid-row: 1 / 3; background: var(--color-card-bg, #fff); }
.featured-layout--large-stacked .featured-side { background: var(--color-card-bg, #fff); }
.featured-layout--hero .hero-card { position: relative; overflow: hidden; border-radius: 4px; }
.featured-layout--hero .hero-card img { width: 100%; height: 420px; object-fit: cover; }
.featured-layout--hero .hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 60px 32px 32px; color: #fff; }
.featured-layout--hero .hero-overlay h2 { color: #fff; }
.featured-layout--hero .hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.featured-layout--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featured-layout--magazine { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--color-rule, #d0c9be); }
.featured-layout--magazine .featured-main { grid-row: 1 / 3; background: var(--color-card-bg, #fff); }
.featured-layout--magazine .featured-side { background: var(--color-card-bg, #fff); }

/* ===================== ARTICLE CARDS ===================== */
.posts-grid { display: grid; gap: 24px; }
.posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.posts-grid.cols-list { grid-template-columns: 1fr; }
.post-card { background: var(--color-card-bg, #fff); border-radius: 3px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.post-card--image-top .post-card__image-wrap { aspect-ratio: 16/9; overflow: hidden; }
.post-card--image-top .post-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card--image-top:hover .post-card__image-wrap img { transform: scale(1.04); }
.post-card--image-top .post-card__body { padding: 16px; flex: 1; }
.post-card--image-left { flex-direction: row; align-items: stretch; }
.post-card--image-left .post-card__image-wrap { width: 120px; flex-shrink: 0; overflow: hidden; }
.post-card--image-left .post-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-card--image-left .post-card__body { padding: 12px 16px; flex: 1; }
.post-card--text-only { border-top: 3px solid var(--color-accent, #c0392b); }
.post-card--text-only .post-card__body { padding: 16px; flex: 1; }
.post-card--bordered { border: 1px solid var(--color-rule, #d0c9be); }
.post-card--bordered .post-card__image-wrap { aspect-ratio: 16/9; overflow: hidden; }
.post-card--bordered .post-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-card--bordered .post-card__body { padding: 16px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.post-card__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--color-body-text, #1a1a1a); margin-bottom: 8px; transition: color 0.2s; }
.post-card:hover .post-card__title { color: var(--color-accent, #c0392b); }
.post-card__excerpt { font-size: 0.875rem; color: var(--color-excerpt-text, #888888); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__footer { font-family: 'Barlow', sans-serif; font-size: 0.72rem; color: var(--color-muted, #666); display: flex; align-items: center; gap: 6px; margin-top: auto; }
.post-card__author { font-weight: 600; }
.post-card--featured-main .post-card__title { font-size: 1.5rem; }
.post-card--featured-main .post-card__image-wrap { aspect-ratio: 4/3; }

/* ===================== SECTION HEADERS ===================== */
.feed-section { margin-bottom: 40px; }
.feed-section__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 3px solid var(--color-accent, #c0392b); margin-bottom: 20px; }
.feed-section__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; color: var(--color-body-text, #1a1a1a); }
.feed-section__viewall { font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent, #c0392b); }

/* ===================== SIDEBAR ===================== */
.sidebar-area { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--color-sidebar-bg, #f0ebe1); border-radius: 3px; overflow: hidden; }
.sidebar-widget__header { background: var(--color-header-bg, #1a1a1a); color: var(--color-header-text, #f5f0e8); padding: 10px 16px; font-family: var(--font-display, 'Playfair Display', serif); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 3px solid var(--color-accent, #c0392b); display: flex; align-items: center; justify-content: space-between; }
.sidebar-widget__header a { color: var(--color-accent, #c0392b); font-size: 0.65rem; }
.sidebar-widget__body { padding: 16px; }
.sidebar-post-list { list-style: none; }
.sidebar-post-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-rule, #d0c9be); align-items: flex-start; }
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-item__thumb { width: 64px; height: 48px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: var(--color-rule, #d0c9be); }
.sidebar-post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-item__no-thumb { width: 64px; height: 48px; flex-shrink: 0; display: none; }
.sidebar-post-item__content { flex: 1; min-width: 0; }
.sidebar-post-item__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 0.85rem; font-weight: 700; line-height: 1.3; color: var(--color-body-text, #1a1a1a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.sidebar-post-item__title:hover { color: var(--color-accent, #c0392b); }
.sidebar-post-item__meta { font-family: 'Barlow', sans-serif; font-size: 0.68rem; color: var(--color-excerpt-text, #888888); margin-top: 4px; }
.sidebar--no-images .sidebar-post-item__thumb { display: none; }
.sidebar--no-images .sidebar-post-item__no-thumb { display: block; }
.sidebar-newsletter input[type="email"] { width: 100%; padding: 9px 12px; border: 1px solid var(--color-rule, #d0c9be); border-radius: 3px; font-family: 'Barlow', sans-serif; font-size: 0.85rem; background: #fff; color: var(--color-body-text, #1a1a1a); margin-bottom: 8px; }
.sidebar-newsletter input[type="email"]:focus { outline: 2px solid var(--color-accent, #c0392b); }
.sidebar-newsletter button { width: 100%; padding: 9px; background: var(--color-accent, #c0392b); color: #fff; border: none; border-radius: 3px; font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s; }
.sidebar-newsletter button:hover { opacity: 0.88; }
.sidebar-newsletter p { font-family: 'Barlow', sans-serif; font-size: 0.75rem; color: var(--color-muted, #666); margin: 8px 0 12px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag-item { background: var(--color-tag-bg, #1a1a1a); color: var(--color-tag-text, #f5f0e8); font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; transition: opacity 0.2s; }
.sidebar-tag-item:hover { opacity: 0.8; color: var(--color-tag-text, #f5f0e8); }

/* ===================== SINGLE POST ===================== */
.post-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--color-rule, #d0c9be); }
.post-header__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.post-header__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-body-text, #1a1a1a); margin-bottom: 16px; }
.post-header__excerpt { font-size: 1.1rem; color: var(--color-excerpt-text, #888888); font-style: italic; line-height: 1.5; margin-bottom: 20px; }
.post-header__byline { font-family: 'Barlow', sans-serif; font-size: 0.8rem; color: var(--color-muted, #666); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--color-rule, #d0c9be); }
.post-header__author-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post-header__author-name { font-weight: 700; color: var(--color-body-text, #1a1a1a); }
.post-header__feature-img { margin-bottom: 32px; border-radius: 4px; overflow: hidden; }
.post-header__feature-img img { width: 100%; max-height: 520px; object-fit: cover; }
.post-header__img-caption { font-family: 'Barlow', sans-serif; font-size: 0.75rem; color: var(--color-muted, #666); padding: 8px 0; font-style: italic; }
.post-body { font-size: 1.05rem; line-height: 1.75; color: var(--color-body-text, #1a1a1a); }
.post-body h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.6rem; font-weight: 700; margin: 2em 0 0.6em; padding-bottom: 8px; border-bottom: 1px solid var(--color-rule, #d0c9be); }
.post-body h3 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.25rem; font-weight: 700; margin: 1.6em 0 0.5em; }
.post-body h4 { font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 0.5em; }
.post-body blockquote { border-left: 4px solid var(--color-accent, #c0392b); padding: 12px 24px; margin: 2em 0; font-style: italic; font-size: 1.15rem; color: var(--color-muted, #666); background: var(--color-sidebar-bg, #f0ebe1); border-radius: 0 4px 4px 0; }
.post-body ul, .post-body ol { padding-left: 2em; margin-bottom: 1.2em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.4em; }
.post-body img { margin: 1.5em 0; border-radius: 3px; width: 100%; }
.post-body figure { margin: 1.5em 0; }
.post-body figcaption { font-family: 'Barlow', sans-serif; font-size: 0.78rem; color: var(--color-muted, #666); text-align: center; padding-top: 8px; font-style: italic; }
.post-body pre { background: #1a1a1a; color: #f5f0e8; padding: 20px; border-radius: 4px; overflow-x: auto; font-size: 0.88rem; margin: 1.5em 0; }
.post-body code { background: var(--color-sidebar-bg, #f0ebe1); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.post-body pre code { background: none; padding: 0; }
.post-body a { color: var(--color-accent, #c0392b); text-decoration: underline; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem; }
.post-body th { background: var(--color-header-bg, #1a1a1a); color: var(--color-header-text, #f5f0e8); padding: 10px 14px; text-align: left; font-family: 'Barlow', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--color-rule, #d0c9be); }
.post-body tr:nth-child(even) td { background: var(--color-site-bg, #f8f5ef); }
.post-share { margin-top: 40px; padding-top: 20px; border-top: 3px solid var(--color-accent, #c0392b); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: 'Barlow', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted, #666); }
.post-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--color-rule, #d0c9be); border-radius: 3px; color: var(--color-body-text, #1a1a1a); font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; }
.post-share__btn:hover { background: var(--color-accent, #c0392b); color: #fff; border-color: var(--color-accent, #c0392b); }
.author-box { margin-top: 40px; padding: 24px; background: var(--color-sidebar-bg, #f0ebe1); border-radius: 4px; display: flex; gap: 20px; align-items: flex-start; }
.author-box__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.author-box__bio { font-size: 0.88rem; color: var(--color-muted, #666); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--color-footer-bg, #1a1a1a); color: var(--color-footer-text, #ccc); padding: 60px 0 0; margin-top: 60px; border-top: 4px solid var(--color-accent, #c0392b); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer__brand .footer-title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.site-footer__brand p { font-size: 0.875rem; line-height: 1.65; }
.site-footer__col-title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.site-footer__col ul { list-style: none; }
.site-footer__col ul li { margin-bottom: 8px; }
.site-footer__col ul a { font-size: 0.875rem; color: var(--color-footer-text, #ccc); transition: color 0.2s; }
.site-footer__col ul a:hover { color: var(--color-footer-accent, #c0392b); }
.footer-newsletter { margin-top: 16px; }
.footer-newsletter label { display: block; font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-newsletter .newsletter-form { display: flex; gap: 0; }
.footer-newsletter input[type="email"] { flex: 1; padding: 9px 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-right: none; border-radius: 3px 0 0 3px; color: #fff; font-family: 'Barlow', sans-serif; font-size: 0.85rem; }
.footer-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input[type="email"]:focus { outline: none; border-color: var(--color-footer-accent, #c0392b); }
.footer-newsletter button { padding: 9px 16px; background: var(--color-footer-accent, #c0392b); color: #fff; border: none; border-radius: 0 3px 3px 0; font-family: 'Barlow', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s; }
.footer-newsletter button:hover { opacity: 0.88; }
.site-footer__bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: 'Barlow', sans-serif; font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.site-footer__bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.site-footer__bottom a:hover { color: var(--color-footer-accent, #c0392b); }
.site-footer__bottom-links { display: flex; gap: 20px; }

/* ===================== TAG / AUTHOR ARCHIVE PAGES ===================== */
.archive-header { padding: 40px 0 32px; border-bottom: 3px solid var(--color-accent, #c0392b); margin-bottom: 40px; }
.archive-header__label { font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent, #c0392b); margin-bottom: 8px; }
.archive-header__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.archive-header__description { font-size: 1rem; color: var(--color-muted, #666); max-width: 540px; }
.archive-header__count { font-family: 'Barlow', sans-serif; font-size: 0.8rem; color: var(--color-muted, #666); margin-top: 8px; }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 40px 0; font-family: 'Barlow', sans-serif; font-size: 0.85rem; }
.pagination .older-posts, .pagination .newer-posts { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--color-rule, #d0c9be); border-radius: 3px; font-weight: 600; color: var(--color-body-text, #1a1a1a); transition: all 0.2s; text-decoration: none; }
.pagination .older-posts:hover, .pagination .newer-posts:hover { background: var(--color-accent, #c0392b); border-color: var(--color-accent, #c0392b); color: #fff; }
.pagination .page-number { color: var(--color-muted, #888); font-size: 0.8rem; }
.pagination a { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--color-rule, #d0c9be); border-radius: 3px; font-weight: 600; color: var(--color-body-text, #1a1a1a); transition: all 0.2s; }
.pagination a:hover { background: var(--color-accent, #c0392b); border-color: var(--color-accent, #c0392b); color: #fff; }
.pagination span.page-number, .pagination > span { color: var(--color-muted, #888); font-size: 0.8rem; border: none; background: none; width: auto; height: auto; padding: 0; }

/* ===================== ERROR PAGE ===================== */
.error-page { text-align: center; padding: 80px 24px; }
.error-page__code { font-family: var(--font-display, 'Playfair Display', serif); font-size: 8rem; font-weight: 900; color: var(--color-accent, #c0392b); line-height: 1; opacity: 0.15; }
.error-page__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 2rem; font-weight: 700; margin-top: -40px; margin-bottom: 16px; }
.error-page p { color: var(--color-muted, #666); margin-bottom: 32px; }
.btn { display: inline-block; padding: 12px 28px; background: var(--color-accent, #c0392b); color: #fff; font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 3px; transition: opacity 0.2s; }
.btn:hover { opacity: 0.88; color: #fff; }

/* ===================== MEMBERSHIP / SUBSCRIBE ===================== */
.subscribe-section { background: var(--color-header-bg, #1a1a1a); color: var(--color-header-text, #f5f0e8); padding: 60px 24px; text-align: center; margin: 48px 0; border-radius: 4px; }
.subscribe-section h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 2rem; font-weight: 900; margin-bottom: 12px; color: #fff; }
.subscribe-section p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.subscribe-form { display: flex; max-width: 460px; margin: 0 auto; gap: 0; }
.subscribe-form input[type="email"] { flex: 1; padding: 12px 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-right: none; border-radius: 3px 0 0 3px; color: #fff; font-family: 'Barlow', sans-serif; font-size: 0.9rem; }
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form button { padding: 12px 24px; background: var(--color-accent, #c0392b); color: #fff; border: none; border-radius: 0 3px 3px 0; font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s; }
.subscribe-form button:hover { opacity: 0.88; }

/* ===================== SEARCH ===================== */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 999; display: flex; align-items: flex-start; padding-top: 120px; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box { width: 100%; max-width: 680px; padding: 0 24px; }
.search-box input { width: 100%; padding: 18px 20px; font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.4rem; background: #fff; border: none; border-radius: 4px; color: var(--color-body-text, #1a1a1a); }
.search-box input:focus { outline: none; }
.search-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* ===================== MOBILE NAV ===================== */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-header-bg, #1a1a1a); z-index: 200; padding: 80px 32px 40px; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mobile-menu li { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.4rem; font-weight: 700; color: var(--color-header-text, #f5f0e8); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: color 0.2s; display: block; }
.mobile-menu a:hover { color: var(--color-accent, #c0392b); }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--color-header-text, #f5f0e8); font-size: 2rem; cursor: pointer; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .layout-wrapper.sidebar-right, .layout-wrapper.sidebar-left { grid-template-columns: 1fr; }
  .layout-wrapper.sidebar-right .content-area, .layout-wrapper.sidebar-left .content-area { grid-area: auto; }
  .layout-wrapper.sidebar-right .sidebar-area, .layout-wrapper.sidebar-left .sidebar-area { grid-area: auto; }
  .layout-wrapper.two-sidebars { grid-template-columns: 1fr; grid-template-areas: none; }
  .layout-wrapper.two-sidebars .sidebar2-area { display: none; }
  .featured-layout--large-stacked, .featured-layout--magazine { grid-template-columns: 1fr; }
  .featured-layout--large-stacked .featured-main { grid-row: auto; }
}
@media (max-width: 768px) {
  .site-header__nav, .site-header__actions { display: none; }
  .site-header__burger { display: block; }
  .posts-grid.cols-3, .posts-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .featured-layout--3col, .featured-layout--hero .hero-grid { grid-template-columns: 1fr; }
  .content-area { padding: 20px 16px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .posts-grid.cols-2, .posts-grid.cols-3, .posts-grid.cols-4 { grid-template-columns: 1fr; }
  .post-card--image-left { flex-direction: column; }
  .post-card--image-left .post-card__image-wrap { width: 100%; height: 160px; }
  .site-main { padding: 16px; }
}

/* Koenig Classes */
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin: 1.5em auto; left: 50%; right: 50%; margin-left: -42.5vw; margin-right: -42.5vw; }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; margin-top: 1.5em; margin-bottom: 1.5em; }
.kg-card { margin: 1.5em 0; }
.kg-image { max-width: 100%; }
.kg-image-card img { margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-row:not(:first-of-type) { margin-top: 0.75em; }
.kg-gallery-image:not(:first-of-type) { margin-left: 0.75em; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container { display: flex; border: 1px solid var(--color-rule, #d0c9be); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: var(--font-display, 'Playfair Display', serif); font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--color-muted, #666); margin-bottom: 8px; }
.kg-bookmark-metadata { font-size: 0.75rem; color: var(--color-muted, #666); font-family: 'Barlow', sans-serif; display: flex; align-items: center; gap: 8px; }
.kg-bookmark-thumbnail { width: 200px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-toggle-card { border: 1px solid var(--color-rule, #d0c9be); border-radius: 4px; padding: 16px; }
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.kg-toggle-heading-text { font-weight: 700; }
.kg-toggle-content { margin-top: 12px; }
.kg-callout-card { display: flex; gap: 16px; padding: 20px; border-radius: 4px; background: var(--color-sidebar-bg, #f0ebe1); margin: 1.5em 0; }
.kg-callout-emoji { font-size: 1.5rem; }
.kg-video-card video { width: 100%; }
.kg-button-card { text-align: center; margin: 1.5em 0; }
.kg-btn { display: inline-block; padding: 12px 28px; background: var(--color-accent, #c0392b); color: #fff; border-radius: 3px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.kg-btn:hover { opacity: 0.88; color: #fff; }
.kg-audio-card { border: 1px solid var(--color-rule, #d0c9be); border-radius: 4px; padding: 16px; }
.kg-product-card { border: 1px solid var(--color-rule, #d0c9be); border-radius: 4px; padding: 24px; }
.kg-product-card-image { margin-bottom: 16px; }
.kg-product-card-title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.kg-header-card { text-align: center; padding: 48px 24px; }
.kg-header-card h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 2rem; font-weight: 900; }
.kg-nft-card a { display: block; }

/* =============================================================
   v2.0 ADDITIONS
   ============================================================= */
.tagbar { background: var(--color-tagbar-bg, #2c2c2c); border-bottom: 2px solid var(--color-accent, #c0392b); position: sticky; top: 68px; z-index: 90; }
.tagbar__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tagbar__inner::-webkit-scrollbar { display: none; }
.tagbar__divider { width: 1px; background: rgba(255,255,255,0.12); margin: 6px 0; flex-shrink: 0; }
.tagbar-block { display: flex; align-items: center; gap: 0; padding: 0 4px; flex-shrink: 0; }
.tagbar-block__type { font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-tagbar-section-label, #ffffff); padding: 10px 14px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.1); transition: opacity 0.2s; }
.tagbar-block[data-type="people"] .tagbar-block__type { color: var(--color-tagbar-section-label, #ffffff); }
.tagbar-block[data-type="topics"] .tagbar-block__type { color: var(--color-tagbar-section-label, #ffffff); }
.tagbar-block[data-type="collection"] .tagbar-block__type { color: var(--color-accent, #c0392b); }
.tagbar-block__type:hover { opacity: 0.8; }
.tagbar-block__items { display: flex; align-items: center; gap: 0; }
.tagbar-block__items a { font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--color-tagbar-link, #fff); padding: 10px 12px; white-space: nowrap; transition: color 0.2s, background 0.2s; border-right: 1px solid rgba(255,255,255,0.06); text-transform: capitalize; }
.tagbar-block__items a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.tagbar-block[data-type="collection"] .tagbar-block__items a { font-weight: 700; color: #fff; }
.tagbar-block__type--featured { color: #fff !important; font-weight: 900; letter-spacing: 0.14em; }

/* DENSE POST CARD */
.post-card-dense { padding: 10px 0; border-bottom: 1px solid var(--color-rule, #d0c9be); }
.post-card-dense:last-child { border-bottom: none; }
.post-card-dense__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.post-card-dense__date { font-family: 'Barlow', sans-serif; font-size: 0.68rem; color: var(--color-accent, #c0392b); }
.post-card-dense__title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 0.95rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.post-card-dense__title a { color: var(--color-header-text, #f5f0e8); transition: color 0.2s; }
.post-card-dense__title a:hover { color: var(--color-accent, #c0392b); }
.post-card-dense__excerpt { font-size: 0.83rem; color: var(--color-excerpt-text, #888888); line-height: 1.45; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-dense__byline { font-family: 'Barlow', sans-serif; font-size: 0.68rem; color: var(--color-muted, #666); }
.dense-lines-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dense-lines-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dense-lines-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dense-feed { display: grid; gap: 0 32px; }
.dense-cols-1 { grid-template-columns: 1fr; }
.dense-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dense-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dense-cols-4 { grid-template-columns: repeat(4, 1fr); }
.feed-section--wide { margin-bottom: 40px; }
.feed-section__desc { font-size: 0.85rem; color: var(--color-muted, #666); margin-top: 2px; font-style: italic; }

/* POST TAGS */
.post-tags { margin-top: 32px; padding: 20px; background: var(--color-sidebar-bg, #f0ebe1); border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-tags__group-label { display: block; font-family: 'Barlow', sans-serif; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted, #666); margin-bottom: 8px; }
.post-tags__items { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags__tag { font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; transition: opacity 0.2s; }
.post-tags__tag--people { background: #2c2c2c; color: #f9c74f; }
.post-tags__tag--people:hover { opacity: 0.85; color: #f9c74f; }
.post-tags__tag--topics { background: var(--color-accent, #c0392b); color: #fff; }
.post-tags__tag--topics:hover { opacity: 0.85; color: #fff; }

/* SIDEBAR TAG ITEMS */
.sidebar-tag-item--people { background: #2c2c2c; color: #f9c74f; }
.sidebar-tag-item--people:hover { opacity: 0.85; color: #f9c74f; }
.sidebar-tag-item--topics { background: var(--color-accent, #c0392b); color: #fff; }
.sidebar-tag-item--topics:hover { opacity: 0.85; color: #fff; }

/* TAG TYPE HEADER */
.tag-type-header { margin-bottom: 32px; padding: 28px 0 20px; border-bottom: 3px solid var(--color-accent, #c0392b); }
.tag-type-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.tag-type-header__label { font-family: 'Barlow', sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.tag-type-header__name--cap { text-transform: capitalize; }
.tag-type-header__desc { font-size: 0.95rem; color: var(--color-muted, #666); margin-top: 8px; line-height: 1.5; }
.tag-type-header--people .tag-type-header__label { color: #b8860b; }
.tag-type-header--topics .tag-type-header__label { color: var(--color-accent, #c0392b); }
.tag-type-header__label a { color: inherit; text-decoration: none; }
.tag-type-header__label a:hover { text-decoration: underline; }
.tag-type-header__name { font-family: var(--font-display, 'Playfair Display', serif); font-size: 2.2rem; font-weight: 900; letter-spacing: -0.02em; color: var(--color-body-text, #1a1a1a); }
.tag-type-header__count { font-family: 'Barlow', sans-serif; font-size: 0.78rem; color: var(--color-muted, #666); margin-top: 6px; }

/* ALL TAGS LIST (Index Pages) */
.all-tags-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
.all-tags-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.all-tags-badge:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0.9; }
.all-tags-badge__name { font-family: var(--font-display, 'Playfair Display', serif); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.all-tags-badge__count { font-family: 'Barlow', sans-serif; font-size: 0.75rem; opacity: 0.7; background: rgba(0,0,0,0.15); padding: 2px 6px; border-radius: 10px; }
.all-tags-badge--people { background: var(--color-people-tag-bg, #2c2c2c); color: var(--color-people-tag, #f9c74f); }
.all-tags-badge--people .all-tags-badge__name { color: var(--color-people-tag, #f9c74f); }
.all-tags-badge--topics { background: var(--color-accent, #c0392b); color: var(--color-topics-tag, #ffffff); }
.all-tags-badge--topics .all-tags-badge__name { color: var(--color-topics-tag, #ffffff); }

.footer-newsletter__text { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; line-height: 1.5; }
.tag-badge--small { font-size: 0.6rem; padding: 2px 6px; }

@media (max-width: 768px) {
  .tagbar { top: 60px; }
  .dense-cols-3, .dense-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .post-tags { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dense-cols-2, .dense-cols-3, .dense-cols-4 { grid-template-columns: 1fr; }
  .tagbar { top: 56px; }
}
