/*
Theme Name: Newsmag
Theme URI: https://presseuropa.com/
Description: Independent modern editorial platform for PressEuropa's Turkish, German and English editions, developed by Press Media Web.
Version: 1.0.5
Author: PressEuropa / Press Media Web
Text Domain: presseuropa
Tags: news, editorial, dark-mode, responsive
*/
:root {
  color-scheme: dark;
  --pe-bg: #050d18;
  --pe-surface: #0b1727;
  --pe-surface-2: #101f32;
  --pe-text: #f4f7fb;
  --pe-muted: #a8b5c7;
  --pe-line: rgba(205, 220, 239, .12);
  --pe-blue: #1685ff;
  --pe-blue-2: #4ca7ff;
  --pe-radius: 18px;
  --pe-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
html[data-pe-theme="light"] {
  color-scheme: light;
  --pe-bg: #f4f7fb;
  --pe-surface: #ffffff;
  --pe-surface-2: #eaf0f7;
  --pe-text: #102039;
  --pe-muted: #5c6b80;
  --pe-line: rgba(16, 32, 57, .12);
  --pe-blue: #075fca;
  --pe-blue-2: #1685ff;
  --pe-shadow: 0 15px 40px rgba(24, 45, 76, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pe-bg);
  color: var(--pe-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pe-blue-2); }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--pe-blue-2); outline-offset: 3px; }
