/*
  article_newspaper.css
  ---------------------
  Site-integrated newspaper/fakta template used from admin/wysiwyg/templates.php.
  Version 5 restores the original newspaper character inside the normal article column,
  while retaining theme integration, responsive behavior and editor compatibility.
*/
.glow-gradient {
 font-size: 8px;
 font-weight: bold;
 padding: 20px 40px;
 color: #fff;
 background: linear-gradient(45deg, #ff0000, #ff9900, #ffff00, #33cc33, #00ccff, #9933ff, #ff33cc);
 background-size: 400% 400%;
 border-radius: 10px;
 box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
 animation: gradientAnimation 5s ease infinite;
}


@keyframes gradientAnimation {
 0% {
     background-position: 0% 50%;
 }
 50% {
     background-position: 100% 50%;
 }
 100% {
     background-position: 0% 50%;
 }
}

.glow {
 padding: 20px 40px;
 font-size: 2rem;
 color: #9a4545;
 border: 5px solid;
 border-radius: 10px;
 border-color: #ff00ff;


 animation: glow-border 2s infinite alternate;
}


@keyframes glow-border {
 0% {
   border-color: #ff00ff;
 }
 50% {
   border-color: #00ffff;
 }
 100% {
   border-color: #ff00ff;
 }
}
.articleBody.articleBody--template,
.articleBody:has(.newspaper-template){
  max-width: 100% !important;
  width: 100%;
}

.articleBody > .newspaper-template,
.newspaper-template{
--news-paper: rgba(255, 253, 247, .94);
  --news-ink: #191919;
  --news-muted: #5d5d5d;
  --news-line: rgba(80, 70, 58, .25);
  --news-accent: #8a1f1f;
  --news-soft: rgba(239, 230, 215, .72);
  --news-table-head: #272727;
  --news-table-head-text: #fffaf0;
  --news-box: rgba(255, 253, 247, .90);
  --news-quote-bg: rgba(255, 250, 241, .94);
  --news-table-bg: rgba(255, 253, 248, .92);

  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 16px 0 30px;
  transform: none;
  background: var(--news-paper);
  color: var(--news-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--news-line);
  border-radius: 4px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .18);
  overflow: hidden;
}

body.theme-flash .newspaper-template,
body.theme-night .newspaper-template{
  --news-paper: rgba(5, 10, 18, .30);
  --news-ink: #eefcff;
  --news-muted: rgba(238, 252, 255, .76);
  --news-line: rgba(120, 200, 255, .24);
  --news-accent: #8ff;
  --news-soft: rgba(120, 200, 255, .075);
  --news-table-head: rgba(0, 0, 0, .55);
  --news-table-head-text: #eaffff;
  --news-box: rgba(0, 0, 0, .22);
  --news-quote-bg: rgba(0, 0, 0, .24);
  --news-table-bg: rgba(0, 0, 0, .14);

  background:
    radial-gradient(circle at top left, rgba(120, 200, 255, .12), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .12));
  border-color: var(--news-line);
  box-shadow:
    inset 0 0 0 1px rgba(120, 200, 255, .08),
    0 14px 42px rgba(0, 0, 0, .28);
}

body.theme-flash .newspaper-template{
  --news-accent: #ffea7a;
}

body.theme-day .newspaper-template{
  --news-paper: rgba(255, 255, 255, .72);
  --news-ink: #172033;
  --news-muted: rgba(23, 32, 51, .72);
  --news-line: rgba(10, 20, 40, .16);
  --news-accent: #8a1f1f;
  --news-soft: rgba(10, 20, 40, .045);
  --news-table-head: rgba(23, 32, 51, .94);
  --news-table-head-text: #fffaf0;
  --news-box: rgba(255, 255, 255, .78);
  --news-quote-bg: rgba(255, 250, 241, .84);
  --news-table-bg: rgba(255, 255, 255, .72);
}

.newspaper-template *,
.newspaper-template *::before,
.newspaper-template *::after{
  box-sizing: border-box;
}

.newspaper-template .newspaper-masthead{
border-top: 5px solid var(--news-ink);
  border-bottom: 1px solid var(--news-line);
  padding: 12px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--news-muted);
}

.newspaper-template .newspaper-name{
  font-weight: 700;
  color: var(--news-ink);
  letter-spacing: .12em;
}

.newspaper-template .newspaper-kicker{
margin-top: 34px;
  color: var(--news-accent);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.newspaper-template .newspaper-title{
font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02 !important;
  letter-spacing: -0.045em;
  margin: 10px 0 16px;
  max-width: 980px;
  min-height: 1.02em;
  padding-bottom: .03em;
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  color: var(--news-ink);
}

body.theme-flash .newspaper-template .newspaper-title,
body.theme-night .newspaper-template .newspaper-title{
  text-shadow: 0 0 18px rgba(120, 200, 255, .14);
}

.newspaper-template .newspaper-subhead{
font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--news-ink);
  max-width: 900px;
  margin: 0 0 18px;
}

