/*
Theme Name: Mehndi Guide
Description: Pinterest-first tattoo editorial system for Mehndi Guide.
Author: sam-agent
Template: lumina
Version: 1.1.0
Text Domain: mehndiguide-empire
*/

:root {
  --tsg-ink: oklch(14% 0.018 20);
  --tsg-ink-2: oklch(25% 0.018 24);
  --tsg-muted: oklch(40% 0.012 245);
  --tsg-bg: oklch(97.5% 0.008 50);
  --tsg-surface: oklch(100% 0 0);
  --tsg-panel: oklch(95.5% 0.012 250);
  --tsg-panel-2: oklch(91% 0.018 252);
  --tsg-line: oklch(83% 0.012 248);
  --tsg-red: oklch(56% 0.14 40);
  --tsg-red-dark: oklch(42% 0.13 40);
  --tsg-blue: oklch(45% 0.11 245);
  --tsg-gold: oklch(68% 0.13 78);
  --tsg-dark: oklch(13% 0.014 250);
  --tsg-dark-2: oklch(18% 0.018 250);
  --tsg-light: oklch(98% 0 0);
  --tsg-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --tsg-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wp--preset--color--bg: var(--tsg-bg);
  --wp--preset--color--bg-pure: var(--tsg-surface);
  --wp--preset--color--text: var(--tsg-ink);
  --wp--preset--color--text-light: var(--tsg-muted);
  --wp--preset--color--text-meta: oklch(47% 0.012 250);
  --wp--preset--color--accent: var(--tsg-red);
  --wp--preset--color--accent-dark: var(--tsg-red-dark);
  --wp--preset--color--gray: var(--tsg-panel);
  --wp--preset--color--border: var(--tsg-line);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tsg-bg) !important;
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-body) !important;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.entry-title {
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-display) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}

h1, .wp-block-post-title {
  font-size: clamp(3rem, 7vw, 5.8rem) !important;
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 4rem) !important;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
}

p, li {
  color: var(--tsg-ink-2);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--tsg-red);
  text-decoration-color: color-mix(in oklch, var(--tsg-red), transparent 45%);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tsg-red-dark);
}

img {
  background: var(--tsg-panel-2);
}

::selection {
  background: var(--tsg-red);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--tsg-gold);
  outline-offset: 3px;
}

.site-header,
#masthead {
  background: color-mix(in oklch, var(--tsg-dark), transparent 8%) !important;
  border-bottom: 1px solid color-mix(in oklch, white, transparent 86%) !important;
  box-shadow: none !important;
}

body.home .site-header:not(.scrolled),
body.home #masthead:not(.scrolled) {
  background: linear-gradient(180deg, oklch(10% 0.02 250 / 0.82), transparent) !important;
  border-bottom-color: transparent !important;
}

.site-header .wp-block-navigation a,
.site-header .wp-block-navigation-item__label,
.site-header .wp-block-navigation-item__content {
  color: var(--tsg-light) !important;
  font-family: var(--tsg-body) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation a:hover .wp-block-navigation-item__label {
  color: white !important;
  opacity: 1 !important;
}

body:not(.home) .site-header:not(.scrolled) {
  background: color-mix(in oklch, var(--tsg-dark), transparent 4%) !important;
}

.site-header .custom-logo-link,
#masthead .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 54px;
  padding: 6px 10px !important;
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 6px;
  background: oklch(7% 0.012 250 / 0.86);
}

.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .wp-block-site-logo img,
#masthead .custom-logo,
#masthead .custom-logo-link img,
#masthead .wp-block-site-logo img {
  height: 54px !important;
  width: auto !important;
  filter: brightness(0) invert(1) contrast(1.18) drop-shadow(0 1px 7px oklch(0% 0 0 / 0.55)) !important;
  opacity: 1 !important;
}

.site-header .wp-block-navigation,
#masthead .wp-block-navigation {
  color: white !important;
}

.site-header .wp-block-navigation a,
.site-header .wp-block-navigation-item__label,
.site-header .wp-block-navigation-item__content,
#masthead .wp-block-navigation a,
#masthead .wp-block-navigation-item__label,
#masthead .wp-block-navigation-item__content {
  color: white !important;
  opacity: 1 !important;
  text-shadow: 0 1px 9px oklch(0% 0 0 / 0.65);
}

.site-header .wp-block-navigation__submenu-icon,
#masthead .wp-block-navigation__submenu-icon,
.site-header .wp-block-navigation__responsive-container-open,
#masthead .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close,
#masthead .wp-block-navigation__responsive-container-close {
  color: white !important;
}

.site-header .wp-block-navigation__submenu-icon svg,
#masthead .wp-block-navigation__submenu-icon svg,
.site-header .wp-block-navigation__responsive-container-open svg,
#masthead .wp-block-navigation__responsive-container-open svg,
.site-header .wp-block-navigation__responsive-container-close svg,
#masthead .wp-block-navigation__responsive-container-close svg {
  fill: currentColor !important;
}

.site-header .wp-block-navigation__submenu-container,
#masthead .wp-block-navigation__submenu-container {
  border: 1px solid oklch(100% 0 0 / 0.14) !important;
  border-radius: 6px !important;
  background: oklch(10% 0.018 250 / 0.98) !important;
  box-shadow: 0 14px 28px oklch(0% 0 0 / 0.24) !important;
}

