/* ================================================
   BATFANG — Stylesheet v8
   Deutschland-Aktuell inspired · DM Serif Display + DM Sans
   ================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.site-wrapper { overflow-x: hidden; min-height: 100vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ── VARIABLES ── */
:root {
  --ink:      #111;
  --ink2:     #333;
  --muted:    #767676;
  --red:      #c31826;
  --red-h:    #9a1220;
  --cta:      #c31826;
  --cta-h:    #9a1220;
  --cream:    #f5f5f5;
  --cream2:   #ececec;
  --card:     #ffffff;
  --border:   #ddd;
  --border2:  #bbb;
  --r:        2px;
  --r2:       2px;
  --sh:       0 1px 3px rgba(0,0,0,.07);
  --sh-md:    0 4px 20px rgba(0,0,0,.11);
  --ease:     .2s ease;
}

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ================================================
   HEADER — white, editorial, light
   ================================================ */

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* Top stripe */
.header-top {
  background: var(--ink);
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
}
.header-date {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.header-top-inner > span:last-child {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}

/* Main bar */
.header-main { padding: 0; background: #fff; }
.header-main-inner {
  display: flex;
  align-items: center;
  height: 58px;
  gap: 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 20px;
  margin-right: 14px;
  border-right: 1px solid var(--border);
  text-decoration: none;
}
.logo-icon { flex-shrink: 0; }
.logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.logo-name-top {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--ink);
  text-transform: uppercase;
}
.logo-name-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* Nav */
.header-nav { flex: 1; overflow: hidden; }
.header-nav ul { display: flex; align-items: stretch; height: 58px; }
.header-nav a {
  display: flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink2);
  padding: 0 12px;
  height: 58px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.header-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; padding-left: 10px; flex-shrink: 0; }

.btn-search {
  display: flex; align-items: center;
  background: none; border: none;
  color: var(--ink2);
  padding: 7px; border-radius: var(--r);
  transition: color var(--ease);
}
.btn-search:hover { color: var(--red); }

.btn-login {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--ink2);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-login:hover { border-color: var(--ink); color: var(--ink); }
.header-utility-right .btn-login { display: inline-flex; align-items: center; }

.btn-subscribe {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  transition: background var(--ease);
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--cta-h); }

.btn-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 7px 4px;
}
.btn-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Lang dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 10px; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--ink2);
  transition: all var(--ease);
}
.lang-btn:hover { border-color: var(--border2); color: var(--ink); }
.lang-btn svg { opacity: .5; }
.lang-text { text-transform: uppercase; }
.lang-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  min-width: 160px; overflow: hidden; z-index: 9999;
}
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--ink); transition: background var(--ease); }
.lang-menu a:hover { background: var(--cream); }
.lang-menu a.active { color: var(--red); }
.lang-menu .flag { font-size: 15px; width: 20px; text-align: center; }
.lang-menu .lang-name { flex: 1; }
.lang-menu .lang-check { font-size: 11px; color: var(--red); display: none; }
.lang-menu a.active .lang-check { display: block; }

/* User dropdown */
.user-dropdown { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 5px 8px; border-radius: var(--r);
  transition: all var(--ease);
}
.user-btn:hover { background: var(--cream2); }
.user-avatar-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.user-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  min-width: 195px; overflow: hidden; z-index: 9999;
}
.user-menu-header { padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--cream); }
.user-menu-header strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu a { display: block; padding: 9px 14px; font-size: 13px; color: var(--ink); transition: background var(--ease); }
.user-menu a:hover { background: var(--cream); }
.user-menu .logout-link { color: var(--red); border-top: 1px solid var(--border); }

.plan-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; margin-top: 3px; }
.plan-pill.plan-free     { background: #eee; color: #555; }
.plan-pill.plan-standard { background: #fef3c7; color: #92400e; }
.plan-pill.plan-premium  { background: #ede9fe; color: #5b21b6; }

/* Search bar */
.search-bar { background: var(--cream2); border-top: 1px solid var(--border); padding: 10px 0; }
.search-form { display: flex; gap: 8px; }
.search-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: 14px;
  background: var(--card); color: var(--ink);
  outline: none; transition: border-color var(--ease);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--ink); }
.btn-search-submit {
  background: var(--cta); color: #fff;
  border: none; padding: 10px 20px;
  border-radius: var(--r); font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--ease);
}
.btn-search-submit:hover { background: var(--cta-h); }

