:root {
  --bg: #f3f5f4;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --surface-soft: #edf0ef;
  --ink: #20262e;
  --muted: #68717c;
  --line: rgba(32, 38, 46, 0.11);
  --brand: #a92f55;
  --brand-strong: #87233f;
  --accent: #e2b95b;
  --shadow: 0 12px 32px rgba(32, 38, 46, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-ui);
  --font-body: var(--font-ui);
}

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

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.004em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: var(--brand-strong); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
summary,
label[for] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header-submit-button,
.home-submit-nudge__button,
.mobile-feed-dock__item--submit,
.post-action-btn,
.menu-toggle,
.submenu-toggle {
  -webkit-user-select: none;
  user-select: none;
}
img { max-width: 100%; height: auto; }
#page {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
.container { width: min(calc(100% - 28px), var(--container)); margin: 0 auto; }

.site-header {
  position: relative;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 253, 0.92);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 9px 0 8px;
}

.site-branding { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 0 0 auto; }
.site-kicker, .eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-title, .site-title a {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.05vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-decoration: none;
}

.site-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.site-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.site-actions .search-field { width: min(184px, 26vw); padding: 10px 13px; }
.site-actions .header-submit-button { min-height: 42px; padding: 0 16px; font-size: 0.94rem; }
.search-form { display: flex; align-items: center; gap: 8px; }
.site-actions .search-form { margin-left: 0; }
.live-search-form { position: relative; }
.mobile-nav-search { display: none; }
.search-close { display: none; }

@media (max-width: 1120px) {
  .site-header__inner { min-height: 56px; position: relative; }
  .site-branding { min-width: 0; flex: 0 0 auto; }
  .site-branding > div { min-width: 0; }
  .site-title { max-width: min(38vw, 11rem); overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .site-title, .site-title a { font-size: clamp(0.88rem, 3.05vw, 1rem); line-height: 0.98; }
}

.search-field {
  width: min(240px, 36vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 16px;
  font-family: var(--font-ui);
  font-size: 1rem;
}

.search-submit, .button, .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.search-submit, .button-primary, .form-submit .submit {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(187, 62, 91, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(31, 41, 51, 0.12);
}

.search-submit:hover,
.search-submit:focus,
.search-submit:focus-visible,
.button:hover,
.button:focus,
.button:focus-visible,
.form-submit .submit:hover,
.form-submit .submit:focus,
.form-submit .submit:focus-visible {
  transform: none;
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.12);
  text-decoration: none;
}

.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 10px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
  backdrop-filter: blur(10px);
}

.live-search-results__label,
.live-search-results__status {
  padding: 8px 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-search-results__status.is-error {
  color: var(--brand-strong);
}

.live-search-results__list {
  display: grid;
  gap: 8px;
}

.live-search-results__item,
.live-search-results__item:link,
.live-search-results__item:visited {
  display: block;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(31, 41, 51, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.live-search-results__item:hover,
.live-search-results__item:focus {
  border-color: rgba(187, 62, 91, 0.24);
  background: #fff;
  color: var(--brand-strong);
}

.live-search-results__title,
.live-search-results__meta,
.live-search-results__summary,
.live-search-results__more {
  display: block;
}

.live-search-results__title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.live-search-results__meta,
.live-search-results__summary,
.live-search-results__more {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.45;
}

.live-search-results__meta,
.live-search-results__summary {
  color: var(--muted);
}

.live-search-results__more {
  padding: 10px 10px 4px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  flex-shrink: 0;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  appearance: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.menu-toggle[aria-expanded="true"],
body.nav-open .menu-toggle {
  border-color: rgba(187, 62, 91, 0.16);
  background: linear-gradient(180deg, rgba(187, 62, 91, 0.04), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 18px rgba(187, 62, 91, 0.08), 0 0 0 2px rgba(187, 62, 91, 0.04);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar,
body.nav-open .menu-toggle .menu-toggle__bar {
  background: #a63a50;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:focus-visible {
  border-color: rgba(187, 62, 91, 0.16);
  background: linear-gradient(180deg, rgba(187, 62, 91, 0.04), rgba(255, 255, 255, 0.99));
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.06), 0 0 0 2px rgba(187, 62, 91, 0.04);
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  min-width: 20px;
  height: 2px;
  min-height: 2px;
  margin: 0;
  background: var(--ink);
  border-radius: 999px;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  flex: 0 0 2px;
}

.main-navigation {
  border-top: 1px solid rgba(31, 41, 51, 0.06);
  position: relative;
}

.main-navigation > .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-account-links {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.header-account-link,
.header-account-link:link,
.header-account-link:visited {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.13);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.header-account-link:hover,
.header-account-link:focus,
.header-account-link:focus-visible {
  border-color: rgba(187, 62, 91, 0.22);
  background: rgba(187, 62, 91, 0.055);
  color: var(--brand-strong);
  text-decoration: none;
}

.header-account-link--register,
.header-account-link--profile,
.header-account-link--favorites {
  background: rgba(187, 62, 91, 0.1);
}

.header-account-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.header-account-link__count[hidden] {
  display: none !important;
}

.main-navigation .container > ul,
.main-navigation .container > div > ul,
.main-navigation .container > nav > ul,
.main-navigation .menu {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  overflow: visible;
  overflow-y: visible;
  scrollbar-width: none;
}

.main-navigation .container > ul::-webkit-scrollbar,
.main-navigation .container > div > ul::-webkit-scrollbar,
.main-navigation .container > nav > ul::-webkit-scrollbar,
.main-navigation .menu::-webkit-scrollbar {
  display: none;
}

.main-navigation .container > ul > li,
.main-navigation .container > div > ul > li,
.main-navigation .container > nav > ul > li,
.main-navigation .menu > li {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
  background: rgba(187, 62, 91, 0.08);
  color: var(--brand-strong);
  text-decoration: none;
}

.main-navigation .header-account-link,
.main-navigation .header-account-link:link,
.main-navigation .header-account-link:visited {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.13);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.main-navigation .header-account-link:hover,
.main-navigation .header-account-link:focus,
.main-navigation .header-account-link:focus-visible {
  border-color: rgba(187, 62, 91, 0.22);
  background: rgba(187, 62, 91, 0.055);
  color: var(--brand-strong);
  text-decoration: none;
}

.main-navigation .header-account-link--register,
.main-navigation .header-account-link--profile,
.main-navigation .header-account-link--favorites {
  background: rgba(187, 62, 91, 0.1);
}

.main-navigation .menu-item-has-children > a::after,
.main-navigation .page_item_has_children > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.main-navigation .menu-item-has-children > a,
.main-navigation .page_item_has_children > a {
  padding-right: 8px;
}

.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1;
  flex: 0 0 36px;
}

.submenu-toggle::before {
  content: "+";
  display: block;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

.menu-item-has-children.is-submenu-open > .submenu-toggle::before,
.page_item_has_children.is-submenu-open > .submenu-toggle::before {
  content: "-";
  transform: none;
}

.menu-item-has-children.is-submenu-pinned > .menu-item-row > a,
.page_item_has_children.is-submenu-pinned > .menu-item-row > a {
  color: var(--brand-strong);
}

.main-navigation ul ul,
.main-navigation .sub-menu,
.main-navigation .children {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: none;
  min-width: 220px;
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(31, 41, 51, 0.12);
}

.main-navigation ul ul li,
.main-navigation .sub-menu li,
.main-navigation .children li {
  position: relative;
}

.main-navigation ul ul a,
.main-navigation .sub-menu a,
.main-navigation .children a {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  justify-content: flex-start;
  white-space: nowrap;
}

.main-navigation .container > ul > li:hover > ul,
.main-navigation .container > ul > li:focus-within > ul,
.main-navigation .container > div > ul > li:hover > ul,
.main-navigation .container > div > ul > li:focus-within > ul,
.main-navigation .container > nav > ul > li:hover > ul,
.main-navigation .container > nav > ul > li:focus-within > ul,
.main-navigation .menu > li:hover > ul,
.main-navigation .menu > li:focus-within > ul {
  display: block;
}

.main-navigation .menu-item-has-children.is-submenu-open > ul,
.main-navigation .page_item_has_children.is-submenu-open > ul,
.main-navigation .menu-item-has-children.is-submenu-open > .sub-menu,
.main-navigation .page_item_has_children.is-submenu-open > .children {
  display: block;
}

.main-navigation .menu-item-has-children > .sub-menu:not([aria-hidden="false"]),
.main-navigation .page_item_has_children > .children:not([aria-hidden="false"]) {
  display: none;
}

@media (min-width: 1121px) {
  .main-navigation > .container {
    flex-wrap: nowrap;
  }

  .header-account-links {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .header-account-link--favorites {
    display: none !important;
  }

  .main-navigation .container > ul,
  .main-navigation .container > div > ul,
  .main-navigation .container > nav > ul,
  .main-navigation .menu {
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    min-width: 0;
    gap: 6px;
  }

  .main-navigation a {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }

  .main-navigation .header-account-link,
  .main-navigation .header-account-link:link,
  .main-navigation .header-account-link:visited {
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-actions {
    flex-direction: row;
  }

  .site-actions .header-submit-button {
    order: 1;
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 0.94rem;
    box-shadow: 0 10px 20px rgba(187, 62, 91, 0.18);
  }

  .site-actions .search-submit {
    min-height: 54px;
    border: 1px solid rgba(187, 62, 91, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-strong);
    box-shadow: none;
  }

  .site-actions .search-submit:hover,
  .site-actions .search-submit:focus,
  .site-actions .search-submit:focus-visible {
    background: rgba(187, 62, 91, 0.08);
    box-shadow: 0 10px 22px rgba(31, 41, 51, 0.08);
  }

  .search-form {
    order: 2;
  }

  .search-field {
    width: min(220px, 28vw);
  }

  .main-navigation .menu-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .submenu-toggle {
    display: none;
  }

  .main-navigation .menu-item-has-children:hover > ul,
  .main-navigation .menu-item-has-children:hover > .sub-menu,
  .main-navigation .page_item_has_children:hover > ul,
  .main-navigation .page_item_has_children:hover > .children,
  .main-navigation .menu-item-has-children:focus-within > ul,
  .main-navigation .menu-item-has-children:focus-within > .sub-menu,
  .main-navigation .page_item_has_children:focus-within > ul,
  .main-navigation .page_item_has_children:focus-within > .children,
  .main-navigation .menu-item-has-children.is-submenu-open > ul,
  .main-navigation .menu-item-has-children.is-submenu-open > .sub-menu,
  .main-navigation .page_item_has_children.is-submenu-open > ul,
  .main-navigation .page_item_has_children.is-submenu-open > .children {
    display: block;
  }

  .main-navigation .menu-item-has-children:hover > .sub-menu[aria-hidden="true"],
  .main-navigation .page_item_has_children:hover > .children[aria-hidden="true"],
  .main-navigation .menu-item-has-children:focus-within > .sub-menu[aria-hidden="true"],
  .main-navigation .page_item_has_children:focus-within > .children[aria-hidden="true"] {
    display: block;
  }
}

.main-navigation .container > ul > li > ul > li,
.main-navigation .container > div > ul > li > ul > li,
.main-navigation .container > nav > ul > li > ul > li,
.main-navigation .menu > li > ul > li {
  display: block;
  width: 100%;
}

/* Kompakte, automatisch aus WordPress-Kategorien erzeugte Navigation. */
@media (min-width: 1121px) {
  .retention-primary-menu .retention-categories-item > .retention-categories-menu {
    left: 0;
    width: min(760px, calc(100vw - 40px));
    max-height: min(66vh, 520px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 8px;
    padding: 14px;
  }

  .retention-primary-menu .retention-categories-item:hover > .retention-categories-menu,
  .retention-primary-menu .retention-categories-item:focus-within > .retention-categories-menu,
  .retention-primary-menu .retention-categories-item.is-submenu-open > .retention-categories-menu {
    display: grid !important;
  }

  .retention-primary-menu .retention-categories-menu a {
    min-height: 36px;
    padding: 7px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1120px) {
  .main-navigation .retention-primary-menu {
    gap: 3px;
  }

  .main-navigation .retention-categories-item > .retention-categories-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
    max-height: min(52vh, 420px) !important;
    padding: 7px !important;
    overflow-y: auto !important;
  }

  .main-navigation .retention-categories-item.is-submenu-open > .retention-categories-menu {
    display: grid !important;
  }

  .main-navigation .retention-categories-menu a {
    min-height: 38px;
    padding: 7px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .home .posts-stack {
    gap: 3px;
  }

  .home .post-card {
    padding: 10px 14px 5px;
  }

  .post-card .entry-title {
    display: -webkit-box;
    max-height: 2.2em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .post-card .entry-summary p:last-child {
    margin-bottom: 0.34em;
  }
}

/* wpDiscuz: keep the post-author marker calm and easy to scan. */
#comments #wpdcom .bwp-comment-submit-loading {
  cursor: wait !important;
  opacity: 0.74 !important;
  pointer-events: none !important;
}

.submit-draft-notice {
  margin: 8px 0 0;
  color: #2d6b54;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

body.bwp-comment-submitting #wpdiscuz-loading-bar {
  display: none !important;
}

#comments #wpdcom .wpd-blog-post_author .bwp-post-author-label {
  display: inline-flex !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  clear: none !important;
  align-items: center;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 0 0 7px !important;
  padding: 2px 7px !important;
  border: 1px solid rgba(31, 122, 92, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(31, 122, 92, 0.08) !important;
  color: #246f59 !important;
  font-family: var(--font-ui) !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  vertical-align: middle;
  box-shadow: none !important;
}

#comments #wpdcom .wpd-blog-post_author .bwp-post-author-label span {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

@media (max-width: 760px) {
  #comments #wpdcom .wpd-blog-post_author .bwp-post-author-label {
    margin-left: 5px !important;
    padding: 2px 6px !important;
    font-size: 0.63rem !important;
  }
}

/* Final retention overrides: keep these after all legacy component rules. */
#comments.comments-area {
  position: relative !important;
  margin-top: 10px !important;
  padding: 18px 20px !important;
  overflow: clip !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
  box-shadow: var(--shadow) !important;
}

#comments .comments-community-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px !important;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

#comments .comments-community-heading__eyebrow {
  margin: 0 0 3px !important;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

#comments .comments-community-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.15;
}

#comments .comments-community-heading__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

#comments #wpdcom,
#comments #wpdcom input,
#comments #wpdcom textarea,
#comments #wpdcom button,
#comments #wpdcom select,
#comments #wpdcom .ql-editor {
  font-family: var(--font-ui) !important;
}

#comments #wpdcom textarea,
#comments #wpdcom .ql-editor,
#comments .comment-form textarea {
  min-height: 58px !important;
  padding: 13px 15px !important;
  border-color: var(--line) !important;
  border-radius: 12px !important;
  background: #fbfcfb !important;
  color: var(--ink) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

#comments #wpdcom textarea:focus,
#comments #wpdcom .ql-editor:focus,
#comments .comment-form textarea:focus,
#comments.is-comment-open #wpdcom textarea,
#comments.is-comment-open #wpdcom .ql-editor {
  min-height: 132px !important;
  background: #fff !important;
  outline: 2px solid rgba(180, 55, 89, 0.12) !important;
  outline-offset: 1px;
}

#comments #wpdcom .ql-toolbar,
#comments #wpdcom .wpd-tools-wrapper,
#comments #wpdcom .wc-field-comment .wpd-editor-buttons {
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  border-width: 0 !important;
  opacity: 0;
  pointer-events: none;
  transition: max-height 180ms ease, opacity 150ms ease, padding 180ms ease !important;
}

#comments:focus-within #wpdcom .ql-toolbar,
#comments:focus-within #wpdcom .wpd-tools-wrapper,
#comments:focus-within #wpdcom .wc-field-comment .wpd-editor-buttons,
#comments.is-comment-open #wpdcom .ql-toolbar,
#comments.is-comment-open #wpdcom .wpd-tools-wrapper,
#comments.is-comment-open #wpdcom .wc-field-comment .wpd-editor-buttons {
  max-height: 84px !important;
  padding: 7px 10px !important;
  border-width: 1px !important;
  border-color: var(--line) !important;
  opacity: 1;
  pointer-events: auto;
}

#comments #wpdcom .wpd-comment-author,
#comments #wpdcom .wpd-comment-author a,
#comments #wpdcom .wpd-thread-info,
#comments #wpdcom .wpd-comment-text,
#comments #wpdcom .wpd-comment-text p {
  color: var(--ink) !important;
}

#comments #wpdcom .wpd-primary-color,
#comments #wpdcom .wpd-comment-label {
  color: var(--brand) !important;
}

#comments #wpdcom .wpd-primary-bg-color,
#comments #wpdcom input[type="submit"],
#comments #wpdcom button[type="submit"] {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* wpDiscuz still renders its media control after media uploads are disabled. */
#comments #wpdcom .wmu-upload-wrap,
#comments #wpdcom .wpd-editor-buttons-right,
#comments #wpdcom input.wmu-add-files {
  display: none !important;
}

body.single-post .single-related {
  margin-top: 12px;
  border-radius: var(--radius);
}

body.single-post .single-discovery {
  margin-top: 12px;
  padding: 18px !important;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #fbf5f6 100%);
}

body.single-post .single-discovery__header,
body.single-post .single-discovery__header h2,
body.single-post .single-discovery__label {
  display: block;
}

body.single-post .single-discovery__header {
  margin-bottom: 12px;
}

body.single-post .single-discovery__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 10px;
}

body.single-post .single-discovery__card {
  min-height: 58px;
  justify-content: center;
  border-radius: 12px !important;
}

@media (max-width: 760px) {
  .site-footer .container.site-footer__inner {
    box-sizing: border-box;
    width: 100%;
    padding-inline: 16px;
  }

  #comments.comments-area {
    margin-top: 5px !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }

  #comments .comments-community-heading {
    align-items: flex-start;
    margin-bottom: 10px !important;
    padding-bottom: 10px;
  }

  #comments .comments-community-heading__count {
    padding-top: 17px;
    font-size: 0.72rem;
  }

  #comments #wpdcom textarea:focus,
  #comments #wpdcom .ql-editor:focus,
  #comments.is-comment-open #wpdcom textarea,
  #comments.is-comment-open #wpdcom .ql-editor {
    min-height: 116px !important;
  }

  body.single-post .single-discovery {
    display: none !important;
  }

  body.single-post .single-sticky-loop {
    transition: opacity 160ms ease, visibility 160ms ease, transform 180ms ease !important;
  }

  html body.single-post:not(.comment-compose-active):not(.nav-open) .single-sticky-loop {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
  }

  html body.single-post.comment-compose-active .single-sticky-loop,
  html body.single-post.nav-open .single-sticky-loop {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(-50%, calc(100% + 24px), 0) !important;
  }
}

/* Desktop wpDiscuz subscription controls: match the calm mobile rounding. */
@media (min-width: 761px) {
  #comments #wpdcom .wpdiscuz-subscribe-form-option select,
  #comments #wpdcom .wpdiscuz-subscribe-form-email input {
    border-radius: 10px !important;
  }

  #comments #wpdcom #wpdiscuz_subscription_button {
    border-radius: 6px !important;
  }
}

/* Retention design pass: calmer hierarchy and one visual language. */
.card,
.post-card,
.single-card,
.comments-area,
.single-related,
.single-discovery,
.widget {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-title,
.post-card .entry-title,
.single-card .entry-title,
.widget-title,
.single-related__title {
  letter-spacing: -0.025em;
}

.widget a:not(.button):not(.btn),
.sidebar-layout__aside .widget a:not(.button):not(.btn) {
  color: var(--ink);
}

.widget a:not(.button):not(.btn):hover,
.widget a:not(.button):not(.btn):focus-visible,
.sidebar-layout__aside .widget a:not(.button):not(.btn):hover,
.sidebar-layout__aside .widget a:not(.button):not(.btn):focus-visible {
  color: var(--brand-strong);
}

.comments-area {
  position: relative;
  margin-top: 10px;
  padding: 18px 20px !important;
  overflow: clip;
  background: var(--paper);
}

.comments-community-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.comments-community-heading__eyebrow {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.comments-community-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.15;
}

.comments-community-heading__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.comments-area .comment-nudge {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.45;
}

.comments-area #wpdcom,
.comments-area #wpdcom input,
.comments-area #wpdcom textarea,
.comments-area #wpdcom button,
.comments-area #wpdcom select,
.comments-area #wpdcom .ql-editor {
  font-family: var(--font-ui) !important;
}

.comments-area #wpdcom {
  margin: 0 !important;
  color: var(--ink) !important;
}

.comments-area #wpdcom .wpd-form-wrap,
.comments-area #wpdcom .wpd-comment-form,
.comments-area #wpdcom .wc-field-comment,
.comments-area #wpdcom .wpd-textarea-wrap,
.comments-area #wpdcom .wpdiscuz-textarea-wrap,
.comments-area #wpdcom .ql-container {
  border-color: var(--line) !important;
  border-radius: 12px !important;
  background: #fbfcfb !important;
  box-shadow: none !important;
}

.comments-area #wpdcom textarea,
.comments-area #wpdcom .ql-editor,
.comments-area .comment-form textarea {
  min-height: 58px !important;
  padding: 13px 15px !important;
  color: var(--ink) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  transition: min-height 180ms ease, background-color 180ms ease, border-color 180ms ease !important;
}

.comments-area #wpdcom textarea:focus,
.comments-area #wpdcom .ql-editor:focus,
.comments-area .comment-form textarea:focus {
  min-height: 132px !important;
  background: #fff !important;
  outline: 2px solid rgba(180, 55, 89, 0.12) !important;
  outline-offset: 1px;
}

.comments-area #wpdcom .ql-toolbar,
.comments-area #wpdcom .wpd-tools-wrapper,
.comments-area #wpdcom .wc-field-comment .wpd-editor-buttons {
  max-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  border-width: 0 !important;
  opacity: 0;
  pointer-events: none;
  transition: max-height 180ms ease, opacity 150ms ease, padding 180ms ease !important;
}

.comments-area:focus-within #wpdcom .ql-toolbar,
.comments-area:focus-within #wpdcom .wpd-tools-wrapper,
.comments-area:focus-within #wpdcom .wc-field-comment .wpd-editor-buttons,
.comments-area.is-comment-open #wpdcom .ql-toolbar,
.comments-area.is-comment-open #wpdcom .wpd-tools-wrapper,
.comments-area.is-comment-open #wpdcom .wc-field-comment .wpd-editor-buttons {
  max-height: 84px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  border-width: 1px !important;
  opacity: 1;
  pointer-events: auto;
}

.comments-area #wpdcom .wpd-thread-head,
.comments-area #wpdcom .wpd-comment-wrap,
.comments-area #wpdcom .wpd-comment-footer {
  border-color: var(--line) !important;
}

.comments-area #wpdcom .wpd-comment-wrap {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.comments-area #wpdcom .wpd-comment-author,
.comments-area #wpdcom .wpd-comment-author a,
.comments-area #wpdcom .wpd-thread-info {
  color: var(--ink) !important;
  font-weight: 750 !important;
}

.comments-area #wpdcom .wpd-comment-text,
.comments-area #wpdcom .wpd-comment-text p {
  color: var(--ink) !important;
  font-size: 0.92rem !important;
  line-height: 1.62 !important;
}

.comments-area #wpdcom .wpd-comment-date,
.comments-area #wpdcom .wpd-reply-button,
.comments-area #wpdcom .wpd-comment-footer {
  color: var(--muted) !important;
}

.comments-area #wpdcom .wpd-primary-color,
.comments-area #wpdcom .wpd-thread-head .wpd-thread-info,
.comments-area #wpdcom .wpd-comment-label {
  color: var(--brand) !important;
}

.comments-area #wpdcom .wpd-primary-bg-color,
.comments-area #wpdcom input[type="submit"],
.comments-area #wpdcom button[type="submit"] {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.comments-area #wpdcom .wpd-primary-bg-color:hover,
.comments-area #wpdcom input[type="submit"]:hover,
.comments-area #wpdcom button[type="submit"]:hover {
  border-color: var(--brand-strong) !important;
  background: var(--brand-strong) !important;
}

.single-related {
  margin-top: 12px;
}

.single-discovery {
  margin-top: 12px;
  padding: 18px !important;
  background: linear-gradient(135deg, #fff 0%, #fbf5f6 100%);
}

.single-discovery__header {
  display: block;
  margin-bottom: 12px;
}

.single-discovery__header h2 {
  display: block;
  color: var(--ink);
}

.single-discovery__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 10px;
}

.single-discovery__card {
  min-height: 58px;
  justify-content: center;
  border-radius: 12px !important;
}

.single-discovery__label {
  display: block;
  opacity: 0.78;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .card,
  .post-card,
  .single-card,
  .comments-area,
  .single-related,
  .widget {
    border-radius: 12px;
  }

  .comments-area {
    margin-top: 5px;
    padding: 14px 12px !important;
  }

  .comments-community-heading {
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .comments-community-heading__count {
    padding-top: 17px;
    font-size: 0.72rem;
  }

  .comments-area #wpdcom textarea:focus,
  .comments-area #wpdcom .ql-editor:focus,
  .comments-area .comment-form textarea:focus {
    min-height: 116px !important;
  }

  body.single-post .single-discovery {
    display: none;
  }

  body.single-post .single-sticky-loop {
    transition: opacity 160ms ease, visibility 160ms ease, transform 180ms ease !important;
  }

  body.single-post.comments-in-view .single-sticky-loop,
  body.single-post.comment-compose-active .single-sticky-loop {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 24px), 0) !important;
  }
}