.site-header .wp-block-navigation__submenu-container a,
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__label,
#masthead .wp-block-navigation__submenu-container a,
#masthead .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
  color: white !important;
  text-shadow: none;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open,
#masthead .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--tsg-dark) !important;
  color: white !important;
}

/* Home hero */
body.home main > .wp-block-cover.alignfull:first-child {
  min-height: clamp(560px, 74vh, 760px) !important;
  padding: clamp(150px, 16vh, 210px) 24px clamp(70px, 10vh, 120px) !important;
  background: var(--tsg-dark);
}

body.home main > .wp-block-cover.alignfull:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, oklch(8% 0.02 250 / 0.86) 0%, oklch(8% 0.02 250 / 0.52) 44%, transparent 100%),
    linear-gradient(0deg, oklch(8% 0.02 250 / 0.68), transparent 45%);
}

body.home main > .wp-block-cover.alignfull:first-child .wp-block-cover__background {
  opacity: 0.22 !important;
}

body.home main > .wp-block-cover.alignfull:first-child .wp-block-cover__image-background {
  filter: saturate(0.85) contrast(1.08);
  transform: none !important;
}

body.home main > .wp-block-cover.alignfull:first-child .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

body.home main > .wp-block-cover.alignfull:first-child h1,
body.home main > .wp-block-cover.alignfull:first-child h2,
body.home main > .wp-block-cover.alignfull:first-child p {
  max-width: 720px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  color: white !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px oklch(0% 0 0 / 0.55);
}

body.home main > .wp-block-cover.alignfull:first-child h1 {
  color: oklch(100% 0 0) !important;
  font-size: clamp(4.4rem, 10vw, 8.6rem) !important;
  line-height: 0.86 !important;
  margin-bottom: 16px !important;
  text-shadow: 0 2px 24px oklch(0% 0 0 / 0.65);
}

body.home main > .wp-block-cover.alignfull:first-child h2 {
  color: oklch(86% 0.018 250) !important;
  font-family: var(--tsg-body) !important;
  font-size: clamp(1.1rem, 2vw, 1.55rem) !important;
  font-style: normal !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
}

body.home main > .wp-block-cover.alignfull:first-child p {
  color: oklch(92% 0.01 250) !important;
  font-size: clamp(1rem, 1.25vw, 1.14rem) !important;
  line-height: 1.65 !important;
  opacity: 1 !important;
}

body.home main > .wp-block-cover.alignfull:first-child .wp-block-buttons {
  justify-content: flex-start !important;
}

body.home main > .wp-block-cover.alignfull:first-child .wp-block-button__link {
  background: var(--tsg-red) !important;
  color: white !important;
}

.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
.app-card summary {
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--tsg-red) !important;
  color: white !important;
  font-family: var(--tsg-body) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  min-height: 46px;
  padding: 16px 26px !important;
  text-transform: uppercase !important;
  transition: background 180ms ease-out, transform 180ms ease-out;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover,
.app-card summary:hover {
  background: var(--tsg-red-dark) !important;
  color: white !important;
  transform: translateY(-1px);
}

.section-padding {
  padding-top: clamp(64px, 9vw, 112px) !important;
  padding-bottom: clamp(64px, 9vw, 112px) !important;
}

.has-bg-pure-background-color,
.has-white-background-color {
  background: var(--tsg-surface) !important;
}

.has-gray-background-color,
.has-bg-background-color {
  background: var(--tsg-panel) !important;
}

.section-padding h2 {
  margin-bottom: 16px !important;
}

.section-padding > p,
.section-padding .has-text-light-color {
  color: var(--tsg-muted) !important;
}

/* Pinterest-first cards */
.lumina-magazine-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: clamp(18px, 2.6vw, 34px) !important;
}

.lumina-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  background: var(--tsg-surface) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 8px oklch(0% 0 0 / 0.10) !important;
}

.lumina-card .wp-block-post-featured-image,
.lumina-card .wp-block-post-featured-image.alignwide {
  aspect-ratio: 4 / 5 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, var(--tsg-panel-2), var(--tsg-surface));
}

.lumina-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.04) contrast(1.03);
}

.lumina-card .wp-block-post-featured-image:empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, oklch(95% 0.01 250), oklch(82% 0.02 250)),
    radial-gradient(circle at 30% 20%, oklch(52% 0.18 25 / 0.22), transparent 34%);
}

.lumina-card > .wp-block-group,
.lumina-card .wp-block-group[style*="padding-top"] {
  padding: 16px 16px 18px !important;
}

.lumina-card .wp-block-post-terms,
.lumina-card .wp-block-post-date {
  margin: 0 0 8px !important;
}

.lumina-card .wp-block-post-terms a,
.lumina-card .wp-block-post-date,
.lumina-card .lumina-card-date {
  color: var(--tsg-red-dark) !important;
  font-family: var(--tsg-body) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.lumina-card h3,
.lumina-card .wp-block-post-title,
.lumina-card .wp-block-post-title a {
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-body) !important;
  font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  text-decoration: none !important;
}

.lumina-card:hover .wp-block-post-title a {
  color: var(--tsg-red-dark) !important;
}

/* Tool cards */
.app-card {
  background: var(--tsg-surface) !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.10) !important;
}

.app-card h3 {
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-body) !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  font-style: normal !important;
  font-weight: 850 !important;
  line-height: 1.16 !important;
}

.app-card p {
  color: var(--tsg-ink-2) !important;
}

