:root {
  /* Warm ink night — editorial, not OLED black */
  --ph-bg-deep: #12141a;
  --ph-bg: #171920;
  --ph-bg-mid: #1e2128;
  --ph-bg-elevated: rgba(32, 34, 40, 0.9);
  --ph-surface: #1c1f26;
  --ph-surface-2: #252830;
  --ph-surface-soft: rgba(255, 248, 240, 0.045);
  --ph-text: #f5f2ec;
  --ph-text-muted: rgba(245, 242, 236, 0.78);
  --ph-accent-pink: #ff4da6;
  --ph-accent-pink-soft: #ff7ec0;
  --ph-glow-lime: #d4ff00;
  --ph-glow-cyan: #00ccff;
  --ph-glow-amber: #ff9900;
  --ph-glow-magenta: #ff2d95;
  --ph-orbit-gold: #f0c75e;
  --ph-orbit-pink: #ff6bb5;

  --ph-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ph-font-ui: "Manrope", system-ui, sans-serif;
  --ph-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ph-space-1: 0.25rem;
  --ph-space-2: 0.5rem;
  --ph-space-3: 0.75rem;
  --ph-space-4: 1rem;
  --ph-space-5: 1.5rem;
  --ph-space-6: 2rem;
  --ph-space-7: 3.5rem;
  --ph-space-8: 5.5rem;
  --ph-space-9: 7.5rem;

  --ph-radius-sm: 12px;
  --ph-radius-md: 20px;
  --ph-radius-lg: 28px;
  --ph-radius-xl: 36px;
  --ph-radius-full: 999px;
  --ph-radius: var(--ph-radius-md);

  --ph-max: 72rem;
  --ph-shell: 56rem;
  --ph-header-h: 4.25rem;
  --ph-gutter: clamp(1.25rem, 4vw, 2.75rem);

  --ph-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ph-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ph-duration: 700ms;
  --ph-elev: 0 24px 64px rgba(0, 0, 0, 0.35);
  --ph-elev-soft: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--ph-font-ui);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ph-text);
  background:
    radial-gradient(ellipse 65% 42% at 18% 8%, rgba(240, 199, 94, 0.035), transparent 58%),
    radial-gradient(ellipse 55% 38% at 86% 14%, rgba(255, 126, 182, 0.03), transparent 55%),
    radial-gradient(ellipse 50% 34% at 72% 92%, rgba(180, 200, 120,.025), transparent 55%),
    linear-gradient(180deg, var(--ph-bg-deep) 0%, var(--ph-bg) 48%, var(--ph-bg-mid) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ph-accent-pink-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 200ms var(--ph-ease-soft);
}

a:hover {
  color: var(--ph-text);
}

.ph-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--ph-space-3) var(--ph-space-4);
  background: var(--ph-text);
  color: var(--ph-bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--ph-radius-sm);
}

.ph-skip:focus,
.ph-skip:focus-visible {
  left: var(--ph-space-4);
  top: var(--ph-space-4);
  outline: 2px solid var(--ph-glow-lime, #c8f06a);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:where(a, button, .ph-cta, .ph-menu-btn, input, select, textarea):focus-visible {
  outline: 2px solid var(--ph-glow-lime, #c8f06a);
  outline-offset: 2px;
}

:where(a, button, .ph-cta, .ph-menu-btn):focus:not(:focus-visible) {
  outline: none;
}

.ph-wrap {
  width: min(100% - (var(--ph-gutter) * 2), var(--ph-max));
  margin-inline: auto;
}

/* Type system */
.ph-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--ph-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ph-glow-lime);
}

.ph-display {
  margin: 0;
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.ph-display--xl {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 12ch;
}

.ph-display--article {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  max-width: 18ch;
}

.ph-lead {
  margin: 1rem 0 0;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ph-text-muted);
}

.ph-section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.ph-section-head--left {
  text-align: left;
}

.ph-section-head .ph-lead {
  margin-inline: auto;
}

