:root {
  --juso-red: #e30613;
  --juso-red-bright: #ff2634;
  --juso-ink: #111111;
  --juso-paper: #faf8f5;
  --juso-pink: #fff0f0;
  --juso-line: #d9d5d1;
  --juso-muted: #696969;
  --juso-white: #ffffff;
  --juso-display: "Barlow Condensed", sans-serif;
  --juso-body: "Inter", sans-serif;
}

/* Unified Jusos Osnabrück design for every non-front-page view */
body:not(.home) {
  background:
    radial-gradient(circle at 8% 0%, rgba(227, 6, 19, .055), transparent 28rem),
    var(--juso-paper);
  color: var(--juso-ink);
  font-family: var(--juso-body);
}

body:not(.home) #main-container {
  min-height: 100vh;
  background: transparent;
}

body:not(.home) a {
  text-underline-offset: .18em;
}

body:not(.home) :focus-visible {
  outline: 3px solid var(--juso-red);
  outline-offset: 3px;
}

/* Header shared with the new homepage */
body:not(.home) #masthead {
  position: sticky;
  top: 0;
  z-index: 9990;
  border-bottom: 1px solid var(--juso-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(17, 17, 17, .045);
  backdrop-filter: blur(14px);
}

body:not(.home) .elementor-1716 .elementor-element.elementor-element-a1d6002,
body:not(.home) .elementor-1716 .elementor-element.elementor-element-a1d6002:not(.elementor-motion-effects-element-type-background) {
  min-height: 76px;
  padding-inline: clamp(18px, 5vw, 72px);
  background: transparent !important;
}

body:not(.home) .elementor-1716 .elementor-element.elementor-element-7b1ae5c img {
  width: 104px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(12%) sepia(99%) saturate(5906%) hue-rotate(352deg) brightness(91%) contrast(109%);
}

body:not(.home) .elementor-1716 .hfe-nav-menu .hfe-menu-item {
  color: var(--juso-ink) !important;
  font-family: var(--juso-body);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.01em;
}

body:not(.home) .elementor-1716 .hfe-nav-menu .hfe-menu-item:hover,
body:not(.home) .elementor-1716 .hfe-nav-menu .current-menu-item > .hfe-menu-item {
  color: var(--juso-red) !important;
}

body:not(.home) .elementor-1716 nav.hfe-dropdown,
body:not(.home) .elementor-1716 .sub-menu,
body:not(.home) .elementor-1716 nav.hfe-dropdown .menu-item a {
  background: var(--juso-white) !important;
}

body:not(.home) .elementor-1716 nav.hfe-dropdown {
  border: 1px solid var(--juso-line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(17, 17, 17, .12);
}

/* Blocksy page and article titles */
body:not(.home) .hero-section {
  position: relative;
  width: 100%;
  max-width: none;
  padding: clamp(58px, 8vw, 110px) max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  border-bottom: 1px solid var(--juso-line);
  background:
    linear-gradient(115deg, var(--juso-paper) 0 44%, var(--juso-pink) 100%);
}

body:not(.home) .hero-section::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -9rem;
  width: min(34rem, 58vw);
  aspect-ratio: 1;
  border: clamp(28px, 4vw, 64px) solid rgba(227, 6, 19, .07);
  border-radius: 50%;
  pointer-events: none;
}