/* Eine Sortiernavigation pro Oberfläche: Desktop im Kopf, mobil im Dock. */
@media (min-width: 1121px) {
  body.home .section-heading-home,
  body.category .section-heading-category {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  .retention-primary-menu > .retention-sort-item {
    display: none !important;
  }
}

.retention-favorites-item > a {
  gap: 6px;
}

.retention-favorites-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
}

.archive-all-jokes-link,
.archive-all-jokes-link:link,
.archive-all-jokes-link:visited {
  margin-left: auto;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.archive-all-jokes-link:hover,
.archive-all-jokes-link:focus,
.archive-all-jokes-link:focus-visible {
  text-decoration: underline;
}

.site-content { padding: 10px 0 42px; }
.single-post .site-content { padding-top: 0; }
.category .site-content { padding-top: 0; }
.page:has(.is-submit-page) .site-content { padding-top: 4px; }
.site-content:has(.is-profile-layout) { padding-top: 0; }
.home .site-content { padding-top: 0; }

.homepage-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
  font-size: 0;
}

.homepage-ad-slot:empty {
  display: none;
}

.homepage-ad-slot > * {
  width: 100%;
  margin: 0 !important;
}

.homepage-ad-slot .code-block,
.homepage-ad-slot .code-block-1,
.homepage-ad-slot .code-block-2,
.homepage-ad-slot .google-auto-placed,
.homepage-ad-slot .adsbygoogle,
.homepage-ad-slot ins,
.homepage-ad-slot [id^="aswift_"][id$="_host"],
.homepage-ad-slot iframe {
  display: block;
  max-width: 100%;
  max-height: none;
  margin: 0 !important;
  padding: 0 !important;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.submission-panel, .archive-header, .empty-state, .comments-area, .single-card, .post-card, .page-card, .widget {
  padding: 16px 18px;
}

.widget {
  padding: 16px 18px;
  overflow: hidden;
}
.section-heading { margin-bottom: 12px; }
.section-heading-home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 10px;
  margin-bottom: 2px;
}

.section-heading-category {
  margin: -1px 0 3px;
}

.category .section-heading-category .home-feed-tabs {
  margin: 1px 0 3px;
}

.category .posts-stack {
  margin-top: 0;
}

.section-heading.section-heading-home h2 {
  font-size: clamp(1.08rem, 1.35vw, 1.46rem);
  line-height: 1.02;
}

.home-feed-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin: 1px 0 3px;
}

.home-feed-tab__icon {
  display: inline-flex;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: currentColor;
}

.home-feed-tab__icon svg {
  width: 100%;
  height: 100%;
}

.home-feed-tab,
.home-feed-tab:link,
.home-feed-tab:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -webkit-touch-callout: none;
  user-select: none;
  outline: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.home-feed-tab:hover,
.home-feed-tab:focus,
.home-feed-tab:focus-visible {
  border-color: rgba(187, 62, 91, 0.18);
  background: rgba(187, 62, 91, 0.08);
  color: var(--brand-strong);
  text-decoration: none;
}

.home-feed-tab:active {
  border-color: rgba(187, 62, 91, 0.22);
  background: rgba(187, 62, 91, 0.1);
  color: var(--brand-strong);
}

.home-feed-tab.is-active {
  border-color: rgba(187, 62, 91, 0.22);
  background: linear-gradient(135deg, rgba(187, 62, 91, 0.12), rgba(226, 185, 91, 0.1));
  color: var(--brand-strong);
}

.home-feed-tab--favorites.is-active,
.home-feed-tab--favorites[aria-current="page"] {
  border-color: rgba(187, 62, 91, 0.52) !important;
  background: linear-gradient(135deg, rgba(187, 62, 91, 0.38), rgba(255, 220, 228, 0.99)) !important;
  color: var(--brand-strong) !important;
  box-shadow: 0 10px 20px rgba(187, 62, 91, 0.16) !important;
}

.home-feed-tab--favorites.is-active:hover,
.home-feed-tab--favorites.is-active:focus,
.home-feed-tab--favorites.is-active:focus-visible {
  border-color: rgba(187, 62, 91, 0.52) !important;
  background: linear-gradient(135deg, rgba(187, 62, 91, 0.38), rgba(255, 220, 228, 0.99)) !important;
  color: var(--brand-strong) !important;
  box-shadow: 0 10px 20px rgba(187, 62, 91, 0.16) !important;
}

.home-feed-tab--favorites,
.home-feed-tab--favorites:link,
.home-feed-tab--favorites:visited {
  position: relative;
  gap: 6px;
  min-width: 0;
  margin-left: 2px;
  padding-inline: 11px;
  border-color: rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.home-feed-tab--favorites .home-feed-tab__label {
  font-weight: 650;
}

.home-feed-tab--favorites:not(.is-active):hover,
.home-feed-tab--favorites:not(.is-active):focus,
.home-feed-tab--favorites:not(.is-active):focus-visible {
  border-color: rgba(187, 62, 91, 0.18);
  background: rgba(187, 62, 91, 0.08);
  color: var(--brand-strong);
}

.home-feed-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(187, 62, 91, 0.9);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.home-feed-tab__count[hidden] {
  display: none !important;
}

.home-favorites[hidden] {
  display: none !important;
}

.home-favorites {
  margin: 2px 0 12px;
  display: grid;
  gap: 10px;
}

.home-favorites__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.home-favorites__title-wrap {
  display: grid;
  gap: 2px;
}

.home-favorites__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.35vw, 1.46rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.home-favorites__hint {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.86rem;
}

.home-favorites__toggle,
.home-favorites__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.home-favorites__toggle:hover,
.home-favorites__toggle:focus,
.home-favorites__toggle:focus-visible,
.home-favorites__page-btn:hover,
.home-favorites__page-btn:focus,
.home-favorites__page-btn:focus-visible {
  border-color: rgba(187, 62, 91, 0.18);
  background: rgba(187, 62, 91, 0.08);
  color: var(--brand-strong);
}

.home-favorites__empty {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.home-favorites__list {
  display: grid;
  gap: 6px;
}

.home-favorites__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.home-favorites__page-info {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.archive-header {
  margin-bottom: 2px;
}

.archive-kicker {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.96rem;
}

.archive-header--category {
  padding: 6px 12px 6px;
  background:
    radial-gradient(circle at right top, rgba(226, 185, 91, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 249, 0.96));
}

.archive-header--category .eyebrow {
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.archive-titleline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 9px;
}

.archive-header--category h1 {
  font-size: clamp(1.36rem, 2.4vw, 1.82rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
}

.archive-header--category .archive-kicker {
  margin: 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.archive-header--category .archive-description {
  margin-top: 2px;
}

.author-profile {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px 20px;
}

.author-profile__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-profile__avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
}

.author-profile__intro {
  min-width: 0;
}

.author-profile h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.author-profile__stats,
.author-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.author-profile__stats {
  margin-top: 8px;
}

.author-profile__stats span,
.author-profile__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.author-profile__badges span {
  background: rgba(187, 62, 91, 0.08);
}

.author-follow,
.author-follow:link,
.author-follow:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.18);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.author-follow:hover,
.author-follow:focus,
.author-follow:focus-visible {
  background: var(--brand-strong);
  color: #fff;
  text-decoration: none;
}

.author-follow.is-following,
.author-follow--self {
  border-color: rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-strong);
}

.author-follow.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.author-follow:disabled {
  cursor: wait;
}

.author-follow__count {
  opacity: 0.78;
  font-weight: 750;
}

.author-jokes-heading {
  align-items: center;
  gap: 8px 12px;
}

.author-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.author-profile-tab,
.author-profile-tab:link,
.author-profile-tab:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.author-profile-tab:hover,
.author-profile-tab:focus,
.author-profile-tab:focus-visible {
  background: rgba(187, 62, 91, 0.06);
  color: var(--brand-strong);
  text-decoration: none;
}

.author-profile-tab.is-active,
.author-profile-tab.is-active:link,
.author-profile-tab.is-active:visited {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.author-profile-tab__count {
  margin-left: 5px;
  font-size: 0.76rem;
  opacity: 0.78;
}

.section-heading h2, .archive-header h1, .entry-title, .comments-title, .empty-state h1, .empty-state h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.single-card .entry-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: block;
  list-style: none;
}

.single-card .entry-title::before,
.single-card .entry-title::marker,
.single-card .entry-header::before,
.single-card .entry-header::marker {
  content: none !important;
  display: none !important;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(284px, 320px);
  gap: 20px;
  align-items: start;
  justify-content: center;
}

.sidebar-layout__main { min-width: 0; }
.sidebar-layout__aside {
  min-width: 0;
  padding-left: 0;
}
.posts-stack { display: grid; gap: 4px; }

.home-submit-nudge {
  display: block;
  min-height: 48px;
  margin: 4px 0;
  padding: 3px 7px;
  border-color: rgba(40, 101, 145, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.04);
}

.home-submit-nudge__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-family: var(--font-ui);
  line-height: 1.28;
}

.home-submit-nudge__copy strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 850;
}

.home-submit-nudge__copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-submit-nudge__button,
.home-submit-nudge__button:link,
.home-submit-nudge__button:visited {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  gap: 9px;
  border: 1px solid rgba(40, 101, 145, 0.18);
  border-radius: 6px;
  background: rgba(40, 101, 145, 0.035);
  color: #1f5f8d;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  white-space: normal;
}

.home-submit-nudge__button:hover,
.home-submit-nudge__button:focus,
.home-submit-nudge__button:focus-visible {
  border-color: rgba(40, 101, 145, 0.34);
  background: rgba(40, 101, 145, 0.075);
  color: #174d73;
  text-decoration: none;
}

.entry-meta, .entry-footer, .archive-description, .comment-author-line, .comments-area .logged-in-as, .comments-area .comment-notes {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.entry-summary,
.entry-content,
.archive-description,
.comment-body,
.single-discovery__intro p,
.widget p,
.widget li {
  font-family: var(--font-ui);
}

.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.entry-meta a,
.entry-meta a:link,
.entry-meta a:visited,
.entry-meta a:hover,
.entry-meta a:focus,
.entry-meta a:focus-visible {
  text-decoration: none !important;
}

.entry-meta__author {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.entry-meta__author-link,
.entry-meta__author-link:link,
.entry-meta__author-link:visited {
  color: var(--brand);
  font-weight: 700;
}

.entry-meta__author-link:hover,
.entry-meta__author-link:focus-visible {
  color: var(--brand-strong);
  text-decoration: underline !important;
}

.entry-summary p, .entry-content p { margin: 0 0 1em; }
.entry-summary p:last-child, .entry-content p:last-child { margin-bottom: 0; }

.entry-content table,
.entry-summary table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.3rem 0 1.4rem;
  font-size: 0.98em;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
}

.entry-content table caption,
.entry-summary table caption {
  padding: 12px 16px 6px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}

.entry-content thead th,
.entry-summary thead th,
.entry-content tbody th,
.entry-summary tbody th {
  background: rgba(31, 88, 181, 0.06);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
}

.entry-content th,
.entry-content td,
.entry-summary th,
.entry-summary td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  border-right: 1px solid rgba(31, 41, 51, 0.05);
  vertical-align: top;
  text-align: left;
  word-break: break-word;
}

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

.entry-content th:last-child,
.entry-content td:last-child,
.entry-summary th:last-child,
.entry-summary td:last-child {
  border-right: 0;
}

.entry-content tbody tr:nth-child(even),
.entry-summary tbody tr:nth-child(even) {
  background: rgba(255, 253, 249, 0.82);
}

.entry-content tbody tr:hover,
.entry-summary tbody tr:hover {
  background: rgba(31, 88, 181, 0.05);
}

.entry-content .wp-block-table,
.entry-summary .wp-block-table {
  margin: 1.3rem 0 1.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.entry-content .wp-block-table table,
.entry-summary .wp-block-table table {
  margin: 0;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.entry-summary .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.92);
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(even),
.entry-summary .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: rgba(31, 88, 181, 0.035);
}

.post-card {
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  background: #ffffff;
  padding: 12px 14px 9px;
  border-radius: 8px;
}

.post-card--clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.post-card:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(31, 41, 51, 0.06);
  border-color: rgba(187, 62, 91, 0.12);
  background: #ffffff;
}

.post-card .entry-header {
  margin-bottom: 5px;
}

.post-card .entry-title {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 600;
}

.post-card .entry-title a {
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.post-card .entry-title a:link,
.post-card .entry-title a:visited,
.post-card .entry-title a:hover,
.post-card .entry-title a:focus,
.post-card .entry-title a:focus-visible {
  text-decoration: none;
}

.post-card .entry-summary {
  margin-top: 2px;
  font-size: 0.84rem;
  line-height: 1.38;
  color: #25323d;
}

body:not(.single-post) .post-card .entry-title {
  font-size: 1.02rem;
}

body:not(.single-post) .post-card .entry-summary,
body:not(.single-post) .post-card .entry-summary p {
  font-size: 0.84rem;
  line-height: 1.38;
}

.post-card,
.post-card .entry-summary,
.post-card .entry-summary *,
.single-card,
.single-card .entry-content,
.single-card .entry-content * {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.post-card .entry-summary p {
  max-width: none;
}


.post-card__read-more-inline {
  display: inline;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.86em;
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(159, 40, 70, 0.22);
}

.post-card__read-more-inline:hover,
.post-card__read-more-inline:focus,
.post-card__read-more-inline:focus-visible {
  color: var(--brand);
  border-bottom-color: rgba(187, 62, 91, 0.5);
  text-decoration: none;
}

.home .post-card .entry-summary p {
  max-width: none;
}

.entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

.entry-actions-footer {
  padding-top: 0;
  padding-bottom: 0;
}

body.single-post .single-footer.entry-actions-footer {
  margin-top: 10px;
  margin-bottom: 8px;
}

body:not(.single-post) .post-card .entry-actions-footer {
  margin-top: 2px;
}

.post-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 0 0 0;
  background: none;
  box-shadow: none;
}

.post-vote-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}


.post-action-btn__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  min-width: 1.05em;
  font-size: 0.96rem;
  line-height: 1;
}

.post-vote-btn .post-action-btn__label {
  font-weight: 800;
}

.post-vote-btn .post-action-btn__count {
  min-width: 1.25em;
  color: currentColor;
  opacity: 0.82;
}
.post-vote-btn[data-vote-value="up"] {
  border-color: rgba(67, 147, 102, 0.14);
  background: linear-gradient(180deg, rgba(67, 147, 102, 0.06), rgba(255, 255, 255, 0.95));
  color: #347f5b;
}

.post-vote-btn[data-vote-value="top"] {
  border-color: rgba(187, 62, 91, 0.1);
  background: linear-gradient(180deg, rgba(187, 62, 91, 0.025), rgba(255, 255, 255, 0.97));
  color: var(--brand-strong);
  box-shadow: none;
}

.post-vote-btn[data-vote-value="down"] {
  border-color: rgba(176, 78, 94, 0.14);
  background: linear-gradient(180deg, rgba(176, 78, 94, 0.05), rgba(255, 255, 255, 0.95));
  color: #9f4354;
}

.post-comments-btn {
  border-color: rgba(40, 101, 145, 0.26);
  background: linear-gradient(180deg, rgba(40, 101, 145, 0.1), rgba(255, 255, 255, 0.98));
  color: #286591;
}

.post-comments-btn.is-comment-nudged {
  border-color: rgba(40, 101, 145, 0.35);
  background: linear-gradient(180deg, rgba(40, 101, 145, 0.14), rgba(255, 255, 255, 0.99));
  color: #245f87;
  box-shadow: 0 0 0 2px rgba(40, 101, 145, 0.07);
}

.post-share-btn {
  border-color: rgba(77, 104, 124, 0.2);
  background: linear-gradient(180deg, rgba(77, 104, 124, 0.06), rgba(255, 255, 255, 0.96));
  color: #526577;
  font-weight: 650;
}

.post-share-btn.is-copied {
  border-color: rgba(187, 62, 91, 0.18);
  background: linear-gradient(180deg, rgba(187, 62, 91, 0.08), rgba(255, 255, 255, 0.99));
  color: var(--brand-strong);
  box-shadow: 0 0 0 2px rgba(187, 62, 91, 0.06);
}

.post-share-btn.is-copied:hover,
.post-share-btn.is-copied:focus,
.post-share-btn.is-copied:focus-visible {
  border-color: rgba(187, 62, 91, 0.22);
  background: linear-gradient(180deg, rgba(187, 62, 91, 0.1), rgba(255, 255, 255, 1));
  color: var(--brand-strong);
  box-shadow: 0 0 0 2px rgba(187, 62, 91, 0.08);
}

.post-share-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: linear-gradient(180deg, rgba(77, 104, 124, 0.06), rgba(255, 255, 255, 0.99));
  border-color: rgba(77, 104, 124, 0.2);
}

.post-share-btn:hover,
.post-share-btn:focus,
.post-share-btn:focus-visible,
.post-share-btn:active {
  background: linear-gradient(180deg, rgba(77, 104, 124, 0.1), rgba(255, 255, 255, 0.99));
  color: #365a73;
  box-shadow: 0 0 0 2px rgba(77, 104, 124, 0.06);
}

.post-vote-btn[data-vote-value="up"]:hover {
  border-color: rgba(67, 147, 102, 0.28);
  background: rgba(67, 147, 102, 0.12);
  color: #2f8a59;
}

.post-vote-btn[data-vote-value="top"]:hover {
  border-color: rgba(187, 62, 91, 0.36);
  background: rgba(187, 62, 91, 0.16);
  color: var(--brand-strong);
  box-shadow: 0 0 0 2px rgba(187, 62, 91, 0.08);
}

.post-vote-btn[data-vote-value="down"]:hover {
  border-color: rgba(176, 78, 94, 0.28);
  background: rgba(176, 78, 94, 0.1);
  color: #b13b53;
}

.post-vote-btn[data-vote-value="up"]:not(.is-active):hover,
.post-vote-btn[data-vote-value="up"]:not(.is-active):focus,
.post-vote-btn[data-vote-value="up"]:not(.is-active):focus-visible {
  border-color: rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  box-shadow: none;
}

.post-vote-btn[data-vote-value="top"]:not(.is-active):hover,
.post-vote-btn[data-vote-value="top"]:not(.is-active):focus,
.post-vote-btn[data-vote-value="top"]:not(.is-active):focus-visible {
  border-color: rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  box-shadow: none;
}

.post-vote-btn[data-vote-value="down"]:not(.is-active):hover,
.post-vote-btn[data-vote-value="down"]:not(.is-active):focus,
.post-vote-btn[data-vote-value="down"]:not(.is-active):focus-visible {
  border-color: rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  box-shadow: none;
}

.post-vote-btn:not(.is-active):focus {
  outline: none;
  box-shadow: none;
}

.post-vote-btn:focus-visible,
.post-vote-btn.is-active:focus-visible,
.post-vote-btn[aria-pressed="true"]:focus-visible {
  outline: 2px solid rgba(31, 41, 51, 0.72);
  outline-offset: 2px;
}

.post-comments-btn:hover,
.post-comments-btn:focus,
.post-comments-btn:focus-visible,
.post-share-btn:hover,
.post-share-btn:focus,
.post-share-btn:focus-visible,
.post-favorite-btn:hover,
.post-favorite-btn:focus,
.post-favorite-btn:focus-visible {
  transform: translateY(-1px);
}

.post-action-btn:hover,
.post-action-btn:focus,
.post-action-btn:focus-visible,
.post-action-btn:active {
  text-decoration: none;
}

.post-comments-btn:hover,
.post-comments-btn:focus,
.post-comments-btn:focus-visible {
  border-color: rgba(40, 101, 145, 0.36);
  background: linear-gradient(180deg, rgba(40, 101, 145, 0.13), rgba(255, 255, 255, 1));
  color: #245f87;
}

.post-comments-btn.is-comment-nudged:hover,
.post-comments-btn.is-comment-nudged:focus,
.post-comments-btn.is-comment-nudged:focus-visible {
  border-color: rgba(40, 101, 145, 0.42);
  background: linear-gradient(180deg, rgba(40, 101, 145, 0.16), rgba(255, 255, 255, 1));
  color: #245f87;
}

.post-vote-btn[data-vote-value="up"].is-active,
.post-vote-btn[data-vote-value="up"][aria-pressed="true"],
.post-action-bar[data-vote-state="up"] .post-vote-btn[data-vote-value="up"],
.post-action-bar[data-current-vote="up"] .post-vote-btn[data-vote-value="up"] {
  border-color: rgba(67, 147, 102, 0.22);
  background: rgba(67, 147, 102, 0.1);
  color: #347f5b;
}

.post-vote-btn[data-vote-value="top"].is-active,
.post-vote-btn[data-vote-value="top"][aria-pressed="true"],
.post-action-bar[data-vote-state="top"] .post-vote-btn[data-vote-value="top"],
.post-action-bar[data-current-vote="top"] .post-vote-btn[data-vote-value="top"] {
  border-color: rgba(187, 62, 91, 0.3);
  background: rgba(187, 62, 91, 0.15);
  color: var(--brand-strong);
  box-shadow: none;
}

.post-vote-btn.is-active:focus:not(:focus-visible),
.post-vote-btn[aria-pressed="true"]:focus:not(:focus-visible) {
  outline: none;
}

.post-vote-btn[data-vote-value="down"].is-active,
.post-vote-btn[data-vote-value="down"][aria-pressed="true"],
.post-action-bar[data-vote-state="down"] .post-vote-btn[data-vote-value="down"],
.post-action-bar[data-current-vote="down"] .post-vote-btn[data-vote-value="down"] {
  border-color: rgba(176, 78, 94, 0.22);
  background: rgba(176, 78, 94, 0.09);
  color: #9f4354;
}

@media (hover: none) {
  .post-vote-btn[data-vote-value="up"]:not(.is-active):hover,
  .post-vote-btn[data-vote-value="up"]:not(.is-active):focus {
    border-color: rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    box-shadow: none;
  }

  .post-vote-btn[data-vote-value="top"]:not(.is-active):hover,
  .post-vote-btn[data-vote-value="top"]:not(.is-active):focus {
    border-color: rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    box-shadow: none;
  }

  .post-vote-btn[data-vote-value="down"]:not(.is-active):hover,
  .post-vote-btn[data-vote-value="down"]:not(.is-active):focus {
    border-color: rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    box-shadow: none;
  }
}

.post-action-btn.is-disabled,
.post-action-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.post-action-btn__icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: currentColor;
}

.post-action-btn__icon svg {
  width: 100%;
  height: 100%;
}

.post-action-btn__count,
.post-action-btn__label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.post-action-btn__count {
  min-width: 14px;
  font-variant-numeric: tabular-nums;
}

.post-comments-btn,
.post-share-btn {
  min-height: 34px;
  padding-inline: 10px;
  font-weight: 650;
}

.post-comments-btn__label {
  display: none;
}

body.single-post .post-comments-btn--empty .post-action-btn__count {
  display: none;
}

body:not(.single-post) .post-card .post-comments-btn--empty .post-action-btn__count {
  display: none;
}

body:not(.single-post) .post-card .post-comments-btn {
  min-width: 128px;
  padding-inline: 12px;
}

body:not(.single-post) .post-card .post-comments-btn__label {
  display: inline-flex;
  font-weight: 850;
}

body.single-post .post-comments-btn {
  min-width: 128px;
  padding-inline: 12px;
}

body.single-post .post-comments-btn__label {
  display: inline-flex;
  font-weight: 850;
}

.post-share-btn {
  letter-spacing: 0.01em;
}

.post-action-btn__icon--share {
  width: 15px;
  height: 15px;
}

.post-action-btn__icon--comments {
  width: 14px;
  height: 14px;
}

.post-favorite-btn {
  min-width: 34px;
  padding-inline: 8px;
  border-color: rgba(77, 104, 124, 0.2);
  background: linear-gradient(180deg, rgba(77, 104, 124, 0.06), rgba(255, 255, 255, 0.96));
  color: #526577;
}

.post-favorite-btn .post-action-btn__icon--favorite svg {
  fill: none;
}

.post-favorite-btn.is-active {
  border-color: rgba(187, 62, 91, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-strong);
  box-shadow: 0 0 0 1px rgba(187, 62, 91, 0.03);
}

.post-favorite-btn.is-active .post-action-btn__icon--favorite svg {
  fill: currentColor;
}

.post-favorite-btn {
  min-width: 34px;
  padding-inline: 10px;
  border-color: rgba(77, 104, 124, 0.2);
  background: linear-gradient(180deg, rgba(77, 104, 124, 0.06), rgba(255, 255, 255, 0.99));
  color: #526577;
}

.post-favorite-btn:hover,
.post-favorite-btn:focus,
.post-favorite-btn:focus-visible {
  border-color: rgba(77, 104, 124, 0.24);
  background: linear-gradient(180deg, rgba(77, 104, 124, 0.1), rgba(255, 255, 255, 0.99));
  color: #365a73;
}

.post-favorite-btn .post-action-btn__icon--favorite svg {
  fill: none;
}