.app-card .has-text-meta-color {
  color: var(--tsg-blue) !important;
  font-weight: 850;
}

.app-card .wp-block-details summary {
  display: inline-flex;
  align-items: center;
  width: auto;
  cursor: pointer;
  list-style: none;
}

.app-card .wp-block-details[open] {
  margin-top: 20px;
}

/* Category image cards */
.tsg-cocoon {
  background:
    linear-gradient(135deg, oklch(96% 0.01 250), oklch(100% 0 0) 48%, oklch(94% 0.018 78)) !important;
}

.tsg-cocoon > h2,
.tsg-cocoon > p {
  width: min(780px, 100%);
}

.tsg-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.tsg-hub-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid color-mix(in oklch, var(--tsg-line), transparent 20%);
  border-radius: 8px;
  background: oklch(100% 0 0 / 0.92);
  color: var(--tsg-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.08);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}

.tsg-hub-card:hover {
  border-color: color-mix(in oklch, var(--tsg-red), transparent 28%);
  box-shadow: 0 10px 18px oklch(0% 0 0 / 0.12);
  color: var(--tsg-ink) !important;
  transform: translateY(-2px);
}

.tsg-hub-card--dark,
.tsg-hub-card--accent {
  border-color: color-mix(in oklch, white, transparent 86%);
  background: linear-gradient(135deg, var(--tsg-dark), oklch(19% 0.04 25));
}

.tsg-hub-card--accent {
  background: linear-gradient(135deg, var(--tsg-red-dark), oklch(20% 0.04 25));
}

.tsg-hub-card__kicker,
.tsg-hub-card__links {
  display: block;
  font-family: var(--tsg-body);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tsg-hub-card__kicker {
  color: var(--tsg-red-dark);
}

.tsg-hub-card h3 {
  margin: 0 !important;
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-body) !important;
  font-size: clamp(1.14rem, 1.7vw, 1.42rem) !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

.tsg-hub-card p {
  margin: 0 !important;
  color: var(--tsg-ink-2) !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
}

.tsg-hub-card__links {
  color: var(--tsg-blue);
}

.tsg-hub-card--dark h3,
.tsg-hub-card--dark p,
.tsg-hub-card--accent h3,
.tsg-hub-card--accent p {
  color: white !important;
}

.tsg-hub-card--dark .tsg-hub-card__kicker,
.tsg-hub-card--dark .tsg-hub-card__links,
.tsg-hub-card--accent .tsg-hub-card__kicker,
.tsg-hub-card--accent .tsg-hub-card__links {
  color: var(--tsg-gold) !important;
}

.tsg-fast-paths,
.tsg-archive-hub-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tsg-fast-paths {
  margin-top: clamp(18px, 2.5vw, 30px);
}

.tsg-fast-paths a,
.tsg-archive-hub-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid color-mix(in oklch, var(--tsg-line), transparent 10%);
  border-radius: 999px;
  background: var(--tsg-surface);
  color: var(--tsg-ink) !important;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.15;
  text-decoration: none !important;
}

.tsg-fast-paths a:hover,
.tsg-archive-hub-strip a:hover {
  border-color: color-mix(in oklch, var(--tsg-red), transparent 35%);
  color: var(--tsg-red-dark) !important;
}

.tsg-archive-links {
  background: var(--tsg-surface) !important;
  border-bottom: 1px solid var(--tsg-line);
}

.tsg-archive-hub-strip {
  justify-content: center;
}

.tsg-cluster-page {
  --tsg-cluster-max: 1120px;
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc((100% - 100vw) / 2) !important;
  margin-right: calc((100% - 100vw) / 2) !important;
  overflow-x: clip;
}

.tsg-cluster-page .tsg-cluster-hero,
.tsg-cluster-page .tsg-cluster-intro,
.tsg-cluster-page .tsg-cluster-note,
.tsg-cluster-page .tsg-cluster-block {
  width: min(var(--tsg-cluster-max), calc(100vw - 40px));
  margin-inline: auto;
}

.tsg-cluster-page .tsg-cluster-hero {
  padding: clamp(54px, 7vw, 96px) 0 clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--tsg-line);
}

.tsg-cluster-page .tsg-cluster-kicker {
  margin: 0 0 12px;
  color: var(--tsg-red-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tsg-cluster-page .tsg-cluster-hero h1 {
  max-width: 860px;
  margin: 0 !important;
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-display) !important;
  font-size: clamp(3.6rem, 8vw, 7.2rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 0.9 !important;
  text-transform: uppercase;
}

.tsg-cluster-page .tsg-cluster-display-title {
  max-width: 860px;
  margin: 0 !important;
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-display) !important;
  font-size: clamp(3.6rem, 8vw, 7.2rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 0.9 !important;
  text-transform: uppercase;
}

.tsg-cluster-page .tsg-cluster-hero p {
  max-width: 760px;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  color: var(--tsg-ink-2) !important;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem) !important;
  line-height: 1.7 !important;
}

.tsg-cluster-page .tsg-cluster-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(34px, 5vw, 66px) 0;
}

.tsg-cluster-page .tsg-cluster-intro p,
.tsg-cluster-page .tsg-cluster-note p {
  color: var(--tsg-ink-2) !important;
  font-size: 1.02rem !important;
  line-height: 1.72 !important;
}

.tsg-cluster-page .tsg-cluster-intro h2,
.tsg-cluster-page .tsg-cluster-note h2 {
  margin-top: 0 !important;
  color: var(--tsg-ink) !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
  line-height: 1 !important;
}

