/* ==========================================================================
   EasyPresta Blog — component styles
   Built on top of Hepta tokens (tokens.css).
   ========================================================================== */

* { box-sizing: border-box; }

/* All blog screens render at a fixed 1280px width on the canvas */
.epb-screen {
  width: 1280px;
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-corporate);
  position: relative;
  overflow: hidden;
}

/* ---------- TOPBAR (navy strip) ---------- */
.epb-topbar {
  background: var(--hepta-navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
}
.epb-topbar__inner {
  max-width: 1216px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.epb-topbar a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.epb-topbar a:hover { color: var(--hepta-cyan); }
.epb-topbar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.epb-topbar__right span { opacity: 0.6; }

/* ---------- HEADER ---------- */
.epb-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.epb-header__inner {
  max-width: 1216px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.epb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hepta-navy-deep);
  flex: 0 0 auto;
}
.epb-wordmark {
  font-family: var(--font-corporate);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--hepta-navy-deep);
  line-height: 1;
}
.epb-wordmark span { color: var(--hepta-navy-deep); }
.epb-bloglabel {
  font-family: var(--font-corporate);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(51,204,204,0.12);
  border: 1px solid rgba(51,204,204,0.35);
  padding: 4px 8px 3px;
  border-radius: 6px;
  line-height: 1;
  position: relative;
  top: 1px;
}
.epb-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.epb-nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.epb-nav__link:hover { color: var(--accent-text); }
.epb-nav__link--active { color: var(--accent-text); }
.epb-nav__link--active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -23px;
  height: 2px;
  background: var(--hepta-cyan);
}
.epb-search {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 8px 16px;
  width: 280px;
  gap: 8px;
}
.epb-search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  flex: 1;
  font-size: 14px;
  color: var(--fg-1);
}
.epb-search input::placeholder { color: var(--fg-3); }
.epb-search svg { color: var(--fg-3); }

/* ---------- HERO ---------- */
.epb-hero {
  background: var(--hepta-gradient);
  color: #fff;
  padding: 56px 32px 96px;
  position: relative;
  overflow: hidden;
}
.epb-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(51,204,204,0.18) 0%, transparent 70%);
}
.epb-hero__inner {
  max-width: 1216px;
  margin: 0 auto;
  position: relative;
}
.epb-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hepta-cyan);
  margin-bottom: 16px;
}
.epb-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 720px;
  color: #fff;
}
.epb-hero p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 580px;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* ---------- CONTAINER ---------- */
.epb-container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- ARTICLE CARD ---------- */
.epb-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.epb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.epb-card__media {
  aspect-ratio: 16/10;
  background: var(--hepta-mist);
  position: relative;
  overflow: hidden;
}
.epb-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.epb-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.epb-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.epb-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.epb-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-3);
  margin-top: auto;
  padding-top: 8px;
}
.epb-card__meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--fg-3);
}