.screen-reader-text { position:absolute!important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
/* Ensure the preview/theme canvas is full desktop width even if a legacy wrapper constrains its parent. */
body.pe-theme { width:100% !important; max-width:none !important; margin:0 !important; padding:0 !important; }
body.pe-theme > .pe-site {
  display:block;
  position:relative;
  left:50%;
  width:100vw !important;
  max-width:none !important;
  margin-left:-50vw !important;
  min-height:100vh;
  overflow:clip;
}
.pe-site { min-height: 100vh; overflow: clip; }
.pe-shell { width: min(1450px, calc(100% - 48px)); margin: 0 auto; }
.pe-header {
  position: relative; z-index: 30;
  border-bottom: 1px solid var(--pe-line);
  background: color-mix(in srgb, var(--pe-bg) 88%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.pe-header-inner {
  min-height: 82px; display: flex; align-items: center; justify-content: space-between;
  gap: 22px; padding-top: 12px; padding-bottom: 12px;
}
.pe-brand { display: inline-flex; flex-direction: column; min-width: 0; gap: 1px; }
.pe-wordmark { margin: 0; font-weight: 850; font-size: clamp(1.4rem, 2vw, 2.15rem); letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.pe-wordmark span { color: var(--pe-blue); }
.pe-tagline { margin: 5px 0 0; color: var(--pe-muted); font-size: .78rem; letter-spacing: .01em; }
.pe-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.pe-languages { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--pe-line); border-radius: 999px; background: rgba(130,160,195,.08); }
.pe-languages a { min-width: 35px; text-align: center; padding: 7px 9px; color: var(--pe-muted); font-size: .76rem; font-weight: 800; border-radius: 999px; transition: background .2s ease,color .2s ease; }
.pe-languages a.is-active, .pe-languages a:hover { color: #fff; background: var(--pe-blue); }
.pe-glass-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pe-line); border-radius: 50%;
  background: rgba(125, 155, 195, .10); color: var(--pe-text); cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.05); transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.pe-glass-btn:hover { transform: translateY(-1px); background: rgba(22,133,255,.18); border-color: rgba(76,167,255,.5); }
.pe-glass-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pe-search-wrap { position: relative; }
.pe-search-pop { display: none; position: absolute; right: 0; top: 52px; z-index: 80; width: min(340px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--pe-line); border-radius: 18px; background: var(--pe-surface); box-shadow: var(--pe-shadow); }
.pe-search-pop.is-open { display: block; }
.pe-search-form { display: flex; gap: 7px; }
.pe-search-form input { min-width: 0; flex: 1; color: var(--pe-text); background: var(--pe-bg); border: 1px solid var(--pe-line); border-radius: 12px; padding: 11px 12px; }
.pe-search-form button { border: 0; border-radius: 12px; padding: 0 14px; color: #fff; background: var(--pe-blue); font-weight: 750; cursor: pointer; }
.pe-menu-panel { display: none; position: absolute; top: calc(100% + 8px); right: max(24px, calc((100vw - 1450px)/2)); width: min(440px, calc(100vw - 32px)); padding: 23px; background: color-mix(in srgb, var(--pe-surface) 94%, transparent); border: 1px solid var(--pe-line); border-radius: 24px; box-shadow: var(--pe-shadow); backdrop-filter: blur(26px); }
.pe-menu-panel.is-open { display: block; animation: pe-pop .18s ease-out; }
.pe-menu-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:16px; border-bottom:1px solid var(--pe-line); }
.pe-menu-top strong { font-size:1.05rem; }
.pe-menu-list { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0 0; padding:0; list-style:none; }
.pe-menu-list a { display:flex; align-items:center; min-height:50px; padding:12px 14px; background:rgba(130,160,195,.07); border:1px solid var(--pe-line); border-radius:14px; font-weight:700; }
.pe-menu-list a:hover { background:rgba(22,133,255,.13); border-color:rgba(76,167,255,.35); }
.pe-ticker { border-bottom: 1px solid var(--pe-line); background: var(--pe-surface); }
.pe-ticker-inner { display:flex; align-items:center; gap:15px; min-height:42px; overflow:hidden; white-space:nowrap; }
.pe-ticker-label { display:inline-flex; align-items:center; gap:8px; flex:none; color:var(--pe-blue-2); font-size:.72rem; font-weight:850; letter-spacing:.1em; }
.pe-live-dot { width:7px; height:7px; border-radius:50%; background:var(--pe-blue); box-shadow:0 0 0 4px rgba(22,133,255,.14); }
.pe-ticker-title { overflow:hidden; text-overflow:ellipsis; color:var(--pe-muted); font-size:.82rem; }
.pe-ticker-title:hover { color:var(--pe-text); }
.pe-ad-slot { margin: 20px auto 24px; max-width: 1450px; }
.pe-ad-slot-inner { min-height: 72px; display:flex; align-items:center; justify-content:center; padding:12px; overflow:hidden; border-radius:15px; background:linear-gradient(120deg, var(--pe-surface-2), var(--pe-surface)); border:1px solid var(--pe-line); color:var(--pe-muted); overflow:visible; }
.pe-ad-slot .pe-ad-widget:empty { display:none; }
.pe-ad-slot img { max-height:130px; width:auto; margin:auto; }
.pe-home-main { padding-top: 24px; }
.pe-hero {
  min-height: clamp(390px, 42vw, 610px); display:flex; align-items:flex-end; position:relative; isolation:isolate;
  overflow:hidden; border-radius:var(--pe-radius); background:var(--pe-surface-2); box-shadow:var(--pe-shadow);
}
.pe-hero-media, .pe-hero-media img { position:absolute; inset:0; width:100%; height:100%; }
.pe-hero-media img { object-fit:cover; object-position:center; z-index:-2; }
.pe-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(2,9,19,.91) 0%,rgba(2,9,19,.65) 39%,rgba(2,9,19,.12) 78%),linear-gradient(0deg,rgba(2,9,19,.8),transparent 65%); }
.pe-hero-copy { width:min(760px, 78%); padding:clamp(26px, 5vw, 70px); }
.pe-eyebrow { margin:0 0 12px; color:#54b1ff; font-weight:850; text-transform:uppercase; letter-spacing:.12em; font-size:.76rem; }
.pe-hero h1 { margin:0; max-width:780px; color:#fff; font-size:clamp(2.15rem, 4.8vw, 4.5rem); letter-spacing:-.055em; line-height:1.02; font-weight:820; }
.pe-hero-excerpt { max-width:620px; margin:20px 0 0; color:rgba(255,255,255,.88); font-size:clamp(.95rem,1.2vw,1.08rem); }
.pe-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:17px; color:var(--pe-muted); font-size:.78rem; }
.pe-hero .pe-meta { color:rgba(255,255,255,.76); }
.pe-cta { display:inline-flex; align-items:center; gap:12px; margin-top:23px; padding:13px 19px; color:#fff; background:var(--pe-blue); border:1px solid rgba(255,255,255,.25); border-radius:999px; font-size:.8rem; font-weight:850; box-shadow:0 7px 24px rgba(0,98,255,.25); transition:transform .18s ease,background .18s ease; }
.pe-cta:hover { color:#fff; background:#3298ff; transform:translateY(-2px); }
.pe-cta svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.pe-hero-count { position:absolute; right:24px; bottom:24px; display:flex; align-items:center; gap:8px; color:white; font-size:.75rem; }
.pe-round-nav { width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.10);backdrop-filter:blur(12px); }
.pe-round-nav svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2; }
.pe-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:18px; }
.pe-card { overflow:hidden; border:1px solid var(--pe-line); border-radius:16px; background:var(--pe-surface); transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.pe-card:hover { transform:translateY(-3px); border-color:rgba(76,167,255,.32); box-shadow:var(--pe-shadow); }
.pe-card-image { display:block; aspect-ratio:1.68; overflow:hidden; background:var(--pe-surface-2); }
.pe-card-image img { width:100%;height:100%;object-fit:cover;transition:transform .5s ease; }
.pe-card:hover .pe-card-image img { transform:scale(1.035); }
.pe-card-copy { padding:17px 18px 18px; }
.pe-card h2 { margin:5px 0 0; font-size:clamp(1.05rem,1.45vw,1.32rem); line-height:1.25; letter-spacing:-.025em; }
.pe-card .pe-eyebrow { margin-bottom:5px; font-size:.65rem; }
.pe-section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:42px 0 17px; padding-bottom:14px; border-bottom:1px solid var(--pe-line); }
.pe-section-head h2 { margin:0; font-size:clamp(1.45rem,2.2vw,2rem); font-weight:800; letter-spacing:-.045em; }
.pe-section-head a { color:var(--pe-blue-2); font-size:.83rem; font-weight:750; }
.pe-latest-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 18px; }
.pe-latest-item { display:grid; grid-template-columns:116px 1fr; gap:14px; min-width:0; padding:12px; border:1px solid var(--pe-line); background:var(--pe-surface); border-radius:15px; }
.pe-latest-thumb { aspect-ratio:1.22; overflow:hidden; border-radius:10px; background:var(--pe-surface-2); }
.pe-latest-thumb img { width:100%; height:100%; object-fit:cover; }
.pe-latest-item h3 { margin:4px 0 0; font-size:.96rem; line-height:1.3; letter-spacing:-.02em; }
.pe-latest-item .pe-meta { margin-top:8px; font-size:.7rem; }
.pe-footer { margin-top:52px; padding:26px 0 34px; border-top:1px solid var(--pe-line); color:var(--pe-muted); font-size:.82rem; }
.pe-footer-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.pe-footer-brand { color:var(--pe-text); font-weight:850; letter-spacing:-.035em; }
.pe-content-wrap { width:min(900px,calc(100% - 40px)); margin:44px auto 70px; }
.pe-page-title { margin:0 0 24px; font-size:clamp(2rem,4vw,3.6rem); line-height:1.1; letter-spacing:-.05em; }
.pe-article-hero { position:relative; min-height:clamp(300px,44vw,560px); display:flex; align-items:flex-end; overflow:hidden; border-radius:var(--pe-radius); background:var(--pe-surface-2); }
.pe-article-hero img { position:absolute; inset:0; width:100%;height:100%;object-fit:cover; z-index:0; }
.pe-article-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(2,9,19,.94),rgba(2,9,19,.12) 85%); }
.pe-article-title { position:relative;z-index:1;max-width:930px;padding:clamp(25px,5vw,62px); }
.pe-article-title h1 { margin:0;color:#fff;font-size:clamp(2rem,4.2vw,4rem);line-height:1.04;letter-spacing:-.05em; }
.pe-article-body { width:min(760px,calc(100% - 40px)); margin:34px auto 70px; font-size:1.08rem; line-height:1.85; }
.pe-article-body p { margin:0 0 1.45em; }
.pe-article-body h2,.pe-article-body h3 { line-height:1.22; letter-spacing:-.025em; margin-top:1.8em; }
.pe-article-body a { color:var(--pe-blue-2);text-decoration:underline;text-underline-offset:3px; }
.pe-empty { padding:45px 20px; text-align:center; color:var(--pe-muted); border:1px solid var(--pe-line); border-radius:16px; }
@keyframes pe-pop { from { opacity:0; transform:translateY(-5px) scale(.99); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width: 980px) {
  .pe-shell { width:min(100% - 32px, 1450px); }
  .pe-hero-copy { width:88%; }
  .pe-feature-grid { gap:12px; }
  .pe-card-copy { padding:14px; }
  .pe-latest-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pe-latest-item { grid-template-columns:100px 1fr; }
}
@media (max-width: 680px) {
  .pe-shell { width:calc(100% - 24px); }
  .pe-header-inner { min-height:72px; gap:8px; }
  .pe-brand { flex:1 1 auto; min-width:0; max-width:calc(100% - 218px); }
  .pe-wordmark { font-size:clamp(1.15rem,5.2vw,1.4rem); }
  .pe-tagline { display:block; max-width:100%; font-size:.62rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pe-header-tools { flex:0 0 auto; gap:5px; }
  .pe-languages { padding:3px; gap:0; }
  .pe-languages a { min-width:27px; padding:7px 6px; font-size:.68rem; }
  .pe-glass-btn { width:36px;height:36px; }
  .pe-search-pop { right:-42px; }
  .pe-menu-panel { right:12px; }
  .pe-ticker-inner { min-height:37px; gap:10px; }
  .pe-ticker-label { font-size:.62rem; }
  .pe-ticker-title { font-size:.72rem; }
  .pe-home-main { padding-top:14px; }
  .pe-hero { min-height:500px; border-radius:16px; }
  .pe-hero::before { background:linear-gradient(0deg,rgba(2,9,19,.95),rgba(2,9,19,.52) 52%,rgba(2,9,19,.06)); }
  .pe-hero-copy { width:100%; padding:26px 22px 72px; }
  .pe-hero h1 { font-size:clamp(2.1rem,9vw,3rem); }
  .pe-hero-excerpt { margin-top:13px; font-size:.9rem; }
  .pe-hero-count { right:16px; bottom:16px; }
  .pe-round-nav { width:34px;height:34px; }
  .pe-feature-grid { grid-template-columns:1fr; gap:12px; margin-top:12px; }
  .pe-card { display:grid;grid-template-columns:39% 1fr; }
  .pe-card-image { aspect-ratio:auto; min-height:145px; height:100%; }
  .pe-card-copy { padding:12px; align-self:center; }
  .pe-card h2 { font-size:1rem; }
  .pe-section-head { margin-top:30px; }
  .pe-latest-grid { grid-template-columns:1fr; gap:9px; }
  .pe-latest-item { grid-template-columns:102px 1fr; padding:9px; gap:12px; }
  .pe-latest-item h3 { font-size:.92rem; }
  .pe-ad-slot { margin:14px auto 18px; }
  .pe-ad-slot-inner { min-height:60px; border-radius:13px; }
  .pe-footer-inner { flex-direction:column;align-items:flex-start; }
}
.pe-footer-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; list-style:none; margin:0; padding:0; }
.pe-footer-links a { color:var(--pe-muted); }
.pe-footer-links a:hover { color:var(--pe-blue-2); }
.pe-pagination { display:flex; justify-content:center; margin:34px 0; color:var(--pe-muted); }
.pe-pagination .nav-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.pe-pagination a, .pe-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:38px; min-height:38px; padding:8px 12px; border:1px solid var(--pe-line); border-radius:999px; background:var(--pe-surface); }
.pe-pagination .current { background:var(--pe-blue); border-color:var(--pe-blue); color:#fff; }
.pe-content-wrap .entry-content > * { max-width:100%; }
.pe-content-wrap .entry-content img { border-radius:14px; }
.pe-article-body .wp-block-image { margin:28px 0; }
.pe-article-body .wp-block-quote { margin:28px 0; padding:5px 0 5px 22px; border-left:3px solid var(--pe-blue); color:var(--pe-muted); }
.pe-article-body .wp-block-embed { margin:28px 0; }
.pe-article-body iframe { max-width:100%; }
.pe-ad-slot:has(.pe-ad-widget:empty) { display:none; }

/* PressEuropa refinements — modern archive grids, desktop article width, optional ads and polished footer. */
.pe-wordmark span {
  background: linear-gradient(105deg,#55baff 0%,#1685ff 45%,#3d72ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(22,133,255,.13);
}
.pe-hero h1 { font-size: clamp(2rem,4.25vw,3.95rem); }
.pe-card h2 { font-size: clamp(1rem,1.3vw,1.23rem); }
.pe-article-title h1 { font-size: clamp(1.9rem,3.65vw,3.45rem); }
.pe-article-page { display:block; width:100%; max-width:none; }
.pe-article-shell { display:block; width:min(1450px,calc(100% - 48px)) !important; max-width:1450px !important; margin:0 auto; padding-top:24px; }
.pe-article-hero {
  min-height:clamp(340px,36vw,520px);
  width:100%;
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}
.pe-article-body {
  display:block;
  width:min(960px,calc(100% - 56px)) !important;
  max-width:960px !important;
  margin:34px auto 50px;
  font-size:clamp(1rem,1.2vw,1.1rem);
  font-weight:450;
  line-height:1.82;
}
.pe-article-body p,
.pe-article-body li {
  font-weight:450;
}
.pe-article-body h2,
.pe-article-body h3,
.pe-article-body h4 {
  font-weight:750;
}
.pe-article-body > p,
.pe-article-body > ul,
.pe-article-body > ol,
.pe-article-body > blockquote,
.pe-article-body > h2,
.pe-article-body > h3,
.pe-article-body > h4 { max-width:900px; }
.pe-related { padding-top:4px; padding-bottom:34px; }

.pe-archive-page { padding-top:28px; }
.pe-archive-heading { margin:0 0 22px; padding-bottom:20px; border-bottom:1px solid var(--pe-line); }
.pe-archive-heading .pe-eyebrow { margin-bottom:6px; }
.pe-archive-heading h1 { margin:0; font-size:clamp(2.05rem,3.65vw,3.55rem); line-height:1.07; letter-spacing:-.05em; }
.pe-archive-subtitle { margin:11px 0 0; color:var(--pe-muted); font-size:.98rem; }
.pe-archive-feature {
  display:grid;
  grid-template-columns:minmax(0,1.14fr) minmax(340px,.86fr);
  min-height:clamp(350px,34vw,490px);
  overflow:hidden;
  background:var(--pe-surface);
  border:1px solid var(--pe-line);
  border-radius:var(--pe-radius);
  box-shadow:var(--pe-shadow);
}
.pe-archive-feature-media { display:block; min-height:100%; overflow:hidden; background:var(--pe-surface-2); }
.pe-archive-feature-media img { display:block; width:100%; height:100%; min-height:100%; object-fit:cover; }
.pe-archive-feature-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:clamp(25px,3.2vw,48px); }
.pe-featured-mark { display:inline-block; margin-left:8px; padding:4px 8px; color:var(--pe-blue-2); background:rgba(22,133,255,.12); border:1px solid rgba(76,167,255,.18); border-radius:999px; font-size:.62rem; letter-spacing:.08em; vertical-align:middle; }
.pe-archive-feature-copy h2 { margin:3px 0 0; font-size:clamp(1.65rem,2.65vw,2.65rem); line-height:1.08; letter-spacing:-.045em; }
.pe-archive-feature-copy > p:not(.pe-eyebrow) { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; margin:16px 0 0; color:var(--pe-muted); font-size:.95rem; }
.pe-archive-feature-copy .pe-meta { margin-top:15px; }
.pe-archive-feature-copy .pe-cta { margin-top:17px; }
.pe-archive-results { margin-top:8px; }
.pe-result-count { color:var(--pe-muted); font-size:.82rem; }
.pe-archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pe-archive-card { min-width:0; overflow:hidden; border:1px solid var(--pe-line); border-radius:17px; background:var(--pe-surface); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.pe-archive-card:hover { transform:translateY(-3px); border-color:rgba(76,167,255,.33); box-shadow:var(--pe-shadow); }
.pe-archive-card-image { display:block; overflow:hidden; aspect-ratio:1.7; background:var(--pe-surface-2); }
.pe-archive-card-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.pe-archive-card:hover .pe-archive-card-image img { transform:scale(1.035); }
.pe-archive-card-copy { padding:17px 18px 19px; }
.pe-archive-card-copy .pe-eyebrow { margin-bottom:6px; font-size:.65rem; }
.pe-archive-card-copy h3 { margin:0; font-size:clamp(1.05rem,1.35vw,1.27rem); line-height:1.25; letter-spacing:-.025em; }
.pe-archive-excerpt { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:10px 0 0; color:var(--pe-muted); font-size:.88rem; line-height:1.55; }
.pe-archive-card-copy .pe-meta { margin-top:12px; }
.pe-ad-slot { width:min(1450px,calc(100% - 48px)); }
.pe-ad-slot-inner { min-height:0; }
.pe-ad-widget { width:100%; min-width:0; text-align:center; }
.pe-ad-widget ins.adsbygoogle { display:block; max-width:100%; }
.pe-top-ad { margin-top:16px; margin-bottom:8px; }
/* Keep the preview theme visually independent from legacy, globally injected Newsmag masthead/credit markup. */
.pe-masthead, .pressnow-powered-credit { display:none !important; }
.pe-inline-ad-slot { margin:28px auto; }
.pe-article-end-ad { margin-top:22px; margin-bottom:18px; }
.pe-footer-ad { margin-top:32px; margin-bottom:0; }
.pe-footer { margin-top:0; }
.pe-footer-identity { display:flex; flex-direction:column; gap:4px; }
.pe-footer-identity p { margin:4px 0 0; color:var(--pe-muted); }
.pe-footer-brand { font-size:clamp(1.5rem,2vw,2rem); }
.pe-footer-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; text-align:right; color:var(--pe-muted); }

@media (max-width:1100px) {
  .pe-archive-feature { grid-template-columns:minmax(0,1fr) minmax(0,.92fr); }
  .pe-archive-feature-copy { padding:26px; }
  .pe-archive-grid { gap:14px; }
}
@media (max-width:980px) {
  .pe-article-shell { width:calc(100% - 32px) !important; }
  .pe-article-body { width:min(860px,calc(100% - 44px)) !important; }
  .pe-archive-feature { grid-template-columns:minmax(0,1fr) minmax(0,.9fr); min-height:340px; }
  .pe-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .pe-article-shell { width:calc(100% - 24px) !important; padding-top:14px; }
  .pe-article-hero { min-height:clamp(360px,105vw,500px); border-radius:16px; }
  .pe-article-title { padding:24px 20px 28px; }
  .pe-article-title h1 { font-size:clamp(1.8rem,8vw,2.6rem); }
  .pe-article-body { width:calc(100% - 32px) !important; max-width:none !important; margin:26px auto 38px; font-size:1rem; line-height:1.78; }
  .pe-archive-page { padding-top:18px; }
  .pe-archive-heading { margin-bottom:14px; padding-bottom:14px; }
  .pe-archive-heading h1 { font-size:clamp(1.8rem,8vw,2.55rem); }
  .pe-archive-feature { display:flex; flex-direction:column; min-height:0; }
  .pe-archive-feature-media { aspect-ratio:1.45; min-height:0; }
  .pe-archive-feature-media img { width:100%; height:100%; min-height:0; aspect-ratio:1.45; object-fit:cover; }
  .pe-archive-feature-copy { padding:20px; }
  .pe-archive-feature-copy h2 { font-size:clamp(1.45rem,6.5vw,2rem); }
  .pe-archive-feature-copy > p:not(.pe-eyebrow) { -webkit-line-clamp:3; margin-top:10px; }
  .pe-archive-grid { grid-template-columns:1fr; gap:12px; }
  .pe-archive-card { display:grid; grid-template-columns:38% minmax(0,1fr); }
  .pe-archive-card-image { aspect-ratio:auto; min-height:150px; height:100%; }
  .pe-archive-card-copy { padding:12px; align-self:center; }
  .pe-archive-card-copy h3 { font-size:.99rem; }
  .pe-archive-excerpt { display:none; }
  .pe-archive-card-copy .pe-meta { margin-top:8px; }
  .pe-ad-slot { width:calc(100% - 24px); }
  .pe-footer-meta { align-items:flex-start; text-align:left; }
}

/* Footer: turn the legacy language/identity widgets into a deliberate utility panel. */
.pe-footer-ad .pe-ad-slot-inner {
  display:grid;
  grid-template-columns:minmax(150px,.62fr) minmax(0,1.38fr);
  align-items:stretch;
  gap:16px;
  padding:18px;
  background:linear-gradient(135deg,var(--pe-surface-2),var(--pe-surface));
}
.pe-footer-ad .pe-ad-widget {
  min-width:0;
  display:flex;
  align-items:center;
  padding:20px 24px;
  border:1px solid var(--pe-line);
  border-radius:16px;
  background:rgba(5,13,24,.28);
}
.pe-footer-ad .pe-ad-widget:first-child > div { width:100%; }
.pe-footer-ad .pe-ad-widget:first-child h3 { margin-bottom:12px!important; color:var(--pe-muted)!important; font-size:.72rem!important; letter-spacing:.14em; }
.pe-footer-ad .pe-ad-widget:first-child p { margin-bottom:7px!important; }
.pe-footer-ad .pe-ad-widget:first-child p:last-child { margin-bottom:0!important; }
.pe-footer-ad .pe-ad-widget:first-child a { display:inline-flex; padding:3px 0; color:var(--pe-text)!important; transition:color .18s ease; }
.pe-footer-ad .pe-ad-widget:first-child a:hover { color:var(--pe-blue-2)!important; }
.pe-footer-ad .pe-ad-widget:nth-child(2) { justify-content:center; }
.pe-footer-ad .pe-ad-widget:nth-child(2) > div { width:min(100%,560px); }
.pe-footer-ad .pe-ad-widget:nth-child(2) img { max-width:210px!important; margin:0 0 12px!important; }
.pe-footer-ad .pe-ad-widget:nth-child(2) p { margin-bottom:8px!important; }
.pe-network-promo { padding:0 0 24px; }
.pe-network-card {
  display:flex;
  align-items:center;
  gap:20px;
  min-height:132px;
  padding:24px clamp(20px,4vw,42px);
  overflow:hidden;
  position:relative;
  border:1px solid rgba(76,167,255,.24);
  border-radius:20px;
  background:radial-gradient(ellipse at 85% 0%,rgba(22,133,255,.23),transparent 45%),linear-gradient(115deg,#0b1727 0%,#10233b 58%,#07111f 100%);
  box-shadow:inset 0 1px rgba(255,255,255,.05);
  transition:transform .18s ease,border-color .18s ease;
}
.pe-network-card:hover { color:var(--pe-text); border-color:rgba(76,167,255,.6); transform:translateY(-2px); }
.pe-network-mark {
  flex:0 0 66px;
  width:66px;height:66px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(76,167,255,.45);
  border-radius:20px;
  background:linear-gradient(145deg,#1685ff,#0753b7);
  color:#fff;font-size:1.75rem;font-weight:900;letter-spacing:-.08em;
  box-shadow:0 10px 28px rgba(0,95,210,.24);
}
.pe-network-mark span { color:#cce7ff; }
.pe-network-copy { display:flex;flex-direction:column;gap:5px;min-width:0; }
.pe-network-kicker { color:#69b8ff;font-size:.66rem;font-weight:850;letter-spacing:.17em; }
.pe-network-copy strong { color:#fff;font-size:clamp(1.2rem,2vw,1.65rem);font-weight:900;letter-spacing:-.055em;line-height:1.05; }
.pe-network-copy strong span { color:#1685ff; }
.pe-network-copy > span:last-child { color:#b8c7da;font-size:.88rem; }
.pe-network-action {
  margin-left:auto;flex:none;
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 17px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;font-size:.78rem;font-weight:800;
  backdrop-filter:blur(12px);
}
.pe-network-action span { color:#69b8ff;font-size:1.1rem; }
.pe-footer { border-top:1px solid var(--pe-line); }
@media (max-width:680px) {
  .pe-footer-ad .pe-ad-slot-inner { grid-template-columns:1fr; gap:10px; padding:12px; }
  .pe-footer-ad .pe-ad-widget { padding:17px 18px; }
  .pe-footer-ad .pe-ad-widget:nth-child(2) { justify-content:flex-start; }
  .pe-network-promo { padding-bottom:18px; }
  .pe-network-card { min-height:0; gap:13px; padding:18px; border-radius:17px; flex-wrap:wrap; }
  .pe-network-mark { flex-basis:50px; width:50px; height:50px; border-radius:15px; font-size:1.4rem; }
  .pe-network-copy { flex:1; }
  .pe-network-copy > span:last-child { font-size:.78rem; }
  .pe-network-action { margin-left:63px; padding:9px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
