/* europeangaming — B2B news layout (Plan B) */

:root {
  --eg-ink: #161616;
  --eg-muted: #585858;
  --eg-line: #e6e6e8;
  --eg-bg: #ffffff;
  --eg-white: #ffffff;
  --eg-footer-bg: #f0f0f0;
  --eg-topbar: #111111;
  --eg-topbar-text: #cfcfd1;
  --eg-accent: #cc0100;
  --eg-logo-blue: #1a5cff;
  --eg-logo-red: #e10600;
  --eg-radius: 2px;
  --eg-container: 1280px;
  --eg-font: "DM Sans", system-ui, sans-serif;
  --eg-shadow: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--eg-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--eg-ink);
  background: var(--eg-bg);
  font-optical-sizing: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--eg-accent);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
}

.screen-reader-text,
.eg-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eg-skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  background: var(--eg-ink);
  color: var(--eg-white);
}

.eg-container {
  width: min(100% - 32px, var(--eg-container));
  margin-inline: auto;
}

/* Header */
.eg-header {
  background: var(--eg-white);
  border-bottom: 1px solid var(--eg-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.eg-topbar {
  background: var(--eg-topbar);
  color: var(--eg-topbar-text);
  font-size: 13px;
}

/* Hide utility top bar on mobile */
@media (max-width: 900px) {
  .eg-topbar {
    display: none !important;
  }
}

.eg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.eg-menu--utility {
  display: flex;
  gap: 18px;
}

.eg-menu--utility a {
  color: var(--eg-topbar-text);
}

.eg-menu--utility a:hover {
  color: var(--eg-white);
}

.eg-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.eg-social a {
  display: inline-flex;
  color: inherit;
  opacity: 0.9;
}

.eg-social a:hover {
  opacity: 1;
  color: inherit;
}

.eg-navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.eg-logo {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--eg-ink);
}

.eg-logo:hover {
  color: var(--eg-ink);
}

.eg-logo__text {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.eg-logo__bar {
  display: block;
  height: 3px;
  margin-top: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--eg-logo-blue) 0 55%, var(--eg-logo-red) 55% 100%);
}

.eg-logo__img {
  max-height: 48px;
  width: auto;
}

.eg-logo__img--default {
  max-height: 42px;
  width: auto;
  max-width: min(300px, 70vw);
}

.eg-navbar__nav {
  margin-left: auto;
}

.eg-menu--primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.eg-menu--primary > li {
  position: relative;
}

.eg-menu--primary > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--eg-ink);
  border-radius: 999px;
}

.eg-menu--primary > li.menu-item-has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.eg-menu--primary > li > a:hover,
.eg-menu--primary > li:hover > a,
.eg-menu--primary > li.current-menu-item > a,
.eg-menu--primary > li.current-menu-ancestor > a {
  background: #f3efe6;
  color: var(--eg-ink);
}

.eg-menu--primary .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 260px;
  background: var(--eg-white);
  border: 1px solid var(--eg-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  z-index: 20;
}

.eg-menu--primary > li:hover > .sub-menu,
.eg-menu--primary > li:focus-within > .sub-menu {
  display: block;
}

.eg-menu--primary .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--eg-ink);
  border-radius: 0;
}

.eg-menu--primary .sub-menu a:hover {
  background: #f7f7f8;
  color: var(--eg-ink);
}

.eg-menu--primary .sub-menu .eg-menu-see-all {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--eg-line);
}

.eg-menu--primary .sub-menu .eg-menu-see-all a {
  color: var(--eg-accent);
  font-weight: 600;
}

.eg-menu--primary .sub-menu .eg-menu-see-all a:hover {
  background: transparent;
  color: #a00000;
}

.eg-navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eg-search-toggle,
.eg-nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--eg-ink);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--eg-radius);
}

.eg-nav-toggle {
  flex-direction: column;
  gap: 5px;
  display: none;
}

.eg-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.eg-search-panel {
  border-top: 1px solid var(--eg-line);
  padding: 14px 0 18px;
  background: var(--eg-white);
}