/* Mobile menu */
.mobile-menu { background: var(--card); border-top: 1px solid var(--border); }
.mobile-menu .container { padding-top: 6px; padding-bottom: 12px; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 11px 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink2);
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-divider { height: 8px; }

/* ================================================
   BREAKING TICKER
   ================================================ */

.breaking-bar { background: var(--cream2); border-bottom: 1px solid var(--border); }
.breaking-inner { display: flex; align-items: stretch; height: 34px; overflow: hidden; }
.breaking-label {
  display: flex; align-items: center;
  background: var(--ink); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 0 16px; white-space: nowrap; flex-shrink: 0;
}
.breaking-ticker { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; padding: 0 20px; }
.breaking-ticker ul {
  display: flex; gap: 56px; white-space: nowrap;
  animation: af-ticker 55s linear infinite;
}
.breaking-ticker ul:hover { animation-play-state: paused; }
.breaking-ticker a {
  font-size: 12.5px; font-weight: 400; color: var(--ink2);
  transition: color var(--ease);
}
.breaking-ticker a:hover { color: var(--red); }
@keyframes af-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================
   CATEGORY TAGS
   ================================================ */

.category-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px; line-height: 1;
}

/* ================================================
   HERO SECTION — 3 equal full-image cards
   ================================================ */

.hero-section { padding: 0; background: transparent; overflow: hidden; }

.hero-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: #111;
  height: 420px;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease, opacity .4s ease;
}
.hero-card:hover .hero-bg-img { transform: scale(1.06); opacity: .82; }

.hero-card-cover {
  position: absolute; inset: 0; z-index: 1;
}
.hero-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 22px; z-index: 2; }

.hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.4) 50%,
    rgba(0,0,0,.08) 100%
  );
  pointer-events: none;
}