.tsg-cluster-page .tsg-cluster-aside {
  align-self: start;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 8px;
  background: var(--tsg-surface);
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.07);
}

.tsg-cluster-page .tsg-cluster-aside h3 {
  margin-top: 0 !important;
  font-size: 1.08rem !important;
  line-height: 1.25 !important;
}

.tsg-cluster-page .tsg-cluster-aside ul {
  margin: 0;
  padding-left: 1.1em;
}

.tsg-cluster-page .tsg-cluster-aside li {
  margin-bottom: 0.65em;
  color: var(--tsg-ink-2);
  line-height: 1.55;
}

.tsg-cluster-block {
  padding: clamp(26px, 4.5vw, 58px) 0;
  border-top: 1px solid var(--tsg-line);
}

.tsg-cluster-block__header {
  max-width: 760px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.tsg-cluster-block__header h2 {
  margin: 0 !important;
  color: var(--tsg-ink) !important;
  font-size: clamp(1.95rem, 3.5vw, 3rem) !important;
  line-height: 0.98 !important;
}

.tsg-cluster-block__header p {
  margin: 12px 0 0 !important;
  color: var(--tsg-ink-2) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.tsg-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.tsg-cluster-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--tsg-line), transparent 15%);
  border-radius: 8px;
  background: oklch(100% 0 0);
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.06);
}

.tsg-cluster-card__image {
  display: block;
  overflow: hidden;
  background: var(--tsg-panel);
  aspect-ratio: 4 / 3;
}

.tsg-cluster-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.tsg-cluster-card:hover .tsg-cluster-card__image img {
  transform: scale(1.035);
}

.tsg-cluster-card__body {
  padding: clamp(14px, 2vw, 20px);
}

.tsg-cluster-card h3 {
  margin: 0 0 8px !important;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem) !important;
  line-height: 1.18 !important;
}

.tsg-cluster-card h3 a {
  color: var(--tsg-ink) !important;
  text-decoration: none;
}

.tsg-cluster-card p {
  margin: 0 !important;
  color: var(--tsg-ink-2) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.tsg-cluster-page .tsg-cluster-note {
  margin-bottom: clamp(42px, 6vw, 80px);
  padding: clamp(22px, 3vw, 34px);
  border-left: 4px solid var(--tsg-red);
  border-radius: 8px;
  background: var(--tsg-surface);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: min(1100px, calc(100vw - 40px)) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

.cat-card {
  position: relative;
  display: block;
  min-height: clamp(320px, 34vw, 470px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--tsg-dark);
  background-size: cover;
  background-position: center;
  color: white !important;
  text-decoration: none !important;
  box-shadow: 0 6px 8px oklch(0% 0 0 / 0.12);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.01);
}

.cat-card:nth-child(1)::before {
  background-image: url("../lumina/assets/images/cat-body-part.webp");
}

.cat-card:nth-child(1) {
  background-image: url("../lumina/assets/images/cat-body-part.webp");
}

.cat-card:nth-child(2)::before {
  background-image: url("../lumina/assets/images/cat-women.webp");
}

.cat-card:nth-child(2) {
  background-image: url("../lumina/assets/images/cat-women.webp");
}

.cat-card:nth-child(3)::before {
  background-image: url("../lumina/assets/images/cat-men.webp");
}

.cat-card:nth-child(3) {
  background-image: url("../lumina/assets/images/cat-men.webp");
}

.cat-card:nth-child(4)::before {
  background-image: url("../lumina/assets/images/cat-minimalist.webp");
}

.cat-card:nth-child(4) {
  background-image: url("../lumina/assets/images/cat-minimalist.webp");
  background-position: center 38%;
}

.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.95 !important;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.01);
}

.cat-card__overlay {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding: 84px 22px 22px !important;
  background: linear-gradient(0deg, oklch(8% 0.02 250 / 0.88), transparent) !important;
}

.cat-card__sub {
  color: var(--tsg-gold) !important;
  font-family: var(--tsg-body);
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.cat-card__title {
  color: white !important;
  font-family: var(--tsg-display) !important;
  font-size: clamp(2.1rem, 3.4vw, 3rem) !important;
  line-height: 0.9 !important;
  margin: 10px 0 6px !important;
  text-shadow: 0 2px 16px oklch(0% 0 0 / 0.45);
}

.cat-card__desc {
  color: oklch(93% 0.01 250) !important;
  font-size: 0.94rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* About band */
body.home .wp-block-group.alignwide.has-gray-background-color {
  background: var(--tsg-dark) !important;
  color: white !important;
  border-radius: 0 !important;
}

body.home .wp-block-group.alignwide.has-gray-background-color h2,
body.home .wp-block-group.alignwide.has-gray-background-color p,
body.home .wp-block-group.alignwide.has-gray-background-color a {
  color: white !important;
}

body.home .wp-block-group.alignwide.has-gray-background-color p {
  color: oklch(88% 0.01 250) !important;
}

.tsg-editorial-band {
  border-top: 1px solid var(--tsg-line);
  border-bottom: 1px solid var(--tsg-line);
}

.tsg-editorial-band h2 {
  margin-bottom: 16px !important;
}

.tsg-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.tsg-editor-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--tsg-line);
  border-radius: 8px;
  background: var(--tsg-surface);
  color: var(--tsg-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.08);
}

