:root {
  --bg: #efe7d2;
  --paper: #fffdfa;
  --paper-soft: #f7f1e3;
  --ink: #173552;
  --muted: #5f7387;
  --line: rgba(18, 57, 91, 0.14);
  --brand: #12395b;
  --brand-soft: #e7eef5;
  --accent: #d4a039;
  --shadow: 0 18px 44px rgba(18, 57, 91, 0.09);
  --radius: 18px;
  --container: 1280px;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Expand legacy fixed-width WordPress captions into a readable mobile figure. */
@media (max-width: 767px) {
  body .entry-content .wp-caption.alignleft,
  body .entry-content .wp-caption.alignright {
    float: none !important;
    display: block;
    width: min(100%, 320px) !important;
    max-width: 100% !important;
    margin: 12px auto 16px !important;
  }

  body .entry-content .wp-caption.alignleft img,
  body .entry-content .wp-caption.alignright img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  body .entry-content .wp-caption-text {
    overflow-wrap: anywhere;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(18, 57, 91, 0.07), transparent 22%),
    linear-gradient(180deg, #fbf7ee 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus { color: #0f3557; }

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

.container {
  width: min(calc(100% - 28px), var(--container));
  margin: 0 auto;
}

.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;
}

.site-header {
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid rgba(30, 42, 53, 0.1);
  box-shadow: 0 8px 28px rgba(30, 42, 53, 0.04);
  position: relative;
  z-index: 50;
}

.site-header__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 16px;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.site-branding__text {
  min-width: 0;
}

.site-header-search {
  flex: 0 1 430px;
  min-width: 260px;
  margin-left: 12px;
  position: relative;
  z-index: 80;
}

@media (min-width: 981px) {
  .site-header-search {
    display: block !important;
  }
}

.site-header-search .search-form {
  width: 100%;
  flex-wrap: nowrap;
}

.site-header-search .search-form label {
  flex: 1 1 auto;
  min-width: 0;
}

.site-header-search .search-field {
  min-width: 0;
  width: 100%;
}

.mobile-nav-search {
  display: none;
}

.mobile-nav-search .search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.mobile-nav-search .search-form label {
  min-width: 0;
  width: 100%;
}

.mobile-nav-search .search-field {
  width: 100%;
  min-width: 0;
}

.mobile-nav-search .search-submit {
  width: 100%;
}

.site-title,
.site-title a {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.72rem, 2.7vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-decoration: none;
}

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

.site-utility {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex: 0 0 auto;
}

.site-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-trustline span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.main-navigation { border-top: 1px solid rgba(30, 42, 53, 0.08); }

.main-navigation .menu,
.main-navigation .container > ul,
.main-navigation .container > div > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.main-navigation li { margin: 0; }

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
  background: #edf4fb;
  color: #163f68;
}

.main-navigation .sub-menu,
.main-navigation .children,
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.main-navigation .sub-menu li,
.main-navigation .children li,
.main-navigation ul ul li {
  margin: 0;
}

.main-navigation .sub-menu a,
.main-navigation .children a,
.main-navigation ul ul a {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
}

.submenu-toggle {
  display: none;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:hover > .children,
.main-navigation li:hover > ul,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:focus-within > .children,
.main-navigation li:focus-within > ul {
  display: block;
}

.site-content { padding: 8px 0 40px; }

.content-card {
  background: var(--paper);
  border: 1px solid rgba(30, 42, 53, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.widget-kicker,
.entry-overline {
  margin: 0 0 10px;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  margin-bottom: 8px;
  align-items: start;
}

.home-grid__main .hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.home-grid__main .hero__side {
  width: 100%;
  max-width: 100%;
  padding: 8px 8px 8px;
  justify-self: start;
}

.home-grid__main .hero__side .widget-kicker {
  margin-bottom: 2px;
}

.home-grid__main .hero__side .hero-widget-embed {
  max-width: 100%;
}

.hero-search-card {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 6px;
  overflow: visible;
}

.hero-search-card__kicker {
  margin-bottom: 0;
}

.home-grid__main .hero__side,
.home-grid__main .hero-widget-embed {
  overflow: visible;
}

.home-grid__main .hero__side .akz-app-search {
  margin: 0 auto;
  max-width: min(920px, 100%);
  inline-size: min(100%, 920px);
}

.home-grid__main .hero + .section-card {
  margin-top: -2px;
}

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

.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;
}

.hero__main,
.hero__side,
.section-card,
.archive-header,
.single-card,
.comments-area,
.empty-state { padding: 18px; }

.hero h1,
.archive-header h1,
.single-card .entry-title,
.comments-title,
.empty-state h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.62rem, 2.2vw, 2.28rem);
  font-weight: 560;
  line-height: 1.16;
  letter-spacing: -0.018em;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.hero-text,
.entry-intro,
.comments-intro {
  font-size: 1rem;
  line-height: 1.68;
  color: #33404d;
}

.hero-actions,
.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.live-search-form {
  position: relative;
  z-index: 90;
}

.search-field {
  min-width: min(320px, 60vw);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.98rem;
}

.button,
.search-submit,
.form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  line-height: 1.2;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.search-submit:hover,
.form-submit .submit:hover { transform: translateY(-1px); }

.button:hover,
.button:focus,
.button-primary:hover,
.button-primary:focus,
.search-submit:hover,
.search-submit:focus,
.form-submit .submit:hover,
.form-submit .submit:focus {
  color: #ffffff;
}

.button-primary,
.search-submit,
.form-submit .submit {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #174a76 100%);
  box-shadow: 0 12px 24px rgba(33, 93, 146, 0.2);
}

.button-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #174a76 100%);
  border: 0;
  box-shadow: 0 12px 24px rgba(33, 93, 146, 0.2);
}

.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px;
  border: 1px solid rgba(30, 42, 53, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 18px 44px rgba(30, 42, 53, 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.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-search-results__status.is-error {
  color: #8d3d27;
}

.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 12px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(30, 42, 53, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.live-search-results__item:hover,
.live-search-results__item:focus {
  border-color: rgba(33, 93, 146, 0.28);
  background: #f7fbff;
  color: #163f68;
}

.live-search-results__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.live-search-results__copy {
  display: block;
  min-width: 0;
}

.live-search-results__badge {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #12395b;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
}

.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.96rem;
  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.86rem;
  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;
  text-decoration: none;
}

.compact-points,
.topic-list,
.conversation-list,
.article-toc ol {
  margin: 0;
  padding-left: 1.15em;
}

.compact-points li,
.topic-list li,
.conversation-list li,
.article-toc li { margin-bottom: 0.65em; }

.stat-strip {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-strip > div,
.stat-strip > .stat-link-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.stat-strip > .stat-link-card {
  display: block !important;
  width: 100%;
  min-height: 92px;
  text-decoration: none !important;
  color: inherit !important;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98) 0%, rgba(248, 243, 232, 0.98) 100%);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-strip > .stat-link-card:hover,
.stat-strip > .stat-link-card:focus,
.stat-strip > .stat-link-card:focus-visible {
  border-color: rgba(33, 93, 146, 0.24);
  background: #fff;
  color: #163f68 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 42, 53, 0.06);
  outline: none;
}

.stat-strip > .stat-link-card strong,
.stat-strip > .stat-link-card span,
.stat-strip > .stat-link-card small {
  text-decoration: none !important;
}

.stat-strip > .stat-link-card strong {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-strip > .stat-link-card span {
  display: block;
  max-width: 16rem;
  color: #5b7186;
  font-size: 0.95rem;
  line-height: 1.35;
}

.stat-strip > .stat-link-card small {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1b4f7d;
}

.stat-strip > .stat-link-card small::after {
  content: '\2192';
  margin-left: 0.38rem;
  font-size: 0.92em;
}

@media (max-width: 760px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip > .stat-link-card {
    min-height: 84px;
  }

  .stat-strip > .stat-link-card span {
    max-width: none;
    font-size: 0.92rem;
  }
}

.stat-strip strong,
.topic-card strong,
.discovery-card strong,
.related-item strong {
  display: block;
  margin-bottom: 4px;
}

.stat-strip span,
.topic-card span,
.related-item span,
.conversation-list span,
.topic-list span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-grid,
.sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(280px, 320px);
  gap: 24px;
}

.home-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.home-grid__main {
  min-width: 0;
}

.home-grid__side,
.sidebar-layout__aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-layout__aside {
  position: sticky;
  top: 24px;
}

.section-card + .section-card,
.posts-stack .post-card + .post-card,
.sidebar-layout__main > * + *,
.sidebar-layout__aside > * + * { margin-top: 8px; }

.home-grid__side > * + * {
  margin-top: 10px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.community-teaser {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(33, 93, 146, 0.06);
  border: 1px solid rgba(33, 93, 146, 0.14);
}

.community-teaser__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.community-teaser__head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
}

.community-teaser__head .widget-kicker {
  margin-bottom: 4px;
}

.community-teaser__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.community-teaser__list li + li {
  margin-top: 8px;
}

.community-teaser__list a {
  display: block;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(30, 42, 53, 0.08);
  text-decoration: none;
}

.community-teaser__list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.community-teaser__list span {
  display: block;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.4;
}

.community-teaser__list a:hover,
.community-teaser__list a:focus {
  border-color: rgba(33, 93, 146, 0.22);
  background: #fff;
}

.topic-grid,
.discovery-grid,
.related-list {
  display: grid;
  gap: 12px;
}

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

.stat-strip + .topic-grid {
  margin-top: 8px;
}

.topic-card,
.discovery-card,
.related-item {
  display: block;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.topic-card--cta {
  padding: 24px 18px 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #174a76 100%);
  border-color: rgba(23, 74, 118, 0.46);
  color: #fff;
  box-shadow: 0 12px 24px rgba(33, 93, 146, 0.16);
}

.topic-card--cta strong,
.topic-card--cta span {
  color: inherit;
}

.topic-card--cta strong {
  margin-bottom: 1px;
}

.topic-card--cta span {
  font-size: 0.84rem;
  line-height: 1.4;
  opacity: 0.92;
}

.topic-card:hover,
.discovery-card:hover,
.related-item:hover {
  border-color: rgba(33, 93, 146, 0.24);
  background: #fff;
  color: #163f68;
}

.topic-card--cta:hover,
.topic-card--cta:focus {
  border-color: rgba(23, 74, 118, 0.58);
  background: linear-gradient(135deg, #2b6ca3 0%, #143e64 100%);
  color: #fff;
}

.post-card { padding: 18px 19px; }

.post-card,
.post-card .entry-header,
.post-card .entry-title,
.post-card .entry-summary,
.sidebar-layout__main,
.posts-stack {
  min-width: 0;
  max-width: 100%;
}

.entry-header { margin-bottom: 13px; }

.entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.1;
}

.post-card .entry-title { font-size: clamp(1.45rem, 2vw, 2rem); }

.post-card .entry-title a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Use the title link as a full-card target without native blue tap feedback. */
.post-card {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.post-card a {
  -webkit-tap-highlight-color: transparent;
}

.post-card .entry-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.post-card .entry-title a:focus-visible::after {
  box-shadow: inset 0 0 0 3px rgba(23, 74, 118, 0.5);
}

.post-card .entry-footer .text-link {
  position: relative;
  z-index: 2;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.86rem;
}

.entry-summary {
  font-size: 0.98rem;
  line-height: 1.64;
}

.entry-footer {
  margin-top: 8px;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.72;
  display: flow-root;
}

.entry-content h2,
.entry-content h3 {
  margin: 1.7em 0 0.55em;
  line-height: 1.18;
  color: var(--ink);
  font-family: var(--font-display);
}

.entry-content h2 {
  font-size: clamp(1.34rem, 1.55vw, 1.72rem);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.22;
}

.entry-content h3 {
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.32;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-summary p { margin: 0 0 1em; }

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

.entry-content strong { color: #111b24; }

.entry-content figure,
.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content .alignleft,
.entry-content .wp-block-image.alignleft {
  float: left;
  margin: 0.2em 1.2em 0.9em 0;
}

.entry-content .alignright,
.entry-content .wp-block-image.alignright {
  float: right;
  margin: 0.2em 0 0.9em 1.2em;
}

.entry-content .aligncenter,
.entry-content .wp-block-image.aligncenter {
  display: block;
  float: none;
  margin: 1.1em auto;
  text-align: center;
}

.entry-content figure.alignleft,
.entry-content figure.alignright,
.entry-content figure.aligncenter {
  display: table;
}

.entry-content figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignleft img,
.entry-content .alignright img,
.entry-content .aligncenter img,
.entry-content .wp-block-image img {
  display: block;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .entry-content .alignleft,
  .entry-content .alignright,
  .entry-content .wp-block-image.alignleft,
  .entry-content .wp-block-image.alignright,
  .entry-content figure.alignleft,
  .entry-content figure.alignright {
    float: none;
    display: block;
    margin: 0.6em auto 1em;
  }
}

.entry-content .wp-block-table,
.entry-content .table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.55;
}

.entry-content table caption {
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.entry-content table th,
.entry-content table td {
  padding: 12px 14px;
  vertical-align: top;
  border-right: 1px solid rgba(30, 42, 53, 0.08);
  border-bottom: 1px solid rgba(30, 42, 53, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

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

.entry-content table thead th {
  background: rgba(33, 93, 146, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.entry-content table tbody tr:nth-child(even) td {
  background: rgba(248, 243, 232, 0.58);
}

.entry-content table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-content table > thead:first-child tr:first-child th:first-child,
.entry-content table > tbody:first-child tr:first-child td:first-child,
.entry-content table > tr:first-child td:first-child,
.entry-content table > tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.entry-content table > thead:first-child tr:first-child th:last-child,
.entry-content table > tbody:first-child tr:first-child td:last-child,
.entry-content table > tr:first-child td:last-child,
.entry-content table > tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

.entry-content table > tbody:last-child tr:last-child td:first-child,
.entry-content table > thead:last-child tr:last-child th:first-child,
.entry-content table > tr:last-child td:first-child,
.entry-content table > tr:last-child th:first-child {
  border-bottom-left-radius: 12px;
}

.entry-content table > tbody:last-child tr:last-child td:last-child,
.entry-content table > thead:last-child tr:last-child th:last-child,
.entry-content table > tr:last-child td:last-child,
.entry-content table > tr:last-child th:last-child {
  border-bottom-right-radius: 12px;
}

.single-card .entry-header {
  margin-bottom: 10px;
}

.single-card .entry-meta {
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 0.86rem;
}

.single-card .article-toc {
  margin-top: 12px;
}

.entry-figure {
  margin: 22px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.entry-figure figcaption {
  padding: 10px 6px 2px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-align: center;
}

.article-toc {
  margin: 8px 0;
  padding: 8px 10px 8px;
  border-radius: 11px;
  background: #eef5fc;
  border: 1px solid rgba(33, 93, 146, 0.1);
}

.article-toc h2 {
  margin: 0 0 3px;
  font-size: 0.91rem;
  line-height: 1.1;
}

.article-toc .widget-kicker {
  margin-bottom: 4px;
  font-size: 0.66rem;
}

.article-toc ol {
  padding-left: 0.84em;
}

.article-toc li {
  margin-bottom: 0.22em;
  line-height: 1.18;
}

.article-toc li::marker {
  font-size: 0.78em;
  font-weight: 600;
}

.article-toc a {
  font-size: 0.91rem;
  line-height: 1.2;
}

.discovery-panel {
  padding: 18px;
}

.discovery-panel .related-list { margin-top: 22px; }

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.comments-header { margin-bottom: 20px; }

.comment-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.comment-card {
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  scroll-margin-top: 72px;
}

.comment-author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.comment-content { font-size: 0.98rem; }

.comment-actions,
.comment-reply-link,
.text-link,
.posts-navigation a,
.post-navigation a {
  font-family: var(--font-ui);
  font-weight: 700;
}

.comment-form-notes,
.logged-in-as,
.comment-notes {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.widget-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero__side .widget,
.sidebar-layout__aside .widget,
.home-grid__side .widget,
.home-grid__side .section-card {
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(250, 247, 241, 0.98) 100%);
  border: 1px solid rgba(30, 42, 53, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(30, 42, 53, 0.07);
}

.hero__side .widget-title,
.sidebar-layout__aside .widget-title,
.home-grid__side .widget-title {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 42, 53, 0.08);
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero__side p,
.sidebar-layout__aside p,
.home-grid__side p {
  margin-top: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero__side ul,
.hero__side ol,
.sidebar-layout__aside ul,
.sidebar-layout__aside ol,
.home-grid__side ul,
.home-grid__side ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__side li,
.sidebar-layout__aside li,
.home-grid__side li {
  margin: 0;
}

.hero__side li + li,
.sidebar-layout__aside li + li,
.home-grid__side li + li {
  margin-top: 10px;
}

.hero__side .widget a,
.sidebar-layout__aside .widget a,
.home-grid__side .widget a {
  text-decoration: none;
}

.hero__side .widget > ul > li > a,
.hero__side .widget .menu > li > a,
.hero__side .widget .page_item > a,
.hero__side .widget .cat-item > a,
.sidebar-layout__aside .widget > ul > li > a,
.sidebar-layout__aside .widget .menu > li > a,
.sidebar-layout__aside .widget .page_item > a,
.sidebar-layout__aside .widget .cat-item > a,
.home-grid__side .widget > ul > li > a {
  display: block;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(30, 42, 53, 0.08);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.005em;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hero__side .widget > ul > li > a:hover,
.hero__side .widget .menu > li > a:hover,
.hero__side .widget .page_item > a:hover,
.hero__side .widget .cat-item > a:hover,
.sidebar-layout__aside .widget > ul > li > a:hover,
.sidebar-layout__aside .widget .menu > li > a:hover,
.sidebar-layout__aside .widget .page_item > a:hover,
.sidebar-layout__aside .widget .cat-item > a:hover,
.home-grid__side .widget > ul > li > a:hover {
  background: #ffffff;
  border-color: rgba(22, 63, 104, 0.22);
  color: #163f68;
  transform: translateY(-1px);
}

.hero__side .widget ul ul,
.sidebar-layout__aside .widget ul ul,
.home-grid__side .widget ul ul {
  margin-top: 8px;
  padding-left: 12px;
}

.hero__side .widget ul ul li + li,
.sidebar-layout__aside .widget ul ul li + li,
.home-grid__side .widget ul ul li + li {
  margin-top: 6px;
}

.hero__side .widget ul ul a,
.sidebar-layout__aside .widget ul ul a,
.home-grid__side .widget ul ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

.hero__side .widget .search-form,
.sidebar-layout__aside .widget .search-form,
.home-grid__side .widget .search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 6px 2px 2px;
}

.hero__side .widget .search-submit,
.sidebar-layout__aside .widget .search-submit,
.home-grid__side .widget .search-submit {
  width: 100%;
}

.hero__side .topic-list li > a,
.hero__side .conversation-list li > a,
.sidebar-layout__aside .topic-list li > a,
.sidebar-layout__aside .conversation-list li > a {
  display: block;
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 42, 53, 0.08);
}

.hero__side .topic-list strong,
.hero__side .conversation-list strong,
.sidebar-layout__aside .topic-list strong,
.sidebar-layout__aside .conversation-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.conversation-list--page {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conversation-list--page li + li {
  margin-top: 16px;
}

.conversation-list--page a {
  display: block;
  text-decoration: none;
}

.conversation-list--page span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.conversation-list--page p {
  margin: 10px 0 0;
}

.sidebar-layout__aside .widget-kicker,
.home-grid__side .widget-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.home-grid__side .compact-points li {
  margin-bottom: 0.45em;
  font-size: 0.96rem;
  line-height: 1.5;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  background: #eff2f4;
  border-top: 1px solid rgba(30, 42, 53, 0.08);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 30px 0 42px;
}

.footer-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 51;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  body { font-size: 19px; }
  .hero,
  .home-grid,
  .sidebar-layout,
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-utility { align-items: stretch; }
  .site-trustline { justify-content: flex-start; }
  .topic-grid { grid-template-columns: 1fr; }
  .sidebar-layout__aside { position: static; }
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    z-index: 50;
    isolation: auto;
  }
  .site-header__top {
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 11px 0 7px;
    min-height: 56px;
  }
  .menu-toggle { display: inline-flex; flex-shrink: 0; }
  .site-branding {
    align-items: center;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text button";
    gap: 8px;
    width: 100%;
  }
  .site-branding__text {
    min-width: 0;
    flex: 1 1 auto;
    grid-area: text;
  }
  .menu-toggle {
    grid-area: button;
    justify-self: end;
    align-self: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .site-description {
    display: none;
  }
  .site-title,
  .site-title a {
    font-size: clamp(1.38rem, 4vw, 1.62rem);
    line-height: 0.98;
  }
  .site-header-search {
    display: none !important;
  }
  .mobile-nav-search {
    display: block;
    width: 100%;
    margin: 4px 0 8px;
  }
  .main-navigation.is-open .mobile-nav-search {
    display: block;
  }
  .site-utility {
    flex: 1 1 100%;
    width: 100%;
    gap: 10px;
    align-items: flex-start;
  }
  .site-utility .search-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-utility .search-form label {
    min-width: 0;
  }
  .site-utility .search-field {
    width: 100%;
    min-width: 0;
  }
  .live-search-results {
    left: 0;
    right: 0;
  }
  .main-navigation {
    display: none;
    padding-bottom: 12px;
    position: relative;
    z-index: 9998;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation .menu,
  .main-navigation .container > ul,
  .main-navigation .container > div > ul {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
  }
  .main-navigation a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .main-navigation li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: start;
    gap: 0 8px;
  }

  .main-navigation li > a {
    grid-column: 1;
  }

  .submenu-toggle {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 2px;
    padding: 0;
    border: 1px solid rgba(30, 42, 53, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
  }

  .submenu-toggle span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
  }

  .main-navigation .sub-menu,
  .main-navigation .children,
  .main-navigation ul ul {
    position: static;
    min-width: 0;
    display: none;
    grid-column: 1 / -1;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .main-navigation li:hover > .sub-menu,
  .main-navigation li:hover > .children,
  .main-navigation li:hover > ul,
  .main-navigation li:focus-within > .sub-menu,
  .main-navigation li:focus-within > .children,
  .main-navigation li:focus-within > ul {
    display: none;
  }

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

  .main-navigation li.is-submenu-open > .submenu-toggle span {
    transform: rotate(-135deg);
  }

}

body.post-type-archive-kennzeichen .site-content,
body.single-kennzeichen .site-content {
  padding-top: 0;
}

body.single-kennzeichen .site-content {
  padding-bottom: 32px;
}

@media (max-width: 720px) {
  body {
    font-size: 18px;
    line-height: 1.68;
  }

  .home-grid__main .hero {
    gap: 0;
  }

  .homepage-ad-slot {
    margin: 0;
    padding: 0;
  }

  .container {
    width: min(calc(100% - 8px), var(--container));
  }

  .site-content {
    padding: 4px 0 26px;
  }

  .site-header__top,
  .hero__main,
  .section-card,
  .archive-header,
  .single-card,
  .comments-area,
  .empty-state,
  .post-card { padding: 10px 12px; }

  .site-header__top {
    padding: 9px 0;
    min-height: 56px;
  }

  .hero__side {
    padding: 6px 6px 4px;
  }

  .home-grid__main .hero__side {
    padding: 4px 4px 4px;
  }

  .home-grid__main .hero__side,
  .home-grid__main .hero-widget-embed,
  .hero-search-card {
    min-width: 0;
    max-width: 100%;
  }

  .home-grid__main .hero__side,
  .home-grid__main .hero-widget-embed {
    overflow-x: clip;
  }

  .hero-search-card {
    overflow-x: clip;
  }

  .home-grid__main .hero__side .akz-app-search {
    width: 100%;
    max-width: 100%;
    inline-size: 100%;
  }

  .content-card,
  .hero__side .widget,
  .sidebar-layout__aside .widget,
  .home-grid__side .widget,
  .home-grid__side .section-card {
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(30, 42, 53, 0.06);
  }

  .topic-card,
  .discovery-card,
  .related-item,
  .comment-card,
  .community-teaser__list a {
    border-radius: 12px;
  }

  .topic-card {
    padding: 14px 13px;
  }

  .topic-card--cta {
    padding: 14px 14px 12px;
  }

  .home-grid__main > .section-card {
    padding: 11px;
  }

  .home-grid__main .section-heading {
    margin-bottom: 14px;
  }

  .community-teaser {
    margin-bottom: 10px;
    padding: 9px 10px;
  }

  .community-teaser__list a {
    padding: 8px 9px;
  }

  .posts-stack .post-card,
  .search .post-card,
  .search-results .post-card,
  .sidebar-layout__main > .section-card:not(.single-card):not(.comments-area):not(.archive-header) {
    padding: 11px;
  }

  .discovery-panel {
    padding: 11px;
  }

  .site-branding {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text button";
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .menu-toggle {
    grid-area: button;
    justify-self: end;
    width: 40px;
    height: 40px;
  }

  .site-branding__text {
    grid-area: text;
    min-width: 0;
  }

  .site-header-search {
    display: none !important;
  }

  .mobile-nav-search {
    display: block;
    width: 100%;
    margin: 4px 0 8px;
  }

  .main-navigation.is-open .mobile-nav-search {
    display: block;
  }

  .site-utility {
    width: 100%;
  }

  .mobile-nav-search .search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

    .live-search-results {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: -2px;
  }

  .mobile-nav-search .search-form label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-nav-search .search-field {
    min-width: 0;
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  .mobile-nav-search .search-submit {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .search-form { width: 100%; }
  .search-form label { flex: 1 1 100%; }

  .hero h1,
  .archive-header h1,
  .single-card .entry-title,
  .comments-title,
  .empty-state h1,
  .site-title,
  .site-title a {
    font-size: 1.78rem;
    font-weight: 700;
    line-height: 0.98;
  }

  .single-card .entry-title {
    font-size: 1.62rem;
    line-height: 1.14;
  }

  .single-card .entry-overline {
    margin-bottom: 8px;
    font-size: 0.74rem;
  }

  .single-card .entry-header {
    margin-bottom: 8px;
  }

  .single-card .entry-meta {
    gap: 6px 10px;
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .single-card .entry-figure {
    margin: 14px 0 12px;
    padding: 8px;
  }

  .entry-content h2 {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .entry-content h3 {
    font-size: 1.06rem;
    line-height: 1.3;
  }

  .site-description,
  .site-trustline { display: none; }

  .posts-stack {
    width: 100%;
  }

  .posts-stack .post-card,
  .search .post-card,
    .search-results .post-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding: 13px;
  }

  .search .sidebar-layout__main,
  .search-results .sidebar-layout__main {
    padding-inline: 0;
    min-width: 0;
    overflow-x: clip;
  }

  .search .post-card .entry-title,
  .search-results .post-card .entry-title {
    font-size: 1.32rem;
    line-height: 1.15;
  }

  .posts-stack .entry-header,
  .search .entry-header,
  .search-results .entry-header {
    margin-bottom: 10px;
  }

  .posts-stack .entry-meta,
  .search .entry-meta,
  .search-results .entry-meta {
    gap: 6px 10px;
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .posts-stack .entry-summary,
  .search .entry-summary,
  .search-results .entry-summary {
    font-size: 0.95rem;
    line-height: 1.54;
  }

  .posts-stack .entry-summary p,
  .search .entry-summary p,
  .search-results .entry-summary p {
    margin-bottom: 0;
  }

  .posts-stack .entry-footer,
  .search .entry-footer,
  .search-results .entry-footer {
    margin-top: 6px;
  }

  .entry-content .wp-block-table,
  .entry-content .table-wrap {
    margin: 14px 0;
  }

  .entry-content table {
    min-width: 620px;
    font-size: 0.92rem;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 10px 12px;
  }

  .comment-card {
    margin-bottom: 10px;
    padding: 12px 13px;
    border-radius: 12px;
  }

  .site-header__top {
    padding: 9px 0 5px;
    gap: 2px 8px;
  }

  .site-title,
  .site-title a {
    font-size: clamp(1.14rem, 4.25vw, 1.38rem);
    line-height: 0.96;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

/* Market-leader UX pass: flatter content surfaces, tighter reading flow, lighter TOC/comments. */
:root {
  --shadow: 0 10px 24px rgba(22, 34, 31, 0.055);
  --radius: 10px;
}

body {
  line-height: 1.64;
}

.content-card,
.hero__side .widget,
.sidebar-layout__aside .widget,
.home-grid__side .widget,
.home-grid__side .section-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__main,
.hero__side,
.section-card,
.archive-header,
.comments-area,
.empty-state {
  padding: 14px 16px;
}

.single-card {
  padding: 10px 16px 14px;
}

.single-card .entry-header {
  margin-bottom: 7px;
}

.single-card .entry-title {
  font-size: clamp(1.72rem, 2.15vw, 2.18rem);
  line-height: 1.08;
}

.widget-kicker,
.entry-overline {
  margin-bottom: 6px;
}

.single-card .entry-meta {
  margin-top: 6px;
}

.single-card .article-toc,
.article-toc {
  margin: 7px 0 14px;
  padding: 7px 10px;
  border-radius: 8px;
  box-shadow: none;
}

.article-toc h2 {
  margin-bottom: 2px;
  font-size: 0.88rem;
}

.article-toc .widget-kicker {
  margin-bottom: 3px;
  font-size: 0.62rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 0.76em;
}

.article-toc li {
  margin-bottom: 0.1em;
  line-height: 1.15;
}

.article-toc a {
  font-size: 0.88rem;
  line-height: 1.16;
}

.entry-content h2 {
  margin-top: 1em;
  margin-bottom: 0.4em;
}

.entry-content h3 {
  margin-top: 1.12em;
  margin-bottom: 0.32em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: 0.76em;
}

.entry-figure {
  margin: 14px 0;
  padding: 7px;
  border-radius: 9px;
}

.discovery-panel {
  margin-top: 6px;
  padding: 10px 12px;
}

.discovery-panel .section-heading {
  margin-bottom: 7px;
}

.discovery-panel .related-list {
  margin-top: 8px;
}

.discovery-card,
.related-item,
.comment-card {
  border-radius: 8px;
}

.comments-area {
  margin-top: 6px;
  padding-top: 12px;
}

.comments-header {
  margin-bottom: 4px;
}

.comments-title {
  font-family: var(--font-ui);
  font-size: clamp(1.35rem, 1.85vw, 1.74rem);
  font-weight: 800;
}

.comments-intro {
  margin-top: 0;
  margin-bottom: 14px;
}

.comment-form p {
  margin-bottom: 8px;
}

.comment-form textarea {
  min-height: 138px;
}

@media (min-width: 981px) {
  .site-header__top {
    padding: 9px 0 8px;
    min-height: 50px;
  }

  .site-title,
  .site-title a {
    font-size: clamp(2.1rem, 3.2vw, 2.62rem);
    line-height: 0.98;
  }

  .site-content {
    padding-top: 0;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .site-utility { display: none; }
}

@media (min-width: 721px) and (max-width: 980px) {
  body.single .site-content,
  body.page:not(.home):not(.front-page) .site-content {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  body {
    line-height: 1.58;
  }

  .hero__main,
  .section-card,
  .archive-header,
  .comments-area,
  .empty-state,
  .post-card {
    padding: 9px 10px;
  }

  .single-card {
    padding: 7px 10px 9px;
  }

  .single-card .entry-title {
    font-size: clamp(1.28rem, 5.3vw, 1.68rem);
  }

  .single-card .article-toc,
  .article-toc {
    margin: 6px 0 10px;
    padding: 7px 9px;
  }

  .entry-content h2 {
    margin-top: 0.9em;
  }

  .entry-figure {
    margin: 10px 0;
  }

  .comments-area {
    margin-top: 4px;
  }
}

/* Mobile keeps the header compact; search lives at the top of the opened menu. */
@media (max-width: 980px) {
  .site-branding {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text button";
  }

  .site-header-search {
    display: none !important;
  }

  .mobile-nav-search {
    display: block !important;
  }
}

@media (max-width: 720px) {
  :root {
    --radius: 8px;
  }

  .container {
    width: 100%;
  }

  .site-header__top {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-navigation .mobile-nav-search {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-content {
    padding-top: 0;
  }

  .content-card,
  .hero__side .widget,
  .sidebar-layout__aside .widget,
  .home-grid__side .widget,
  .home-grid__side .section-card,
  .topic-card,
  .discovery-card,
  .related-item,
  .comment-card,
  .community-teaser__list a {
    border-radius: 8px;
  }

  .site-header-search .search-field,
  .site-header-search .search-submit {
    width: 100%;
  }

  .live-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 8px;
    border-radius: 10px;
  }

  .live-search-results__item,
  .live-search-results__item:link,
  .live-search-results__item:visited {
    padding: 10px;
    border-radius: 8px;
  }

  .live-search-results__label,
  .live-search-results__status {
    padding: 6px 8px;
    font-size: 0.74rem;
  }
}

/* Shared compact article TOC: mobile and two-column desktop. */
.single-card .article-toc,
.article-toc {
  margin: 8px 0 16px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
}

.article-toc .widget-kicker {
  margin-bottom: 2px !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.075em !important;
}

.article-toc h2 {
  margin-bottom: 4px !important;
  font-size: 0.88rem !important;
  line-height: 1.12 !important;
}

.article-toc ol {
  margin: 0 !important;
  padding-left: 0.82em !important;
}

.article-toc li {
  margin-bottom: 0.12em !important;
  line-height: 1.16 !important;
}

.article-toc a {
  font-size: 0.88rem !important;
  line-height: 1.16 !important;
}

@media (min-width: 721px) {
  .article-toc {
    margin: 8px 0 18px !important;
    padding: 8px 11px !important;
  }

  .article-toc ol {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
    padding-left: 0.9em !important;
  }

  .article-toc li {
    margin-bottom: 0.14em !important;
    line-height: 1.18 !important;
  }

  .article-toc a {
    font-size: 0.9rem !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 720px) {
  .single-card .article-toc,
  .article-toc {
    margin: 5px 0 12px !important;
    padding: 6px 8px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .article-toc .widget-kicker {
    margin-bottom: 1px !important;
    font-size: 0.58rem !important;
  }

  .article-toc h2 {
    margin-bottom: 1px !important;
    font-size: 0.82rem !important;
  }

  .article-toc ol {
    display: block !important;
    padding-left: 0.65em !important;
  }

  .article-toc li {
    margin-bottom: 0 !important;
    line-height: 1.08 !important;
  }

  .article-toc a {
    font-size: 0.84rem !important;
    line-height: 1.1 !important;
  }
}

/* Tighten article ads and the first heading after them. */
.entry-content .code-block,
.entry-content .code-block-1,
.entry-content .code-block-2,
.entry-content .google-auto-placed,
.entry-content ins.adsbygoogle {
  margin: 6px 0 4px !important;
}

.entry-content .code-block + h2,
.entry-content .code-block-1 + h2,
.entry-content .code-block-2 + h2,
.entry-content .google-auto-placed + h2,
.entry-content ins.adsbygoogle + h2 {
  margin-top: 0.12em;
}

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

body.home .home-grid {
  gap: 18px;
}

body.home .home-grid__main > * + * {
  margin-top: 1px;
}

body.home .hero + .section-card {
  margin-top: 6px;
}

body.home .hero {
  gap: 4px;
  margin-bottom: 0;
}

body.home .home-grid__main .hero__side {
  padding: 2px 6px 6px;
}

body.home .section-card {
  padding: 12px 16px;
}

body.home .hero__main {
  padding: 10px 16px 11px;
}

body.home .widget-kicker {
  margin-bottom: 6px;
}

body.home .hero-text {
  margin-top: 7px;
  margin-bottom: 0;
}

body.home .hero-actions {
  margin-top: 9px;
  gap: 8px;
}

body.home .section-heading {
  margin-bottom: 10px;
}

body.home .stat-strip {
  gap: 9px;
  margin-top: 10px;
}

body.home .stat-strip > div,
body.home .stat-strip > .stat-link-card {
  padding: 10px 13px;
}

body.home .stat-strip > .stat-link-card {
  min-height: 74px;
}

body.home .stat-strip > .stat-link-card strong {
  margin-bottom: 3px;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
}

body.home .stat-strip > .stat-link-card span {
  font-size: 0.88rem;
  line-height: 1.26;
}

body.home .stat-strip > .stat-link-card small {
  margin-top: 6px;
  font-size: 0.72rem;
}

body.home .stat-strip + .topic-grid {
  margin-top: 6px;
}

body.home .topic-grid {
  gap: 9px;
}

body.home .topic-card {
  padding: 12px 14px;
}

body.home .topic-card--cta {
  padding: 10px 14px;
}

body.home .topic-card--cta strong {
  margin-bottom: 0;
  line-height: 1.16;
}

body.home .topic-card--cta span {
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.24;
}

body.home .community-teaser {
  margin-bottom: 10px;
  padding: 8px 10px;
}

body.home .community-teaser__head {
  margin-bottom: 6px;
}

body.home .community-teaser__list li + li {
  margin-top: 6px;
}

body.home .community-teaser__list a {
  padding: 7px 10px;
}

body.home .home-grid__side,
body.home .sidebar-layout__aside {
  gap: 10px;
}

body.home .home-grid__side > * + * {
  margin-top: 3px;
}

body.home .home-grid__side .widget,
body.home .home-grid__side .section-card {
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(30, 42, 53, 0.06);
}

body.home .home-grid__side .widget-title {
  margin-bottom: 7px;
  padding-bottom: 7px;
}

body.home .home-grid__side li + li {
  margin-top: 7px;
}

body.home .home-grid__side .widget > ul > li > a {
  padding: 9px 12px;
  border-radius: 12px;
}

@media (max-width: 720px) {
  body.home .home-grid {
    gap: 12px;
  }

  body.home .hero + .section-card {
    margin-top: 6px;
  }

  body.home .hero__main,
  body.home .section-card,
  body.home .home-grid__side .widget,
  body.home .home-grid__side .section-card {
    padding: 9px 10px;
  }

  body.home .home-grid__main .hero__side {
    padding: 4px;
  }

  body.home .topic-card {
    padding: 10px 11px;
  }

  body.home .topic-card--cta {
    padding: 9px 11px;
  }

  body.home .stat-strip > .stat-link-card {
    min-height: 0;
  }
}

/* Mobile content uses continuous full-width sections; inner controls stay distinct. */
@media (max-width: 720px) {
  .site-content.container {
    width: 100%;
  }

  .content-card,
  .hero__side .widget,
  .sidebar-layout__aside .widget,
  .home-grid__side .widget,
  .home-grid__side .section-card,
  body.home .home-grid__side .widget,
  body.home .home-grid__side .section-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topic-card,
  .discovery-card,
  .related-item,
  .comment-card,
  .community-teaser__list a {
    border-radius: 8px;
  }

  .single-card {
    width: 100%;
    margin-inline: 0;
    border-radius: 0;
  }
}

.comment-jump-link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(30, 90, 138, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.comment-jump-link:hover,
.comment-jump-link:focus {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.comment-form.is-submitting .submit,
.comment-form .submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* Compact comment workflow: clear hierarchy without unnecessary vertical height. */
.comments-area {
  padding: 14px 16px;
}

.comments-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 16px;
  margin: 0 0 8px;
}

.comments-header .comments-title {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.comments-header .comments-intro {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  line-height: 1.4;
}

.comments-area .comment-reply-title {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.comments-area .comment-form p {
  margin: 0 0 8px;
}

.comments-area .comment-form label {
  margin-bottom: 5px;
  font-size: 0.86rem;
}

.comments-area .comment-form input:not([type="submit"]),
.comments-area .comment-form textarea {
  padding: 9px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.comments-area .comment-form input:not([type="submit"]) {
  min-height: 44px;
}

.comments-area .comment-form textarea,
.comments-area .comment-form textarea:focus {
  height: 96px;
  min-height: 96px;
}

.comments-area .comment-form .form-submit {
  margin: 4px 0 0;
}

@media (max-width: 720px) {
  .comments-area {
    padding: 10px 11px;
  }

  .comments-header {
    display: block;
    margin-bottom: 7px;
  }

  .comments-header .comments-title {
    font-size: 0.98rem;
  }

  .comments-header .comments-intro {
    margin-top: 3px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .comments-area .comment-reply-title {
    font-size: 0.96rem;
  }

  .comments-area .comment-form textarea,
  .comments-area .comment-form textarea:focus {
    height: 88px;
    min-height: 88px;
  }
}

/* Keep the comment entry compact, including briefly cached legacy markup. */
.comments-header > .widget-kicker,
.comments-header > div > .widget-kicker,
.comments-area .comment-reply-title:empty {
  display: none;
}

/* Tanken.de keeps the homepage as a normal content page around the search shortcode. */
.tanken-search-page .entry-content .tsl-root {
  width: 100%;
  max-width: 100%;
}

.tanken-search-page .entry-content > .tsl-root:first-child {
  margin-top: 0;
}