.ph-section-head--left .ph-lead {
  margin-inline: 0;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Header */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--ph-header-h);
  backdrop-filter: blur(18px) saturate(1.2);
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.94), rgba(18, 20, 26, 0.88));
  border-bottom: 1px solid rgba(255, 248, 240, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.ph-header__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  column-gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: var(--ph-header-h);
  width: min(100% - 1.5rem, var(--ph-max));
  margin-inline: auto;
  padding-block: 0.55rem;
}

.ph-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ph-text);
  text-decoration: none;
  line-height: 1.05;
  z-index: 1;
}

.ph-logo:hover {
  color: var(--ph-text);
}

.ph-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  background: #000;
}

.ph-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ph-logo__name {
  font-family: var(--ph-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  white-space: nowrap;
}

.ph-logo__tag {
  display: block;
  font-family: var(--ph-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ph-accent-pink);
  margin-top: 0.12rem;
  white-space: nowrap;
  opacity: 0.95;
}

.ph-header__nav {
  display: none;
  justify-content: center;
  min-width: 0;
}

.ph-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.2rem;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.035);
  border: 1px solid rgba(255, 248, 240, 0.08);
}

.ph-nav__item {
  position: relative;
}

.ph-nav a,
.ph-nav__trigger {
  color: var(--ph-text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 180ms var(--ph-ease-out), background 180ms var(--ph-ease-out), box-shadow 180ms var(--ph-ease-out);
  white-space: nowrap;
}

.ph-nav a:hover,
.ph-nav__trigger:hover {
  color: var(--ph-text);
  background: rgba(255, 248, 240, 0.06);
}

.ph-nav .current-menu-item > a,
.ph-nav .current-menu-item > .ph-nav__trigger,
.ph-nav a[aria-current="page"] {
  color: var(--ph-bg-deep);
  font-weight: 700;
  background: linear-gradient(135deg, var(--ph-orbit-gold), #ffe29a);
  box-shadow: 0 6px 18px rgba(240, 199, 94, 0.28);
}

.ph-nav__chev {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
  transition: transform 180ms var(--ph-ease-out);
}

.ph-nav__item--has-children.is-open > .ph-nav__trigger .ph-nav__chev,
.ph-nav__item--has-children:focus-within > .ph-nav__trigger .ph-nav__chev {
  transform: rotate(-135deg) translateY(-1px);
}

.ph-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  min-width: 12rem;
  background: rgba(24, 27, 34, 0.98);
  border: 1px solid rgba(255, 248, 240, 0.12);
  border-radius: 1rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.ph-nav__sub a {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.65rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ph-text-muted);
  box-sizing: border-box;
}

.ph-nav__sub a:hover {
  background: rgba(240, 199, 94, 0.12);
  color: var(--ph-text);
}

.ph-nav__sub .current-menu-item > a {
  color: var(--ph-bg-deep);
  background: linear-gradient(135deg, var(--ph-orbit-gold), #ffe29a);
  box-shadow: none;
}

@media (min-width: 880px) {
  .ph-header__nav {
    display: flex;
  }

  .ph-nav__sub {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
  }

  .ph-nav__item--has-children > .ph-nav__sub[hidden] {
    display: none;
  }

  .ph-nav__item--has-children:hover > .ph-nav__sub,
  .ph-nav__item--has-children:focus-within > .ph-nav__sub,
  .ph-nav__item--has-children.is-open > .ph-nav__sub,
  .ph-nav__item--has-children:hover > .ph-nav__sub[hidden],
  .ph-nav__item--has-children:focus-within > .ph-nav__sub[hidden] {
    display: block;
  }
}

.ph-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  z-index: 1;
}

.ph-cta--header.is-active {
  box-shadow: 0 0 0 1px rgba(255, 248, 240, 0.35), 0 10px 32px rgba(212, 255, 0, 0.22);
}

.ph-cta--header .ph-cta__full {
  display: none;
}

.ph-cta--header .ph-cta__short {
  display: inline;
}

@media (min-width: 1180px) {
  .ph-cta--header .ph-cta__full {
    display: inline;
  }

  .ph-cta--header .ph-cta__short {
    display: none;
  }
}

.ph-mobile-nav .ph-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.ph-mobile-nav .ph-nav__trigger {
  width: 100%;
  justify-content: space-between;
  padding: 0.75rem 0.35rem;
  font-size: 1.08rem;
  border-radius: 0.75rem;
}

.ph-mobile-nav .ph-nav__sub {
  position: static;
  transform: none;
  margin: 0.15rem 0 0.5rem;
  box-shadow: none;
}

.ph-mobile-nav .ph-nav__sub[hidden] {
  display: none !important;
}

.ph-mobile-nav .ph-nav > .ph-nav__item > a {
  display: block;
  padding: 0.75rem 0.35rem;
  font-size: 1.08rem;
  border-radius: 0.75rem;
}

.ph-mobile-nav .ph-nav .current-menu-item > a,
.ph-mobile-nav .ph-nav .current-menu-item > .ph-nav__trigger,
.ph-mobile-nav .ph-nav a[aria-current="page"] {
  width: 100%;
  box-sizing: border-box;
}

.ph-lang {
  display: flex;
  gap: 0.35rem;
}

.ph-lang a {
  font-family: var(--ph-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ph-text-muted);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
}

.ph-lang a.is-active,
.ph-lang a:hover {
  color: var(--ph-text);
  border-color: rgba(255, 255, 255, 0.25);
}

.ph-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--ph-font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ph-bg-deep);
  background: linear-gradient(135deg, var(--ph-glow-lime), #c8f000);
  border: none;
  border-radius: var(--ph-radius-full);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(212, 255, 0, 0.22);
  transition: transform 250ms var(--ph-ease-out), box-shadow 250ms var(--ph-ease-out);
}