.tsg-editor-card:hover {
  border-color: color-mix(in oklch, var(--tsg-red), transparent 35%);
  color: var(--tsg-ink) !important;
}

.tsg-editor-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.tsg-editor-card__kicker {
  color: var(--tsg-red-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tsg-editor-card strong {
  color: var(--tsg-ink);
  font-size: 1.08rem;
  line-height: 1.15;
}

.tsg-editor-card span:last-child {
  color: var(--tsg-ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Newsletter and footer */
.lumina-nl {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, oklch(47% 0.19 25 / 0.30), transparent 26%),
    linear-gradient(135deg, var(--tsg-dark) 0%, oklch(11% 0.02 250) 60%, oklch(16% 0.04 25) 100%) !important;
  color: white !important;
}

.lumina-nl__proof,
.lumina-nl__title,
.lumina-nl__text,
.lumina-nl__foot,
.lumina-nl__status {
  color: white !important;
}

.lumina-nl__title {
  font-family: var(--tsg-display) !important;
  font-size: clamp(3.2rem, 7vw, 6.4rem) !important;
  line-height: 0.86 !important;
}

.lumina-nl__text,
.lumina-nl__foot {
  color: oklch(88% 0.01 250) !important;
}

.lumina-nl__field {
  background: white !important;
  border-radius: 8px !important;
  padding: 6px !important;
}

.lumina-nl__input,
.lumina-nl .lumina-nl__input,
input[type="email"].lumina-nl__input {
  min-height: 50px !important;
  color: var(--tsg-ink) !important;
  background: white !important;
  font-family: var(--tsg-body) !important;
}

.lumina-nl__input::placeholder {
  color: oklch(47% 0.012 250) !important;
}

.lumina-nl__btn {
  min-height: 50px !important;
}

footer .has-text-background-color,
footer .has-text-background-color p,
footer .has-text-background-color h2,
footer .has-text-background-color h3,
footer .has-text-background-color h4,
footer .has-text-background-color li,
footer .has-text-background-color span {
  color: oklch(92% 0.008 250) !important;
}

footer .has-text-background-color {
  background: var(--tsg-dark) !important;
}

footer a {
  color: white !important;
  text-decoration: none !important;
}

footer a:hover {
  color: var(--tsg-gold) !important;
}

#empire-rgpd-bar {
  background: var(--tsg-dark) !important;
  color: oklch(88% 0.008 250) !important;
  border-top: 1px solid oklch(100% 0 0 / 0.12) !important;
}

#empire-rgpd-bar a {
  color: oklch(88% 0.008 250) !important;
}

/* Single posts */
/* --- WIDEN 20260620: reading column ~880px, wide elements ~1080px --- */
/* Template hardcodes post-content to 720px (constrained) + dek group to 680px.
   Override the constrained-layout content width so prose breathes, and let
   tables / featured image / visual-related grid go "wide" to ~1080px. */
body.single .tsg-widen-var { --tsg-read: 880px; --tsg-wide: 1080px; }

/* Reading column: beat WP is-layout-constrained inline 720px */
body.single .wp-block-post-content,
body.single .wp-block-post-content.is-layout-constrained {
  max-width: min(880px, 100%) !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 4vw, 0px);
  box-sizing: border-box;
}
/* children of constrained content inherit the wider column */
body.single .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
  max-width: min(880px, 100%);
  margin-inline: auto;
}
/* wide-aligned children inside content go to 1080px */
body.single .wp-block-post-content.is-layout-constrained > .alignwide {
  max-width: min(1080px, 100%);
  margin-inline: auto;
}

/* Images never overflow the column on any screen */
body.single .wp-block-post-content img {
  max-width: 100% !important;
  height: auto;
}

/* Title: was 820 -> 880, with side padding so it never touches edges */
body.single .wp-block-post-title {
  max-width: min(880px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 0px);
  box-sizing: border-box;
}

body.single .lumina-breadcrumbs,
body.single .single-meta-bar,
body.archive .lumina-cat-header,
body.category .lumina-cat-header {
  color: var(--tsg-muted) !important;
}

body.single .wp-block-post-featured-image img {
  border-radius: 8px !important;
  box-shadow: 0 6px 8px oklch(0% 0 0 / 0.12);
}

body.single .wp-block-post-content,
body.single .wp-block-post-content p,
body.single .wp-block-post-content li {
  color: var(--tsg-ink-2) !important;
  font-size: clamp(1.04rem, 1.2vw, 1.12rem);
}

body.single .wp-block-post-content h2,
body.single .wp-block-post-content h3 {
  color: var(--tsg-ink) !important;
  margin-top: 1.55em !important;
}

body.single .wp-block-post-content a {
  color: var(--tsg-red-dark) !important;
  font-weight: 750;
}

.sticky-toc {
  background: var(--tsg-surface) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px oklch(0% 0 0 / 0.10);
}

.toc-heading,
.sticky-toc a {
  color: var(--tsg-ink) !important;
}

/* Dek group: template constrains its wrapper to 680px -> widen that wrapper
   so the dek can reach the 880px reading column. Targets the constrained
   group that directly contains the dek without touching other groups. */
body.single .is-layout-constrained:has(> .tsg-article-dek) {
  max-width: min(880px, 100%) !important;
  margin-inline: auto !important;
}
body.single .tsg-article-dek {
  max-width: min(880px, 100%);
  margin: 0 auto 28px;
  padding-inline: clamp(16px, 4vw, 0px);
  box-sizing: border-box;
  color: var(--tsg-ink-2) !important;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem) !important;
  line-height: 1.62 !important;
}