.post-favorite-btn.is-active {
  border-color: rgba(187, 62, 91, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
}

.post-favorite-btn.is-active .post-action-btn__icon--favorite svg {
  fill: currentColor;
}

@media (max-width: 760px) {
  .post-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    border-radius: 0;
  }

  body:not(.single-post) .post-action-bar {
    row-gap: 6px;
  }

  body.single-post .single-footer.entry-actions-footer {
    margin-top: 12px;
    margin-bottom: 10px;
  }

  body.single-post .post-action-bar {
    row-gap: 7px;
  }

  body:not(.single-post) .post-card .post-action-btn {
    min-height: 34px;
  }

  body:not(.single-post) .post-card .post-comments-btn,
  body:not(.single-post) .post-card .post-share-btn,
  body:not(.single-post) .post-card .post-favorite-btn {
    min-height: 34px;
  }

  .post-vote-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 0 100%;
    min-width: 100%;
    gap: 4px;
  }

  body:not(.single-post) .post-card .post-vote-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 0 100%;
    width: 100%;
    min-width: 100%;
    gap: 4px;
  }

  .post-action-btn {
    min-height: 36px;
    padding: 0 8px;
    gap: 3px;
    font-size: 0.72rem;
    justify-content: center;
  }

  .post-vote-btn {
    width: 100%;
    min-width: 0;
  }

  .post-vote-btn .post-action-btn__label {
    display: inline-flex;
  }

  .post-action-btn__icon {
    width: 13px;
    height: 13px;
  }

  .post-action-btn__emoji {
    font-size: 0.98rem;
  }

  .post-comments-btn,
  .post-share-btn,
  .post-favorite-btn {
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    padding-inline: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .post-comments-btn {
    flex: 1 1 auto;
    min-width: min(190px, calc(100% - 88px));
    justify-content: center;
    padding-inline: 12px;
    font-weight: 800;
    border-color: rgba(187, 62, 91, 0.2);
    background: linear-gradient(180deg, rgba(187, 62, 91, 0.1), rgba(255, 255, 255, 0.98));
    color: var(--brand-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 5px 12px rgba(187, 62, 91, 0.08);
  }

  .post-comments-btn__label {
    display: inline-flex;
    font-weight: 850;
  }

  .post-share-btn,
  .post-favorite-btn {
    justify-content: center;
  }

  .post-action-btn__icon--share {
    width: 14px;
    height: 14px;
  }

  .post-action-btn__icon--comments {
    width: 13px;
    height: 13px;
  }

  .post-favorite-btn .post-action-btn__icon--favorite {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .post-action-bar {
    gap: 2px;
  }

  .post-vote-group {
    gap: 2px;
  }

  .post-action-btn {
    padding-inline: 5px;
  }
}

.text-link { font-weight: 700; }
.text-link-soft { color: var(--muted); font-weight: 600; }
.entry-footer .text-link:last-child {
  color: var(--muted);
}
.single-card .entry-content { font-size: 0.88rem; line-height: 1.44; }
.single-card .entry-title { margin-top: 0; font-size: 1.02rem; line-height: 1.1; }
.single-card .entry-header {
  margin-bottom: 2px;
}
.single-card .entry-header .eyebrow {
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}
.single-card .entry-header .entry-meta {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.38;
}
.single-card .entry-content {
  margin-bottom: 0;
}
.single-card .entry-content p {
  margin: 0 0 0.72em;
  max-width: none;
}
.single-card .entry-content p:last-child {
  margin-bottom: 0;
}
.single-author-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(31, 41, 51, 0.07);
  border-radius: 999px;
  background: rgba(247, 249, 250, 0.72);
}

.single-author-card .author-follow {
  flex: 0 0 auto;
  min-height: 28px;
  margin-top: 0;
  margin-left: auto;
  padding: 0 9px;
  gap: 5px;
  font-size: 0.72rem;
}

.single-author-card .author-follow__count {
  display: none;
}

.single-author-card__avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}

.single-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-author-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
  min-width: 0;
}

