:root {
  --fomo-blue: #2563eb;
  --fomo-blue-hover: #1d4ed8;
  --fomo-blue-soft: #e8f0ff;
  --fomo-ink: #14233b;
  --fomo-muted: #53627a;
  --fomo-line: #dbe5f2;
  --fomo-pale: #eff4fb;
  --fomo-canvas: #f7f9fc;
  --fomo-surface: #ffffff;
  --fomo-focus: #f4b400;
  --fomo-success: #155d33;
  --fomo-warning-bg: #fff8d9;
  --fomo-radius-xs: 8px;
  --fomo-radius-sm: 10px;
  --fomo-radius-md: 14px;
  --fomo-radius-lg: 18px;
  --fomo-radius-pill: 999px;
  --fomo-shadow-card: 0 10px 30px rgba(28, 55, 96, 0.07);
  --fomo-shadow-hover: 0 16px 38px rgba(28, 55, 96, 0.12);
  --fomo-content-max: 1280px;
  --fomo-container: 1280px;
  --fomo-sidebar: 320px;
  --fomo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  --fomo-type-h1: clamp(2rem, 2.5vw, 2.25rem);
  --fomo-type-h2: clamp(1.4rem, 1.9vw, 1.75rem);
  --fomo-type-h3: clamp(1.12rem, 1.45vw, 1.35rem);
  --fomo-type-hero-title: clamp(1.35rem, 1.8vw, 1.55rem);
  --fomo-type-card-title: 0.9rem;
  --fomo-type-body: 1rem;
}

/* Shared interaction components (single source for hubs and existing pilots) */
body :where(.fomo-button, .fomo-button--primary, .fomo-button--secondary) {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--fomo-blue);
  border-radius: var(--fomo-radius-md);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
}

body :where(.fomo-button, .fomo-button--primary) {
  background: var(--fomo-blue);
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

body .fomo-button--secondary {
  background: #fff;
  color: var(--fomo-blue) !important;
  box-shadow: none;
}

body .fomo-link {
  color: var(--fomo-blue) !important;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none !important;
}

body .fomo-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #b9cbe5;
  border-radius: var(--fomo-radius-pill);
  background: #fff;
  color: var(--fomo-blue);
  font-size: 0.63rem;
  font-weight: 900;
}

body .fomo-eyebrow {
  margin: 0 0 7px !important;
  color: var(--fomo-blue);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

body :where(.fomo-creator-fieldset, .fomo-searchux-page, .fomo-quality-page, .fomo-site-header__search) :where(input, select, textarea) {
  min-height: 44px;
  border: 1px solid #bdcce0 !important;
  border-radius: var(--fomo-radius-sm) !important;
  background: #fff !important;
}

/* Four fully replaced editorial hubs */
body:has(.fomo-hub) :where(.l-header, #breadcrumb, #sidebar, .c-pageTitle) {
  display: none !important;
}

body .fomo-hub {
  width: 100%;
  padding: 34px 24px 80px;
  background: var(--fomo-canvas);
  color: var(--fomo-ink);
  font-family: var(--fomo-font);
}

body .fomo-hub#main_content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.fomo-hub-page #content.l-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .fomo-hub :where(h1, h2, h3) {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body .fomo-hub :where(h1, h2, h3)::before,
body .fomo-hub :where(h1, h2, h3)::after {
  display: none !important;
  content: none !important;
}

body .fomo-hub a {
  text-decoration: none !important;
}

body .fomo-hub__shell {
  width: 100%;
  max-width: var(--fomo-container);
  margin: 0 auto;
}

body .fomo-breadcrumb {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--fomo-muted);
  font-size: 0.76rem;
}

body .fomo-breadcrumb a {
  color: var(--fomo-blue) !important;
}

body .fomo-hub__page-head {
  max-width: 860px;
  margin: 0 0 34px;
}

body .fomo-hub__page-head h1 {
  margin: 0 0 13px !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h1) !important;
  line-height: 1.12;
}

body .fomo-hub__page-head h1 span {
  color: var(--fomo-muted);
  font-size: 0.34em;
  white-space: nowrap;
}

body .fomo-hub__page-head > p:last-child {
  margin: 0 !important;
  color: var(--fomo-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

body .fomo-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--fomo-sidebar);
  align-items: start;
  gap: clamp(26px, 3.3vw, 48px);
}

body .fomo-hub__main {
  min-width: 0;
}

body .fomo-hub__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-bottom: 34px;
}

body .fomo-hub__lead,
body .fomo-hub__hero-sub > .fomo-hub__card,
body .fomo-hub__card,
body .fomo-hub__creator,
body .fomo-category-nav,
body .fomo-hub__side-note {
  overflow: hidden;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-lg);
  background: #fff;
  box-shadow: var(--fomo-shadow-card);
}

body .fomo-hub__lead {
  padding: 20px;
}

body .fomo-hub__lead > h2 {
  margin: 0 0 15px !important;
  font-size: 1.42rem !important;
}

body .fomo-hub__lead > a {
  display: block;
  color: var(--fomo-ink) !important;
}

/* Article redesign v0.1.0: header and typography only; saved body structure stays intact. */
body:has(.fomo-article-header) .l-article .fomo-article-header {
  display: block !important;
  margin: 0 0 26px !important;
  padding: 0 0 24px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fomo-line) !important;
  background: transparent !important;
}

body:has(.fomo-article-header) .fomo-article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin: 0 0 15px;
}

body:has(.fomo-article-header) .fomo-article-header__category,
body:has(.fomo-article-header) .fomo-article-header__new {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--fomo-radius-pill);
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1;
}

body:has(.fomo-article-header) .fomo-article-header__category {
  border: 1px solid var(--fomo-blue);
  background: var(--fomo-blue);
  color: #fff !important;
}

body:has(.fomo-article-header) .fomo-article-header__new {
  background: #dc3545;
  color: #fff;
  letter-spacing: 0.08em;
}