body.single .tsg-summary-box,
body.single .tsg-callout,
body.single .tsg-next-links,
body.single .tsg-faq {
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 8px;
  background: var(--tsg-surface);
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.08);
}

body.single .tsg-summary-box {
  border-left: 4px solid var(--tsg-red);
}

body.single .tsg-callout {
  border: 1px solid var(--tsg-line);
  background: color-mix(in oklch, var(--tsg-panel), white 45%);
}

body.single .tsg-summary-box p,
body.single .tsg-callout p,
body.single .tsg-next-links p,
body.single .tsg-faq p {
  margin-bottom: 0.85em;
}

body.single .tsg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--tsg-line);
  border-radius: 8px;
  background: var(--tsg-surface);
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.06);
}

body.single .tsg-table th,
body.single .tsg-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tsg-line);
  color: var(--tsg-ink-2);
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

body.single .tsg-table th {
  color: var(--tsg-ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single .tsg-table tr:last-child td {
  border-bottom: 0;
}

body.single .tsg-checklist {
  padding-left: 1.15em;
}

body.single .tsg-checklist li {
  margin-bottom: 0.7em;
}

body.single .tsg-next-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding-left: 1.1em;
}

body.single .tsg-visual-related {
  max-width: min(1080px, 100%);
  margin: clamp(42px, 6vw, 76px) auto;
  padding-top: clamp(26px, 4vw, 42px);
  padding-inline: clamp(16px, 4vw, 0px);
  box-sizing: border-box;
  border-top: 1px solid var(--tsg-line);
}

body.single .tsg-visual-related__header {
  max-width: 640px;
  margin-bottom: 22px;
}

body.single .tsg-visual-related__kicker {
  margin: 0 0 8px;
  color: var(--tsg-red-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.single .tsg-visual-related h2 {
  margin: 0 !important;
  font-size: clamp(1.7rem, 3vw, 2.55rem) !important;
  line-height: 1 !important;
}

body.single .tsg-visual-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

body.single .tsg-visual-related__item {
  min-width: 0;
}

body.single .tsg-visual-related__item.is-hub {
  position: relative;
}

body.single .tsg-visual-related__item.is-hub::before {
  content: "Start here";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tsg-red-dark);
  color: white;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.single .tsg-visual-related__image {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tsg-panel);
  aspect-ratio: 3 / 2;
}

body.single .tsg-visual-related__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

body.single .tsg-visual-related__item:hover .tsg-visual-related__image img {
  transform: scale(1.035);
}

body.single .tsg-visual-related__item h3 {
  margin: 10px 0 0 !important;
  font-size: clamp(0.96rem, 1.2vw, 1.08rem) !important;
  line-height: 1.22 !important;
}

body.single .tsg-visual-related__item h3 a {
  color: var(--tsg-ink) !important;
  text-decoration: none;
}

body.single .tsg-faq h3 {
  margin-top: 1.1em !important;
}

body.single .tsg-research-path {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  max-width: min(880px, 100%);
  padding-inline: clamp(16px, 4vw, 0px);
  box-sizing: border-box;
  margin: clamp(18px, 2.6vw, 28px) auto 0;
}

body.single .tsg-research-path__label,
body.single .tsg-research-path a {
  min-height: 42px;
  border-radius: 999px;
}

body.single .tsg-research-path__label {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: oklch(100% 0 0 / 0.78);
  color: var(--tsg-ink-2);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.single .tsg-research-path a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 134px;
  padding: 9px 15px;
  border: 1px solid color-mix(in oklch, var(--tsg-line), transparent 14%);
  background: oklch(100% 0 0 / 0.86);
  color: var(--tsg-ink) !important;
  line-height: 1.15;
  text-decoration: none;
}

body.single .tsg-research-path a.is-primary {
  border-color: color-mix(in oklch, var(--tsg-red), transparent 35%);
  background: var(--tsg-red-dark);
  color: white !important;
}

body.single .tsg-research-path strong {
  font-size: 0.82rem;
  font-weight: 850;
}

body.single .tsg-research-path span {
  margin-top: 2px;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.72;
}

body.single .tsg-depth-upgrade {
  max-width: min(880px, 100%);
  margin: clamp(34px, 5vw, 58px) auto;
  padding-top: clamp(22px, 3vw, 34px);
  padding-inline: clamp(16px, 4vw, 0px);
  box-sizing: border-box;
  border-top: 1px solid var(--tsg-line);
}

body.single .tsg-depth-upgrade h2 {
  margin-top: clamp(30px, 4vw, 48px) !important;
}

body.single .tsg-depth-upgrade .tsg-callout {
  margin: 28px 0;
}

body.single .tsg-reader-questions {
  max-width: min(880px, 100%);
  margin-top: clamp(30px, 4vw, 46px);
  margin-inline: auto;
  padding: clamp(18px, 2.5vw, 28px);
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--tsg-surface);
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.07);
}

body.single .tsg-reader-questions h2 {
  margin-top: 0 !important;
}

body.single .tsg-reader-questions h3 {
  margin-top: 1.15em !important;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem) !important;
  line-height: 1.25 !important;
}

body.single .single-meta-bar a {
  color: var(--tsg-red-dark) !important;
  font-weight: 850;
  text-decoration: none;
}