.single-author-card__eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.single-author-card__name {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.single-author-card__name:link,
.single-author-card__name:visited,
.single-author-card__name:hover,
.single-author-card__name:focus,
.single-author-card__name:focus-visible {
  color: var(--brand-strong);
  text-decoration: none;
}

.single-author-card__meta,
.single-author-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.single-author-card__badges {
  display: none;
}

.single-author-card__meta {
  margin-top: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.single-author-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(187, 62, 91, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.single-author-card__badge--muted {
  color: var(--muted);
  border-color: rgba(31, 41, 51, 0.1);
}
.single-ad-slot {
  width: 100%;
  margin: 4px 0;
  overflow: clip;
  line-height: 0;
  font-size: 0;
}
.single-ad-slot > * {
  width: 100%;
  margin: 0 !important;
}
.single-ad-slot .code-block,
.single-ad-slot .code-block-1,
.single-ad-slot .code-block-2,
.single-ad-slot .google-auto-placed,
.single-ad-slot .adsbygoogle,
.single-ad-slot ins,
.single-ad-slot [id^="aswift_"][id$="_host"],
.single-ad-slot iframe {
  display: block;
  max-width: 100%;
  max-height: none;
  margin: 0 !important;
  padding: 0 !important;
}
.single-ad-slot:empty {
  display: none;
}
.single-card .entry-footer {
  margin-top: 8px;
  padding-top: 2px;
}
.single-card {
  margin-bottom: 0;
  padding-top: 12px;
  padding-bottom: 6px;
  border-radius: 10px;
}

.single-discovery {
  margin-top: 4px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.single-discovery__header {
  display: none;
}

.single-discovery__header h2 {
  display: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.55vw, 1.46rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}

.single-discovery__eyebrow {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.single-discovery__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.single-discovery__actions.has-next {
  grid-template-columns: none;
}

.single-discovery__actions.no-next {
  grid-template-columns: none;
}

.single-discovery__card {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(187, 62, 91, 0.13);
  border-radius: 999px;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.single-discovery__card--next,
.single-discovery__card--random {
  min-width: 0;
}

.single-discovery__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.08);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

button.single-discovery__card {
  width: auto;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.single-discovery__card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(187, 62, 91, 0.22);
  background: rgba(187, 62, 91, 0.06);
  color: var(--brand);
  text-decoration: none;
}

.single-discovery__card:focus,
.single-discovery__card:focus-visible {
  outline: none;
  border-color: rgba(187, 62, 91, 0.26);
  background: rgba(187, 62, 91, 0.06);
  color: var(--brand);
}

.single-discovery__card--next,
.single-discovery__card--random,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--next,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--random {
  background-color: rgba(255, 255, 255, 0.92) !important;
  background-image: none !important;
  border-color: rgba(187, 62, 91, 0.18) !important;
}

.single-discovery__card--next,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--next {
  background-color: var(--brand) !important;
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 7px 14px rgba(187, 62, 91, 0.13);
}

.single-discovery__card--primary,
.single-discovery__actions > a.single-discovery__card--primary {
  background-color: var(--brand) !important;
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 7px 14px rgba(187, 62, 91, 0.13);
}

.single-discovery__card--random.single-discovery__card--primary,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--random.single-discovery__card--primary {
  background-color: var(--brand) !important;
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(187, 62, 91, 0.18);
}

.single-discovery__card--random.single-discovery__card--primary:hover,
.single-discovery__card--random.single-discovery__card--primary:focus,
.single-discovery__card--random.single-discovery__card--primary:focus-visible,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--random.single-discovery__card--primary:hover,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--random.single-discovery__card--primary:focus,
.single-discovery__actions > a.single-discovery__card.single-discovery__card--random.single-discovery__card--primary:focus-visible {
  background-color: var(--brand-strong) !important;
  background-image: linear-gradient(135deg, var(--brand-strong) 0%, #8f213b 100%) !important;
  color: #fff !important;
  text-decoration: none;
}

.single-discovery__secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.single-discovery__text-link,
.single-discovery__text-link:link,
.single-discovery__text-link:visited {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.13);
  border-radius: 999px;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  -webkit-tap-highlight-color: transparent;
}

.single-discovery__text-link:hover,
.single-discovery__text-link:focus,
.single-discovery__text-link:focus-visible {
  color: var(--brand);
  border-color: rgba(187, 62, 91, 0.22);
  background: rgba(187, 62, 91, 0.06);
  text-decoration: none;
}

.single-discovery__text-link + .single-discovery__text-link::before {
  display: none;
}

.single-discovery__card + .single-discovery__card::before,
.single-discovery__card + .single-discovery__secondary-links::before {
  display: none;
}

.single-discovery__label {
  display: none;
}

.single-discovery__card strong {
  font-size: inherit;
  line-height: 1.1;
}

.single-related {
  margin-top: 8px;
  padding: 10px 12px 11px;
  border-radius: 12px;
  box-shadow: none;
}

.comments-area + .single-related {
  margin-top: 8px;
}

.single-related__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}

.single-related__eyebrow {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-related__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.1;
}

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

.single-related__item,
.single-related__item:link,
.single-related__item:visited {
  display: grid;
  gap: 4px;
  min-height: 98px;
  padding: 9px 10px;
  border: 1px solid rgba(31, 41, 51, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-decoration: none;
}

.single-related__item:hover,
.single-related__item:focus,
.single-related__item:focus-visible {
  border-color: rgba(187, 62, 91, 0.18);
  background: rgba(187, 62, 91, 0.025);
  text-decoration: none;
}

.single-related__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.14;
}

.single-related__summary {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.32;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.single-related__cta {
  align-self: end;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
}

.comment-nudge {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.28;
}
.single-card + .comments-area {
  margin-top: 0;
}

main .single-card + #comments.comments-area,
.sidebar-layout__main .single-card + #comments.comments-area,
.sidebar-layout__main article.single-card + section.comments-area.card {
  margin-top: 0 !important;
  transform: none !important;
  margin-bottom: 0 !important;
}

.single-sticky-loop {
  display: none;
}

.single-sticky-loop__button,
.single-sticky-loop__button:link,
.single-sticky-loop__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(187, 62, 91, 0.16);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  touch-action: manipulation;
}

.single-sticky-loop__button:hover,
.single-sticky-loop__button:focus,
.single-sticky-loop__button:focus-visible {
  text-decoration: none;
  outline: none;
}

.single-sticky-loop__button:active {
  transform: none;
}

.single-sticky-loop__button--next {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 5px 12px rgba(187, 62, 91, 0.18);
}

.single-sticky-loop__button--random {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
}
.tag-links a { display: inline-flex; margin: 0 8px 8px 0; padding: 8px 12px; border-radius: 999px; background: rgba(187, 62, 91, 0.08); }

.post-navigation {
  display: none;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 0;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  line-height: 1.45;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 0;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  color: var(--brand-strong);
}

.post-navigation a:hover,
.post-navigation a:focus {
  color: var(--brand-strong);
}

.widget { margin-bottom: 14px; }
.widget-title { margin: 0 0 10px; font-size: 1.04rem; line-height: 1.16; }
.widget-title { font-family: var(--font-display); letter-spacing: -0.02em; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 8px; }
.widget li { line-height: 1.38; }
.widget a { text-decoration-thickness: 1px; }

.sidebar-layout__aside .widget a {
  font-size: 0.88rem;
}

.sidebar-layout__aside .widget-title {
  padding-left: 0;
}

.sidebar-layout__aside .widget ul {
  padding-left: 0;
}


.sidebar-quick-actions {
  padding: 14px 16px 16px;
  background:
    radial-gradient(circle at right top, rgba(187, 62, 91, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 253, 249, 0.97));
}

.sidebar-quick-actions__eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-quick-actions__links {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.sidebar-quick-actions__link,
.sidebar-quick-actions__link:link,
.sidebar-quick-actions__link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(187, 62, 91, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.sidebar-quick-actions__link--primary,
.sidebar-quick-actions__link--primary:link,
.sidebar-quick-actions__link--primary:visited {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(187, 62, 91, 0.18);
}

.sidebar-quick-actions__link:hover,
.sidebar-quick-actions__link:focus,
.sidebar-quick-actions__link:focus-visible {
  border-color: rgba(187, 62, 91, 0.24);
  box-shadow: 0 10px 20px rgba(31, 41, 51, 0.07);
  text-decoration: none;
}

.sidebar-top-authors {
  padding-top: 20px;
}

.sidebar-top-authors__eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.sidebar-top-authors__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-top-authors__item {
  margin: 0;
}

.sidebar-top-authors__link,
.sidebar-top-authors__link:link,
.sidebar-top-authors__link:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.sidebar-top-authors__link:hover,
.sidebar-top-authors__link:focus,
.sidebar-top-authors__link:focus-visible {
  border-color: rgba(187, 62, 91, 0.18);
  background: rgba(187, 62, 91, 0.045);
  text-decoration: none;
}

.sidebar-top-authors__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
}

.sidebar-top-authors__body {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sidebar-top-authors__name,
.sidebar-top-authors__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-top-authors__name {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.sidebar-top-authors__meta {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
}

.sidebar-layout__aside .widget_categories ul {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  scrollbar-width: auto;
}

.sidebar-layout__aside .widget_categories li + li {
  margin-top: 7px;
}
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-card { margin: 0 0 12px; }
.comment-body {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.comment-author-line { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.comment-actions { margin-top: 12px; }
.comment-respond { margin-top: 0; }
.comments-area {
  position: static;
  margin-top: -2px;
  padding: 8px 14px 12px 22px;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.06);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(31, 41, 51, 0.05);
  overflow: hidden;
}
.single-discovery + .comments-area {
  margin-top: 3px;
}

.single-discovery + .wpdiscuz_top_clearing {
  display: none !important;
}

#comments.comments-area,
.sidebar-layout__main #comments.comments-area,
.sidebar-layout__main section#comments.comments-area.card {
  margin: 4px auto 0 !important;
}
.comments-title {
  margin-bottom: 6px;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comment-form p { margin: 0 0 12px; }
.comments-area > *:first-child {
  margin-top: 0;
}
.comments-area .comments-header,
.comments-area .wpd-thread-wrapper,
.comments-area .wpd-comment-reply,
.comments-area .wpd-main-form-wrapper,
.comments-area .wpdiscuz_top_clearing,
.comments-area .wc_social_plugin_wrapper {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.comments-area .wpd-main-form-wrap,
.comments-area .wpd-form-wrap,
.comments-area .wpdiscuz-form,
.comments-area .wpdiscuz-comments,
.comments-area .wpdiscuz-comment-form {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.comments-area .wpd-form-head,
.comments-area .wpd-form-row,
.comments-area .wpdiscuz-comment-message,
.comments-area .wc-comment-right {
  margin-left: 0;
  margin-right: 0;
}

.comments-area .wpd-main-form-wrapper,
.comments-area .wpd-thread-wrapper,
.comments-area .wpdiscuz_top_clearing {
  padding-left: 0;
  padding-right: 0;
}

.comments-area .wpd-form-head,
.comments-area .wpd-thread-head,
.comments-area .wpd-comments,
.comments-area .wpd-thread-info,
.comments-area .wpdiscuz-subscribe-bar,
.comments-area .wpd-comment-text,
.comments-area .wpd-comment-right,
.comments-area .wc-field-comment,
.comments-area .wpd-form-row {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.comments-area .wpd-form-head {
  min-height: auto !important;
  padding: 0 8px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.comments-area .wpd-form-head .wpdiscuz-subscribe-bar,
.comments-area .wpd-form-head .wpd-login-to-comment {
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.comments-area .wpd-form-head,
.comments-area .wpd-form-head * {
  min-height: 0 !important;
}

.comments-area .wpd-form-head,
.comments-area .wpd-login-to-comment,
.comments-area .wpd-thread-info,
.comments-area .wpd-thread-head {
  font-size: 0.95rem;
  line-height: 1.35;
}

.comments-area .wpd-thread-head {
  margin-top: 4px !important;
  padding-top: 4px !important;
  border-top: 1px solid rgba(31, 41, 51, 0.08);
}

.comments-area .wpd-form-head .wpd-tools,
.comments-area .wpd-form-head .wpdiscuz-subscribe-bar,
.comments-area .wpd-form-head .wpdiscuz-subscribe-bar *,
.comments-area .wpd-thread-head *,
.comments-area .wpd-main-form-wrapper *,
.comments-area .wc-field-comment * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.comments-area hr,
.comments-area .wpd-divider,
.comments-area .wpd-thread-wrapper hr,
.comments-area .wpd-main-form-wrapper hr {
  margin-top: 1px !important;
  margin-bottom: 2px !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 10px;
  background: #fffefd;
  color: var(--ink);
  font: inherit;
}

.comment-form textarea { min-height: 72px; resize: vertical; }

.comments-area .bwp-comment-email-hidden,
#wpdcom .wpdiscuz-item.wc_email-wrapper,
#wpdcom .wpd-form-row div.wc_email-wrapper {
  display: none !important;
}

.comments-area .bwp-comment-name-only-row {
  grid-template-columns: minmax(0, 1fr) !important;
}

.comments-area .bwp-comment-name-only-row .bwp-comment-name-field,
.comments-area .bwp-comment-name-field {
  box-sizing: border-box;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: none !important;
  background: #ffffff !important;
}

@media (min-width: 600px) {
  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto !important;
    align-items: end !important;
    gap: 16px !important;
    width: calc(100% + 23px) !important;
    margin-left: -23px !important;
  }

  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row > .wpd-form-col-left,
  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row > .wpd-form-col-right {
    box-sizing: border-box !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row > .wpd-form-col-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row .wc_name-wrapper {
    padding-bottom: 0 !important;
  }

  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row .wc-field-submit {
    margin: 0 !important;
    padding-top: 0 !important;
  }

  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row .wc_name,
  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row .wc_comm_submit {
    min-height: 34px !important;
  }

  #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row > .clearfix {
    display: none !important;
  }
}

.comments-area textarea,
.comments-area #comment,
.comments-area .wpd-textarea-wrap textarea,
.comments-area .wpdiscuz-textarea-wrap textarea,
.comments-area .ql-editor,
.comments-area .wpd-form-row textarea,
.comments-area .wc_comment-textarea textarea,
.comments-area textarea[placeholder],
.comments-area .ql-container,
.comments-area .ql-editor.ql-blank {
  min-height: 72px !important;
}

.comments-area .wpd-main-form-wrapper:focus-within textarea,
.comments-area .wpd-main-form-wrapper:focus-within #comment,
.comments-area .wpd-main-form-wrapper:focus-within .wpd-textarea-wrap textarea,
.comments-area .wpd-main-form-wrapper:focus-within .wpdiscuz-textarea-wrap textarea,
.comments-area .wpd-main-form-wrapper:focus-within .ql-editor,
.comments-area .wpd-main-form-wrapper:focus-within .wpd-form-row textarea,
.comments-area .wpd-main-form-wrapper:focus-within .wc_comment-textarea textarea,
.comments-area .wpd-main-form-wrapper:focus-within textarea[placeholder],
.comments-area .wpd-main-form-wrapper:focus-within .ql-container,
.comments-area .wpd-main-form-wrapper:focus-within .ql-editor.ql-blank,
.comments-area.is-comment-open textarea,
.comments-area.is-comment-open #comment,
.comments-area.is-comment-open .wpd-textarea-wrap textarea,
.comments-area.is-comment-open .wpdiscuz-textarea-wrap textarea,
.comments-area.is-comment-open .ql-editor,
.comments-area.is-comment-open .wpd-form-row textarea,
.comments-area.is-comment-open .wc_comment-textarea textarea,
.comments-area.is-comment-open textarea[placeholder],
.comments-area.is-comment-open .ql-container,
.comments-area.is-comment-open .ql-editor.ql-blank {
  min-height: 150px !important;
}

.comments-area .ql-editor,
.comments-area .ql-container,
.comments-area .wpd-textarea-wrap,
.comments-area .wpdiscuz-textarea-wrap {
  margin-top: 0 !important;
}

.comments-area .ql-editor.ql-blank::before {
  content: attr(data-placeholder) !important;
}

.comments-area .ql-container,
.comments-area .wpd-textarea-wrap textarea,
.comments-area .wpdiscuz-textarea-wrap textarea,
.comments-area textarea[placeholder] {
  background: #ffffff !important;
  border-color: rgba(31, 41, 51, 0.14) !important;
  border-radius: 16px !important;
}

.comments-area .ql-toolbar,
.comments-area .wpd-tools-wrapper,
.comments-area .wpdiscuz-item,
.comments-area .wc-field-comment {
  background: #ffffff;
}

.comments-area .ql-toolbar,
.comments-area .wpd-tools-wrapper {
  border-top: 0 !important;
  border-left: 1px solid rgba(31, 41, 51, 0.1) !important;
  border-right: 1px solid rgba(31, 41, 51, 0.1) !important;
  border-bottom: 1px solid rgba(31, 41, 51, 0.1) !important;
  border-radius: 0 0 14px 14px !important;
  padding: 7px 10px !important;
}

.comments-area .ql-container,
.comments-area .wpd-textarea-wrap,
.comments-area .wpdiscuz-textarea-wrap {
  border-radius: 16px 16px 0 0 !important;
}


.comments-area .wpd-thread-list,
.comments-area .wpd-comments {
  min-height: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.comments-area .wpd-thread-list:empty,
.comments-area .wpd-comments:empty {
  display: none !important;
}

.is-submit-page form > label,
.is-submit-page form p > label,
.is-submit-page label,
.is-submit-page .entry-content > p > label,
.is-submit-page .entry-content form label,
.is-submit-page textarea[id] ~ label,
.is-submit-page textarea + label {
  display: none;
}

.is-submit-page {
  padding: 26px 34px 32px;
  background:
    radial-gradient(circle at top right, rgba(187, 62, 91, 0.055), transparent 34%),
    #ffffff;
}

.is-submit-page .entry-title {
  margin-bottom: 8px;
}

.submit-page-header {
  max-width: 760px;
  margin: 0 auto 12px;
}

.submit-page-header .eyebrow {
  margin-bottom: 7px;
}

.submit-page-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.45;
}


.submit-page-tips {
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.submit-page-tips p {
  margin: 0;
  color: #4d5964;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.42;
}

.submit-page-tips p::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--brand);
  vertical-align: 0.1em;
}
.submit-page-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.submit-page-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(187, 62, 91, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
}

.submit-page-note {
  margin: 8px 0 0;
  color: #4d5964;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.42;
}

.is-submit-page .entry-content form {
  max-width: 790px;
  margin: 0 auto;
}

.is-submit-page .entry-content form p {
  margin-bottom: 6px;
}


.is-submit-page .entry-content input[type="text"],
.is-submit-page .entry-content input[type="email"],
.is-submit-page .entry-content select {
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefd;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.is-submit-page .entry-content select {
  cursor: pointer;
}

.is-submit-page .entry-content input[type="text"]:focus,
.is-submit-page .entry-content input[type="email"]:focus,
.is-submit-page .entry-content select:focus {
  outline: none;
  border-color: rgba(187, 62, 91, 0.35);
  box-shadow: 0 0 0 3px rgba(187, 62, 91, 0.08);
}
.is-submit-page .entry-content textarea {
  min-height: 240px;
  width: 100%;
  max-width: 100%;
  padding: 18px 20px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefd;
  box-shadow: inset 0 1px 0 rgba(31, 41, 51, 0.02);
}

.is-submit-page .entry-content textarea::placeholder {
  color: #6b7480;
  opacity: 1;
}

.is-submit-page .entry-content textarea + br {
  display: none;
}

.is-submit-page .entry-content input[type="submit"],
.is-submit-page .entry-content button[type="submit"] {
  width: 100%;
  min-height: 60px;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 999px;
  margin-top: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 14px 28px rgba(187, 62, 91, 0.22);
  border: 0;
  letter-spacing: -0.01em;
}

.is-submit-page .entry-content input[type="submit"]:hover,
.is-submit-page .entry-content input[type="submit"]:focus,
.is-submit-page .entry-content input[type="submit"]:focus-visible,
.is-submit-page .entry-content button[type="submit"]:hover,
.is-submit-page .entry-content button[type="submit"]:focus,
.is-submit-page .entry-content button[type="submit"]:focus-visible {
  transform: none;
  box-shadow: 0 16px 32px rgba(187, 62, 91, 0.18);
}

.submit-success-panel[hidden] {
  display: none !important;
}

.submit-success-panel {
  max-width: 790px;
  margin: 14px auto 0;
  padding: 16px;
  border: 1px solid rgba(33, 150, 112, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(233, 250, 244, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.07);
}

.submit-success-panel strong {
  display: block;
  color: #14634d;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.18;
}

.submit-success-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.45;
}

.submit-success-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.submit-success-panel__actions .button {
  min-height: 42px;
  padding: 0 14px;
}

.search-field:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
.is-submit-page .entry-content textarea:focus {
  outline: none;
  border-color: rgba(187, 62, 91, 0.4);
  box-shadow: 0 0 0 4px rgba(187, 62, 91, 0.08);
}

.is-submit-layout,
.page:has(.is-submit-page) .sidebar-layout,
.sidebar-layout:has(.is-submit-page) {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.is-submit-layout .sidebar-layout__aside,
.page:has(.is-submit-page) .sidebar-layout__aside,
.sidebar-layout:has(.is-submit-page) .sidebar-layout__aside {
  display: none;
}

.site-footer { padding: 30px 0 38px; border-top: 1px solid rgba(31, 41, 51, 0.08); }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; align-items: start; }
.footer-title { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; }
.footer-copy, .footer-menu, .footer-widget { color: var(--muted); font-family: var(--font-ui); font-size: 0.95rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 10px; }

.pagination, .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-ui);
}

input::placeholder,
textarea::placeholder,
.search-field::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder,
.is-submit-page .entry-content textarea::placeholder {
  font-family: var(--font-ui);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.page-numbers.current { background: var(--ink); color: #fff; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.narrow-card { max-width: 780px; margin: 0 auto 24px; }

@media (max-width: 1120px) {
  .site-header__inner { box-sizing: border-box; align-items: center; flex-direction: row; gap: 8px; padding-top: 0; padding-bottom: 0; height: 56px; min-height: 56px; max-height: 56px; position: relative; }
  .site-branding { width: auto; flex: 0 0 auto; justify-content: flex-start; align-items: center; gap: 8px; min-width: 0; }
  .site-branding > div { min-width: 0; }
  .site-title { max-width: min(38vw, 11rem); overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .site-title, .site-title a { font-size: clamp(0.88rem, 3.05vw, 1rem); line-height: 0.98; }
  .site-description { display: none; }
  .site-actions { display: grid; grid-template-columns: minmax(0, 1fr) 64px 36px; width: auto; justify-content: flex-end; align-items: center; margin-left: 0; gap: 6px; position: relative; flex: 1 1 auto; min-width: 0; }
  .sidebar-layout, .site-footer__inner { grid-template-columns: 1fr; }
  .sidebar-layout__aside { padding-left: 0; }
  .site-content { padding-top: 0; }
  .search-form { display: none; }
  .site-actions .search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    top: auto;
    right: auto;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    margin-left: 0;
    max-width: none;
    transform: none;
    transition: none;
    z-index: 25;
  }
  .site-actions .search-form:focus-within,
  .site-actions .search-form.is-search-open {
    position: absolute;
    top: 50%;
    left: calc(-7.2rem - 6px);
    right: 0;
    width: auto;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    max-width: none;
    margin-left: 0;
    transform: translateY(-50%);
    z-index: 90;
  }
  .site-actions .search-form label {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-actions .search-field {
    width: 100%;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    line-height: 38px;
    background: rgba(255, 253, 249, 0.98);
  }
  .site-actions .search-form:focus-within .search-field,
  .site-actions .search-form.is-search-open .search-field {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding-right: 42px;
    line-height: 42px;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.12);
  }
  .site-actions .search-form:focus-within .search-close,
  .site-actions .search-form.is-search-open .search-close {
    display: inline-flex;
  }
  .site-actions .search-close {
    position: absolute;
    top: 50%;
    right: 5px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
  }
  .site-actions .search-close:hover,
  .site-actions .search-close:focus,
  .site-actions .search-close:focus-visible {
    background: rgba(31, 41, 51, 0.06);
    color: var(--brand-strong);
    outline: none;
  }
  .site-actions .search-submit {
    display: none;
  }
  .site-actions .live-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
  }
  .header-submit-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    contain: size layout paint;
    position: relative;
    order: 2;
    flex: 0 0 64px;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 6px !important;
    border-radius: 999px;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -999px;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(187, 62, 91, 0.16);
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }
  .site-actions .header-submit-button:hover,
  .site-actions .header-submit-button:focus,
  .site-actions .header-submit-button:focus-visible {
    box-shadow: 0 8px 18px rgba(187, 62, 91, 0.18);
    outline: none;
  }
  .site-actions .header-submit-button::before {
    content: "+ Witz";
    position: absolute;
    left: 50%;
    top: 50%;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    text-indent: 0;
    white-space: nowrap;
    transform: translate(-50%, -52%);
  }
  .menu-toggle {
    display: inline-flex !important;
    order: 3;
    flex: 0 0 36px;
    margin-right: 0;
    width: 36px;
    height: 36px;
    z-index: 35;
  }
  .menu-toggle__bar { display: block !important; }
  .main-navigation { display: none; border-top: 0; }
  .main-navigation.is-open { display: block; padding: 8px 0 10px; }
  .main-navigation > .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .header-account-links {
    order: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .header-account-link,
  .header-account-link:link,
  .header-account-link:visited {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    text-align: center;
  }
  .mobile-nav-search {
    display: none;
    margin: 0 auto 12px;
    padding: 12px;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
    max-width: 420px;
  }
  .mobile-nav-search .search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
  }
  .mobile-nav-search .search-form label {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mobile-nav-search .search-field {
    width: 100%;
  }
  .mobile-nav-search .search-submit {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mobile-nav-search .live-search-results {
    position: static;
    margin-top: 10px;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .main-navigation .container > ul,
  .main-navigation .container > div > ul,
  .main-navigation .container > nav > ul,
  .main-navigation .menu {
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 0;
    overflow: visible;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .main-navigation .container > ul > li,
  .main-navigation .container > div > ul > li,
  .main-navigation .container > nav > ul > li,
  .main-navigation .menu > li {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
    overflow: hidden;
  }
  .main-navigation a {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 0;
    border-bottom: 0;
  }
  .main-navigation .header-account-link,
  .main-navigation .header-account-link:link,
  .main-navigation .header-account-link:visited {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    text-align: center;
  }
  .main-navigation .menu-item-has-children,
  .main-navigation .page_item_has_children {
    display: block;
  }
  .main-navigation .menu-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-right: 12px;
  }
  .main-navigation .menu-item-has-children > a::after,
  .main-navigation .page_item_has_children > a::after {
    display: none;
  }
  .main-navigation .menu-item-row > a {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 6px;
    font-weight: 700;
  }
  .submenu-toggle {
    display: inline-flex;
    margin-top: 0;
    margin-left: 12px;
    margin-right: 0;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(31, 41, 51, 0.12);
    box-shadow: 0 4px 10px rgba(31, 41, 51, 0.04);
  }
  .main-navigation .menu-item-has-children.is-submenu-open > .menu-item-row > .submenu-toggle,
  .main-navigation .page_item_has_children.is-submenu-open > .menu-item-row > .submenu-toggle {
    background: rgba(187, 62, 91, 0.12);
    border-color: rgba(187, 62, 91, 0.18);
    color: var(--brand-strong);
  }
  .main-navigation .menu-item-row:hover,
  .main-navigation .menu-item-row:focus-within {
    background: rgba(187, 62, 91, 0.08);
  }
  .main-navigation ul ul,
  .main-navigation .sub-menu,
  .main-navigation .children {
    position: static;
    display: none !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .main-navigation .menu-item-has-children.is-submenu-open > ul,
  .main-navigation .page_item_has_children.is-submenu-open > ul,
  .main-navigation .menu-item-has-children.is-submenu-open > .sub-menu,
  .main-navigation .page_item_has_children.is-submenu-open > .children {
    display: block !important;
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
    margin: 0 12px 12px;
    padding: 2px 0 0;
    border-top: 1px solid rgba(31, 41, 51, 0.06);
    background: rgba(187, 62, 91, 0.03);
    border-radius: 14px;
  }
  .main-navigation ul ul a,
  .main-navigation .sub-menu a,
  .main-navigation .children a {
    min-height: 44px;
    padding: 0 16px 0 22px;
    border-bottom: 1px solid rgba(31, 41, 51, 0.05);
    border-radius: 0;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.9rem;
    color: #43505c;
  }
  .main-navigation .menu-item-has-children.is-submenu-open > .menu-item-row > a,
  .main-navigation .page_item_has_children.is-submenu-open > .menu-item-row > a {
    color: var(--brand-strong);
    background: transparent;
  }
  .main-navigation .menu-item-has-children.is-submenu-open > .menu-item-row,
  .main-navigation .page_item_has_children.is-submenu-open > .menu-item-row {
    background: rgba(187, 62, 91, 0.08);
  }
  .main-navigation .current-menu-item > .menu-item-row,
  .main-navigation .current-menu-parent > .menu-item-row,
  .main-navigation .current-menu-ancestor > .menu-item-row {
    background: rgba(187, 62, 91, 0.08);
  }
  .main-navigation .current-menu-item > .menu-item-row > a,
  .main-navigation .current-menu-parent > .menu-item-row > a,
  .main-navigation .current-menu-ancestor > .menu-item-row > a {
    background: transparent;
    color: var(--brand-strong);
  }
  .main-navigation ul ul li:last-child > a,
  .main-navigation .sub-menu li:last-child > a,
  .main-navigation .children li:last-child > a {
    border-bottom: 0;
  }
  .main-navigation .current-menu-item > a,
  .main-navigation .current-menu-parent > a,
  .main-navigation .current-menu-ancestor > a {
    background: rgba(187, 62, 91, 0.08);
    color: var(--brand-strong);
  }
  .post-card .entry-summary p { max-width: none; }
}


@media (max-width: 1120px) {
  .single-discovery {
    padding: 10px;
  }

  .single-discovery__header,
  .single-discovery__card--next,
  .single-discovery__card--random {
    display: none;
  }

  .single-discovery__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .single-discovery__actions.has-next,
  .single-discovery__actions.no-next {
    grid-template-columns: none;
  }

  .single-discovery__secondary-links {
    justify-content: flex-start;
  }

  .single-discovery__card + .single-discovery__secondary-links::before {
    display: none;
  }
}
@media (min-width: 1121px) {
  .sidebar-layout__aside .widget {
    padding: 22px 20px 20px 24px;
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .entry-content table,
  .entry-summary table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 1.1rem;
    font-size: 0.95em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content th,
  .entry-content td,
  .entry-summary th,
  .entry-summary td {
    padding: 10px 11px;
  }

  .entry-content .wp-block-table,
  .entry-summary .wp-block-table {
    margin: 1rem 0 1.1rem;
    overflow-x: auto;
  }
  .container { width: min(100%, var(--container)); }
  .site-header > .container,
  .main-navigation > .container {
    width: min(calc(100% - 20px), var(--container));
  }
  .site-content { padding-top: 3px; padding-bottom: 20px; }
  .single-post .site-content { padding-top: 0; }
  .single-post .sidebar-layout,
  .single-post .sidebar-layout__main,
  .single-post .single-card,
  .single-post .single-discovery,
  .single-post .single-related,
  .single-post .comments-area {
    max-width: 100%;
    overflow-x: hidden;
  }
  .single-post .entry-content,
  .single-post .entry-footer,
  .single-post .post-action-bar,
  .single-post .single-ad-slot,
  .single-post .single-ad-slot > *,
  .single-post .single-ad-slot ins,
  .single-post .single-ad-slot iframe {
    max-width: 100% !important;
  }
  .author .author-jokes-heading {
    padding-inline: 10px;
    margin-bottom: 6px;
  }
  .category .site-content { padding-top: 0; }
  .page:has(.is-submit-page) .site-content { padding-top: 0; }
  .site-header__inner { min-height: 56px; }
  .site-title { max-width: min(38vw, 9.8rem); overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .site-title, .site-title a { font-size: clamp(0.82rem, 2.8vw, 0.92rem); line-height: 0.98; }
  .widget { margin-bottom: 12px; }
  .widget-title { margin-bottom: 8px; font-size: 1.15rem; }
  .widget li + li { margin-top: 8px; }
  .site-actions {
    gap: 8px;
    margin-left: 0;
    position: static;
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-actions .search-form {
    flex-basis: 146px;
    width: auto;
    margin-left: 0;
  }
  .site-actions .search-form:focus-within,
  .site-actions .search-form.is-search-open {
    left: calc(-7.2rem - 6px);
    right: 0;
    max-width: none;
    margin-left: 0;
  }
  .archive-header, .comments-area, .single-card, .post-card, .page-card, .widget, .submission-panel, .empty-state {
    padding: 10px 14px 11px;
    border-radius: 6px;
    box-shadow: none;
  }
  .single-post .single-card {
    padding: 8px 16px 0;
    border-radius: 3px;
    border-left: 0;
    border-right: 0;
  }
  .home .post-card {
    padding: 12px 14px 6px;
    border-radius: 5px;
  }

  .category .post-card {
    padding-bottom: 6px;
  }
  .archive-header {
    margin-bottom: 4px;
  }
  .archive-header--category {
    padding: 5px 12px 5px;
    border-radius: 5px;
    margin-bottom: 3px;
  }
  .archive-header--category h1 {
    font-size: 1.22rem;
    line-height: 1.02;
  }
  .archive-header--category .archive-kicker {
    font-size: 0.78rem;
  }
  .author-profile {
    padding: 12px;
  }
  .author-profile__identity {
    align-items: flex-start;
    gap: 10px;
  }
  .author-profile__avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .author-profile h1 {
    font-size: 1.34rem;
  }
  .author-profile__stats span,
  .author-profile__badges span {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }
  .author-follow,
  .author-follow:link,
  .author-follow:visited {
    min-height: 30px;
    margin-top: 8px;
    padding-inline: 10px;
    font-size: 0.76rem;
  }
  .author-jokes-heading {
    align-items: flex-start;
  }
  .author-profile-tabs {
    width: 100%;
    gap: 4px;
  }
  .author-profile-tab,
  .author-profile-tab:link,
  .author-profile-tab:visited {
    flex: 1 1 auto;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.78rem;
  }
  .section-heading-home {
    gap: 6px 8px;
    margin-bottom: 0;
  }
  .section-heading.section-heading-home h2 {
    font-size: 1.08rem;
  }
  .home-feed-tabs {
    gap: 5px;
    margin: 3px 0 5px;
  }

  .category .section-heading-category {
    margin: -1px 0 3px;
  }

  .category .section-heading-category .home-feed-tabs {
    margin: 1px 0 3px;
  }
  .home-feed-tab,
  .home-feed-tab:link,
  .home-feed-tab:visited {
    flex: 0 0 auto;
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .home-feed-tab--latest {
    width: 58px;
  }
  .home-feed-tab--trend {
    width: 68px;
  }
  .home-feed-tab--popular {
    width: 70px;
  }
  .home-feed-tab--random {
    width: 78px;
  }
  .home-feed-tab--favorites {
    width: 42px;
    padding-inline: 0;
  }
  .home-feed-tab--favorites .home-feed-tab__label {
    display: none;
  }
  .home-feed-tab--favorites .home-feed-tab__count {
    position: absolute;
    top: -2px;
    right: -1px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    font-size: 0.54rem;
  }
  .posts-stack { gap: 4px; margin-bottom: 1px; }
  .home .site-content { padding-top: 1px; }
  .single-card { padding-top: 6px; padding-bottom: 0; }
  .single-card .entry-content { font-size: 0.88rem; line-height: 1.44; }
  .single-card .entry-title { font-size: 1.02rem; line-height: 1.1; }
  .single-author-card {
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 7px;
  }
  .single-author-card .author-follow {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }
  .single-author-card__avatar {
    width: 28px;
    height: 28px;
  }
  .single-author-card__eyebrow {
    display: none;
  }
  .post-card .entry-header { margin-bottom: 3px; }
  .post-card .entry-summary {
    font-size: 0.84rem;
    line-height: 1.38;
    margin-top: 2px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
    .post-card .entry-summary p {
      max-width: none;
      margin-bottom: 0.42em;
    }
  .single-discovery {
    margin-top: 0;
    padding: 5px 10px 2px;
    border-radius: 0;
    box-shadow: none;
  }
  .single-related {
    margin-top: 8px;
    padding: 9px 10px 10px;
    border-radius: 6px;
    box-shadow: none;
  }
  .single-related__header {
    margin-bottom: 5px;
  }
  .single-related__eyebrow {
    display: none;
  }
  .single-related__header h2 {
    font-size: 1rem;
  }
  .single-related__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .single-related__item,
  .single-related__item:link,
  .single-related__item:visited {
    min-height: 0;
    padding: 8px 9px;
    gap: 3px;
  }
  .single-related__title {
    font-size: 0.96rem;
  }
  .single-related__summary {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .comment-nudge {
    margin-bottom: 6px;
    font-size: 0.84rem;
  }

  .single-discovery__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 0;
  }
  .single-discovery__actions.has-next,
  .single-discovery__actions.no-next {
    grid-template-columns: none;
  }
  .single-discovery__card--next {
    min-width: 0;
  }
  .single-discovery__card,
  .single-discovery__actions > a.single-discovery__card,
  .single-discovery__actions > button.single-discovery__card {
    display: inline-flex;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand-strong);
    text-decoration: none;
  }
  .single-discovery__card--next,
  .single-discovery__card--random,
  .single-discovery__actions > a.single-discovery__card.single-discovery__card--next,
  .single-discovery__actions > a.single-discovery__card.single-discovery__card--random {
    display: none !important;
  }
  .single-discovery__card--next,
  .single-discovery__card--random,
  .single-discovery__card--share {
    min-width: 0;
  }
  .single-discovery__card--next,
  .single-discovery__actions > a.single-discovery__card.single-discovery__card--next,
  .single-discovery__actions > a.single-discovery__card.single-discovery__card--random {
    flex: 1 1 calc(50% - 3px);
    background-color: rgba(187, 62, 91, 0.16) !important;
    background-image: linear-gradient(135deg, rgba(187, 62, 91, 0.24), rgba(226, 185, 91, 0.24)) !important;
    border-color: rgba(187, 62, 91, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  .single-discovery__card--random,
  .single-discovery__actions > a.single-discovery__card.single-discovery__card--next,
  .single-discovery__actions > a.single-discovery__card.single-discovery__card--random {
    flex: 1 1 calc(50% - 3px);
  }
  .single-discovery__secondary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
  }
  .single-discovery__text-link,
  .single-discovery__text-link:link,
  .single-discovery__text-link:visited {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(187, 62, 91, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    text-align: left;
  }
  button.single-discovery__card--share {
    display: inline-flex;
    flex: 0 0 132px;
    width: 132px;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding-left: 12px;
    padding-right: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
  }
  .post-card .entry-summary { font-size: 0.84rem; line-height: 1.38; margin-top: 2px; }
  .post-card__read-more-inline {
    font-size: 0.86em;
    font-weight: 850;
    margin-left: 0.08em;
  }
  .post-card .entry-title { font-size: 1.02rem; font-weight: 600; line-height: 1.1; }
  .single-card .entry-content { font-size: 0.88rem; line-height: 1.44; overflow-wrap: anywhere; }
  .entry-meta {
    gap: 6px 12px;
    margin-top: 10px;
  }
  .entry-footer,
  .post-card .entry-footer,
  .single-card .entry-footer {
    gap: 10px 12px;
    margin-top: 4px;
    padding-top: 0;
  }

  body.single-post .single-card .entry-content,
  body.single-post .single-card .entry-content p,
  body.single-post .single-card .entry-content li {
    font-size: 0.88rem;
    line-height: 1.44;
  }

  body.single-post .entry-actions-footer,
  body.single-post .post-action-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    overflow-x: visible;
    overflow-y: visible;
    scrollbar-width: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.single-post .entry-actions-footer::-webkit-scrollbar,
  body.single-post .post-action-bar::-webkit-scrollbar {
    display: none;
  }

  body.single-post .post-vote-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 0 100%;
    min-width: 100%;
    gap: 4px;
  }

  body.single-post .post-action-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  body.single-post .post-vote-btn {
    width: 100%;
    min-width: 0;
  }

  body.single-post .post-comments-btn {
    flex: 1 1 auto;
    min-width: min(190px, calc(100% - 88px));
    padding-inline: 12px;
    font-weight: 800;
  }

  body.single-post .post-action-btn__emoji {
    font-size: 0.92rem;
  }

  .comments-area {
    margin-top: 0;
    padding: 6px 12px 14px 16px;
    border-radius: 6px;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
  }
  .comments-area #wpdcom,
  .comments-area .wpdiscuz-comment-form,
  .comments-area .wpdiscuz-comments,
  .comments-area .wpd-main-form-wrapper,
  .comments-area .wpd-main-form-wrap,
  .comments-area .wpd-form-wrap,
  .comments-area .wpd-thread-wrapper,
  .comments-area .wpd-thread-list,
  .comments-area .wpd-comments,
  .comments-area .wc-field-comment,
  .comments-area .wpd-form-row,
  .comments-area .wpdiscuz-item {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }
  .comments-title {
    font-size: 0.98rem;
    margin-bottom: 3px;
  }
  .comments-area .wpd-form-head,
  .comments-area .wpd-thread-head,
  .comments-area .wpd-thread-info,
  .comments-area .wpdiscuz-subscribe-bar,
  .comments-area .wc_social_plugin_wrapper,
  .comments-area .wpdiscuz_top_clearing {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .comments-area .wpd-main-form-wrapper {
    margin-top: 0 !important;
  }
  .comments-area .comment,
  .comments-area .wpd-comment,
  .comments-area .wpd-comment-wrap {
    border-radius: 18px;
  }
  .comments-area .wpd-comment-right {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .comments-area .wpd-comment-text {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .comments-area .wpd-form-head {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .comments-area .wpd-main-form-wrap,
  .comments-area .wpd-form-wrap,
  .comments-area .wpdiscuz-form,
  .comments-area .wpdiscuz-comments,
  .comments-area .wpdiscuz-comment-form,
  .comments-area .wpd-form-head {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .comments-area .wpd-form-wrap,
  .comments-area .wpd-main-form-wrap {
    box-sizing: border-box !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .comments-area .wpd-thread-head {
    margin-top: 3px !important;
    padding-top: 3px !important;
  }
  .comments-area .wpd-thread-list,
  .comments-area .wpd-comments {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .comments-area textarea,
  .comments-area #comment,
  .comments-area .wpd-textarea-wrap textarea,
  .comments-area .wpdiscuz-textarea-wrap textarea,
  .comments-area .ql-editor,
  .comments-area .wpd-form-row textarea,
  .comments-area .wc_comment-textarea textarea,
  .comments-area textarea[placeholder] {
    padding: 10px 12px !important;
  }
  .comment-form textarea,
  .comments-area textarea,
  .comments-area #comment,
  .comments-area .wpd-textarea-wrap textarea,
  .comments-area .wpdiscuz-textarea-wrap textarea,
  .comments-area .ql-editor,
  .comments-area .wpd-form-row textarea,
  .comments-area .wc_comment-textarea textarea,
  .comments-area textarea[placeholder],
  .comments-area .ql-container,
  .comments-area .ql-editor.ql-blank {
    min-height: 58px !important;
  }
  .comments-area .wpd-main-form-wrapper:focus-within textarea,
  .comments-area .wpd-main-form-wrapper:focus-within #comment,
  .comments-area .wpd-main-form-wrapper:focus-within .wpd-textarea-wrap textarea,
  .comments-area .wpd-main-form-wrapper:focus-within .wpdiscuz-textarea-wrap textarea,
  .comments-area .wpd-main-form-wrapper:focus-within .ql-editor,
  .comments-area .wpd-main-form-wrapper:focus-within .wpd-form-row textarea,
  .comments-area .wpd-main-form-wrapper:focus-within .wc_comment-textarea textarea,
  .comments-area .wpd-main-form-wrapper:focus-within textarea[placeholder],
  .comments-area .wpd-main-form-wrapper:focus-within .ql-container,
  .comments-area .wpd-main-form-wrapper:focus-within .ql-editor.ql-blank,
  .comments-area.is-comment-open textarea,
  .comments-area.is-comment-open #comment,
  .comments-area.is-comment-open .wpd-textarea-wrap textarea,
  .comments-area.is-comment-open .wpdiscuz-textarea-wrap textarea,
  .comments-area.is-comment-open .ql-editor,
  .comments-area.is-comment-open .wpd-form-row textarea,
  .comments-area.is-comment-open .wc_comment-textarea textarea,
  .comments-area.is-comment-open textarea[placeholder],
  .comments-area.is-comment-open .ql-container,
  .comments-area.is-comment-open .ql-editor.ql-blank {
    min-height: 128px !important;
  }
  .comments-area .wpd-main-form-wrapper:focus-within textarea,
  .comments-area .wpd-main-form-wrapper:focus-within #comment,
  .comments-area .wpd-main-form-wrapper:focus-within .wpd-textarea-wrap textarea,
  .comments-area .wpd-main-form-wrapper:focus-within .wpdiscuz-textarea-wrap textarea,
  .comments-area .wpd-main-form-wrapper:focus-within .ql-editor,
  .comments-area .wpd-main-form-wrapper:focus-within .wpd-form-row textarea,
  .comments-area .wpd-main-form-wrapper:focus-within .wc_comment-textarea textarea,
  .comments-area .wpd-main-form-wrapper:focus-within textarea[placeholder] {
    padding: 12px 13px !important;
  }
  .comments-area .ql-toolbar,
  .comments-area .wpd-tools-wrapper {
    padding: 6px 8px !important;
  }
  .comments-area .ql-container,
  .comments-area .wpd-textarea-wrap textarea,
  .comments-area .wpdiscuz-textarea-wrap textarea,
  .comments-area textarea[placeholder] {
    border-radius: 18px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .single-card + .comments-area {
    margin-top: -8px;
  }
  .single-discovery + .comments-area {
    margin-top: 3px !important;
  }
  .single-discovery + .wpdiscuz_top_clearing {
    display: none !important;
  }
  main .single-card + #comments.comments-area,
  .sidebar-layout__main .single-card + #comments.comments-area,
  .sidebar-layout__main article.single-card + section.comments-area.card {
    margin-top: 4px !important;
    padding-top: 5px !important;
    transform: none !important;
    margin-bottom: 98px !important;
  }
  .is-submit-page {
    padding: 12px 12px 14px;
  }
  .submit-page-header {
    margin-bottom: 7px;
  }
  .submit-page-intro {
    font-size: 0.9rem;
    line-height: 1.38;
  }
  .submit-page-tips {
    margin-top: 10px;
    padding: 10px 11px;
    border-radius: 14px;
  }
  .submit-page-tips p {
    font-size: 0.84rem;
    line-height: 1.36;
  }
  .submit-page-trust {
    gap: 5px;
    margin-top: 7px;
  }
  .submit-page-trust span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
  .submit-page-note {
    margin-top: 7px;
    font-size: 0.78rem;
    line-height: 1.34;
  }
  .is-submit-page .entry-content input[type="text"],
  .is-submit-page .entry-content input[type="email"],
  .is-submit-page .entry-content select {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 0.94rem;
  }
  .is-submit-page .entry-content textarea {
    min-height: 320px;
    padding: 14px 15px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.46;
  }
  .is-submit-page .entry-content input[type="submit"],
  .is-submit-page .entry-content button[type="submit"] {
    min-height: 50px;
    font-size: 1rem;
  }
  .live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin-top: 0;
  }
  .post-navigation, .comment-author-line { flex-direction: column; align-items: flex-start; }
  .post-navigation {
    display: none;
    margin-top: 8px;
    gap: 8px;
    width: 100%;
  }
  .post-navigation .nav-links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    flex: 1 1 0;
    width: auto;
  }
  .post-navigation .nav-next {
    text-align: right;
  }
  .post-navigation .nav-previous a,
  .post-navigation .nav-next a {
    color: var(--brand-strong);
    display: inline-block;
    margin-left: 0;
  }
  .entry-footer {
    flex-direction: row;
    align-items: center;
    gap: 10px 14px;
  }
  body.single-post {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .single-sticky-loop {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 8px;
    width: min(100vw, 490px);
    max-height: none;
    padding: 4px 8px max(4px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: visible;
    border: 1px solid rgba(31, 41, 51, 0.1);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 -1px 5px rgba(31, 41, 51, 0.07), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
    transform: translate3d(-50%, 0, 0);
    transition: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .single-sticky-loop__button,
  .single-sticky-loop__button:link,
  .single-sticky-loop__button:visited {
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .site-title {
    max-width: min(38vw, 7.8rem);
  }

  .site-title,
  .site-title a {
    font-size: 0.72rem;
  }

  .site-actions .search-form {
    flex-basis: 116px;
    min-width: 92px;
    width: auto;
  }

  .post-action-btn {
    font-size: 0.68rem;
    padding-inline: 5px;
  }

  body.single-post .post-action-bar,
  body.single-post .post-vote-group {
    flex-wrap: wrap;
  }

  body.single-post .post-vote-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 100%;
  }

  body.single-post .post-action-btn {
    min-height: 34px;
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  body.single-post .post-comments-btn {
    min-width: min(170px, calc(100% - 80px));
    padding-inline: 10px;
    border-color: rgba(187, 62, 91, 0.22);
    background: linear-gradient(180deg, rgba(187, 62, 91, 0.11), rgba(255, 255, 255, 0.98));
    color: var(--brand-strong);
  }

  .post-action-btn__emoji {
    font-size: 0.9rem;
  }
  .single-sticky-loop {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 6px;
    width: min(100vw, 490px);
    padding: 3px 6px max(3px, env(safe-area-inset-bottom, 0px));
  }
  .single-sticky-loop__button,
  .single-sticky-loop__button:link,
  .single-sticky-loop__button:visited {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 0.78rem;
  }
  .section-heading-home {
    gap: 5px 6px;
  }

  .home-feed-tabs {
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .home-feed-tabs::-webkit-scrollbar {
    display: none;
  }

  .home-feed-tab,
  .home-feed-tab:link,
  .home-feed-tab:visited {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.79rem;
    white-space: nowrap;
  }
  .home-feed-tab--latest {
    width: 58px;
  }
  .home-feed-tab--trend {
    width: 68px;
  }
  .home-feed-tab--popular {
    width: 70px;
  }
  .home-feed-tab--random {
    width: 78px;
  }
  .home-feed-tab--favorites {
    width: 40px;
    min-width: 40px;
    padding-inline: 0;
  }
  .home-feed-tab--favorites .home-feed-tab__label {
    display: none;
  }
  .home-feed-tab--favorites .home-feed-tab__count {
    position: absolute;
    top: -2px;
    right: -1px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    font-size: 0.54rem;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .site-title,
  .site-title a {
    display: block;
    max-width: min(30vw, 8.2rem);
    font-size: clamp(0.78rem, 2.65vw, 0.88rem);
    white-space: nowrap;
  }

  .site-actions {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-height: 1.62;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 7.2rem) minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 56px;
    overflow: visible;
  }

  .site-branding,
  .site-branding > div {
    min-width: 0;
  }

  .site-title,
  .site-title a {
    display: block;
    max-width: 7.2rem;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 0.76rem;
    line-height: 1;
    letter-spacing: 0;
  }

  .site-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
    min-width: 0;
    margin-left: 0;
  }

  .site-actions .search-form {
    min-width: 0;
    width: auto;
    flex-basis: auto;
  }

  .site-actions .search-field {
    width: 100%;
    min-width: 0;
    font-size: 0.92rem;
  }

  .post-card .entry-title {
    font-size: 1.02rem;
    line-height: 1.1;
  }

  .post-card .entry-summary,
  .post-card .entry-summary p {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  body.single-post .single-card .entry-title {
    font-size: 1.02rem;
    line-height: 1.1;
  }

  body.single-post .single-card .entry-content,
  body.single-post .single-card .entry-content p,
  body.single-post .single-card .entry-content li {
    font-size: 0.88rem;
    line-height: 1.44;
  }
}

@media (max-width: 380px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 6.8rem) minmax(0, 1fr) auto;
    gap: 6px;
  }

  .site-title,
  .site-title a {
    max-width: 6.8rem;
    font-size: 0.72rem;
  }
}

/* Compact ad rhythm. */
body.home .site-content {
  padding-top: 0;
}

body.home .homepage-ad-slot {
  margin: 0;
}

body.home .section-heading-home {
  margin-top: 0;
  margin-bottom: 0;
}

body.home .home-feed-tabs {
  margin: 4px 0 4px;
}

/* Mobile header stability: keep the first paint and final paint identical. */
@media (max-width: 1120px) {
  .site-header {
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: visible !important;
    position: relative !important;
  }

  .site-header__inner {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 7.2rem) minmax(0, 1fr) auto !important;
    align-items: center !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .main-navigation:not(.is-open) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .main-navigation.is-open {
    position: absolute !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    display: block !important;
  }

  .site-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 64px 36px !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    min-width: 0 !important;
  }

  .site-actions .search-form {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    inset: auto !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .site-actions .search-form:focus-within,
  .site-actions .search-form.is-search-open {
    position: absolute !important;
    top: 50% !important;
    left: calc(-7.2rem - 6px) !important;
    right: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    transform: translateY(-50%) !important;
    z-index: 90 !important;
  }

  .site-actions .search-field {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.9rem !important;
    line-height: 38px !important;
  }

  .site-actions .search-form:focus-within .search-field,
  .site-actions .search-form.is-search-open .search-field {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding-right: 42px !important;
    line-height: 42px !important;
  }

  .site-actions a.header-submit-button.button.button-primary,
  .site-actions .header-submit-button {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  .menu-toggle {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}

/* Final stability override for single-post navigation loads. Keep these values in
   sync with the critical first-paint CSS in header.php. */
@media (max-width: 1120px) {
  .site-title,
  .site-title a {
    max-width: min(38vw, 11rem) !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: clamp(0.88rem, 3.05vw, 1rem) !important;
    line-height: 0.98 !important;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px !important;
    line-height: 1.62 !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  .site-title,
  .site-title a {
    display: block !important;
    max-width: 7.2rem !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  body.single-post .single-card .entry-title {
    font-size: 1.02rem !important;
    line-height: 1.1 !important;
  }

  .post-card .entry-title {
    font-size: 1.02rem !important;
    line-height: 1.1 !important;
  }

  .post-card .entry-summary,
  .post-card .entry-summary p {
    font-size: 0.84rem !important;
    line-height: 1.38 !important;
  }

  body.single-post .single-card .entry-content,
  body.single-post .single-card .entry-content p,
  body.single-post .single-card .entry-content li {
    font-size: 0.88rem !important;
    line-height: 1.44 !important;
  }
}

@media (max-width: 380px) {
  .site-title,
  .site-title a {
    max-width: 6.8rem !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 380px) {
  .site-actions .search-form:focus-within,
  .site-actions .search-form.is-search-open {
    left: calc(-6.8rem - 6px) !important;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 6.8rem) minmax(0, 1fr) auto !important;
  }
}

/* Mobile feed/card density: small app-like gutters, not hard edge-to-edge cards. */
@media (max-width: 760px) {
  body.home .site-content > .container,
  body.category .site-content > .container,
  body.single-post .site-content > .container {
    width: min(calc(100% - 12px), var(--container)) !important;
  }

  body.home .post-card,
  body.category .post-card {
    width: calc(100% - 4px) !important;
    margin-inline: auto !important;
    padding-inline: 12px !important;
    border-radius: 7px !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
  }

  body.single-post .single-card,
  body.single-post #comments.comments-area {
    width: calc(100% - 4px) !important;
    margin-inline: auto !important;
    padding-inline: 12px !important;
    border-radius: 7px !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035) !important;
  }
}

.mobile-feed-dock {
  display: none;
}

@media (max-width: 760px) {
  body.home,
  body.category,
  body.search,
  body.is-submit-page-view {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  body.home .site-content,
  body.category .site-content,
  body.search .site-content,
  body.is-submit-page-view .site-content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-feed-dock {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: min(100vw, 490px);
    padding: 4px 8px max(4px, env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(31, 41, 51, 0.1);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 -1px 5px rgba(31, 41, 51, 0.07), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
    transform: translate3d(-50%, 0, 0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body.nav-open .mobile-feed-dock {
    display: none;
  }

  body.home .home-feed-tabs,
  body.category .section-heading-category .home-feed-tabs {
    display: none;
  }

  body.home .section-heading-home {
    justify-content: flex-end;
  }

  .mobile-feed-dock__item,
  .mobile-feed-dock__item:link,
  .mobile-feed-dock__item:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-feed-dock__item:hover,
  .mobile-feed-dock__item:focus,
  .mobile-feed-dock__item:focus-visible {
    border-color: rgba(187, 62, 91, 0.18);
    background: rgba(187, 62, 91, 0.08);
    color: var(--brand-strong);
    text-decoration: none;
  }

  .mobile-feed-dock__item.is-active,
  .mobile-feed-dock__item[aria-current="page"] {
    border-color: rgba(187, 62, 91, 0.16);
    background: rgba(187, 62, 91, 0.055);
    color: var(--brand-strong);
    box-shadow: none;
  }

  .mobile-feed-dock__item--submit,
  .mobile-feed-dock__item--submit:link,
  .mobile-feed-dock__item--submit:visited {
    border-color: rgba(187, 62, 91, 0.28);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(187, 62, 91, 0.18);
  }

  .mobile-feed-dock__item--submit:hover,
  .mobile-feed-dock__item--submit:focus,
  .mobile-feed-dock__item--submit:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    box-shadow: 0 5px 12px rgba(187, 62, 91, 0.18);
  }

  .home-submit-nudge {
    display: block;
    min-height: 48px;
    margin: 3px 0;
    padding: 3px 6px;
    border-radius: 0;
  }

  .home-submit-nudge__copy span {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .mobile-feed-dock {
    gap: 2px;
    width: min(100vw, 490px);
    padding: 3px 6px max(3px, env(safe-area-inset-bottom, 0px));
  }

  .mobile-feed-dock__item,
  .mobile-feed-dock__item:link,
  .mobile-feed-dock__item:visited {
    min-height: 44px;
    padding-inline: 3px;
    font-size: 0.7rem;
  }

  .home-submit-nudge {
    align-items: stretch;
    gap: 8px;
  }

  .home-submit-nudge__copy strong {
    font-size: 0.88rem;
  }

  .home-submit-nudge__button,
  .home-submit-nudge__button:link,
  .home-submit-nudge__button:visited {
    padding-inline: 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 1120px) {
  body.home .site-actions,
  body.category .site-actions {
    grid-template-columns: minmax(0, 1fr) 36px !important;
  }

  body.home .site-actions a.header-submit-button.button.button-primary,
  body.home .site-actions .header-submit-button,
  body.category .site-actions a.header-submit-button.button.button-primary,
  body.category .site-actions .header-submit-button {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .header-account-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-account-link--favorites {
    gap: 5px;
  }

  .home-feed-tabs,
  body.home .home-feed-tabs,
  body.category .section-heading-category .home-feed-tabs {
    display: none !important;
  }

  body.nav-open .single-sticky-loop {
    display: none !important;
  }

  body.single-post .post-action-bar {
    column-gap: 4px;
    row-gap: 9px;
  }

  .pagination {
    box-sizing: border-box;
    width: 100%;
    padding-inline: 8px;
  }

  .pagination .nav-links {
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    margin-top: 0;
    gap: 6px;
  }

  .pagination .page-numbers {
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.82rem;
    line-height: 1;
  }

  .pagination .page-numbers.prev,
  .pagination .page-numbers.next {
    position: relative;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding-inline: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .pagination .page-numbers.prev::before,
  .pagination .page-numbers.next::before {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1;
  }

  .pagination .page-numbers.prev::before {
    content: "<";
  }

  .pagination .page-numbers.next::before {
    content: ">";
  }

  .pagination .page-numbers.dots {
    min-width: 26px;
    width: 26px;
    padding-inline: 0;
    border-color: transparent;
    background: transparent;
  }
}

@media (max-width: 1120px) {
  .main-navigation.is-open {
    background: #f8f9f8 !important;
    border-top: 1px solid rgba(31, 41, 51, 0.08) !important;
    border-bottom: 1px solid rgba(31, 41, 51, 0.08) !important;
    box-shadow: 0 18px 36px rgba(31, 41, 51, 0.16) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .main-navigation.is-open > .container {
    background: #f8f9f8 !important;
  }

  .main-navigation.is-open a,
  .main-navigation.is-open button,
  .main-navigation.is-open .header-account-link,
  .main-navigation.is-open .submenu-toggle,
  .menu-toggle,
  .mobile-feed-dock__item,
  .single-sticky-loop__button {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
  }

  .main-navigation.is-open a:focus,
  .main-navigation.is-open a:focus-visible,
  .main-navigation.is-open button:focus,
  .main-navigation.is-open button:focus-visible,
  .menu-toggle:focus,
  .menu-toggle:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(187, 62, 91, 0.12) !important;
  }
}

/* Finale Retention-Regeln stehen bewusst am Dateiende, damit spätere
   Legacy-Media-Queries keine Größen zurücksetzen und kein Nachladen nötig ist. */
@media (min-width: 1121px) {
  /* Keep the entertainment feed visible sooner without shrinking its
     primary actions: only the desktop brand row becomes denser. */
  .site-header__inner {
    box-sizing: border-box;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-actions .search-field {
    width: 240px;
  }

  .site-actions .live-search-results {
    left: auto;
    right: 0;
    width: min(560px, calc(100vw - 40px));
    max-height: min(68vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .retention-primary-menu .retention-categories-item:hover > .retention-categories-menu,
  .retention-primary-menu .retention-categories-item:focus-within > .retention-categories-menu,
  .retention-primary-menu .retention-categories-item.is-submenu-open > .retention-categories-menu {
    display: grid !important;
  }
}

@media (max-width: 1120px) {
  .main-navigation .retention-categories-item.is-submenu-open > .retention-categories-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: min(52vh, 420px) !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 760px) {
  .home .posts-stack {
    gap: 3px;
  }

  .home .post-card {
    padding: 10px 14px 5px;
  }

  .post-card .entry-title {
    display: -webkit-box;
    max-height: 2.2em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .post-card .entry-summary p:last-child {
    margin-bottom: 0.34em;
  }
}

/* Final retention overrides: intentional last word over legacy component rules. */
.home-submit-nudge {
  flex-wrap: wrap;
}

.home-submit-nudge__button {
  border: 0;
  font-family: var(--font-ui);
  cursor: pointer;
}

.home-quick-submit {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.home-quick-submit[hidden],
.home-quick-submit__success[hidden],
.home-quick-submit__form[hidden] {
  display: none !important;
}

.home-quick-submit__form form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.home-quick-submit__form label,
.home-quick-submit__form legend,
.home-quick-submit__form input[hidden],
.home-quick-submit__form select[hidden] {
  display: none !important;
}

.home-quick-submit__form textarea {
  display: block;
  width: 100% !important;
  min-height: 132px !important;
  max-height: 380px !important;
  margin: 0 !important;
  padding: 13px 14px !important;
  resize: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font: 0.92rem/1.52 var(--font-ui) !important;
  box-shadow: none !important;
}

.home-quick-submit__form textarea:focus {
  outline: 2px solid rgba(169, 47, 85, 0.13) !important;
  outline-offset: 1px;
  border-color: rgba(169, 47, 85, 0.38) !important;
}

.home-quick-submit__form input[type="submit"],
.home-quick-submit__form button[type="submit"] {
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--brand) !important;
  border-radius: 999px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-family: var(--font-ui) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.home-submit-nudge.is-submitting .home-quick-submit__form {
  opacity: 0.68;
  pointer-events: none;
}

.home-quick-submit__feedback {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.home-quick-submit__feedback:empty {
  display: none;
}

.home-quick-submit__feedback.is-error {
  color: #8b2a3f;
}

.home-quick-submit__success {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(57, 125, 86, 0.18);
  border-radius: 12px;
  background: rgba(57, 125, 86, 0.07);
  color: var(--ink);
}

.home-quick-submit__success span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-quick-submit__full-link {
  display: inline-flex;
  margin-top: 9px;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.is-submit-page .entry-content textarea {
  min-height: 300px !important;
  max-height: 520px !important;
  resize: none !important;
}

@media (max-width: 760px) {
  .home-submit-nudge {
    display: block !important;
    min-height: 48px;
    margin: 3px 0;
    padding: 3px 6px !important;
    border-radius: 0;
  }

  .home-submit-nudge__copy {
    gap: 4px;
  }

  .home-submit-nudge__button,
  .home-submit-nudge__button:link,
  .home-submit-nudge__button:visited {
    width: 100%;
    min-height: 44px;
  }

  .home-quick-submit {
    margin-top: 0;
    padding-top: 12px;
  }

  .home-quick-submit__form textarea {
    min-height: 128px !important;
  }

  .is-submit-page {
    padding: 14px 16px 18px !important;
  }

  .is-submit-page .entry-content textarea {
    min-height: 300px !important;
    padding: 14px 15px !important;
  }

  body.page:has(.is-submit-page) .site-footer .container {
    width: 100%;
    padding-inline: 16px;
  }
}

html body #comments #wpdcom .wpd-thread-head,
html body #comments #wpdcom .wpd-thread-head > *,
html body #comments #wpdcom .wpd-thread-head .wpd-thread-info,
html body #comments #wpdcom .wpd-thread-head .wpd-thread-filter {
  border-color: var(--line) !important;
}

html body #comments #wpdcom .wpd-thread-head .wpd-filter-active,
html body #comments #wpdcom .wpd-thread-head [class*="active"] {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

html body #comments #wpdcom .wpd-thread-head svg,
html body #comments #wpdcom .wpd-thread-head i:not(.wpd-filter-active),
html body #comments #wpdcom .wpdiscuz-subscribe-bar {
  color: var(--muted) !important;
  fill: currentColor !important;
}
.sidebar-layout__aside .widget a.sidebar-quick-actions__link--primary,
.sidebar-layout__aside .widget a.sidebar-quick-actions__link--primary:link,
.sidebar-layout__aside .widget a.sidebar-quick-actions__link--primary:visited {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #fff !important;
}

.sidebar-layout__aside .widget a.sidebar-quick-actions__link--primary:hover,
.sidebar-layout__aside .widget a.sidebar-quick-actions__link--primary:focus-visible {
  border-color: var(--brand-strong) !important;
  background: var(--brand-strong) !important;
  color: #fff !important;
}

.sidebar-layout__aside .widget a.sidebar-quick-actions__link:not(.sidebar-quick-actions__link--primary) {
  color: var(--brand-strong) !important;
}

#comments #wpdcom .wpd-thread-head,
#comments #wpdcom .wpd-thread-head .wpd-thread-info,
#comments #wpdcom .wpd-thread-head .wpd-thread-filter {
  border-color: var(--line) !important;
}

#comments #wpdcom .wpd-thread-head .wpd-thread-info::before,
#comments #wpdcom .wpd-thread-head .wpd-thread-info::after {
  background: var(--brand) !important;
}

#comments #wpdcom .wpd-thread-filter a,
#comments #wpdcom .wpd-thread-head button,
#comments #wpdcom .wpdiscuz-subscribe-bar,
#comments #wpdcom .wpd-sbs-toggle,
#comments #wpdcom .wpd-comment-date,
#comments #wpdcom .wpd-reply-button,
#comments #wpdcom .wpd-vote-up,
#comments #wpdcom .wpd-vote-down {
  color: var(--muted) !important;
}

#comments #wpdcom .wpd-thread-filter a:hover,
#comments #wpdcom .wpd-thread-filter a:focus-visible,
#comments #wpdcom .wpd-reply-button:hover,
#comments #wpdcom .wpd-reply-button:focus-visible {
  color: var(--brand-strong) !important;
}

#comments #wpdcom .wpd-filter-active,
#comments #wpdcom .wpd-thread-filter .wpd-filter-active {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

@media (max-width: 760px) {
  html body.single-post:not(.single-loop-ready) .single-sticky-loop {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(-50%, calc(100% + 24px), 0) !important;
  }

  html body.single-post.single-loop-ready:not(.comments-in-view) .single-sticky-loop {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
  }
}

/* Context-aware retention refinements: compact contribution and action flows. */
#comments #wpdcom .wc-field-comment,
#comments #wpdcom .wpd-textarea-wrap,
#comments #wpdcom .wpdiscuz-textarea-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#comments #wpdcom textarea,
#comments #wpdcom .ql-container {
  box-sizing: border-box !important;
  border: 1px solid rgba(31, 41, 51, 0.16) !important;
  border-bottom-color: rgba(31, 41, 51, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 0 rgba(31, 41, 51, 0.04) !important;
}

.home-quick-submit__form form {
  width: min(100%, 720px);
  margin-inline: auto;
}

.home-quick-submit__feedback,
.home-quick-submit__success,
.home-quick-submit__full-link {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
}

.home-quick-submit__full-link {
  display: flex;
}

.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button:hover,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button:focus-visible {
  border: 1px solid rgba(169, 47, 85, 0.2) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--brand-strong) !important;
  box-shadow: none !important;
}

.sidebar-layout__aside .widget_categories li[hidden] {
  display: none !important;
}

.sidebar-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 13px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-category-toggle:hover,
.sidebar-category-toggle:focus-visible {
  border-color: rgba(169, 47, 85, 0.28);
  background: #fff;
  outline: none;
}

@media (max-width: 760px) {
  body.single-post .entry-actions-footer .post-favorite-btn {
    margin-left: auto;
  }

  .home-submit-nudge.is-quick-submit-open .home-submit-nudge__button {
    min-height: 40px;
  }
}

@media (min-width: 370px) and (max-width: 760px) {
  body.single-post .entry-actions-footer .post-action-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 4px;
    overflow: visible;
  }

  body.single-post .entry-actions-footer .post-vote-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  body.single-post .entry-actions-footer .post-vote-btn {
    min-width: 0;
    min-height: 40px;
    padding-inline: 4px;
    font-size: 0.7rem;
  }

  body.single-post .entry-actions-footer .post-favorite-btn,
  body.single-post .entry-actions-footer .post-share-btn {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-left: 0;
    padding: 0;
  }
}

@media (min-width: 761px) {
  html body.single-post .single-discovery__actions {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.95fr);
    gap: 12px;
  }

  html body.single-post .single-discovery__card,
  html body.single-post .single-discovery__card:link,
  html body.single-post .single-discovery__card:visited {
    display: flex;
    min-height: 74px;
    padding: 12px 18px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    text-align: left;
  }

  html body.single-post .single-discovery__label {
    width: 100%;
    font-size: 0.66rem;
    line-height: 1.15;
    letter-spacing: 0.12em;
  }

  html body.single-post .single-discovery__card strong {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body.single-post .single-discovery__card--primary .single-discovery__label {
    color: rgba(255, 255, 255, 0.78);
  }

  html body.single-post .single-discovery__card--primary strong {
    color: #fff;
  }

  html body.single-post .single-discovery__card--secondary .single-discovery__label {
    color: var(--muted);
  }

  html body.single-post .single-discovery__card--secondary strong {
    color: var(--brand-strong);
  }
}

/* Mobile single: keep all primary actions compact without squeezing larger vote counts. */
@media (max-width: 760px) {
  body.single-post .entry-actions-footer .post-vote-btn {
    display: grid !important;
    grid-template-columns: auto minmax(0, max-content);
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: 4px;
    row-gap: 0;
    min-height: 44px !important;
    padding: 4px 6px !important;
    line-height: 1 !important;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__emoji {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__label {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    line-height: 1.05;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__count {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.05;
    opacity: 0.9;
  }
}

@media (min-width: 360px) and (max-width: 760px) {
  body.single-post .entry-actions-footer .post-action-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

  body.single-post .entry-actions-footer .post-vote-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  body.single-post .entry-actions-footer .post-favorite-btn,
  body.single-post .entry-actions-footer .post-share-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
    padding: 0;
  }
}

#comments.comments-area {
  position: relative !important;
  margin-top: 10px !important;
  padding: 18px 20px !important;
  overflow: clip !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
  box-shadow: var(--shadow) !important;
}

#comments .comments-community-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px !important;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

#comments .comments-community-heading__eyebrow {
  margin: 0 0 3px !important;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

#comments .comments-community-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.15;
}

#comments .comments-community-heading__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

#comments #wpdcom,
#comments #wpdcom input,
#comments #wpdcom textarea,
#comments #wpdcom button,
#comments #wpdcom select,
#comments #wpdcom .ql-editor {
  font-family: var(--font-ui) !important;
}

#comments #wpdcom textarea,
#comments #wpdcom .ql-editor,
#comments .comment-form textarea {
  min-height: 58px !important;
  padding: 13px 15px !important;
  border-color: var(--line) !important;
  border-radius: 12px !important;
  background: #fbfcfb !important;
  color: var(--ink) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

#comments #wpdcom textarea:focus,
#comments #wpdcom .ql-editor:focus,
#comments .comment-form textarea:focus,
#comments.is-comment-open #wpdcom textarea,
#comments.is-comment-open #wpdcom .ql-editor {
  min-height: 132px !important;
  background: #fff !important;
  outline: 2px solid rgba(180, 55, 89, 0.12) !important;
  outline-offset: 1px;
}

#comments #wpdcom .ql-toolbar,
#comments #wpdcom .wpd-tools-wrapper,
#comments #wpdcom .wc-field-comment .wpd-editor-buttons {
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  border-width: 0 !important;
  opacity: 0;
  pointer-events: none;
}

#comments:focus-within #wpdcom .ql-toolbar,
#comments:focus-within #wpdcom .wpd-tools-wrapper,
#comments:focus-within #wpdcom .wc-field-comment .wpd-editor-buttons,
#comments.is-comment-open #wpdcom .ql-toolbar,
#comments.is-comment-open #wpdcom .wpd-tools-wrapper,
#comments.is-comment-open #wpdcom .wc-field-comment .wpd-editor-buttons {
  max-height: 84px !important;
  padding: 7px 10px !important;
  border-width: 1px !important;
  border-color: var(--line) !important;
  opacity: 1;
  pointer-events: auto;
}

#comments #wpdcom .wpd-comment-author,
#comments #wpdcom .wpd-comment-author a,
#comments #wpdcom .wpd-thread-info,
#comments #wpdcom .wpd-comment-text,
#comments #wpdcom .wpd-comment-text p {
  color: var(--ink) !important;
}

#comments #wpdcom .wpd-primary-color,
#comments #wpdcom .wpd-comment-label {
  color: var(--brand) !important;
}

#comments #wpdcom .wpd-primary-bg-color,
#comments #wpdcom input[type="submit"],
#comments #wpdcom button[type="submit"] {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.single-post .single-related {
  margin-top: 12px;
  border-radius: var(--radius);
}

body.single-post .single-discovery {
  margin-top: 12px;
  padding: 18px !important;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #fbf5f6 100%);
}

body.single-post .single-discovery__header,
body.single-post .single-discovery__header h2,
body.single-post .single-discovery__label {
  display: block;
}

body.single-post .single-discovery__header {
  margin-bottom: 12px;
}

body.single-post .single-discovery__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 10px;
}

body.single-post .single-discovery__card {
  min-height: 58px;
  justify-content: center;
  border-radius: 12px !important;
}

@media (max-width: 760px) {
  #comments #wpdcom .wpd-form-head {
    column-gap: 8px;
  }

  #comments #wpdcom .wpd-form-head:has(.wpd-login a + a) .wpd-auth {
    flex: 1 0 100%;
    width: 100%;
    padding-top: 3px !important;
    text-align: left;
  }

  #comments #wpdcom .wpd-form-head:has(.wpd-login a + a) .wpd-login {
    width: 100%;
    text-align: left !important;
  }

  #comments #wpdcom .wpdiscuz-subscribe-bar {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 0 3px !important;
  }

  #comments #wpdcom #wpdiscuz-subscribe-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  #comments #wpdcom .wpdiscuz-subscribe-form-intro,
  #comments #wpdcom .wpdiscuz-subscribe-form-option,
  #comments #wpdcom .wpdiscuz-subscribe-form-email,
  #comments #wpdcom .wpdiscuz-subscribe-form-button,
  #comments #wpdcom .wpdiscuz-subscribe-agreement {
    box-sizing: border-box;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #comments #wpdcom .wpdiscuz-subscribe-form-intro {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
  }

  #comments #wpdcom .wpdiscuz-subscribe-form-option select,
  #comments #wpdcom .wpdiscuz-subscribe-form-email input,
  #comments #wpdcom #wpdiscuz_subscription_button {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--ink) !important;
    font-family: var(--font-ui) !important;
    font-size: 0.86rem !important;
    line-height: 1.2 !important;
  }

  #comments #wpdcom #wpdiscuz_subscription_button {
    border-color: var(--brand) !important;
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 800 !important;
  }

  #comments #wpdcom .wpdiscuz-subscribe-agreement {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.4;
  }

  #comments #wpdcom .wpdiscuz-subscribe-agreement input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 2px 0 0 !important;
  }

  #comments.comments-area {
    margin-top: 5px !important;
    padding: 14px 8px !important;
    border-radius: 12px !important;
  }

  #comments .comments-community-heading {
    align-items: flex-start;
    margin-bottom: 10px !important;
    padding-bottom: 10px;
  }

  #comments .comments-community-heading__count {
    padding-top: 17px;
    font-size: 0.72rem;
  }

  #comments #wpdcom textarea:focus,
  #comments #wpdcom .ql-editor:focus,
  #comments.is-comment-open #wpdcom textarea,
  #comments.is-comment-open #wpdcom .ql-editor {
    min-height: 116px !important;
  }

  body.single-post .single-discovery {
    display: none !important;
  }

  body.single-post .single-sticky-loop {
    transition: opacity 160ms ease, visibility 160ms ease, transform 180ms ease !important;
  }

  body.single-post.comments-in-view .single-sticky-loop,
  body.single-post.comment-compose-active .single-sticky-loop {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 24px), 0) !important;
  }
}

/* wpDiscuz: show one calm focus edge instead of nested editor outlines. */
#comments #wpdcom textarea:focus,
#comments #wpdcom .ql-editor:focus,
#comments .comment-form textarea:focus,
#comments.is-comment-open #wpdcom textarea,
#comments.is-comment-open #wpdcom .ql-editor {
  border-color: rgba(180, 55, 89, 0.38) !important;
  outline: none !important;
  box-shadow: none !important;
}

#comments #wpdcom .ql-container:focus-within {
  border-color: rgba(180, 55, 89, 0.38) !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

#comments #wpdcom .ql-container .ql-editor:focus {
  border: 0 !important;
  border-radius: 11px !important;
}

/* Stability pass: wpDiscuz baut den Editor nach dem ersten Paint nach.
   Deshalb keine Hoehen-/Padding-Animationen im Kommentarbereich. */
body.single-post .single-card,
body.single-post #comments.comments-area,
body.single-post #comments #wpdcom,
body.single-post #comments #wpdcom *,
body.single-post #comments #wpdcom *::before,
body.single-post #comments #wpdcom *::after {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform, visibility !important;
}

body.single-post .single-card {
  overflow-anchor: none;
}

body.single-post #comments.comments-area {
  min-height: 216px;
  overflow-anchor: none;
  contain: layout paint;
}

body.single-post #comments #wpdcom {
  min-height: 154px;
}

body.single-post #comments #wpdcom .wpd-main-form-wrapper,
body.single-post #comments #wpdcom .wpd-main-form-wrap,
body.single-post #comments #wpdcom .wpd-form-wrap,
body.single-post #comments #wpdcom .wpdiscuz-comment-form {
  min-height: 96px;
}

body.single-post #comments #wpdcom .wc-field-comment,
body.single-post #comments #wpdcom .wpd-textarea-wrap,
body.single-post #comments #wpdcom .wpdiscuz-textarea-wrap,
body.single-post #comments #wpdcom .ql-container {
  min-height: 58px !important;
}

body.single-post .single-author-card__avatar,
body.single-post .single-author-card__avatar img,
body.single-post .single-author-card .avatar,
body.single-post #comments #wpdcom .wpd-avatar,
body.single-post #comments #wpdcom .wpd-avatar img,
body.single-post #comments #wpdcom .avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  aspect-ratio: 1 / 1;
}

@media (max-width: 760px) {
  body.single-post #comments.comments-area {
    min-height: 214px;
  }

  body.single-post #comments #wpdcom {
    min-height: 150px;
  }

  body.single-post #comments #wpdcom .wpd-main-form-wrapper,
  body.single-post #comments #wpdcom .wpd-main-form-wrap,
  body.single-post #comments #wpdcom .wpd-form-wrap,
  body.single-post #comments #wpdcom .wpdiscuz-comment-form {
    min-height: 92px;
  }
}

/* Single mobile: Beitrag, Kommentare und Folge-Cards bekommen denselben ruhigen Aussenabstand. */
@media (max-width: 760px) {
  body.home .site-content > .container,
  body.category .site-content > .container,
  body.single-post .site-content > .container {
    width: min(calc(100% - 8px), var(--container)) !important;
  }

  body.home .post-card,
  body.category .post-card,
  body.single-post .single-card,
  body.single-post #comments.comments-area,
  body.single-post .single-related,
  body.single-post .single-discovery,
  body.single-post .widget,
  body.single-post .page-card {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* Mobile: mirror the desktop action colors. */
@media (max-width: 760px) {
  body:not(.single-post) .post-card .post-vote-btn[data-vote-value="up"]:not(.is-active):not([aria-pressed="true"]),
  body.single-post .entry-actions-footer .post-vote-btn[data-vote-value="up"]:not(.is-active):not([aria-pressed="true"]) {
    border-color: rgba(67, 147, 102, 0.14) !important;
    background: linear-gradient(180deg, rgba(67, 147, 102, 0.06), rgba(255, 255, 255, 0.95)) !important;
    color: #347f5b !important;
    box-shadow: none !important;
  }

  body:not(.single-post) .post-card .post-vote-btn[data-vote-value="top"]:not(.is-active):not([aria-pressed="true"]),
  body.single-post .entry-actions-footer .post-vote-btn[data-vote-value="top"]:not(.is-active):not([aria-pressed="true"]) {
    border-color: rgba(187, 62, 91, 0.1) !important;
    background: linear-gradient(180deg, rgba(187, 62, 91, 0.025), rgba(255, 255, 255, 0.97)) !important;
    color: var(--brand-strong) !important;
    box-shadow: none !important;
  }

  body:not(.single-post) .post-card .post-vote-btn[data-vote-value="down"]:not(.is-active):not([aria-pressed="true"]),
  body.single-post .entry-actions-footer .post-vote-btn[data-vote-value="down"]:not(.is-active):not([aria-pressed="true"]) {
    border-color: rgba(176, 78, 94, 0.14) !important;
    background: linear-gradient(180deg, rgba(176, 78, 94, 0.05), rgba(255, 255, 255, 0.95)) !important;
    color: #9f4354 !important;
    box-shadow: none !important;
  }

  body:not(.single-post) .post-card .post-comments-btn {
    border-color: rgba(40, 101, 145, 0.26) !important;
    background: linear-gradient(180deg, rgba(40, 101, 145, 0.1), rgba(255, 255, 255, 0.98)) !important;
    color: #286591 !important;
  }

  body:not(.single-post) .post-card .post-favorite-btn,
  body:not(.single-post) .post-card .post-share-btn,
  body.single-post .entry-actions-footer .post-favorite-btn,
  body.single-post .entry-actions-footer .post-share-btn {
    border-color: rgba(77, 104, 124, 0.2) !important;
    background: linear-gradient(180deg, rgba(77, 104, 124, 0.06), rgba(255, 255, 255, 0.96)) !important;
    color: #526577 !important;
    box-shadow: none !important;
  }

  body:not(.single-post) .post-card .post-vote-btn.is-active,
  body:not(.single-post) .post-card .post-vote-btn[aria-pressed="true"],
  body.single-post .entry-actions-footer .post-vote-btn.is-active,
  body.single-post .entry-actions-footer .post-vote-btn[aria-pressed="true"] {
    box-shadow: none !important;
  }

  body:not(.single-post) .post-card .post-action-bar[data-vote-state="up"] .post-vote-btn[data-vote-value="up"],
  body.single-post .entry-actions-footer .post-action-bar[data-vote-state="up"] .post-vote-btn[data-vote-value="up"] {
    border-color: rgba(67, 147, 102, 0.22) !important;
    background: rgba(67, 147, 102, 0.1) !important;
    color: #347f5b !important;
  }

  body:not(.single-post) .post-card .post-action-bar[data-vote-state="top"] .post-vote-btn[data-vote-value="top"],
  body.single-post .entry-actions-footer .post-action-bar[data-vote-state="top"] .post-vote-btn[data-vote-value="top"],
  body:not(.single-post) .post-card .post-vote-btn[data-vote-value="top"].is-active,
  body.single-post .entry-actions-footer .post-vote-btn[data-vote-value="top"].is-active,
  body:not(.single-post) .post-card .post-vote-btn[data-vote-value="top"][aria-pressed="true"],
  body.single-post .entry-actions-footer .post-vote-btn[data-vote-value="top"][aria-pressed="true"] {
    border-color: rgba(187, 62, 91, 0.3) !important;
    background: rgba(187, 62, 91, 0.15) !important;
    color: var(--brand-strong) !important;
  }

  body:not(.single-post) .post-card .post-action-bar[data-vote-state="down"] .post-vote-btn[data-vote-value="down"],
  body.single-post .entry-actions-footer .post-action-bar[data-vote-state="down"] .post-vote-btn[data-vote-value="down"] {
    border-color: rgba(176, 78, 94, 0.22) !important;
    background: rgba(176, 78, 94, 0.09) !important;
    color: #9f4354 !important;
  }
}

/* Mobile: final semantic action-color guard. Keeps votes readable and avoids all buttons turning blue. */
@media (max-width: 760px) {
  .post-action-bar .post-vote-btn[data-vote-value="up"]:not(.is-active):not([aria-pressed="true"]) {
    border-color: rgba(67, 147, 102, 0.14) !important;
    background: linear-gradient(180deg, rgba(67, 147, 102, 0.06), rgba(255, 255, 255, 0.95)) !important;
    color: #347f5b !important;
    box-shadow: none !important;
  }

  .post-action-bar .post-vote-btn[data-vote-value="top"]:not(.is-active):not([aria-pressed="true"]) {
    border-color: rgba(187, 62, 91, 0.16) !important;
    background: linear-gradient(180deg, rgba(187, 62, 91, 0.05), rgba(255, 255, 255, 0.96)) !important;
    color: var(--brand-strong) !important;
    box-shadow: none !important;
  }

  .post-action-bar .post-vote-btn[data-vote-value="down"]:not(.is-active):not([aria-pressed="true"]) {
    border-color: rgba(176, 78, 94, 0.18) !important;
    background: linear-gradient(180deg, rgba(176, 78, 94, 0.055), rgba(255, 255, 255, 0.96)) !important;
    color: #9f4354 !important;
    box-shadow: none !important;
  }

  .post-action-bar .post-comments-btn {
    border-color: rgba(40, 101, 145, 0.28) !important;
    background: linear-gradient(180deg, rgba(40, 101, 145, 0.08), rgba(255, 255, 255, 0.96)) !important;
    color: #286591 !important;
    box-shadow: none !important;
  }

  .post-action-bar .post-favorite-btn,
  .post-action-bar .post-share-btn {
    border-color: rgba(77, 104, 124, 0.2) !important;
    background: linear-gradient(180deg, rgba(77, 104, 124, 0.06), rgba(255, 255, 255, 0.96)) !important;
    color: #526577 !important;
    box-shadow: none !important;
  }

  .post-action-bar[data-vote-state="up"] .post-vote-btn[data-vote-value="up"],
  .post-action-bar[data-current-vote="up"] .post-vote-btn[data-vote-value="up"],
  .post-action-bar .post-vote-btn[data-vote-value="up"].is-active,
  .post-action-bar .post-vote-btn[data-vote-value="up"][aria-pressed="true"] {
    border-color: rgba(67, 147, 102, 0.34) !important;
    background: linear-gradient(180deg, rgba(67, 147, 102, 0.16), rgba(67, 147, 102, 0.07)) !important;
    color: #24744e !important;
    box-shadow: none !important;
  }

  .post-action-bar[data-vote-state="top"] .post-vote-btn[data-vote-value="top"],
  .post-action-bar[data-current-vote="top"] .post-vote-btn[data-vote-value="top"],
  .post-action-bar .post-vote-btn[data-vote-value="top"].is-active,
  .post-action-bar .post-vote-btn[data-vote-value="top"][aria-pressed="true"] {
    border-color: rgba(187, 62, 91, 0.36) !important;
    background: linear-gradient(180deg, rgba(187, 62, 91, 0.18), rgba(187, 62, 91, 0.08)) !important;
    color: var(--brand-strong) !important;
    box-shadow: none !important;
  }

  .post-action-bar[data-vote-state="down"] .post-vote-btn[data-vote-value="down"],
  .post-action-bar[data-current-vote="down"] .post-vote-btn[data-vote-value="down"],
  .post-action-bar .post-vote-btn[data-vote-value="down"].is-active,
  .post-action-bar .post-vote-btn[data-vote-value="down"][aria-pressed="true"] {
    border-color: rgba(176, 78, 94, 0.34) !important;
    background: linear-gradient(180deg, rgba(176, 78, 94, 0.16), rgba(176, 78, 94, 0.07)) !important;
    color: #8d3949 !important;
    box-shadow: none !important;
  }
}

/* Mobile retention pass: two calm feed rows, one compact single-post row. */
@media (max-width: 760px) {
  body:not(.single-post) .post-card .post-action-bar {
    column-gap: 4px;
    row-gap: 6px;
  }

  body.home .post-card {
    padding-bottom: 10px;
  }

  body:not(.single-post) .post-card .post-comments-btn {
    min-height: 36px;
    border-color: rgba(40, 101, 145, 0.22) !important;
    background: linear-gradient(180deg, rgba(40, 101, 145, 0.065), rgba(255, 255, 255, 0.98)) !important;
    box-shadow: none !important;
  }

  body.single-post .single-footer.entry-actions-footer {
    margin-top: 8px;
    margin-bottom: 4px;
  }

  body.single-post .entry-actions-footer .post-action-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  body.single-post .entry-actions-footer .post-vote-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: none;
    width: auto;
    min-width: 0;
    gap: 4px;
  }

  body.single-post .entry-actions-footer .post-vote-btn {
    display: inline-flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 5px;
    gap: 3px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__label,
  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__count {
    display: inline;
    min-width: 0;
    line-height: 1;
  }

  body.single-post .entry-actions-footer .post-favorite-btn,
  body.single-post .entry-actions-footer .post-share-btn {
    box-sizing: border-box;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
  }
}

@media (max-width: 360px) {
  body.single-post .entry-actions-footer .post-action-bar {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    gap: 3px;
  }

  body.single-post .entry-actions-footer .post-vote-group {
    gap: 3px;
  }

  body.single-post .entry-actions-footer .post-vote-btn {
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    grid-template-rows: auto auto;
    justify-content: center;
    align-content: center;
    column-gap: 2px;
    row-gap: 1px;
    min-height: 42px;
    padding: 3px;
    font-size: 0.66rem;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__emoji {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 0.9rem;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__label {
    grid-column: 2;
    grid-row: 1;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__count {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  body.single-post .entry-actions-footer .post-favorite-btn,
  body.single-post .entry-actions-footer .post-share-btn {
    width: 40px;
    min-width: 40px;
  }
}

/* Show one clear confirmation instead of the plugin and theme messages twice. */
.is-submit-page.has-custom-submit-success .usp-message-success,
.is-submit-page.has-custom-submit-success .usp-success,
.is-submit-page.has-custom-submit-success #usp-success-message {
  display: none !important;
}

.account-password-hint {
  display: block;
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Mobile wpDiscuz: keep comment count and filter/settings action on one line. */
@media (max-width: 760px) {
  html body #comments #wpdcom .wpd-thread-head {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body #comments #wpdcom .wpd-thread-head .wpd-thread-info {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  html body #comments #wpdcom .wpd-thread-head .wpd-thread-filter {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 0 0 auto !important;
  }
}

/* Compact joke actions: two distinct reactions, comments, and secondary actions at the title. */
.post-title-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.post-title-row > .entry-title {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 0;
}

.post-utility-menu {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
}

.post-utility-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #526577;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.post-utility-menu__toggle::-webkit-details-marker {
  display: none;
}

.post-utility-menu__toggle:hover,
.post-utility-menu__toggle:focus-visible,
.post-utility-menu[open] .post-utility-menu__toggle {
  border-color: rgba(77, 104, 124, 0.18);
  background: rgba(77, 104, 124, 0.07);
  color: #365a73;
  outline: none;
}

.post-utility-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 158px;
  padding: 5px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.14);
}

.post-utility-menu__panel .post-action-btn {
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.post-utility-menu__panel .post-action-btn:hover,
.post-utility-menu__panel .post-action-btn:focus-visible {
  transform: none;
  background: rgba(77, 104, 124, 0.07);
  color: var(--ink);
  box-shadow: none;
  outline: none;
}

.post-utility-menu__panel .post-action-btn__icon {
  width: 17px;
  height: 17px;
}

.post-utility-menu__label {
  display: inline-flex;
  align-items: center;
  font-weight: 750;
}

.post-action-bar,
.post-vote-group {
  flex-wrap: nowrap;
}

@keyframes bwp-comment-nudge {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.post-comments-btn.is-comment-nudged {
  animation: bwp-comment-nudge 0.55s ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
  .post-comments-btn.is-comment-nudged {
    animation: none;
  }
}

@media (max-width: 760px) {
  .post-title-row {
    gap: 4px;
  }

  .post-utility-menu__toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  body:not(.single-post) .post-card .post-action-bar,
  body.single-post .entry-actions-footer .post-action-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 4px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body:not(.single-post) .post-card .post-vote-group,
  body.single-post .entry-actions-footer .post-vote-group {
    display: grid !important;
    grid-column: 1 / span 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  body:not(.single-post) .post-card .post-vote-btn,
  body.single-post .entry-actions-footer .post-vote-btn,
  body:not(.single-post) .post-card .post-comments-btn,
  body.single-post .entry-actions-footer .post-comments-btn {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 5px;
    gap: 3px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  body:not(.single-post) .post-card .post-comments-btn,
  body.single-post .entry-actions-footer .post-comments-btn {
    grid-column: 3 !important;
  }

  body:not(.single-post) .post-card .post-comments-btn__label,
  body.single-post .entry-actions-footer .post-comments-btn__label {
    display: inline-flex;
    min-width: 0;
    font-weight: 800;
  }

  .post-comments-btn.is-comment-nudged .post-action-btn__icon--comments {
    display: none;
  }
}

@media (max-width: 360px) {
  body:not(.single-post) .post-card .post-vote-btn,
  body.single-post .entry-actions-footer .post-vote-btn,
  body:not(.single-post) .post-card .post-comments-btn,
  body.single-post .entry-actions-footer .post-comments-btn {
    min-height: 38px;
    padding-inline: 3px;
    font-size: 0.66rem;
  }

  .post-action-btn__emoji {
    font-size: 0.88rem;
  }

  .post-action-btn__icon--comments {
    width: 12px;
    height: 12px;
  }
}

/* Single mobile: keep reaction label and count inline, matching the feed. */
@media (max-width: 760px) {
  body.single-post .entry-actions-footer .post-vote-btn {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 5px !important;
    gap: 3px !important;
    line-height: 1 !important;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__emoji,
  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__label,
  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__count {
    display: inline-flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: center !important;
    justify-self: auto !important;
    line-height: 1 !important;
  }

  body.single-post .entry-actions-footer .post-vote-btn .post-action-btn__count {
    min-width: 0 !important;
    font-size: inherit !important;
  }
}

/* Utility menu: override legacy mobile feed button colors inside the menu. */
.post-utility-menu__panel .post-action-btn:not(.is-active):not(.is-copied) {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .post-utility-menu__panel .post-action-btn:not(.is-active):not(.is-copied):hover {
    background: rgba(77, 104, 124, 0.07) !important;
  }
}

.post-utility-menu__panel .post-action-btn:not(.is-active):not(.is-copied):focus:not(:focus-visible) {
  outline: none !important;
}

.post-utility-menu__panel .post-action-btn:not(.is-active):not(.is-copied):focus-visible {
  background: rgba(77, 104, 124, 0.07) !important;
  outline: 2px solid rgba(40, 101, 145, 0.45) !important;
  outline-offset: -2px !important;
}

/* Desktop wpDiscuz: keep the identity cue, but let the native avatar gutter
   align the editor with the name/submit row instead of shifting it again. */
@media (min-width: 761px) {
  body.single-post #comments #wpdcom .wpd-main-form-wrapper .wpd-textarea-wrap,
  body.single-post #comments #wpdcom .wpd-main-form-wrapper .wpdiscuz-textarea-wrap,
  body.single-post #comments #wpdcom .wpd-main-form-wrapper .ql-container {
    box-sizing: border-box !important;
    transform: none !important;
  }

  body.single-post #comments #wpdcom .wpd-form-row.bwp-comment-name-only-row {
    width: 100% !important;
    margin-left: 0 !important;
  }

}

/* Let the title, not the three-dot control, determine the header height. */
.post-title-row {
  display: block;
}

.post-title-row > .post-utility-menu {
  float: right;
  top: -2px;
  margin-left: 7px;
}

.post-title-row > .entry-title {
  display: block;
  margin-right: 0;
}

/* Feed: pin utilities to the title even if a cached template still uses the old DOM order. */
body:not(.single-post) .post-card .post-title-row {
  position: relative;
}

body:not(.single-post) .post-card .post-title-row > .post-utility-menu {
  position: absolute;
  top: -2px;
  right: 0;
  float: none;
  margin-left: 0;
}

body:not(.single-post) .post-card .post-title-row > .entry-title {
  padding-right: 40px;
}

body:not(.single-post) .post-card .entry-summary::before {
  content: "";
  float: right;
  width: 38px;
  height: 15px;
}

/* Mobile single: a little breathing room below the primary actions. */
@media (max-width: 760px) {
  body.single-post .single-card .entry-actions-footer {
    padding-bottom: 5px !important;
  }
}

/* Desktop action rhythm: denser feed, slightly calmer single post. */
@media (min-width: 761px) {
  body:not(.single-post) .post-card {
    padding-bottom: 6px !important;
  }

  body.single-post .single-card .single-footer.entry-actions-footer {
    margin-bottom: 2px !important;
  }
}

/* Engagement flow: two reactions, a contextual comment entry and direct sharing. */
.post-action-bar > .post-share-btn {
  display: inline-flex !important;
  flex: 0 0 40px;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: var(--muted);
  border-color: rgba(77, 104, 124, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.post-action-bar > .post-share-btn:hover,
.post-action-bar > .post-share-btn:focus-visible,
.post-action-bar > .post-share-btn.is-copied {
  color: var(--brand-strong);
  border-color: rgba(179, 39, 82, 0.34);
  background: rgba(179, 39, 82, 0.06);
}

.submission-claim-card[hidden],
.submit-success-panel[hidden] {
  display: none !important;
}

.submission-claim-card,
.account-claim-intro,
.account-claim-success,
.creator-share-card {
  border: 1px solid rgba(179, 39, 82, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 248, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.submission-claim-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
}

.submission-claim-card > span,
.creator-share-card__copy > span {
  color: var(--muted);
  line-height: 1.45;
}

.submission-claim-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin-top: 3px;
}

.submission-claim-card__login {
  color: var(--brand-strong);
  font-weight: 750;
}

.account-claim-intro,
.account-claim-success {
  margin: 0 0 16px;
  padding: 13px 15px;
}

.account-claim-intro p,
.account-claim-success p {
  margin: 4px 0 0;
}

.account-claim-success {
  border-color: rgba(23, 124, 82, 0.22);
  background: rgba(239, 250, 245, 0.96);
}

.creator-share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 2px;
  padding: 10px 12px;
}

.creator-share-card__copy {
  display: grid;
  gap: 1px;
}

.creator-share-card .post-share-btn--labeled {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.creator-share-card .post-share-btn--labeled:hover,
.creator-share-card .post-share-btn--labeled:focus-visible,
.creator-share-card .post-share-btn--labeled.is-copied {
  color: #fff;
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.engagement-register-nudge {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  margin: 6px 0;
  padding: 12px 46px 12px 14px;
  border: 1px solid rgba(179, 39, 82, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 248, 250, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.055);
}

.engagement-register-nudge__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.35;
}

.engagement-register-nudge__copy > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.engagement-register-nudge__button {
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

.engagement-register-nudge__dismiss {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.engagement-register-nudge__dismiss:hover,
.engagement-register-nudge__dismiss:focus-visible {
  background: rgba(31, 41, 51, 0.06);
  color: var(--ink);
  outline: none;
}

@media (max-width: 760px) {
  body:not(.single-post) .post-card .post-action-bar,
  body.single-post .entry-actions-footer .post-action-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(82px, 1.15fr) 40px !important;
  }

  body:not(.single-post) .post-card .post-comments-btn,
  body.single-post .entry-actions-footer .post-comments-btn {
    grid-column: 3 !important;
  }

  body:not(.single-post) .post-card .post-action-bar > .post-share-btn,
  body.single-post .entry-actions-footer .post-action-bar > .post-share-btn {
    grid-column: 4 !important;
    box-sizing: border-box;
    width: 40px !important;
    min-width: 40px !important;
    min-height: 40px;
    padding: 0 !important;
  }

  .post-comments-btn--has-comments .post-comments-btn__word {
    display: none;
  }

  .post-comments-btn.is-comment-nudged .post-comments-btn__label {
    justify-content: center;
    max-width: 100%;
    font-size: 0.63rem;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .submission-claim-card__actions,
  .creator-share-card {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-share-card {
    gap: 8px;
    padding: 10px 12px;
  }

  .submission-claim-card__actions .button,
  .creator-share-card .post-share-btn--labeled {
    justify-content: center;
    width: 100%;
  }

  .submission-claim-card__login {
    padding: 5px 2px;
    text-align: center;
  }

  .engagement-register-nudge {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 4px 0;
    padding: 11px 42px 11px 12px;
  }

  .engagement-register-nudge__button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  body:not(.single-post) .post-card .post-action-bar,
  body.single-post .entry-actions-footer .post-action-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(74px, 1.08fr) 38px !important;
  }

  body:not(.single-post) .post-card .post-action-bar > .post-share-btn,
  body.single-post .entry-actions-footer .post-action-bar > .post-share-btn {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px;
  }
}

/* Standard icon action bar: familiar, compact and stable across feed and single posts. */
body:not(.single-post) .post-card .post-action-bar,
body.single-post .entry-actions-footer .post-action-bar {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: min(100%, 336px) !important;
  overflow: visible !important;
}

body:not(.single-post) .post-card .post-vote-group,
body.single-post .entry-actions-footer .post-vote-group {
  display: grid !important;
  grid-column: 1 / span 2 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body:not(.single-post) .post-card .post-action-bar .post-action-btn,
body.single-post .entry-actions-footer .post-action-bar .post-action-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body:not(.single-post) .post-card .post-comments-btn,
body.single-post .entry-actions-footer .post-comments-btn {
  grid-column: 3 !important;
}

body:not(.single-post) .post-card .post-action-bar > .post-share-btn,
body.single-post .entry-actions-footer .post-action-bar > .post-share-btn {
  grid-column: 4 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 !important;
}

.post-action-bar .post-action-btn__icon--vote {
  width: 18px;
  height: 18px;
}

.post-action-bar .post-action-btn__icon--comments,
.post-action-bar .post-action-btn__icon--share {
  width: 17px;
  height: 17px;
}

.post-action-bar .post-action-btn__icon--share {
  width: 19px;
  height: 19px;
  transform: translateX(1px);
}

.post-action-bar .post-action-btn__count,
.post-action-bar .post-comments-btn__count {
  display: inline-flex !important;
  justify-content: center;
  min-width: 1ch !important;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

.post-action-bar .post-vote-btn[data-vote-value="up"]:not(.is-active):not([aria-pressed="true"]) {
  border-color: rgba(45, 132, 88, 0.26) !important;
  background: rgba(247, 252, 249, 0.98) !important;
  color: #286f4c !important;
}

.post-action-bar .post-vote-btn[data-vote-value="down"]:not(.is-active):not([aria-pressed="true"]) {
  border-color: rgba(166, 68, 83, 0.24) !important;
  background: rgba(255, 249, 250, 0.98) !important;
  color: #913b4e !important;
}

.post-action-bar .post-comments-btn {
  border-color: rgba(40, 101, 145, 0.23) !important;
  background: rgba(248, 251, 253, 0.98) !important;
  color: #286591 !important;
  box-shadow: none !important;
}

.post-action-bar > .post-share-btn {
  border-color: rgba(77, 104, 124, 0.24) !important;
  background: rgba(249, 250, 251, 0.98) !important;
  color: #526577 !important;
  box-shadow: none !important;
}

.post-action-bar .post-vote-btn[data-vote-value="up"]:hover,
.post-action-bar .post-vote-btn[data-vote-value="up"]:focus-visible,
.post-action-bar[data-vote-state="up"] .post-vote-btn[data-vote-value="up"],
.post-action-bar[data-current-vote="up"] .post-vote-btn[data-vote-value="up"],
.post-action-bar .post-vote-btn[data-vote-value="up"].is-active,
.post-action-bar .post-vote-btn[data-vote-value="up"][aria-pressed="true"] {
  border-color: rgba(38, 120, 77, 0.55) !important;
  background: rgba(45, 132, 88, 0.2) !important;
  color: #1f6643 !important;
}

.post-action-bar .post-vote-btn[data-vote-value="down"]:hover,
.post-action-bar .post-vote-btn[data-vote-value="down"]:focus-visible,
.post-action-bar[data-vote-state="down"] .post-vote-btn[data-vote-value="down"],
.post-action-bar[data-current-vote="down"] .post-vote-btn[data-vote-value="down"],
.post-action-bar .post-vote-btn[data-vote-value="down"].is-active,
.post-action-bar .post-vote-btn[data-vote-value="down"][aria-pressed="true"] {
  border-color: rgba(151, 52, 72, 0.52) !important;
  background: rgba(166, 68, 83, 0.18) !important;
  color: #7f3042 !important;
}

.post-action-bar .post-comments-btn:hover,
.post-action-bar .post-comments-btn:focus-visible,
.post-action-bar .post-comments-btn.is-comment-nudged {
  border-color: rgba(40, 101, 145, 0.4) !important;
  background: rgba(40, 101, 145, 0.11) !important;
  color: #205a83 !important;
}

.post-action-bar > .post-share-btn:hover,
.post-action-bar > .post-share-btn:focus-visible,
.post-action-bar > .post-share-btn.is-copied {
  border-color: rgba(179, 39, 82, 0.4) !important;
  background: rgba(179, 39, 82, 0.11) !important;
  color: var(--brand-strong) !important;
}

.post-share-btn {
  position: relative;
}

.post-share-btn[data-share-feedback]:not([data-share-feedback=""])::after {
  content: attr(data-share-feedback);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 30;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(31, 41, 51, 0.16);
}

.post-comment-nudge[hidden] {
  display: none !important;
}

.post-comment-nudge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  margin-top: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(40, 101, 145, 0.2);
  border-radius: 999px;
  background: rgba(248, 251, 253, 0.98);
  color: #245f87;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  animation: bwp-comment-nudge 0.55s ease-out 1;
}

.post-comment-nudge::before {
  content: "💬";
  margin-right: 6px;
  font-size: 0.85rem;
}

.post-comment-nudge:hover,
.post-comment-nudge:focus-visible {
  border-color: rgba(40, 101, 145, 0.38);
  background: rgba(40, 101, 145, 0.1);
  color: #205a83;
  outline: none;
}

@media (max-width: 760px) {
  body:not(.single-post) .post-card .post-action-bar,
  body.single-post .entry-actions-footer .post-action-bar {
    width: 100% !important;
    gap: 5px !important;
  }

  body:not(.single-post) .post-card .post-vote-group,
  body.single-post .entry-actions-footer .post-vote-group {
    gap: 5px !important;
  }

  body:not(.single-post) .post-card .post-action-bar .post-action-btn,
  body.single-post .entry-actions-footer .post-action-bar .post-action-btn {
    min-height: 42px !important;
    padding-inline: 6px !important;
    gap: 5px !important;
  }

  .post-comment-nudge {
    min-height: 34px;
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-comment-nudge {
    animation: none;
  }
}

/* Retention flow: compact comment entry, progressive feed loading, and creator sharing. */
.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-wrap,
.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpd-comment-form,
.comments-area.has-compact-comment-composer:not(.is-comment-open) > #respond {
  display: none !important;
}

/* Match the critical first-paint rule: wpDiscuz may render its avatar before
   the compact-composer class is attached by JavaScript. */
html.bwp-js body.single-post #comments:not(.is-comment-open) #wpdcom .wpd-main-form-wrapper,
html.bwp-js body.single-post #comments:not(.is-comment-open) #wpdcom .wpd-main-form-wrap,
html.bwp-js body.single-post #comments:not(.is-comment-open) #wpdcom .wpd-form-wrap,
html.bwp-js body.single-post #comments:not(.is-comment-open) #wpdcom .wpd-comment-form,
html.bwp-js body.single-post #comments:not(.is-comment-open) #wpdcom .wpdiscuz-comment-form {
  display: none !important;
  min-height: 0 !important;
}

/* Account forms: visually separate the page title from the first field just
   like the spacing between the following form rows. */
.page-card.is-account-page .entry-header {
  margin-bottom: 12px;
}

.compact-comment-trigger,
.compact-comment-trigger:link,
.compact-comment-trigger:visited {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin: 0 0 10px;
  padding: 0 15px;
  gap: 10px;
  border: 1px solid rgba(40, 101, 145, 0.2);
  border-radius: 12px;
  background: rgba(248, 251, 253, 0.98);
  color: #526577;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: text;
}

.compact-comment-trigger:hover,
.compact-comment-trigger:focus-visible {
  border-color: rgba(40, 101, 145, 0.4);
  background: rgba(40, 101, 145, 0.08);
  color: #205a83;
  outline: none;
}

.compact-comment-trigger__icon {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.compact-comment-trigger__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.comments-area.is-comment-open .compact-comment-trigger {
  display: none !important;
}

#comments.is-comment-open #wpdcom .wpd-form-foot,
#comments.is-comment-open #wpdcom .wc-field-submit {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#comments.is-comment-open #wpdcom .wpd-form-foot {
  display: block !important;
}

#comments.is-comment-open #wpdcom .wc-field-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

#comments.is-comment-open #wpdcom .wc_comm_submit,
#comments.is-comment-open #wpdcom input[type="submit"],
#comments.is-comment-open #wpdcom button[type="submit"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Keep the invitation compact; reserve wpDiscuz stability heights for the open editor. */
body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) {
  min-height: 0 !important;
  contain: layout paint;
}

body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom {
  min-height: 0 !important;
}

body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrapper,
body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrap,
body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-wrap,
body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-comment-form {
  min-height: 0 !important;
}

.has-infinite-feed [data-feed-pagination] {
  display: none !important;
}

.infinite-feed-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.infinite-feed-sentinel.is-loading .infinite-feed-sentinel__status::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  margin-left: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(179, 39, 82, 0.18), var(--brand), rgba(179, 39, 82, 0.18));
  background-size: 200% 100%;
  vertical-align: middle;
  animation: bwp-feed-loading 0.9s linear infinite;
}

.infinite-feed-sentinel__retry {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(179, 39, 82, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

@keyframes bwp-feed-loading {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .creator-share-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 8px !important;
    padding: 10px 12px !important;
  }

  .creator-share-card__copy {
    min-width: 0;
  }

  .creator-share-card__copy > strong {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .creator-share-card__copy > span {
    display: block !important;
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .creator-share-card .post-share-btn--labeled {
    width: auto !important;
    min-width: 82px !important;
    min-height: 38px !important;
    padding: 0 13px !important;
    gap: 6px !important;
    font-size: 0.76rem !important;
  }

  .compact-comment-trigger {
    min-height: 50px;
    margin-bottom: 8px;
    padding-inline: 13px;
  }

  .infinite-feed-sentinel {
    min-height: 48px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .infinite-feed-sentinel.is-loading .infinite-feed-sentinel__status::after {
    animation: none;
  }
}

/* Feed-Einstieg: eine ruhige Schreibaufforderung vor dem ersten Witz. */
.home-submit-nudge {
  display: block;
  min-height: 48px;
  margin: 4px 0;
  padding: 3px 7px;
  border-color: rgba(40, 101, 145, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.04);
}

.home-submit-nudge__button--prompt,
.home-submit-nudge__button--prompt:link,
.home-submit-nudge__button--prompt:visited {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  gap: 9px;
  border: 1px solid rgba(40, 101, 145, 0.18);
  border-radius: 6px;
  background: rgba(40, 101, 145, 0.035);
  color: #1f5f8d;
  font-size: 0.84rem;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  box-shadow: none;
}

.home-submit-nudge__button--prompt:hover,
.home-submit-nudge__button--prompt:focus-visible {
  border-color: rgba(40, 101, 145, 0.34);
  background: rgba(40, 101, 145, 0.075);
  color: #174d73;
  outline: none;
}

.home-submit-nudge__icon {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.home-submit-nudge__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-submit-nudge__label {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 5px;
}

.home-submit-nudge__label strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.home-submit-nudge__label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.home-submit-nudge.is-quick-submit-open,
.home-submit-nudge.is-quick-submit-success {
  padding: 10px 12px 12px;
}

.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt {
  width: auto;
  min-height: 36px;
  margin-left: auto;
  padding-inline: 11px;
}

.home-submit-nudge.is-quick-submit-open .home-submit-nudge__label span {
  display: none;
}

@media (max-width: 760px) {
  .home-submit-nudge {
    display: block !important;
    min-height: 48px;
    margin: 3px 0;
    padding: 3px 6px !important;
    border-radius: 0;
  }

  .home-submit-nudge__button--prompt,
  .home-submit-nudge__button--prompt:link,
  .home-submit-nudge__button--prompt:visited {
    width: 100%;
    min-height: 42px;
    padding-inline: 9px;
  }

  .home-submit-nudge__label {
    overflow: hidden;
  }

  .home-submit-nudge__label strong,
  .home-submit-nudge__label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-submit-nudge.is-quick-submit-open,
  .home-submit-nudge.is-quick-submit-success {
    padding: 9px 10px 11px !important;
  }
}

/* Finaler Kommentar-Farbabgleich: Einladung und echter Editor bleiben blau. */
#comments.is-comment-open #wpdcom textarea,
#comments.is-comment-open #wpdcom .ql-editor,
#comments.is-comment-open .comment-form textarea {
  border-color: rgba(40, 101, 145, 0.3) !important;
  outline: none !important;
  box-shadow: none !important;
}

#comments #wpdcom textarea:focus,
#comments #wpdcom .ql-editor:focus,
#comments .comment-form textarea:focus,
#comments #wpdcom .ql-container:focus-within {
  border-color: rgba(40, 101, 145, 0.5) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(40, 101, 145, 0.08) !important;
}

#comments #wpdcom .ql-container .ql-editor:focus {
  border: 0 !important;
  box-shadow: none !important;
}

/* Das Feed-Schnellformular führt die blaue Farbe der Schreibaufforderung fort. */
.home-quick-submit__form textarea:focus,
.home-quick-submit__form textarea:focus-visible {
  border-color: rgba(40, 101, 145, 0.5) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(40, 101, 145, 0.08) !important;
}

/* Der Stift behält nach Öffnen, Schließen und Fokus zuverlässig seine Farbe. */
.home-submit-nudge__button--prompt:not([aria-expanded="true"]),
.home-submit-nudge__button--prompt:not([aria-expanded="true"]):hover,
.home-submit-nudge__button--prompt:not([aria-expanded="true"]):focus,
.home-submit-nudge__button--prompt:not([aria-expanded="true"]):focus-visible,
.home-submit-nudge__button--prompt:not([aria-expanded="true"]):active {
  color: #1f5f8d !important;
}

.home-submit-nudge__button--prompt .home-submit-nudge__icon {
  color: inherit !important;
  opacity: 1 !important;
}

/* Schließen ist eine ruhige Sekundäraktion; Rosa bleibt dem Absenden vorbehalten. */
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt:hover,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt:focus,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt:focus-visible,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt:active {
  border-color: rgba(77, 104, 124, 0.28) !important;
  background: #fff !important;
  color: #526577 !important;
  box-shadow: none !important;
}

.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt .home-submit-nudge__icon,
.home-submit-nudge.is-quick-submit-open .home-submit-nudge__button--prompt .home-submit-nudge__label strong {
  color: #526577 !important;
}

/* Witzflaechen: mobil als ruhiger, durchgehender Feed; Desktop nur leicht gerundet. */
body:not(.single-post) .post-card,
body.single-post .single-card {
  border-radius: 6px !important;
}

@media (max-width: 760px) {
  body:not(.single-post) .post-card,
  body.single-post .single-card {
    border-radius: 0 !important;
  }
}

/* Mobile retention navigation: feed and single pages share one accessible sheet. */
.mobile-more-sheet[hidden] {
  display: none !important;
}

.mobile-more-sheet {
  display: none;
}

.single-inline-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 7px 12px;
  gap: 7px;
  border: 1px solid rgba(169, 47, 85, 0.2);
  border-radius: 10px;
  background: rgba(169, 47, 85, 0.055);
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.single-inline-next:hover,
.single-inline-next:focus-visible {
  border-color: rgba(169, 47, 85, 0.38);
  background: rgba(169, 47, 85, 0.1);
  color: var(--brand-strong);
  outline: none;
}

body.single-post .single-inline-next {
  display: none !important;
}

.desktop-next-joke-card,
.desktop-next-joke-card:link,
.desktop-next-joke-card:visited {
  display: grid;
  margin-top: 10px;
  padding: 15px 17px;
  gap: 4px;
  border-color: rgba(31, 41, 51, 0.11);
  border-left: 3px solid rgba(169, 47, 85, 0.58);
  background: #fff;
  box-shadow: 0 7px 18px rgba(31, 41, 51, 0.045);
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}

.desktop-next-joke-card:hover,
.desktop-next-joke-card:focus-visible {
  border-color: rgba(40, 101, 145, 0.24);
  border-left-color: var(--brand-strong);
  background: #f8fbfd;
  box-shadow: 0 9px 22px rgba(31, 41, 51, 0.07);
  color: var(--ink);
  outline: none;
}

.desktop-next-joke-card__eyebrow {
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.desktop-next-joke-card__title {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.desktop-next-joke-card__summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.desktop-next-joke-card__cta {
  margin-top: 2px;
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .desktop-next-joke-card {
    display: none !important;
  }

  body.home .site-header,
  body.category .site-header,
  body.search .site-header,
  body.single-post .site-header {
    display: none !important;
  }

  body.home .site-content,
  body.category .site-content,
  body.search .site-content,
  body.single-post .site-content {
    padding-top: 2px !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.home .sidebar-layout,
  body.category .sidebar-layout,
  body.search .sidebar-layout,
  body.single-post .sidebar-layout {
    margin-top: 0 !important;
  }

  body.home .section-heading-home,
  body.category .section-heading-category {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.home .home-submit-nudge,
  body.category .home-submit-nudge {
    display: none !important;
  }

  body.is-submit-page-view .site-header {
    display: none !important;
  }

  body.home .mobile-feed-dock,
  body.category .mobile-feed-dock,
  body.search .mobile-feed-dock,
  body.is-submit-page-view .mobile-feed-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important;
    min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 4px 6px max(4px, env(safe-area-inset-bottom, 0px)) !important;
  }

  body.home .mobile-feed-dock__item,
  body.category .mobile-feed-dock__item,
  body.home button.mobile-feed-dock__item,
  body.category button.mobile-feed-dock__item,
  body.search .mobile-feed-dock__item,
  body.search button.mobile-feed-dock__item,
  body.is-submit-page-view .mobile-feed-dock__item,
  body.is-submit-page-view button.mobile-feed-dock__item {
    box-sizing: border-box !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 2px !important;
    gap: 1px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #66717c !important;
    font-family: var(--font-ui) !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
    cursor: pointer;
    appearance: none;
  }

  body.home .mobile-feed-dock__item.is-active,
  body.category .mobile-feed-dock__item.is-active,
  body.is-submit-page-view .mobile-feed-dock__item.is-active {
    color: var(--brand-strong) !important;
    background: rgba(169, 47, 85, 0.07) !important;
  }

  .mobile-feed-dock__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    line-height: 1;
  }

  .mobile-feed-dock__icon svg,
  .mobile-feed-dock__submit-icon svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  body.home a.mobile-feed-dock__item--submit,
  body.home a.mobile-feed-dock__item--submit:link,
  body.home a.mobile-feed-dock__item--submit:visited,
  body.category a.mobile-feed-dock__item--submit,
  body.category a.mobile-feed-dock__item--submit:link,
  body.category a.mobile-feed-dock__item--submit:visited,
  body.search a.mobile-feed-dock__item--submit,
  body.search a.mobile-feed-dock__item--submit:link,
  body.search a.mobile-feed-dock__item--submit:visited,
  body.is-submit-page-view a.mobile-feed-dock__item--submit,
  body.is-submit-page-view a.mobile-feed-dock__item--submit:link,
  body.is-submit-page-view a.mobile-feed-dock__item--submit:visited {
    position: relative;
    top: -1px;
    min-height: 52px !important;
    border: 1px solid #a92f55 !important;
    border-radius: 999px !important;
    background-color: #b72f58 !important;
    background: linear-gradient(135deg, #c23862, #a92f55) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 4px 10px rgba(169, 47, 85, 0.22) !important;
  }

  body.home a.mobile-feed-dock__item--submit:hover,
  body.home a.mobile-feed-dock__item--submit:focus,
  body.home a.mobile-feed-dock__item--submit:focus-visible,
  body.category a.mobile-feed-dock__item--submit:hover,
  body.category a.mobile-feed-dock__item--submit:focus,
  body.category a.mobile-feed-dock__item--submit:focus-visible,
  body.search a.mobile-feed-dock__item--submit:hover,
  body.search a.mobile-feed-dock__item--submit:focus,
  body.search a.mobile-feed-dock__item--submit:focus-visible,
  body.is-submit-page-view a.mobile-feed-dock__item--submit:hover,
  body.is-submit-page-view a.mobile-feed-dock__item--submit:focus,
  body.is-submit-page-view a.mobile-feed-dock__item--submit:focus-visible {
    background-color: #a92f55 !important;
    background: linear-gradient(135deg, #b72f58, #982747) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .mobile-feed-dock__submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    line-height: 1;
  }

  .mobile-feed-dock__submit-icon svg {
    width: 22px;
    height: 22px;
  }

  body.single-post .single-sticky-loop {
    grid-template-columns: 72px minmax(0, 1fr) 68px !important;
    gap: 6px !important;
    min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 4px 8px max(4px, env(safe-area-inset-bottom, 0px)) !important;
  }

  body.single-post .single-sticky-loop__button--next {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, auto) 17px;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    gap: 6px;
    padding-block: 0 !important;
    background: linear-gradient(135deg, #bd355e, #a92f55) !important;
    color: #fff !important;
    font-size: 0.88rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  body.single-post .single-sticky-loop__trend-icon,
  body.single-post .single-sticky-loop__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  body.single-post a.single-sticky-loop__button--trend,
  body.single-post a.single-sticky-loop__button--trend:link,
  body.single-post a.single-sticky-loop__button--trend:visited {
    display: inline-flex !important;
    flex-direction: column;
    gap: 1px;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 2px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: rgba(169, 47, 85, 0.07) !important;
    color: var(--brand-strong) !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
    box-shadow: none !important;
  }

  body.single-post .single-sticky-loop__trend-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
  }

  body.single-post .single-sticky-loop__trend-icon svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  body.single-post .single-sticky-loop__trend-label {
    display: block;
    line-height: 1.05;
  }

  body.single-post .single-sticky-loop__label {
    display: block;
    min-width: 0;
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.single-post .single-sticky-loop__button--next svg,
  body.single-post .single-sticky-loop__button--more svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  body.single-post .single-sticky-loop__arrow {
    width: 17px;
    height: 17px;
    margin-left: 1px;
  }

  body.single-post .single-sticky-loop__arrow svg {
    width: 17px;
    height: 17px;
  }

  body.single-post .single-sticky-loop__button--more {
    display: inline-flex !important;
    flex-direction: column;
    gap: 1px;
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: #66717c !important;
    border-radius: 9px !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
    cursor: pointer;
  }

  body.single-post .single-sticky-loop__button--more svg {
    width: 20px;
    height: 20px;
  }

  body.single-post .single-sticky-loop__more-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
  }

  body.single-post .single-sticky-loop__more-label {
    display: block;
    line-height: 1.05;
  }

  html body.single-post .single-sticky-loop,
  html body.single-post.single-loop-ready.comments-in-view:not(.comment-compose-active) .single-sticky-loop {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
  }

  html body.single-post.comment-compose-active .single-sticky-loop {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(-50%, calc(100% + 24px), 0) !important;
  }

  body.single-post .post-navigation {
    display: none !important;
  }

  body.single-post .single-inline-next {
    min-height: 42px;
    margin-top: 7px;
    padding-block: 6px;
    border-radius: 8px;
  }

  body.single-post .single-related {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
  }

  body.single-post .sidebar-layout {
    row-gap: 5px !important;
  }

  body.single-post .sidebar-layout__aside {
    margin-top: 0 !important;
  }

  body.single-post .single-related__header {
    margin-bottom: 6px !important;
  }

  body.single-post .single-related__eyebrow {
    display: none;
  }

  body.single-post .single-related__grid .single-related__item:nth-child(n + 2) {
    display: none !important;
  }

  body.single-post .single-related__item {
    min-height: 0 !important;
    padding: 9px !important;
  }

  body.single-post #comments.comments-area.has-compact-comment-composer:not(.is-comment-open) {
    margin-top: 5px !important;
    padding: 6px !important;
    border-radius: 10px !important;
  }

  body.single-post #comments.has-compact-comment-composer:not(.is-comment-open) > .comments-community-heading,
  body.single-post #comments.has-compact-comment-composer:not(.is-comment-open) > .comment-nudge,
  body.single-post #comments.has-compact-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-subscribe-bar {
    display: none !important;
  }

  body.single-post #comments.has-compact-comment-composer:not(.has-existing-comments):not(.is-comment-open) > .comment-list,
  body.single-post #comments.has-compact-comment-composer:not(.has-existing-comments):not(.is-comment-open) > .navigation,
  body.single-post #comments.has-compact-comment-composer:not(.has-existing-comments):not(.is-comment-open) #wpdcom .wpd-thread-head,
  body.single-post #comments.has-compact-comment-composer:not(.has-existing-comments):not(.is-comment-open) #wpdcom .wpd-thread-list {
    display: none !important;
  }

  body.single-post #comments .compact-comment-trigger {
    min-height: 44px;
    margin: 0;
    padding-inline: 12px;
    border-radius: 8px;
    cursor: pointer;
  }

  body.single-post #comments.has-existing-comments:not(.is-comment-open) .compact-comment-trigger {
    margin-bottom: 8px;
  }

  body.mobile-more-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .mobile-more-sheet {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: block;
  }

  .mobile-more-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 27, 34, 0.46);
    opacity: 0;
    transition: opacity 180ms ease;
    cursor: default;
  }

  .mobile-more-sheet__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82dvh, 680px);
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -14px 40px rgba(20, 27, 34, 0.18);
    transform: translate3d(0, 105%, 0);
    transition: transform 180ms ease;
  }

  .mobile-more-sheet.is-open .mobile-more-sheet__backdrop {
    opacity: 1;
  }

  .mobile-more-sheet.is-open .mobile-more-sheet__panel {
    transform: translate3d(0, 0, 0);
  }

  .mobile-more-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #c7ccd1;
  }

  .mobile-more-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
  }

  .mobile-more-sheet__eyebrow {
    display: inline-block;
    margin: 0 0 1px;
    color: var(--brand-strong);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-more-sheet__eyebrow:hover,
  .mobile-more-sheet__eyebrow:focus-visible {
    color: var(--brand-strong);
    text-decoration: underline;
  }

  .mobile-more-sheet__header h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .mobile-more-sheet__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(31, 41, 51, 0.13);
    border-radius: 50%;
    background: #fff;
    color: #526577;
    font-size: 1.45rem;
    cursor: pointer;
  }

  .mobile-more-sheet__search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 48px;
    margin-bottom: 10px;
    padding-left: 12px;
    border: 1px solid rgba(40, 101, 145, 0.22);
    border-radius: 13px;
    background: #f8fbfd;
    color: #286591;
  }

  .mobile-more-sheet__search input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    outline: none;
  }

  .mobile-more-sheet__search button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-strong);
    font-size: 1.2rem;
    cursor: pointer;
  }

  .mobile-more-sheet__search > span svg,
  .mobile-more-sheet__search button svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .mobile-more-sheet__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .mobile-more-sheet__links a,
  .mobile-more-sheet__links a:link,
  .mobile-more-sheet__links a:visited,
  .mobile-more-sheet__categories summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 11px;
    gap: 9px;
    border: 1px solid rgba(31, 41, 51, 0.1);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-size: 0.82rem;
    text-decoration: none;
  }

  .mobile-more-sheet__links a > span,
  .mobile-more-sheet__categories summary > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
  }

  .mobile-more-sheet__links a > span svg,
  .mobile-more-sheet__categories summary > span svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .mobile-more-sheet__links a.is-current {
    border-color: rgba(169, 47, 85, 0.18);
    background: rgba(169, 47, 85, 0.045);
    color: var(--brand-strong);
  }

  .mobile-more-sheet__search-results {
    top: calc(100% + 6px);
    z-index: 30;
    max-height: min(44dvh, 310px);
    padding: 7px;
    overflow-y: auto;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(31, 41, 51, 0.16);
  }

  .mobile-more-sheet__search-results .live-search-results__label {
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .mobile-more-sheet__search-results .live-search-results__list {
    gap: 5px;
  }

  .mobile-more-sheet__search-results .live-search-results__item {
    padding: 8px 9px;
    border-radius: 9px;
  }

  .mobile-more-sheet__search-results .live-search-results__title {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .mobile-more-sheet__search-results .live-search-results__meta {
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .mobile-more-sheet__search-results .live-search-results__summary {
    display: none;
  }

  .mobile-more-sheet__search-results .live-search-results__more {
    padding: 8px 7px 3px;
    font-size: 0.76rem;
  }

  html body.single-post .single-discovery {
    display: none !important;
  }

  html body.single-post .sidebar-quick-actions {
    display: none !important;
  }

  /* Keep an opened wpDiscuz thread dense: metadata should lead straight into the comment. */
  body.single-post #comments.is-comment-open #wpdcom .wpd-comment-wrap {
    padding-top: 8px !important;
    padding-bottom: 9px !important;
  }

  body.single-post #comments.is-comment-open #wpdcom .wpd-comment-header,
  body.single-post #comments.is-comment-open #wpdcom .wpd-comment-date {
    margin-bottom: 3px !important;
    padding-bottom: 0 !important;
  }

  body.single-post #comments.is-comment-open #wpdcom .wpd-comment-text {
    margin-top: 3px !important;
    padding-top: 0 !important;
  }

  body.single-post #comments.is-comment-open #wpdcom .wpd-comment-text > :first-child {
    margin-top: 0 !important;
  }

  .mobile-more-sheet__categories {
    margin-top: 7px;
  }

  .mobile-more-sheet__categories summary {
    cursor: pointer;
    list-style: none;
  }

  .mobile-more-sheet__categories[open] summary {
    border-color: rgba(41, 112, 158, 0.26);
    background: #f5f9fc;
    color: #234f70;
  }

  .mobile-more-sheet__categories summary:focus {
    outline: none;
  }

  .mobile-more-sheet__categories summary:focus-visible {
    border-color: #6e9fbe;
    outline: 2px solid rgba(52, 121, 164, 0.2);
    outline-offset: 2px;
  }

  .mobile-more-sheet__categories summary::-webkit-details-marker {
    display: none;
  }

  .mobile-more-sheet__category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 9px 0 2px;
    gap: 7px;
  }

  .mobile-more-sheet__category-grid a,
  .mobile-more-sheet__category-grid a:link,
  .mobile-more-sheet__category-grid a:visited {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(41, 82, 112, 0.12);
    border-radius: 10px;
    background: #f8fafb;
    color: #425b6e;
    font-size: 0.78rem;
    line-height: 1.2;
    text-decoration: none;
  }

  .mobile-more-sheet__category-grid a:hover,
  .mobile-more-sheet__category-grid a:focus-visible {
    border-color: rgba(41, 112, 158, 0.3);
    background: #f1f7fb;
    color: #174f75;
  }

  .mobile-more-sheet__secondary {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(31, 41, 51, 0.1);
  }

  .mobile-more-sheet__account-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .mobile-more-sheet__account-actions > a,
  .mobile-more-sheet__account-actions > a:link,
  .mobile-more-sheet__account-actions > a:visited {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 46px;
    padding: 9px 10px;
    border: 1px solid rgba(41, 82, 112, 0.18);
    border-radius: 12px;
    background: #fff;
    color: #34495b;
    font-size: 0.86rem;
    line-height: 1.1;
    text-decoration: none;
  }

  .mobile-more-sheet__account-actions > a.is-primary,
  .mobile-more-sheet__account-actions > a.is-primary:link,
  .mobile-more-sheet__account-actions > a.is-primary:visited {
    border-color: rgba(187, 62, 91, 0.28);
    background: rgba(187, 62, 91, 0.07);
    color: var(--brand-strong);
  }

  .mobile-more-sheet__account-actions > a:hover,
  .mobile-more-sheet__account-actions > a:focus-visible {
    border-color: rgba(41, 82, 112, 0.38);
    background: #f6f9fb;
  }

  .mobile-more-sheet__account-actions span {
    display: inline-flex;
    width: 20px;
    height: 20px;
  }

  .mobile-more-sheet__account-actions svg {
    width: 100%;
    height: 100%;
  }

  .mobile-more-sheet__footer-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 14px;
    color: #66717c;
    font-size: 0.76rem;
    text-decoration: none;
  }

  .mobile-more-sheet__footer-menu {
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-more-sheet__footer-menu li {
    display: inline;
  }
}