body:has(.fomo-article-header) .fomo-article-header__meta time {
  color: var(--fomo-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

body:has(.fomo-article-header) .fomo-article-header .c-postTitle__ttl {
  max-width: 23em;
  margin: 0 !important;
  font-size: clamp(2rem, 2.7vw, 2.4rem) !important;
  line-height: 1.42;
  letter-spacing: 0;
}

body:has(.fomo-article-header) .fomo-article-header__lead {
  display: block;
  overflow: hidden;
  margin: 15px 0 0 !important;
  color: #53647b;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.75;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.fomo-article-header) .fomo-article-header__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

body:has(.fomo-article-header) .fomo-article-header__author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

body:has(.fomo-article-header) .fomo-article-header__author-media,
body:has(.fomo-article-header) .fomo-article-header__author-avatar {
  display: block;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

body:has(.fomo-article-header) .fomo-article-header__author small,
body:has(.fomo-article-header) .fomo-article-header__author strong {
  display: block;
}

body:has(.fomo-article-header) .fomo-article-header__author small {
  color: var(--fomo-muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

body:has(.fomo-article-header) .fomo-article-header__author strong {
  margin-top: 2px;
  color: var(--fomo-ink);
  font-size: 0.8rem;
}

body:has(.fomo-article-header) .fomo-article-header__share {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:has(.fomo-article-header) .fomo-article-header__share > span {
  color: var(--fomo-muted);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body:has(.fomo-article-header) .fomo-article-header__share ul {
  display: flex;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body:has(.fomo-article-header) .fomo-article-header__share li {
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.fomo-article-header) .fomo-article-header__share a {
  display: inline-grid;
  min-width: 38px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #c5d3e6;
  border-radius: var(--fomo-radius-pill);
  background: #fff;
  color: var(--fomo-blue) !important;
  font-size: 0.67rem;
  font-weight: 900;
  place-items: center;
}

body:has(.fomo-article-header) .c-shareBtns.-fix {
  display: none !important;
}

body:has(.fomo-article-header) .l-article .post_content {
  counter-reset: fomo-article-h2;
  color: #20324d;
  font-size: 1.03rem;
  line-height: 1.9;
  letter-spacing: 0.012em;
}

body:has(.fomo-article-header) .l-article .post_content > :where(p, ul, ol),
body:has(.fomo-article-header) .l-article .post_content .wp-block-paragraph {
  margin-bottom: 1.55em;
}

body:has(.fomo-article-header) .post_content > .wp-block-group:first-child .wp-block-group__inner-container > figure.wp-block-image:first-of-type {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0 34px !important;
  border-radius: var(--fomo-radius-lg);
  background: var(--fomo-pale);
  box-shadow: var(--fomo-shadow-card);
}

body:has(.fomo-article-header) .post_content > .wp-block-group:first-child .wp-block-group__inner-container > figure.wp-block-image:first-of-type img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

body:has(.fomo-article-header) .l-article .post_content h2:not(.fomo-discovery__title):not(.fomo-discovery__subheading):not(.p-postList__title):not(.fomo-article-casting h2):not(.fomo-author-profile h2) {
  counter-increment: fomo-article-h2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3.35rem 0 1.35rem !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--fomo-blue) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fomo-ink) !important;
}

body:has(.fomo-article-header) .l-article .post_content h2:not(.fomo-discovery__title):not(.fomo-discovery__subheading):not(.p-postList__title):not(.fomo-article-casting h2):not(.fomo-author-profile h2)::before {
  position: static !important;
  display: inline-grid !important;
  width: 34px;
  height: 34px;
  inset: auto !important;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--fomo-blue);
  color: #fff;
  content: counter(fomo-article-h2, decimal-leading-zero) !important;
  font-size: 0.7rem;
  font-weight: 900;
  place-items: center;
  transform: none !important;
}

body:has(.fomo-article-header) .l-article .post_content h3:not(.fomo-discovery__card-title):not(.fomo-author-profile h3) {
  margin: 2.35rem 0 1.05rem !important;
  padding: 5px 0 5px 14px !important;
  border: 0 !important;
  border-left: 4px solid var(--fomo-blue) !important;
  background: transparent !important;
  color: var(--fomo-ink) !important;
  line-height: 1.5;
}

body:has(.fomo-article-header) .l-article .p-toc {
  margin: 2.25rem 0 3rem !important;
  padding: 25px !important;
  border: 1px solid #cdd9e9 !important;
  border-radius: var(--fomo-radius-lg) !important;
  background: #f7faff !important;
}

body:has(.fomo-article-header) .l-article .p-toc__ttl {
  display: block;
  margin-bottom: 18px;
  color: var(--fomo-ink);
  font-size: 0.95rem;
  font-weight: 900;
}

body:has(.fomo-article-header) .l-article .p-toc__list {
  counter-reset: fomo-toc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body:has(.fomo-article-header) .l-article .p-toc__list > li {
  counter-increment: fomo-toc;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.fomo-article-header) .l-article .p-toc__list > li::before {
  display: none !important;
  content: none !important;
}

body:has(.fomo-article-header) .l-article .p-toc__list > li > a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--fomo-ink) !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

body:has(.fomo-article-header) .l-article .p-toc__list > li > a::before {
  display: inline-grid;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e8f0ff;
  color: var(--fomo-blue);
  content: counter(fomo-toc, decimal-leading-zero);
  font-size: 0.62rem;
  font-weight: 900;
  place-items: center;
}

body:has(.fomo-article-header) .l-article .p-toc__childList {
  margin: 7px 0 0 35px !important;
  padding: 0 !important;
  list-style: none !important;
}

body:has(.fomo-article-header) .l-article .p-toc__childList li {
  margin: 4px 0 !important;
  font-size: 0.7rem;
}

body:has(.fomo-article-header) .post_content :where(blockquote, .wp-block-quote) {
  margin: 2rem 0;
  padding: 18px 22px;
  border: 0 !important;
  border-left: 4px solid var(--fomo-blue) !important;
  border-radius: 0 var(--fomo-radius-sm) var(--fomo-radius-sm) 0;
  background: var(--fomo-pale);
  color: #40536e;
}

body:has(.fomo-article-header) .post_content :where(ul, ol):not(.p-toc__list):not(.p-toc__childList):not(.fomo-discovery__topics) {
  padding-left: 1.45em;
}

body:has(.fomo-article-header) .post_content li::marker {
  color: var(--fomo-blue);
  font-weight: 900;
}

/* Article sidebar v0.1.0: verified profile -> finder -> popular -> related -> categories -> approved tags. */
body:has(.fomo-article-header) #sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body:has(.fomo-article-header) #sidebar > [data-fomo-render="sidebar-pilot-v0.2.9"] {
  order: 0;
}

body:has(.fomo-article-header) #sidebar > .fomo-article-person {
  order: 10;
}

body:has(.fomo-article-header) #sidebar > .fomo-creator-tools {
  order: 20;
  margin: 0;
}

body:has(.fomo-article-header) #sidebar > #fix_sidebar {
  position: static !important;
  order: 30;
  margin: 0;
  top: auto !important;
}

body:has(.fomo-article-header) #sidebar > .fomo-article-popular__more {
  order: 31;
  margin-top: -13px;
}

body:has(.fomo-article-header) #sidebar > #custom_html-2 {
  display: none !important;
}

body:has(.fomo-article-header) #sidebar > .fomo-article-related {
  order: 40;
}

body:has(.fomo-article-header) #sidebar > .fomo-article-categories {
  order: 50;
}

body:has(.fomo-article-header) #sidebar > .fomo-article-tags {
  order: 60;
}

body:has(.fomo-article-header) #sidebar :where(.fomo-article-person, .fomo-article-side) {
  overflow: hidden;
  margin: 0;
  padding: 19px;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-lg);
  background: #fff;
  box-shadow: var(--fomo-shadow-card);
}

body:has(.fomo-article-header) .fomo-article-side-eyebrow {
  margin: 0 0 5px !important;
  color: var(--fomo-blue);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

body:has(.fomo-article-header) #sidebar .fomo-article-side > h2,
body:has(.fomo-article-header) #sidebar .fomo-article-person h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fomo-ink) !important;
  font-size: 1rem !important;
  line-height: 1.4;
}

body:has(.fomo-article-header) .fomo-article-person__head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

body:has(.fomo-article-header) .fomo-article-person__head > span,
body:has(.fomo-article-header) .fomo-article-person__image {
  display: block;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border: 3px solid var(--fomo-pale);
  border-radius: 50%;
  object-fit: cover;
}

body:has(.fomo-article-header) .fomo-article-person__head h2 {
  margin-bottom: 4px !important;
}

body:has(.fomo-article-header) .fomo-article-person__head p,
body:has(.fomo-article-header) .fomo-article-person__bio {
  margin: 0 !important;
  color: var(--fomo-muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

body:has(.fomo-article-header) .fomo-article-person__bio {
  margin-top: 14px !important;
}

body:has(.fomo-article-header) .fomo-article-person__social,
body:has(.fomo-article-header) .fomo-article-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body:has(.fomo-article-header) .fomo-article-person__social li,
body:has(.fomo-article-header) .fomo-article-tags li {
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.fomo-article-header) .fomo-article-person__social a,
body:has(.fomo-article-header) .fomo-article-tags a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #bfd0e8;
  border-radius: var(--fomo-radius-pill);
  background: #fff;
  color: var(--fomo-blue) !important;
  font-size: 0.65rem;
  font-weight: 800;
}

body:has(.fomo-article-header) #sidebar #swell_popular_posts-2 {
  padding: 0 0 16px !important;
}

body:has(.fomo-article-header) #sidebar #swell_popular_posts-2 > .c-widget__title.-side {
  margin: 0 0 8px !important;
  padding: 13px 16px !important;
  border: 0 !important;
  background: var(--fomo-blue) !important;
  color: #fff !important;
  font-size: 0.94rem !important;
}