.eg-search-panel[hidden] {
  display: none !important;
}

.eg-search-form {
  display: flex;
  gap: 8px;
}

.eg-search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--eg-line);
  padding: 12px 14px;
  border-radius: var(--eg-radius);
  background: var(--eg-white);
}

/* Drawer */
.eg-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
}

.eg-drawer[hidden] {
  display: none !important;
}

.eg-drawer__panel {
  width: min(100%, 360px);
  height: 100%;
  background: var(--eg-white);
  padding: 16px 18px 32px;
  overflow: auto;
  margin-left: auto;
  animation: eg-slide 0.2s ease;
}

@keyframes eg-slide {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.eg-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.eg-drawer__title {
  font-weight: 700;
}

.eg-drawer__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.eg-drawer__search {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.eg-drawer__search input {
  flex: 1;
  border: 1px solid var(--eg-line);
  padding: 10px 12px;
}

.eg-drawer__search button,
.eg-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 600;
  border-radius: var(--eg-radius);
  text-align: center;
}

.eg-btn--dark,
.eg-drawer__search button {
  background: var(--eg-ink);
  color: var(--eg-white);
}

.eg-btn--dark:hover,
.eg-drawer__search button:hover {
  background: #000;
  color: var(--eg-white);
}

.eg-btn--block {
  width: 100%;
}

.eg-menu--drawer > li > a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--eg-line);
  font-weight: 600;
}

.eg-menu--drawer > li.menu-item-has-children {
  position: relative;
}

.eg-menu--drawer > li.menu-item-has-children > a {
  padding-right: 36px;
}

.eg-menu--drawer > li.menu-item-has-children > a::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--eg-muted);
  line-height: 1;
}

.eg-menu--drawer > li.menu-item-has-children.is-open > a::after {
  content: "–";
}

.eg-menu--drawer .sub-menu {
  display: none;
  padding: 0 0 8px 12px;
  border-bottom: 1px solid var(--eg-line);
}

.eg-menu--drawer > li.menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.eg-menu--drawer .sub-menu a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--eg-muted);
  border-bottom: 0;
}

/* Main */
.eg-main {
  padding: 28px 0 56px;
}

.eg-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.eg-section {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--eg-line);
  padding: 28px 0;
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
}

.eg-section:last-child {
  border-bottom: 0;
}

.eg-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.eg-section__title {
  font-size: 1.35rem;
  margin: 0;
}

.eg-discover {
  font-size: 14px;
  font-weight: 500;
  color: var(--eg-muted);
  white-space: nowrap;
}

.eg-discover:hover {
  color: var(--eg-accent);
}

.eg-cat {
  display: inline-block;
  color: var(--eg-accent) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 6px;
}

.eg-byline,
.eg-meta {
  font-size: 13px;
  color: var(--eg-muted);
}

.eg-byline a {
  color: var(--eg-muted);
  font-weight: 500;
}

/* Featured */
.eg-featured__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.eg-feature-hero__media,
.eg-card__media,
.eg-archive-item__media,
.eg-list-lead__media,
.eg-grid-card__media {
  display: block;
  overflow: hidden;
  background: #f5f5f5;
}

.eg-feature-hero__media img,
.eg-feature-hero__media .eg-ph,
.eg-card__media img,
.eg-card__media .eg-ph,
.eg-archive-item__media img,
.eg-archive-item__media .eg-ph,
.eg-list-lead__media img,
.eg-grid-card__media img,
.eg-grid-card__media .eg-ph {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: #f5f5f5;
}

.eg-feature-hero__media img,
.eg-ph--lg {
  aspect-ratio: auto;
}

.eg-feature-hero__title {
  font-size: 1.55rem;
  margin: 0.2em 0 0.45em;
}

.eg-feature-hero__excerpt {
  color: var(--eg-muted);
  font-size: 15px;
}

.eg-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eg-stack-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding: 0 0 16px;
}

.eg-stack-item + .eg-stack-item {
  padding-top: 16px;
  border-top: 1px solid var(--eg-line);
}