.ph-cta:hover {
  color: var(--ph-bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(212, 255, 0, 0.32);
}

.ph-cta--ghost {
  background: transparent;
  color: var(--ph-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ph-cta--ghost:hover {
  color: var(--ph-text);
  box-shadow: inset 0 0 0 1px var(--ph-accent-pink), 0 0 28px rgba(255, 77, 166, 0.2);
}

.ph-cta--header {
  display: none;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

@media (min-width: 880px) {
  .ph-cta--header {
    display: inline-flex;
  }

  .ph-menu-btn {
    display: none;
  }

  .ph-lang {
    display: none;
  }

  .ph-mob-nav .ph-lang {
    display: flex;
    margin: 0.75rem 0 0.25rem;
    padding: 0 0.25rem;
  }
}

@media (min-width: 1100px) {
  .ph-lang {
    display: flex;
  }
}

.ph-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--ph-radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 200ms, transform 200ms, background 200ms;
}

.ph-chip:hover {
  border-color: var(--ph-glow-lime);
  background: rgba(212, 255, 0, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.ph-menu-btn {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ph-radius-full);
  color: var(--ph-text);
  cursor: pointer;
}

@media (min-width: 880px) {
  .ph-menu-btn {
    display: none;
  }
}

.ph-menu-btn__icon,
.ph-menu-btn__icon::before,
.ph-menu-btn__icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.ph-menu-btn__icon::before,
.ph-menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.ph-menu-btn__icon::before {
  top: -6px;
}

.ph-menu-btn__icon::after {
  top: 6px;
}

.ph-mobile-nav {
  position: fixed;
  inset: var(--ph-header-h) 0 auto 0;
  z-index: 40;
  padding: var(--ph-space-5);
  background: rgba(18, 20, 26, 0.97);
  border-bottom: 1px solid rgba(255, 248, 240, 0.08);
}

.ph-mobile-nav[hidden] {
  display: none;
}

.ph-main {
  min-height: 60vh;
}

/* Footer */
.ph-footer {
  margin-top: var(--ph-space-8);
  padding: var(--ph-space-7) 0 var(--ph-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-footer__grid {
  display: grid;
  gap: var(--ph-space-6);
}

@media (min-width: 720px) {
  .ph-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.ph-footer__brand-name {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0 0 0.35rem;
}

.ph-footer__lede {
  color: var(--ph-text-muted);
  margin: 0;
  max-width: 28ch;
}

.ph-footer__label {
  display: block;
  font-family: var(--ph-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-orbit-gold);
  margin-bottom: var(--ph-space-3);
}

.ph-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ph-space-2);
}

.ph-footer__menu a {
  color: var(--ph-text-muted);
  text-decoration: none;
}

.ph-footer__menu a:hover {
  color: var(--ph-text);
}

.ph-footer__disclaimer {
  margin-top: var(--ph-space-6);
  padding-top: var(--ph-space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--ph-text-muted);
  max-width: 62ch;
}

.ph-footer__base {
  margin-top: var(--ph-space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ph-space-3);
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ph-text-muted);
}

/* Orbit separator motion signature */
.ph-orbit-sep {
  display: block;
  width: 100%;
  height: 48px;
  overflow: visible;
  margin: var(--ph-space-6) 0;
}

.ph-orbit-sep path {
  fill: none;
  stroke: var(--ph-orbit-gold);
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.65;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ph-draw 1.4s var(--ph-ease-out) forwards;
}

.ph-orbit-sep circle {
  fill: var(--ph-accent-pink);
  opacity: 0;
  animation: ph-node-in 0.5s 0.9s var(--ph-ease-out) forwards;
}

@keyframes ph-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ph-node-in {
  to {
    opacity: 1;
  }
}

/* Prose / magazine article shell */
.ph-article-page {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 7rem);
}

.ph-article-shell {
  width: min(100% - (var(--ph-gutter) * 2), var(--ph-shell));
  margin: 0.75rem auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--ph-radius-xl);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--ph-elev);
  backdrop-filter: blur(18px);
}

.ph-article-shell__head {
  margin-bottom: 1.75rem;
}

.ph-article-shell__media {
  margin: 0 0 2rem;
  overflow: hidden;
  border-radius: var(--ph-radius-lg);
  box-shadow: var(--ph-elev-soft);
}

.ph-article-shell__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ph-article-body {
  font-size: 1.06rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
}

.ph-article-body img {
  max-width: 100%;
  height: auto;
}

.ph-cite {
  font-style: normal;
  font-size: 0.86em;
  color: rgba(245, 242, 236, 0.82);
}

.ph-cite a {
  color: var(--ph-glow-lime);
  text-underline-offset: 0.15em;
}

.ph-cite-line {
  margin: -0.35rem 0 1rem;
}

.ph-article-body h2 {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.85rem;
}

.ph-article-body h3 {
  font-weight: 700;
  font-size: 1.12rem;
  margin: 1.7rem 0 0.55rem;
}

.ph-article-body p {
  margin: 0 0 1.1rem;
}

.ph-article-body ul,
.ph-article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.ph-article-body li {
  margin-bottom: 0.4rem;
}

.ph-answer-box {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--ph-radius-md);
  background: linear-gradient(135deg, rgba(212, 255, 0, 0.1), rgba(255, 77, 166, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ph-answer-box > p:last-child,
.ph-answer-box > :last-child {
  margin-bottom: 0;
}

.ph-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--ph-radius-sm);
  border-left: 3px solid var(--ph-accent-pink);
  background: rgba(255, 77, 166, 0.08);
}

.ph-callout--warn {
  border-left-color: #f0c75e;
  background: rgba(240, 199, 94, 0.1);
}

.ph-callout--danger {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.ph-table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 0.4rem;
  border-radius: var(--ph-radius-sm);
}

.ph-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ph-table th,
.ph-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.ph-table th {
  font-family: var(--ph-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-text-muted);
}

.ph-sources {
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ph-sources h2 {
  font-size: 1.1rem !important;
}

.ph-sources ol {
  font-size: 0.9rem;
  color: var(--ph-text-muted);
}

.ph-sources a {
  color: var(--ph-accent-pink-soft);
}

.ph-sources__org {
  color: var(--ph-text-muted);
}

.ph-sources__note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--ph-text-muted);
}

