/* AllmaNews 1.2.20 — category mastheads; loaded after legacy Elementor layout.
   No Elementor JSON migration. Art always uses contain, never cover/crop. */
:is(#allmanews-content,.elementor) .an-category-page .an-cat-primary {
  min-width:0;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-intro {
  position:relative!important;
  inset:auto!important;
  isolation:isolate;
  width:100%!important;
  min-height:244px!important;
  height:auto!important;
  padding:33px min(40%, 410px) 34px 38px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:12px!important;
  overflow:hidden!important;
  border:1px solid #e1eaf5;
  border-radius:18px!important;
  background:radial-gradient(ellipse at 92% 10%,#e8f3ff 0%,transparent 48%), linear-gradient(115deg,#fff 11%,#f7faff 76%,#edf5ff 100%)!important;
  box-shadow:0 13px 35px rgba(15,49,97,.065), 0 2px 6px rgba(16,50,89,.025);
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-intro::before {
  content:"ȘTIRI LOCALE · BUZĂU NEWS";
  position:relative;
  z-index:2;
  order:0;
  display:inline-flex;
  color:#ea1741;
  font:800 10px/1.3 Roboto,Arial,sans-serif;
  letter-spacing:1.8px;
  text-transform:uppercase;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-intro::after {
  content:"";
  position:absolute;
  left:0;
  top:28px;
  bottom:28px;
  width:4px;
  border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,#fa0031,#ff7088);
  pointer-events:none;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-title,
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-subtitle {
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  z-index:2;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  white-space:normal!important;
  overflow:visible!important;
  transform:none!important;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-title {
  order:1;
  color:#081e40;
  font:750 clamp(29px,3.25vw,46px)/1.12 Lora,Georgia,serif!important;
  letter-spacing:-.045em!important;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-title::after { content:none!important;display:none!important; }
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-title .an-cat-title-text {
  color:inherit;
  font:inherit!important;
  letter-spacing:inherit;
  margin:0;
  padding:0;
  line-height:inherit;
  overflow-wrap:break-word;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-subtitle {
  order:2;
  color:#435b7d;
  font:400 clamp(13px,1.1vw,16px)/1.65 Roboto,Arial,sans-serif!important;
  letter-spacing:0;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-page-subtitle .an-cat-visual-description {
  color:inherit;
  font:inherit;
  letter-spacing:0;
  margin:0;
  padding:0;
  max-width:62ch;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-architecture {
  position:absolute!important;
  z-index:1!important;
  right:18px!important;
  left:auto!important;
  top:50%!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  width:min(38%, 365px)!important;
  height:calc(100% - 32px)!important;
  max-width:none!important;
  max-height:none!important;
  opacity:.82!important;
  pointer-events:none!important;
  overflow:visible!important;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-architecture .elementor-widget-container,
:is(#allmanews-content,.elementor) .an-category-page .an-cat-architecture img {
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:0!important;
  background:transparent!important;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-architecture .elementor-widget-container { overflow:visible!important; }
:is(#allmanews-content,.elementor) .an-category-page .an-cat-intro .an-cat-architecture:empty {display:none!important}
/* Small modern category pills, sized independently of the old pixel-perfect export. */
:is(#allmanews-content,.elementor) .an-category-page .an-cat-tabs {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:2px 1px 9px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-tab { flex:0 0 auto!important; }
:is(#allmanews-content,.elementor) .an-category-page .an-cat-tab .elementor-button {
  border-radius:999px!important;
  min-height:39px!important;
  padding:12px 16px!important;
  font:600 12px/1 Roboto,Arial,sans-serif!important;
  background:#eaf1f8!important;
  color:#243e61!important;
  border:1px solid #e2ebf5!important;
  box-shadow:none!important;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-tab .elementor-button:hover,
:is(#allmanews-content,.elementor) .an-category-page .an-cat-tab .elementor-button:focus-visible {
  background:#dae7f5!important;
  color:#0b2448!important;
}
:is(#allmanews-content,.elementor) .an-category-page .an-cat-tab-active .elementor-button {
  background:#f60035!important;
  color:#fff!important;
  border-color:#f60035!important;
  box-shadow:0 6px 14px rgba(246,0,53,.13)!important;
}
/* Real category archives use the same editorial identity without Elementor. */
.an-post-shell .an-native-cat-header { margin:10px 0 24px; max-width:100%; }
.an-post-shell .an-native-cat-intro {
  position:relative;
  isolation:isolate;
  border-radius:18px;
  border:1px solid #e1eaf5;
  background:radial-gradient(ellipse at 92% 10%,#e8f3ff,transparent 48%),linear-gradient(115deg,#fff 11%,#f7faff 76%,#edf5ff 100%);
  padding:33px min(40%,410px) 34px 38px;
  min-height:244px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  overflow:hidden;
  box-shadow:0 13px 35px rgba(15,49,97,.065);
}
.an-post-shell .an-native-cat-intro::before {
  content:"";position:absolute;top:28px;bottom:28px;left:0;width:4px;border-radius:0 4px 4px 0;background:#fa0031;
}
.an-post-shell .an-native-cat-kicker {color:#ea1741;font:800 10px/1.3 Roboto,Arial,sans-serif;letter-spacing:1.8px;}
.an-post-shell .an-native-cat-intro h1 {position:relative;z-index:1;font:750 clamp(29px,3.25vw,46px)/1.12 Lora,Georgia,serif;letter-spacing:-.045em;color:#081e40;margin:0;}
.an-post-shell .an-native-cat-intro p {position:relative;z-index:1;color:#435b7d;font:400 clamp(13px,1.1vw,16px)/1.65 Roboto,Arial,sans-serif;max-width:62ch;margin:0;}
.an-post-shell .an-native-cat-art {position:absolute;z-index:0;right:18px;top:16px;width:min(38%,365px);height:calc(100% - 32px);}
.an-post-shell .an-native-cat-art img {width:100%;height:100%;display:block;object-fit:contain;object-position:center;background:transparent;}
@media (max-width:1020px) {
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-intro {
    padding:26px min(35%,300px) 28px 28px!important;
    min-height:220px!important;
  }
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-architecture {right:8px!important;width:34%!important;opacity:.65!important}
}
@media (max-width:767px) {
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-intro {
    display:flex!important;
    position:relative!important;
    min-height:0!important;
    height:auto!important;
    padding:25px 22px 20px!important;
    border-radius:15px!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:12px!important;
  }
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-page-title {font-size:clamp(29px,7vw,40px)!important;line-height:1.13!important;}
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-page-subtitle {font-size:14px!important;line-height:1.6!important;}
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-architecture {
    order:3;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    height:132px!important;
    margin:0!important;
    opacity:.72!important;
  }
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-tabs {margin:0!important;gap:7px!important;padding-bottom:12px!important;}
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-tab .elementor-button {padding:10px 13px!important;min-height:36px!important;font-size:12px!important;}
  .an-post-shell .an-native-cat-intro {padding:25px 22px 20px;min-height:0;}
  .an-post-shell .an-native-cat-intro h1 {font-size:clamp(29px,7vw,40px)}
  .an-post-shell .an-native-cat-intro p {font-size:14px}
  .an-post-shell .an-native-cat-art {position:relative;inset:auto;width:100%;height:132px;}
}
@media (prefers-reduced-motion:reduce){
  :is(#allmanews-content,.elementor) .an-category-page .an-cat-tab .elementor-button {transition:none!important;}
}