body.single .tsg-author-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  max-width: min(880px, 100%);
  margin: clamp(42px, 6vw, 72px) auto;
  padding: clamp(20px, 3vw, 34px);
  box-sizing: border-box;
  border-top: 3px solid var(--tsg-red);
  border-bottom: 1px solid var(--tsg-line);
  border-radius: 8px;
  background: var(--tsg-surface);
  box-shadow: 0 5px 8px oklch(0% 0 0 / 0.08);
}

body.single .tsg-author-box__media img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tsg-panel);
}

body.single .tsg-author-box__kicker,
body.single .tsg-author-box__role,
body.single .tsg-author-box__link {
  font-family: var(--tsg-body);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

body.single .tsg-author-box__kicker {
  margin: 0 0 8px;
  color: var(--tsg-red-dark) !important;
}

body.single .tsg-author-box__name {
  margin: 0 0 6px !important;
  color: var(--tsg-ink) !important;
  font-family: var(--tsg-body) !important;
  font-size: clamp(1.28rem, 2vw, 1.7rem) !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

body.single .tsg-author-box__name a {
  color: inherit !important;
  text-decoration: none;
}

body.single .tsg-author-box__role {
  margin: 0 0 16px;
  color: var(--tsg-blue) !important;
}

body.single .tsg-author-box__quote {
  margin: 0 0 12px;
  color: var(--tsg-ink) !important;
  font-size: 1.02rem !important;
  font-weight: 780;
  line-height: 1.5 !important;
}

body.single .tsg-author-box__bio {
  margin: 0 0 18px;
  color: var(--tsg-ink-2) !important;
  font-size: 0.98rem !important;
  line-height: 1.62 !important;
}

body.single .tsg-author-box__link {
  margin: 0;
}

body.single .tsg-author-box__link a {
  color: var(--tsg-red-dark) !important;
  text-decoration: none;
}

/* Author archive */
.tsg-author-archive {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc((100% - 100vw) / 2) !important;
  margin-right: calc((100% - 100vw) / 2) !important;
  background:
    linear-gradient(135deg, var(--tsg-dark) 0%, oklch(15% 0.03 250) 48%, oklch(20% 0.05 25) 100%) !important;
  color: white !important;
}

.tsg-author-archive__inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 58px);
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 126px) 0 clamp(44px, 7vw, 76px);
}

.tsg-author-archive__media img {
  display: block;
  width: 160px;
  height: 160px;
  border: 4px solid oklch(100% 0 0 / 0.22);
  border-radius: 50%;
  object-fit: cover;
  background: var(--tsg-panel);
  box-shadow: 0 10px 22px oklch(0% 0 0 / 0.28);
}

.tsg-author-archive__kicker,
.tsg-author-archive__role,
.tsg-author-archive__meta,
.tsg-author-archive__chips span,
.tsg-author-archive__links a {
  font-family: var(--tsg-body);
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tsg-author-archive__kicker {
  margin: 0 0 12px;
  color: var(--tsg-gold) !important;
  font-size: 0.78rem;
}

.tsg-author-archive h1 {
  max-width: 760px;
  margin: 0 !important;
  color: white !important;
  font-size: clamp(4rem, 8.5vw, 7.4rem) !important;
  line-height: 0.88 !important;
  text-transform: uppercase;
}

.tsg-author-archive__role {
  margin: clamp(14px, 2vw, 20px) 0 0;
  color: oklch(86% 0.08 78) !important;
  font-size: 0.84rem !important;
}

.tsg-author-archive__quote {
  max-width: 800px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: white !important;
  font-size: clamp(1.2rem, 2vw, 1.58rem) !important;
  font-weight: 760;
  line-height: 1.45 !important;
}

.tsg-author-archive__bio {
  max-width: 820px;
  margin: 16px 0 0;
  color: oklch(90% 0.01 250) !important;
  font-size: clamp(1rem, 1.3vw, 1.1rem) !important;
  line-height: 1.7 !important;
}

.tsg-author-archive__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(20px, 3vw, 30px);
}

.tsg-author-archive__meta span,
.tsg-author-archive__chips span,
.tsg-author-archive__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.tsg-author-archive__meta span {
  padding: 9px 12px;
  background: oklch(100% 0 0 / 0.12);
  color: white;
}

.tsg-author-archive__chips,
.tsg-author-archive__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tsg-author-archive__chips span {
  padding: 8px 11px;
  border: 1px solid oklch(100% 0 0 / 0.16);
  color: oklch(91% 0.01 250);
}

.tsg-author-archive__links {
  margin-top: 20px;
}

.tsg-author-archive__links a {
  padding: 10px 14px;
  background: white;
  color: var(--tsg-red-dark) !important;
  text-decoration: none !important;
}

.tsg-author-archive__links a:hover {
  background: var(--tsg-gold);
  color: var(--tsg-dark) !important;
}

/* Archives */
body.archive .lumina-cat-header,
body.category .lumina-cat-header {
  background:
    linear-gradient(135deg, var(--tsg-dark), oklch(19% 0.04 25)) !important;
}

body.archive .lumina-cat-header h1,
body.category .lumina-cat-header h1,
body.archive .lumina-cat-header .wp-block-query-title,
body.category .lumina-cat-header .wp-block-query-title {
  color: white !important;
}

body.archive .lumina-cat-header p,
body.category .lumina-cat-header p {
  color: oklch(90% 0.01 250) !important;
}

