/*
Theme Name: Project Ramos Platform
Theme URI: https://projectramos.com/
Author: Project Ramos
Description: Migration staging theme for the unified Project Ramos platform.
Version: 0.1.6
Text Domain: project-ramos-platform
*/

:root {
  --pr-red: #f51b3d;
  --pr-red-deep: #c80e2b;
  --pr-bg: #f2f2ef;
  --pr-panel: rgba(255, 255, 255, 0.9);
  --pr-text: #111214;
  --pr-muted: #666970;
  --pr-line: rgba(17, 18, 20, 0.12);
  --pr-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pr-bg);
  color: var(--pr-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.pr-skip {
  position: fixed; left: 18px; top: -80px; z-index: 1000;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: #111;
}
.pr-skip:focus { top: 18px; }

.pr-platform { min-height: 100vh; padding: 18px; }
.pr-global-nav {
  position: sticky; top: 14px; z-index: 100;
  max-width: 1480px; min-height: 72px; margin: 0 auto 18px; padding: 10px 12px;
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--pr-line); border-radius: 24px;
  background: color-mix(in srgb, var(--pr-panel) 88%, transparent);
  box-shadow: var(--pr-shadow); backdrop-filter: blur(24px) saturate(150%);
}
.pr-brand { display: flex; align-items: center; gap: 11px; min-width: max-content; text-decoration: none; }
.pr-brand img { width: 46px; height: 46px; display: block; object-fit: contain; }
.pr-brand-copy { display: grid; line-height: 1.05; }
.pr-brand-copy strong { font-size: 15px; letter-spacing: .13em; }
.pr-brand-copy small { margin-top: 6px; color: var(--pr-muted); font-size: 9px; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.pr-primary-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-inline: auto; }
.pr-primary-nav a {
  padding: 10px 14px; border-radius: 14px; color: var(--pr-muted);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.pr-primary-nav a:hover { background: rgba(127,127,127,.09); color: var(--pr-text); }
.pr-primary-nav a[aria-current="page"] { background: var(--pr-text); color: var(--pr-bg); }
.pr-account-link { padding: 10px 15px; border: 1px solid var(--pr-line); border-radius: 14px; font-weight: 700; text-decoration: none; }
.pr-mobile-menu { display: none; }

.pr-workspace {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(200px, 280px); gap: 18px;
}
.pr-rail, .pr-platform-content {
  border: 1px solid var(--pr-line); border-radius: 24px; background: var(--pr-panel);
}
.pr-rail { position: sticky; top: 104px; height: fit-content; padding: 18px; }
.pr-rail-label { margin: 0 0 12px; color: var(--pr-muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.pr-context-nav { display: grid; gap: 5px; }
.pr-context-nav a { padding: 10px 12px; border-radius: 12px; color: var(--pr-muted); font-size: 14px; text-decoration: none; }
.pr-context-nav a:hover, .pr-context-nav a[aria-current="page"] { background: rgba(127,127,127,.1); color: var(--pr-text); }
.pr-context-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--pr-red); font-weight: 750; }
.pr-right-card + .pr-right-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--pr-line); }
.pr-right-card h2 { margin: 0 0 7px; font-size: 17px; }
.pr-right-card p { margin: 0; color: var(--pr-muted); font-size: 13px; }
.pr-right-card a { display: inline-block; margin-top: 10px; color: var(--pr-red-deep); font-size: 13px; font-weight: 750; }