.ph-byline {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0 0.35rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--ph-radius-sm);
  border: 1px solid rgba(255, 248, 240, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.ph-byline__people {
  display: grid;
  gap: 0.45rem;
}

.ph-byline__author,
.ph-byline__review,
.ph-byline__meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ph-text-muted);
}

.ph-byline__k {
  margin-right: 0.35rem;
}

.ph-byline__name {
  color: var(--ph-text);
  font-weight: 600;
  text-decoration: none;
}

.ph-byline__name:hover {
  color: var(--ph-accent-pink-soft);
}

.ph-byline__role {
  display: inline;
  margin-left: 0.35rem;
}

.ph-byline__role::before {
  content: "· ";
  color: var(--ph-text-muted);
}

.ph-byline__badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 199, 94, 0.35);
  color: var(--ph-orbit-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ph-byline__review--clinical .ph-byline__badge {
  border-color: rgba(184, 255, 74, 0.4);
  color: #b8ff4a;
}

.ph-byline__review--reference_backed .ph-byline__badge {
  border-color: rgba(0, 204, 255, 0.4);
  color: var(--ph-glow-cyan);
}

.ph-byline__review--clinical_pending .ph-byline__badge {
  border-color: rgba(255, 138, 138, 0.4);
  color: #ff8a8a;
}

.ph-byline__review--editorial .ph-byline__badge,
.ph-byline__review--technical_pending .ph-byline__badge,
.ph-byline__review--expired .ph-byline__badge,
.ph-byline__review--updating .ph-byline__badge {
  border-color: rgba(240, 199, 94, 0.35);
  color: var(--ph-orbit-gold);
}

.ph-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.86rem;
}