body:not(.home) .page-title,
body:not(.home) .hero-section .entry-title {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0;
  color: var(--juso-ink);
  font-family: var(--juso-display);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

body:not(.home) .hero-section .entry-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--juso-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body:not(.home) .hero-section .entry-meta a {
  color: var(--juso-red);
}

/* Long-form posts */
body.single-post article.type-post > .entry-content {
  width: min(860px, calc(100% - 32px));
  margin: clamp(34px, 6vw, 76px) auto;
  padding: clamp(26px, 5vw, 68px);
  border: 1px solid var(--juso-line);
  border-top: 6px solid var(--juso-red);
  border-radius: 8px;
  background: var(--juso-white);
  box-shadow: 0 22px 60px rgba(17, 17, 17, .07);
}

body.single-post .entry-content > p:first-child:has(em) {
  margin-bottom: 2rem;
  color: var(--juso-red);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.4;
}

body.single-post .entry-content p,
body.single-post .entry-content li,
body.page:not(.home) article.type-page .elementor-widget-text-editor p,
body.page:not(.home) article.type-page .elementor-widget-text-editor li {
  color: var(--juso-ink);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.78;
}

body.single-post .entry-content p {
  margin-block: 0 1.35em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  margin: 1.55em 0 .55em;
  color: var(--juso-ink);
  font-family: var(--juso-display);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

body.single-post .entry-content h2 { font-size: clamp(34px, 5vw, 52px); }
body.single-post .entry-content h3 { font-size: clamp(27px, 4vw, 38px); }

body.single-post .entry-content a {
  color: var(--juso-red);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

body.single-post .entry-content blockquote {
  margin: 2.2rem 0;
  padding: 24px clamp(22px, 4vw, 38px);
  border: 0;
  border-left: 6px solid var(--juso-red);
  border-radius: 0 8px 8px 0;
  background: var(--juso-pink);
  color: var(--juso-ink);
  font-family: var(--juso-display);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.05;
}

body.single-post .entry-content img {
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(17, 17, 17, .12);
}

body.single-post .post-navigation {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* Elementor content pages */
body.page:not(.home) article.type-page > .entry-content {
  background: transparent;
}

body.page:not(.home) article.type-page .elementor .e-con-boxed > .e-con-inner {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px !important;
}

body.page:not(.home) article.type-page .elementor > .e-con {
  padding-block: clamp(28px, 4.5vw, 62px);
}

body.page:not(.home) article.type-page .elementor-widget-heading .elementor-heading-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--juso-ink) !important;
  font-family: var(--juso-display) !important;
  font-size: clamp(36px, 5.4vw, 58px) !important;
  font-weight: 900 !important;
  line-height: .94 !important;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

body.page:not(.home) article.type-page .elementor-widget-heading .elementor-heading-title::before {
  content: "";
  flex: 0 0 clamp(18px, 3vw, 34px);
  height: 5px;
  border-radius: 99px;
  background: var(--juso-red);
}

body.page:not(.home) article.type-page .elementor-widget-text-editor > .elementor-widget-container {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--juso-line);
  border-radius: 8px;
  background: var(--juso-white);
}

body.page:not(.home) article.type-page .elementor-widget-text-editor a,
body.page:not(.home) .entry-content a {
  color: var(--juso-red);
  font-weight: 700;
}

body.page:not(.home) article.type-page .elementor-widget-image img {
  border-radius: 8px;
}

body.page:not(.home) .elementor-button,
body:not(.home) .wp-element-button,
body:not(.home) input[type="submit"],
body:not(.home) button[type="submit"] {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--juso-red);
  border-radius: 4px;
  background: var(--juso-red);
  color: #fff !important;
  font-family: var(--juso-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.page:not(.home) .elementor-button:hover,
body:not(.home) .wp-element-button:hover,
body:not(.home) input[type="submit"]:hover,
body:not(.home) button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--juso-ink);
}

/* News, category, search and author archives */
body.blog .entries,
body.archive .entries,
body.search .entries {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(36px, 6vw, 72px) auto;
}

body.blog .entry-card,
body.archive .entry-card,
body.search .entry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px !important;
  overflow: hidden;
  border: 1px solid var(--juso-line) !important;
  border-radius: 8px !important;
  background: var(--juso-white) !important;
  box-shadow: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.blog .entry-card:hover,
body.archive .entry-card:hover,
body.search .entry-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: var(--juso-red) !important;
  box-shadow: 0 18px 38px rgba(17, 17, 17, .1) !important;
}

body.blog .entry-card .entry-meta[data-id="meta_1"],
body.archive .entry-card .entry-meta[data-id="meta_1"],
body.search .entry-card .entry-meta[data-id="meta_1"] {
  order: 1;
  margin-bottom: 12px;
}

body.blog .entry-card .ct-media-container,
body.archive .entry-card .ct-media-container,
body.search .entry-card .ct-media-container {
  order: 2;
  width: calc(100% + 40px);
  margin: 0 -20px 18px;
  overflow: hidden;
  border-block: 1px solid var(--juso-line);
  background: var(--juso-pink);
}