body:has(.fomo-article-header) #sidebar #swell_popular_posts-2 > .p-postList {
  padding: 0 12px !important;
}

body:has(.fomo-article-header) .fomo-article-popular__more {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 10px 14px 0;
  border: 1px solid var(--fomo-blue);
  border-radius: var(--fomo-radius-sm);
  background: #fff;
  color: var(--fomo-blue) !important;
  font-size: 0.72rem;
  font-weight: 900;
}

body:has(.fomo-article-header) .fomo-article-related ol,
body:has(.fomo-article-header) .fomo-article-categories ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body:has(.fomo-article-header) .fomo-article-related li {
  margin: 0 !important;
  padding: 8px 0 !important;
  border-top: 1px solid var(--fomo-line);
}

body:has(.fomo-article-header) .fomo-article-related li:first-child {
  border-top: 0;
}

body:has(.fomo-article-header) .fomo-article-related li > a {
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--fomo-ink) !important;
}

body:has(.fomo-article-header) .fomo-article-related__rank {
  display: inline-grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fomo-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  place-items: center;
}

body:has(.fomo-article-header) .fomo-article-related__media {
  display: block;
  overflow: hidden;
  width: 64px;
  aspect-ratio: 16 / 10;
  border-radius: var(--fomo-radius-xs);
  background: var(--fomo-pale);
}

body:has(.fomo-article-header) .fomo-article-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.fomo-article-header) .fomo-article-related__body {
  min-width: 0;
}

body:has(.fomo-article-header) .fomo-article-related__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fomo-ink);
  font-size: 0.69rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body:has(.fomo-article-header) .fomo-article-related__body small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--fomo-blue);
  font-size: 0.56rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body:has(.fomo-article-header) .fomo-article-categories li {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--fomo-line);
}

body:has(.fomo-article-header) .fomo-article-categories li:first-child {
  border-top: 0;
}

body:has(.fomo-article-header) .fomo-article-categories a {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fomo-ink) !important;
  font-size: 0.75rem;
  font-weight: 800;
}

body:has(.fomo-article-header) .fomo-article-categories a strong {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--fomo-radius-pill);
  background: var(--fomo-pale);
  color: var(--fomo-blue);
  font-size: 0.62rem;
  place-items: center;
}

@media (max-width: 959px) {
  body:has(.fomo-article-header) #sidebar > #fix_sidebar.pc_ {
    position: static !important;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  body:has(.fomo-article-header) .fomo-article-header .c-postTitle__ttl {
    font-size: 1.55rem !important;
    line-height: 1.48;
  }

  body:has(.fomo-article-header) .fomo-article-header__lead {
    font-size: 0.86rem;
  }

  body:has(.fomo-article-header) .fomo-article-header__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(.fomo-article-header) .fomo-article-header__share {
    width: 100%;
    justify-content: space-between;
  }

  body:has(.fomo-article-header) .fomo-article-header__share a {
    min-width: 42px;
  }

  body:has(.fomo-article-header) .l-article .post_content {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  body:has(.fomo-article-header) .post_content > .wp-block-group:first-child .wp-block-group__inner-container > figure.wp-block-image:first-of-type {
    aspect-ratio: 4 / 3;
    margin-top: 20px !important;
    border-radius: var(--fomo-radius-md);
  }

  body:has(.fomo-article-header) .l-article .p-toc {
    padding: 20px !important;
  }

  body:has(.fomo-article-header) .l-article .p-toc__list {
    grid-template-columns: 1fr;
  }

  body:has(.fomo-article-header) .l-article .post_content h2:not(.fomo-discovery__title):not(.fomo-discovery__subheading):not(.p-postList__title):not(.fomo-article-casting h2):not(.fomo-author-profile h2) {
    gap: 10px;
    font-size: 1.22rem !important;
  }
}

body .fomo-hub__lead-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: var(--fomo-radius-md);
  background: var(--fomo-pale);
}

body .fomo-hub__lead-image,
body .fomo-hub__card-image,
body .fomo-hub__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .fomo-hub__lead h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-hero-title) !important;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .fomo-hub time {
  color: var(--fomo-muted);
  font-size: 0.68rem;
}

body .fomo-hub__hero-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body .fomo-hub__hero-sub .fomo-hub__card > a {
  grid-template-columns: 130px minmax(0, 1fr);
}

body .fomo-hub__hero-sub .fomo-hub__card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

body .fomo-hub__hero-sub .fomo-hub__card-body {
  padding: 13px;
}

body .fomo-hub__hero-sub .fomo-hub__card h3 {
  -webkit-line-clamp: 3;
}

body .fomo-hub .fomo-top__trends {
  margin: 0 0 38px;
}

body .fomo-hub__section {
  margin-top: clamp(42px, 6vw, 70px);
}

body .fomo-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

body .fomo-section-heading h2 {
  margin: 0 !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h2) !important;
}

body .fomo-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

body .fomo-hub__card > a {
  display: grid;
  height: 100%;
  color: var(--fomo-ink) !important;
}

body .fomo-hub__card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  background: var(--fomo-pale);
}

body .fomo-hub__card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
}

body .fomo-hub__card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.5em;
  margin: 10px 0 13px !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-card-title) !important;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body .fomo-hub__card time {
  margin-top: auto;
}

body .fomo-hub__creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

body .fomo-hub__creator > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px;
  color: var(--fomo-ink) !important;
  text-align: center;
}

body .fomo-hub__avatar {
  display: grid;
  overflow: hidden;
  width: 88px;
  height: 88px;
  border: 4px solid var(--fomo-pale);
  border-radius: 50%;
  background: var(--fomo-pale);
  place-items: center;
}

body .fomo-hub__creator h3 {
  margin: 12px 0 4px !important;
  color: var(--fomo-ink) !important;
  font-size: 0.92rem !important;
}

body .fomo-hub__creator p {
  margin: 0 0 10px !important;
  color: var(--fomo-muted);
  font-size: 0.68rem;
}

body .fomo-hub__creator small {
  margin-top: auto;
  padding-top: 11px;
  color: var(--fomo-muted);
  font-size: 0.56rem;
  line-height: 1.5;
}

body .fomo-hub__count {
  color: var(--fomo-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

body .fomo-pagination {
  margin-top: 30px;
}

body .fomo-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body .fomo-pagination li {
  margin: 0 !important;
  padding: 0 !important;
}

body .fomo-pagination li::before {
  display: none !important;
}

body .fomo-pagination :where(a, span) {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-sm);
  background: #fff;
  color: var(--fomo-blue) !important;
  font-size: 0.75rem;
  font-weight: 900;
  place-items: center;
}

body .fomo-pagination [aria-current="page"] {
  border-color: var(--fomo-blue);
  background: var(--fomo-blue);
  color: #fff !important;
}

body .fomo-hub__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 28px;
  border-radius: var(--fomo-radius-lg);
  background: var(--fomo-pale);
}

body .fomo-hub__cta h2 {
  margin: 0 0 7px !important;
  color: var(--fomo-ink) !important;
  font-size: 1.35rem !important;
}

body .fomo-hub__cta p:last-child {
  margin: 0 !important;
  color: var(--fomo-muted);
  font-size: 0.78rem;
}

body .fomo-hub__cta > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

body .fomo-hub__sidebar {
  position: sticky;
  top: 20px;
  min-width: 0;
}

body .fomo-category-nav,
body .fomo-hub__side-note {
  padding: 22px;
}

body .fomo-category-nav h2,
body .fomo-hub__side-note h2 {
  margin: 0 0 16px !important;
  color: var(--fomo-ink) !important;
  font-size: 1.08rem !important;
}

body .fomo-category-nav ul {
  display: grid;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body .fomo-category-nav li {
  margin: 0 !important;
  padding: 0 !important;
}

body .fomo-category-nav li::before {
  display: none !important;
}

body .fomo-category-nav a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fomo-ink) !important;
  font-size: 0.82rem;
}