.ph-byline__meta time {
  color: var(--ph-text);
}

.ph-contact__body {
  max-width: 36rem;
}

.ph-contact__flash {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--ph-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ph-contact__flash--ok {
  border-color: rgba(184, 255, 74, 0.35);
  background: rgba(184, 255, 74, 0.08);
}

.ph-contact__flash--error {
  border-color: rgba(255, 138, 138, 0.4);
  background: rgba(255, 138, 138, 0.08);
}

.ph-contact__honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.ph-contact__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ph-contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ph-contact__field {
  margin: 0 0 1rem;
}

.ph-contact__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ph-text-muted);
}

.ph-contact__field input,
.ph-contact__field select,
.ph-contact__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--ph-radius-sm);
  border: 1px solid rgba(255, 248, 240, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ph-text);
  font: inherit;
}

.ph-contact__field textarea {
  resize: vertical;
  min-height: 9rem;
}

.ph-contact__actions {
  margin: 1.25rem 0 0.75rem;
}

.ph-contact__alt {
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: var(--ph-text-muted);
}

.ph-encyc .ph-byline {
  margin-top: 1.25rem;
  max-width: 42rem;
}

.ph-faq {
  margin: 0.85rem 0;
  border-radius: var(--ph-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.ph-faq summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
}

.ph-faq > div {
  padding: 0 1.1rem 1.1rem;
  color: rgba(255, 255, 255, 0.86);
}

.ph-lede {
  font-family: var(--ph-font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ph-accent-pink-soft);
  margin: 1.1rem 0 0;
  max-width: 36ch;
  line-height: 1.45;
}

.ph-disclaimer-box {
  margin: 2.5rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--ph-radius-sm);
  border-left: 3px solid var(--ph-orbit-gold);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  color: var(--ph-text-muted);
}