.pr-platform-content { min-width: 0; padding: clamp(18px, 3vw, 34px); }
.pr-route-header { margin-bottom: 26px; }
.pr-route-header span { color: var(--pr-red-deep); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.pr-route-header h1 { margin: 5px 0 5px; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; }
.pr-route-header p { margin: 0; color: var(--pr-muted); }
.pr-route-panel > :first-child { margin-top: 0; }
.pr-route-panel img { max-width: 100%; height: auto; }
.pr-route-placeholder { max-width: 660px; padding: 24px; border: 1px dashed var(--pr-line); border-radius: 18px; }
.pr-route-placeholder h2 { margin-top: 0; }
.pr-route-placeholder p { margin-bottom: 0; color: var(--pr-muted); }
.pr-community-cache[hidden], .pr-route-panel[hidden] { display: none !important; }
.pr-platform-content .ramos-main { max-width: none; padding: 0; }
.pr-platform-content #prc-app { margin: 0; }
.pr-platform-content #prc-app .prc-toolbar { margin-top: 0; }
.pr-route-loading { opacity: .55; pointer-events: none; transition: opacity .18s ease; }

.pr-about { display: grid; gap: 22px; }
.pr-about-hero {
  position: relative; overflow: hidden; padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--pr-line); border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pr-panel) 86%, var(--pr-red) 14%), var(--pr-panel));
}
.pr-about-hero::after {
  content: "R"; position: absolute; right: -22px; bottom: -82px;
  color: color-mix(in srgb, var(--pr-red) 13%, transparent); font-size: clamp(170px, 26vw, 330px); font-weight: 950; line-height: 1;
  transform: rotate(-9deg); pointer-events: none;
}
.pr-about-eyebrow { position: relative; z-index: 1; margin: 0 0 10px; color: var(--pr-red-deep); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.pr-about-hero h2 { position: relative; z-index: 1; max-width: 760px; margin: 0; font-size: clamp(36px, 6vw, 76px); line-height: .98; letter-spacing: -.052em; }
.pr-about-hero > p:not(.pr-about-eyebrow) { position: relative; z-index: 1; max-width: 720px; margin: 22px 0 0; color: var(--pr-muted); font-size: clamp(16px, 2vw, 20px); }
.pr-about-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pr-about-actions a { padding: 11px 16px; border: 1px solid var(--pr-line); border-radius: 14px; background: var(--pr-text); color: var(--pr-bg); font-weight: 780; text-decoration: none; }
.pr-about-actions a + a { background: transparent; color: var(--pr-text); }
.pr-about-principle { padding: 22px 24px; border-left: 4px solid var(--pr-red); border-radius: 0 18px 18px 0; background: color-mix(in srgb, var(--pr-panel) 92%, var(--pr-red) 8%); }
.pr-about-principle h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.pr-about-principle em { color: var(--pr-red); font-style: normal; }
.pr-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pr-about-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--pr-line); border-radius: 22px; background: color-mix(in srgb, var(--pr-panel) 94%, transparent); }
.pr-about-card span { color: var(--pr-red-deep); font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.pr-about-card h2 { margin: 9px 0 10px; font-size: clamp(22px, 3vw, 31px); line-height: 1.12; letter-spacing: -.03em; }
.pr-about-card p { margin: 0; color: var(--pr-muted); }
.pr-about-card a { color: var(--pr-red-deep); font-weight: 760; }
.pr-about-work { padding: clamp(24px, 4vw, 42px); border-radius: 24px; background: #111216; color: #fff; }
.pr-about-work h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.pr-about-work p { max-width: 690px; margin: 0; color: #b8bac2; }
.pr-about-work a { display: inline-block; margin-top: 20px; padding: 11px 17px; border-radius: 14px; background: var(--pr-red); color: #fff; font-weight: 800; text-decoration: none; }

.pr-footer { max-width: 1480px; margin: 22px auto 0; padding: 20px 4px; color: var(--pr-muted); font-size: 12px; }
.pr-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (prefers-color-scheme: dark) {
  :root {
    --pr-bg: #090a0c;
    --pr-panel: rgba(24, 25, 29, .91);
    --pr-text: #f7f7f8;
    --pr-muted: #a3a5ad;
    --pr-line: rgba(255,255,255,.11);
    --pr-shadow: 0 22px 60px rgba(0,0,0,.42);
  }
  .pr-route-header span, .pr-right-card a { color: #ff4762; }
}

@media (max-width: 1080px) {
  .pr-workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .pr-right { display: none; }
  .pr-brand-copy { display: none; }
}

@media (max-width: 760px) {
  .pr-platform { padding: 10px 10px 92px; }
  /* WebKit treats a blurred ancestor as the containing block for fixed
     descendants. Keep the bottom navigation fixed to the viewport by
     removing blur from its mobile header ancestor. */
  .pr-global-nav {
    top: 8px; min-height: 60px; border-radius: 20px; padding: 7px 9px;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .pr-brand img { width: 42px; height: 42px; }
  .pr-primary-nav {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 110;
    min-height: 64px; padding: 7px; justify-content: space-around;
    border: 1px solid var(--pr-line); border-radius: 24px;
    background: color-mix(in srgb, var(--pr-panel) 91%, transparent);
    box-shadow: var(--pr-shadow); backdrop-filter: blur(24px) saturate(150%);
  }
  .pr-primary-nav a { flex: 1; padding: 10px 5px; text-align: center; font-size: 11px; }
  .pr-account-link { margin-left: auto; font-size: 12px; }
  .pr-workspace { display: block; }
  .pr-left { display: none; }
  .pr-platform-content { padding: 18px 14px; border-radius: 20px; }
  .pr-route-header h1 { font-size: 39px; }
  .pr-about-grid { grid-template-columns: 1fr; }
  .pr-about-hero { padding: 26px 22px; border-radius: 22px; }
  .pr-about-hero::after { right: -44px; bottom: -54px; }
}

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