.hero-card-body .category-tag {
  display: inline-block;
  background: var(--red); color: #fff;
  padding: 3px 10px; border-radius: 0;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 9px;
}
.hero-card-body .category-tag.technology { background: #1565c0; }
.hero-card-body .category-tag.travel     { background: #b84f10; }
.hero-card-body .category-tag.lifestyle  { background: #276129; }
.hero-card-body .category-tag.science    { background: #5c1681; }
.hero-card-body .category-tag.food       { background: #b84500; }
.hero-card-body .category-tag.culture    { background: #9c1148; }

.hero-card-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px; font-weight: 400; line-height: 1.3;
  color: #fff; margin-bottom: 8px;
}
.hero-card-body h2 a { color: #fff; }
.hero-card-body h2 a:hover { opacity: .88; }
.hero-card-body .article-meta { font-size: 11px; color: rgba(255,255,255,.5); }

/* ================================================
   SECTION HEADERS
   ================================================ */

.homepage-section { padding: 28px 0; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
}
.section-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--red); letter-spacing: .06em; text-transform: uppercase;
  transition: opacity var(--ease);
}
.section-link:hover { opacity: .7; }

/* ================================================
   ARTICLE CARDS
   ================================================ */

.articles-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.articles-grid-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
  background: var(--card);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
  display: flex; flex-direction: column;
  transition: box-shadow var(--ease);
  border-radius: 0;
}
.article-card:hover { box-shadow: var(--sh-md); position: relative; z-index: 1; }

.card-img-link {
  display: block; overflow: hidden;
  flex-shrink: 0; background: var(--cream2);
}
.article-card .article-img {
  aspect-ratio: 16 / 10;
  width: 100%; object-fit: cover; display: block;
  transition: transform .45s ease, opacity .3s ease;
}
.card-img-link:hover .article-img { transform: scale(1.04); opacity: .9; }

.card-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.article-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px; font-weight: 400; line-height: 1.4;
  color: var(--ink); margin-bottom: 8px; flex: 1;
}
.article-card h3 a { color: var(--ink); transition: color var(--ease); }
.article-card h3 a:hover { color: var(--red); }
.article-card p {
  font-size: 13px; color: var(--ink2); line-height: 1.6;
  margin-bottom: 10px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.article-meta {
  font-size: 11px; color: var(--muted);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}

/* Paywall lock */
.lock-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  backdrop-filter: blur(3px);
}

/* ================================================
   PAGINATION
   ================================================ */

.pagination { display: flex; gap: 4px; margin: 30px 0 0; flex-wrap: wrap; }
.page-btn {
  padding: 7px 13px; border: 1px solid var(--border);
  border-radius: var(--r); font-size: 13px; font-weight: 500;
  color: var(--muted); background: var(--card);
  transition: all var(--ease);
}
.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.active, .page-btn-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ================================================
   ARTICLE PAGE
   ================================================ */

.article-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 48px; padding: 36px 0 60px; align-items: start;
}
.article-layout > * { min-width: 0; }

.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px; font-weight: 500;
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.breadcrumbs a { color: var(--muted); transition: color var(--ease); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { opacity: .35; }
.breadcrumbs .current {
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 38px; font-weight: 400; line-height: 1.2;
  color: var(--ink); margin-bottom: 14px;
}
.article-subtitle {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 19px; color: var(--ink2); line-height: 1.6;
  margin-bottom: 20px; font-style: italic;
}
.article-byline {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.author-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink);
}
.pub-date { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.article-featured-img { overflow: hidden; margin-bottom: 26px; }
.article-featured-img img { width: 100%; }

.article-body {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 17px; line-height: 1.9; color: #2c2c2c;
  overflow-wrap: break-word; word-wrap: break-word; min-width: 0;
}
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px; font-weight: 400;
  margin: 36px 0 14px; color: var(--ink);
  border-left: 4px solid var(--red); padding-left: 14px;
}
.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 600;
  margin: 26px 0 10px; color: var(--ink);
}
.article-body img { max-width: 100%; height: auto; display: block; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 22px; background: var(--cream2);
  margin: 28px 0; font-style: italic; color: #555;
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body a:hover { color: var(--red-h); }
.article-body a.sa-textad-cta,
.article-body a.sa-textad-headline,
.article-body a.sa-related-item { text-decoration: none; }
.article-body a.sa-textad-cta { color: #fff; }
.article-body a.sa-textad-cta:hover { color: #fff; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.article-body table th { background: var(--cream); font-weight: 700; font-family: 'DM Sans', sans-serif; }
.article-body table tr:nth-child(even) td { background: var(--cream); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; max-width: 100%; }
.table-scroll table { margin: 0; min-width: 480px; }
.article-body pre, .article-body code {
  font-family: 'Courier New', monospace;
  background: var(--cream2); padding: 2px 6px;
  border-radius: var(--r); font-size: 14px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}

.article-disclaimer {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--muted);
  background: var(--cream); border-left: 3px solid var(--border2);
  padding: 10px 14px; margin-bottom: 18px; line-height: 1.6;
}

.article-share { margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; border: none;
  text-transform: uppercase; letter-spacing: .04em;
  transition: opacity var(--ease);
}
.share-btn:hover { opacity: .8; }
.share-btn.twitter  { background: #000; color: #fff; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.linkedin { background: #0a66c2; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }

.related-articles { margin: 28px 0; }
@media (min-width: 480px) and (max-width: 899px) {
  .related-articles .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.search-page-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 400;
}
.related-articles h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}

/* Sidebar */
.sidebar-section {
  background: var(--card);
  overflow: hidden; border: 1px solid var(--border);
  border-top: 3px solid var(--ink); margin-bottom: 24px;
}
.sidebar-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink); padding: 12px 15px 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-article {
  display: flex; gap: 10px; padding: 10px 15px;
  border-bottom: 1px solid var(--cream2);
  transition: background var(--ease);
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover { background: var(--cream); }
.sidebar-article img { width: 60px; height: 46px; object-fit: cover; flex-shrink: 0; }
.sidebar-article h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--ink);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.sidebar-article h5 a:hover { color: var(--red); }
.sidebar-article .meta { font-size: 10px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ================================================
   PAYWALL
   ================================================ */

.paywall-fade { position: relative; overflow: hidden; max-height: 360px; }
.paywall-fade::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px; background: linear-gradient(transparent, var(--card) 90%);
  pointer-events: none;
}
.paywall-wall { margin-top: -10px; position: relative; z-index: 2; padding: 0 0 24px; }
.paywall-wall-inner {
  background: var(--card); border: 1.5px solid var(--border);
  padding: 32px 28px 28px; text-align: center; box-shadow: var(--sh-md);
}
.paywall-lock {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; margin-bottom: 14px;
}
.paywall-title { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.paywall-desc { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 18px; max-width: 400px; margin-left: auto; margin-right: auto; }
.paywall-desc strong { color: var(--ink); }
.paywall-perks { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.paywall-perk { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.perk-icon { font-size: 14px; line-height: 1; }
.paywall-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.paywall-btn-main {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cta); color: #fff; border: none;
  padding: 12px 26px; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  transition: background var(--ease);
}
.paywall-btn-main:hover { background: var(--cta-h); }
.paywall-signin { font-size: 12px; color: var(--muted); }
.paywall-signin-link { background: none; border: none; color: var(--ink); font-weight: 700; font-size: 12px; font-family: inherit; text-decoration: underline; padding: 0; }
.paywall-signin-link:hover { color: var(--red); }
.paywall-preview-note { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 14px; padding: 5px 12px; background: var(--cream); border-radius: 20px; }

/* ================================================
   MODALS
   ================================================ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--card);
  padding: 32px; max-width: 540px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 20px; color: #aaa;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.modal-close:hover { color: var(--ink); background: var(--cream); }

.auth-modal-box  { max-width: 400px; padding: 36px 32px; }
.auth-modal-logo { text-align: center; margin-bottom: 16px; }
.auth-modal-title { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--ink); text-align: center; margin-bottom: 5px; font-weight: 400; }
.auth-modal-sub  { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-modal-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.auth-switch-btn { background: none; border: none; color: var(--red); font-weight: 700; font-size: 12px; padding: 0; text-decoration: underline; }

/* Subscribe modal — NanaBanano style */
.subscribe-modal {
  max-width: 460px;
  padding: 40px 36px 32px;
  text-align: center;
  border-radius: 4px;
}
.sub-star-badge {
  display: inline-block;
  border: 1px solid var(--border2);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.sub-modal-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.sub-modal-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.sub-modal-perks {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}
.sub-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 18px 10px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.sub-perk-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--cream2);
  border-radius: 50%;
  color: var(--cta);
  margin-bottom: 2px;
  flex-shrink: 0;
}
.sub-perk-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink2);
  line-height: 1.35;
}
.sub-cta-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), transform .15s ease;
  margin-bottom: 14px;
}
.sub-cta-btn:hover { background: var(--cta-h); transform: translateY(-1px); }
.sub-modal-note { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.sub-signin-link {
  background: none; border: none;
  color: var(--cta); font-weight: 700;
  font-size: 12.5px; cursor: pointer; padding: 0;
  text-decoration: underline; font-family: inherit;
}
.sub-signin-link:hover { color: var(--cta-h); }
.sub-cancel-note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ================================================
   FORMS & BUTTONS
   ================================================ */

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink); margin-bottom: 5px;
}
.form-input {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 0;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--ink); background: var(--card);
  outline: none; transition: border-color var(--ease);
}
.form-input:focus { border-color: var(--ink); }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); }
.form-check input[type=checkbox] { margin-top: 2px; accent-color: var(--ink); width: 15px; height: 15px; flex-shrink: 0; }
.form-check a { color: var(--red); }
.alert-error   { background: #fff5f5; border: 1px solid #fca5a5; padding: 10px 12px; font-size: 12px; color: var(--red); margin-bottom: 14px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; padding: 10px 12px; font-size: 12px; color: #15803d; margin-bottom: 14px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cta); color: #fff; border: none;
  padding: 10px 18px; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  transition: background var(--ease);
}
.btn-primary:hover { background: var(--cta-h); }
.btn-full { width: 100%; justify-content: center; padding: 12px 18px; }
.btn-secondary {
  background: var(--cream); color: var(--ink);
  border: 1.5px solid var(--border); padding: 10px 18px; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  transition: all var(--ease);
}
.btn-secondary:hover { background: var(--cream2); }