.ph-meta {
  font-family: var(--ph-font-mono);
  font-size: 0.75rem;
  color: var(--ph-text-muted);
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ph-breadcrumbs {
  font-size: 0.85rem;
  color: var(--ph-text-muted);
  margin-bottom: var(--ph-space-4);
}

.ph-breadcrumbs a {
  color: var(--ph-text-muted);
  text-decoration: none;
}

.ph-breadcrumbs a:hover {
  color: var(--ph-accent-pink-soft);
}

.ph-verdict {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--ph-radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
}

.ph-verdict--si {
  color: #b8ff4a;
}

.ph-verdict--moderacion,
.ph-verdict--no_necesario,
.ph-verdict--depende {
  color: #f0c75e;
}

.ph-verdict--no {
  color: #ff8a8a;
}

.ph-verdict--no_recomendado {
  color: #ffb080;
}

.ph-verdict--evidencia_baja {
  color: #f0c75e;
}

.ph-verdict--na {
  color: rgba(245, 242, 236, 0.55);
}

.ph-related-inline {
  margin-top: 2.5rem;
}

.ph-related-inline h2 {
  font-family: var(--ph-font-display);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.ph-related-mag {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.ph-cluster-nav {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 248, 240, 0.1);
  background: rgba(255, 248, 240, 0.03);
}

.ph-cluster-nav__label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(224, 192, 122, 0.95);
}

.ph-cluster-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.ph-cluster-nav__list a {
  color: rgba(255, 248, 240, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ph-cluster-nav__list a:hover {
  color: #e0c07a;
}

.ph-empty {
  color: var(--ph-text-muted);
  padding: 1.5rem 1.75rem;
  border-radius: var(--ph-radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.ph-empty--panel {
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
  background: rgba(0, 0, 0, 0.18);
}

.ph-empty__title {
  margin: 0;
  font-family: var(--ph-font-display);
  font-size: 1.25rem;
  color: var(--ph-text);
}

.ph-empty__text {
  margin: 0;
  line-height: 1.5;
}

.ph-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

/* Legacy .ph-prose kept as thin alias */
.ph-prose {
  width: min(100% - (var(--ph-gutter) * 2), var(--ph-shell));
  margin: var(--ph-space-7) auto;
}

.ph-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 240, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ph-text-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.ph-search-trigger:hover {
  color: var(--ph-text);
  border-color: rgba(255, 248, 240, 0.28);
}

.ph-search-trigger__kbd {
  font-family: var(--ph-font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ph-text-muted);
}

@media (max-width: 879px) {
  .ph-search-trigger__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ph-search-trigger__kbd {
    display: none;
  }

  .ph-search-trigger {
    width: 2.4rem;
    height: 2.4rem;
    justify-content: center;
    padding: 0;
  }

  .ph-search-trigger::before {
    content: "⌕";
    font-size: 1.05rem;
    color: var(--ph-text);
  }
}

.ph-search-trigger--mobile {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
  border-radius: var(--ph-radius-sm);
}

.ph-search-trigger--mobile::before {
  content: none;
}

.ph-search-trigger--mobile .ph-search-trigger__label {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

html.ph-search-open {
  overflow: hidden;
}

.ph-search[hidden] {
  display: none !important;
}

.ph-search {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.ph-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.72);
}

.ph-search__panel {
  position: relative;
  width: min(36rem, calc(100% - 1.5rem));
  margin: min(12vh, 5rem) auto 0;
  border-radius: var(--ph-radius-lg);
  border: 1px solid rgba(255, 248, 240, 0.14);
  background: #171920;
  overflow: hidden;
}

.ph-search__form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ph-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ph-text);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}

.ph-search__kbd {
  font-family: var(--ph-font-mono);
  font-size: 0.72rem;
  color: var(--ph-text-muted);
}

.ph-search__hint,
.ph-search__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--ph-text-muted);
  font-size: 0.88rem;
}

.ph-search__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.ph-search__item {
  border-radius: var(--ph-radius-sm);
}

.ph-search__item.is-active,
.ph-search__item:hover {
  background: rgba(255, 248, 240, 0.06);
}

.ph-search__link {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: inherit;
}

.ph-search__type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-orbit-gold);
}

.ph-search__title {
  font-weight: 600;
  color: var(--ph-text);
}

/* —— Alimento ficha (premium panels) —— */
.ph-alimento .ph-lede {
  max-width: 52ch;
}

.ph-alimento--alert {
  box-shadow:
    var(--ph-elev),
    0 0 0 1px rgba(255, 138, 138, 0.18);
}