body.blog .entry-card .ct-media-container img,
body.archive .entry-card .ct-media-container img,
body.search .entry-card .ct-media-container img {
  width: 100%;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover;
  filter: saturate(.78) contrast(1.03);
  transition: transform .45s ease;
}

body.blog .entry-card:hover .ct-media-container img,
body.archive .entry-card:hover .ct-media-container img,
body.search .entry-card:hover .ct-media-container img {
  transform: scale(1.035);
}

body.blog .entry-card .entry-title,
body.archive .entry-card .entry-title,
body.search .entry-card .entry-title {
  order: 3;
  margin: 0 0 12px;
  font-family: var(--juso-display);
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}

body.blog .entry-card .entry-title a,
body.archive .entry-card .entry-title a,
body.search .entry-card .entry-title a {
  color: var(--juso-ink);
}

body.blog .entry-card .entry-title a:hover,
body.archive .entry-card .entry-title a:hover,
body.search .entry-card .entry-title a:hover {
  color: var(--juso-red);
}

body.blog .entry-card .entry-excerpt,
body.archive .entry-card .entry-excerpt,
body.search .entry-card .entry-excerpt {
  order: 4;
  flex: 1;
  color: var(--juso-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.blog .entry-card .entry-meta[data-id="meta_2"],
body.archive .entry-card .entry-meta[data-id="meta_2"],
body.search .entry-card .entry-meta[data-id="meta_2"] {
  order: 5;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--juso-line);
  color: var(--juso-muted);
  font-size: 10px;
  font-weight: 700;
}

body.blog .entry-card .meta-categories a,
body.archive .entry-card .meta-categories a,
body.search .entry-card .meta-categories a {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--juso-red);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body:not(.home) .ct-pagination {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
}

/* Forms and member pages */
body:not(.home) input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body:not(.home) textarea,
body:not(.home) select {
  border: 1px solid var(--juso-line);
  border-radius: 4px;
  background: var(--juso-white);
  color: var(--juso-ink);
}

body:not(.home) input:focus,
body:not(.home) textarea:focus,
body:not(.home) select:focus {
  border-color: var(--juso-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .12);
}

body:not(.home) .um {
  width: min(760px, calc(100% - 32px));
  margin: clamp(36px, 6vw, 72px) auto !important;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--juso-line);
  border-top: 6px solid var(--juso-red);
  border-radius: 8px;
  background: var(--juso-white);
}

/* Footer */
body:not(.home) #footer {
  margin-top: clamp(40px, 7vw, 90px);
  border-top: 1px solid var(--juso-red);
}

body:not(.home) .elementor-1722 .elementor-element.elementor-element-3b175d8,
body:not(.home) .elementor-1722 .elementor-element.elementor-element-3b175d8:not(.elementor-motion-effects-element-type-background) {
  padding: clamp(26px, 4vw, 46px) clamp(18px, 5vw, 72px);
  background: var(--juso-pink) !important;
}

body:not(.home) .elementor-1722,
body:not(.home) .elementor-1722 a,
body:not(.home) .elementor-1722 p {
  color: var(--juso-ink) !important;
  font-family: var(--juso-body);
}

body:not(.home) .elementor-1722 .elementor-icon,
body:not(.home) .elementor-1722 .elementor-icon svg {
  color: var(--juso-red) !important;
  fill: var(--juso-red) !important;
}

/* Dark mode shared with the homepage preference */
.jusos-theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--juso-ink);
  border-radius: 50%;
  background: var(--juso-white);
  color: var(--juso-ink);
  box-shadow: 0 8px 28px rgba(17, 17, 17, .16);
  cursor: pointer;
}

.jusos-theme-toggle:hover {
  border-color: var(--juso-red);
  background: var(--juso-red);
  color: #fff;
}

.jusos-theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.jusos-dark:not(.home) {
  --juso-ink: #f7f7f7;
  --juso-paper: #101010;
  --juso-pink: #1d1215;
  --juso-line: #383838;
  --juso-muted: #b8b8b8;
  --juso-white: #171717;
  color-scheme: dark;
}

body.jusos-dark:not(.home) #masthead {
  background: rgba(23, 23, 23, .96);
}