/* ================================================
   COOKIE BANNER
   ================================================ */

body.cookie-banner-visible { padding-bottom: 72px; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; background: #1e2532; padding: 10px 0; border-top: 3px solid var(--cta); }
.cookie-banner .cookie-text { font-size: 12.5px; line-height: 1.45; }
.cookie-banner .cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-inner { max-width: 1220px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-text { font-size: 13px; color: rgba(255,255,255,.78); flex: 1; line-height: 1.5; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-settings { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 7px 14px; border-radius: var(--r); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: background var(--ease); }
.btn-cookie-settings:hover { background: rgba(255,255,255,.18); }
.btn-cookie-accept { background: var(--cta); color: #fff; border: none; padding: 7px 14px; border-radius: var(--r); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: background var(--ease); }
.btn-cookie-accept:hover { background: var(--cta-h); }
.cookie-toggle-list { display: flex; flex-direction: column; }
.cookie-toggle-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cookie-toggle-item:last-child { border-bottom: none; }
.cookie-toggle-item p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cookie-modal-actions { display: flex; gap: 8px; margin-top: 18px; justify-content: flex-end; }
.toggle { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 22px; transition: .25s; }
.slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.toggle input:checked ~ .slider { background: var(--red); }
.toggle input:checked ~ .slider::before { transform: translateX(20px); }
.toggle.disabled { opacity: .4; pointer-events: none; }

/* ================================================
   FOOTER
   ================================================ */

.site-footer { background: #f0f0f0; color: var(--ink); padding: 48px 0 0; border-top: 1px solid var(--border); }
.footer-top-line { display: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 14px 0 16px; }
.footer-legal { margin-top: 16px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.footer-legal-name { margin: 0 0 6px; color: var(--ink); font-size: 12px; }
.footer-legal-address { margin: 0 0 8px; }
.footer-legal-contact { margin: 0; }
.footer-legal-contact a { color: var(--muted); transition: color var(--ease); }
.footer-legal-contact a:hover { color: var(--ink); }
.footer-legal-sep { color: var(--border); }
.footer-bottom p a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom p a:hover { color: var(--ink); }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--border2); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-newsletter-btn { width: 100%; padding: 10px; background: var(--cta); color: #fff; border: none; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; transition: background var(--ease); border-radius: var(--r); }
.footer-newsletter-btn:hover { background: var(--cta-h); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: var(--muted); transition: color var(--ease); }
.footer-links a:hover { color: var(--ink); }

/* ================================================
   CATEGORY PAGE
   ================================================ */

.category-hero { background: var(--cream); color: var(--ink); padding: 34px 0 24px; border-bottom: 2px solid var(--border2); }
@media (max-width: 768px) {
  .category-hero { padding: 22px 0 18px; }
  .category-hero h1 { font-size: 28px; }
}
.category-hero .category-tag { color: var(--red); margin-bottom: 10px; background: none; }
.category-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: 34px; font-weight: 400; margin-bottom: 6px; color: var(--ink); }
.category-hero p { color: var(--muted); font-size: 14.5px; }
.articles-list { padding: 28px 0 52px; }

/* ================================================
   AUTH PAGES
   ================================================ */

.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--cream); }
.auth-box { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--red); padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--sh-md); }
.auth-title { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--ink); margin-bottom: 5px; text-align: center; font-weight: 400; }
.auth-subtitle { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.auth-footer a { color: var(--red); font-weight: 700; }

.account-page { padding: 32px 0 56px; }
.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.account-sidebar { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--ink); padding: 20px; height: fit-content; }
.account-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 12px; }
.account-name { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.account-email { text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 14px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; }
.account-nav a { display: flex; align-items: center; gap: 7px; padding: 9px 10px; font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; transition: all var(--ease); }
.account-nav a:hover, .account-nav a.active { background: var(--cream); }
.account-nav a.logout { color: var(--red); margin-top: 6px; }
.account-main { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--ink); padding: 24px; }
.account-section-title { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--ink); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-weight: 400; }