body .fomo-category-nav li + li a {
  border-top: 1px solid var(--fomo-line);
}

body .fomo-category-nav a strong {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

body .fomo-category-nav a > span {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fomo-blue-soft);
  color: var(--fomo-blue);
  place-items: center;
}

body .fomo-category-nav a i {
  color: var(--fomo-blue);
  font-style: normal;
  font-weight: 900;
}

body .fomo-hub__sidebar .fomo-creator-tools,
body .fomo-hub__side-note {
  margin-top: 18px;
}

body .fomo-hub__side-note p:last-child {
  margin: 0 !important;
  color: var(--fomo-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

body .fomo-hub__card:hover,
body .fomo-hub__creator:hover {
  transform: translateY(-2px);
  box-shadow: var(--fomo-shadow-hover);
}

@media (min-width: 1400px) {
  body .fomo-hub__grid:not(.fomo-hub__grid--three) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body .fomo-hub {
    padding-right: 20px;
    padding-left: 20px;
  }

  body .fomo-hub__layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }

  body .fomo-hub__hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.8fr);
  }

  body .fomo-hub__grid,
  body .fomo-hub__grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  body .fomo-hub__cta,
  body .fomo-hub__cta > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  body .fomo-hub__layout {
    grid-template-columns: 1fr;
  }

  body .fomo-hub__sidebar {
    position: static;
  }

  body .fomo-hub__sidebar .fomo-creator-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: none;
  }

  body .fomo-hub__sidebar .fomo-featured-creator {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  body .fomo-hub {
    padding: 24px 16px 56px;
  }

  body .fomo-hub__page-head {
    margin-bottom: 25px;
  }

  body .fomo-hub__page-head h1 {
    font-size: var(--fomo-type-h1) !important;
  }

  body .fomo-hub__hero,
  body .fomo-hub__grid,
  body .fomo-hub__grid--three,
  body .fomo-hub__creator-grid,
  body .fomo-hub__sidebar .fomo-creator-tools {
    grid-template-columns: 1fr;
  }

  body .fomo-hub__hero-sub .fomo-hub__card > a {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  body .fomo-hub__hero-sub .fomo-hub__card h3 {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  body .fomo-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body .fomo-hub__card > a {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  body .fomo-hub__card-media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  body .fomo-hub__card h3 {
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  body .fomo-hub__creator > a {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 14px;
    text-align: left;
  }

  body .fomo-hub__avatar {
    width: 80px;
    height: 80px;
    grid-row: 1 / 5;
  }

  body .fomo-hub__creator h3,
  body .fomo-hub__creator p,
  body .fomo-hub__creator small {
    text-align: left;
  }

  body .fomo-hub__creator h3 {
    margin-top: 0 !important;
  }

  body .fomo-hub__cta {
    padding: 22px;
  }
}

body {
  overflow-wrap: anywhere;
  background: var(--fomo-canvas) !important;
  color: var(--fomo-ink) !important;
  font-family: var(--fomo-font) !important;
}

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

body a {
  text-underline-offset: 0.18em;
}

body :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--fomo-focus) !important;
  outline-offset: 3px;
}

/* Shared header and existing logo image */
body .fomo-site-header {
  border-bottom: 1px solid var(--fomo-line) !important;
  background: var(--fomo-surface) !important;
  box-shadow: 0 5px 20px rgba(28, 55, 96, 0.045);
  color: var(--fomo-ink) !important;
  font-family: var(--fomo-font);
}

body .fomo-site-header__logo {
  width: 118px;
  min-width: 0;
}

body .fomo-site-header__logo-image {
  display: block;
  width: 118px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

body .fomo-site-header__nav a {
  color: #2f3f56 !important;
}

body .fomo-site-header__nav a:is(.is-active, :hover) {
  color: var(--fomo-blue) !important;
}

body .fomo-site-header__nav a.is-active::after {
  background: var(--fomo-blue) !important;
}

body .fomo-site-header__business-link {
  border-color: var(--fomo-line) !important;
  color: var(--fomo-ink) !important;
}

body .fomo-site-header__search {
  border-top: 1px solid var(--fomo-line);
  background: var(--fomo-pale);
}

/* Global canvas, breadcrumb, headings, and main shells */
body:not(:has(.fomo-top)) #content.l-content {
  gap: 52px;
  padding-top: 48px;
  padding-bottom: 72px;
}

body:not(:has(.fomo-top)) #main_content.l-mainContent > .l-mainContent__inner {
  overflow: hidden;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-lg);
  background: var(--fomo-surface);
  box-shadow: var(--fomo-shadow-card);
}

body #breadcrumb.p-breadcrumb {
  padding: 10px 0;
  border-top: 1px solid #edf2f8;
  border-bottom: 1px solid var(--fomo-line);
  background: var(--fomo-pale) !important;
  color: var(--fomo-muted);
}

body #breadcrumb .p-breadcrumb__list {
  font-size: 0.72rem;
}

body #breadcrumb a {
  color: var(--fomo-blue) !important;
}

body .c-pageTitle {
  margin-bottom: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h1) !important;
  line-height: 1.2;
}

body :where(.post_content, .p-blogParts) h2.is-style-section_ttl,
body :where(.post_content, .p-blogParts) h2.black_h2 {
  margin: 2.3rem 0 1.25rem !important;
  padding: 0 0 0.75rem !important;
  border: 0 !important;
  border-bottom: 2px solid var(--fomo-line) !important;
  background: none !important;
  color: var(--fomo-ink) !important;
  font-size: clamp(1.35rem, 3vw, 1.8rem) !important;
  line-height: 1.4;
}

body :where(.post_content, .p-blogParts) h2.is-style-section_ttl::after,
body :where(.post_content, .p-blogParts) h2.black_h2::after {
  display: block;
  width: 62px;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: var(--fomo-radius-pill);
  background: var(--fomo-blue);
  content: "";
}

body .sttls {
  margin-bottom: 0.4rem !important;
  color: var(--fomo-blue) !important;
  font-size: 0.7rem !important;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Article header, content typography, tables, TOC, and share rail */
body .l-article .p-articleHead {
  margin: 0 0 22px;
  padding: 0 0 24px !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

body .l-article .c-postTitle__ttl {
  margin: 0 !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h1) !important;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

body .l-article .influencer_name {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 16px;
  padding: 5px 11px;
  border: 1px solid #bfd0ef;
  border-radius: var(--fomo-radius-pill);
  background: var(--fomo-pale);
  color: var(--fomo-blue);
  font-size: 0.74rem;
  font-weight: 900;
}

body .l-article :where(.c-postTitle__date, .c-postTimes, .p-postList__times) {
  color: var(--fomo-muted) !important;
  font-size: 0.72rem !important;
  font-variant-numeric: tabular-nums;
}

body .l-article .p-articleMetas.-top {
  margin: -12px 0 28px;
  padding: 0 4px;
}

body .l-article .post_content {
  padding: 0 0 42px !important;
  color: var(--fomo-ink);
  font-size: var(--fomo-type-body);
  line-height: 1.95;
}

body .l-article .post_content > :where(p, ul, ol) {
  margin-bottom: 1.45em;
}

body:has(.p-articleHead) .l-article .post_content h2:not(.fomo-discovery__title):not(.fomo-discovery__subheading):not(.p-postList__title) {
  margin: 3.2rem 0 1.4rem !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-left: 4px solid var(--fomo-blue) !important;
  border-radius: 0 var(--fomo-radius-sm) var(--fomo-radius-sm) 0 !important;
  background: var(--fomo-pale) !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h2) !important;
  line-height: 1.45;
}

body:has(.p-articleHead) .l-article .post_content h2:not(.p-postList__title)::before,
body:has(.p-articleHead) .l-article .post_content h2:not(.p-postList__title)::after {
  display: none !important;
  content: none !important;
}

body:has(.p-articleHead) .l-article .post_content h3 {
  margin: 2.25rem 0 1rem !important;
  padding: 0 0 0.65rem !important;
  border: 0 !important;
  border-bottom: 2px solid var(--fomo-line) !important;
  background: none !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h3) !important;
}