body.jusos-dark:not(.home) .elementor-1716 .elementor-element.elementor-element-7b1ae5c img {
  filter: brightness(0) invert(1);
}

body.jusos-dark:not(.home) .hero-section {
  background: linear-gradient(115deg, #101010 0 44%, #251316 100%);
}

body.jusos-dark:not(.home) .entry-card img {
  opacity: .88;
}

@media (max-width: 1024px) {
  body.blog .entries,
  body.archive .entries,
  body.search .entries {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:not(.home) .elementor-1716 .elementor-element.elementor-element-a1d6002 {
    padding-inline: 18px;
  }
}

@media (max-width: 767px) {
  body:not(.home) #masthead {
    position: relative;
  }

  body:not(.home) .elementor-1716 .elementor-element.elementor-element-a1d6002 {
    min-height: 64px;
  }

  body:not(.home) .elementor-1716 .elementor-element.elementor-element-7b1ae5c img {
    width: 82px;
    height: 48px;
  }

  body:not(.home) .elementor-1716 nav.hfe-dropdown {
    margin-top: 8px;
  }

  body:not(.home) .hero-section {
    padding: 46px 20px 52px;
  }

  body:not(.home) .page-title,
  body:not(.home) .hero-section .entry-title {
    font-size: clamp(42px, 13vw, 58px);
    line-height: .88;
  }

  body.single-post article.type-post > .entry-content {
    width: calc(100% - 24px);
    margin-block: 22px 42px;
    padding: 23px 20px 28px;
  }

  body.page:not(.home) article.type-page .elementor .e-con-boxed > .e-con-inner {
    width: calc(100% - 24px);
  }

  body.page:not(.home) article.type-page .elementor > .e-con {
    padding-block: 24px;
  }

  body.page:not(.home) article.type-page .elementor-widget-heading .elementor-heading-title {
    align-items: flex-start;
    font-size: clamp(34px, 11vw, 46px) !important;
    line-height: .9 !important;
  }

  body.page:not(.home) article.type-page .elementor-widget-text-editor > .elementor-widget-container {
    padding: 18px;
  }

  body.blog .entries,
  body.archive .entries,
  body.search .entries {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: calc(100% - 24px);
    margin-block: 24px 46px;
  }

  body.blog .entry-card .entry-title,
  body.archive .entry-card .entry-title,
  body.search .entry-card .entry-title {
    font-size: 31px;
  }

  body:not(.home) .elementor-1722 .elementor-element.elementor-element-3b175d8 {
    padding-inline: 20px;
  }

  .jusos-theme-toggle {
    right: 12px;
    bottom: 12px;
    width: 43px;
    height: 43px;
  }
}

/* Custom global shell: replaces the legacy Elementor header and footer */
body:not(.home) .site-main {
  display: block;
  width: 100%;
  min-height: 60vh;
}

.jusos-site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  height: 76px;
  border-bottom: 1px solid var(--juso-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(17, 17, 17, .045);
  backdrop-filter: blur(14px);
}

.jusos-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1500px, calc(100% - clamp(32px, 6vw, 110px)));
  height: 100%;
  margin-inline: auto;
}

.jusos-brand {
  flex: 0 0 auto;
}

.jusos-brand img {
  display: block;
  width: 104px;
  height: 58px;
  object-fit: contain;
}

.jusos-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.3vw, 34px);
  min-width: 0;
}

.jusos-primary-menu,
.jusos-primary-menu ul,
.jusos-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jusos-primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 28px);
}

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

.jusos-primary-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--juso-ink);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.jusos-primary-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.jusos-primary-menu > li > a:hover,
.jusos-primary-menu > li.current-menu-item > a,
.jusos-primary-menu > li.current-menu-ancestor > a {
  color: var(--juso-red);
}

.jusos-primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: -16px;
  z-index: 20;
  display: none;
  width: 245px;
  padding: 10px;
  border: 1px solid var(--juso-line);
  border-radius: 8px;
  background: var(--juso-white);
  box-shadow: 0 18px 50px rgba(17, 17, 17, .14);
}

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

.jusos-primary-menu .sub-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 4px;
  color: var(--juso-ink);
  font-size: 12px;
  font-weight: 700;
}