/* Cover variants by category — abstract tiles, no fake imagery */
.epb-cover {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-corporate);
}
.epb-cover--release {
  background: linear-gradient(135deg, #182B42 0%, #2E4360 100%);
  color: #fff;
}
.epb-cover--tutorial {
  background: linear-gradient(135deg, #33CCCC 0%, #5DEDED 100%);
  color: var(--hepta-navy-deep);
}
.epb-cover--seo {
  background: #F7FAFB;
  color: var(--hepta-navy-deep);
  border-bottom: 1px solid var(--border);
}
.epb-cover--mixed {
  background: #182B42;
  color: #fff;
}
.epb-cover__module {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.epb-cover__chip {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}
.epb-cover--tutorial .epb-cover__chip {
  background: rgba(24,43,66,0.1);
  color: var(--hepta-navy-deep);
  border-color: rgba(24,43,66,0.18);
}
.epb-cover--seo .epb-cover__chip {
  background: rgba(51,204,204,0.12);
  color: var(--hepta-navy-deep);
  border-color: rgba(51,204,204,0.35);
}
.epb-cover__big {
  font-family: var(--font-corporate);
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.epb-cover__sub {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}
.epb-cover__terminal {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  padding: 18px 22px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.epb-cover__terminal .prompt { color: var(--hepta-cyan); }
.epb-cover__terminal .out { color: rgba(255,255,255,0.55); }

/* ---------- FOOTER ---------- */
.epb-footer {
  background: var(--hepta-gradient);
  color: rgba(255,255,255,0.75);
  padding: 64px 32px 28px;
  margin-top: 80px;
}
.epb-footer__inner {
  max-width: 1216px;
  margin: 0 auto;
}
.epb-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.epb-footer__brand .epb-wordmark { color: #fff; }
.epb-footer__brand .epb-wordmark span { color: var(--hepta-cyan); }
.epb-footer__tag {
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}
.epb-footer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hepta-cyan);
  margin-bottom: 16px;
}
.epb-footer__col a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.epb-footer__col a:hover { color: #fff; }
.epb-footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ---------- BUTTONS / PILLS ---------- */
.epb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.epb-btn:hover { border-color: var(--hepta-cyan); color: var(--hepta-cyan); }
.epb-btn--primary {
  background: var(--hepta-cyan);
  color: var(--hepta-navy-deep);
  border-color: var(--hepta-cyan);
  box-shadow: var(--shadow-cyan);
}
.epb-btn--primary:hover {
  background: #2BB8B8;
  border-color: #2BB8B8;
  color: var(--hepta-navy-deep);
}
.epb-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.epb-btn--ghost:hover { border-color: var(--hepta-cyan); color: var(--hepta-cyan); }

.epb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--fg-1);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.epb-chip:hover { background: #fff; border-color: var(--border); }
.epb-chip--active {
  background: var(--hepta-navy-deep);
  color: #fff;
  border-color: var(--hepta-navy-deep);
}
.epb-chip__count {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 500;
}

/* ---------- SIDEBAR widgets ---------- */
.epb-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 24px;
  margin-bottom: 24px;
}
.epb-widget__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hepta-navy-deep);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.epb-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.epb-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.epb-cat-list li:last-child { border-bottom: 0; }
.epb-cat-list a {
  color: var(--fg-1);
  text-decoration: none;
  font-weight: 500;
}
.epb-cat-list a:hover { color: var(--accent-text); }
.epb-cat-list .count {
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 600;
}

.epb-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.epb-recent li { display: flex; gap: 12px; }
.epb-recent__thumb {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  background: var(--hepta-mist);
}
.epb-recent__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg-1);
  margin: 0 0 4px;
  text-decoration: none;
  display: block;
}
.epb-recent__title:hover { color: var(--accent-text); }
.epb-recent__date {
  font-size: 12px;
  color: var(--fg-3);
}

/* ---------- ARTICLE READER ---------- */
.epb-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 64px;
}
.epb-article__crumb {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.epb-article__crumb a { color: var(--fg-2); text-decoration: none; }
.epb-article__crumb a:hover { color: var(--hepta-cyan); }
.epb-article__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(51,204,204,0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.epb-article h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hepta-navy-deep);
  margin: 0 0 16px;
}
.epb-article__lead {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
}
.epb-article__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.epb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hepta-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.epb-byline__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
}
.epb-byline__meta {
  font-size: 13px;
  color: var(--fg-3);
}
.epb-byline__share {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.epb-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.epb-share-btn:hover {
  border-color: var(--hepta-cyan);
  color: var(--hepta-cyan);
}

.epb-article__hero {
  aspect-ratio: 16/8;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.epb-prose h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--hepta-navy-deep);
  margin: 40px 0 16px;
}
.epb-prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--hepta-navy-deep);
  margin: 28px 0 12px;
}
.epb-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
  margin: 0 0 18px;
}
.epb-prose p strong { color: var(--hepta-navy-deep); font-weight: 700; }
.epb-prose ul, .epb-prose ol {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
  padding-left: 22px;
  margin: 0 0 18px;
}
.epb-prose li { margin-bottom: 6px; }
.epb-prose li::marker { color: var(--hepta-cyan); }
.epb-prose a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.epb-prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-muted);
  color: var(--hepta-navy-deep);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
}
.epb-prose pre {
  background: var(--hepta-navy-deep);
  color: #E6EDF6;
  padding: 22px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 22px 0 28px;
  border: 1px solid var(--hepta-navy);
  position: relative;
}
.epb-prose pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 12px; right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hepta-cyan);
}
.epb-prose pre code { background: transparent; padding: 0; color: inherit; font-weight: 400; }
.epb-prose pre .tk-key { color: #FF7B72; }
.epb-prose pre .tk-str { color: #A5D6FF; }
.epb-prose pre .tk-cmt { color: #8B949E; font-style: italic; }
.epb-prose pre .tk-fn  { color: #5DEDED; }
.epb-prose pre .tk-num { color: #FFA657; }

.epb-callout {
  background: rgba(51,204,204,0.07);
  border: 1px solid rgba(51,204,204,0.25);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.epb-callout svg { color: var(--hepta-cyan); flex: 0 0 auto; margin-top: 2px; }
.epb-callout p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Module CTA inside article */
.epb-mod-cta {
  background: var(--hepta-gradient);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.epb-mod-cta__icon {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: var(--hepta-cyan);
  color: var(--hepta-navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  flex: 0 0 80px;
  text-align: center;
  line-height: 1.05;
}
.epb-mod-cta__body { flex: 1; }
.epb-mod-cta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hepta-cyan);
  margin-bottom: 6px;
}
.epb-mod-cta__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.epb-mod-cta__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}
.epb-mod-cta__price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.epb-mod-cta__price small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-top: 2px;
}

/* TOC */
.epb-toc {
  position: sticky;
  top: 24px;
  font-size: 13px;
}
.epb-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
}
.epb-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}
.epb-toc li a {
  display: block;
  padding: 6px 14px;
  color: var(--fg-2);
  font-size: 13px;
  text-decoration: none;
  line-height: 1.4;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.epb-toc li a:hover { color: var(--accent-text); }
.epb-toc li a.active {
  color: var(--hepta-navy-deep);
  font-weight: 600;
  border-left-color: var(--hepta-cyan);
}

/* Article comments / related */
.epb-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hepta-navy-deep);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}
.epb-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.epb-comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.epb-comment:last-child { border-bottom: 0; }
.epb-comment__body { flex: 1; }
.epb-comment__head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.epb-comment__author { font-weight: 700; color: var(--fg-1); }
.epb-comment__date { font-size: 12px; color: var(--fg-3); }
.epb-comment__text { font-size: 15px; line-height: 1.6; color: var(--fg-1); margin: 0; }
.epb-comment__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-3);
}
.epb-comment__actions a {
  color: var(--fg-2);
  text-decoration: none;
  font-weight: 600;
}
.epb-comment__actions a:hover { color: var(--accent-text); }

