/*
Theme Name: UNITY Blog
Theme URI: https://unity-france.org/espace/
Author: UNITY
Description: Child theme for the UNITY WordPress blog, built on Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Requires PHP: 7.2
Text Domain: unity-blog
*/

:root {
  --unity-blue: #39c2ff;
  --unity-blue-deep: #0055b8;
  --unity-ink: #111827;
  --unity-muted: #5f6673;
  --unity-line: rgba(17, 24, 39, 0.14);
  --unity-soft: #eef9ff;
  --unity-paper: #fbfcfd;
  --unity-white: #ffffff;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(57, 194, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 42%, #ffffff 100%);
  color: var(--unity-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-post {
  padding-bottom: 112px;
}

a {
  color: var(--unity-blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.wp-block-template-part:has(.unity-wp-header) {
  position: sticky;
  top: 0;
  z-index: 100;
}

.unity-wp-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(57, 194, 255, 0.34);
  background: rgba(238, 249, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(57, 194, 255, 0.08);
}

.unity-wp-header__inner,
.unity-wp-footer__inner,
.unity-blog-hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.unity-wp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.unity-wp-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: var(--unity-blue-deep);
  text-decoration: none;
}

.unity-wp-brand img {
  display: block;
  width: min(210px, 44vw);
  height: auto;
}

.unity-wp-brand span {
  border-left: 1px solid rgba(17, 24, 39, 0.16);
  padding-left: 14px;
  color: var(--unity-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unity-wp-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
  color: var(--unity-muted);
  font-size: 0.91rem;
  font-weight: 650;
}

.unity-wp-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.unity-wp-menu__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(57, 194, 255, 0.28);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--unity-blue-deep);
  cursor: pointer;
}

.unity-wp-menu__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.unity-wp-header.is-menu-open .unity-wp-menu__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.unity-wp-header.is-menu-open .unity-wp-menu__toggle span:nth-child(2) {
  opacity: 0;
}

.unity-wp-header.is-menu-open .unity-wp-menu__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.unity-wp-nav a {
  color: inherit;
  text-decoration: none;
}

.unity-wp-nav a:hover {
  color: var(--unity-blue-deep);
}

.unity-section-news .unity-wp-nav .unity-nav-news,
.unity-section-directory .unity-wp-nav .unity-nav-directory {
  border: 1px solid rgba(57, 194, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(57, 194, 255, 0.1);
  color: var(--unity-blue-deep);
}

.unity-space-portal {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto clamp(70px, 9vw, 112px);
}

.unity-space-hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(34px, 6vw, 68px);
}

.unity-space-hero h1 {
  max-width: 920px;
  margin: 14px 0 0;
  color: var(--unity-ink);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.91;
  letter-spacing: 0;
}

.unity-space-hero > p:last-child {
  max-width: 720px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: var(--unity-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.65;
}

.unity-space-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.unity-space-section {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.82);
  color: var(--unity-ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.unity-space-section:hover {
  border-color: rgba(57, 194, 255, 0.4);
  box-shadow: 0 22px 56px rgba(17, 24, 39, 0.08);
  transform: translateY(-3px);
}

.unity-space-section--news {
  background: linear-gradient(145deg, rgba(238, 249, 255, 0.94), rgba(255, 255, 255, 0.96));
}

.unity-space-section--directory {
  background: linear-gradient(145deg, rgba(235, 247, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.unity-space-section--soon {
  background: rgba(248, 250, 252, 0.76);
}

.unity-space-section > span {
  margin-bottom: auto;
  color: var(--unity-blue-deep);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unity-space-section strong {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.unity-space-section small {
  margin-top: 14px;
  color: var(--unity-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.unity-space-latest {
  margin-top: clamp(58px, 8vw, 94px);
}

.unity-space-latest .unity-section-label h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.unity-space-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--unity-blue-deep);
  font-weight: 780;
  text-decoration: none;
}

.unity-magazine {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto clamp(70px, 9vw, 112px);
}

.unity-magazine-hero {
  padding: clamp(24px, 4vw, 42px) 0 clamp(18px, 3vw, 28px);
  text-align: center;
}

.unity-magazine-hero::after {
  content: "";
  display: block;
  width: min(320px, 72%);
  height: 12px;
  margin: clamp(22px, 3vw, 30px) auto 0;
  background:
    linear-gradient(var(--unity-line), var(--unity-line)) left 50% / calc(50% - 14px) 1px no-repeat,
    radial-gradient(circle, rgba(57, 194, 255, 0.76) 0 3px, transparent 3.6px) center / 12px 12px no-repeat,
    linear-gradient(var(--unity-line), var(--unity-line)) right 50% / calc(50% - 14px) 1px no-repeat;
}

.unity-small-kicker,
.unity-section-label p {
  margin: 0;
  color: var(--unity-blue-deep);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unity-magazine-hero .unity-magazine-kicker {
  margin: 0;
  color: var(--unity-ink);
  font-size: clamp(2.35rem, 5.4vw, 4.85rem);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: 0;
}

.unity-magazine-hero p:not(.unity-magazine-kicker) {
  max-width: 640px;
  margin: 12px 0 0;
  margin-inline: auto;
  color: var(--unity-muted);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.unity-featured-section,
.unity-news-section,
.unity-discover-strip,
.unity-topic-explorer {
  margin-top: clamp(28px, 5vw, 58px);
}

.unity-section-label {
  margin-bottom: 14px;
}

.unity-featured-story,
.unity-news-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  background: color-mix(in srgb, var(--unity-white) 96%, var(--unity-soft));
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.unity-featured-story:hover,
.unity-news-card:hover {
  border-color: rgba(57, 194, 255, 0.34);
  background: color-mix(in srgb, var(--unity-white) 88%, var(--unity-soft));
  box-shadow: 0 22px 56px rgba(17, 24, 39, 0.08);
  transform: translateY(-3px);
}

.unity-featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: 330px;
}

.unity-featured-story__image,
.unity-news-card__image {
  overflow: hidden;
  background: var(--unity-soft);
}

.unity-featured-story__image {
  min-height: 330px;
}

.unity-news-card__image {
  aspect-ratio: 16 / 9;
}

.unity-featured-story img,
.unity-news-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.unity-featured-story:hover img,
.unity-news-card:hover img {
  transform: scale(1.025);
}

.unity-featured-story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.3vw, 42px);
}

.unity-news-card__content {
  padding: 18px 18px 20px;
}

.unity-news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.unity-news-chip {
  border: 1px solid rgba(57, 194, 255, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.54rem;
  background: rgba(57, 194, 255, 0.09);
  color: var(--unity-blue-deep);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
}

.unity-featured-story h2,
.unity-news-card h2 {
  margin: 0;
  color: var(--unity-ink);
  font-weight: 880;
  letter-spacing: 0;
  text-wrap: balance;
}

.unity-featured-story h2 {
  max-width: 13ch;
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  line-height: 0.94;
}

.unity-news-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.02em;
  font-size: clamp(1.14rem, 1.45vw, 1.44rem);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.unity-featured-story:hover h2,
.unity-news-card:hover h2 {
  color: color-mix(in srgb, var(--unity-ink) 88%, var(--unity-blue-deep));
}

.unity-featured-story p,
.unity-news-card p {
  margin: 14px 0 0;
  color: var(--unity-muted);
  line-height: 1.62;
}

.unity-featured-story p {
  font-size: 1.03rem;
}

.unity-news-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.unity-news-meta {
  display: block;
  margin-top: 16px;
  color: color-mix(in srgb, var(--unity-muted) 86%, var(--unity-ink));
  font-size: 0.78rem;
  font-weight: 720;
}

.unity-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.unity-discover-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  border-top: 1px solid var(--unity-line);
  border-bottom: 1px solid var(--unity-line);
  padding: clamp(28px, 4vw, 44px) 0;
}

.unity-discover-strip h2,
.unity-topic-explorer h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.unity-discover-list {
  display: grid;
  gap: 14px;
}

.unity-discover-list a {
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.unity-discover-list a + a {
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  padding-top: 14px;
}

.unity-discover-list strong {
  color: var(--unity-ink);
  font-size: 1rem;
  line-height: 1.26;
}

.unity-discover-list span {
  color: var(--unity-muted);
  font-size: 0.8rem;
  font-weight: 680;
}

.unity-topic-explorer {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(57, 194, 255, 0.18);
  border-radius: 10px;
  background: rgba(238, 249, 255, 0.44);
}

.unity-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.unity-topic-list a {
  border: 1px solid rgba(57, 194, 255, 0.24);
  border-radius: 999px;
  padding: 0.64rem 0.82rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--unity-blue-deep);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.unity-topic-list a:hover {
  border-color: rgba(57, 194, 255, 0.5);
  background: var(--unity-white);
}

.unity-single-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto clamp(70px, 9vw, 120px);
}

.unity-single-hero {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 62px) 0 clamp(24px, 3.5vw, 38px);
  text-align: left;
}

.unity-single-hero .unity-news-chips {
  justify-content: flex-start;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.unity-single-hero h1 {
  max-width: 1200px;
  margin: 0;
  color: var(--unity-ink);
  font-size: clamp(2.75rem, 5.2vw, 5.15rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: pretty;
}

.unity-single-byline {
  display: flex;
  justify-content: flex-start;
  max-width: 760px;
  margin: clamp(-26px, -2vw, -12px) auto clamp(48px, 6vw, 78px);
}

.unity-author-lockup {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--unity-muted);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.2;
  text-align: left;
}

.unity-author-lockup img {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--unity-soft);
  object-fit: cover;
}

.unity-author-lockup span,
.unity-author-lockup time {
  display: inline-flex;
  align-items: center;
}

.unity-author-lockup span {
  color: var(--unity-ink);
  font-weight: 780;
}

.unity-author-lockup time {
  color: var(--unity-muted);
  font-weight: 680;
}

.unity-author-lockup time::before {
  content: "•";
  margin-right: 10px;
  color: rgba(95, 102, 115, 0.48);
}

.unity-author-lockup .unity-reading-chip {
  border: 1px solid rgba(57, 194, 255, 0.2);
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  background: rgba(57, 194, 255, 0.1);
  color: var(--unity-blue-deep);
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.unity-single-featured {
  max-width: 1040px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  background: var(--unity-soft);
}

.unity-single-featured figcaption {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.35rem, 2.4vw, 2rem) 1.4rem clamp(1.1rem, 2vw, 1.55rem);
  color: color-mix(in srgb, var(--unity-ink) 70%, var(--unity-blue-deep));
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  font-style: italic;
  font-weight: 420;
  line-height: 1.62;
  text-align: left;
}

.unity-single-featured figcaption::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 1.1rem;
  background: rgba(57, 194, 255, 0.42);
}

.unity-single-featured img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.unity-single-content {
  color: var(--unity-ink);
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.82;
}

.unity-single-content strong,
.unity-single-content b {
  color: var(--unity-ink);
  font-weight: 760;
}

.unity-single-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.unity-single-content h2,
.unity-single-content h3 {
  margin-top: 2.2em;
  color: var(--unity-ink);
  line-height: 1.14;
}

.unity-single-content h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.unity-single-content h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.unity-single-content figure {
  max-width: 760px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.unity-single-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.unity-single-content figcaption {
  margin-top: 0.85rem;
  color: var(--unity-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.unity-single-content blockquote {
  border-left: 3px solid var(--unity-blue);
  padding-left: 1.4rem;
  color: var(--unity-ink);
  font-size: 1.18em;
}

.unity-single-content .wp-block-code {
  position: relative;
  max-width: 820px;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(57, 194, 255, 0.22);
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 12% 0%, rgba(57, 194, 255, 0.18), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 44px rgba(17, 24, 39, 0.08);
  color: var(--unity-ink);
  font-family: inherit;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.72;
  white-space: normal;
}

.unity-single-content .wp-block-code::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--unity-blue), var(--unity-blue-deep));
  opacity: 0.78;
}

.unity-single-content .wp-block-code code {
  display: block;
  color: inherit;
  font-family: inherit;
  white-space: pre-wrap;
}

.unity-comments {
  width: min(760px, calc(100% - 40px));
  margin: clamp(46px, 7vw, 78px) auto 0;
  padding-top: clamp(24px, 3.5vw, 34px);
  color: var(--unity-ink);
}

.unity-comments::before {
  content: "";
  display: block;
  width: min(260px, 70%);
  height: 12px;
  margin: 0 auto clamp(26px, 4vw, 38px);
  background:
    linear-gradient(var(--unity-line), var(--unity-line)) left 50% / calc(50% - 13px) 1px no-repeat,
    radial-gradient(circle, rgba(57, 194, 255, 0.72) 0 3px, transparent 3.5px) center / 12px 12px no-repeat,
    linear-gradient(var(--unity-line), var(--unity-line)) right 50% / calc(50% - 13px) 1px no-repeat;
}

.unity-comments .wp-block-comments-title {
  margin: 0 0 1.2rem;
  color: var(--unity-muted);
  font-size: 0.82rem;
  font-weight: 680;
}

.unity-comment-item {
  margin: 0 0 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.unity-comments .avatar {
  border-radius: 8px;
}

.unity-comments .wp-block-comment-author-name {
  color: var(--unity-ink);
  font-weight: 780;
}

.unity-comments .wp-block-comment-date {
  margin-top: 0.15rem;
  color: var(--unity-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.unity-comments .wp-block-comment-content {
  color: var(--unity-ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

.unity-comments .comment-reply-title,
.unity-comments .wp-block-post-comments-form {
  margin-top: clamp(18px, 3vw, 28px);
}

.unity-comments .comment-reply-title {
  color: var(--unity-ink);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 820;
  line-height: 1.1;
}

.unity-comments .comment-reply-title small {
  font-size: 0.75rem;
}

.unity-comments .comment-notes,
.unity-comments label {
  color: var(--unity-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.unity-comments .comment-notes {
  margin: 0.55rem 0 1rem;
}

.unity-comments .logged-in-as {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin: 0.5rem 0 1rem;
  color: var(--unity-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.unity-comments .logged-in-as a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(57, 194, 255, 0.18);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  background: rgba(57, 194, 255, 0.07);
  color: var(--unity-blue-deep);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.15;
  text-decoration: none;
}

.unity-comments .logged-in-as a:hover {
  border-color: rgba(57, 194, 255, 0.38);
  background: rgba(57, 194, 255, 0.12);
}

.unity-comments .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem 1rem;
}

.unity-comments .comment-form-comment,
.unity-comments .comment-notes,
.unity-comments .comment-form-cookies-consent,
.unity-comments .form-submit {
  grid-column: 1 / -1;
}

.unity-comments .comment-form-url {
  display: none;
}

.unity-comments .comment-form p {
  margin: 0;
}

.unity-comments input:not([type="submit"]),
.unity-comments textarea {
  border: 1px solid rgba(17, 24, 39, 0.12) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--unity-ink);
  font-size: 0.92rem !important;
}

.unity-comments textarea {
  min-height: 112px;
  max-height: 180px;
}

.unity-comments input:not([type="submit"]):focus,
.unity-comments textarea:focus {
  border-color: rgba(57, 194, 255, 0.58) !important;
  outline: 3px solid rgba(57, 194, 255, 0.14);
}

.unity-comments input[type="submit"] {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.58rem 0.9rem;
  background: var(--unity-blue-deep) !important;
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 800;
}

.unity-pulse {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px 16px;
  width: min(860px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid rgba(57, 194, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(57, 194, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 255, 0.9));
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.12);
  color: var(--unity-ink);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.unity-pulse::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(57, 194, 255, 0.16), transparent 44%, rgba(255, 255, 255, 0.5));
}

.unity-pulse__intro,
.unity-pulse__actions,
.unity-pulse__reward {
  position: relative;
  z-index: 1;
}

.unity-pulse__intro {
  display: grid;
  gap: 2px;
  min-width: 220px;
  max-width: 260px;
}

.unity-pulse__prompt {
  margin: 0;
  color: var(--unity-ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.22;
}

.unity-pulse__sub {
  margin: 0;
  color: var(--unity-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
}

.unity-pulse__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.unity-pulse__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  padding: 0.58rem 0.72rem;
  background: var(--pulse-bg, rgba(255, 255, 255, 0.72));
  box-shadow: 0 6px 16px var(--pulse-glow, rgba(17, 24, 39, 0.08));
  color: var(--unity-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.unity-pulse__button[data-reaction="declic"] {
  --pulse-bg: rgba(57, 194, 255, 0.24);
  --pulse-bg-hover: rgba(57, 194, 255, 0.34);
  --pulse-accent: var(--unity-blue-deep);
  --pulse-glow: rgba(57, 194, 255, 0.24);
}

.unity-pulse__button[data-reaction="practice"] {
  --pulse-bg: rgba(168, 85, 247, 0.22);
  --pulse-bg-hover: rgba(168, 85, 247, 0.34);
  --pulse-accent: #7e22ce;
  --pulse-glow: rgba(168, 85, 247, 0.24);
}

.unity-pulse__button[data-reaction="deepen"] {
  --pulse-bg: rgba(20, 184, 166, 0.34);
  --pulse-bg-hover: rgba(20, 184, 166, 0.46);
  --pulse-accent: #0d665d;
  --pulse-glow: rgba(20, 184, 166, 0.3);
}

.unity-pulse__button:hover:not(:disabled),
.unity-pulse__button.is-active {
  background: var(--pulse-bg-hover, var(--pulse-bg));
  box-shadow: 0 8px 22px var(--pulse-glow);
  transform: translateY(-2px);
}

.unity-pulse__button:disabled {
  cursor: default;
}

.unity-pulse__button.is-loading {
  opacity: 0.68;
}

.unity-pulse__label {
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
  color: var(--unity-ink);
  font-size: 0.74rem;
  font-weight: 840;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unity-pulse__count {
  overflow: hidden;
  grid-column: 1;
  grid-row: 2;
  color: var(--pulse-accent, var(--unity-blue-deep));
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unity-pulse__emoji {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.18rem;
  line-height: 1;
}

.unity-pulse__reward {
  position: relative;
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  padding: 0.88rem 0.92rem 0.82rem 2.6rem;
  border: 1px solid rgba(57, 194, 255, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 1.08rem 1.08rem, rgba(57, 194, 255, 0.82) 0 0.16rem, transparent 0.18rem),
    radial-gradient(circle at 2rem 0.8rem, rgba(165, 180, 252, 0.22), transparent 3.4rem),
    radial-gradient(circle at 92% 18%, rgba(94, 234, 212, 0.22), transparent 3.6rem),
    linear-gradient(135deg, rgba(248, 252, 255, 0.99), rgba(235, 248, 255, 0.95));
  color: var(--unity-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 26px rgba(57, 194, 255, 0.12);
  animation: unityPulseReward 360ms cubic-bezier(0.2, 0.9, 0.22, 1.18) both;
}

.unity-pulse__reward::before {
  content: "✦";
  position: absolute;
  left: 0.82rem;
  top: 0.82rem;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(57, 194, 255, 0.13);
  color: var(--unity-blue-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.unity-pulse__reward::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -18%;
  width: 46%;
  height: 180%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(12deg);
  animation: unityPulseShine 960ms ease 120ms both;
}

.unity-pulse__reward strong,
.unity-pulse__reward span {
  display: block;
}

.unity-pulse__reward strong {
  position: relative;
  z-index: 1;
  margin-bottom: 0.42rem;
  color: var(--unity-ink);
  font-size: 0.92rem;
  font-weight: 860;
}

.unity-pulse__reward span {
  position: relative;
  z-index: 1;
  margin: 0.12rem 0 0.56rem;
  padding: 0.66rem 0.72rem;
  border-left: 3px solid var(--unity-blue);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: color-mix(in srgb, var(--unity-ink) 82%, var(--unity-blue-deep));
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.5;
}

.unity-pulse__reward a {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  margin-left: auto;
  border-radius: 999px;
  padding: 0.54rem 0.78rem;
  background: var(--unity-blue-deep);
  color: #ffffff;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 840;
  line-height: 1.1;
  text-align: right;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 85, 184, 0.18);
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.unity-pulse__reward a:hover {
  background: color-mix(in srgb, var(--unity-blue-deep) 86%, var(--unity-blue));
  box-shadow: 0 10px 22px rgba(0, 85, 184, 0.24);
  transform: translateY(-1px);
}

@keyframes unityPulseReward {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes unityPulseShine {
  from {
    opacity: 0;
    transform: translateX(0) rotate(12deg);
  }

  35% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(330%) rotate(12deg);
  }
}

.unity-post-nav {
  width: min(980px, calc(100% - 40px));
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--unity-line);
}

.unity-wp-footer {
  border-top: 1px solid var(--unity-line);
  background: var(--unity-ink);
  color: rgba(255, 255, 255, 0.76);
}

.unity-wp-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: start;
  justify-content: space-between;
  gap: clamp(34px, 7vw, 90px);
  padding: clamp(44px, 7vw, 76px) 0;
}

.unity-wp-footer img {
  display: block;
  width: min(230px, 54vw);
  height: auto;
}

.unity-wp-footer__brand p {
  max-width: 460px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.65;
}

.unity-wp-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  font-size: 0.86rem;
  font-weight: 760;
}

.unity-wp-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 24px;
  font-size: 0.92rem;
  font-weight: 650;
}

.unity-wp-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.unity-wp-footer a:hover {
  color: var(--unity-blue);
}

@media (max-width: 980px) {
  .unity-featured-story {
    grid-template-columns: 1fr;
  }

  .unity-featured-story__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .unity-featured-story h2 {
    max-width: 16ch;
  }

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

  .unity-discover-strip {
    grid-template-columns: 1fr;
  }

  .unity-space-sections {
    grid-template-columns: 1fr 1fr;
  }

  .unity-space-section--soon {
    grid-column: 1 / -1;
    min-height: 190px;
  }
}

@media (max-width: 1180px) {
  .unity-wp-menu__toggle {
    display: inline-flex;
  }

  .unity-wp-menu {
    position: static;
  }

  .unity-wp-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    display: none;
    width: min(360px, calc(100% - 40px));
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(57, 194, 255, 0.26);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
  }

  .unity-wp-header.is-menu-open .unity-wp-nav {
    display: flex;
  }

  .unity-wp-nav a {
    border-radius: 6px;
    padding: 0.78rem 0.85rem;
  }
}

@media (max-width: 780px) {
  .unity-wp-footer__inner {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .unity-wp-header__inner {
    min-height: 68px;
  }

  .unity-wp-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .unity-news-grid {
    grid-template-columns: 1fr;
  }

  .unity-magazine,
  .unity-single-main,
  .unity-post-nav,
  .unity-wp-header__inner,
  .unity-wp-footer__inner {
    width: min(100% - 28px, 1180px);
  }

  .unity-single-content {
    font-size: 1.02rem;
  }

  .unity-single-hero h1 {
    font-size: clamp(2.3rem, 8.7vw, 4rem);
    line-height: 0.98;
  }

  .unity-space-portal {
    width: min(100% - 28px, 1200px);
  }

  .unity-space-hero {
    padding-top: 42px;
  }

  .unity-space-sections {
    grid-template-columns: 1fr;
  }

  .unity-space-section--soon {
    grid-column: auto;
  }

  .unity-pulse {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 24px));
  }

  .unity-pulse__intro {
    max-width: none;
  }

  .unity-pulse__intro,
  .unity-pulse__prompt,
  .unity-pulse__sub {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .unity-magazine {
    width: min(100% - 28px, 1200px);
    margin-bottom: 58px;
  }

  .unity-magazine-hero {
    padding: 24px 0 20px;
  }

  .unity-featured-section,
  .unity-news-section,
  .unity-discover-strip,
  .unity-topic-explorer {
    margin-top: 26px;
  }

  .unity-featured-story__content,
  .unity-news-card__content {
    padding: 18px;
  }

  .unity-featured-story h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 10vw, 3.05rem);
    line-height: 0.96;
  }

  .unity-news-card h2 {
    font-size: 1.24rem;
    line-height: 1.1;
  }

  .unity-single-hero {
    padding-top: 30px;
  }

  .unity-single-hero h1 {
    font-size: clamp(2.15rem, 9.7vw, 3.4rem);
  }

  .unity-single-byline {
    margin-top: -22px;
  }

  .unity-author-lockup {
    gap: 7px 9px;
  }

  .unity-author-lockup time::before {
    margin-right: 9px;
  }

  .unity-comments {
    width: min(100% - 28px, 760px);
  }

  .unity-comments .comment-form {
    grid-template-columns: 1fr;
  }

  .unity-pulse {
    bottom: 10px;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .unity-pulse__intro {
    gap: 1px;
  }

  .unity-pulse__prompt {
    font-size: 0.78rem;
  }

  .unity-pulse__sub {
    font-size: 0.66rem;
  }

  .unity-pulse__actions {
    gap: 5px;
  }

  .unity-pulse__button {
    gap: 2px 4px;
    padding: 0.5rem 0.4rem;
    border-radius: 11px;
  }

  .unity-pulse__label {
    font-size: 0.62rem;
    white-space: normal;
  }

  .unity-pulse__count {
    font-size: 0.61rem;
    white-space: normal;
  }

  .unity-pulse__emoji {
    font-size: 0.98rem;
  }

  .unity-pulse__reward {
    padding: 0.72rem 0.7rem 0.72rem 2.08rem;
    background:
      radial-gradient(circle at 0.92rem 0.92rem, rgba(57, 194, 255, 0.72) 0 0.14rem, transparent 0.16rem),
      radial-gradient(circle at 2rem 0.8rem, rgba(165, 180, 252, 0.18), transparent 3rem),
      linear-gradient(135deg, rgba(248, 252, 255, 0.99), rgba(235, 248, 255, 0.95));
    font-size: 0.74rem;
  }

  .unity-pulse__reward::before {
    left: 0.68rem;
    top: 0.72rem;
    width: 1rem;
    height: 1rem;
    font-size: 0.7rem;
  }

  .unity-pulse__reward strong {
    font-size: 0.78rem;
  }

  .unity-pulse__reward span {
    margin-bottom: 0.5rem;
    padding: 0.54rem 0.58rem;
    font-size: 0.74rem;
  }

  .unity-topic-explorer {
    padding: 22px;
  }
}
