/*
Theme Name: EPEA Custom Theme
Theme URI: https://example.com/themes/epea
Author: EPEA
Author URI: https://example.com
Description: Custom WordPress theme for EPEA built on Bootstrap 5.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epea
Tags: bootstrap, custom
*/

:root {
  --epea-primary: #111;
  --epea-secondary: #d52f2f;
  --epea-neutral: #f3f1ec;
  --epea-line: #1a1a1a;
  --epea-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --epea-font-serif: "Caladea", "Times New Roman", serif;
  --epea-font-display: "Climate Crisis", "Caladea", serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--epea-font-sans);
  background-color: #fff;
  color: var(--epea-primary);
  letter-spacing: 0.02em;
}

body.epea-contrast {
  background-color: #111;
  color: #f5f5f5;
}

body.epea-contrast a {
  color: #f5f5f5;
}

body.epea-contrast .epea-logo,
body.epea-contrast .epea-icon-button:hover,
body.epea-contrast .epea-icon-button:focus,
body.epea-contrast .epea-button {
  background-color: #f5f5f5;
  color: #111;
}

body.epea-contrast .site-footer,
body.epea-contrast .epea-issue__cover,
body.epea-contrast .epea-search-form__submit {
  background-color: #111;
  color: #f5f5f5;
}

body.epea-contrast .epea-header,
body.epea-contrast .epea-front__intro,
body.epea-contrast .epea-feature,
body.epea-contrast .epea-card,
body.epea-contrast .epea-front__sidebar,
body.epea-contrast .epea-archive,
body.epea-contrast .epea-post,
body.epea-contrast .epea-page,
body.epea-contrast .epea-empty,
body.epea-contrast .epea-single,
body.epea-contrast .epea-comments,
body.epea-contrast .widget-area .widget,
body.epea-contrast .site-footer__row,
body.epea-contrast .site-footer,
body.epea-contrast .site-footer__rules,
body.epea-contrast .epea-issue__cover,
body.epea-contrast .epea-search-form__field,
body.epea-contrast .epea-search-form__submit,
body.epea-contrast .epea-post__media img,
body.epea-contrast .epea-single__media img {
  border-color: #f5f5f5 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  opacity:0.8;
  text-decoration: underline;
}

.site-header,
.site-content,
.site-footer {
  position: relative;
}

.epea-header {
  padding: 1.25rem 0;
  position: relative;
  background: #fff;
}
#epea-header__e{
  text-align: center;
}
.epea-header__container {
  max-width: 1440px;
}

.epea-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.epea-logo {    width: 111px;
    height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.epea-logo:hover {
  opacity: calc(0.8);
}

.epea-logo__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.epea-logo img {
  max-width: 100%;
  height: auto;
}

.epea-logo__fallback {
  letter-spacing: 0.08em;
}

.epea-header__nav {
  display: flex;
    align-items: end;
}

.epea-menu {
  font-family: var(--epea-font-serif);
  width: 100%;
  border-bottom: 1px solid var(--epea-line);
}

.epea-menu__list {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.epea-menu__list > li {
  position: relative;
}

.epea-menu__list > li > a {
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  display: inline-block;
}

.epea-menu__list > li > a:hover,
.epea-menu__list > li > a:focus,
.epea-menu__list .current-menu-item > a,
.epea-menu__list .current-page-ancestor > a {
  border-bottom-color: var(--epea-line);
}

/* Submenu (Horizontal Dropdown) */
.epea-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 1rem 0;
  background-color: #fff;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
}

.menu-item-has-children:hover .epea-submenu,
.menu-item-has-children:focus-within .epea-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.epea-submenu li {
  padding: 0;
}

.epea-submenu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-submenu a:hover,
.epea-submenu a:focus,
.epea-submenu .current-menu-item > a {
  border-bottom-color: var(--epea-line);
}

/* Dark mode support for submenu */
body.epea-contrast .epea-submenu {
  background-color: #111;
  border-top-color: #f5f5f5;
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-submenu a {
  color: #f5f5f5;
}

body.epea-contrast .epea-submenu a:hover,
body.epea-contrast .epea-submenu a:focus,
body.epea-contrast .epea-submenu .current-menu-item > a {
  border-bottom-color: #f5f5f5;
}

.epea-header__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.epea-header__tagline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--epea-font-serif);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
  font-weight: 400;
  border-bottom: 1px solid var(--epea-line);
}

.epea-header__tagline-line {
  display: block;
}

.epea-actions {
  border-bottom:1px solid var(--epea-line);
  display: flex;
    align-items: flex-end;;
  justify-content: center;
  gap: 0.65rem;
  width:100%;
}

.epea-icon-button {
  background: none;
  border: none;
    margin-bottom: 3px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  color: var(--epea-primary);
}

.epea-icon-button:hover,
.epea-icon-button:focus {
  opacity: 0.6;
}

.epea-icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.epea-icon-button__image {
    width: 24px;
    height: 24px;
  display: block;
}

.epea-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.epea-search:not([hidden]) {
  visibility: visible;
}

.epea-search--visible {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.98);
}