.eg-stack-item__media {
  display: block;
  width: 96px;
  overflow: hidden;
  background: #f5f5f5;
}

.eg-stack-item__media img,
.eg-ph--sm {
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: center center;
  background: #f5f5f5;
}

.eg-stack-item__title {
  font-size: 1rem;
  margin: 0.15em 0 0.35em;
  line-height: 1.35;
}

.eg-stack-item--text {
  display: block;
  grid-template-columns: none;
}

.eg-stack-item--text .eg-stack-item__title {
  font-size: 1.05rem;
  margin: 0.2em 0 0.4em;
}

.eg-stack-item--text .eg-meta--author-date {
  display: inline-block;
  font-size: 13px;
  color: var(--eg-muted);
}

/* Cards */
.eg-card-grid {
  display: grid;
  gap: 18px;
}

.eg-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eg-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eg-card__media img,
.eg-ph--card {
  aspect-ratio: auto;
}

.eg-card__title {
  font-size: 1.05rem;
  margin: 0.15em 0 0.4em;
}

.eg-ph {
  display: block;
  background: linear-gradient(135deg, #d8d8dc, #efeff1 45%, #cfd0d4);
}

/* Regulation list */
.eg-list-lead {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--eg-line);
}

.eg-list-lead__title {
  font-size: 1.25rem;
}

.eg-list-rest li {
  padding: 14px 0;
  border-bottom: 1px solid var(--eg-line);
}

.eg-list-rest li:last-child {
  border-bottom: 0;
}

.eg-list-rest a {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

.eg-list-rest p {
  color: var(--eg-muted);
  font-size: 14px;
  margin: 0.35em 0 0;
}

.eg-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.eg-events-teaser {
  background: transparent;
  border: 0;
  padding: 0;
}

/* Aside */
.eg-home-aside,
.eg-article-aside {
  position: sticky;
  top: 96px;
}

.eg-trust,
.eg-newsletter,
.eg-widget {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--eg-line);
  padding: 0 0 20px;
  margin-bottom: 20px;
  box-shadow: none;
  border-radius: 0;
}

.eg-home-aside .eg-newsletter,
.eg-home-aside .eg-widget:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Hard hide if a Search / Comments widget still leaks into the home aside. */
.eg-home-aside .widget_search,
.eg-home-aside .widget_recent_comments,
.eg-home-aside .wp-block-search,
.eg-home-aside .wp-block-latest-comments,
.eg-home-aside .wp-block-comments {
  display: none !important;
}

.eg-widget__title {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.eg-trust__list {
  margin-top: 14px;
}

.eg-trust__list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--eg-line);
}

.eg-trust__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--eg-accent);
  font-weight: 700;
}

.eg-trust__list strong {
  display: block;
  margin-bottom: 2px;
}

.eg-trust__list span {
  color: var(--eg-muted);
  font-size: 14px;
}

.eg-newsletter p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.eg-newsletter__form {
  display: grid;
  gap: 10px;
  margin: 14px 0 8px;
}

.eg-newsletter__form input {
  width: 100%;
  border: 1px solid var(--eg-line);
  padding: 12px 14px;
  border-radius: 4px;
  font: inherit;
  background: var(--eg-white);
}

.eg-newsletter__form .eg-btn {
  width: 100%;
  border-radius: 4px;
}

.eg-newsletter__note {
  font-size: 12px;
  color: var(--eg-muted);
  margin: 0;
}

.eg-aside-list li {
  border-bottom: 1px solid var(--eg-line);
}

.eg-aside-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}

/* Article sidebar — Latest News (text + dividers) */
.eg-latest-news {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.eg-latest-news__title {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--eg-line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eg-ink);
}

.eg-latest-news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eg-latest-news__list li {
  margin: 0;
  border-bottom: 1px solid var(--eg-line);
}

.eg-latest-news__list li:last-child {
  border-bottom: 0;
}

.eg-latest-news__list a {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--eg-ink);
  text-decoration: none;
}

.eg-latest-news__list a:hover {
  color: var(--eg-accent);
}