.newspaper-template .newspaper-byline{
font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--news-muted);
  border-bottom: 2px solid var(--news-ink);
  padding-bottom: 18px;
  margin-bottom: 26px;
}

.newspaper-template .newspaper-layout{
display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: clamp(24px, 3vw, 34px);
  align-items: start;
}

.newspaper-template .newspaper-layout.newspaper-layout--no-sidebar{
  display: block;
  grid-template-columns: 1fr;
}

.newspaper-template .newspaper-layout.newspaper-layout--no-sidebar .newspaper-article{
  width: 100%;
  max-width: 100%;
}

.newspaper-template .newspaper-article p,
.newspaper-template .newspaper-section p{
font-size: 18px;
  line-height: 1.64;
  margin: 0 0 18px;
  color: var(--news-ink);
}

.newspaper-template .newspaper-article p:first-of-type::first-letter{
float: left;
  font-size: 5.4em;
  line-height: .85;
  padding-right: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--news-accent);
}

.newspaper-template .newspaper-sidebar{
  position: sticky;
  top: 18px;
}

.newspaper-template .newspaper-factbox{
background: var(--news-box);
  border: 1px solid var(--news-line);
  border-top: 6px solid var(--news-accent);
  border-radius: 2px;
  padding: 18px;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.newspaper-template .newspaper-factbox h2{
font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  color: var(--news-ink);
}

.newspaper-template .newspaper-factbox ul{
  margin: 0;
  padding-left: 19px;
}

.newspaper-template .newspaper-factbox li{
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--news-ink);
}

.newspaper-template .newspaper-section{
margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--news-line);
}

.newspaper-template .newspaper-section-title{
font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 31px);
  line-height: 1.1 !important;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  min-height: 1.1em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  color: var(--news-ink);
}

.newspaper-template .newspaper-note{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--news-muted) !important;
  margin: 8px 0 16px !important;
}

.newspaper-template .newspaper-table-wrap{
overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--news-line);
  border-radius: 2px;
  background: var(--news-table-bg);
  margin: 16px 0 30px;
}

.newspaper-template .newspaper-table{
width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--news-ink);
}

.newspaper-template .newspaper-table th{
  background: var(--news-table-head);
  color: var(--news-table-head-text);
  text-align: left;
  padding: 11px 12px;
  vertical-align: top;
  font-weight: 700;
}

.newspaper-template .newspaper-table td{
  padding: 11px 12px;
  border-top: 1px solid var(--news-line);
  vertical-align: top;
  color: var(--news-ink);
}

.newspaper-template .newspaper-table tbody tr:nth-child(even) td{
  background: var(--news-soft);
}

.newspaper-template .newspaper-pullquote{
margin: 28px 0;
  padding: 18px 22px;
  border: 0;
  border-left: 7px solid var(--news-accent);
  border-radius: 0;
  background: var(--news-quote-bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--news-ink);
}