.epea-search .search-form {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.epea-search--visible .search-form {
  transform: scale(1);
}

.epea-search .search-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.epea-search .form-control {
  border: 1px solid var(--epea-line);
  border-radius: 0;
}

.epea-search .btn {
  border-radius: 0;
  background-color: var(--epea-primary);
  border: 1px solid var(--epea-primary);
  color: #fff;
}

.epea-search-form__controls {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

.epea-search-form__field {
  flex: 1;
  border: 2px solid var(--epea-line);
  padding: 1.5rem 1.5rem;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-family: var(--epea-font-serif);
}

.epea-search-form__field:focus {
  outline: none;
  border-color: var(--epea-primary);
}

.epea-search-form__submit {
  width: 80px;
  border: 2px solid var(--epea-line);
  background-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.epea-search-form__submit svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.epea-search-form__submit:hover,
.epea-search-form__submit:focus {
  background-color: var(--epea-primary);
  border-color: var(--epea-primary);
  color: #fff;
}

.epea-search__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--epea-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.epea-search__close:hover,
.epea-search__close:focus {
  transform: rotate(90deg);
}

/* Dark mode support for fullscreen search */
body.epea-contrast .epea-search {
  background-color: rgba(17, 17, 17, 0);
}

body.epea-contrast .epea-search--visible {
  background-color: rgba(17, 17, 17, 0.98);
}

body.epea-contrast .epea-search-form__field {
  background-color: #111;
  border-color: #f5f5f5;
  color: #f5f5f5;
}

body.epea-contrast .epea-search-form__submit {
  background-color: #111;
  border-color: #f5f5f5;
  color: #f5f5f5;
}

body.epea-contrast .epea-search-form__submit:hover,
body.epea-contrast .epea-search-form__submit:focus {
  background-color: #f5f5f5;
  color: #111;
}

body.epea-contrast .epea-search__close {
  color: #f5f5f5;
}

/* Hamburger Menu Styles */
.epea-hamburger {
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  margin-left: auto;
}

.epea-hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--epea-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.epea-hamburger[aria-expanded="true"] .epea-hamburger__line:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.epea-hamburger[aria-expanded="true"] .epea-hamburger__line:nth-child(2) {
  opacity: 0;
}

.epea-hamburger[aria-expanded="true"] .epea-hamburger__line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.epea-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.epea-mobile-menu:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.epea-mobile-menu__nav {
  width: 100%;
  padding: 0;
  margin-top: 80px;
}

.epea-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  padding: 0;
  margin: 0;
}

.epea-mobile-menu__list li {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid var(--epea-line);
}

.epea-mobile-menu__list a {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--epea-primary);
  text-decoration: none;
  padding: 1.25rem 1.5rem;
  display: block;
  width: 100%;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.epea-mobile-menu__list a:hover,
.epea-mobile-menu__list a:focus {
  background-color: rgba(91, 44, 145, 0.05);
  padding-left: 2rem;
}

.epea-mobile-menu__list .current-menu-item > a {
  background-color: rgba(91, 44, 145, 0.08);
  font-weight: 600;
}

.epea-main {
  max-width: 1440px;
  margin: 0 auto;
}

.epea-title {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: fit-content;
}

.epea-title__text {
  font-size:1.125rem;
  font-family: var(--epea-font-sans);
  font-weight: 400;
  color: var(--epea-primary);
  white-space: nowrap;
}

/* Dark mode support */
body.epea-contrast .epea-title__text {
  color: #f5f5f5;
}

.epea-front {
  margin-top: 3rem;
}
.epea-front__intro {
  border-bottom: 2px solid var(--epea-line);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.epea-front__title {
  font-family: var(--epea-font-serif);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 1rem;
}

.epea-front__lead {
  max-width: 48ch;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.75);
}

.epea-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--epea-line);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.epea-feature__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--epea-line);
}

.epea-feature__title {
  font-family: var(--epea-font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.epea-feature__title a {
  border-bottom: 1px solid transparent;
}

.epea-feature__title a:hover,
.epea-feature__title a:focus {
  border-color: var(--epea-line);
}

.epea-feature__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.epea-feature__cta {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 2px solid var(--epea-line);
  padding-bottom: 0.25rem;
}


.epea-card {
  border-top: 6px solid var(--epea-line);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  margin-bottom:3rem;
}

.epea-card__title {
  font-family: var(--epea-font-sans);
  font-size: 1.375rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  font-weight: 700;
  padding-top: 1rem;
  padding-bottom:0.5rem;
}

.epea-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}


.epea-card__excerpt {
  font-family: var(--epea-font-serif);
  color: rgba(0, 0, 0, 0.75);
  margin-top: 2rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  white-space: pre-line; /* Preserve line breaks for poetry */
}

.epea-card__excerpt p {
  margin-bottom: 0.5rem;
}

.epea-card__excerpt p:last-child {
  margin-bottom: 0;
}

.epea-card__meta {
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: auto;
}

.epea-card__category {
  border-bottom: 1px solid var(--epea-line);
  font-family: var(--epea-font-serif);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

.epea-card__category a {
  font-family: var(--epea-font-serif);
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-card__category a:hover,
.epea-card__category a:focus {
  border-bottom-color: var(--epea-line);
}

.epea-card__author {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--epea-line);
  font-family: var(--epea-font-serif);
}
.epea-card__author p {
  margin: 0;
}
.epea-front__sidebar .epea-issue {
  border-top: 6px solid var(--epea-line);
}

/* Letter A column */
#epea-header__a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 50vh;
}

.epea-header__e-image {
  max-width: 100%;
  height: auto; 
}

.epea-issue {
  display: flex;
  flex-direction: column;
    align-items: flex-start;

  gap: 1rem;
  text-align: center;
}

.epea-issue__title {
  font-family: var(--epea-font-serif);
  padding-top: 0.5rem;
    padding-bottom: 0.0;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.epea-issue__number {
  font-family: var(--epea-font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.8);
}

.epea-issue__cover {
  box-shadow: rgb(177, 177, 175) 0px 4px 6px 2px, rgb(177, 177, 175) 0px 2px 4px -1px;
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.epea-issue__cover a{
  text-align: left;
}
.epea-issue__placeholder {
  font-family: var(--epea-font-serif);
  font-size: 3rem;
  letter-spacing: 0.2em;
}

.epea-issue__link {
  font-family: var(--epea-font-serif);
  width: 100%;
  border-bottom: 1px solid var(--epea-line);
  border-top: 1px solid var(--epea-line);
  
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.epea-front__empty {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.55);
}

.epea-layout,
.epea-archive {
  border-top: 1px solid var(--epea-line);
  padding-top: 3rem;
}

.epea-archive__main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.epea-archive__sidebar {
  padding-left: 1.5rem;
}

.epea-post {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--epea-line);
  padding-top: 2rem;
}

.epea-post__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--epea-line);
}