/* Article / page / archive */
.eg-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.eg-article,
.eg-page__article {
  background: transparent;
  border: 0;
  padding: 8px 0 28px;
  box-shadow: none;
}

.eg-page {
  max-width: 860px;
}

.eg-page .eg-container,
.eg-page.eg-container {
  width: min(100% - 32px, 860px);
}

.eg-page--events,
.eg-page--events.eg-container {
  max-width: 1120px;
  width: min(100% - 32px, 1120px);
}

.eg-page__lede {
  margin: 0 0 0.2em;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--eg-muted);
}

.eg-page__content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--eg-ink);
}

.eg-page__content h2 {
  font-size: 1.45rem;
  margin: 1.8em 0 0.55em;
}

.eg-page__content h3 {
  font-size: 1.15rem;
  margin: 1.5em 0 0.4em;
}

.eg-page__content .eg-topic-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.4em;
}

.eg-page__content .eg-topic-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--eg-line);
}

.eg-page__content .eg-topic-list li:first-child {
  border-top: 1px solid var(--eg-line);
}

.eg-events-table-wrap {
  margin: 1.4em 0 1.8em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--eg-line);
  background: var(--eg-white);
}

.eg-events-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.eg-events-table th,
.eg-events-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--eg-line);
}

.eg-events-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eg-muted);
  background: var(--eg-bg);
  white-space: nowrap;
}

.eg-events-table tbody tr:last-child td {
  border-bottom: 0;
}

.eg-events-table tbody tr:hover td {
  background: #fafafa;
}

.eg-events-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--eg-ink);
}

.eg-events-table td:nth-child(4) {
  white-space: nowrap;
}

.eg-events-type {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--eg-ink);
  background: #f2f2f2;
  border-radius: 3px;
}

.eg-events-disclaimer {
  margin-top: 1.2em;
  font-size: 0.95rem;
  color: var(--eg-muted);
}

.eg-faq {
  margin: 1em 0 0.4em;
  border-top: 1px solid var(--eg-line);
}

.eg-faq__item {
  border-bottom: 1px solid var(--eg-line);
}

.eg-faq__q {
  position: relative;
  padding: 16px 36px 16px 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.eg-faq__q::-webkit-details-marker {
  display: none;
}

.eg-faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--eg-muted);
}

.eg-faq__item[open] .eg-faq__q::after {
  content: "–";
}

.eg-faq__a {
  padding: 0 0 18px;
  color: var(--eg-ink);
}

.eg-faq__a p {
  margin: 0;
}

.eg-contact-block {
  background: var(--eg-bg);
  border: 1px solid var(--eg-line);
  padding: 18px 20px;
  margin: 1.2em 0 1.6em;
}

.eg-page__content .eg-btn {
  margin-top: 0.4em;
}

.eg-breadcrumbs {
  font-size: 13px;
  color: var(--eg-muted);
  margin-bottom: 16px;
}

.eg-breadcrumbs__sep {
  margin: 0 6px;
}

.eg-article__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.eg-article__title,
.eg-page__title,
.eg-archive__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.4em;
}

.eg-article__deck {
  font-size: 1.15rem;
  color: var(--eg-muted);
}

.eg-article__hero,
.eg-pasted-hero {
  margin: 22px 0;
}

.eg-article__hero img,
.eg-pasted-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.entry-content > * + * {
  margin-top: 1em;
}

.entry-content h2 {
  font-size: 1.45rem;
  margin: 1.75em 0 0.55em;
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.45em;
  line-height: 1.35;
}

.entry-content p {
  margin: 0;
}

.entry-content a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2em;
  list-style: revert;
}

.entry-content li + li {
  margin-top: 0.35em;
}

.entry-content strong {
  font-weight: 700;
}

.entry-content em {
  font-style: italic;
}

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--eg-accent);
  background: var(--eg-bg);
  color: var(--eg-ink);
}

.entry-content blockquote p {
  margin: 0;
}

.entry-content .wp-block-image,
.entry-content figure:not(.wp-block-table):not(.eg-pasted-hero) {
  margin: 1.5em 0;
}