.wp-block-query-pagination {
  margin-top: 44px !important;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--tsg-surface);
  color: var(--tsg-ink) !important;
  text-decoration: none;
}

/* --- WIDEN 20260620: responsive hardening, 0 horizontal overflow 320-1440 --- */
/* Global guard: no single-post block may push the page wider than the viewport */
body.single {
  overflow-x: hidden;
}
body.single .wp-block-post-content > *,
body.single .tsg-summary-box,
body.single .tsg-callout,
body.single .tsg-next-links,
body.single .tsg-faq,
body.single .tsg-reader-questions,
body.single .tsg-depth-upgrade {
  box-sizing: border-box;
}

/* Tables: scroll horizontally on phones instead of forcing page-wide overflow */
@media (max-width: 640px) {
  body.single .tsg-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.single .tsg-table th,
  body.single .tsg-table td {
    padding: 10px 12px;
    white-space: normal;
  }
  body.single .tsg-next-links ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 781px) {
  body {
    font-size: 16px;
  }

  .site-header .wp-block-group.alignwide {
    padding-inline: 18px !important;
  }

  body.home main > .wp-block-cover.alignfull:first-child {
    min-height: 660px !important;
    padding: 132px 20px 70px !important;
  }

  body.home main > .wp-block-cover.alignfull:first-child h1 {
    font-size: clamp(3.7rem, 18vw, 5.6rem) !important;
  }

  body.home main > .wp-block-cover.alignfull:first-child h2 {
    font-size: 1.08rem !important;
  }

  .lumina-magazine-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

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

  .tsg-hub-card {
    min-height: 220px;
  }

  .tsg-cluster-page .tsg-cluster-intro {
    grid-template-columns: 1fr;
  }

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

  .tsg-fast-paths a,
  .tsg-archive-hub-strip a {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .lumina-card > .wp-block-group,
  .lumina-card .wp-block-group[style*="padding-top"] {
    padding: 12px !important;
  }

  .tsg-editor-grid {
    grid-template-columns: 1fr;
  }

  .lumina-card h3,
  .lumina-card .wp-block-post-title,
  .lumina-card .wp-block-post-title a {
    font-size: 0.95rem !important;
  }

  .wp-block-columns {
    gap: 18px !important;
  }

  .app-card {
    padding: 26px !important;
  }

  .cat-grid {
    grid-template-columns: 1fr !important;
    width: calc(100vw - 40px) !important;
    max-width: 350px !important;
  }

  .cat-card {
    min-height: 300px;
    width: 100% !important;
  }

  .lumina-nl__field {
    display: grid !important;
    gap: 8px !important;
  }

  .lumina-nl__btn,
  .lumina-nl__input {
    width: 100% !important;
  }

  body.single .wp-block-columns {
    display: block !important;
  }

  body.single .tsg-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.single .tsg-research-path {
    justify-content: flex-start;
  }

  body.single .tsg-research-path__label,
  body.single .tsg-research-path a {
    flex: 1 1 calc(50% - 8px);
  }

  body.single .tsg-next-links ul {
    grid-template-columns: 1fr;
  }

  body.single .tsg-visual-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single .tsg-author-box {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body.single .tsg-author-box__media img {
    width: 72px;
    height: 72px;
  }

  body.single .is-style-sticky {
    display: none !important;
  }

  .tsg-author-archive__inner {
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .tsg-author-archive__media img {
    width: 112px;
    height: 112px;
  }

  .tsg-author-archive h1 {
    font-size: clamp(3.4rem, 16vw, 5.6rem) !important;
  }
}

@media (max-width: 480px) {
  .lumina-magazine-grid .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .tsg-hub-grid {
    grid-template-columns: 1fr;
  }

  .tsg-hub-card {
    min-height: 0;
  }

  .tsg-cluster-page .tsg-cluster-hero,
  .tsg-cluster-page .tsg-cluster-intro,
  .tsg-cluster-page .tsg-cluster-note,
  .tsg-cluster-page .tsg-cluster-block {
    width: calc(100vw - 32px);
  }

  .tsg-cluster-page .tsg-cluster-hero h1,
  .tsg-cluster-page .tsg-cluster-display-title {
    font-size: clamp(3.1rem, 18vw, 4.7rem) !important;
  }

  .tsg-cluster-grid {
    grid-template-columns: 1fr;
  }

  .tsg-fast-paths a,
  .tsg-archive-hub-strip a {
    flex-basis: 100%;
  }

  body.home main > .wp-block-cover.alignfull:first-child .wp-block-buttons,
  body.home main > .wp-block-cover.alignfull:first-child .wp-block-button,
  body.home main > .wp-block-cover.alignfull:first-child .wp-block-button__link {
    width: 100% !important;
  }

  body.single .tsg-author-box {
    grid-template-columns: 1fr;
  }

  body.single .tsg-research-path__label,
  body.single .tsg-research-path a {
    flex-basis: 100%;
  }

  body.single .tsg-visual-related__grid {
    grid-template-columns: 1fr;
  }

  .tsg-author-archive__inner {
    width: calc(100vw - 32px);
  }

  .tsg-author-archive__meta span,
  .tsg-author-archive__chips span,
  .tsg-author-archive__links a {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
}

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

/* logo header transparent (fix carré blanc) */
.custom-logo,.custom-logo-link,.wp-block-site-logo,.wp-block-site-logo img{background:transparent!important;background-color:transparent!important;box-shadow:none!important;border-radius:0!important}
