:root{
  --phase-accent:#e82127;
  --phase-tint:#fff1f1;
  --rw-accent:#e82127;
  --rw-accent-hover:#2b49a6;
  --rw-accent-soft:#fff1f1;
  --rw-max:1320px;
  --rw-header:60px;
}

/* Phase identity stays specific through language and hierarchy, not extra color systems. */
.phase-identity-chip{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:0;border:0;border-radius:0;background:transparent;color:#4f5257;font-size:12px;line-height:16px;font-weight:500;letter-spacing:0;text-transform:none}
.phase-identity-chip::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--phase-accent);flex:0 0 auto}
.phase-identity-chip strong{color:#171a20;font:inherit;font-weight:500}

.phase-role-card{margin-top:26px;padding:17px 18px;border:0;border-radius:8px;background:#f5f6f8;display:grid;grid-template-columns:minmax(150px,.38fr) minmax(0,1fr) auto;gap:24px;align-items:center}
.phase-role-card__label{display:flex;flex-direction:column;gap:3px}
.phase-role-card__label span,.phase-role-card__signal span{color:#50545b;font-size:11.5px;line-height:15px;font-weight:500;letter-spacing:0;text-transform:none}
.phase-role-card__label strong{font-size:15px;line-height:20px;font-weight:500;color:#171a20}
.phase-role-card__question{margin:0!important;max-width:700px!important;color:#393c41!important;font-size:14px!important;line-height:21px!important}
.phase-role-card__signal{min-width:120px;text-align:right}
.phase-role-card__signal strong{display:block;margin-top:2px;color:var(--phase-accent)!important;font-size:12px;line-height:18px;font-weight:500}

/* One restrained AegisLand accent across every category. */
body[data-phase-category] .hero::after,body[data-phase-category] .phase-detail__hero::after{display:none!important}
body[data-phase-category] .metric-card:first-child,body[data-phase-category] .phase-metric:first-child{border-top-color:transparent!important}
body[data-phase-category] .phase-verdict-panel{border-top-color:transparent!important}
body[data-phase-category] .rail-step.active{color:var(--phase-accent)!important;border-bottom-color:var(--phase-accent)!important}
body[data-phase-category] .archive-card__open,body[data-phase-category] .source i{color:var(--phase-accent)!important}

/* Wider frame and calmer top navigation rhythm. */
body.research-workspace.archive-workspace .wrap,
body.research-workspace.archive-workspace .signature-shell,
body.research-workspace.phase-polish-shell .wrap,
body.research-workspace.phase-polish-shell .signature-shell,
body.research-workspace.phase11-polish .wrap,
body.research-workspace.phase11-polish .signature-shell{
  width:min(var(--rw-max),calc(100% - 64px))!important;
}
body.research-workspace.archive-workspace .top,
body.research-workspace.phase-polish-shell .top,
body.research-workspace.phase-polish-shell .signature-nav,
body.research-workspace.phase11-polish .site-header{
  padding-inline:32px!important;
}

/* Archive taxonomy: spacious grouped research surfaces instead of border-heavy rows. */
.category-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}
.category-nav a{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:0;border-radius:6px;background:#f2f3f5;color:#393c41;text-decoration:none;font-size:12px;font-weight:500}
.category-nav a:hover{background:#e7e9ee;color:#171a20}
.archive-category{--category-accent:#e82127!important;padding:28px 32px 18px;scroll-margin-top:92px;background:#f5f6f8;border-radius:12px}
.archive-category+.archive-category{margin-top:24px}
.archive-category__head{display:grid;grid-template-columns:150px minmax(0,1fr);gap:34px;align-items:start;padding:0 0 24px;border-bottom:1px solid #dde0e5}
.archive-category__index{display:inline-flex;align-items:center;gap:9px;color:#50545b;font-size:11.5px;font-weight:500;letter-spacing:0;text-transform:none}
.archive-category__index::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--phase-accent)}
.archive-category__copy h2{margin:0;color:#171a20;font-size:clamp(30px,3.1vw,38px);line-height:1.08;font-weight:500;letter-spacing:-.028em}
.archive-category__copy p{max-width:720px;margin:10px 0 0;color:#393c41;font-size:14.5px;line-height:22px}
.archive-category__range{display:block;margin-top:8px;color:#50545b;font-size:12px;font-weight:500}
.archive-category__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 34px}
.archive-card.phase-personalized{--phase-accent:#e82127!important;--phase-tint:#fff1f1!important;min-height:0;padding:22px 0 24px;border-bottom:1px solid #dde0e5;position:relative;isolation:isolate}
.archive-card.phase-personalized::before{content:"";position:absolute;inset:6px -10px;border-radius:7px;background:#fff;opacity:0;z-index:-1;transition:opacity .2s ease}
.archive-card.phase-personalized:hover::before{opacity:1}
.archive-card.phase-personalized::after{background:var(--phase-accent)!important}
.archive-card__identity{display:flex;align-items:center;gap:8px;margin-top:15px;color:#393c41;font-size:11.5px;line-height:16px;font-weight:500;letter-spacing:0;text-transform:none}
.archive-card__identity::before{content:"";width:12px;height:2px;background:var(--phase-accent)}
.archive-card__question{margin:9px 0 0!important;max-width:38ch!important;color:#50545b!important;font-size:13px!important;line-height:20px!important}
.archive-card__signal{display:inline-block;margin-top:15px;padding:0;background:transparent;color:var(--phase-accent);font-size:11.5px;font-weight:500;letter-spacing:0;text-transform:none}
.archive-card[data-frozen="true"] .archive-card__signal{margin-left:6px}

body.research-workspace.archive-workspace .archive-hero{padding:90px 0 42px!important;border-bottom:0!important}
body.research-workspace.archive-workspace .archive-hero h1{max-width:900px!important;font-size:clamp(36px,3.8vw,44px)!important;line-height:1.06!important;letter-spacing:-.03em!important}
body.research-workspace.archive-workspace .archive-hero p{max-width:780px!important;font-size:16px!important;line-height:1.65!important}
body.research-workspace.archive-workspace .archive-stats.archive-toolbar{padding:20px 0 28px!important;border-bottom:0!important}
body.research-workspace.archive-workspace .archive-toolbar__search input{min-height:44px!important;border-radius:6px!important;border-color:#d9dce1!important}
body.research-workspace.archive-workspace .archive-filter{min-height:40px!important;border-radius:6px!important;padding:0 14px!important}
body.research-workspace.archive-workspace .archive-groups{padding-top:26px!important;padding-bottom:74px!important}
body.research-workspace.archive-workspace .archive-category__copy h2{font-size:clamp(28px,3vw,36px)!important;line-height:1.1!important;letter-spacing:-.024em!important}
body.research-workspace.archive-workspace .archive-category__copy p{font-size:13.5px!important;line-height:1.6!important;color:#393c41!important}
body.research-workspace.archive-workspace .archive-category__range,
body.research-workspace.archive-workspace .archive-category__index{font-size:11.5px!important;color:#50545b!important}
body.research-workspace.archive-workspace .archive-card.phase-personalized h3{font-size:14.5px!important;line-height:1.42!important;letter-spacing:-.006em!important}
body.research-workspace.archive-workspace .archive-card.phase-personalized p{font-size:12.5px!important;line-height:1.55!important;color:#50545b!important}
body.research-workspace.archive-workspace .archive-card__label,
body.research-workspace.archive-workspace .archive-card__signal,
body.research-workspace.archive-workspace .archive-card__open,
body.research-workspace.archive-workspace .verdict-chip{font-size:11.5px!important}

/* Frozen detail pages: one broad evidence rhythm with neutral grouped surfaces. */
.phase-detail__hero .phase-identity-chip{margin-bottom:14px}
.phase-detail__hero .phase-role-card{grid-column:1/-1;margin-top:26px}
.phase-detail__hero>div:first-child{min-width:0}
body.research-workspace .phase-detail{padding-top:92px!important}
body.research-workspace .phase-detail__back{font-size:11.5px!important;letter-spacing:.01em!important}
body.research-workspace .phase-detail__hero{padding-top:34px!important;padding-bottom:64px!important;gap:64px!important;align-items:center!important}
body.research-workspace .phase-detail__hero h1{font-size:clamp(42px,5vw,60px)!important;line-height:1.02!important;letter-spacing:-.035em!important;max-width:900px!important}
body.research-workspace .phase-detail__summary{font-size:17px!important;line-height:1.64!important;max-width:780px!important}
body.research-workspace .phase-verdict-panel{padding:28px!important;border:0!important;border-radius:10px!important;background:#f5f6f8!important;align-self:center!important}
body.research-workspace .phase-detail__metrics-band{background:#f5f6f8!important;border:0!important;border-radius:10px!important;padding:0 24px!important;overflow:hidden!important;gap:0!important}
body.research-workspace .phase-detail__metrics-band .phase-metric{background:transparent!important;border:0!important;border-right:1px solid #dde0e5!important;border-radius:0!important;padding:24px 20px!important}
body.research-workspace .phase-detail__metrics-band .phase-metric:last-child{border-right:0!important}
body.research-workspace .phase-detail__body{gap:64px!important;margin-top:64px!important}
body.research-workspace .phase-detail__panel--evidence{border-left-color:#dde0e5!important;padding-left:36px!important}
body.research-workspace .phase-detail__context{margin-top:68px!important;padding:52px 54px!important;border:0!important;border-radius:10px!important;background:#f5f6f8!important}
body.research-workspace .phase-detail__context-grid{gap:clamp(44px,7vw,88px)!important}
body.research-workspace .phase-detail__context-grid h2{font-size:clamp(30px,3.5vw,40px)!important;line-height:1.08!important;letter-spacing:-.025em!important}
body.research-workspace .phase-detail__context-grid p{font-size:15px!important;line-height:1.68!important}
body.research-workspace .phase-detail__nav{padding-top:54px!important;padding-bottom:24px!important}

/* Legacy and Phase 11 titles use the same restrained scale and spacing. */
body.research-workspace.archive-shell .hero{padding-top:126px!important;padding-bottom:86px!important}
body.research-workspace.archive-shell .hero h1{font-size:clamp(42px,5vw,60px)!important;line-height:1.02!important;letter-spacing:-.035em!important}
body.research-workspace.archive-shell .section{padding-top:100px!important;padding-bottom:100px!important}
body.research-workspace.phase11-polish .hero h1{font-size:clamp(40px,4.8vw,58px)!important;line-height:1.04!important;letter-spacing:-.032em!important}
body.research-workspace.phase11-polish .hero-deck{font-size:17px!important;line-height:1.64!important}
.phase11-polish .hero-copy .phase-identity-chip{margin-bottom:14px}
.phase11-polish .hero-copy .phase-role-card{margin-top:26px}

@media(max-width:1040px){
  body.research-workspace.archive-workspace .wrap,
  body.research-workspace.archive-workspace .signature-shell,
  body.research-workspace.phase-polish-shell .wrap,
  body.research-workspace.phase-polish-shell .signature-shell,
  body.research-workspace.phase11-polish .wrap,
  body.research-workspace.phase11-polish .signature-shell{width:min(100% - 44px,var(--rw-max))!important}
  body.research-workspace.archive-workspace .top,
  body.research-workspace.phase-polish-shell .top,
  body.research-workspace.phase-polish-shell .signature-nav,
  body.research-workspace.phase11-polish .site-header{padding-inline:22px!important}
  .archive-category__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .phase-role-card{grid-template-columns:1fr 1fr}
  .phase-role-card__question{grid-column:1/-1;grid-row:2}
  .phase-role-card__signal{text-align:left}
  body.research-workspace .phase-detail__hero{gap:44px!important}
  body.research-workspace .phase-detail__body{gap:44px!important}
}

@media(max-width:700px){
  :root{--rw-header:54px}
  body.research-workspace.archive-workspace .wrap,
  body.research-workspace.archive-workspace .signature-shell,
  body.research-workspace.phase-polish-shell .wrap,
  body.research-workspace.phase-polish-shell .signature-shell,
  body.research-workspace.phase11-polish .wrap,
  body.research-workspace.phase11-polish .signature-shell{width:calc(100% - 28px)!important}
  body.research-workspace.archive-workspace .top,
  body.research-workspace.phase-polish-shell .top,
  body.research-workspace.phase-polish-shell .signature-nav,
  body.research-workspace.phase11-polish .site-header{padding-inline:14px!important}
  .archive-category{padding:24px 20px 14px;border-radius:10px}
  .archive-category+.archive-category{margin-top:16px}
  .archive-category__head{grid-template-columns:1fr;gap:11px;padding-bottom:18px}
  .archive-category__cards{grid-template-columns:1fr}
  .archive-card.phase-personalized{min-height:0;padding:18px 0 20px}
  .category-nav{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .category-nav a{justify-content:center;text-align:center;white-space:nowrap}
  .phase-role-card{grid-template-columns:1fr;gap:10px;padding:16px}
  .phase-role-card__question{grid-column:auto;grid-row:auto}
  .phase-role-card__signal{text-align:left}
  .phase-identity-chip{white-space:normal}
  body.research-workspace.archive-workspace .archive-hero{padding:62px 0 30px!important}
  body.research-workspace .phase-detail{padding-top:70px!important}
  body.research-workspace .phase-detail__hero{padding-top:22px!important;padding-bottom:46px!important;gap:30px!important}
  body.research-workspace .phase-detail__hero h1,
  body.research-workspace.archive-shell .hero h1,
  body.research-workspace.phase11-polish .hero h1{font-size:34px!important;line-height:1.08!important;letter-spacing:-.028em!important}
  body.research-workspace .phase-detail__summary{font-size:15px!important;line-height:1.62!important}
  body.research-workspace .phase-verdict-panel{padding:22px!important;border-radius:9px!important}
  body.research-workspace .phase-detail__metrics-band{padding:0 18px!important;border-radius:9px!important}
  body.research-workspace .phase-detail__metrics-band .phase-metric{padding:17px 0!important;border-right:0!important;border-bottom:1px solid #dde0e5!important}
  body.research-workspace .phase-detail__metrics-band .phase-metric:last-child{border-bottom:0!important}
  body.research-workspace .phase-detail__body{gap:34px!important;margin-top:46px!important}
  body.research-workspace .phase-detail__panel--evidence{padding-left:0!important;padding-top:28px!important;border-left:0!important;border-top:1px solid #dde0e5!important}
  body.research-workspace .phase-detail__context{margin-top:48px!important;padding:36px 24px!important;border-radius:9px!important}
  body.research-workspace.archive-shell .hero{padding-top:94px!important;padding-bottom:64px!important}
  body.research-workspace.archive-shell .section{padding-top:70px!important;padding-bottom:70px!important}
}

@media(max-width:420px){.category-nav{gap:6px}}
@media(prefers-reduced-motion:reduce){.archive-card.phase-personalized::before{transition:none}}