.entry-content .wp-block-image img,
.entry-content figure:not(.wp-block-table) img,
.entry-content > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--eg-muted);
}

.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
  margin: 1.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--eg-line);
  background: var(--eg-white);
}

.entry-content .wp-block-table table,
.entry-content table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.entry-content .wp-block-table td,
.entry-content .wp-block-table th,
.entry-content table td,
.entry-content table th {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--eg-line);
}

.entry-content .wp-block-table tr:last-child td,
.entry-content .wp-block-table tr:last-child th,
.entry-content table tr:last-child td,
.entry-content table tr:last-child th {
  border-bottom: 0;
}

.entry-content .wp-block-table strong,
.entry-content table strong {
  font-weight: 700;
}

.entry-content .wp-block-list,
.entry-content .wp-block-quote {
  margin: 1.2em 0;
}

.eg-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.eg-article__tags a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--eg-ink) !important;
  background: #f2f2f2;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
}

.eg-article__tags a:hover {
  background: #e8e8e8;
  color: var(--eg-accent) !important;
}

.eg-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--eg-line);
}

.eg-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--eg-ink);
  text-decoration: none;
}

.eg-post-nav__link--empty {
  pointer-events: none;
}

.eg-post-nav__link--prev {
  text-align: left;
  justify-self: start;
}

.eg-post-nav__link--next {
  text-align: right;
  justify-self: end;
}

.eg-post-nav__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--eg-muted);
  line-height: 1.3;
}

.eg-post-nav__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--eg-ink);
}

.eg-post-nav__link:hover .eg-post-nav__title {
  color: var(--eg-accent);
}

.eg-related {
  margin-top: 36px;
}

.eg-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Category / archive — EG-style 3-col grid + sidebar */
.eg-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}

.eg-archive__header {
  margin-bottom: 22px;
}

.eg-archive__title {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 0.2em;
}

.eg-archive__count {
  margin: 0;
  font-size: 14px;
  color: var(--eg-muted);
}

.eg-archive__desc {
  margin-top: 10px;
  color: var(--eg-muted);
}

.eg-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.eg-grid-card__media {
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
}

.eg-grid-card__media img,
.eg-grid-card__media .eg-ph {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: #f5f5f5;
}

.eg-grid-card .eg-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.eg-grid-card .eg-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.eg-grid-card__title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.45em;
  font-weight: 700;
}

.eg-grid-card__title a:hover {
  color: var(--eg-accent);
}

.eg-grid-card .eg-byline {
  font-size: 13px;
}

.eg-archive-aside {
  position: sticky;
  top: 96px;
}

.eg-archive-aside__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--eg-line);
}

.eg-archive-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eg-archive-aside__list li {
  border-bottom: 1px solid var(--eg-line);
}

.eg-archive-aside__list a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--eg-ink);
}

.eg-archive-aside__list a:hover {
  color: var(--eg-accent);
}

/* Legacy list layout (fallback) */
.eg-archive__list {
  display: grid;
  gap: 16px;
}

.eg-archive-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--eg-line);
  padding: 16px 0;
  box-shadow: none;
}

.eg-archive-item__title {
  font-size: 1.25rem;
  margin: 0.15em 0 0.4em;
}

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

  .eg-archive-aside {
    position: static;
  }

  .eg-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .eg-archive-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.eg-pagination {
  margin-top: 22px;
}

.eg-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eg-pagination a,
.eg-pagination span {
  display: inline-flex;
  padding: 8px 12px;
  background: var(--eg-white);
  border: 1px solid var(--eg-line);
  font-size: 14px;
  font-weight: 600;
}

.eg-pagination .current {
  background: var(--eg-ink);
  color: var(--eg-white);
  border-color: var(--eg-ink);
}

.eg-empty,
.eg-empty-state {
  color: var(--eg-muted);
}

.eg-empty-state {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--eg-line);
  padding: 40px 0;
  text-align: center;
}