.jusos-primary-menu .sub-menu a:hover {
  background: var(--juso-pink);
  color: var(--juso-red);
}

.jusos-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.jusos-login,
.jusos-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--juso-ink);
  border-radius: 4px;
  color: var(--juso-ink);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.jusos-join {
  gap: 10px;
  border-color: var(--juso-red);
  background: var(--juso-red);
  color: #fff;
}

.jusos-login:hover {
  border-color: var(--juso-red);
  color: var(--juso-red);
}

.jusos-join:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--juso-ink);
}

.jusos-header-actions .jusos-theme-toggle {
  position: static;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  box-shadow: none;
}

.jusos-menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--juso-ink);
}

.jusos-menu-toggle svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.jusos-site-footer {
  margin-top: clamp(44px, 7vw, 90px);
  border-top: 1px solid var(--juso-red);
  background: var(--juso-pink);
  color: var(--juso-ink);
}

.jusos-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  width: min(1500px, calc(100% - clamp(32px, 6vw, 110px)));
  min-height: 150px;
  margin-inline: auto;
  padding-block: 30px;
}

.jusos-footer-lead {
  display: flex;
  align-items: center;
  gap: 18px;
}

.jusos-footer-brand img {
  display: block;
  width: 110px;
  height: 68px;
  object-fit: contain;
}