/* ================================================
   LEGAL / CONTACT
   ================================================ */

.legal-page { max-width: 720px; margin: 0 auto; padding: 44px 20px 68px; }
.legal-page h1 { font-family: 'DM Serif Display', serif; font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.legal-page .last-updated { color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.legal-page h2 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 600; margin: 28px 0 8px; color: var(--ink); }
.legal-page p, .legal-page li { font-family: 'Libre Baskerville', serif; font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 10px; }
.legal-page ul, .legal-page ol { padding-left: 20px; margin-bottom: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 0; }
.contact-form h2 { font-family: 'DM Serif Display', serif; font-size: 26px; font-weight: 400; color: var(--ink); margin-bottom: 20px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-info-grid { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-icon { width: 36px; height: 36px; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--red); }

/* Plan selector */
.plan-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.plan-option input { display: none; }
.plan-card { padding: 12px 8px; border: 2px solid var(--border); text-align: center; cursor: pointer; transition: all var(--ease); }
.plan-card:hover { border-color: var(--ink); }
.plan-option input:checked ~ .plan-card { border-color: var(--ink); }
.plan-card strong { display: block; font-size: 13px; margin-bottom: 3px; color: var(--ink); }
.plan-price { display: block; font-size: 18px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.plan-card ul { font-size: 10px; color: var(--muted); text-align: left; }
.plan-card li::before { content: '✓ '; color: var(--red); font-weight: 700; }
.plan-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.subscribe-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 0; gap: 12px; }
.subscribe-success h3 { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; color: var(--ink); }

/* Search page */
.search-results-page { padding: 32px 0 56px; }
.no-results { text-align: center; padding: 60px 0; color: var(--muted); }

/* ================================================
   HEADER v8 — utility bar, centered logo, category nav
   ================================================ */

.header-utility {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.header-utility-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  font-size: 12px;
}
.header-utility-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink2);
}
.header-utility-left a {
  color: var(--ink2);
  transition: color var(--ease);
}
.header-utility-left a:hover { color: var(--red); }
.header-utility-sep { color: var(--border2); user-select: none; }
.header-utility-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.header-utility-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-brand-row {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.site-logo-center {
  display: flex;
  justify-content: center;
  text-decoration: none;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-logo-center .logo-name { align-items: center; text-align: center; gap: 6px; }
.site-logo-center .logo-name-top {
  font-family: 'Libre Baskerville', 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
}
.site-logo-center .logo-name-sub {
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--muted);
}

.header-categories {
  background: #fff;
  border-bottom: 2px solid var(--ink);
}
.header-categories .container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.header-categories ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  min-height: 44px;
}
.header-categories a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.header-categories a:hover { color: var(--red); background: var(--cream); }