body:has(.p-articleHead) .l-article .post_content :where(table, .wp-block-table table) {
  overflow: hidden;
  border: 1px solid var(--fomo-line) !important;
  border-radius: var(--fomo-radius-sm);
  background: var(--fomo-surface);
}

body:has(.p-articleHead) .l-article .post_content th {
  border-color: var(--fomo-line) !important;
  background: var(--fomo-pale) !important;
  color: var(--fomo-ink) !important;
}

body:has(.p-articleHead) .l-article .post_content td {
  border-color: var(--fomo-line) !important;
}

body:has(.p-articleHead) .l-article .p-toc {
  margin: 2rem 0 !important;
  padding: 24px !important;
  border: 1px solid var(--fomo-line) !important;
  border-radius: var(--fomo-radius-md) !important;
  background: var(--fomo-canvas) !important;
  box-shadow: none !important;
}

body .l-article .p-articleMetas.-bottom :where(.c-categoryList__link, .c-tagList__link) {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 3px;
  padding: 4px 10px;
  border: 1px solid #bfd0ef;
  border-radius: var(--fomo-radius-pill);
  background: var(--fomo-pale) !important;
  color: var(--fomo-blue) !important;
  font-size: 0.7rem;
  font-weight: 800;
}

body .c-shareBtns__btn {
  border-radius: var(--fomo-radius-xs) !important;
}

/* SWELL card grids and archive lists */
body .p-postList.-type-card {
  gap: 18px;
}

body .p-postList.-type-card .p-postList__item {
  min-width: 0;
  height: auto;
}

body .p-postList.-type-card .p-postList__link {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--fomo-line) !important;
  border-radius: var(--fomo-radius-md) !important;
  background: var(--fomo-surface) !important;
  box-shadow: 0 8px 24px rgba(28, 55, 96, 0.055);
  color: var(--fomo-ink) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body .p-postList.-type-card .p-postList__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--fomo-shadow-hover);
}

body .p-postList.-type-card .p-postList__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0 !important;
  background: var(--fomo-pale);
}

body .p-postList.-type-card .p-postList__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .p-postList.-type-card .p-postList__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 17px !important;
}

body .p-postList .p-postList__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-card-title) !important;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body .p-postList :where(.c-postThumb__cat, .p-postList__cat) {
  right: auto !important;
  bottom: 8px !important;
  left: 8px !important;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: var(--fomo-radius-pill) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--fomo-blue) !important;
  font-size: 0.64rem !important;
  font-weight: 900;
}

body .p-postList.-type-list .p-postList__item {
  margin-bottom: 10px !important;
}

body .p-postList.-type-list .p-postList__link {
  gap: 12px;
  padding: 10px !important;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-sm);
  background: var(--fomo-surface);
}

body .p-postList.-type-list .p-postList__thumb {
  overflow: hidden;
  border-radius: var(--fomo-radius-xs);
}

/* Sidebar: finder, featured creator, category widget, and recent-popular card */
body #sidebar .fomo-creator-finder,
body #sidebar .fomo-featured-creator,
body #sidebar #fix_sidebar .c-widget,
body #sidebar #custom_html-2 > .textwidget {
  overflow: hidden;
  padding: 22px !important;
  border: 1px solid var(--fomo-line) !important;
  border-radius: var(--fomo-radius-lg) !important;
  background: var(--fomo-surface) !important;
  box-shadow: var(--fomo-shadow-card) !important;
}

body #sidebar .fomo-featured-creator,
body #sidebar #fix_sidebar .c-widget {
  margin-top: 18px;
}

body #sidebar .c-widget__title.-side {
  margin: 0 0 17px !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--fomo-line) !important;
  background: none !important;
  color: var(--fomo-ink) !important;
  font-size: 1.05rem !important;
}

body #sidebar .c-widget__title.-side::before {
  display: none !important;
}

body .fomo-creator-fieldset :where(input[type="search"], select),
body :where(.fomo-site-header__search, .fomo-searchux-page, .fomo-quality-page) :where(input, select, textarea) {
  border: 1px solid #bdcce0 !important;
  border-radius: var(--fomo-radius-sm) !important;
  background: var(--fomo-surface) !important;
  color: var(--fomo-ink) !important;
}

body :where(.fomo-creator-submit, .fomo-site-header__search button, .fomo-searchux-page button, .fomo-quality-page button) {
  border-radius: var(--fomo-radius-sm) !important;
  background: var(--fomo-blue) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
  color: #fff !important;
}

body :where(.fomo-creator-submit, .fomo-site-header__search button, .fomo-searchux-page button, .fomo-quality-page button):hover {
  background: var(--fomo-blue-hover) !important;
}

body .fomo-quality-search button {
  min-width: 86px;
  white-space: nowrap;
}

body #custom_html-2 .p-blogParts.post_content {
  padding: 0 !important;
}

body #custom_html-2 .swell-block-columns.category .swell-block-columns__inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body #custom_html-2 .swell-block-columns.category .swell-block-column {
  overflow: hidden;
  width: 100% !important;
  min-width: 0;
  flex: none !important;
  margin: 0 !important;
  padding: 10px 8px 12px !important;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-md);
  background: var(--fomo-pale);
  text-align: center;
}

body #custom_html-2 .swell-block-columns.category figure {
  max-width: 74px;
  margin: 0 auto 8px !important;
}

body #custom_html-2 .swell-block-columns.category img {
  display: block;
  width: 100%;
  height: auto;
}

body #custom_html-2 .swell-block-columns.category p {
  margin: 0 !important;
}

body #custom_html-2 .swell-block-columns.category a {
  color: var(--fomo-blue) !important;
  font-size: 0.8rem !important;
  font-weight: 900;
  text-decoration: none !important;
}

body #custom_html-2 hr {
  margin: 22px 0 !important;
  border-color: var(--fomo-line) !important;
}

/* Shared pilots: TOP, search, taxonomy, discovery, quality, author */
body :where(.fomo-top__creator-card, .fomo-searchux-creator-card, .fomo-searchux-article-card, .fomo-discovery, .fomo-discovery__card-link, .fomo-quality-panel, .fomo-quality-card a, .fomo-article-casting, .fomo-author-profile) {
  border-color: var(--fomo-line) !important;
  border-radius: var(--fomo-radius-lg) !important;
  background-color: var(--fomo-surface);
  box-shadow: var(--fomo-shadow-card) !important;
}

body :where(.fomo-searchux-page, .fomo-quality-page) {
  background: var(--fomo-canvas) !important;
  color: var(--fomo-ink) !important;
}

body :where(.fomo-searchux-summary, .fomo-searchux-sort, .fomo-searchux-search-form, .fomo-searchux-navigation, .fomo-searchux-empty) {
  border-color: var(--fomo-line) !important;
  border-radius: var(--fomo-radius-lg) !important;
  box-shadow: var(--fomo-shadow-card) !important;
}

body :where(.fomo-searchux-eyebrow, .fomo-quality-eyebrow, .fomo-discovery__eyebrow, .fomo-article-casting__eyebrow, .fomo-author-profile__eyebrow, .fomo-creator-tools__eyebrow) {
  color: var(--fomo-blue) !important;
}

body :where(.fomo-searchux-breadcrumb, .fomo-quality-breadcrumb) {
  padding: 10px 13px;
  border-radius: var(--fomo-radius-sm);
  background: var(--fomo-pale);
}