/* Footer — light grey like europeangaming.eu */
.eg-footer {
  background: var(--eg-footer-bg);
  color: #454555;
  padding-top: 42px;
  margin-top: auto;
  border-top: 1px solid var(--eg-line);
}

.eg-footer a {
  color: #2e2e32;
}

.eg-footer a:hover {
  color: var(--eg-accent);
}

.eg-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 0.9fr;
  gap: 28px;
  padding-bottom: 36px;
}

.eg-footer__logo {
  margin-bottom: 12px;
}

.eg-footer__logo .eg-logo__img {
  width: auto;
  max-width: 220px;
  height: 36px;
}

.eg-footer__heading {
  color: var(--eg-ink);
  font-size: 1.2rem;
}

.eg-footer__label {
  color: var(--eg-ink);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.eg-footer__blurb {
  font-size: 14px;
  color: #6b6b70;
  max-width: 36ch;
}

.eg-footer .eg-social {
  margin-top: 16px;
  color: #2e2e32;
}

.eg-footer__posts {
  display: grid;
  gap: 14px;
}

.eg-footer__post {
  margin: 0;
}

.eg-footer__post-link {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.eg-footer__post-link:hover {
  color: inherit;
}

.eg-footer__post-link:hover .eg-footer__post-title {
  color: var(--eg-accent);
}

.eg-footer__post-thumb {
  display: block;
  width: 80px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8e8ea;
}

.eg-footer__post-thumb img,
.eg-ph--footer {
  width: 80px;
  height: 56px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.eg-footer__post-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eg-footer__post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: #2e2e32;
}

.eg-footer__posts time {
  font-size: 12px;
  color: #8d8d92;
}

/* Back to top — scroll progress ring */
.eg-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--eg-ink);
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--eg-accent) calc(var(--eg-scroll, 0) * 1%), #d8d8d8 0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eg-back-top[hidden] {
  display: none !important;
}

.eg-back-top:hover {
  transform: translateY(-2px);
}

.eg-back-top__ring {
  display: none;
}

.eg-back-top__icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eg-menu--footer li + li {
  margin-top: 8px;
}

.eg-menu--footer a {
  font-size: 14px;
}

.eg-footer__bottom {
  border-top: 1px solid #e0e0e0;
}

.eg-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  font-size: 13px;
}

.eg-menu--legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.eg-footer__copy {
  margin: 0;
  color: #6b6b70;
}

/* Responsive */
@media (max-width: 1100px) {
  .eg-home-layout,
  .eg-article-layout {
    grid-template-columns: 1fr;
  }

  .eg-home-aside,
  .eg-article-aside {
    position: static;
  }

  .eg-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .eg-navbar__nav {
    display: none;
  }

  .eg-nav-toggle {
    display: inline-flex;
  }

  .eg-home-aside,
  .eg-article-aside {
    display: none;
  }

  .eg-article-layout {
    grid-template-columns: 1fr;
  }

  .eg-featured__grid,
  .eg-card-grid--3,
  .eg-card-grid--2,
  .eg-split,
  .eg-list-lead,
  .eg-related__grid,
  .eg-archive-item {
    grid-template-columns: 1fr;
  }

  .eg-topbar__nav {
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .eg-container {
    width: min(100% - 24px, var(--eg-container));
  }

  .eg-section {
    padding: 22px 0;
  }

  .eg-stack-item__media {
    width: 72px;
  }

  .eg-navbar__inner {
    min-height: 64px;
  }

  .eg-stack-item {
    grid-template-columns: 72px 1fr;
  }

  .eg-stack-item__media img,
  .eg-ph--sm {
    width: 72px;
    height: 72px;
  }

  .eg-footer__grid {
    grid-template-columns: 1fr;
  }

  .eg-feature-hero__title {
    font-size: 1.3rem;
  }

  .eg-search-form {
    flex-direction: column;
  }

  .eg-page--events,
  .eg-page--events.eg-container {
    width: min(100% - 24px, 1120px);
  }

  .eg-events-table {
    min-width: 0;
  }

  .eg-events-table thead {
    display: none;
  }

  .eg-events-table,
  .eg-events-table tbody,
  .eg-events-table tr,
  .eg-events-table td {
    display: block;
    width: 100%;
  }

  .eg-events-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--eg-line);
  }

  .eg-events-table tr:last-child {
    border-bottom: 0;
  }

  .eg-events-table td {
    padding: 4px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .eg-events-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--eg-muted);
  }

  .eg-events-table td:first-child {
    margin-bottom: 8px;
    font-size: 1.05rem;
  }
}