.newspaper-template .newspaper-source{
  font-family: Arial, Helvetica, sans-serif;
  color: var(--news-muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  border-top: 1px solid var(--news-line);
  padding-top: 14px;
  margin-top: 26px !important;
}

.newspaper-template img{
  max-width: 100%;
  height: auto;
}

@media (max-width: 850px){
  .articleBody > .newspaper-template,
  .newspaper-template{
    margin: 12px 0 24px;
    padding: 22px 16px 32px;
    border-radius: 14px;
  }

  .newspaper-template .newspaper-masthead{
    display: block;
    font-size: 12px;
  }

  .newspaper-template .newspaper-layout{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newspaper-template .newspaper-sidebar{
    position: static;
  }

  .newspaper-template .newspaper-article p,
  .newspaper-template .newspaper-section p{
    font-size: 17px;
  }

  .newspaper-template .newspaper-title{
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1.04 !important;
    letter-spacing: -0.04em;
  }

  .newspaper-template .newspaper-article p:first-of-type::first-letter{
    font-size: 3.5em;
  }

  .newspaper-template .newspaper-table{
    min-width: 640px;
  }
}

@media (max-width: 520px){
  .articleBody > .newspaper-template,
  .newspaper-template{
    padding: 18px 12px 28px;
  }

  .newspaper-template .newspaper-kicker{
    margin-top: 22px;
    font-size: 12px;
  }

  .newspaper-template .newspaper-title{
    line-height: 1.04 !important;
    letter-spacing: -0.035em;
  }

  .newspaper-template .newspaper-pullquote{
    padding: 14px 15px;
  }

  .newspaper-template .newspaper-table{
    min-width: 600px;
  }
}

/* PHP/code snippet blocks inserted from admin/wysiwyg/templates.php.
   These blocks display code as text; they do not execute PHP. */
.pm-code-snippet{
  margin: 22px 0;
  border: 1px solid rgba(120, 160, 190, .34);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1424;
  color: #e8f1ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}

.pm-code-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.pm-code-head strong{
  color: #ffffff;
  font-weight: 800;
  word-break: break-word;
}

.pm-code-head span{
  color: rgba(232, 241, 255, .72);
  font-size: 12px;
  text-align: right;
}

.pm-code-pre{
  margin: 0 !important;
  padding: 16px 18px !important;
  overflow: auto;
  max-width: 100%;
  white-space: pre;
  tab-size: 2;
  font: 13px/1.6 Consolas, Monaco, "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: transparent !important;
  color: #e8f1ff !important;
}

.pm-code-pre code,
.pm-code-snippet code{
  display: block;
  margin: 0;
  padding: 0;
  background: transparent !important;
  color: inherit !important;
  font: inherit;
  white-space: inherit;
}

body.theme-day .pm-code-snippet{
  background: #101827;
  border-color: rgba(35, 56, 84, .28);
}

body.theme-flash .pm-code-snippet,
body.theme-night .pm-code-snippet{
  border-color: rgba(120, 255, 255, .22);
  box-shadow: 0 0 28px rgba(0, 255, 255, .08), 0 14px 34px rgba(0,0,0,.25);
}

@media (max-width: 640px){
  .pm-code-head{
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pm-code-head span{
    text-align: left;
  }

  .pm-code-pre{
    padding: 13px 14px !important;
    font-size: 12px;
  }
}

/* External iframe/embed blocks inserted from admin/wysiwyg/templates.php. */
.pm-embed-block{
  box-sizing:border-box;
  display:block;
  width:fit-content;
  max-width:100%;
  margin:24px auto;
  padding:8px;
  overflow:hidden;
  border:1px solid rgba(120,160,190,.30);
  border-radius:16px;
  background:rgba(0,0,0,.18);
  box-shadow:0 12px 30px rgba(0,0,0,.16);
}

.pm-embed-block iframe,
iframe.pm-article-embed{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border:0 !important;
  border-radius:10px;
  background:#000;
}

body.theme-day .pm-embed-block{
  background:rgba(255,255,255,.78);
  border-color:rgba(10,20,40,.16);
  box-shadow:0 12px 30px rgba(10,20,40,.12);
}

body.theme-flash .pm-embed-block,
body.theme-night .pm-embed-block{
  border-color:rgba(120,255,255,.22);
  box-shadow:0 0 26px rgba(0,255,255,.06),0 12px 30px rgba(0,0,0,.22);
}

@media (max-width:640px){
  .pm-embed-block{
    width:100%;
    padding:6px;
    border-radius:14px;
  }

  .pm-embed-block iframe,
  iframe.pm-article-embed{
    border-radius:9px;
  }
}

/* Quick article boxes inserted from admin/wysiwyg/templates.php. */
.pm-quick-card{
  box-sizing:border-box;
  display:block;
  width:100%;
  max-width:100%;
  margin:22px 0;
  padding:17px 19px;
  border:1px solid rgba(120,160,190,.30);
  border-left:5px solid var(--accent,#1686c9);
  border-radius:0 15px 15px 0;
  background:rgba(255,255,255,.78);
  color:inherit;
  box-shadow:0 10px 28px rgba(0,0,0,.10);
}

.pm-quick-card h3{
  margin:0 0 9px;
  color:inherit;
}

.pm-quick-card p:last-child,
.pm-quick-card ul:last-child{
  margin-bottom:0;
}

.pm-quick-fact{
  border-left-color:#1686c9;
  background:rgba(222,242,252,.86);
}

.pm-quick-quote{
  border-left-color:#a63b79;
  background:rgba(255,241,248,.88);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.08rem,2vw,1.28rem);
  line-height:1.48;
}

.pm-quick-quote footer{
  margin-top:11px;
  color:inherit;
  opacity:.70;
  font-family:Arial,Helvetica,sans-serif;
  font-size:.78em;
}

.pm-quick-note{
  border-left-color:#a66a13;
  background:rgba(255,248,225,.90);
}

.pm-quick-columns-card{
  border-left-color:#475569;
}

.pm-quick-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,3vw,28px);
}

.pm-quick-columns > div{
  min-width:0;
}

body.theme-night .pm-quick-card,
body.theme-flash .pm-quick-card{
  background:rgba(8,20,34,.80);
  border-color:rgba(120,220,255,.22);
  color:var(--text,#eef7ff);
  box-shadow:0 0 24px rgba(0,210,255,.06),0 12px 30px rgba(0,0,0,.20);
}

body.theme-night .pm-quick-fact,
body.theme-flash .pm-quick-fact{
  border-left-color:#4dc9ff;
}

body.theme-night .pm-quick-quote,
body.theme-flash .pm-quick-quote{
  border-left-color:#ff76c8;
}

body.theme-night .pm-quick-note,
body.theme-flash .pm-quick-note{
  border-left-color:#ffd166;
}

@media(max-width:640px){
  .pm-quick-card{
    padding:15px 14px;
  }

  .pm-quick-columns{
    grid-template-columns:1fr;
  }
}