@media (max-width: 340px) {
  .mobile-more-sheet__links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-more-sheet__backdrop,
  .mobile-more-sheet__panel {
    transition: none !important;
  }
}

/* Finaler Lesbarkeits-Pass: klarere Titel und ein schnellerer Einstieg in den Witz. */
.single-card .entry-title,
.single-card .entry-title a {
  color: #17212b;
  font-weight: 800;
}

.post-card .entry-title,
.post-card .entry-title a {
  color: #17212b;
  font-weight: 700;
}

/* Sortierungen sind nur in Feed-Ansichten aktiv. Alte gecachte Menüklassen
   dürfen Einzelbeiträge und Suchseiten nicht fälschlich als „Trend“ markieren. */
body.single-post .main-navigation .retention-sort-item.current-menu-item > a,
body.search .main-navigation .retention-sort-item.current-menu-item > a {
  background: transparent !important;
  color: var(--ink) !important;
}

body.single-post .main-navigation .retention-sort-item.current-menu-item:hover > a,
body.single-post .main-navigation .retention-sort-item.current-menu-item:focus-within > a,
body.search .main-navigation .retention-sort-item.current-menu-item:hover > a,
body.search .main-navigation .retention-sort-item.current-menu-item:focus-within > a {
  background: rgba(187, 62, 91, 0.08) !important;
  color: var(--brand-strong) !important;
}