body :where(.fomo-searchux-pagination a.page-numbers, .fomo-searchux-pagination span.page-numbers) {
  border-color: var(--fomo-line) !important;
  border-radius: var(--fomo-radius-sm) !important;
  background: var(--fomo-surface) !important;
  box-shadow: 0 5px 14px rgba(28, 55, 96, 0.06) !important;
}

body .fomo-searchux-pagination span.page-numbers.current {
  border-color: var(--fomo-blue) !important;
  background: var(--fomo-blue) !important;
  color: #fff !important;
}

body :where(.fomo-discovery__topic-block, .fomo-featured-creator__reason, .fomo-article-casting, .fomo-quality-casting) {
  background: var(--fomo-pale) !important;
}

body .fomo-author-profile {
  padding: 28px !important;
}

/* Shared type scale: final override for pilot-local declarations. */
body .fomo-searchux-hero h1,
body .fomo-quality-hero h1 {
  font-size: var(--fomo-type-h1) !important;
}

body .fomo-top__lead h1,
body .fomo-hub__lead h3 {
  font-size: var(--fomo-type-hero-title) !important;
}

body .fomo-top__section-heading h2,
body .fomo-searchux-group h2,
body .fomo-searchux-empty h2,
body .fomo-searchux-navigation h2,
body .fomo-quality-panel h2,
body .fomo-article-casting h2,
body .fomo-author-profile h2 {
  font-size: var(--fomo-type-h2) !important;
}

body .fomo-top__sub-card h3,
body .fomo-top__creator-card h3,
body .fomo-searchux-article-card__title,
body .fomo-quality-card a {
  font-size: var(--fomo-type-card-title) !important;
}

body .fomo-searchux-hero > p,
body .fomo-quality-hero p,
body .fomo-casting-form,
body .fomo-quality-search,
body .fomo-hub__page-head > p:last-child {
  font-size: var(--fomo-type-body);
}

/* Article pages use one simple heading layer, with breathing room below breadcrumb. */
body:has(.p-articleHead) #content.l-content {
  padding-top: clamp(28px, 3vw, 40px) !important;
}

body:has(.p-articleHead) #main_content.l-mainContent > .l-mainContent__inner {
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.p-articleHead) .l-article .p-articleMetas.-top {
  padding-right: 0;
  padding-left: 0;
}

/* Keep one card layer in the hub sidebar category navigation. */
body .fomo-category-nav a:hover {
  background: var(--fomo-pale);
}

/* Desktop sticky sidebar: natural inner scrolling and five compact popular rows. */
@media (min-width: 960px) {
  body #sidebar #fix_sidebar {
    position: sticky !important;
    top: 104px !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-color: #b7c7dd transparent;
    scrollbar-width: thin;
  }

  body #sidebar #fix_sidebar::-webkit-scrollbar {
    width: 6px;
  }

  body #sidebar #fix_sidebar::-webkit-scrollbar-thumb {
    border-radius: var(--fomo-radius-pill);
    background: #b7c7dd;
  }

  body #sidebar #fix_sidebar .c-widget {
    margin-top: 0;
    padding: 16px !important;
  }

  body #sidebar #fix_sidebar .c-widget__title.-side {
    margin-bottom: 10px !important;
    padding-bottom: 9px !important;
  }

  body #sidebar #fix_sidebar .p-postList.-type-list .p-postList__item {
    margin: 0 !important;
    padding: 5px 0 !important;
    border: 0 !important;
  }

  body #sidebar #fix_sidebar .p-postList.-type-list .p-postList__link {
    display: flex !important;
    min-height: 0;
    flex-flow: row nowrap !important;
    align-items: center;
    gap: 9px;
    padding: 6px !important;
    border: 0;
    background: transparent;
  }

  body #sidebar #fix_sidebar .p-postList.-type-list .p-postList__thumb {
    width: 68px !important;
    aspect-ratio: 16 / 10;
    flex: 0 0 68px !important;
  }

  body #sidebar #fix_sidebar .p-postList.-type-list .p-postList__body {
    width: auto !important;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 !important;
  }

  body #sidebar #fix_sidebar .p-postList.-type-list .p-postList__title {
    min-height: 0;
    font-size: 0.76rem !important;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  body #sidebar #fix_sidebar .p-postList.-type-list :where(.p-postList__times, .p-postList__cat) {
    font-size: 0.58rem !important;
  }
}

body .fomo-design-system__placeholder-logo {
  display: block;
  width: min(120px, 58%);
  height: auto;
  margin: auto;
  opacity: 0.42;
}

/* Footer: retain links and information architecture, restyle only. */
body .l-footer {
  border-top: 1px solid var(--fomo-line) !important;
  background: var(--fomo-surface) !important;
  color: var(--fomo-ink) !important;
}

body .l-footer__foot {
  padding: 24px 0 !important;
  background: var(--fomo-pale) !important;
  color: var(--fomo-muted) !important;
}

body .l-footer a {
  color: var(--fomo-ink) !important;
  font-weight: 700;
}

body .l-footer a:hover {
  color: var(--fomo-blue) !important;
}

body .l-footer .copyright {
  color: var(--fomo-muted) !important;
}

@media (max-width: 959px) {
  body:not(:has(.fomo-top)) #content.l-content {
    padding-top: 30px;
    padding-bottom: 52px;
  }

  body:not(:has(.fomo-top)) #main_content.l-mainContent > .l-mainContent__inner {
    border-radius: var(--fomo-radius-md);
  }
}

@media (max-width: 760px) {
  body .fomo-site-header__logo,
  body .fomo-site-header__logo-image {
    width: 94px;
  }

  body #breadcrumb.p-breadcrumb {
    padding: 8px 0;
  }

  body .l-article .p-articleHead {
    margin: 0 0 20px;
    padding: 0 0 20px !important;
    border-radius: 0;
  }

  body .l-article .c-postTitle__ttl {
    font-size: 1.5rem !important;
  }

  body .l-article .post_content {
    padding: 0 0 34px !important;
    font-size: 0.96rem;
    line-height: 1.9;
  }

  body:has(.p-articleHead) .l-article .post_content h2:not(.fomo-discovery__title):not(.fomo-discovery__subheading):not(.p-postList__title) {
    margin-top: 2.5rem !important;
    padding: 13px 14px !important;
    font-size: 1.25rem !important;
  }

  body .p-postList.-type-card {
    gap: 14px;
  }

  body .fomo-author-profile {
    padding: 21px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body *,
  body *::before,
  body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* One width contract across TOP, hubs, search, taxonomy and utility pages. */
body :where(.fomo-top__body, .fomo-searchux-shell, .fomo-quality-shell) {
  width: 100%;
  max-width: var(--fomo-container) !important;
}

body :where(.fomo-top__header-inner, .fomo-site-header__inner) {
  max-width: var(--fomo-container) !important;
}

body:not(:has(.fomo-top)):not(:has(.fomo-hub)) #content.l-content {
  width: min(calc(100% - 40px), var(--fomo-container)) !important;
  max-width: var(--fomo-container) !important;
}