body.admin-bar .eg-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .eg-header {
    top: 46px;
  }
}

/* Single byline — avatar + name + date (+ share on single) */
.eg-byline--author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}
.eg-byline--with-share {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.eg-byline__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.eg-byline__avatar { flex: 0 0 auto; line-height: 0; }
.eg-byline__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.eg-byline__meta { display: grid; gap: 0.15rem; min-width: 0; }
.eg-byline__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--eg-ink);
  text-decoration: none;
}
.eg-byline__name:hover { color: var(--eg-accent); }
.eg-byline__date {
  font-size: 0.84rem;
  color: var(--eg-muted);
}

/* Share icons to the right of author (single posts) */
.eg-share-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.eg-share-icons__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
  line-height: 0;
}
.eg-share-icons__btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  color: #fff;
}
.eg-share-icons__btn--facebook { background: #1877f2; }
.eg-share-icons__btn--x { background: #111; }
.eg-share-icons__btn--linkedin { background: #0a66c2; }
.eg-share-icons__btn--whatsapp { background: #25d366; }

@media (max-width: 560px) {
  .eg-share-icons { margin-left: 0; width: 100%; }
}

/* Our Authors page */
.eg-page--authors .eg-page__lede {
  max-width: 46rem;
  line-height: 1.55;
}
.eg-authors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.eg-author-card {
  border: 1px solid var(--eg-line);
  background: #fff;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.eg-author-card__avatar { line-height: 0; }
.eg-author-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.eg-author-card__name {
  margin: 0;
  font-size: 1.15rem;
}
.eg-author-card__name a {
  color: var(--eg-ink);
  text-decoration: none;
}
.eg-author-card__name a:hover { color: var(--eg-accent); }
.eg-author-card__role {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--eg-accent);
}
.eg-author-card__bio {
  margin: 0;
  font-size: 0.92rem;
  color: var(--eg-muted);
  line-height: 1.5;
}
.eg-author-card__focus {
  margin: 0;
  font-size: 0.84rem;
  color: var(--eg-ink);
}
.eg-author-card__focus span { color: var(--eg-muted); }
.eg-author-card__cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--eg-accent);
  text-decoration: none;
}
.eg-author-card__cta:hover { text-decoration: underline; }

/* Author archive profile */
.eg-author-profile { margin-bottom: 1.5rem; }
.eg-author-profile__inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.eg-author-profile__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.eg-author-profile__name { margin: 0 0 0.35rem; }
.eg-author-profile__role {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--eg-accent);
}
.eg-author-profile__bio,
.eg-author-profile__focus,
.eg-author-profile__count {
  margin: 0 0 0.45rem;
  color: var(--eg-muted);
  line-height: 1.5;
}
.eg-author-archive__list-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.eg-author-archive__empty { color: var(--eg-muted); }

/* Contact form */
.eg-contact-form {
  max-width: 560px;
  margin: 1rem 0 2rem;
  display: grid;
  gap: 0.85rem;
}
.eg-contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}
.eg-contact-form input[type="text"],
.eg-contact-form input[type="email"],
.eg-contact-form select,
.eg-contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--eg-line);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.eg-contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}
.eg-form-notice {
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--eg-line);
}
.eg-form-notice--ok {
  background: #eef9f0;
  border-color: #b7e0bf;
}
.eg-form-notice--err {
  background: #fdf0f0;
  border-color: #efc0c0;
}

@media (max-width: 900px) {
  .eg-authors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .eg-authors-grid { grid-template-columns: 1fr; }
  .eg-author-profile__inner { flex-direction: column; align-items: center; text-align: center; }
}