@media (max-width: 760px) {
  body.home .post-card,
  body.category .post-card {
    padding-top: 7px !important;
  }

  body.single-post .single-card {
    padding-top: 6px !important;
  }

  body.is-account-page-view .sidebar-quick-actions {
    display: none !important;
  }

  .sidebar-layout.is-account-layout .sidebar-quick-actions {
    display: none !important;
  }

  .site-header.site-header--account-page {
    display: none !important;
  }

  /* Einzelbeitrag: neuer Inhalt zuerst, Community danach; alle Sidebar-Cards
     folgen demselben kompakten vertikalen Rhythmus. */
  body.single-post .sidebar-layout__aside {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  body.single-post .sidebar-layout__aside .widget {
    order: 60;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }

  body.single-post .sidebar-layout__aside .widget_recent_entries {
    order: 10;
  }

  body.single-post .sidebar-layout__aside .sidebar-top-authors {
    order: 20;
  }

  body.single-post .sidebar-layout__aside .widget_categories {
    order: 30;
  }

  body.single-post .sidebar-layout__aside .widget_pages {
    order: 40;
  }

  body.single-post .sidebar-layout__aside .widget_recent_comments {
    order: 50;
  }

  body.single-post .sidebar-layout__aside .widget-title {
    margin-bottom: 7px !important;
  }

  body.single-post .sidebar-layout__aside .widget_recent_entries li:nth-child(n + 4) {
    display: none !important;
  }

  /* wpDiscuz setzt auf Mobilgeräten zwischen Autorzeile und Beitrag mehrere
     eigene Abstände. Ein enger Rhythmus verbindet Metadaten und Kommentar,
     ohne Antworten optisch zusammenzuschieben. */
  body.single-post #comments #wpdcom .wpd-comment-wrap {
    padding-top: 7px !important;
    padding-bottom: 8px !important;
  }

  body.single-post #comments #wpdcom .wpd-comment-header,
  body.single-post #comments #wpdcom .wpd-comment-date,
  body.single-post #comments #wpdcom .wpd-comment-author {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
  }

  body.single-post #comments #wpdcom .wpd-comment-text {
    margin-top: 2px !important;
    padding-top: 0 !important;
  }

  body.single-post #comments #wpdcom .wpd-comment-text > :first-child {
    margin-top: 0 !important;
  }

  /* Ruhige Funktionsfarben im Mehr-Menü: schneller erfassbar als eine rein
     schwarz-weiße Matrix, aber weiterhin deutlich zurückhaltender als der
     primäre +Witz-Button. */
  .mobile-more-sheet__links > a:nth-child(1) {
    border-color: rgba(169, 47, 85, 0.18);
    background: rgba(169, 47, 85, 0.055);
    color: #9c294e;
  }

  .mobile-more-sheet__links > a:nth-child(2) {
    border-color: rgba(63, 120, 157, 0.2);
    background: rgba(63, 120, 157, 0.06);
    color: #356f96;
  }

  .mobile-more-sheet__links > a:nth-child(3) {
    border-color: rgba(187, 62, 91, 0.24);
    background: rgba(187, 62, 91, 0.075);
    color: var(--brand-strong);
  }

  .mobile-more-sheet__links > a:nth-child(4) {
    border-color: rgba(148, 113, 38, 0.2);
    background: rgba(148, 113, 38, 0.065);
    color: #80601d;
  }

  .mobile-more-sheet__links > a:nth-child(5) {
    border-color: rgba(82, 107, 125, 0.18);
    background: rgba(82, 107, 125, 0.055);
    color: #4e687b;
  }

  .mobile-more-sheet__links > a:nth-child(6) {
    border-color: rgba(111, 84, 137, 0.18);
    background: rgba(111, 84, 137, 0.055);
    color: #68507f;
  }

  .mobile-more-sheet__links > a:hover,
  .mobile-more-sheet__links > a:focus-visible {
    filter: saturate(1.08);
    border-color: currentColor;
  }

  /* Etwas mehr Orientierung im Feed-Dock, ohne fünf konkurrierende Flächen. */
  body.home .mobile-feed-dock__item--trend .mobile-feed-dock__icon,
  body.category .mobile-feed-dock__item--trend .mobile-feed-dock__icon,
  body.search .mobile-feed-dock__item--trend .mobile-feed-dock__icon {
    color: #a92f55 !important;
  }

  body.home .mobile-feed-dock__item--latest .mobile-feed-dock__icon,
  body.category .mobile-feed-dock__item--latest .mobile-feed-dock__icon,
  body.search .mobile-feed-dock__item--latest .mobile-feed-dock__icon {
    color: #3f789d !important;
  }

  body.home .mobile-feed-dock__item--popular .mobile-feed-dock__icon,
  body.category .mobile-feed-dock__item--popular .mobile-feed-dock__icon,
  body.search .mobile-feed-dock__item--popular .mobile-feed-dock__icon {
    color: #947126 !important;
  }

  body.home .mobile-feed-dock__item--more .mobile-feed-dock__icon,
  body.category .mobile-feed-dock__item--more .mobile-feed-dock__icon,
  body.search .mobile-feed-dock__item--more .mobile-feed-dock__icon {
    color: #526b7d !important;
  }

  body.home button.mobile-feed-dock__item--more,
  body.category button.mobile-feed-dock__item--more,
  body.search button.mobile-feed-dock__item--more,
  body.is-submit-page-view button.mobile-feed-dock__item--more {
    color: #4d5e6c !important;
  }

}