.btn-subscribe {
  border-radius: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 8px 14px;
}

/* ================================================
   HERO v8 — main story + side list
   ================================================ */

.hero-daily { padding: 0; background: #fff; border-bottom: 1px solid var(--border); }
.hero-daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 0;
  align-items: stretch;
}
.hero-main {
  position: relative;
  min-height: 420px;
  background: #111;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.hero-main-cover { position: absolute; inset: 0; z-index: 2; }
.hero-main-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-main-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 26px 24px;
  z-index: 3;
}
.hero-main-body h1 {
  font-family: 'Libre Baskerville', 'DM Serif Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 8px 0 10px;
}
.hero-main-body h1 a { color: #fff; }
.hero-main-dek {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  margin-bottom: 10px;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main-body .article-meta { color: rgba(255,255,255,.55); }

.hero-side-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 100%;
  height: 100%;
}
.hero-side-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  flex: 1 1 0;
  min-height: 0;
  transition: background var(--ease);
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item:hover { background: var(--cream); }
.hero-side-thumb {
  display: block;
  overflow: hidden;
  background: var(--cream2);
  aspect-ratio: 4/3;
}
.hero-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-side-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-side-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.category-tag.cat-label {
  color: var(--red);
  font-size: 10px;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

/* ================================================
   HOME v8 — sidebar top news + 3-col grid
   ================================================ */

.home-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-main-full { grid-column: 1 / -1; }
.homepage-section { padding: 24px 0 40px; }

.top-news-panel { border-top: 3px solid var(--red); }
.top-news-list { list-style: none; }
.top-news-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cream2);
  align-items: start;
}
.top-news-list li:last-child { border-bottom: none; }
.top-news-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .04em;
}
.top-news-list a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.top-news-list a:hover { color: var(--red); }