.jusos-footer-lead strong {
  display: block;
  font-family: var(--juso-display);
  font-size: 27px;
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.jusos-footer-lead p {
  margin: 7px 0 0;
  color: var(--juso-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.jusos-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.jusos-footer-menu a {
  color: var(--juso-ink);
  font-size: 11px;
  font-weight: 750;
}

.jusos-footer-menu a:hover {
  color: var(--juso-red);
}

.jusos-footer-social {
  display: flex;
  gap: 8px;
}

.jusos-footer-social a {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--juso-ink);
  border-radius: 50%;
  color: var(--juso-ink);
  font-size: 10px;
  font-weight: 900;
}

.jusos-footer-social a:hover {
  border-color: var(--juso-red);
  background: var(--juso-red);
  color: #fff;
}

/* Normalize Elementor-built posts inside the new editorial article shell */
body.single-post .entry-content > .elementor {
  width: 100%;
}

body.single-post .entry-content .elementor > .e-con,
body.single-post .entry-content .elementor .e-con-boxed {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
}

body.single-post .entry-content .elementor .e-con-boxed > .e-con-inner {
  width: 100%;
  max-width: none !important;
  padding: 0;
}

body.single-post .entry-content .elementor-widget-text-editor {
  margin: 0;
}

body.single-post .entry-content .elementor-widget-text-editor > .elementor-widget-container {
  padding: 0;
}

body.single-post .entry-content .elementor-widget-text-editor h2 {
  position: relative;
  margin-top: clamp(42px, 7vw, 76px);
  padding-top: 18px;
  border-top: 1px solid var(--juso-line);
  color: var(--juso-ink);
  font-family: var(--juso-display);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

body.single-post .entry-content .elementor-widget-text-editor h2::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 54px;
  height: 5px;
  border-radius: 20px;
  background: var(--juso-red);
}

body.jusos-dark:not(.home) .jusos-site-header {
  background: rgba(23, 23, 23, .96);
}

body.jusos-dark:not(.home) .jusos-navigation.is-open {
  background: var(--juso-white);
}

@media (max-width: 1100px) {
  .jusos-header-inner {
    width: calc(100% - 28px);
  }

  .jusos-primary-menu {
    gap: 14px;
  }

  .jusos-login {
    display: none;
  }
}

@media (max-width: 900px) {
  .jusos-site-header {
    height: 64px;
  }

  .jusos-brand img {
    width: 84px;
    height: 49px;
  }

  .jusos-menu-toggle {
    display: grid;
  }

  .jusos-navigation {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    z-index: 50;
    display: none;
    max-height: calc(100vh - 76px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--juso-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--juso-white);
    box-shadow: 0 20px 50px rgba(17, 17, 17, .16);
  }

  .jusos-navigation.is-open {
    display: block;
  }

  .jusos-primary-menu {
    display: grid;
    gap: 7px;
  }

  .jusos-primary-menu > li > a {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--juso-line);
    border-radius: 4px;
    background: var(--juso-paper);
  }

  .jusos-primary-menu > li.menu-item-has-children > a::after {
    display: none;
  }

  .jusos-primary-menu .sub-menu {
    position: static;
    display: grid;
    width: auto;
    margin: 5px 0 9px 14px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 3px solid var(--juso-red);
    border-radius: 0;
    box-shadow: none;
  }

  .jusos-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
    margin-top: 10px;
  }

  .jusos-login {
    display: inline-flex;
  }

  .jusos-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    width: calc(100% - 28px);
    padding-block: 30px;
  }

  .jusos-footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .jusos-header-actions {
    grid-template-columns: 1fr 42px;
  }

  .jusos-login {
    display: none;
  }

  .jusos-footer-lead {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Full-width editorial layout for large desktop screens */
body:not(.home) .hero-section .entry-header {
  width: min(1800px, 100%);
  max-width: none !important;
  margin-inline: auto;
}

body:not(.home) .page-title,
body:not(.home) .hero-section .entry-title {
  width: 100%;
  max-width: 1800px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.page:not(.home) article.type-page .elementor-widget-heading,
body.page:not(.home) article.type-page .elementor-widget-heading > .elementor-widget-container {
  width: 100%;
  max-width: none !important;
}

@media (min-width: 1100px) {
  body:not(.home) main.site-main > .ct-container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  body.single-post main.site-main > .ct-container-full[data-content="narrow"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    --theme-container-width: 100%;
    --theme-content-width: 100%;
  }

  body.single-post article.type-post {
    width: 100%;
    max-width: none;
  }

  body.single-post .hero-section.is-width-constrained {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.single-post .entry-content.is-layout-constrained > .elementor,
  body.single-post .entry-content .elementor .e-con-boxed > .e-con-inner,
  body.single-post .entry-content .elementor-widget-text-editor,
  body.single-post .entry-content .elementor-widget-text-editor > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
  }

  body:not(.home) .hero-section {
    padding-inline: clamp(56px, 5vw, 120px);
  }

  body:not(.home) .page-title,
  body:not(.home) .hero-section .entry-title {
    max-width: min(1800px, 92vw);
    font-size: clamp(72px, 6.4vw, 124px);
    line-height: .84;
    letter-spacing: -.035em;
    text-wrap: wrap;
  }

  body.blog .entries,
  body.archive .entries,
  body.search .entries {
    width: min(1800px, calc(100% - clamp(64px, 7vw, 150px)));
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(18px, 1.5vw, 30px) !important;
  }

  body.blog .entry-card .entry-title,
  body.archive .entry-card .entry-title,
  body.search .entry-card .entry-title {
    font-size: clamp(34px, 2.5vw, 48px);
    line-height: .92;
  }

  body.single-post article.type-post > .entry-content {
    width: min(1700px, calc(100% - clamp(64px, 7vw, 150px)));
    max-width: none;
    padding-inline: clamp(48px, 5vw, 96px);
  }

  body.single-post .entry-content p,
  body.single-post .entry-content ul,
  body.single-post .entry-content ol,
  body.single-post .entry-content blockquote {
    width: 100%;
    max-width: 1200px;
  }

  body.single-post .entry-content h2,
  body.single-post .entry-content h3,
  body.single-post .entry-content h4,
  body.single-post .entry-content .elementor-widget-text-editor h2 {
    width: 100%;
    max-width: 1450px;
  }

  body.single-post .entry-content h2,
  body.single-post .entry-content .elementor-widget-text-editor h2 {
    font-size: clamp(58px, 5vw, 88px);
  }

  body.page:not(.home) article.type-page .elementor .e-con-boxed > .e-con-inner {
    width: min(1700px, calc(100% - clamp(64px, 7vw, 150px)));
    max-width: 1700px !important;
  }

  body.page:not(.home) article.type-page .elementor-widget-heading .elementor-heading-title {
    width: 100%;
    max-width: none !important;
    font-size: clamp(58px, 5vw, 88px) !important;
    line-height: .86 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) *,
  body:not(.home) *::before,
  body:not(.home) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