/* Mobile Karten-Test 2026-08-14: etwas mehr Ruhe wie in dichten Community-Feeds.
   Zum Rollback diesen Block entfernen oder theme.css.bak-20260814-mobile-cards nutzen. */
@media (max-width: 760px) {
  body.home .sidebar-layout,
  body.category .sidebar-layout,
  body.search .sidebar-layout,
  body.single-post .sidebar-layout {
    box-sizing: border-box;
    padding-inline: 6px !important;
  }

  body.home .post-card,
  body.category .post-card,
  body.search .post-card,
  body.single-post .single-card,
  body.single-post #comments.comments-area,
  body.single-post .single-related,
  body.single-post .sidebar-layout__aside .widget {
    border-radius: 8px !important;
  }

  body.home .post-card,
  body.category .post-card,
  body.search .post-card,
  body.single-post .single-card {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  body.home .posts-stack,
  body.category .posts-stack,
  body.search .posts-stack {
    gap: 5px !important;
  }

  body:not(.single-post) .post-card .post-comments-btn,
  body.single-post .entry-actions-footer .post-comments-btn,
  body:not(.single-post) .post-card .post-action-bar > .post-share-btn,
  body.single-post .entry-actions-footer .post-action-bar > .post-share-btn {
    background: transparent !important;
    border-color: rgba(77, 104, 124, 0.16) !important;
    box-shadow: none !important;
  }
}

/* Geöffneter Kommentar-Editor: auf kleinen Displays etwas mehr Schreibbreite,
   ohne die ruhigen Außenabstände der Community-Karte zu entfernen. */
@media (max-width: 760px) {
  body.single-post #comments.is-comment-open #wpdcom .wpd-form-wrap,
  body.single-post #comments.is-comment-open #wpdcom .wpd-main-form-wrap {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* Einzelbeitrag: Der geschlossene Kommentareinstieg ist das echte Eingabefeld.
   So übernimmt der Browser Fokus und Bildschirmtastatur ohne einen Fake-Button. */
html.bwp-js body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrapper,
html.bwp-js body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrap,
html.bwp-js body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-wrap,
html.bwp-js body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-comment-form,
html.bwp-js body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-comment-form,
html.bwp-js body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open),
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrapper,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-comment-form {
  min-height: 0 !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: -44px 0 0 !important;
  padding: 0 !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-comment-form,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-comment-form {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrapper,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-main-form-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-comment-form,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-comment-form,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond form {
  box-sizing: border-box !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-row,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wc-field-comment,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-textarea-wrap,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-textarea-wrap {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-head,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-form-foot,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wc-field-submit,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .ql-toolbar,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-tools-wrapper,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-editor-buttons,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-subscribe-bar,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpd-avatar,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz_top_clearing,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wc_social_plugin_wrapper,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond .comment-reply-title,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond .logged-in-as,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond .comment-notes,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond .form-submit {
  display: none !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom textarea,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .ql-editor,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > #respond textarea {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 8px 13px 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(40, 101, 145, 0.24) !important;
  border-radius: 8px !important;
  background: rgba(248, 251, 253, 0.98) !important;
  color: #526577 !important;
  font-family: var(--font-ui) !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  resize: none !important;
  cursor: text;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .ql-container {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(40, 101, 145, 0.24) !important;
  border-radius: 8px !important;
  background: rgba(248, 251, 253, 0.98) !important;
}

body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > .comments-community-heading,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) > .comment-nudge,
body.single-post #comments.has-inline-comment-composer:not(.is-comment-open) #wpdcom .wpdiscuz-subscribe-bar {
  display: none !important;
}

body.single-post #comments.has-inline-comment-composer:not(.has-existing-comments):not(.is-comment-open) > .comment-list,
body.single-post #comments.has-inline-comment-composer:not(.has-existing-comments):not(.is-comment-open) > .navigation,
body.single-post #comments.has-inline-comment-composer:not(.has-existing-comments):not(.is-comment-open) #wpdcom .wpd-thread-wrapper,
body.single-post #comments.has-inline-comment-composer:not(.has-existing-comments):not(.is-comment-open) #wpdcom .wpd-comments,
body.single-post #comments.has-inline-comment-composer:not(.has-existing-comments):not(.is-comment-open) #wpdcom .wpd-thread-head,
body.single-post #comments.has-inline-comment-composer:not(.has-existing-comments):not(.is-comment-open) #wpdcom .wpd-thread-list {
  display: none !important;
}

@media (min-width: 761px) {
  body.single-post #comments.comments-area.has-inline-comment-composer:not(.is-comment-open) {
    padding: 10px 12px 8px !important;
  }

  body.single-post #comments.has-inline-comment-composer.has-existing-comments:not(.is-comment-open) #wpdcom .wpd-thread-wrapper,
  body.single-post #comments.has-inline-comment-composer.has-existing-comments:not(.is-comment-open) #wpdcom .wpd-thread-list,
  body.single-post #comments.has-inline-comment-composer.has-existing-comments:not(.is-comment-open) #wpdcom .wpd-comments {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.single-post #comments.has-inline-comment-composer.has-existing-comments:not(.is-comment-open) #wpdcom .wpd-comment-wrap {
    padding-bottom: 6px !important;
  }

  body.single-post #comments #wpdcom .wpd-comment-header,
  body.single-post #comments #wpdcom .wpd-comment-date,
  body.single-post #comments #wpdcom .wpd-comment-author {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.single-post #comments #wpdcom .wpd-comment-text {
    margin-top: 1px !important;
    padding-top: 0 !important;
  }

  body.single-post #comments #wpdcom .wpd-comment-text > :first-child {
    margin-top: 0 !important;
  }
}