.epb-comment-form {
  background: var(--bg-subtle);
  border-radius: 14px;
  padding: 22px;
  margin-top: 24px;
}
.epb-comment-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
  outline: none;
}
.epb-comment-form textarea:focus { border-color: var(--hepta-cyan); box-shadow: var(--focus-ring); }
.epb-comment-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-3);
}

/* ---------- LISTING VARIATIONS ---------- */

/* Variation A — editorial / featured + side rail */
.epb-A-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: -64px;
  position: relative;
  z-index: 2;
}
.epb-A-featured__main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.epb-A-featured__main .epb-card__media { aspect-ratio: 16/9; }
.epb-A-featured__main .epb-card__title { font-size: 28px; line-height: 1.2; }
.epb-A-featured__main .epb-card__body { padding: 24px 28px 28px; gap: 12px; }
.epb-A-featured__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.epb-A-side__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 4px;
}
.epb-A-side__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.epb-A-side__item:last-child { border-bottom: 0; }
.epb-A-side__num {
  font-family: var(--font-corporate);
  font-weight: 800;
  font-size: 28px;
  color: var(--hepta-mist);
  line-height: 1;
  flex: 0 0 32px;
  letter-spacing: -0.04em;
}
.epb-A-side__body { flex: 1; }
.epb-A-side__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.epb-A-side__t {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-1);
  margin: 0 0 4px;
}
.epb-A-side__m {
  font-size: 12px;
  color: var(--fg-3);
}

.epb-A-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 64px;
}

