/**
 * Rules of Engagement (?m=401)
 * Migrated from rules_of_engagement.php inline styles — ph-* tokens, no copy changes.
 */
@import url('public-pages-shared.css');

.ph-roe-page {
  padding: var(--ph-header-content-gap) 45px 64px;
  background: var(--ph-bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--ph-text-body);
}

.ph-roe-page .roe-inner {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  .ph-roe-page .roe-inner {
    max-width: 900px;
  }
}

.ph-roe-page .roe-blog-header {
  margin-bottom: 32px;
  text-align: center;
}

.ph-roe-page .roe-blog-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ph-text-body);
  margin: 0 0 8px 0;
  letter-spacing: -0.03em;
}

.ph-roe-page .roe-blog-subtitle {
  font-size: 1rem;
  color: var(--ph-accent-purple);
  margin: 0 0 22px 0;
  font-weight: 600;
  line-height: 1.5;
}

.ph-roe-page .roe-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ph-roe-page .roe-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-text-muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--ph-r);
  border: 1px solid var(--ph-border);
  background: var(--ph-surface);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ph-roe-page .roe-cat:hover {
  color: var(--ph-text-body);
  border-color: var(--ph-border-l);
}

.ph-roe-page .roe-cat.active {
  color: var(--ph-bg);
  background: var(--ph-plans-orange);
  border-color: var(--ph-plans-orange);
}

.ph-roe-page .roe-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ph-roe-page .roe-list-item {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-rl);
  background: var(--ph-card);
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ph-roe-page .roe-list-item:hover {
  border-color: rgba(0, 207, 160, 0.35);
  background: var(--ph-card-h);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ph-roe-page .roe-list-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-text-label);
}

.ph-roe-page .roe-list-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ph-accent) !important;
  margin: 8px 0 8px;
  letter-spacing: -0.02em;
}

.ph-roe-page .roe-list-excerpt {
  font-size: 0.92rem;
  color: var(--ph-text-muted);
  margin: 0;
  line-height: 1.55;
}

.ph-roe-page .roe-article-full {
  padding: 8px 0 0;
}

.ph-roe-page .roe-back {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ph-accent-blue);
  text-decoration: none;
  margin-bottom: 20px;
}

.ph-roe-page .roe-back:hover {
  color: var(--ph-accent);
  text-decoration: underline;
}

.ph-roe-page .roe-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ph-border);
}

.ph-roe-page .roe-back--footer {
  margin-bottom: 0;
}

.ph-roe-page .roe-read-also {
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ph-accent-purple);
  text-decoration: none;
  line-height: 1.4;
}

.ph-roe-page .roe-read-also:hover {
  color: var(--ph-accent);
  text-decoration: underline;
}

.ph-roe-page .roe-post-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-text-label);
}

.ph-roe-page .roe-article-full .roe-post-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--ph-accent) !important;
  margin: 10px 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ph-roe-page .roe-post-body {
  padding: 28px 26px;
  background: var(--ph-card);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-rl);
  color: var(--ph-text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.ph-roe-page .roe-post-body p {
  margin: 0 0 1em;
  color: inherit;
}

.ph-roe-page .roe-post-body p:last-child {
  margin-bottom: 0;
}

.ph-roe-page .roe-post-body strong {
  color: var(--ph-text-body);
  font-weight: 600;
}

.ph-roe-page .roe-post-body .roe-bullets {
  list-style: disc;
  margin: 16px 0;
  padding-left: 1.5em;
  display: block !important;
}

.ph-roe-page .roe-post-body .roe-bullets li {
  display: list-item !important;
  margin-bottom: 0.5em;
  color: inherit;
}

.ph-roe-page .roe-post-body .roe-figure {
  margin: 22px 0;
  padding: 16px;
  background: var(--ph-bg);
  border: 1px solid rgba(0, 207, 160, 0.22);
  border-radius: var(--ph-r);
}

.ph-roe-page .roe-post-body .roe-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: var(--ph-bg);
  border-radius: var(--ph-r);
}

@media (max-width: 768px) {
  .ph-roe-page {
    padding: 24px 16px 48px;
  }

  .ph-roe-page .roe-list-item,
  .ph-roe-page .roe-post-body {
    padding: 16px;
  }
}