@media (max-width: 760px) {
  body.single-post #comments.comments-area.has-inline-comment-composer:not(.is-comment-open) {
    margin-top: 5px !important;
    padding: 6px 6px 9px !important;
    border-radius: 10px !important;
    contain: layout paint;
  }

}

/* Desktop: Das Schreibformular nutzt die volle Breite. Die Identität steht
   bereits in der Kontozeile; Avatare außerhalb des Formulars bleiben erhalten. */
@media (min-width: 761px) {
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-main-form-wrapper .wpd-avatar,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-main-form-wrap .wpd-avatar,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-form-wrap .wpd-form-row > .wpd-avatar {
    display: none !important;
  }

  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-form-wrap,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-comment-form,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpdiscuz-comment-form,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-form-row,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-form-col-right,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wc-field-comment,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wc_comment-textarea,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-textarea-wrap,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpdiscuz-textarea-wrap,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .ql-container,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .ql-editor,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom textarea {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wc-field-textarea > *,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpd-textarea-wrap > *,
  body.single-post #comments:is(.is-comment-open, :focus-within) #wpdcom .wpdiscuz-textarea-wrap > * {
    box-sizing: border-box !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* Prevent iOS from zooming the page when a mobile search field receives focus. */
@media (max-width: 720px) {
  .search-field {
    font-size: 16px !important;
  }
}