.epea-post__title {
  font-family: var(--epea-font-serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.epea-post__title a {
  border-bottom: 1px solid transparent;
}

.epea-post__title a:hover,
.epea-post__title a:focus {
  border-color: var(--epea-line);
}

.epea-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.6);
}

.epea-meta__item a {
  border-bottom: 1px solid transparent;
}

.epea-meta__item a:hover,
.epea-meta__item a:focus {
  border-color: var(--epea-line);
}

.epea-meta__label {
  margin-right: 0.25rem;
}

.epea-post__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
}

.epea-post__readmore {
  align-self: start;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 2px solid var(--epea-line);
  padding-bottom: 0.25rem;
}

.epea-page {
  display: grid;
  gap: 2rem;
}


.epea-single__title,
.epea-page__header h1 {
  font-weight: 700;
}

.epea-page__rule {
  height: 3px;
  width: 120px;
  background-color: var(--epea-line);
  margin: 1.5rem auto 0;
}
.epea-page__title {
  font-family: var(--epea-font-serif);
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.epea-page__content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.epea-empty {
  border-top: 1px solid var(--epea-line);
  padding: 4rem 0;
  text-align: center;
}

.epea-empty__title {
  font-family: var(--epea-font-serif);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.epea-empty__text {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 2rem;
}

.epea-empty__search {
  max-width: 420px;
  margin: 0 auto;
}

.epea-pagination {
  margin-bottom: 2rem;
}

.epea-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.epea-pagination .page-numbers li {
  display: inline-block;
}

.epea-pagination a,
.epea-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0.5rem;
  border: 1px solid var(--epea-line);
  text-decoration: none;
  color: var(--epea-primary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.epea-pagination a:hover,
.epea-pagination a:focus {
  background-color: var(--epea-primary);
  color: white;
  border-color: var(--epea-primary);
}

.epea-pagination .current {
  background-color: var(--epea-primary);
  color: white;
  border-color: var(--epea-primary);
}

.epea-pagination .dots {
  border: none;
  min-width: auto;
}

.epea-pagination .prev,
.epea-pagination .next {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Dark mode support */
body.epea-contrast .epea-pagination {
  border-top-color: #f5f5f5;
}

body.epea-contrast .epea-pagination a,
body.epea-contrast .epea-pagination span {
  border-color: #f5f5f5;
  color: #f5f5f5;
}

body.epea-contrast .epea-pagination a:hover,
body.epea-contrast .epea-pagination a:focus {
  background-color: #f5f5f5;
  color: #111;
}

body.epea-contrast .epea-pagination .current {
  background-color: #f5f5f5;
  color: #111;
}

.epea-single {
  border-top: 1px solid var(--epea-line);
  padding-top: 3rem;
  display: grid;
  gap: 1rem;
}

.epea-single__label{
font-family: var(--epea-font-serif);
    border-top: 6px solid var(--epea-line);
    border-bottom: 1px solid var(--epea-line);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    min-height: 30px;
  font-weight: 400;
    align-items: center;
}

.epea-single__header {
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.epea-single__numer {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--epea-primary);
  font-family: var(--epea-font-sans);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
}

.epea-single__numer-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.epea-single__numer-link {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-single__numer-link:hover {
  border-bottom-color: var(--epea-primary);
}

body.epea-contrast .epea-single__numer {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #f5f5f5;
}

body.epea-contrast .epea-single__numer-label {
  color: rgba(255, 255, 255, 0.7);
}

body.epea-contrast .epea-single__numer-link {
  color: #f5f5f5;
}

@media (min-width: 992px) {
 
}

.epea-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.6);
}

.epea-single__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--epea-line);
}

.epea-single__content {
  font-family: var(--epea-font-serif);
  font-size: 0.875rem;
}

.epea-single__footer {
  border-top: 1px solid var(--epea-line);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.epea-single__wrap {
  max-width: 820px;
  margin: 0 auto;
}

.epea-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.epea-single__tags a {
  border: 1px solid var(--epea-line);
  padding: 0.25rem 0.75rem;
}

.epea-single__nav .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.epea-single__nav a {
  border-bottom: 1px solid transparent;
}

.epea-single__nav a:hover,
.epea-single__nav a:focus {
  border-color: var(--epea-line);
}

.epea-comments {
  border-top: 1px solid var(--epea-line);
  margin-top: 3rem;
  padding-top: 3rem;
}

.epea-comments__title {
  font-family: var(--epea-font-serif);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 2rem;
}

.epea-comments__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.epea-comments__list .comment {
  border-top: 1px solid var(--epea-line);
  padding-top: 1.5rem;
}

.epea-comments__pagination {
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.epea-comments__closed {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.55);
}

.epea-button {
  display: inline-block;
  background-color: var(--epea-primary);
  color: #fff;
  border: 1px solid var(--epea-primary);
  padding: 0.65rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.epea-button:hover,
.epea-button:focus {
  background-color: #fff;
  color: var(--epea-primary);
}

.widget-area .widget {
  padding-top: 2rem;
  border-top: 1px solid var(--epea-line);
}

.widget-area .widget ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.widget-area .widget a {
  border-bottom: 1px solid transparent;
}

.widget-area .widget a:hover,
.widget-area .widget a:focus {
  border-color: var(--epea-line);
}

@media (max-width: 991px) {
  .epea-layout,
  .epea-archive {
    grid-template-columns: 1fr;
  }

  .epea-archive__sidebar {
    border-left: none;
    padding-left: 0;
  }

  .epea-post__title {
    letter-spacing: 0.15em;
  }

  .epea-single__title {
  }

  .site-footer__menu {
    text-align: left;
    margin-top: 2rem;
  }

  .site-footer__menu-list {
    letter-spacing: 0.2em;
  }

  .site-footer__credits {
    text-align: left;
    letter-spacing: 0.25em;
    
  }

  .epea-header__tagline {
    align-items: flex-start;
    letter-spacing: 0.22em;
    margin-top: 0;
  }
}
.site-footer {
  margin-top: 2rem;
}

.site-footer .container {
  max-width: 1440px;
}


.site-footer__publisher {
  text-align: left;
  font-weight: 700;
    border-bottom: 1px solid var(--epea-line);
    padding-bottom: 1.125rem;
}

.site-hr {
  opacity: 1;
    height: 1px;
    color: var(--epea-line);
    background-color: var(--epea-line);
    border: none;
}

.site-hr--thick {
  height: 6px;
}

.site-footer__rules {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.site-footer__rule {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--epea-line);
}

.site-footer__rule--short {
  width: 65%;
}

.site-footer__publisher-details {
  font-size: 1rem;
    font-family: var(--epea-font-serif);
  font-weight: 400;
}

.site-footer__menu {
  text-align: right;
}

.site-footer__menu-list {
  display: grid;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.site-footer__menu-list a {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

.site-footer__menu-list a:hover,
.site-footer__menu-list a:focus {
  border-color: var(--epea-line);
}

.site-footer__credits {
  font-size: 1rem;
    margin: 0 auto;
    font-family: var(--epea-font-serif);
}

.site-footer__credits span {
  display: inline-block;
  padding: 0.5rem 0;
}

.widget-area .widget {
  margin-bottom: 2rem;
}

.widget-area .widget-title {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .epea-header {
    padding: 1rem 0;
  }

  .epea-header__brand {
    justify-content: flex-start;
  }

  .epea-logo {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  /* Hide desktop navigation on mobile */
  .epea-header__nav .epea-menu,
  .epea-header__tagline {
    display: none !important;
  }

  /* Fixed actions on mobile */
  .epea-header__actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: #ffffff;
  }

  .epea-actions {
    border-bottom: none;
  }

  .epea-header__nav,
  .epea-front__sidebar {
    border-right: none;
    border-left: none;
  }

  .epea-feature {
    grid-template-columns: 1fr;
  }


  .site-footer__credits {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  /* Hide mobile menu elements on desktop */
  .epea-mobile-menu {
    display: none !important;
  }
  
  .epea-hamburger {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .epea-menu__list {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .epea-header__tagline {
    letter-spacing: 0.18em;
    font-size: 0.65rem;
  }

  .epea-front__title {
    letter-spacing: 0.22em;
  }

  .epea-front__sidebar {
    padding: 2rem 0;
  }

  .epea-icon-button {
    width: 24px;
    height: 24px;
  }
}

/* Author Section Styling */
.epea-single__author-section {
  border-top: 1px solid var(--epea-line);
  border-bottom: 1px solid var(--epea-line);
  padding: 2rem 0;
  margin: 2rem 0;
}

.epea-single__author-label {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.epea-single__author {
  margin-bottom: 2rem;
}

.epea-single__author:last-child {
  margin-bottom: 0;
}

.epea-single__author-name {
  font-family: var(--epea-font-serif);
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.epea-single__author-name a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-single__author-name a:hover,
.epea-single__author-name a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-single__author-photo {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 200px;
}

.epea-single__author-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--epea-line);
}

.epea-single__author-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
}

.epea-single__author-bio p {
  margin-bottom: 0.5rem;
}

.epea-single__author-bio p:last-child {
  margin-bottom: 0;
}

/* Dark mode support for author section */
body.epea-contrast .epea-single__author-section {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-single__author-photo img {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-single__author-bio {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .epea-single__author-photo {
    float: none;
    margin: 0 0 1rem 0;
    max-width: 150px;
  }
}

/* Author Single Page */
.epea-author-single {
  display: grid;
  gap: 3rem;
}

.epea-author-single__header {
  border-top: 1px solid var(--epea-line);
  padding-top: 3rem;
}

.epea-author-single__label {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.epea-author-single__title {
  font-family: var(--epea-font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  font-weight: 600;
}

.epea-author-single__content {
  max-width: 820px;
  margin: 0 auto;
}

.epea-author-single__photo {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 220px;
}

.epea-author-single__photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--epea-line);
}

.epea-author-single__bio {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
}

.epea-author-single__bio p {
  margin-bottom: 1rem;
}

.epea-author-single__bio p:last-child {
  margin-bottom: 0;
}

.epea-author-single__texts {
  border-top: 1px solid var(--epea-line);
  padding-top: 2.5rem;
}

.epea-author-single__texts-title {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.epea-author-single__texts-list {
  display: grid;
  gap: 2rem;
}

.epea-author-text {
  border-top: 1px solid var(--epea-line);
  padding-top: 1.5rem;
}

.epea-author-text__title {
  font-family: var(--epea-font-serif);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.epea-author-text__title a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-author-text__title a:hover,
.epea-author-text__title a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-author-text__category {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.epea-author-text__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

.epea-author-single__no-texts {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

/* Author header styles */
.epea-author-header {
  border-top: 6px solid var(--epea-line);
}

.epea-author-header__label {
  font-family: var(--epea-font-serif);
  border-bottom: 1px solid var(--epea-line);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  min-height: 30px;
  align-items: center;
}

.epea-author-header__title {
  font-size: 2.5rem;
  text-transform: none;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.epea-author-header__bio {
  font-size: 1rem;
  font-family: var(--epea-font-serif);
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 3rem;
}

.epea-author-header__bio p {
  margin-bottom: 1rem;
}

.epea-author-header__bio p:last-child {
  margin-bottom: 0;
}
.epea-issue__cover--author{
  box-shadow: none;
    flex-direction: column;
  margin-top:30px;
}

.epea-issue__cover--author__image img{
  @media (min-width: 991px){
    max-width: 50%;
  }
}

.epea-issue__cover--author .epea-image-credit{
  width: 100%;
}

.epea-single-author-card {
  margin-bottom: 2rem;
}

.epea-single-author-card .epea-issue__title {
  text-align: left;
}

.epea-single-author-card .epea-issue__title a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-single-author-card .epea-issue__title a:hover,
.epea-single-author-card .epea-issue__title a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-single-author-card .epea-issue__description {
  text-align: left;
  margin-top: 1rem;
  font-size: 0.75rem;
}

@media (min-width: 992px) {

}

/* Dark mode support for author pages */
body.epea-contrast .epea-author-single__header,
body.epea-contrast .epea-author-single__texts,
body.epea-contrast .epea-author-text {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-author-single__photo img {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-author-single__bio,
body.epea-contrast .epea-author-text__excerpt {
  color: rgba(255, 255, 255, 0.85);
}

body.epea-contrast .epea-author-text__category {
  color: rgba(255, 255, 255, 0.7);
}

body.epea-contrast .epea-single__author-name a,
body.epea-contrast .epea-author-text__title a {
  color: #f5f5f5;
}

body.epea-contrast .epea-single__author-name a:hover,
body.epea-contrast .epea-single__author-name a:focus,
body.epea-contrast .epea-author-text__title a:hover,
body.epea-contrast .epea-author-text__title a:focus {
  border-bottom-color: #f5f5f5;
}

@media (max-width: 768px) {
  .epea-author-single__photo {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 180px;
  }
  
  .epea-author-single__title {
    font-size: 1.75rem;
  }
  
  .epea-author-text__title {
    font-size: 1.25rem;
  }
}

/* Numer Single Page */
.epea-numer-single {
  display: grid;
  gap: 3rem;
}

.epea-numer-single__header {
  border-top: 1px solid var(--epea-line);
  padding-top: 3rem;
}

.epea-numer-single__label {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.epea-numer-single__title {
  font-family: var(--epea-font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  font-weight: 600;
}

.epea-numer-single__content {
  max-width: 820px;
  margin: 0 auto;
}

.epea-numer-single__cover {
  float: right;
  max-width: 280px;
}

.epea-numer-single__cover img {
  width: 100%;
  height: auto;
}

.epea-numer-single__description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
}

.epea-numer-single__description p {
  margin-bottom: 1rem;
}

.epea-numer-single__description p:last-child {
  margin-bottom: 0;
}

.epea-numer-single__posts {
  border-top: 1px solid var(--epea-line);
  padding-top: 2.5rem;
}

.epea-numer-single__posts-title {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.epea-numer-single__posts-list {
  display: grid;
  gap: 2rem;
}

.epea-numer-category-title{
  font-size: 1rem;
  font-family: var(--epea-font-serif);
  border-top: 6px solid var(--epea-line);
  padding-top: 0.5rem;
}
.epea-numer-post {
  border-top: 1px solid var(--epea-line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 992px) {
  .epea-numer-category-title,
  .epea-numer-post {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }
}

.epea-numer-post__title {
  font-family: var(--epea-font-serif);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  font-weight: 600;
}

.epea-numer-post__title a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-numer-post__title a:hover,
.epea-numer-post__title a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-numer-post__category {
  font-family: var(--epea-font-serif);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.epea-numer-post__authors {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: rgba(0, 0, 0, 0.75);
}

.epea-numer-post__authors a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-numer-post__authors a:hover,
.epea-numer-post__authors a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-numer-post__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

.epea-numer-single__no-posts {
  border-top: 1px solid var(--epea-line);
  padding-top: 2rem;
}

.epea-numer-single__no-posts p {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

/* Dark mode support for numer pages */
body.epea-contrast .epea-numer-single__header,
body.epea-contrast .epea-numer-single__posts,
body.epea-contrast .epea-numer-post,
body.epea-contrast .epea-numer-single__no-posts {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-numer-single__cover img {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-numer-single__description,
body.epea-contrast .epea-numer-post__excerpt,
body.epea-contrast .epea-numer-post__authors {
  color: rgba(255, 255, 255, 0.85);
}

body.epea-contrast .epea-numer-post__category {
  color: rgba(255, 255, 255, 0.7);
}

body.epea-contrast .epea-numer-post__title a,
body.epea-contrast .epea-numer-post__authors a {
  color: #f5f5f5;
}

body.epea-contrast .epea-numer-post__title a:hover,
body.epea-contrast .epea-numer-post__title a:focus,
body.epea-contrast .epea-numer-post__authors a:hover,
body.epea-contrast .epea-numer-post__authors a:focus {
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-numer-single__no-posts p {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .epea-numer-single__cover {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 220px;
  }
  
  .epea-numer-single__title {
    font-size: 1.75rem;
  }
  
  .epea-numer-post__title {
    font-size: 1.25rem;
  }
}

/* Category Posts Page */
.epea-category-posts {
  margin-top: 3rem;
}

.epea-category-posts__list {
  display: grid;
  gap: 2.5rem;
}

.epea-category-post {
  border-top: 1px solid var(--epea-line);
  padding-top: 2rem;
}

.epea-category-post__title {
  font-family: var(--epea-font-serif);
  font-size: 1.75rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.epea-category-post__title a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-category-post__title a:hover,
.epea-category-post__title a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-category-post__authors {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: rgba(0, 0, 0, 0.75);
}

.epea-category-post__authors a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.epea-category-post__authors a:hover,
.epea-category-post__authors a:focus {
  border-bottom-color: var(--epea-primary);
}

.epea-category-post__excerpt {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 0.75rem;
}

.epea-category-post__meta {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

.epea-category-posts__empty,
.epea-category-posts__error {
  text-align: center;
  padding: 3rem 0;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

/* Dark mode support for category pages */
body.epea-contrast .epea-category-post {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-category-post__title a {
  color: #f5f5f5;
}

body.epea-contrast .epea-category-post__title a:hover,
body.epea-contrast .epea-category-post__title a:focus {
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-category-post__authors,
body.epea-contrast .epea-category-post__excerpt {
  color: rgba(255, 255, 255, 0.85);
}

body.epea-contrast .epea-category-post__authors a {
  color: #f5f5f5;
}

body.epea-contrast .epea-category-post__authors a:hover,
body.epea-contrast .epea-category-post__authors a:focus {
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-category-post__meta {
  color: rgba(255, 255, 255, 0.7);
}

body.epea-contrast .epea-category-posts__empty,
body.epea-contrast .epea-category-posts__error {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .epea-category-post__title {
    font-size: 1.5rem;
  }
}

/* EPEA Logo Animation on Page Load */
.epea-logo-animation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.epea-logo-animation-overlay--visible {
  opacity: 1;
}

.epea-logo-animation-overlay--complete {
  opacity: 0;
  pointer-events: none;
}

.epea-logo-animation__letter {
  max-width: 120px;
  height: auto;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.epea-logo-animation__ep {
  order: 1;
}

.epea-logo-animation__e {
  order: 2;
  transform: scale(1.2);
}

.epea-logo-animation__a {
  order: 3;
  transform: scale(1.2);
}

/* Moving state - letters fly to their positions */
.epea-logo-animation-overlay--moving .epea-logo-animation__ep {
  position: fixed;
  top: 50%;
  left: calc((100vw / 12) * 0.5);
  transform: translate(-50%, -50%) scale(0.5);
}

.epea-logo-animation-overlay--moving .epea-logo-animation__e {
  position: fixed;
  top: 50%;
  right: calc((100vw / 12) * 0.5);
  transform: translate(50%, -50%) scale(0.5);
}

.epea-logo-animation-overlay--moving .epea-logo-animation__a {
  position: fixed;
  bottom: calc((100vh / 12) * 1);
  right: calc((100vw / 12) * 0.5);
  transform: translate(50%, 0) scale(0.5);
}

/* Dark mode support - no background needed */

/* Bootstrap Grid Visualization Helper */
.show-grid {
  position: relative;
}

.show-grid .container,
.show-grid .container-fluid {
  position: relative;
}

.show-grid .container::before,
.show-grid .container-fluid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.1) 8.33333333%, transparent 8.33333333%, transparent 16.66666667%, rgba(0, 123, 255, 0.1) 16.66666667%, rgba(0, 123, 255, 0.1) 25%, transparent 25%, transparent 33.33333333%, rgba(0, 123, 255, 0.1) 33.33333333%, rgba(0, 123, 255, 0.1) 41.66666667%, transparent 41.66666667%, transparent 50%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 123, 255, 0.1) 58.33333333%, transparent 58.33333333%, transparent 66.66666667%, rgba(0, 123, 255, 0.1) 66.66666667%, rgba(0, 123, 255, 0.1) 75%, transparent 75%, transparent 83.33333333%, rgba(0, 123, 255, 0.1) 83.33333333%, rgba(0, 123, 255, 0.1) 91.66666667%, transparent 91.66666667%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1000;
}

.show-grid .row {
  position: relative;
}

.show-grid .row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(220, 53, 69, 0.3) 0px,
    rgba(220, 53, 69, 0.3) 1px,
    transparent 1px,
    transparent calc(100% / 12)
  );
  pointer-events: none;
  z-index: 1001;
}

.show-grid [class*="col-"] {
  position: relative;
  min-height: 1rem;
}

.show-grid [class*="col-"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  bottom: 0;
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  pointer-events: none;
  z-index: 1002;
}

/* Grid lines for different breakpoints */
@media (min-width: 576px) {
  .show-grid-sm .container::before,
  .show-grid-sm .container-fluid::before {
    background-image: 
      linear-gradient(to right, rgba(0, 123, 255, 0.15) 0%, rgba(0, 123, 255, 0.15) 8.33333333%, transparent 8.33333333%, transparent 16.66666667%, rgba(0, 123, 255, 0.15) 16.66666667%, rgba(0, 123, 255, 0.15) 25%, transparent 25%, transparent 33.33333333%, rgba(0, 123, 255, 0.15) 33.33333333%, rgba(0, 123, 255, 0.15) 41.66666667%, transparent 41.66666667%, transparent 50%, rgba(0, 123, 255, 0.15) 50%, rgba(0, 123, 255, 0.15) 58.33333333%, transparent 58.33333333%, transparent 66.66666667%, rgba(0, 123, 255, 0.15) 66.66666667%, rgba(0, 123, 255, 0.15) 75%, transparent 75%, transparent 83.33333333%, rgba(0, 123, 255, 0.15) 83.33333333%, rgba(0, 123, 255, 0.15) 91.66666667%, transparent 91.66666667%);
  }
}

@media (min-width: 768px) {
  .show-grid-md .container::before,
  .show-grid-md .container-fluid::before {
    background-image: 
      linear-gradient(to right, rgba(0, 123, 255, 0.2) 0%, rgba(0, 123, 255, 0.2) 8.33333333%, transparent 8.33333333%, transparent 16.66666667%, rgba(0, 123, 255, 0.2) 16.66666667%, rgba(0, 123, 255, 0.2) 25%, transparent 25%, transparent 33.33333333%, rgba(0, 123, 255, 0.2) 33.33333333%, rgba(0, 123, 255, 0.2) 41.66666667%, transparent 41.66666667%, transparent 50%, rgba(0, 123, 255, 0.2) 50%, rgba(0, 123, 255, 0.2) 58.33333333%, transparent 58.33333333%, transparent 66.66666667%, rgba(0, 123, 255, 0.2) 66.66666667%, rgba(0, 123, 255, 0.2) 75%, transparent 75%, transparent 83.33333333%, rgba(0, 123, 255, 0.2) 83.33333333%, rgba(0, 123, 255, 0.2) 91.66666667%, transparent 91.66666667%);
  }
}

@media (min-width: 992px) {
  .show-grid-lg .container::before,
  .show-grid-lg .container-fluid::before {
    background-image: 
      linear-gradient(to right, rgba(0, 123, 255, 0.25) 0%, rgba(0, 123, 255, 0.25) 8.33333333%, transparent 8.33333333%, transparent 16.66666667%, rgba(0, 123, 255, 0.25) 16.66666667%, rgba(0, 123, 255, 0.25) 25%, transparent 25%, transparent 33.33333333%, rgba(0, 123, 255, 0.25) 33.33333333%, rgba(0, 123, 255, 0.25) 41.66666667%, transparent 41.66666667%, transparent 50%, rgba(0, 123, 255, 0.25) 50%, rgba(0, 123, 255, 0.25) 58.33333333%, transparent 58.33333333%, transparent 66.66666667%, rgba(0, 123, 255, 0.25) 66.66666667%, rgba(0, 123, 255, 0.25) 75%, transparent 75%, transparent 83.33333333%, rgba(0, 123, 255, 0.25) 83.33333333%, rgba(0, 123, 255, 0.25) 91.66666667%, transparent 91.66666667%);
  }
}

@media (min-width: 1200px) {
  .show-grid-xl .container::before,
  .show-grid-xl .container-fluid::before {
    background-image: 
      linear-gradient(to right, rgba(0, 123, 255, 0.3) 0%, rgba(0, 123, 255, 0.3) 8.33333333%, transparent 8.33333333%, transparent 16.66666667%, rgba(0, 123, 255, 0.3) 16.66666667%, rgba(0, 123, 255, 0.3) 25%, transparent 25%, transparent 33.33333333%, rgba(0, 123, 255, 0.3) 33.33333333%, rgba(0, 123, 255, 0.3) 41.66666667%, transparent 41.66666667%, transparent 50%, rgba(0, 123, 255, 0.3) 50%, rgba(0, 123, 255, 0.3) 58.33333333%, transparent 58.33333333%, transparent 66.66666667%, rgba(0, 123, 255, 0.3) 66.66666667%, rgba(0, 123, 255, 0.3) 75%, transparent 75%, transparent 83.33333333%, rgba(0, 123, 255, 0.3) 83.33333333%, rgba(0, 123, 255, 0.3) 91.66666667%, transparent 91.66666667%);
  }
}

/* Dark mode support for grid visualization */
body.epea-contrast .show-grid .container::before,
body.epea-contrast .show-grid .container-fluid::before {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 8.33333333%, transparent 8.33333333%, transparent 16.66666667%, rgba(255, 255, 255, 0.1) 16.66666667%, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 33.33333333%, rgba(255, 255, 255, 0.1) 33.33333333%, rgba(255, 255, 255, 0.1) 41.66666667%, transparent 41.66666667%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 58.33333333%, transparent 58.33333333%, transparent 66.66666667%, rgba(255, 255, 255, 0.1) 66.66666667%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent 83.33333333%, rgba(255, 255, 255, 0.1) 83.33333333%, rgba(255, 255, 255, 0.1) 91.66666667%, transparent 91.66666667%);
}

body.epea-contrast .show-grid .row::before {
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4) 0px,
    rgba(255, 255, 255, 0.4) 1px,
    transparent 1px,
    transparent calc(100% / 12)
  );
}

body.epea-contrast .show-grid [class*="col-"]::before {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}



/* WP Accessibility Plugin Styling */
.a11y-toolbar {
  position: static !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  box-shadow: none !important;
}

.a11y-toolbar-list {
  display: flex !important;
  gap: 0.65rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.a11y-toolbar-list-item {
  margin: 0 !important;
  padding: 0 !important;
}

.a11y-toolbar .a11y-toggle {
  background: none !important;
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  color: var(--epea-primary) !important;
  margin: 0 !important;
  margin-bottom: 3px !important;
  box-shadow: none !important;
}

.a11y-toolbar .a11y-toggle:hover,
.a11y-toolbar .a11y-toggle:focus {
  opacity: 0.6 !important;
  background: none !important;
  box-shadow: none !important;
}

.a11y-toolbar .a11y-toggle .offscreen {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.a11y-toolbar .a11y-toggle .aticon {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  font-size:0!important;
}

.a11y-toolbar .a11y-toggle.toggle-contrast .aticon {
  background-image: url('assets/images/contrast.png') !important;
}

.a11y-toolbar .a11y-toggle.toggle-fontsize .aticon {
  background-image: url('assets/images/aa.png') !important;
}

/* Dark mode support for WP Accessibility */
body.epea-contrast .a11y-toolbar .a11y-toggle {
  color: #f5f5f5 !important;
}

body.epea-contrast .a11y-toolbar .a11y-toggle:hover,
body.epea-contrast .a11y-toolbar .a11y-toggle:focus {
  opacity: 0.6 !important;
}

/* EPEA Numer Archive Shortcode Styles */
.epea-numer-archive {
  margin: 2rem 0;
}

.epea-numer-list {
  margin-bottom: 2rem;
}

.epea-numer-list .epea-issue {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--epea-line);
  padding-top: 1rem;
}

.epea-numer-list .epea-issue__cover {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.epea-numer-list .epea-issue__title {
  font-family: var(--epea-font-serif);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.epea-numer-list .epea-issue__title a {
  color: var(--epea-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.epea-numer-list .epea-issue__title a:hover,
.epea-numer-list .epea-issue__title a:focus {
  color: var(--epea-secondary);
}

.epea-numer-list .epea-issue__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
  text-align: center;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.epea-numer-list .epea-issue__link {
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--epea-line);
  border-bottom: 1px solid var(--epea-line);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.2s ease;
}

.epea-numer-list .epea-issue__link:hover,
.epea-numer-list .epea-issue__link:focus {
  background-color: rgba(0, 0, 0, 0.05);
}

.epea-empty-message {
  text-align: center;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  padding: 2rem 0;
}

/* Dark mode support for numer archive */
body.epea-contrast .epea-numer-list .epea-issue {
  border-top-color: #f5f5f5;
}

body.epea-contrast .epea-numer-list .epea-issue__title a {
  color: #f5f5f5;
}

body.epea-contrast .epea-numer-list .epea-issue__excerpt {
  color: rgba(255, 255, 255, 0.85);
}

body.epea-contrast .epea-numer-list .epea-issue__link {
  border-color: #f5f5f5;
}

body.epea-contrast .epea-numer-list .epea-issue__link:hover,
body.epea-contrast .epea-numer-list .epea-issue__link:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

body.epea-contrast .epea-empty-message {
  color: rgba(255, 255, 255, 0.7);
}

/* EPEA Post List Shortcode Styles */
.epea-shortcode-posts {
  margin: 2rem 0;
}

.epea-shortcode-posts .epea-front__list {
  margin-bottom: 2rem;
}

/* Redakcja Page Styles */
.epea-redakcja-page {
  max-width: 1200px;
  margin: 0 auto;
}

.epea-redakcja-section {
  margin-bottom: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--epea-line);
}

.epea-redakcja-section:first-child {
  border-top: none;
  padding-top: 0;
}

.epea-redakcja-section h2 {
  font-family: var(--epea-font-serif);
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--epea-line);
  padding-bottom: 0.75rem;
}

.epea-redakcja-card {
  border-top: 6px solid var(--epea-line);
  padding-top: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.epea-redakcja-card h3 {
  font-family: var(--epea-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.epea-redakcja-role {
  font-family: var(--epea-font-serif);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--epea-line);
}

.epea-redakcja-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.epea-redakcja-contact {
  font-size: 0.875rem;
  margin-top: auto;
}

.epea-redakcja-contact a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--epea-line);
  transition: color 0.2s ease;
}

.epea-redakcja-contact a:hover,
.epea-redakcja-contact a:focus {
  color: var(--epea-secondary);
}

.epea-redakcja-contact-info {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.8;
}

.epea-redakcja-contact-info p {
  margin-bottom: 1.5rem;
}

.epea-redakcja-contact-info strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.epea-redakcja-contact-info a {
  color: var(--epea-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--epea-line);
  transition: color 0.2s ease;
}

.epea-redakcja-contact-info a:hover,
.epea-redakcja-contact-info a:focus {
  color: var(--epea-secondary);
}

/* Dark mode support for Redakcja page */
body.epea-contrast .epea-redakcja-section {
  border-top-color: #f5f5f5;
}

body.epea-contrast .epea-redakcja-section h2 {
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-redakcja-card {
  border-top-color: #f5f5f5;
}

body.epea-contrast .epea-redakcja-role {
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-redakcja-bio,
body.epea-contrast .epea-redakcja-contact-info {
  color: rgba(255, 255, 255, 0.85);
}

body.epea-contrast .epea-redakcja-contact a,
body.epea-contrast .epea-redakcja-contact-info a {
  color: #f5f5f5;
  border-bottom-color: #f5f5f5;
}

/* Footnotes */
.epea-footnote {
  position: relative;
  display: inline;
  color: var(--epea-primary);
  font-weight: 600;
  cursor: help;
  text-decoration: none;
  border-bottom: 1px dotted var(--epea-primary);
  padding: 0 2px;
  transition: background-color 0.2s ease;
}

.epea-footnote:hover,
.epea-footnote:focus {
  background-color: rgba(0, 0, 0, 0.05);
}

.epea-footnote::before {
  content: "[" attr(data-footnote-number) "]";
  font-size: 0.85em;
  vertical-align: super;
  line-height: 0;
}

/* Tooltip for desktop */
.epea-footnote-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: rgba(0, 0, 0, 0.95);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
  width: max-content;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.epea-footnote-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
}

.epea-footnote-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

/* Footnotes list for mobile/tablet */
.epea-footnotes-list {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--epea-line);
}

.epea-footnotes-list__title {
  font-family: var(--epea-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.epea-footnotes-list__items {
  list-style: decimal;
  padding-left: 1.5rem;
}

.epea-footnotes-list__items li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.8);
}

.epea-footnotes-list__items li:last-child {
  margin-bottom: 0;
}

/* Hide tooltips on mobile */
@media (max-width: 1199px) {
  .epea-footnote-tooltip {
    display: none;
  }
}

/* Dark mode support */
body.epea-contrast .epea-footnote {
  color: #f5f5f5;
  border-bottom-color: #f5f5f5;
}

body.epea-contrast .epea-footnote:hover,
body.epea-contrast .epea-footnote:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

body.epea-contrast .epea-footnotes-list {
  border-top-color: #f5f5f5;
}

body.epea-contrast .epea-footnotes-list__items li {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 598px) {

.a11y-toolbar .a11y-toggle {
  margin-bottom: 0px !important;
}
}

.contrast .a11y-toolbar-list button,
.contrast .a11y-toolbar-list .a11y-toolbar-list-item,
.contrast .a11y-toolbar-list button span,
.contrast .a11y-toolbar-list,
.contrast .epea-actions{
  background: #fff!important;
}

/* Author Cards Styles */
.epea-authors-grid {
  margin-bottom: 3rem;
}

.epea-author-card {
  margin-bottom: 2rem;
}

.epea-author-card__inner {
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.epea-author-card__inner:hover {
}

.epea-author-card__photo {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.epea-author-card__name {
  font-family: var(--epea-font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.epea-author-card__name a {
  color: var(--epea-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.epea-author-card__name a:hover {
  color: var(--epea-secondary);
}

.epea-author-card__bio {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Dark mode support for author cards */
body.epea-contrast .epea-author-card__inner {
  background: #1a1a1a;
  border-color: #444;
}

body.epea-contrast .epea-author-card__name a {
  color: #f5f5f5;
}

body.epea-contrast .epea-author-card__bio {
  color: rgba(255, 255, 255, 0.85);
}

/* Masonry waterfall layout for post lists */
.epea-masonry-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}


@media (min-width: 768px) {
  .epea-masonry-grid {
    display: block;
    column-count: 2;
    column-gap: 2rem;
  }
  
  .epea-masonry-item {
    display: inline-block;
    width: 100% !important;
    break-inside: avoid;
  }
}

.epea-card__excerpt .wp-block-spacer {
  display: none;
}

.epea-single__featured-image img{

  width: 100%;
  height: auto;
}
.epea-image-credit{
    font-size: 0.75rem;
    text-align: left;
    padding-top: 4px;
}

.epea-single__content .wp-block-gallery .wp-block-image img{
    width: 100%!important;
    height: auto!important;
  object-fit: none!important;

}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
    align-self: flex-start;
}

@media (min-width: 600px) {
  
  .wp-block-gallery.wp-block-gallery-2 {
      gap: 16px!important;
  }
    .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
        width: calc(33.33% - 16px * .66667)!important;
    }
}