/* Final component contract: overrides legacy pilot-local declarations. */
body :where(.fomo-creator-submit, .fomo-site-header__search button, .fomo-searchux-search-form button, .fomo-quality-search button, .fomo-casting-form button) {
  min-height: 48px !important;
  padding-right: 22px !important;
  padding-left: 22px !important;
  border: 1px solid var(--fomo-blue) !important;
  border-radius: var(--fomo-radius-md) !important;
  background: var(--fomo-blue) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

body .fomo-quality-secondary-link,
body .fomo-article-casting > a {
  min-height: 48px !important;
  padding: 0 22px !important;
  border: 1px solid var(--fomo-blue) !important;
  border-radius: var(--fomo-radius-md) !important;
  background: #fff !important;
  color: var(--fomo-blue) !important;
}

/* Replace SWELL's legacy fixed header with the unified header itself. */
body .l-fixHeader {
  display: none !important;
  visibility: hidden !important;
}

body .fomo-site-header,
body .fomo-top__header {
  position: sticky !important;
  z-index: 100 !important;
  top: 0;
  box-shadow: 0 8px 22px rgba(28, 55, 96, 0.055);
}

/* Keep the full unified header visible below WordPress's signed-in toolbar. */
body:has(#wpadminbar) .fomo-site-header,
body:has(#wpadminbar) .fomo-top__header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body:has(#wpadminbar) .fomo-site-header,
  body:has(#wpadminbar) .fomo-top__header {
    top: 46px !important;
  }
}

/* Article discovery uses a single, full-width section layer. */
body .post_content .fomo-discovery {
  width: 100%;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 !important;
  padding: 32px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--fomo-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .post_content .fomo-discovery__eyebrow {
  margin: 0 0 5px !important;
}

body .post_content .fomo-discovery__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h2) !important;
  line-height: 1.4;
}

body .post_content .fomo-discovery__title::before,
body .post_content .fomo-discovery__title::after {
  display: none !important;
  content: none !important;
}

body .post_content .fomo-discovery__intro {
  margin: 8px 0 20px !important;
}

body .post_content .fomo-discovery__cards {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body .post_content .fomo-discovery__card-title {
  -webkit-line-clamp: 2;
  min-height: calc(1.55em * 2);
}

/* A suppressed legacy term list must not leave its empty wrapper margin. */
body .trend_tag_box:not(:has(p, a, li, img, button)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Results-page condition editor: open on desktop, compact disclosure on mobile. */
body .fomo-searchux-refine {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-md);
  background: var(--fomo-surface);
  box-shadow: var(--fomo-shadow-card);
}

body .fomo-searchux-refine > summary {
  display: none;
  color: var(--fomo-blue);
  font-weight: 900;
  cursor: pointer;
}

body .fomo-searchux-refine__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(250px, 1.5fr) minmax(170px, 1fr) minmax(170px, 1fr);
  gap: 16px;
  align-items: end;
}

body .fomo-searchux-refine .fomo-creator-fieldset {
  margin: 0;
}

body .fomo-searchux-refine .fomo-creator-submit {
  width: auto;
  margin-top: 18px;
}

/* Ranking number and compact two-column cards share one alignment contract. */
@media (min-width: 960px) {
  body #sidebar #fix_sidebar .p-postList.-w-ranking .p-postList__item::before {
    top: 8px !important;
    left: 8px !important;
  }
}

@media (max-width: 720px) {
  body .post_content .fomo-discovery__cards {
    grid-template-columns: 1fr;
  }

  body .fomo-searchux-refine {
    padding: 18px;
  }

  body .fomo-searchux-refine > summary {
    display: list-item;
  }

  body .fomo-searchux-refine[open] > summary {
    margin-bottom: 18px;
  }

  body .fomo-searchux-refine__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body .fomo-searchux-refine .fomo-creator-submit {
    width: 100%;
  }
}

body .fomo-searchux-sort a {
  padding: 9px 5px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fomo-muted) !important;
}

body .fomo-searchux-sort a[aria-current="page"] {
  border-bottom-color: var(--fomo-blue) !important;
  background: transparent !important;
  color: var(--fomo-blue) !important;
}

body :where(.fomo-searchux-chip, .fomo-searchux-badges span, .fomo-searchux-category, .fomo-creator-platforms label) {
  border: 1px solid #b9cbe5 !important;
  border-radius: var(--fomo-radius-pill) !important;
  background: #fff !important;
  color: var(--fomo-blue) !important;
}

/* D18: one platform-toggle contract across finder, result refine and casting. */
body .fomo-creator-platforms {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

body .fomo-creator-platforms > span {
  display: inline-flex;
  min-width: 0;
}

body .fomo-creator-platforms input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

body .fomo-creator-platforms label {
  display: inline-flex !important;
  width: auto !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 !important;
  padding: 7px 12px;
  border-color: #b8c2d0 !important;
  background: #fff !important;
  color: #526178 !important;
  line-height: 1.2 !important;
  vertical-align: middle;
  white-space: nowrap;
  box-shadow: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body .fomo-creator-platforms label:hover {
  border-color: var(--fomo-blue) !important;
  color: var(--fomo-blue) !important;
}

body .fomo-creator-platforms input:checked + label,
body .fomo-creator-platforms label[aria-pressed="true"] {
  border-color: var(--fomo-blue) !important;
  background: var(--fomo-blue) !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(0, 91, 211, 0.22) !important;
}

body .fomo-creator-platforms input:focus-visible + label {
  outline: 3px solid #f4b400 !important;
  outline-offset: 3px !important;
}

body .fomo-platform-choice-note {
  margin: 7px 0 0 !important;
  color: var(--fomo-muted) !important;
  font-size: 0.68rem !important;
  line-height: 1.5 !important;
}

body .fomo-creator-fieldset select {
  color: var(--fomo-ink) !important;
  font-weight: 700;
}

body :where(.fomo-creator-fieldset, .fomo-searchux-page, .fomo-quality-page, .fomo-site-header__search) :where(input, select, textarea) {
  min-height: 44px !important;
  border: 1px solid #bdcce0 !important;
  border-radius: var(--fomo-radius-sm) !important;
  background: #fff !important;
  color: var(--fomo-ink) !important;
}

/* D19-D26: shared related cards are the only article-grid visual contract. */
body .fomo-related-grid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .fomo-related-card {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body .fomo-related-card__link {
  display: flex !important;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fomo-line);
  border-radius: var(--fomo-radius-md);
  background: var(--fomo-surface);
  color: var(--fomo-ink) !important;
  text-decoration: none !important;
}

body .fomo-related-card__media {
  display: block !important;
  overflow: hidden;
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--fomo-radius-md) - 1px) calc(var(--fomo-radius-md) - 1px) 0 0 !important;
  background: var(--fomo-pale);
}

body .fomo-related-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body .fomo-related-card__title {
  display: -webkit-box !important;
  overflow: hidden !important;
  min-height: calc(1.55em * 2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
}

/* D19: one public author component; no internal WordPress role is rendered. */
body .fomo-author-profile {
  display: none !important;
}

body .fomo-author-profile-unified,
body .l-articleBottom__section.-author {
  margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
}

body .fomo-author-profile-unified > .c-secTitle,
body .l-articleBottom__section.-author > .c-secTitle {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fomo-ink) !important;
  font-size: var(--fomo-type-h2) !important;
}

body .fomo-author-profile-unified .p-authorBox,
body .l-articleBottom__section.-author .p-authorBox,
body .fomo-author-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 30px) !important;
  border: 1px solid var(--fomo-line) !important;
  border-radius: var(--fomo-radius-lg) !important;
  background: var(--fomo-surface) !important;
  box-shadow: var(--fomo-shadow-card);
}

body .fomo-author-card__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

body .fomo-author-card__avatar,
body .fomo-author-profile-unified .p-authorBox__l > img,
body .l-articleBottom__section.-author .p-authorBox__l > img {
  width: 112px !important;
  height: 112px !important;
  border: 5px solid var(--fomo-pale);
  border-radius: 50% !important;
  object-fit: cover;
}

body .fomo-author-card h2,
body .fomo-author-card__position,
body .fomo-author-card__body > p {
  margin: 0 !important;
}

body .fomo-author-card h2 {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fomo-ink) !important;
  font-size: 1.15rem !important;
}

body .fomo-author-card__position {
  margin-top: 4px !important;
  color: var(--fomo-muted);
  font-size: 0.76rem;
}

body .fomo-author-card__body > p {
  color: var(--fomo-muted);
  font-size: 0.82rem;
  line-height: 1.85;
}

body .fomo-author-card__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body .fomo-author-card__social li {
  margin: 0 !important;
  padding: 0 !important;
}

body .fomo-author-card__social a,
body .fomo-author-card__more {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #b9cbe5;
  border-radius: var(--fomo-radius-pill);
  color: var(--fomo-blue) !important;
  font-size: 0.7rem;
  font-weight: 900;
}