.ph-food-verdicts,
.ph-food-context {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--ph-radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ph-food-verdicts__head h2,
.ph-food-context__head h2 {
  font-family: var(--ph-font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.ph-food-verdicts__lead,
.ph-food-context__lead {
  margin: 0 0 1.15rem;
  color: var(--ph-text-muted);
  font-size: 0.92rem;
  max-width: 58ch;
}

.ph-verdict-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.ph-verdict-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-verdict-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.95rem 0.9rem 1.05rem;
  border-radius: var(--ph-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

a.ph-verdict-card:hover {
  border-color: rgba(255, 248, 240, 0.28);
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.ph-verdict-card__species {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-orbit-gold);
}

.ph-verdict-card__note {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.ph-verdict-card__note--strong {
  font-family: var(--ph-font-display);
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.96);
}

.ph-guide-facts .ph-verdict-card {
  min-height: 8.5rem;
  padding: 1.05rem 1.05rem 1.15rem;
}

.ph-verdict-card--si {
  border-color: rgba(184, 255, 74, 0.28);
  background: linear-gradient(160deg, rgba(184, 255, 74, 0.1), rgba(0, 0, 0, 0.28));
}

.ph-verdict-card--no {
  border-color: rgba(255, 138, 138, 0.35);
  background: linear-gradient(160deg, rgba(255, 80, 80, 0.12), rgba(0, 0, 0, 0.28));
}

.ph-verdict-card--na {
  border-color: rgba(245, 242, 236, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.28));
  opacity: 0.88;
}

.ph-verdict-card--no_recomendado,
.ph-verdict-card--evidencia_baja {
  border-color: rgba(255, 176, 128, 0.3);
  background: linear-gradient(160deg, rgba(255, 176, 128, 0.1), rgba(0, 0, 0, 0.28));
}

.ph-verdict-card--moderacion,
.ph-verdict-card--depende,
.ph-verdict-card--no_necesario {
  border-color: rgba(240, 199, 94, 0.28);
  background: linear-gradient(160deg, rgba(240, 199, 94, 0.1), rgba(0, 0, 0, 0.28));
}

.ph-table-wrap--food {
  margin: 0;
  border-radius: var(--ph-radius-sm);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-table--food th {
  white-space: nowrap;
}

.ph-table--food td {
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ph-article-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  margin: 0 0 1.35rem;
}

.ph-alimento .ph-article-body .ph-sources {
  display: none;
}

.ph-alimento .ph-related-inline {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-alimento .ph-food-band__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ph-guide-facts {
  margin-bottom: 1.85rem;
}

@media (max-width: 980px) {
  .ph-verdict-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .ph-verdict-grid,
  .ph-verdict-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .ph-food-verdicts,
  .ph-food-context {
    padding: 1.1rem 1rem 1.2rem;
  }
}

@media (max-width: 420px) {
  .ph-verdict-grid,
  .ph-verdict-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Consent banner (only when GA/GTM/ads configured) */
.ph-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.ph-consent[hidden] {
  display: none !important;
}

.ph-consent__panel {
  width: min(100%, 520px);
  padding: 1.25rem 1.35rem;
  border-radius: var(--ph-radius-md);
  background: var(--ph-surface);
  border: 1px solid rgba(245, 242, 236, 0.12);
  color: var(--ph-text);
}

.ph-consent__title {
  margin: 0 0 0.5rem;
  font-family: var(--ph-font-display);
  font-size: 1.1rem;
}

.ph-consent__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ph-text-muted);
}

.ph-consent__prefs {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.ph-consent__check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ph-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ph-consent__btn {
  padding: 0.55rem 0.9rem;
  border-radius: var(--ph-radius-full);
  border: 1px solid rgba(245, 242, 236, 0.18);
  background: transparent;
  color: var(--ph-text);
  font-family: var(--ph-font-ui);
  font-weight: 600;
  cursor: pointer;
}

.ph-consent__btn--primary {
  background: var(--ph-accent-pink);
  border-color: var(--ph-accent-pink);
  color: #120812;
}

.ph-consent__legal {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
}

.ph-consent__legal a {
  color: var(--ph-text-muted);
}

.ph-footer__cookies-manage {
  margin: 0.35rem 0 0;
}

.ph-footer__cookies-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ph-text-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.ph-disclaimer-box__mt {
  display: inline;
}

@media (min-width: 768px) {
  .ph-consent {
    inset: auto 24px 24px auto;
    justify-content: flex-end;
  }
}