/* Variation B — magazine mosaic */
.epb-B-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  height: 540px;
}
.epb-B-mosaic__hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--border);
}
.epb-B-mosaic__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(24,43,66,0.85) 100%);
  z-index: 1;
}
.epb-B-mosaic__hero > * { position: relative; z-index: 2; }
.epb-B-mosaic__hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.epb-B-cell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--border);
}
.epb-B-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(24,43,66,0.85) 100%);
  z-index: 1;
}
.epb-B-cell > * { position: relative; z-index: 2; }
.epb-B-cell .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.epb-B-cell .epb-card__cat,
.epb-B-mosaic__hero .epb-card__cat { color: var(--accent-text); margin-bottom: 8px; }
.epb-B-mosaic__hero h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: #fff;
  max-width: 90%;
}
.epb-B-cell h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #fff;
}
.epb-B-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.epb-B-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.epb-B-grid .epb-card__media { aspect-ratio: 4/3; }
.epb-B-grid .epb-card__title { font-size: 17px; }

/* Variation C — release feed */
.epb-C-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -56px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.epb-C-toolbar__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.epb-C-sort {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-3);
}
.epb-C-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.epb-C-row {
  display: grid;
  grid-template-columns: 110px 1fr 200px;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.epb-C-row:last-child { border-bottom: 0; }
.epb-C-row:hover { background: var(--bg-subtle); }
.epb-C-row__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.epb-C-row__date .day {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-corporate);
  color: var(--hepta-navy-deep);
  line-height: 1;
  letter-spacing: -0.03em;
}
.epb-C-row__body { display: flex; flex-direction: column; gap: 8px; }
.epb-C-row__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.epb-C-row__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-muted);
  color: var(--fg-1);
  padding: 4px 8px;
  border-radius: 4px;
}
.epb-C-row__tag--release { background: rgba(51,204,204,0.12); color: var(--hepta-navy-deep); }
.epb-C-row__tag--module {
  background: var(--hepta-navy-deep);
  color: #fff;
}
.epb-C-row__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hepta-navy-deep);
  margin: 0;
  letter-spacing: -0.01em;
}
.epb-C-row__excerpt {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}
.epb-C-row__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-3);
  text-align: right;
  align-items: flex-end;
}
.epb-C-row__meta .arrow {
  color: var(--hepta-cyan);
  margin-top: 4px;
}

/* Hero variants per layout */
.epb-hero--A {
  padding: 56px 32px 120px;
}
.epb-hero--B {
  background: #fff;
  color: var(--hepta-navy-deep);
  padding: 64px 32px 32px;
}
.epb-hero--B::before { display: none; }
.epb-hero--B .epb-hero__eyebrow { color: var(--hepta-cyan); }
.epb-hero--B h1 {
  color: var(--hepta-navy-deep);
  font-size: 56px;
}
.epb-hero--B h1 em {
  font-family: var(--font-handwrite);
  font-style: normal;
  color: var(--hepta-cyan);
  font-weight: 400;
  letter-spacing: 0;
}
.epb-hero--B p { color: var(--fg-2); }
.epb-hero--C {
  padding: 48px 32px 96px;
}

/* ---------- CATEGORY page ---------- */
.epb-cat-hero {
  padding: 56px 32px 40px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.epb-cat-hero__inner {
  max-width: 1216px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  justify-content: space-between;
}
.epb-cat-hero__crumb {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.epb-cat-hero__crumb a { color: var(--fg-2); text-decoration: none; }
.epb-cat-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hepta-navy-deep);
  margin: 0 0 8px;
}
.epb-cat-hero h1 .tag {
  display: inline-block;
  background: var(--hepta-cyan);
  color: var(--hepta-navy-deep);
  padding: 0 12px;
  border-radius: 10px;
  margin-right: 4px;
}
.epb-cat-hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--fg-2);
  margin: 0;
  max-width: 600px;
}
.epb-cat-hero__count {
  font-size: 14px;
  color: var(--fg-3);
  text-align: right;
  white-space: nowrap;
}
.epb-cat-hero__count strong {
  font-size: 36px;
  font-weight: 800;
  color: var(--hepta-navy-deep);
  display: block;
  letter-spacing: -0.02em;
}
.epb-cat-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0 0;
}