/* D29: sidebar children keep their intrinsic height; the container owns scrolling. */
body #sidebar > *,
body .fomo-hub__sidebar > *,
body .fomo-searchux-sidebar > * {
  flex-shrink: 0;
}

/* D21: the whole sidebar follows the viewport and scrolls internally. */
@media (min-width: 960px) {
  body #sidebar,
  body .fomo-hub__sidebar,
  body .fomo-searchux-sidebar {
    position: sticky !important;
    top: 104px !important;
    align-self: start !important;
    height: max-content !important;
    max-height: calc(100vh - 120px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-color: #b7c7dd transparent;
    scrollbar-width: thin;
  }

  body:has(#wpadminbar) #sidebar,
  body:has(#wpadminbar) .fomo-hub__sidebar,
  body:has(#wpadminbar) .fomo-searchux-sidebar {
    top: 136px !important;
    max-height: calc(100vh - 152px) !important;
  }

  body #sidebar > #fix_sidebar,
  body #sidebar #fix_sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* D22: unambiguous one-column TOC and parent-aware child numbering. */
body:has(.fomo-article-header) .l-article .p-toc__list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
}

body:has(.fomo-article-header) .l-article .p-toc__list > li > a::before {
  content: attr(data-fomo-toc-number) !important;
}

body:has(.fomo-article-header) .l-article .p-toc__childList {
  display: grid;
  gap: 6px;
  margin: 8px 0 0 35px !important;
}

body:has(.fomo-article-header) .l-article .p-toc__childList > li::before {
  display: none !important;
  content: none !important;
}

body:has(.fomo-article-header) .l-article .p-toc__childList a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

body:has(.fomo-article-header) .l-article .p-toc__childList a::before {
  display: inline-block !important;
  color: var(--fomo-blue) !important;
  content: attr(data-fomo-toc-number) !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
}

/* D23-D24: one rounded blue-band and in-card action contract. */
body:has(.fomo-article-header) #sidebar #swell_popular_posts-2 {
  overflow: hidden;
  border-radius: var(--fomo-radius-lg) !important;
}

body:has(.fomo-article-header) #sidebar #swell_popular_posts-2 > .c-widget__title.-side,
body .fomo-blue-band,
body .fomo-section-band {
  border-radius: calc(var(--fomo-radius-lg) - 1px) calc(var(--fomo-radius-lg) - 1px) var(--fomo-radius-xs) var(--fomo-radius-xs) !important;
}

body:has(.fomo-article-header) #sidebar #swell_popular_posts-2 > .fomo-article-popular__more {
  margin: 12px 14px 0 !important;
}

/* D25: every optional pilot module fails closed as a whole. */
body :where(.fomo-discovery, .fomo-related-module, .fomo-article-casting, .fomo-author-profile, .trend_tag_box):not(:has(a, li, article, img, button, input, select, textarea, [data-fomo-content-id])) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* D26: one archive/search layout, three full-width cards and standard sidebar. */
body .fomo-searchux-shell {
  max-width: 1240px;
}

body .fomo-searchux-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 310px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

body .fomo-searchux-main {
  min-width: 0;
}

body .fomo-searchux-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

/* D27: rebuild the result-page condition editor as a bounded grid. */
body .fomo-searchux-refine,
body .fomo-searchux-refine > form,
body .fomo-searchux-refine__grid,
body .fomo-searchux-refine .fomo-creator-fieldset {
  min-width: 0;
  max-width: 100%;
}

body .fomo-searchux-refine {
  overflow: hidden;
}

body .fomo-searchux-refine__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px 20px;
  align-items: start;
}

body .fomo-searchux-refine .fomo-creator-fieldset {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

body .fomo-searchux-refine .fomo-creator-fieldset > label,
body .fomo-searchux-refine .fomo-creator-fieldset > legend {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  color: var(--fomo-ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.5;
}

body .fomo-searchux-refine .fomo-creator-fieldset :where(input[type="search"], select) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

body .fomo-searchux-refine__actions {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--fomo-line);
}

body .fomo-searchux-refine__actions .fomo-creator-count,
body .fomo-searchux-refine__actions .fomo-creator-submit {
  margin: 0 !important;
}

body .fomo-searchux-summary,
body .fomo-searchux-sort,
body .fomo-searchux-sort > div,
body .fomo-searchux-creator-grid,
body .fomo-searchux-pagination {
  min-width: 0;
  max-width: 100%;
}

body .fomo-searchux-summary,
body .fomo-searchux-sort {
  flex-wrap: wrap;
}

body .fomo-archive-tabs {
  display: flex;
  gap: 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--fomo-line);
}

body .fomo-archive-tabs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 4px;
  border-bottom: 3px solid transparent;
  color: var(--fomo-muted) !important;
  font-size: 0.82rem;
  font-weight: 900;
}

body .fomo-archive-tabs a[aria-current="page"] {
  border-bottom-color: var(--fomo-blue);
  color: var(--fomo-blue) !important;
}

body .fomo-searchux-article-grid--archive .fomo-searchux-article-card > a {
  display: flex !important;
  grid-template-columns: none !important;
}

body .fomo-searchux-article-grid--archive .fomo-searchux-article-card__body {
  min-height: 160px;
  flex: 1;
  padding: 15px;
}

body .fomo-searchux-article-grid--archive .fomo-searchux-article-card__title {
  margin-top: 9px;
}

@media (max-width: 959px) {
  body .fomo-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body .fomo-searchux-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body #sidebar,
  body .fomo-hub__sidebar,
  body .fomo-searchux-sidebar {
    position: static !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 720px) {
  body .fomo-related-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .fomo-author-profile-unified .p-authorBox,
  body .l-articleBottom__section.-author .p-authorBox,
  body .fomo-author-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body .fomo-searchux-refine__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body .fomo-searchux-refine__actions .fomo-creator-submit {
    width: 100%;
  }
}

/* F: shared featured image immediately above the main article TOC. */
body:has(.fomo-article-header) .l-article .post_content > .fomo-article-toc-featured {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 0 2.25rem !important;
  border-radius: var(--fomo-radius-lg);
  background: var(--fomo-pale);
  box-shadow: var(--fomo-shadow-card);
}

body:has(.fomo-article-header) .fomo-article-toc-featured__image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* D30: icon lists never inherit article list markers or marker pseudo-elements. */
body :where(.p-authorBox__iconList, .fomo-author-card__social, .fomo-article-header__share ul, .c-shareBtns__list),
body :where(.p-authorBox__iconList, .fomo-author-card__social, .fomo-article-header__share ul, .c-shareBtns__list) > li {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

body :where(.p-authorBox__iconList, .fomo-author-card__social, .fomo-article-header__share ul, .c-shareBtns__list) > li::before,
body :where(.p-authorBox__iconList, .fomo-author-card__social, .fomo-article-header__share ul, .c-shareBtns__list) > li::marker {
  display: none !important;
  color: transparent !important;
  content: none !important;
}

/* D31: fixed square dimensions keep article and TOC number badges circular. */
body:has(.fomo-article-header) .l-article .post_content h2:not(.fomo-discovery__title):not(.fomo-discovery__subheading):not(.p-postList__title):not(.fomo-article-casting h2):not(.fomo-author-profile h2)::before {
  display: inline-flex !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  flex: 0 0 34px !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

body:has(.fomo-article-header) .l-article .p-toc__list > li > a::before {
  display: inline-flex !important;
  width: 27px !important;
  min-width: 27px !important;
  max-width: 27px !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

body:has(.fomo-article-header) .l-article .p-toc__childList a {
  grid-template-columns: 34px minmax(0, 1fr);
}

body:has(.fomo-article-header) .l-article .p-toc__childList a::before {
  display: inline-flex !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #e8f0ff !important;
  line-height: 1 !important;
}