.articles-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-page-note { font-size: 13px; color: var(--muted); font-weight: 400; }
.home-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1100px) {
  .articles-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .articles-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .hero-trio { grid-template-columns: 1fr 1fr; }
  .hero-card:nth-child(3) { display: none; }
  .hero-card { height: 340px; }
  .hero-daily-grid { grid-template-columns: 1fr; }
  .hero-side-list { height: auto; min-height: 0; }
  .hero-side-item { flex: 0 0 auto; align-items: start; }
  .hero-main { border-right: none; border-bottom: 1px solid var(--border); min-height: 320px; }
  .hero-main-img { min-height: 320px; }
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { order: 0; }
  .home-main { order: 1; }
  .articles-grid   { grid-template-columns: repeat(2, 1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid   { grid-template-columns: 1fr; }
  .account-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-top   { display: none; }
  .header-nav   { display: none; }
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .header-utility {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    border-bottom: none;
    max-width: min(100%, 62vw);
  }
  .header-utility-left { display: none; }
  .header-utility-date { display: none; }
  .header-utility-inner {
    display: flex;
    justify-content: flex-end;
    min-height: 0;
    width: auto;
    padding-left: 0;
  }
  .header-utility-right {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .header-utility .container {
    width: auto;
    max-width: none;
    padding-left: 0;
    margin-left: 0;
  }
  .header-brand-row {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    border-bottom: none;
    padding: 10px 0;
  }
  .header-brand-row .container {
    padding-right: 8px;
  }
  .search-bar { order: 3; flex: 0 0 100%; width: 100%; }
  .mobile-menu { order: 4; flex: 0 0 100%; width: 100%; }
  .header-categories { display: none; }
  .header-utility-right .btn-search { display: none; }
  .header-utility-right .btn-login { display: none; }
  .header-utility { max-width: none; }
  .site-logo-center { justify-content: flex-start; }
  .site-logo-center .logo-name { align-items: flex-start; text-align: left; }
  .site-logo-center .logo-name-top { font-size: 22px; letter-spacing: .08em; }
  .btn-menu-toggle { display: flex; }
  .btn-search   { display: flex; }
  .header-main-inner { justify-content: space-between; }
  .site-logo { border-right: none; padding-right: 0; margin-right: 0; }
  .article-layout { padding: 16px 0 32px; }
  .article-title  { font-size: 28px; }
  .article-body   { font-size: 16px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 22px; }
  .plan-selector  { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .share-buttons  { flex-wrap: wrap; }
  .cookie-inner   { flex-direction: column; align-items: flex-start; }
  .lang-menu      { right: auto; left: 0; }
  .breaking-ticker li:nth-child(n+5) { display: none; }
  .breaking-ticker ul { animation-duration: 22s; }
}

@media (max-width: 600px) {
  .articles-grid, .articles-grid-4, .articles-grid-home { grid-template-columns: 1fr; }
  .hero-trio { grid-template-columns: 1fr; }
  .hero-card { height: 260px; }
  .hero-card:nth-child(3) { display: block; }
  .hero-card-body h2 { font-size: 18px; }
  .hero-main { min-height: 260px; }
  .hero-main-img { min-height: 260px; }
  .hero-side-item { grid-template-columns: 88px 1fr; padding: 12px 0; }
}

@media (max-width: 640px) {
  .logo-name    { display: none; }
  .site-logo-center .logo-name { display: flex; }
  .site-logo-center .logo-name-sub { display: none; }
  .lang-text    { display: none; }
  .header-utility-right .btn-subscribe {
    padding: 7px 11px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .container    { padding: 0 14px; }
  .lang-btn     { padding: 6px 8px; }
  .btn-subscribe { padding: 7px 11px; font-size: 11.5px; }
  .modal-box    { padding: 22px 16px; }
  .auth-modal-box { padding: 26px 18px; }
  .article-title  { font-size: 24px; }
  .article-body   { font-size: 15.5px; }
  .article-body h2 { font-size: 22px; }
  .footer-grid  { grid-template-columns: 1fr; }
  .paywall-wall-inner { padding: 24px 16px 20px; }
}

@media (max-width: 360px) {
  .btn-subscribe { padding: 6px 9px; font-size: 11px; }
  .header-main-inner { gap: 2px; }
}

/* ── Search ads monetization ── */
.article-body .sa-related, .article-body .sa-textads { margin: 20px 0; }
.article-body .sa-related-title { padding: 10px 14px; font-size: 12px; }
.article-body .sa-related-text { padding: 12px 14px; font-size: 14px; }
.sa-related { margin: 20px 0 24px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--card); }
.sa-related-title { padding: 12px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--cream2); }
.sa-related-list { display: flex; flex-direction: column; }
.sa-related-item { display: flex; align-items: center; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border); transition: background .15s; }
.sa-related-item:last-child { border-bottom: none; }
.sa-related-item:hover { background: var(--cream2); }
.sa-related-bar { width: 6px; align-self: stretch; background: var(--sa-accent, #546e7a); flex-shrink: 0; }
.sa-related-text { padding: 14px 16px; font-size: 15px; line-height: 1.35; flex: 1; font-family: 'DM Sans', sans-serif; }
.sa-related-arrow { padding-right: 16px; color: var(--border2); font-size: 22px; line-height: 1; }
.sa-textads { display: flex; flex-direction: column; gap: 20px; margin: 0 0 28px; }
.sa-textad { padding: 18px 20px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); }
.sa-textad-label { font-size: 11px; color: var(--muted); margin-bottom: 10px; letter-spacing: .02em; font-family: 'DM Sans', sans-serif; }
.sa-textad-source { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sa-textad-favicon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--cream2); flex-shrink: 0; font-family: 'DM Sans', sans-serif; }
.sa-textad-sitename { font-size: 14px; font-weight: 600; color: var(--ink); font-family: 'DM Sans', sans-serif; }
.sa-textad-url { font-size: 12px; color: var(--muted); margin: 0 0 10px 38px; line-height: 1.4; word-break: break-all; font-family: 'DM Sans', sans-serif; }
.sa-textad-headline { display: inline-block; font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1.25; color: var(--ink); margin-bottom: 8px; text-decoration: none; }
.sa-textad-headline:hover { text-decoration: underline; color: var(--cta); }
.sa-textad-desc { font-size: 14px; line-height: 1.55; color: var(--ink2); margin-bottom: 14px; max-width: 680px; font-family: 'DM Sans', sans-serif; }
.sa-textad-desc strong { font-weight: 700; color: var(--ink); }
.sa-textad-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: var(--cta); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--r); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-family: 'DM Sans', sans-serif; transition: background .2s; }
.sa-textad-cta:hover { background: var(--cta-h); }
.search-results-page .sa-textads, .search-results-page .sa-related { max-width: 100%; }
@media (max-width: 640px) {
  .sa-textad { padding: 14px 14px 12px; }
  .sa-textad-headline { font-size: 18px; }
  .sa-textad-url { margin-left: 0; }
  .sa-related-text { font-size: 14px; padding: 12px 14px; }
}

/* ── AdSense emulation (managed search feed) ── */
.adsense-managed-slot { clear: both; margin: 24px 0; text-align: center; }
.adsense-managed-slot .adsense-placeholder-ins,
.adsense-managed-slot ins.adsbygoogle { display: none !important; height: 0 !important; min-height: 0 !important; overflow: hidden; }
.adsense-managed-slot .adsbygoogle-content { text-align: left; max-width: 100%; margin: 0 auto; }
.pcsml_style_1 .sa-related { border-radius: 0; }
.pcsml_style_2 .sa-textad { border-left: 4px solid var(--red); }
.pcsml_style_3 .sa-related-title { background: #f1f3f4; color: #5f6368; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pcsml_style_4 .sa-textads { display: grid; gap: 16px; }
@media (min-width: 768px) { .pcsml_style_4 .sa-textads { grid-template-columns: 1fr 1fr; } }
.sa-textad-media { display: block; float: right; margin: 0 0 12px 16px; max-width: 120px; }
.sa-textad-media img { width: 100%; height: auto; border-radius: 2px; border: 1px solid var(--border); }
.sa-textad:has(.sa-textad-media) { overflow: hidden; }