/* ---------- SEARCH page ---------- */
.epb-search-hero {
  padding: 64px 32px 32px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.epb-search-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.epb-search-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--hepta-navy-deep);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.epb-search-big {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 28px;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.epb-search-big input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  flex: 1;
  font-size: 18px;
  color: var(--fg-1);
}
.epb-search-big__btn {
  background: var(--hepta-cyan);
  color: var(--hepta-navy-deep);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.epb-search-meta {
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 18px;
}
.epb-search-meta strong { color: var(--hepta-navy-deep); font-weight: 700; }
.epb-search-results {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 32px 0;
}
.epb-search-result {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
}
.epb-search-result__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.epb-search-result__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--hepta-navy-deep);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.epb-search-result__title mark {
  background: rgba(51,204,204,0.25);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.epb-search-result__excerpt {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0 0 8px;
}
.epb-search-result__excerpt mark {
  background: rgba(51,204,204,0.25);
  color: var(--fg-1);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
}
.epb-search-result__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

/* Pagination */
.epb-pag {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 56px 0 24px;
}
.epb-pag a, .epb-pag span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 0 14px;
}
.epb-pag a:hover { border-color: var(--hepta-cyan); color: var(--hepta-cyan); }
.epb-pag .epb-pag__active {
  background: var(--hepta-navy-deep);
  color: #fff;
  border-color: var(--hepta-navy-deep);
}

/* misc utility */
.epb-cardgrid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }


/* ====== Joomla-specific additions ====== */

/* ==========================================================================
   EasyPresta Blog — Joomla template additions (appended to blog component CSS)
   These rules are specific to the Joomla rendering (com_content, com_finder,
   module chromes, system messages) and override or extend the base styles.
   ========================================================================== */

/* ---------- Skip link + a11y ---------- */
.epb-skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--hepta-navy-deep);
  color: #fff;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.epb-skiplink:focus { left: 0; }
.epb-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Body shell ---------- */
.epb-site {
  margin: 0;
  font-family: var(--font-corporate);
  background: var(--bg-page);
  color: var(--fg-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.epb-site .epb-main { flex: 1 0 auto; padding: 32px 0 64px; }
.epb-sticky .epb-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(8px); background: rgba(255,255,255,0.92); }

/* ---------- Header (Joomla) ---------- */
.epb-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 220px;
}
.epb-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--fg-1);
  cursor: pointer;
}
.epb-header__inner { max-width: 1216px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; gap: 32px; }
.epb-header__inner > .epb-search-wrap { margin-left: auto; }
.epb-search-wrap { width: 280px; }

/* Joomla menu module — make standard <ul> render like our nav
   Important: scope flex to DIRECT children only, otherwise nested <ul>
   submenus render inline as siblings, looking like duplicated items. */
.epb-nav > ul,
.epb-nav > .mod-menu,
.epb-nav > .nav,
.epb-nav > ul.mod-menu,
.epb-nav > div > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.epb-nav > ul > li,
.epb-nav > .mod-menu > li,
.epb-nav > div > ul > li {
  display: inline-flex;
  position: relative;
}
/* Hide deep submenus — show on hover as dropdown */
.epb-nav ul ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 60;
}
.epb-nav > ul > li:hover > ul,
.epb-nav > ul > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.epb-nav ul ul li { display: block; }
.epb-nav ul ul a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
  white-space: nowrap;
}
.epb-nav ul ul a::after { display: none !important; }
.epb-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.epb-nav a:hover { color: var(--accent-text); }
.epb-nav .current > a,
.epb-nav .active > a,
.epb-nav a.active { color: var(--accent-text); }
.epb-nav .current > a::after,
.epb-nav .active > a::after,
.epb-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -23px;
  height: 2px;
  background: var(--hepta-cyan);
}

/* ---------- Breadcrumb (com_breadcrumb / mod_breadcrumbs) ---------- */
.epb-breadcrumb-wrap {
  padding: 16px 0 0;
  border-bottom: 1px solid transparent;
}
.epb-breadcrumb-wrap .breadcrumb,
.epb-breadcrumb-wrap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-3);
}
.epb-breadcrumb-wrap li::after {
  content: '›';
  margin-left: 6px;
  color: var(--fg-3);
}
.epb-breadcrumb-wrap li:last-child::after { content: none; }
.epb-breadcrumb-wrap a {
  color: var(--fg-2);
  text-decoration: none;
}
.epb-breadcrumb-wrap a:hover { color: var(--hepta-cyan); }

