/* AI Journey-inspired palette and surfaces for DZERTV. */
:root{
  --journey-ink:#111b35;
  --journey-muted:#68708b;
  --journey-accent:#5940e8;
  --journey-line:#e1e2f2;
  --journey-gradient:linear-gradient(110deg,#5799d3 0%,#513bed 60%,#813be4 100%);
}
html{background:#fafbfe;color:var(--journey-ink)}
body{
  color:var(--journey-ink);
  background:#fafbfe;
  background-attachment:fixed;
}
a:hover{color:var(--journey-accent)}
.site-header{
  top:12px;margin:12px 24px 0;
  border:1px solid #ffffffa6;border-radius:6px;
  background:#ffffffd9;box-shadow:0 6px 28px #42418107;
  backdrop-filter:blur(18px);
}
.site-header .header-row{height:64px}
.header-nav a,.site-header .contact-menu summary{color:var(--journey-ink)}
.header-nav a:hover,.header-nav a[aria-current="page"]{color:var(--journey-accent)}
.header-search>summary,.header-push{border-radius:50%;color:var(--journey-ink)}
.site-header .contact-submenu,.header-search form{border-color:var(--journey-line);border-radius:8px;box-shadow:0 14px 40px #33345c16}
.news-ticker{margin-top:10px;background:#ffffff70;border:0;color:var(--journey-ink)}
.news-ticker-agency{color:var(--journey-accent)}
main.layout{padding-top:30px}
.section-head{border-bottom:1px solid #d7d8ed;padding-bottom:18px}
.section-head h1,.section-head h2,.page-head h1{color:var(--journey-ink);letter-spacing:-.035em}
.section-head h1,.page-head h1{font-size:clamp(28px,3vw,44px)}
.main-column .card,.main-column .hero,.main-column .article{
  background:#fff;border:1px solid #e8eaf2;border-radius:10px;
  padding:20px;box-shadow:0 5px 24px #34357204;
}
.main-column .card{overflow:hidden}
.main-column .card-image,.main-column .hero img,.article-cover img{border-radius:8px}
.main-column .card h3,.main-column .hero h2,.article h1{color:var(--journey-ink);letter-spacing:-.025em}
.main-column .card h3 a:hover,.left-story h3 a:hover{color:var(--journey-accent)}
.article h1{font-size:clamp(28px,3vw,42px);line-height:1.15}
.article .lead,.card-lead,.hero p{color:#5d6580}
.article>.meta,.card>.meta{background:#f5f4fc;border:0;border-radius:6px;padding:10px 12px;color:var(--journey-muted)}
.rubric,.body a{color:var(--journey-accent)}
body .left-sidebar,body .sidebar,.radio-card{
  background:#ffffffde;border:1px solid #e8eaf2;border-radius:10px;padding:18px;
  box-shadow:0 5px 24px #34357204;
}
.left-sidebar-heading{border-bottom:1px solid var(--journey-line);padding-bottom:14px}
body .left-sidebar h2,.sidebar h2{color:var(--journey-ink)}
.left-story{border-bottom-color:var(--journey-line)}
.left-story-image,.popular-card-image{border-radius:8px}
.left-story-kicker,.note,.meta,.views{color:var(--journey-muted)}
.article .article-tags-row{border-bottom-color:var(--journey-line)}
.article .article-tags-row .tags>a,.tags a{
  border:0;border-radius:6px;background:#f1eefb;
  padding:5px 10px;color:#5c4a91;font-size:12px;font-weight:500;
}
.article .article-tags-row .tags>a:hover,.tags a:hover{background:#e6e0fa}
.article .article-share .share-button{
  border:1px solid #e7e5f3;border-radius:6px;background:#f5f3fc;
  color:var(--journey-ink);box-shadow:none;padding:9px 16px;
}
.article-share button.article-reaction.reaction-add,.load-more,.search-page button{
  background:var(--journey-gradient);color:#fff;border:1px solid transparent;
  border-radius:6px;box-shadow:0 4px 14px #6842d51a;
}
.article-share button.article-reaction.reaction-add:hover,.article-share button.article-reaction.reaction-add[aria-expanded="true"],.load-more:hover{background:linear-gradient(110deg,#4c89c5,#4630dc 60%,#7130d0);color:#fff;border-color:transparent}
.reaction-picker-menu{border-radius:8px;border-color:var(--journey-line);box-shadow:0 12px 32px #3132691a}
button.article-reaction,.article-reaction.reaction-readonly{border-color:#e3dff1}
button.article-reaction[aria-pressed="true"]{background:#f0eafb;border-color:#c8b9ef;color:#5939a8}
.load-more{padding:14px 26px}
.pagination{gap:12px;color:#5b4b93}
.pagination a{background:#fff;border-radius:6px;padding:8px 16px}
footer{background:#ffffff85;border-top:1px solid #ffffffc7}
footer p,footer small{color:var(--journey-muted)}
a:focus-visible,button:focus-visible,input:focus-visible{outline-color:var(--journey-accent)}
@media(max-width:760px){
  .site-header{top:6px;margin:6px 10px 0;border-radius:10px}
  .site-header .header-row{height:56px}
  .site-header .header-nav{background:#fff;border-radius:8px}
  main.layout{padding-top:20px}
  .main-column .card,.main-column .hero,.main-column .article{border-radius:8px;padding:14px}
  .main-column .card-image,.main-column .hero img,.article-cover img{border-radius:6px}
  body .left-sidebar,body .sidebar{border-radius:8px}
  .article .article-actions{gap:12px}
}
@media(prefers-reduced-transparency:reduce){.site-header{background:#fff}}
@media print{body,html{background:#fff}.main-column .card,.main-column .article{box-shadow:none;border:0}.site-header{position:static}}

/* Consistent compact surfaces and spacing across public modules. */
body .site-header{border-radius:10px;border-color:#e8eaf2;box-shadow:0 2px 12px #24264d05}
body .site-header .header-row{height:58px}
body .header-search form,body .site-header .contact-submenu,body .site-header.js-menu.menu-open .header-nav{border-radius:8px}
body .header-search input,.search-page input,.search-page button,select,textarea{border-radius:6px}
body .radio-player,body .radio-card,body .radio-widget,body .left-sidebar,body .sidebar{border-radius:10px}
body .main-column .card,body .main-column .hero,body .main-column .article{border-radius:10px}
body .main-column .card-image,body .article-cover img,body .left-story-image,body .popular-card-image{border-radius:6px}
body .article>.meta,body .card>.meta{border-radius:6px}
body .article-share .share-button,body .article-share button.article-reaction.reaction-add{min-height:38px;padding:8px 14px;border-radius:6px}
body .article-reaction,body button.article-reaction,body .article-reaction.reaction-readonly{border-radius:6px}
body .reaction-picker-menu{border-radius:8px}
body .main-column .card{padding:18px}
body .main-column .article{padding:22px}
body .left-sidebar{padding:16px}
body .left-story{padding:16px 0}
body .article .article-actions{gap:12px;margin:20px 0 12px}
body .article .article-tags-row{padding-bottom:12px;margin-bottom:2px}
body .article .article-tags-row .tags{justify-content:flex-start}
body .article .article-tags-row .tags>a:first-child{margin-left:auto}
body .article .article-tags-row .tags>a:last-child{margin-right:auto}
@media(max-width:760px){
 body .site-header{margin:6px 10px 0;border-radius:8px}
 body .site-header .header-row{height:54px}
 body .main-column .card,body .main-column .article,body .main-column .hero{padding:14px;border-radius:8px}
 body .left-sidebar,body .sidebar{padding:14px;border-radius:8px}
 body main.layout{padding-top:18px}
 body .article .article-share{gap:8px}
}

body .back-to-top{
  display:grid;place-items:center;width:44px;height:44px;
  right:max(18px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));
  border:1px solid #daddeb;border-radius:10px;background:#fff;color:#5551a3;
  box-shadow:0 4px 16px #24264d12;
  transition:opacity .2s,visibility .2s,transform .2s,background .2s,box-shadow .2s;
}
body .back-to-top::after{
  content:"";display:block;width:11px;height:11px;margin:5px 0 0;
  border:0;border-top:2px solid currentColor;border-left:2px solid currentColor;
  transform:rotate(45deg);border-radius:1px;
}
body .back-to-top:hover{background:#f2f1fb;color:#4b3fbd;transform:translateY(-3px);box-shadow:0 7px 20px #24264d1c}
body .back-to-top:focus-visible{outline:2px solid #7163c7;outline-offset:3px}
@media(max-width:760px){body .back-to-top{width:40px;height:40px;right:14px;bottom:calc(16px + env(safe-area-inset-bottom));border-radius:8px}}
@media(prefers-reduced-motion:reduce){body .back-to-top{transition:none}}

/* Separate consecutive materials and keep ticker labels readable. */
#article-stream > .article + .article{margin-top:24px}
.site-header .news-ticker .news-ticker-agency,.news-ticker .news-ticker-agency{
  background:#eeebf9;color:#40346b;border:1px solid #ddd7ef;
  padding:1px 6px;border-radius:4px;line-height:18px;font-weight:600;
}
@media(max-width:760px){#article-stream > .article + .article{margin-top:18px}}