/* ---------- Main + Sidebar layout ---------- */
.epb-container { max-width: 1216px; margin: 0 auto; padding: 0 32px; }
.epb-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.epb-grid--with-side {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

/* ---------- com_content article view (defaults) ---------- */
.epb-content article,
.epb-content .com-content-article {
  background: transparent;
}
.epb-content .article-header,
.epb-content .page-header {
  margin-bottom: 28px;
}
.epb-content h1, .epb-content .page-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hepta-navy-deep);
  margin: 0 0 16px;
}
.epb-content .article-info,
.epb-content .article-info-term {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--fg-3);
  list-style: none;
}
.epb-content .article-info dd { margin: 0; }
.epb-content .article-info .icon-user::before { content: '👤 '; }
.epb-content .article-info .category-name a { color: var(--accent-text); font-weight: 600; text-decoration: none; }

.epb-content .item-image img,
.epb-content .item-image,
.epb-content figure.image {
  display: block;
  width: 100%;
  border-radius: 14px;
  margin: 0 0 28px;
  overflow: hidden;
}

.epb-content .article-fulltext,
.epb-content .com-content-article__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
}
.epb-content .article-fulltext h2,
.epb-content .com-content-article__body h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--hepta-navy-deep);
  margin: 40px 0 16px;
}
.epb-content .article-fulltext h3,
.epb-content .com-content-article__body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--hepta-navy-deep);
  margin: 28px 0 12px;
}
.epb-content .article-fulltext p { margin: 0 0 18px; }
.epb-content .article-fulltext a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* Code highlight inside articles */
.epb-content pre, .epb-content code, .epb-content kbd {
  font-family: var(--font-mono);
}
.epb-content code {
  font-size: 14px;
  background: var(--bg-muted);
  color: var(--hepta-navy-deep);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
}
.epb-content pre {
  background: var(--hepta-navy-deep);
  color: #E6EDF6;
  padding: 22px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 22px 0 28px;
}
.epb-content pre code { background: transparent; padding: 0; color: inherit; font-weight: 400; }

/* Blockquote / callout */
.epb-content blockquote {
  background: rgba(51,204,204,0.07);
  border: 1px solid rgba(51,204,204,0.25);
  border-left: 3px solid var(--hepta-cyan);
  border-radius: 12px;
  padding: 16px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
}
.epb-content blockquote p:last-child { margin-bottom: 0; }

/* com_content category blog/list view → cards */
.epb-content .com-content-category-blog__items,
.epb-content .blog-items,
.epb-content .items-leading,
.epb-content .items-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.epb-content .com-content-category-blog__item,
.epb-content .blog-item,
.epb-content .item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.epb-content .com-content-category-blog__item:hover,
.epb-content .blog-item:hover,
.epb-content .item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.epb-content .blog-item .item-image,
.epb-content .item .item-image {
  aspect-ratio: 16/10;
  margin: 0;
  background: var(--hepta-mist);
  border-radius: 0;
}
.epb-content .blog-item .item-image img,
.epb-content .item .item-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}
.epb-content .blog-item .page-header,
.epb-content .item .page-header,
.epb-content .blog-item .item-content,
.epb-content .item .item-content {
  padding: 20px 22px 24px;
  margin: 0;
}
.epb-content .blog-item h2,
.epb-content .blog-item h3,
.epb-content .item h2,
.epb-content .item h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 10px;
}
.epb-content .blog-item h2 a,
.epb-content .blog-item h3 a,
.epb-content .item h2 a,
.epb-content .item h3 a {
  color: inherit;
  text-decoration: none;
}
.epb-content .blog-item h2 a:hover, .epb-content .item h2 a:hover { color: var(--accent-text); }
.epb-content .blog-item p,
.epb-content .item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 10px;
}
.epb-content .readmore { margin-top: auto; padding-top: 8px; }
.epb-content .readmore a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}
.epb-content .readmore a::after { content: '→'; }

/* Joomla pagination */
.epb-content .pagination,
.epb-content .com-content-category-blog__pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
  list-style: none;
  margin: 0;
}
.epb-content .pagination li > a,
.epb-content .pagination li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 0 14px;
}
.epb-content .pagination li > a:hover { border-color: var(--hepta-cyan); color: var(--hepta-cyan); }
.epb-content .pagination li.active > a,
.epb-content .pagination li.active > span {
  background: var(--hepta-navy-deep);
  color: #fff;
  border-color: var(--hepta-navy-deep);
}
.epb-content .pagination li.disabled > a,
.epb-content .pagination li.disabled > span {
  opacity: 0.4;
  pointer-events: none;
}

/* com_finder / com_search */
.epb-content .com-finder,
.epb-content .com-search {
  max-width: 880px;
  margin: 0 auto;
}
.epb-content .com-finder__form,
.epb-content .com-search__form {
  display: flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 22px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.epb-content .com-finder__form input[type="text"],
.epb-content .com-finder__form input[type="search"] {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--fg-1);
}
.epb-content .com-finder__form button,
.epb-content .com-search__form button {
  background: var(--hepta-cyan);
  color: var(--hepta-navy-deep);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.epb-content .com-finder__results,
.epb-content .search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.epb-content .com-finder__results > li,
.epb-content .search-results > li,
.epb-content .result-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.epb-content .com-finder__results h3,
.epb-content .result-title,
.epb-content .search-results h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--hepta-navy-deep);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.epb-content .result-title a,
.epb-content .com-finder__results h3 a { color: inherit; text-decoration: none; }
.epb-content .result-title a:hover { color: var(--accent-text); }
.epb-content .highlight,
.epb-content .com-finder__results mark { background: rgba(51,204,204,0.25); padding: 0 2px; border-radius: 3px; }

/* ---------- Module chromes (html/modules.php) ---------- */
.epb-card-wrap, .moduletable-epb-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}
.epb-card-wrap > h3, .moduletable-epb-card > h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hepta-navy-deep);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Sidebar widget chrome (style="epb-widget") */
.moduletable-epb-widget,
.epb-sidebar .epb-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 24px;
  margin-bottom: 24px;
}
.moduletable-epb-widget > h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hepta-navy-deep);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.moduletable-epb-widget ul,
.epb-sidebar ul.mod-articlescategory {
  list-style: none;
  padding: 0;
  margin: 0;
}
.moduletable-epb-widget li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.moduletable-epb-widget li:last-child { border-bottom: 0; }
.moduletable-epb-widget a {
  color: var(--fg-1);
  text-decoration: none;
  font-weight: 500;
}
.moduletable-epb-widget a:hover { color: var(--accent-text); }

/* Footer module chrome */
.moduletable-epb-footer { color: rgba(255,255,255,0.75); }
.moduletable-epb-footer > h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hepta-cyan);
  margin: 0 0 16px;
}
.moduletable-epb-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.moduletable-epb-footer a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.moduletable-epb-footer a:hover { color: #fff; }

/* ---------- Footer grid columns by count ---------- */
.epb-footer__grid[data-cols="1"] { grid-template-columns: 1fr; }
.epb-footer__grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.epb-footer__grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.epb-footer__grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

/* ---------- System messages ---------- */
#system-message-container {
  position: fixed;
  top: 80px; right: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 360px;
  max-width: calc(100vw - 48px);
}
.alert, .alert-message {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  color: var(--fg-1);
}
.alert.alert-success { border-left: 3px solid var(--status-success); }
.alert.alert-error,
.alert.alert-danger  { border-left: 3px solid var(--status-danger); }
.alert.alert-warning { border-left: 3px solid var(--status-warning); }
.alert.alert-info    { border-left: 3px solid var(--hepta-cyan); }

/* ---------- Forms (Joomla shared) ---------- */
.epb-content input[type="text"],
.epb-content input[type="email"],
.epb-content input[type="url"],
.epb-content input[type="search"],
.epb-content input[type="password"],
.epb-content select,
.epb-content textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.epb-content input:focus,
.epb-content select:focus,
.epb-content textarea:focus {
  border-color: var(--hepta-cyan);
  box-shadow: var(--focus-ring);
}
.epb-content button,
.epb-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.epb-content .btn-primary,
.epb-content button[type="submit"] {
  background: var(--hepta-cyan);
  color: var(--hepta-navy-deep);
  border-color: var(--hepta-cyan);
  box-shadow: var(--shadow-cyan);
}

/* ---------- Error page ---------- */
.epb-errorpage { min-height: 100vh; }
.epb-error {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
}
.epb-error__inner {
  max-width: 560px;
}
.epb-error__code {
  font-family: var(--font-corporate);
  font-weight: 900;
  font-size: 140px;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--hepta-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.epb-error__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hepta-navy-deep);
  margin: 0 0 12px;
}
.epb-error__lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
}
.epb-error__details {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 28px;
  text-align: left;
  font-size: 13px;
}
.epb-error__details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fg-2);
}
.epb-error__details pre {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg-1);
}
.epb-error__actions {
  display: inline-flex;
  gap: 12px;
}

/* ---------- Offline page ---------- */
.epb-offlinepage { background: var(--bg-subtle); }
.epb-offline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
}
.epb-offline__inner {
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.epb-offline__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(242,169,59,0.12);
  color: #B07726;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.epb-offline__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hepta-navy-deep);
  margin: 0 0 10px;
}
.epb-offline__lead {
  font-size: 15px;
  color: var(--fg-2);
  margin: 0 0 24px;
  line-height: 1.55;
}
.epb-offline__image {
  max-width: 200px;
  margin: 0 auto 24px;
  display: block;
}
.epb-offline__form .control-group {
  text-align: left;
  margin-bottom: 12px;
}
.epb-offline__form input { width: 100%; }
.epb-offline__form .form-actions { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .epb-grid--with-side {
    grid-template-columns: 1fr;
  }
  .epb-hero h1 { font-size: 36px; }
  .epb-A-featured { grid-template-columns: 1fr; margin-top: -48px; }
  .epb-A-grid, .epb-cardgrid-3 { grid-template-columns: repeat(2, 1fr); }
  .epb-B-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .epb-B-mosaic__hero { grid-column: 1 / -1; height: 320px; }
  .epb-B-grid { grid-template-columns: repeat(2, 1fr); }
  .epb-C-row { grid-template-columns: 80px 1fr; }
  .epb-C-row__meta { display: none; }
  .epb-footer__grid[data-cols="3"],
  .epb-footer__grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .epb-header__inner { padding: 16px 20px; gap: 16px; }
  .epb-nav, .epb-search, .epb-search-wrap { display: none; }
  .epb-menu-toggle { display: inline-flex; margin-left: auto; }
  .epb-topbar__right { display: none; }
  .epb-hero { padding: 40px 20px 72px; }
  .epb-hero h1 { font-size: 28px; }
  .epb-cat-hero h1 { font-size: 32px; }
  .epb-article h1 { font-size: 32px; }
  .epb-container { padding: 0 20px; }
  .epb-A-grid, .epb-cardgrid-3, .epb-B-grid { grid-template-columns: 1fr; }
  .epb-B-mosaic { grid-template-columns: 1fr; }
  .epb-mod-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .epb-footer__grid[data-cols="2"],
  .epb-footer__grid[data-cols="3"],
  .epb-footer__grid[data-cols="4"] { grid-template-columns: 1fr; gap: 28px; }
  .epb-footer { padding: 48px 20px 24px; }
  .epb-error__code { font-size: 96px; }
  .epb-error__title { font-size: 24px; }
}

/* ---------- Layout variant utility hooks ---------- */
.epb-layout-magazine .epb-content .com-content-category-blog__items { grid-template-columns: repeat(4, 1fr); }
.epb-layout-feed .epb-content .com-content-category-blog__items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.epb-layout-feed .epb-content .com-content-category-blog__item {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
}
.epb-layout-feed .epb-content .com-content-category-blog__item:last-child { border-bottom: 0; }
.epb-layout-feed .epb-content .blog-item .item-image,
.epb-layout-feed .epb-content .item .item-image {
  width: 160px;
  height: 110px;
  flex: 0 0 160px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: auto;
}
.epb-layout-feed .epb-content .blog-item .page-header,
.epb-layout-feed .epb-content .item .page-header,
.epb-layout-feed .epb-content .blog-item .item-content,
.epb-layout-feed .epb-content .item .item-content { padding: 0; flex: 1; }
